Class UsnJournal.Builder (0.3.0)

public static final class UsnJournal.Builder extends GeneratedMessage.Builder<UsnJournal.Builder> implements UsnJournalOrBuilder

Information from the NTFS USN Journal.

Protobuf type google.backstory.UsnJournal

Implements

UsnJournalOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllFileAttributes(Iterable<? extends UsnJournal.Attribute> values)

public UsnJournal.Builder addAllFileAttributes(Iterable<? extends UsnJournal.Attribute> values)

File attributes from the USN record.

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

Parameter
Name Description
values Iterable<? extends com.google.backstory.UsnJournal.Attribute>

The fileAttributes to add.

Returns
Type Description
UsnJournal.Builder

This builder for chaining.

addAllFileAttributesValue(Iterable<Integer> values)

public UsnJournal.Builder addAllFileAttributesValue(Iterable<Integer> values)

File attributes from the USN record.

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

Parameter
Name Description
values Iterable<Integer>

The enum numeric values on the wire for fileAttributes to add.

Returns
Type Description
UsnJournal.Builder

This builder for chaining.

addAllReasons(Iterable<? extends UsnJournal.Reason> values)

public UsnJournal.Builder addAllReasons(Iterable<? extends UsnJournal.Reason> values)

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
values Iterable<? extends com.google.backstory.UsnJournal.Reason>

The reasons to add.

Returns
Type Description
UsnJournal.Builder

This builder for chaining.

addAllReasonsValue(Iterable<Integer> values)

public UsnJournal.Builder addAllReasonsValue(Iterable<Integer> values)

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
values Iterable<Integer>

The enum numeric values on the wire for reasons to add.

Returns
Type Description
UsnJournal.Builder

This builder for chaining.

addFileAttributes(UsnJournal.Attribute value)

public UsnJournal.Builder addFileAttributes(UsnJournal.Attribute value)

File attributes from the USN record.

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

Parameter
Name Description
value UsnJournal.Attribute

The fileAttributes to add.

Returns
Type Description
UsnJournal.Builder

This builder for chaining.

addFileAttributesValue(int value)

public UsnJournal.Builder addFileAttributesValue(int value)

File attributes from the USN record.

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

Parameter
Name Description
value int

The enum numeric value on the wire for fileAttributes to add.

Returns
Type Description
UsnJournal.Builder

This builder for chaining.

addReasons(UsnJournal.Reason value)

public UsnJournal.Builder addReasons(UsnJournal.Reason value)

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
value UsnJournal.Reason

The reasons to add.

Returns
Type Description
UsnJournal.Builder

This builder for chaining.

addReasonsValue(int value)

public UsnJournal.Builder addReasonsValue(int value)

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
value int

The enum numeric value on the wire for reasons to add.

Returns
Type Description
UsnJournal.Builder

This builder for chaining.

build()

public UsnJournal build()
Returns
Type Description
UsnJournal

buildPartial()

public UsnJournal buildPartial()
Returns
Type Description
UsnJournal

clear()

public UsnJournal.Builder clear()
Returns
Type Description
UsnJournal.Builder
Overrides

clearAllocated()

public UsnJournal.Builder clearAllocated()

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

bool allocated = 3;

Returns
Type Description
UsnJournal.Builder

This builder for chaining.

clearAttributes() (deprecated)

public UsnJournal.Builder clearAttributes()

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.Builder

This builder for chaining.

clearAttributesFlag()

public UsnJournal.Builder clearAttributesFlag()

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

string attributes_flag = 1;

Returns
Type Description
UsnJournal.Builder

This builder for chaining.

clearFileAttributes()

public UsnJournal.Builder clearFileAttributes()

File attributes from the USN record.

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

Returns
Type Description
UsnJournal.Builder

This builder for chaining.

clearReason() (deprecated)

public UsnJournal.Builder clearReason()

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.Builder

This builder for chaining.

clearReasons()

public UsnJournal.Builder clearReasons()

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
UsnJournal.Builder

This builder for chaining.

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UsnJournal other)

public UsnJournal.Builder mergeFrom(UsnJournal other)
Parameter
Name Description
other UsnJournal
Returns
Type Description
UsnJournal.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UsnJournal.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UsnJournal.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public UsnJournal.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
UsnJournal.Builder
Overrides

setAllocated(boolean value)

public UsnJournal.Builder setAllocated(boolean value)

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

bool allocated = 3;

Parameter
Name Description
value boolean

The allocated to set.

Returns
Type Description
UsnJournal.Builder

This builder for chaining.

setAttributes(UsnJournal.Attribute value) (deprecated)

public UsnJournal.Builder setAttributes(UsnJournal.Attribute value)

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];

Parameter
Name Description
value UsnJournal.Attribute

The attributes to set.

Returns
Type Description
UsnJournal.Builder

This builder for chaining.

setAttributesFlag(String value)

public UsnJournal.Builder setAttributesFlag(String value)

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

string attributes_flag = 1;

Parameter
Name Description
value String

The attributesFlag to set.

Returns
Type Description
UsnJournal.Builder

This builder for chaining.

setAttributesFlagBytes(ByteString value)

public UsnJournal.Builder setAttributesFlagBytes(ByteString value)

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

string attributes_flag = 1;

Parameter
Name Description
value ByteString

The bytes for attributesFlag to set.

Returns
Type Description
UsnJournal.Builder

This builder for chaining.

setAttributesValue(int value) (deprecated)

public UsnJournal.Builder setAttributesValue(int value)

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];

Parameter
Name Description
value int

The enum numeric value on the wire for attributes to set.

Returns
Type Description
UsnJournal.Builder

This builder for chaining.

setFileAttributes(int index, UsnJournal.Attribute value)

public UsnJournal.Builder setFileAttributes(int index, UsnJournal.Attribute value)

File attributes from the USN record.

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

Parameters
Name Description
index int

The index to set the value at.

value UsnJournal.Attribute

The fileAttributes to set.

Returns
Type Description
UsnJournal.Builder

This builder for chaining.

setFileAttributesValue(int index, int value)

public UsnJournal.Builder setFileAttributesValue(int index, int value)

File attributes from the USN record.

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

Parameters
Name Description
index int

The index to set the value at.

value int

The enum numeric value on the wire for fileAttributes to set.

Returns
Type Description
UsnJournal.Builder

This builder for chaining.

setReason(UsnJournal.Reason value) (deprecated)

public UsnJournal.Builder setReason(UsnJournal.Reason value)

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];

Parameter
Name Description
value UsnJournal.Reason

The reason to set.

Returns
Type Description
UsnJournal.Builder

This builder for chaining.

setReasonValue(int value) (deprecated)

public UsnJournal.Builder setReasonValue(int value)

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];

Parameter
Name Description
value int

The enum numeric value on the wire for reason to set.

Returns
Type Description
UsnJournal.Builder

This builder for chaining.

setReasons(int index, UsnJournal.Reason value)

public UsnJournal.Builder setReasons(int index, UsnJournal.Reason value)

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

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

Parameters
Name Description
index int

The index to set the value at.

value UsnJournal.Reason

The reasons to set.

Returns
Type Description
UsnJournal.Builder

This builder for chaining.

setReasonsValue(int index, int value)

public UsnJournal.Builder setReasonsValue(int index, int value)

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

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

Parameters
Name Description
index int

The index to set the value at.

value int

The enum numeric value on the wire for reasons to set.

Returns
Type Description
UsnJournal.Builder

This builder for chaining.