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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ImageObjectDetectionAnnotation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public ImageObjectDetectionAnnotation build()
buildPartial()
public ImageObjectDetectionAnnotation buildPartial()
clear()
public ImageObjectDetectionAnnotation.Builder clear()
Overrides
clearBoundingBox()
public ImageObjectDetectionAnnotation.Builder clearBoundingBox()
Output only. The rectangle representing the object location.
.google.cloud.automl.v1beta1.BoundingPoly bounding_box = 1;
clearField(Descriptors.FieldDescriptor field)
public ImageObjectDetectionAnnotation.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ImageObjectDetectionAnnotation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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;
clone()
public ImageObjectDetectionAnnotation.Builder clone()
Overrides
getBoundingBox()
public BoundingPoly getBoundingBox()
Output only. The rectangle representing the object location.
.google.cloud.automl.v1beta1.BoundingPoly bounding_box = 1;
getBoundingBoxBuilder()
public BoundingPoly.Builder getBoundingBoxBuilder()
Output only. The rectangle representing the object location.
.google.cloud.automl.v1beta1.BoundingPoly bounding_box = 1;
getBoundingBoxOrBuilder()
public BoundingPolyOrBuilder getBoundingBoxOrBuilder()
Output only. The rectangle representing the object location.
.google.cloud.automl.v1beta1.BoundingPoly bounding_box = 1;
getDefaultInstanceForType()
public ImageObjectDetectionAnnotation getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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()
Overrides
isInitialized()
public final boolean isInitialized()
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;
mergeFrom(ImageObjectDetectionAnnotation other)
public ImageObjectDetectionAnnotation.Builder mergeFrom(ImageObjectDetectionAnnotation other)
public ImageObjectDetectionAnnotation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ImageObjectDetectionAnnotation.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ImageObjectDetectionAnnotation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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;
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;
setField(Descriptors.FieldDescriptor field, Object value)
public ImageObjectDetectionAnnotation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ImageObjectDetectionAnnotation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final ImageObjectDetectionAnnotation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides