Class ImageLocation.Builder (3.87.0)

public static final class ImageLocation.Builder extends GeneratedMessage.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
Type Description
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
Name Description
values Iterable<? extends com.google.privacy.dlp.v2.BoundingBox>
Returns
Type Description
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
Name Description
value BoundingBox
Returns
Type Description
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
Name Description
builderForValue BoundingBox.Builder
Returns
Type Description
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
Name Description
index int
value BoundingBox
Returns
Type Description
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
Name Description
index int
builderForValue BoundingBox.Builder
Returns
Type Description
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
Type Description
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
Name Description
index int
Returns
Type Description
BoundingBox.Builder

build()

public ImageLocation build()
Returns
Type Description
ImageLocation

buildPartial()

public ImageLocation buildPartial()
Returns
Type Description
ImageLocation

clear()

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

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
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
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
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;

Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Type Description
List<? extends com.google.privacy.dlp.v2.BoundingBoxOrBuilder>

getDefaultInstanceForType()

public ImageLocation getDefaultInstanceForType()
Returns
Type Description
ImageLocation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ImageLocation other)

public ImageLocation.Builder mergeFrom(ImageLocation other)
Parameter
Name Description
other ImageLocation
Returns
Type Description
ImageLocation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ImageLocation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImageLocation.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ImageLocation.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
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
Name Description
index int
Returns
Type Description
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
Name Description
index int
value BoundingBox
Returns
Type Description
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
Name Description
index int
builderForValue BoundingBox.Builder
Returns
Type Description
ImageLocation.Builder