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
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
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
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
Returns
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
Returns
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
Returns
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
Returns
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
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
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Location.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
Returns
buildPartial()
public Location buildPartial()
Returns
clear()
public Location.Builder clear()
Returns
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
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
clearContainer()
public Location.Builder clearContainer()
Information about the container where this finding occurred, if available.
.google.privacy.dlp.v2.Container container = 8;
Returns
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
clearField(Descriptors.FieldDescriptor field)
public Location.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public Location.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public Location.Builder clone()
Returns
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
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
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
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
getContainer()
public Container getContainer()
Information about the container where this finding occurred, if available.
.google.privacy.dlp.v2.Container container = 8;
Returns
getContainerBuilder()
public Container.Builder getContainerBuilder()
Information about the container where this finding occurred, if available.
.google.privacy.dlp.v2.Container container = 8;
Returns
getContainerOrBuilder()
public ContainerOrBuilder getContainerOrBuilder()
Information about the container where this finding occurred, if available.
.google.privacy.dlp.v2.Container container = 8;
Returns
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
Returns
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
Returns
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
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
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
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
Returns
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
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
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
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
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
Returns
mergeFrom(Location other)
public Location.Builder mergeFrom(Location other)
Parameter
Returns
public Location.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Location.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Location.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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
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
Returns
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
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
Returns
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
Returns
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
Returns
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
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public Location.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Location.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Location.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides