Class ImageLocation.Builder (3.23.0)
Note: Some or all of the information on this page might not apply
to Trusted Cloud. For a list of services that are available in
Trusted Cloud, see Services available for
Trusted Cloud .
Version 3.23.0keyboard_arrow_down
public static final class ImageLocation . Builder extends GeneratedMessageV3 . Builder<ImageLocation . Builder > implements ImageLocationOrBuilder
Location of the finding within an image.
Protobuf type google.privacy.dlp.v2.ImageLocation
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addAllBoundingBoxes(Iterable<? extends BoundingBox> values)
public ImageLocation . Builder addAllBoundingBoxes ( Iterable <? extends BoundingBox > values )
Bounding boxes locating the pixels within the image containing the finding.
repeated .google.privacy.dlp.v2.BoundingBox bounding_boxes = 1;
Parameter
Name
Description
values
Iterable <? extends com.google.privacy.dlp.v2.BoundingBox >
addBoundingBoxes(BoundingBox value)
public ImageLocation . Builder addBoundingBoxes ( BoundingBox value )
Bounding boxes locating the pixels within the image containing the finding.
repeated .google.privacy.dlp.v2.BoundingBox bounding_boxes = 1;
addBoundingBoxes(BoundingBox.Builder builderForValue)
public ImageLocation . Builder addBoundingBoxes ( BoundingBox . Builder builderForValue )
Bounding boxes locating the pixels within the image containing the finding.
repeated .google.privacy.dlp.v2.BoundingBox bounding_boxes = 1;
addBoundingBoxes(int index, BoundingBox value)
public ImageLocation . Builder addBoundingBoxes ( int index , BoundingBox value )
Bounding boxes locating the pixels within the image containing the finding.
repeated .google.privacy.dlp.v2.BoundingBox bounding_boxes = 1;
addBoundingBoxes(int index, BoundingBox.Builder builderForValue)
public ImageLocation . Builder addBoundingBoxes ( int index , BoundingBox . Builder builderForValue )
Bounding boxes locating the pixels within the image containing the finding.
repeated .google.privacy.dlp.v2.BoundingBox bounding_boxes = 1;
addBoundingBoxesBuilder()
public BoundingBox . Builder addBoundingBoxesBuilder ()
Bounding boxes locating the pixels within the image containing the finding.
repeated .google.privacy.dlp.v2.BoundingBox bounding_boxes = 1;
addBoundingBoxesBuilder(int index)
public BoundingBox . Builder addBoundingBoxesBuilder ( int index )
Bounding boxes locating the pixels within the image containing the finding.
repeated .google.privacy.dlp.v2.BoundingBox bounding_boxes = 1;
Parameter
Name
Description
index
int
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ImageLocation . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public ImageLocation build ()
buildPartial()
public ImageLocation buildPartial ()
clear()
public ImageLocation . Builder clear ()
Overrides
clearBoundingBoxes()
public ImageLocation . Builder clearBoundingBoxes ()
Bounding boxes locating the pixels within the image containing the finding.
repeated .google.privacy.dlp.v2.BoundingBox bounding_boxes = 1;
clearField(Descriptors.FieldDescriptor field)
public ImageLocation . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ImageLocation . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clone()
public ImageLocation . Builder clone ()
Overrides
getBoundingBoxes(int index)
public BoundingBox getBoundingBoxes ( int index )
Bounding boxes locating the pixels within the image containing the finding.
repeated .google.privacy.dlp.v2.BoundingBox bounding_boxes = 1;
Parameter
Name
Description
index
int
getBoundingBoxesBuilder(int index)
public BoundingBox . Builder getBoundingBoxesBuilder ( int index )
Bounding boxes locating the pixels within the image containing the finding.
repeated .google.privacy.dlp.v2.BoundingBox bounding_boxes = 1;
Parameter
Name
Description
index
int
getBoundingBoxesBuilderList()
public List<BoundingBox . Builder > getBoundingBoxesBuilderList ()
Bounding boxes locating the pixels within the image containing the finding.
repeated .google.privacy.dlp.v2.BoundingBox bounding_boxes = 1;
getBoundingBoxesCount()
public int getBoundingBoxesCount ()
Bounding boxes locating the pixels within the image containing the finding.
repeated .google.privacy.dlp.v2.BoundingBox bounding_boxes = 1;
Returns
Type
Description
int
getBoundingBoxesList()
public List<BoundingBox> getBoundingBoxesList ()
Bounding boxes locating the pixels within the image containing the finding.
repeated .google.privacy.dlp.v2.BoundingBox bounding_boxes = 1;
getBoundingBoxesOrBuilder(int index)
public BoundingBoxOrBuilder getBoundingBoxesOrBuilder ( int index )
Bounding boxes locating the pixels within the image containing the finding.
repeated .google.privacy.dlp.v2.BoundingBox bounding_boxes = 1;
Parameter
Name
Description
index
int
getBoundingBoxesOrBuilderList()
public List <? extends BoundingBoxOrBuilder > getBoundingBoxesOrBuilderList ()
Bounding boxes locating the pixels within the image containing the finding.
repeated .google.privacy.dlp.v2.BoundingBox bounding_boxes = 1;
Returns
Type
Description
List <? extends com.google.privacy.dlp.v2.BoundingBoxOrBuilder >
getDefaultInstanceForType()
public ImageLocation getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(ImageLocation other)
public ImageLocation . Builder mergeFrom ( ImageLocation other )
public ImageLocation . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public ImageLocation . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ImageLocation . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
removeBoundingBoxes(int index)
public ImageLocation . Builder removeBoundingBoxes ( int index )
Bounding boxes locating the pixels within the image containing the finding.
repeated .google.privacy.dlp.v2.BoundingBox bounding_boxes = 1;
Parameter
Name
Description
index
int
setBoundingBoxes(int index, BoundingBox value)
public ImageLocation . Builder setBoundingBoxes ( int index , BoundingBox value )
Bounding boxes locating the pixels within the image containing the finding.
repeated .google.privacy.dlp.v2.BoundingBox bounding_boxes = 1;
setBoundingBoxes(int index, BoundingBox.Builder builderForValue)
public ImageLocation . Builder setBoundingBoxes ( int index , BoundingBox . Builder builderForValue )
Bounding boxes locating the pixels within the image containing the finding.
repeated .google.privacy.dlp.v2.BoundingBox bounding_boxes = 1;
setField(Descriptors.FieldDescriptor field, Object value)
public ImageLocation . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ImageLocation . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ImageLocation . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-18 UTC."],[],[],null,[]]