Class ImageLocation.Builder (3.21.0)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

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
NameDescription
valuesIterable<? extends com.google.privacy.dlp.v2.BoundingBox>
Returns
TypeDescription
ImageLocation.Builder

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;

Parameter
NameDescription
valueBoundingBox
Returns
TypeDescription
ImageLocation.Builder

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;

Parameter
NameDescription
builderForValueBoundingBox.Builder
Returns
TypeDescription
ImageLocation.Builder

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;

Parameters
NameDescription
indexint
valueBoundingBox
Returns
TypeDescription
ImageLocation.Builder

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;

Parameters
NameDescription
indexint
builderForValueBoundingBox.Builder
Returns
TypeDescription
ImageLocation.Builder

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;

Returns
TypeDescription
BoundingBox.Builder

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
NameDescription
indexint
Returns
TypeDescription
BoundingBox.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ImageLocation build()
Returns
TypeDescription
ImageLocation

buildPartial()

public ImageLocation buildPartial()
Returns
TypeDescription
ImageLocation

clear()

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

Returns
TypeDescription
ImageLocation.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public ImageLocation.Builder clone()
Returns
TypeDescription
ImageLocation.Builder
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
NameDescription
indexint
Returns
TypeDescription
BoundingBox

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
NameDescription
indexint
Returns
TypeDescription
BoundingBox.Builder

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;

Returns
TypeDescription
List<Builder>

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
TypeDescription
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;

Returns
TypeDescription
List<BoundingBox>

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
NameDescription
indexint
Returns
TypeDescription
BoundingBoxOrBuilder

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
TypeDescription
List<? extends com.google.privacy.dlp.v2.BoundingBoxOrBuilder>

getDefaultInstanceForType()

public ImageLocation getDefaultInstanceForType()
Returns
TypeDescription
ImageLocation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ImageLocation other)

public ImageLocation.Builder mergeFrom(ImageLocation other)
Parameter
NameDescription
otherImageLocation
Returns
TypeDescription
ImageLocation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ImageLocation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ImageLocation.Builder
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
NameDescription
indexint
Returns
TypeDescription
ImageLocation.Builder

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;

Parameters
NameDescription
indexint
valueBoundingBox
Returns
TypeDescription
ImageLocation.Builder

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;

Parameters
NameDescription
indexint
builderForValueBoundingBox.Builder
Returns
TypeDescription
ImageLocation.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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