public final class ImageObjectDetectionAnnotation extends GeneratedMessageV3 implements ImageObjectDetectionAnnotationOrBuilder
Annotation details for image object detection.
Protobuf type google.cloud.automl.v1.ImageObjectDetectionAnnotation
Static Fields
BOUNDING_BOX_FIELD_NUMBER
public static final int BOUNDING_BOX_FIELD_NUMBER
Field Value
SCORE_FIELD_NUMBER
public static final int SCORE_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static ImageObjectDetectionAnnotation getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static ImageObjectDetectionAnnotation.Builder newBuilder()
Returns
newBuilder(ImageObjectDetectionAnnotation prototype)
public static ImageObjectDetectionAnnotation.Builder newBuilder(ImageObjectDetectionAnnotation prototype)
Parameter
Returns
public static ImageObjectDetectionAnnotation parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static ImageObjectDetectionAnnotation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static ImageObjectDetectionAnnotation parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ImageObjectDetectionAnnotation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static ImageObjectDetectionAnnotation parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ImageObjectDetectionAnnotation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ImageObjectDetectionAnnotation parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static ImageObjectDetectionAnnotation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ImageObjectDetectionAnnotation parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static ImageObjectDetectionAnnotation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static ImageObjectDetectionAnnotation parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ImageObjectDetectionAnnotation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<ImageObjectDetectionAnnotation> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getBoundingBox()
public BoundingPoly getBoundingBox()
Output only. The rectangle representing the object location.
.google.cloud.automl.v1.BoundingPoly bounding_box = 1;
Returns
getBoundingBoxOrBuilder()
public BoundingPolyOrBuilder getBoundingBoxOrBuilder()
Output only. The rectangle representing the object location.
.google.cloud.automl.v1.BoundingPoly bounding_box = 1;
Returns
getDefaultInstanceForType()
public ImageObjectDetectionAnnotation getDefaultInstanceForType()
Returns
getParserForType()
public Parser<ImageObjectDetectionAnnotation> getParserForType()
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.
|
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasBoundingBox()
public boolean hasBoundingBox()
Output only. The rectangle representing the object location.
.google.cloud.automl.v1.BoundingPoly bounding_box = 1;
Returns
Type | Description |
boolean | Whether the boundingBox field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public ImageObjectDetectionAnnotation.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ImageObjectDetectionAnnotation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public ImageObjectDetectionAnnotation.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions