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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ImageObjectDetectionAnnotation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ImageObjectDetectionAnnotation build()
Returns
buildPartial()
public ImageObjectDetectionAnnotation buildPartial()
Returns
clear()
public ImageObjectDetectionAnnotation.Builder clear()
Returns
Overrides
clearBoundingBox()
public ImageObjectDetectionAnnotation.Builder clearBoundingBox()
Output only. The rectangle representing the object location.
.google.cloud.automl.v1beta1.BoundingPoly bounding_box = 1;
Returns
clearField(Descriptors.FieldDescriptor field)
public ImageObjectDetectionAnnotation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ImageObjectDetectionAnnotation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
clone()
public ImageObjectDetectionAnnotation.Builder clone()
Returns
Overrides
getBoundingBox()
public BoundingPoly getBoundingBox()
Output only. The rectangle representing the object location.
.google.cloud.automl.v1beta1.BoundingPoly bounding_box = 1;
Returns
getBoundingBoxBuilder()
public BoundingPoly.Builder getBoundingBoxBuilder()
Output only. The rectangle representing the object location.
.google.cloud.automl.v1beta1.BoundingPoly bounding_box = 1;
Returns
getBoundingBoxOrBuilder()
public BoundingPolyOrBuilder getBoundingBoxOrBuilder()
Output only. The rectangle representing the object location.
.google.cloud.automl.v1beta1.BoundingPoly bounding_box = 1;
Returns
getDefaultInstanceForType()
public ImageObjectDetectionAnnotation getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
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
Returns
mergeFrom(ImageObjectDetectionAnnotation other)
public ImageObjectDetectionAnnotation.Builder mergeFrom(ImageObjectDetectionAnnotation other)
Parameter
Returns
public ImageObjectDetectionAnnotation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ImageObjectDetectionAnnotation.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ImageObjectDetectionAnnotation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ImageObjectDetectionAnnotation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ImageObjectDetectionAnnotation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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
setUnknownFields(UnknownFieldSet unknownFields)
public final ImageObjectDetectionAnnotation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides