Class DocumentLocation.Builder

public static final class DocumentLocation.Builder extends GeneratedMessageV3.Builder<DocumentLocation.Builder> implements DocumentLocationOrBuilder

Location of a finding within a document.

Protobuf type google.privacy.dlp.v2.DocumentLocation

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DocumentLocation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DocumentLocation.Builder
Overrides

build()

public DocumentLocation build()
Returns
TypeDescription
DocumentLocation

buildPartial()

public DocumentLocation buildPartial()
Returns
TypeDescription
DocumentLocation

clear()

public DocumentLocation.Builder clear()
Returns
TypeDescription
DocumentLocation.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public DocumentLocation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
DocumentLocation.Builder
Overrides

clearFileOffset()

public DocumentLocation.Builder clearFileOffset()

Offset of the line, from the beginning of the file, where the finding is located.

int64 file_offset = 1;

Returns
TypeDescription
DocumentLocation.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DocumentLocation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
DocumentLocation.Builder
Overrides

clone()

public DocumentLocation.Builder clone()
Returns
TypeDescription
DocumentLocation.Builder
Overrides

getDefaultInstanceForType()

public DocumentLocation getDefaultInstanceForType()
Returns
TypeDescription
DocumentLocation

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFileOffset()

public long getFileOffset()

Offset of the line, from the beginning of the file, where the finding is located.

int64 file_offset = 1;

Returns
TypeDescription
long

The fileOffset.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DocumentLocation other)

public DocumentLocation.Builder mergeFrom(DocumentLocation other)
Parameter
NameDescription
otherDocumentLocation
Returns
TypeDescription
DocumentLocation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DocumentLocation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DocumentLocation.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public DocumentLocation.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
DocumentLocation.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DocumentLocation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DocumentLocation.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public DocumentLocation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DocumentLocation.Builder
Overrides

setFileOffset(long value)

public DocumentLocation.Builder setFileOffset(long value)

Offset of the line, from the beginning of the file, where the finding is located.

int64 file_offset = 1;

Parameter
NameDescription
valuelong

The fileOffset to set.

Returns
TypeDescription
DocumentLocation.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DocumentLocation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DocumentLocation.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DocumentLocation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DocumentLocation.Builder
Overrides