Class ImageObjectDetectionAnnotation.Builder (2.83.0)

public static final class ImageObjectDetectionAnnotation.Builder extends GeneratedMessage.Builder<ImageObjectDetectionAnnotation.Builder> implements ImageObjectDetectionAnnotationOrBuilder

Annotation details for image object detection.

Protobuf type google.cloud.automl.v1beta1.ImageObjectDetectionAnnotation

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public ImageObjectDetectionAnnotation build()
Returns
Type Description
ImageObjectDetectionAnnotation

buildPartial()

public ImageObjectDetectionAnnotation buildPartial()
Returns
Type Description
ImageObjectDetectionAnnotation

clear()

public ImageObjectDetectionAnnotation.Builder clear()
Returns
Type Description
ImageObjectDetectionAnnotation.Builder
Overrides

clearBoundingBox()

public ImageObjectDetectionAnnotation.Builder clearBoundingBox()

Output only. The rectangle representing the object location.

.google.cloud.automl.v1beta1.BoundingPoly bounding_box = 1;

Returns
Type Description
ImageObjectDetectionAnnotation.Builder

clearScore()

public ImageObjectDetectionAnnotation.Builder clearScore()

Output only. The confidence that this annotation is positive for the parent example, value in [0, 1], higher means higher positivity confidence.

float score = 2;

Returns
Type Description
ImageObjectDetectionAnnotation.Builder

This builder for chaining.

getBoundingBox()

public BoundingPoly getBoundingBox()

Output only. The rectangle representing the object location.

.google.cloud.automl.v1beta1.BoundingPoly bounding_box = 1;

Returns
Type Description
BoundingPoly

The boundingBox.

getBoundingBoxBuilder()

public BoundingPoly.Builder getBoundingBoxBuilder()

Output only. The rectangle representing the object location.

.google.cloud.automl.v1beta1.BoundingPoly bounding_box = 1;

Returns
Type Description
BoundingPoly.Builder

getBoundingBoxOrBuilder()

public BoundingPolyOrBuilder getBoundingBoxOrBuilder()

Output only. The rectangle representing the object location.

.google.cloud.automl.v1beta1.BoundingPoly bounding_box = 1;

Returns
Type Description
BoundingPolyOrBuilder

getDefaultInstanceForType()

public ImageObjectDetectionAnnotation getDefaultInstanceForType()
Returns
Type Description
ImageObjectDetectionAnnotation

getDescriptorForType()

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

getScore()

public float getScore()

Output only. The confidence that this annotation is positive for the parent example, value in [0, 1], higher means higher positivity confidence.

float score = 2;

Returns
Type Description
float

The score.

hasBoundingBox()

public boolean hasBoundingBox()

Output only. The rectangle representing the object location.

.google.cloud.automl.v1beta1.BoundingPoly bounding_box = 1;

Returns
Type Description
boolean

Whether the boundingBox field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeBoundingBox(BoundingPoly value)

public ImageObjectDetectionAnnotation.Builder mergeBoundingBox(BoundingPoly value)

Output only. The rectangle representing the object location.

.google.cloud.automl.v1beta1.BoundingPoly bounding_box = 1;

Parameter
Name Description
value BoundingPoly
Returns
Type Description
ImageObjectDetectionAnnotation.Builder

mergeFrom(ImageObjectDetectionAnnotation other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ImageObjectDetectionAnnotation.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ImageObjectDetectionAnnotation.Builder
Overrides

setBoundingBox(BoundingPoly value)

public ImageObjectDetectionAnnotation.Builder setBoundingBox(BoundingPoly value)

Output only. The rectangle representing the object location.

.google.cloud.automl.v1beta1.BoundingPoly bounding_box = 1;

Parameter
Name Description
value BoundingPoly
Returns
Type Description
ImageObjectDetectionAnnotation.Builder

setBoundingBox(BoundingPoly.Builder builderForValue)

public ImageObjectDetectionAnnotation.Builder setBoundingBox(BoundingPoly.Builder builderForValue)

Output only. The rectangle representing the object location.

.google.cloud.automl.v1beta1.BoundingPoly bounding_box = 1;

Parameter
Name Description
builderForValue BoundingPoly.Builder
Returns
Type Description
ImageObjectDetectionAnnotation.Builder

setScore(float value)

public ImageObjectDetectionAnnotation.Builder setScore(float value)

Output only. The confidence that this annotation is positive for the parent example, value in [0, 1], higher means higher positivity confidence.

float score = 2;

Parameter
Name Description
value float

The score to set.

Returns
Type Description
ImageObjectDetectionAnnotation.Builder

This builder for chaining.