Class ImagePolylineAnnotation (0.127.0)

public final class ImagePolylineAnnotation extends GeneratedMessageV3 implements ImagePolylineAnnotationOrBuilder

A polyline for the image annotation.

Protobuf type google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation

Static Fields

ANNOTATION_SPEC_FIELD_NUMBER

public static final int ANNOTATION_SPEC_FIELD_NUMBER
Field Value
TypeDescription
int

NORMALIZED_POLYLINE_FIELD_NUMBER

public static final int NORMALIZED_POLYLINE_FIELD_NUMBER
Field Value
TypeDescription
int

POLYLINE_FIELD_NUMBER

public static final int POLYLINE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ImagePolylineAnnotation getDefaultInstance()
Returns
TypeDescription
ImagePolylineAnnotation

getDescriptor()

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

newBuilder()

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

newBuilder(ImagePolylineAnnotation prototype)

public static ImagePolylineAnnotation.Builder newBuilder(ImagePolylineAnnotation prototype)
Parameter
NameDescription
prototypeImagePolylineAnnotation
Returns
TypeDescription
ImagePolylineAnnotation.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getAnnotationSpec()

public AnnotationSpec getAnnotationSpec()

Label of this polyline.

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

Returns
TypeDescription
AnnotationSpec

The annotationSpec.

getAnnotationSpecOrBuilder()

public AnnotationSpecOrBuilder getAnnotationSpecOrBuilder()

Label of this polyline.

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

Returns
TypeDescription
AnnotationSpecOrBuilder

getDefaultInstanceForType()

public ImagePolylineAnnotation getDefaultInstanceForType()
Returns
TypeDescription
ImagePolylineAnnotation

getNormalizedPolyline()

public NormalizedPolyline getNormalizedPolyline()

.google.cloud.datalabeling.v1beta1.NormalizedPolyline normalized_polyline = 3;

Returns
TypeDescription
NormalizedPolyline

The normalizedPolyline.

getNormalizedPolylineOrBuilder()

public NormalizedPolylineOrBuilder getNormalizedPolylineOrBuilder()

.google.cloud.datalabeling.v1beta1.NormalizedPolyline normalized_polyline = 3;

Returns
TypeDescription
NormalizedPolylineOrBuilder

getParserForType()

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

getPolyCase()

public ImagePolylineAnnotation.PolyCase getPolyCase()
Returns
TypeDescription
ImagePolylineAnnotation.PolyCase

getPolyline()

public Polyline getPolyline()

.google.cloud.datalabeling.v1beta1.Polyline polyline = 2;

Returns
TypeDescription
Polyline

The polyline.

getPolylineOrBuilder()

public PolylineOrBuilder getPolylineOrBuilder()

.google.cloud.datalabeling.v1beta1.Polyline polyline = 2;

Returns
TypeDescription
PolylineOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasAnnotationSpec()

public boolean hasAnnotationSpec()

Label of this polyline.

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

Returns
TypeDescription
boolean

Whether the annotationSpec field is set.

hasNormalizedPolyline()

public boolean hasNormalizedPolyline()

.google.cloud.datalabeling.v1beta1.NormalizedPolyline normalized_polyline = 3;

Returns
TypeDescription
boolean

Whether the normalizedPolyline field is set.

hasPolyline()

public boolean hasPolyline()

.google.cloud.datalabeling.v1beta1.Polyline polyline = 2;

Returns
TypeDescription
boolean

Whether the polyline 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 ImagePolylineAnnotation.Builder newBuilderForType()
Returns
TypeDescription
ImagePolylineAnnotation.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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