Class ImageBoundingPolyAnnotation (0.131.0)

public final class ImageBoundingPolyAnnotation extends GeneratedMessageV3 implements ImageBoundingPolyAnnotationOrBuilder

Image bounding poly annotation. It represents a polygon including bounding box in the image.

Protobuf type google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation

Static Fields

ANNOTATION_SPEC_FIELD_NUMBER

public static final int ANNOTATION_SPEC_FIELD_NUMBER
Field Value
TypeDescription
int

BOUNDING_POLY_FIELD_NUMBER

public static final int BOUNDING_POLY_FIELD_NUMBER
Field Value
TypeDescription
int

NORMALIZED_BOUNDING_POLY_FIELD_NUMBER

public static final int NORMALIZED_BOUNDING_POLY_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ImageBoundingPolyAnnotation getDefaultInstance()
Returns
TypeDescription
ImageBoundingPolyAnnotation

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ImageBoundingPolyAnnotation.Builder newBuilder()
Returns
TypeDescription
ImageBoundingPolyAnnotation.Builder

newBuilder(ImageBoundingPolyAnnotation prototype)

public static ImageBoundingPolyAnnotation.Builder newBuilder(ImageBoundingPolyAnnotation prototype)
Parameter
NameDescription
prototypeImageBoundingPolyAnnotation
Returns
TypeDescription
ImageBoundingPolyAnnotation.Builder

parseDelimitedFrom(InputStream input)

public static ImageBoundingPolyAnnotation parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ImageBoundingPolyAnnotation
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ImageBoundingPolyAnnotation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImageBoundingPolyAnnotation
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ImageBoundingPolyAnnotation parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ImageBoundingPolyAnnotation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ImageBoundingPolyAnnotation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImageBoundingPolyAnnotation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ImageBoundingPolyAnnotation parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ImageBoundingPolyAnnotation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ImageBoundingPolyAnnotation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImageBoundingPolyAnnotation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ImageBoundingPolyAnnotation parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ImageBoundingPolyAnnotation
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ImageBoundingPolyAnnotation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImageBoundingPolyAnnotation
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ImageBoundingPolyAnnotation parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ImageBoundingPolyAnnotation
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ImageBoundingPolyAnnotation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImageBoundingPolyAnnotation
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ImageBoundingPolyAnnotation parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ImageBoundingPolyAnnotation
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ImageBoundingPolyAnnotation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImageBoundingPolyAnnotation
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ImageBoundingPolyAnnotation> parser()
Returns
TypeDescription
Parser<ImageBoundingPolyAnnotation>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAnnotationSpec()

public AnnotationSpec getAnnotationSpec()

Label of object in this bounding polygon.

.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;

Returns
TypeDescription
AnnotationSpec

The annotationSpec.

getAnnotationSpecOrBuilder()

public AnnotationSpecOrBuilder getAnnotationSpecOrBuilder()

Label of object in this bounding polygon.

.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;

Returns
TypeDescription
AnnotationSpecOrBuilder

getBoundedAreaCase()

public ImageBoundingPolyAnnotation.BoundedAreaCase getBoundedAreaCase()
Returns
TypeDescription
ImageBoundingPolyAnnotation.BoundedAreaCase

getBoundingPoly()

public BoundingPoly getBoundingPoly()

.google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 2;

Returns
TypeDescription
BoundingPoly

The boundingPoly.

getBoundingPolyOrBuilder()

public BoundingPolyOrBuilder getBoundingPolyOrBuilder()

.google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 2;

Returns
TypeDescription
BoundingPolyOrBuilder

getDefaultInstanceForType()

public ImageBoundingPolyAnnotation getDefaultInstanceForType()
Returns
TypeDescription
ImageBoundingPolyAnnotation

getNormalizedBoundingPoly()

public NormalizedBoundingPoly getNormalizedBoundingPoly()

.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3;

Returns
TypeDescription
NormalizedBoundingPoly

The normalizedBoundingPoly.

getNormalizedBoundingPolyOrBuilder()

public NormalizedBoundingPolyOrBuilder getNormalizedBoundingPolyOrBuilder()

.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3;

Returns
TypeDescription
NormalizedBoundingPolyOrBuilder

getParserForType()

public Parser<ImageBoundingPolyAnnotation> getParserForType()
Returns
TypeDescription
Parser<ImageBoundingPolyAnnotation>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasAnnotationSpec()

public boolean hasAnnotationSpec()

Label of object in this bounding polygon.

.google.cloud.datalabeling.v1beta1.AnnotationSpec annotation_spec = 1;

Returns
TypeDescription
boolean

Whether the annotationSpec field is set.

hasBoundingPoly()

public boolean hasBoundingPoly()

.google.cloud.datalabeling.v1beta1.BoundingPoly bounding_poly = 2;

Returns
TypeDescription
boolean

Whether the boundingPoly field is set.

hasNormalizedBoundingPoly()

public boolean hasNormalizedBoundingPoly()

.google.cloud.datalabeling.v1beta1.NormalizedBoundingPoly normalized_bounding_poly = 3;

Returns
TypeDescription
boolean

Whether the normalizedBoundingPoly field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ImageBoundingPolyAnnotation.Builder newBuilderForType()
Returns
TypeDescription
ImageBoundingPolyAnnotation.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ImageBoundingPolyAnnotation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ImageBoundingPolyAnnotation.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ImageBoundingPolyAnnotation.Builder toBuilder()
Returns
TypeDescription
ImageBoundingPolyAnnotation.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException