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.BuilderaddAllContentLocations(Iterable<? extends ContentLocation> values)List of nested objects pointing to the precise location of the finding within the file or record.Location.BuilderaddContentLocations(int index, ContentLocation value)List of nested objects pointing to the precise location of the finding within the file or record.Location.BuilderaddContentLocations(int index, ContentLocation.Builder builderForValue)List of nested objects pointing to the precise location of the finding within the file or record.Location.BuilderaddContentLocations(ContentLocation value)List of nested objects pointing to the precise location of the finding within the file or record.Location.BuilderaddContentLocations(ContentLocation.Builder builderForValue)List of nested objects pointing to the precise location of the finding within the file or record.ContentLocation.BuilderaddContentLocationsBuilder()List of nested objects pointing to the precise location of the finding within the file or record.ContentLocation.BuilderaddContentLocationsBuilder(int index)List of nested objects pointing to the precise location of the finding within the file or record.Location.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Locationbuild()LocationbuildPartial()Location.Builderclear()Location.BuilderclearByteRange()Zero-based byte offsets delimiting the finding.Location.BuilderclearCodepointRange()Unicode character offsets delimiting the finding.Location.BuilderclearContainer()Information about the container where this finding occurred, if available.Location.BuilderclearContentLocations()List of nested objects pointing to the precise location of the finding within the file or record.Location.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Location.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Location.Builderclone()RangegetByteRange()Zero-based byte offsets delimiting the finding.Range.BuildergetByteRangeBuilder()Zero-based byte offsets delimiting the finding.RangeOrBuildergetByteRangeOrBuilder()Zero-based byte offsets delimiting the finding.RangegetCodepointRange()Unicode character offsets delimiting the finding.Range.BuildergetCodepointRangeBuilder()Unicode character offsets delimiting the finding.RangeOrBuildergetCodepointRangeOrBuilder()Unicode character offsets delimiting the finding.ContainergetContainer()Information about the container where this finding occurred, if available.Container.BuildergetContainerBuilder()Information about the container where this finding occurred, if available.ContainerOrBuildergetContainerOrBuilder()Information about the container where this finding occurred, if available.ContentLocationgetContentLocations(int index)List of nested objects pointing to the precise location of the finding within the file or record.ContentLocation.BuildergetContentLocationsBuilder(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.intgetContentLocationsCount()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.ContentLocationOrBuildergetContentLocationsOrBuilder(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.LocationgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()booleanhasByteRange()Zero-based byte offsets delimiting the finding.booleanhasCodepointRange()Unicode character offsets delimiting the finding.booleanhasContainer()Information about the container where this finding occurred, if available.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Location.BuildermergeByteRange(Range value)Zero-based byte offsets delimiting the finding.Location.BuildermergeCodepointRange(Range value)Unicode character offsets delimiting the finding.Location.BuildermergeContainer(Container value)Information about the container where this finding occurred, if available.Location.BuildermergeFrom(Location other)Location.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Location.BuildermergeFrom(com.google.protobuf.Message other)Location.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Location.BuilderremoveContentLocations(int index)List of nested objects pointing to the precise location of the finding within the file or record.Location.BuildersetByteRange(Range value)Zero-based byte offsets delimiting the finding.Location.BuildersetByteRange(Range.Builder builderForValue)Zero-based byte offsets delimiting the finding.Location.BuildersetCodepointRange(Range value)Unicode character offsets delimiting the finding.Location.BuildersetCodepointRange(Range.Builder builderForValue)Unicode character offsets delimiting the finding.Location.BuildersetContainer(Container value)Information about the container where this finding occurred, if available.Location.BuildersetContainer(Container.Builder builderForValue)Information about the container where this finding occurred, if available.Location.BuildersetContentLocations(int index, ContentLocation value)List of nested objects pointing to the precise location of the finding within the file or record.Location.BuildersetContentLocations(int index, ContentLocation.Builder builderForValue)List of nested objects pointing to the precise location of the finding within the file or record.Location.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Location.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Location.BuildersetUnknownFields(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
clear
public Location.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
getDefaultInstanceForType
public Location getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Location build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Location buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Location.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
setField
public Location.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
clearField
public Location.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
clearOneof
public Location.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
setRepeatedField
public Location.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
addRepeatedField
public Location.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
mergeFrom
public Location.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Location.Builder>
-
mergeFrom
public Location.Builder mergeFrom(Location other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
hasByteRangein 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:
getByteRangein 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:
getByteRangeOrBuilderin 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:
hasCodepointRangein 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:
getCodepointRangein 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:
getCodepointRangeOrBuilderin 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:
getContentLocationsListin 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:
getContentLocationsCountin 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:
getContentLocationsin 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:
getContentLocationsOrBuilderin 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:
getContentLocationsOrBuilderListin 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:
hasContainerin 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:
getContainerin 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:
getContainerOrBuilderin interfaceLocationOrBuilder
-
setUnknownFields
public final Location.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
mergeUnknownFields
public final Location.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Location.Builder>
-
-