Class UsnJournal (0.3.0)

public final class UsnJournal extends GeneratedMessage implements UsnJournalOrBuilder

Information from the NTFS USN Journal.

Protobuf type google.backstory.UsnJournal

Implements

UsnJournalOrBuilder

Static Fields

ALLOCATED_FIELD_NUMBER

public static final int ALLOCATED_FIELD_NUMBER
Field Value
Type Description
int

ATTRIBUTES_FIELD_NUMBER

public static final int ATTRIBUTES_FIELD_NUMBER
Field Value
Type Description
int

ATTRIBUTES_FLAG_FIELD_NUMBER

public static final int ATTRIBUTES_FLAG_FIELD_NUMBER
Field Value
Type Description
int

FILE_ATTRIBUTES_FIELD_NUMBER

public static final int FILE_ATTRIBUTES_FIELD_NUMBER
Field Value
Type Description
int

REASONS_FIELD_NUMBER

public static final int REASONS_FIELD_NUMBER
Field Value
Type Description
int

REASON_FIELD_NUMBER

public static final int REASON_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static UsnJournal getDefaultInstance()
Returns
Type Description
UsnJournal

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static UsnJournal.Builder newBuilder()
Returns
Type Description
UsnJournal.Builder

newBuilder(UsnJournal prototype)

public static UsnJournal.Builder newBuilder(UsnJournal prototype)
Parameter
Name Description
prototype UsnJournal
Returns
Type Description
UsnJournal.Builder

parseDelimitedFrom(InputStream input)

public static UsnJournal parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
UsnJournal
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static UsnJournal parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UsnJournal
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static UsnJournal parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
UsnJournal
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static UsnJournal parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UsnJournal
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static UsnJournal parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
UsnJournal
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static UsnJournal parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UsnJournal
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static UsnJournal parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
UsnJournal
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static UsnJournal parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UsnJournal
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static UsnJournal parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
UsnJournal
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static UsnJournal parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UsnJournal
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static UsnJournal parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
UsnJournal
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static UsnJournal parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UsnJournal
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<UsnJournal> parser()
Returns
Type Description
Parser<UsnJournal>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAllocated()

public boolean getAllocated()

Indicates whether the file is allocated in the Master File Table (MFT).

bool allocated = 3;

Returns
Type Description
boolean

The allocated.

getAttributes() (deprecated)

public UsnJournal.Attribute getAttributes()

Deprecated. google.backstory.UsnJournal.attributes is deprecated. See backstory/udm.proto;l=3650

Deprecated: Use file_attributes instead. File attributes from the USN record.

.google.backstory.UsnJournal.Attribute attributes = 2 [deprecated = true];

Returns
Type Description
UsnJournal.Attribute

The attributes.

getAttributesFlag()

public String getAttributesFlag()

File attributes flags from the USN record (e.g., "0x20").

string attributes_flag = 1;

Returns
Type Description
String

The attributesFlag.

getAttributesFlagBytes()

public ByteString getAttributesFlagBytes()

File attributes flags from the USN record (e.g., "0x20").

string attributes_flag = 1;

Returns
Type Description
ByteString

The bytes for attributesFlag.

getAttributesValue() (deprecated)

public int getAttributesValue()

Deprecated. google.backstory.UsnJournal.attributes is deprecated. See backstory/udm.proto;l=3650

Deprecated: Use file_attributes instead. File attributes from the USN record.

.google.backstory.UsnJournal.Attribute attributes = 2 [deprecated = true];

Returns
Type Description
int

The enum numeric value on the wire for attributes.

getDefaultInstanceForType()

public UsnJournal getDefaultInstanceForType()
Returns
Type Description
UsnJournal

getFileAttributes(int index)

public UsnJournal.Attribute getFileAttributes(int index)

File attributes from the USN record.

repeated .google.backstory.UsnJournal.Attribute file_attributes = 5;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
UsnJournal.Attribute

The fileAttributes at the given index.

getFileAttributesCount()

public int getFileAttributesCount()

File attributes from the USN record.

repeated .google.backstory.UsnJournal.Attribute file_attributes = 5;

Returns
Type Description
int

The count of fileAttributes.

getFileAttributesList()

public List<UsnJournal.Attribute> getFileAttributesList()

File attributes from the USN record.

repeated .google.backstory.UsnJournal.Attribute file_attributes = 5;

Returns
Type Description
List<Attribute>

A list containing the fileAttributes.

getFileAttributesValue(int index)

public int getFileAttributesValue(int index)

File attributes from the USN record.

repeated .google.backstory.UsnJournal.Attribute file_attributes = 5;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of fileAttributes at the given index.

getFileAttributesValueList()

public List<Integer> getFileAttributesValueList()

File attributes from the USN record.

repeated .google.backstory.UsnJournal.Attribute file_attributes = 5;

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for fileAttributes.

getParserForType()

public Parser<UsnJournal> getParserForType()
Returns
Type Description
Parser<UsnJournal>
Overrides

getReason() (deprecated)

public UsnJournal.Reason getReason()

Deprecated. google.backstory.UsnJournal.reason is deprecated. See backstory/udm.proto;l=3661

Deprecated: Use reasons instead. Human-readable string describing the reason for the USN journal entry. (e.g., "USN_REASON_FILE_CREATE").

.google.backstory.UsnJournal.Reason reason = 4 [deprecated = true];

Returns
Type Description
UsnJournal.Reason

The reason.

getReasonValue() (deprecated)

public int getReasonValue()

Deprecated. google.backstory.UsnJournal.reason is deprecated. See backstory/udm.proto;l=3661

Deprecated: Use reasons instead. Human-readable string describing the reason for the USN journal entry. (e.g., "USN_REASON_FILE_CREATE").

.google.backstory.UsnJournal.Reason reason = 4 [deprecated = true];

Returns
Type Description
int

The enum numeric value on the wire for reason.

getReasons(int index)

public UsnJournal.Reason getReasons(int index)

Human-readable string describing the reasons for the USN journal entry (e.g., "USN_REASON_FILE_CREATE").

repeated .google.backstory.UsnJournal.Reason reasons = 6;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
UsnJournal.Reason

The reasons at the given index.

getReasonsCount()

public int getReasonsCount()

Human-readable string describing the reasons for the USN journal entry (e.g., "USN_REASON_FILE_CREATE").

repeated .google.backstory.UsnJournal.Reason reasons = 6;

Returns
Type Description
int

The count of reasons.

getReasonsList()

public List<UsnJournal.Reason> getReasonsList()

Human-readable string describing the reasons for the USN journal entry (e.g., "USN_REASON_FILE_CREATE").

repeated .google.backstory.UsnJournal.Reason reasons = 6;

Returns
Type Description
List<Reason>

A list containing the reasons.

getReasonsValue(int index)

public int getReasonsValue(int index)

Human-readable string describing the reasons for the USN journal entry (e.g., "USN_REASON_FILE_CREATE").

repeated .google.backstory.UsnJournal.Reason reasons = 6;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
int

The enum numeric value on the wire of reasons at the given index.

getReasonsValueList()

public List<Integer> getReasonsValueList()

Human-readable string describing the reasons for the USN journal entry (e.g., "USN_REASON_FILE_CREATE").

repeated .google.backstory.UsnJournal.Reason reasons = 6;

Returns
Type Description
List<Integer>

A list containing the enum numeric values on the wire for reasons.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public UsnJournal.Builder newBuilderForType()
Returns
Type Description
UsnJournal.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected UsnJournal.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
UsnJournal.Builder
Overrides

toBuilder()

public UsnJournal.Builder toBuilder()
Returns
Type Description
UsnJournal.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException