Class Location.Builder (3.9.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.privacy.dlp.v2.ContentLocation>
Returns
TypeDescription
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
NameDescription
valueContentLocation
Returns
TypeDescription
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
NameDescription
builderForValueContentLocation.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueContentLocation
Returns
TypeDescription
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
NameDescription
indexint
builderForValueContentLocation.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ContentLocation.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Location build()
Returns
TypeDescription
Location

buildPartial()

public Location buildPartial()
Returns
TypeDescription
Location

clear()

public Location.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Location.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public Location.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
RangeOrBuilder

getContainer()

public Container getContainer()

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

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

Returns
TypeDescription
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
TypeDescription
Container.Builder

getContainerOrBuilder()

public ContainerOrBuilder getContainerOrBuilder()

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

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.privacy.dlp.v2.ContentLocationOrBuilder>

getDefaultInstanceForType()

public Location getDefaultInstanceForType()
Returns
TypeDescription
Location

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the container field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueRange
Returns
TypeDescription
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
NameDescription
valueRange
Returns
TypeDescription
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
NameDescription
valueContainer
Returns
TypeDescription
Location.Builder

mergeFrom(Location other)

public Location.Builder mergeFrom(Location other)
Parameter
NameDescription
otherLocation
Returns
TypeDescription
Location.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Location.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueRange
Returns
TypeDescription
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
NameDescription
builderForValueRange.Builder
Returns
TypeDescription
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
NameDescription
valueRange
Returns
TypeDescription
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
NameDescription
builderForValueRange.Builder
Returns
TypeDescription
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
NameDescription
valueContainer
Returns
TypeDescription
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
NameDescription
builderForValueContainer.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueContentLocation
Returns
TypeDescription
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
NameDescription
indexint
builderForValueContentLocation.Builder
Returns
TypeDescription
Location.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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