Class ImageObjectDetectionAnnotation.Builder (2.41.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ImageObjectDetectionAnnotation build()
Returns
TypeDescription
ImageObjectDetectionAnnotation

buildPartial()

public ImageObjectDetectionAnnotation buildPartial()
Returns
TypeDescription
ImageObjectDetectionAnnotation

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public ImageObjectDetectionAnnotation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
ImageObjectDetectionAnnotation.Builder

This builder for chaining.

clone()

public ImageObjectDetectionAnnotation.Builder clone()
Returns
TypeDescription
ImageObjectDetectionAnnotation.Builder
Overrides

getBoundingBox()

public BoundingPoly getBoundingBox()

Output only. The rectangle representing the object location.

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

Returns
TypeDescription
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
TypeDescription
BoundingPoly.Builder

getBoundingBoxOrBuilder()

public BoundingPolyOrBuilder getBoundingBoxOrBuilder()

Output only. The rectangle representing the object location.

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

Returns
TypeDescription
BoundingPolyOrBuilder

getDefaultInstanceForType()

public ImageObjectDetectionAnnotation getDefaultInstanceForType()
Returns
TypeDescription
ImageObjectDetectionAnnotation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
float

The score.

hasBoundingBox()

public boolean hasBoundingBox()

Output only. The rectangle representing the object location.

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

Returns
TypeDescription
boolean

Whether the boundingBox field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueBoundingPoly
Returns
TypeDescription
ImageObjectDetectionAnnotation.Builder

mergeFrom(ImageObjectDetectionAnnotation other)

public ImageObjectDetectionAnnotation.Builder mergeFrom(ImageObjectDetectionAnnotation other)
Parameter
NameDescription
otherImageObjectDetectionAnnotation
Returns
TypeDescription
ImageObjectDetectionAnnotation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public ImageObjectDetectionAnnotation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valuefloat

The score to set.

Returns
TypeDescription
ImageObjectDetectionAnnotation.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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