Package com.google.privacy.dlp.v2
Class Location.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
- com.google.privacy.dlp.v2.Location.Builder
-
- All Implemented Interfaces:
LocationOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- Location
public static final class Location.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Location.Builder> implements LocationOrBuilder
Specifies the location of the finding.
Protobuf typegoogle.privacy.dlp.v2.Location
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Location.Builder
addAllContentLocations(Iterable<? extends ContentLocation> values)
List of nested objects pointing to the precise location of the finding within the file or record.Location.Builder
addContentLocations(int index, ContentLocation value)
List of nested objects pointing to the precise location of the finding within the file or record.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.Location.Builder
addContentLocations(ContentLocation value)
List of nested objects pointing to the precise location of the finding within the file or record.Location.Builder
addContentLocations(ContentLocation.Builder builderForValue)
List of nested objects pointing to the precise location of the finding within the file or record.ContentLocation.Builder
addContentLocationsBuilder()
List of nested objects pointing to the precise location of the finding within the file or record.ContentLocation.Builder
addContentLocationsBuilder(int index)
List of nested objects pointing to the precise location of the finding within the file or record.Location.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Location
build()
Location
buildPartial()
Location.Builder
clear()
Location.Builder
clearByteRange()
Zero-based byte offsets delimiting the finding.Location.Builder
clearCodepointRange()
Unicode character offsets delimiting the finding.Location.Builder
clearContainer()
Information about the container where this finding occurred, if available.Location.Builder
clearContentLocations()
List of nested objects pointing to the precise location of the finding within the file or record.Location.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Location.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Location.Builder
clone()
Range
getByteRange()
Zero-based byte offsets delimiting the finding.Range.Builder
getByteRangeBuilder()
Zero-based byte offsets delimiting the finding.RangeOrBuilder
getByteRangeOrBuilder()
Zero-based byte offsets delimiting the finding.Range
getCodepointRange()
Unicode character offsets delimiting the finding.Range.Builder
getCodepointRangeBuilder()
Unicode character offsets delimiting the finding.RangeOrBuilder
getCodepointRangeOrBuilder()
Unicode character offsets delimiting the finding.Container
getContainer()
Information about the container where this finding occurred, if available.Container.Builder
getContainerBuilder()
Information about the container where this finding occurred, if available.ContainerOrBuilder
getContainerOrBuilder()
Information about the container where this finding occurred, if available.ContentLocation
getContentLocations(int index)
List of nested objects pointing to the precise location of the finding within the file or record.ContentLocation.Builder
getContentLocationsBuilder(int index)
List of nested objects pointing to the precise location of the finding within the file or record.List<ContentLocation.Builder>
getContentLocationsBuilderList()
List of nested objects pointing to the precise location of the finding within the file or record.int
getContentLocationsCount()
List of nested objects pointing to the precise location of the finding within the file or record.List<ContentLocation>
getContentLocationsList()
List of nested objects pointing to the precise location of the finding within the file or record.ContentLocationOrBuilder
getContentLocationsOrBuilder(int index)
List of nested objects pointing to the precise location of the finding within the file or record.List<? extends ContentLocationOrBuilder>
getContentLocationsOrBuilderList()
List of nested objects pointing to the precise location of the finding within the file or record.Location
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
boolean
hasByteRange()
Zero-based byte offsets delimiting the finding.boolean
hasCodepointRange()
Unicode character offsets delimiting the finding.boolean
hasContainer()
Information about the container where this finding occurred, if available.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Location.Builder
mergeByteRange(Range value)
Zero-based byte offsets delimiting the finding.Location.Builder
mergeCodepointRange(Range value)
Unicode character offsets delimiting the finding.Location.Builder
mergeContainer(Container value)
Information about the container where this finding occurred, if available.Location.Builder
mergeFrom(Location other)
Location.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Location.Builder
mergeFrom(com.google.protobuf.Message other)
Location.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Location.Builder
removeContentLocations(int index)
List of nested objects pointing to the precise location of the finding within the file or record.Location.Builder
setByteRange(Range value)
Zero-based byte offsets delimiting the finding.Location.Builder
setByteRange(Range.Builder builderForValue)
Zero-based byte offsets delimiting the finding.Location.Builder
setCodepointRange(Range value)
Unicode character offsets delimiting the finding.Location.Builder
setCodepointRange(Range.Builder builderForValue)
Unicode character offsets delimiting the finding.Location.Builder
setContainer(Container value)
Information about the container where this finding occurred, if available.Location.Builder
setContainer(Container.Builder builderForValue)
Information about the container where this finding occurred, if available.Location.Builder
setContentLocations(int index, ContentLocation value)
List of nested objects pointing to the precise location of the finding within the file or record.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.Location.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Location.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Location.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
clear
public Location.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
getDefaultInstanceForType
public Location getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Location build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Location buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Location.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
setField
public Location.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
clearField
public Location.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
clearOneof
public Location.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
setRepeatedField
public Location.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
addRepeatedField
public Location.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
mergeFrom
public Location.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Location.Builder>
-
mergeFrom
public Location.Builder mergeFrom(Location other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
mergeFrom
public Location.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Location.Builder>
- Throws:
IOException
-
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;
- Specified by:
hasByteRange
in interfaceLocationOrBuilder
- Returns:
- Whether the byteRange field is set.
-
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;
- Specified by:
getByteRange
in interfaceLocationOrBuilder
- Returns:
- The byteRange.
-
setByteRange
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;
-
setByteRange
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;
-
mergeByteRange
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;
-
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;
-
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;
-
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;
- Specified by:
getByteRangeOrBuilder
in interfaceLocationOrBuilder
-
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;
- Specified by:
hasCodepointRange
in interfaceLocationOrBuilder
- Returns:
- Whether the codepointRange field is set.
-
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;
- Specified by:
getCodepointRange
in interfaceLocationOrBuilder
- Returns:
- The codepointRange.
-
setCodepointRange
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;
-
setCodepointRange
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;
-
mergeCodepointRange
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;
-
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;
-
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;
-
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;
- Specified by:
getCodepointRangeOrBuilder
in interfaceLocationOrBuilder
-
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;
- Specified by:
getContentLocationsList
in interfaceLocationOrBuilder
-
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;
- Specified by:
getContentLocationsCount
in interfaceLocationOrBuilder
-
getContentLocations
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;
- Specified by:
getContentLocations
in interfaceLocationOrBuilder
-
setContentLocations
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;
-
setContentLocations
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;
-
addContentLocations
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;
-
addContentLocations
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;
-
addContentLocations
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;
-
addContentLocations
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;
-
addAllContentLocations
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;
-
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;
-
removeContentLocations
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;
-
getContentLocationsBuilder
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;
-
getContentLocationsOrBuilder
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;
- Specified by:
getContentLocationsOrBuilder
in interfaceLocationOrBuilder
-
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;
- Specified by:
getContentLocationsOrBuilderList
in interfaceLocationOrBuilder
-
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;
-
addContentLocationsBuilder
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;
-
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;
-
hasContainer
public boolean hasContainer()
Information about the container where this finding occurred, if available.
.google.privacy.dlp.v2.Container container = 8;
- Specified by:
hasContainer
in interfaceLocationOrBuilder
- Returns:
- Whether the container field is set.
-
getContainer
public Container getContainer()
Information about the container where this finding occurred, if available.
.google.privacy.dlp.v2.Container container = 8;
- Specified by:
getContainer
in interfaceLocationOrBuilder
- Returns:
- The container.
-
setContainer
public Location.Builder setContainer(Container value)
Information about the container where this finding occurred, if available.
.google.privacy.dlp.v2.Container container = 8;
-
setContainer
public Location.Builder setContainer(Container.Builder builderForValue)
Information about the container where this finding occurred, if available.
.google.privacy.dlp.v2.Container container = 8;
-
mergeContainer
public Location.Builder mergeContainer(Container value)
Information about the container where this finding occurred, if available.
.google.privacy.dlp.v2.Container container = 8;
-
clearContainer
public Location.Builder clearContainer()
Information about the container where this finding occurred, if available.
.google.privacy.dlp.v2.Container container = 8;
-
getContainerBuilder
public Container.Builder getContainerBuilder()
Information about the container where this finding occurred, if available.
.google.privacy.dlp.v2.Container container = 8;
-
getContainerOrBuilder
public ContainerOrBuilder getContainerOrBuilder()
Information about the container where this finding occurred, if available.
.google.privacy.dlp.v2.Container container = 8;
- Specified by:
getContainerOrBuilder
in interfaceLocationOrBuilder
-
setUnknownFields
public final Location.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
mergeUnknownFields
public final Location.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
-