Class DocumentLocation.Builder (3.53.0)

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DocumentLocation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DocumentLocation.Builder
Overrides

build()

public DocumentLocation build()
Returns
Type Description
DocumentLocation

buildPartial()

public DocumentLocation buildPartial()
Returns
Type Description
DocumentLocation

clear()

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

clearField(Descriptors.FieldDescriptor field)

public DocumentLocation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
DocumentLocation.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DocumentLocation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DocumentLocation.Builder
Overrides

clone()

public DocumentLocation.Builder clone()
Returns
Type Description
DocumentLocation.Builder
Overrides

getDefaultInstanceForType()

public DocumentLocation getDefaultInstanceForType()
Returns
Type Description
DocumentLocation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
long

The fileOffset.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DocumentLocation other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DocumentLocation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DocumentLocation.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public DocumentLocation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value long

The fileOffset to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DocumentLocation.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DocumentLocation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DocumentLocation.Builder
Overrides