Class Location.Builder (3.57.0)

public static final class Location.Builder extends GeneratedMessageV3.Builder<Location.Builder> implements LocationOrBuilder

Specifies the location of the finding.

Protobuf type google.privacy.dlp.v2.Location

Implements

LocationOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllContentLocations(Iterable<? extends ContentLocation> values)

public Location.Builder addAllContentLocations(Iterable<? extends ContentLocation> values)

List of nested objects pointing to the precise location of the finding within the file or record.

repeated .google.privacy.dlp.v2.ContentLocation content_locations = 7;

Parameter
Name Description
values Iterable<? extends com.google.privacy.dlp.v2.ContentLocation>
Returns
Type Description
Location.Builder

addContentLocations(ContentLocation value)

public Location.Builder addContentLocations(ContentLocation value)

List of nested objects pointing to the precise location of the finding within the file or record.

repeated .google.privacy.dlp.v2.ContentLocation content_locations = 7;

Parameter
Name Description
value ContentLocation
Returns
Type Description
Location.Builder

addContentLocations(ContentLocation.Builder builderForValue)

public Location.Builder addContentLocations(ContentLocation.Builder builderForValue)

List of nested objects pointing to the precise location of the finding within the file or record.

repeated .google.privacy.dlp.v2.ContentLocation content_locations = 7;

Parameter
Name Description
builderForValue ContentLocation.Builder
Returns
Type Description
Location.Builder

addContentLocations(int index, ContentLocation value)

public Location.Builder addContentLocations(int index, ContentLocation value)

List of nested objects pointing to the precise location of the finding within the file or record.

repeated .google.privacy.dlp.v2.ContentLocation content_locations = 7;

Parameters
Name Description
index int
value ContentLocation
Returns
Type Description
Location.Builder

addContentLocations(int index, ContentLocation.Builder builderForValue)

public Location.Builder addContentLocations(int index, ContentLocation.Builder builderForValue)

List of nested objects pointing to the precise location of the finding within the file or record.

repeated .google.privacy.dlp.v2.ContentLocation content_locations = 7;

Parameters
Name Description
index int
builderForValue ContentLocation.Builder
Returns
Type Description
Location.Builder

addContentLocationsBuilder()

public ContentLocation.Builder addContentLocationsBuilder()

List of nested objects pointing to the precise location of the finding within the file or record.

repeated .google.privacy.dlp.v2.ContentLocation content_locations = 7;

Returns
Type Description
ContentLocation.Builder

addContentLocationsBuilder(int index)

public ContentLocation.Builder addContentLocationsBuilder(int index)

List of nested objects pointing to the precise location of the finding within the file or record.

repeated .google.privacy.dlp.v2.ContentLocation content_locations = 7;

Parameter
Name Description
index int
Returns
Type Description
ContentLocation.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Location build()
Returns
Type Description
Location

buildPartial()

public Location buildPartial()
Returns
Type Description
Location

clear()

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

clearByteRange()

public Location.Builder clearByteRange()

Zero-based byte offsets delimiting the finding. These are relative to the finding's containing element. Note that when the content is not textual, this references the UTF-8 encoded textual representation of the content. Omitted if content is an image.

.google.privacy.dlp.v2.Range byte_range = 1;

Returns
Type Description
Location.Builder

clearCodepointRange()

public Location.Builder clearCodepointRange()

Unicode character offsets delimiting the finding. These are relative to the finding's containing element. Provided when the content is text.

.google.privacy.dlp.v2.Range codepoint_range = 2;

Returns
Type Description
Location.Builder

clearContainer()

public Location.Builder clearContainer()

Information about the container where this finding occurred, if available.

.google.privacy.dlp.v2.Container container = 8;

Returns
Type Description
Location.Builder

clearContentLocations()

public Location.Builder clearContentLocations()

List of nested objects pointing to the precise location of the finding within the file or record.

repeated .google.privacy.dlp.v2.ContentLocation content_locations = 7;

Returns
Type Description
Location.Builder

clearField(Descriptors.FieldDescriptor field)

public Location.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Location.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getByteRange()

public Range getByteRange()

Zero-based byte offsets delimiting the finding. These are relative to the finding's containing element. Note that when the content is not textual, this references the UTF-8 encoded textual representation of the content. Omitted if content is an image.

.google.privacy.dlp.v2.Range byte_range = 1;

Returns
Type Description
Range

The byteRange.

getByteRangeBuilder()

public Range.Builder getByteRangeBuilder()

Zero-based byte offsets delimiting the finding. These are relative to the finding's containing element. Note that when the content is not textual, this references the UTF-8 encoded textual representation of the content. Omitted if content is an image.

.google.privacy.dlp.v2.Range byte_range = 1;

Returns
Type Description
Range.Builder

getByteRangeOrBuilder()

public RangeOrBuilder getByteRangeOrBuilder()

Zero-based byte offsets delimiting the finding. These are relative to the finding's containing element. Note that when the content is not textual, this references the UTF-8 encoded textual representation of the content. Omitted if content is an image.

.google.privacy.dlp.v2.Range byte_range = 1;

Returns
Type Description
RangeOrBuilder

getCodepointRange()

public Range getCodepointRange()

Unicode character offsets delimiting the finding. These are relative to the finding's containing element. Provided when the content is text.

.google.privacy.dlp.v2.Range codepoint_range = 2;

Returns
Type Description
Range

The codepointRange.

getCodepointRangeBuilder()

public Range.Builder getCodepointRangeBuilder()

Unicode character offsets delimiting the finding. These are relative to the finding's containing element. Provided when the content is text.

.google.privacy.dlp.v2.Range codepoint_range = 2;

Returns
Type Description
Range.Builder

getCodepointRangeOrBuilder()

public RangeOrBuilder getCodepointRangeOrBuilder()

Unicode character offsets delimiting the finding. These are relative to the finding's containing element. Provided when the content is text.

.google.privacy.dlp.v2.Range codepoint_range = 2;

Returns
Type Description
RangeOrBuilder

getContainer()

public Container getContainer()

Information about the container where this finding occurred, if available.

.google.privacy.dlp.v2.Container container = 8;

Returns
Type Description
Container

The container.

getContainerBuilder()

public Container.Builder getContainerBuilder()

Information about the container where this finding occurred, if available.

.google.privacy.dlp.v2.Container container = 8;

Returns
Type Description
Container.Builder

getContainerOrBuilder()

public ContainerOrBuilder getContainerOrBuilder()

Information about the container where this finding occurred, if available.

.google.privacy.dlp.v2.Container container = 8;

Returns
Type Description
ContainerOrBuilder

getContentLocations(int index)

public ContentLocation getContentLocations(int index)

List of nested objects pointing to the precise location of the finding within the file or record.

repeated .google.privacy.dlp.v2.ContentLocation content_locations = 7;

Parameter
Name Description
index int
Returns
Type Description
ContentLocation

getContentLocationsBuilder(int index)

public ContentLocation.Builder getContentLocationsBuilder(int index)

List of nested objects pointing to the precise location of the finding within the file or record.

repeated .google.privacy.dlp.v2.ContentLocation content_locations = 7;

Parameter
Name Description
index int
Returns
Type Description
ContentLocation.Builder

getContentLocationsBuilderList()

public List<ContentLocation.Builder> getContentLocationsBuilderList()

List of nested objects pointing to the precise location of the finding within the file or record.

repeated .google.privacy.dlp.v2.ContentLocation content_locations = 7;

Returns
Type Description
List<Builder>

getContentLocationsCount()

public int getContentLocationsCount()

List of nested objects pointing to the precise location of the finding within the file or record.

repeated .google.privacy.dlp.v2.ContentLocation content_locations = 7;

Returns
Type Description
int

getContentLocationsList()

public List<ContentLocation> getContentLocationsList()

List of nested objects pointing to the precise location of the finding within the file or record.

repeated .google.privacy.dlp.v2.ContentLocation content_locations = 7;

Returns
Type Description
List<ContentLocation>

getContentLocationsOrBuilder(int index)

public ContentLocationOrBuilder getContentLocationsOrBuilder(int index)

List of nested objects pointing to the precise location of the finding within the file or record.

repeated .google.privacy.dlp.v2.ContentLocation content_locations = 7;

Parameter
Name Description
index int
Returns
Type Description
ContentLocationOrBuilder

getContentLocationsOrBuilderList()

public List<? extends ContentLocationOrBuilder> getContentLocationsOrBuilderList()

List of nested objects pointing to the precise location of the finding within the file or record.

repeated .google.privacy.dlp.v2.ContentLocation content_locations = 7;

Returns
Type Description
List<? extends com.google.privacy.dlp.v2.ContentLocationOrBuilder>

getDefaultInstanceForType()

public Location getDefaultInstanceForType()
Returns
Type Description
Location

getDescriptorForType()

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

hasByteRange()

public boolean hasByteRange()

Zero-based byte offsets delimiting the finding. These are relative to the finding's containing element. Note that when the content is not textual, this references the UTF-8 encoded textual representation of the content. Omitted if content is an image.

.google.privacy.dlp.v2.Range byte_range = 1;

Returns
Type Description
boolean

Whether the byteRange field is set.

hasCodepointRange()

public boolean hasCodepointRange()

Unicode character offsets delimiting the finding. These are relative to the finding's containing element. Provided when the content is text.

.google.privacy.dlp.v2.Range codepoint_range = 2;

Returns
Type Description
boolean

Whether the codepointRange field is set.

hasContainer()

public boolean hasContainer()

Information about the container where this finding occurred, if available.

.google.privacy.dlp.v2.Container container = 8;

Returns
Type Description
boolean

Whether the container field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeByteRange(Range value)

public Location.Builder mergeByteRange(Range value)

Zero-based byte offsets delimiting the finding. These are relative to the finding's containing element. Note that when the content is not textual, this references the UTF-8 encoded textual representation of the content. Omitted if content is an image.

.google.privacy.dlp.v2.Range byte_range = 1;

Parameter
Name Description
value Range
Returns
Type Description
Location.Builder

mergeCodepointRange(Range value)

public Location.Builder mergeCodepointRange(Range value)

Unicode character offsets delimiting the finding. These are relative to the finding's containing element. Provided when the content is text.

.google.privacy.dlp.v2.Range codepoint_range = 2;

Parameter
Name Description
value Range
Returns
Type Description
Location.Builder

mergeContainer(Container value)

public Location.Builder mergeContainer(Container value)

Information about the container where this finding occurred, if available.

.google.privacy.dlp.v2.Container container = 8;

Parameter
Name Description
value Container
Returns
Type Description
Location.Builder

mergeFrom(Location other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeContentLocations(int index)

public Location.Builder removeContentLocations(int index)

List of nested objects pointing to the precise location of the finding within the file or record.

repeated .google.privacy.dlp.v2.ContentLocation content_locations = 7;

Parameter
Name Description
index int
Returns
Type Description
Location.Builder

setByteRange(Range value)

public Location.Builder setByteRange(Range value)

Zero-based byte offsets delimiting the finding. These are relative to the finding's containing element. Note that when the content is not textual, this references the UTF-8 encoded textual representation of the content. Omitted if content is an image.

.google.privacy.dlp.v2.Range byte_range = 1;

Parameter
Name Description
value Range
Returns
Type Description
Location.Builder

setByteRange(Range.Builder builderForValue)

public Location.Builder setByteRange(Range.Builder builderForValue)

Zero-based byte offsets delimiting the finding. These are relative to the finding's containing element. Note that when the content is not textual, this references the UTF-8 encoded textual representation of the content. Omitted if content is an image.

.google.privacy.dlp.v2.Range byte_range = 1;

Parameter
Name Description
builderForValue Range.Builder
Returns
Type Description
Location.Builder

setCodepointRange(Range value)

public Location.Builder setCodepointRange(Range value)

Unicode character offsets delimiting the finding. These are relative to the finding's containing element. Provided when the content is text.

.google.privacy.dlp.v2.Range codepoint_range = 2;

Parameter
Name Description
value Range
Returns
Type Description
Location.Builder

setCodepointRange(Range.Builder builderForValue)

public Location.Builder setCodepointRange(Range.Builder builderForValue)

Unicode character offsets delimiting the finding. These are relative to the finding's containing element. Provided when the content is text.

.google.privacy.dlp.v2.Range codepoint_range = 2;

Parameter
Name Description
builderForValue Range.Builder
Returns
Type Description
Location.Builder

setContainer(Container value)

public Location.Builder setContainer(Container value)

Information about the container where this finding occurred, if available.

.google.privacy.dlp.v2.Container container = 8;

Parameter
Name Description
value Container
Returns
Type Description
Location.Builder

setContainer(Container.Builder builderForValue)

public Location.Builder setContainer(Container.Builder builderForValue)

Information about the container where this finding occurred, if available.

.google.privacy.dlp.v2.Container container = 8;

Parameter
Name Description
builderForValue Container.Builder
Returns
Type Description
Location.Builder

setContentLocations(int index, ContentLocation value)

public Location.Builder setContentLocations(int index, ContentLocation value)

List of nested objects pointing to the precise location of the finding within the file or record.

repeated .google.privacy.dlp.v2.ContentLocation content_locations = 7;

Parameters
Name Description
index int
value ContentLocation
Returns
Type Description
Location.Builder

setContentLocations(int index, ContentLocation.Builder builderForValue)

public Location.Builder setContentLocations(int index, ContentLocation.Builder builderForValue)

List of nested objects pointing to the precise location of the finding within the file or record.

repeated .google.privacy.dlp.v2.ContentLocation content_locations = 7;

Parameters
Name Description
index int
builderForValue ContentLocation.Builder
Returns
Type Description
Location.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public Location.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Location.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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