Class ImageObjectDetectionAnnotation.Builder (2.54.0)

public static final class ImageObjectDetectionAnnotation.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ImageObjectDetectionAnnotation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ImageObjectDetectionAnnotation.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public ImageObjectDetectionAnnotation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ImageObjectDetectionAnnotation.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ImageObjectDetectionAnnotation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ImageObjectDetectionAnnotation.Builder
Overrides

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.

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ImageObjectDetectionAnnotation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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

setField(Descriptors.FieldDescriptor field, Object value)

public ImageObjectDetectionAnnotation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ImageObjectDetectionAnnotation.Builder
Overrides

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

public ImageObjectDetectionAnnotation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ImageObjectDetectionAnnotation.Builder
Overrides

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.

setUnknownFields(UnknownFieldSet unknownFields)

public final ImageObjectDetectionAnnotation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ImageObjectDetectionAnnotation.Builder
Overrides