Class DocumentLocation.Builder (3.87.0)

public static final class DocumentLocation.Builder extends GeneratedMessage.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

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

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.

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

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.