Class AnnotationValue (0.154.0)

public final class AnnotationValue extends GeneratedMessageV3 implements AnnotationValueOrBuilder

Annotation value for an example.

Protobuf type google.cloud.datalabeling.v1beta1.AnnotationValue

Static Fields

IMAGE_BOUNDING_POLY_ANNOTATION_FIELD_NUMBER

public static final int IMAGE_BOUNDING_POLY_ANNOTATION_FIELD_NUMBER
Field Value
TypeDescription
int

IMAGE_CLASSIFICATION_ANNOTATION_FIELD_NUMBER

public static final int IMAGE_CLASSIFICATION_ANNOTATION_FIELD_NUMBER
Field Value
TypeDescription
int

IMAGE_POLYLINE_ANNOTATION_FIELD_NUMBER

public static final int IMAGE_POLYLINE_ANNOTATION_FIELD_NUMBER
Field Value
TypeDescription
int

IMAGE_SEGMENTATION_ANNOTATION_FIELD_NUMBER

public static final int IMAGE_SEGMENTATION_ANNOTATION_FIELD_NUMBER
Field Value
TypeDescription
int

TEXT_CLASSIFICATION_ANNOTATION_FIELD_NUMBER

public static final int TEXT_CLASSIFICATION_ANNOTATION_FIELD_NUMBER
Field Value
TypeDescription
int

TEXT_ENTITY_EXTRACTION_ANNOTATION_FIELD_NUMBER

public static final int TEXT_ENTITY_EXTRACTION_ANNOTATION_FIELD_NUMBER
Field Value
TypeDescription
int

VIDEO_CLASSIFICATION_ANNOTATION_FIELD_NUMBER

public static final int VIDEO_CLASSIFICATION_ANNOTATION_FIELD_NUMBER
Field Value
TypeDescription
int

VIDEO_EVENT_ANNOTATION_FIELD_NUMBER

public static final int VIDEO_EVENT_ANNOTATION_FIELD_NUMBER
Field Value
TypeDescription
int

VIDEO_OBJECT_TRACKING_ANNOTATION_FIELD_NUMBER

public static final int VIDEO_OBJECT_TRACKING_ANNOTATION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AnnotationValue getDefaultInstance()
Returns
TypeDescription
AnnotationValue

getDescriptor()

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

newBuilder()

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

newBuilder(AnnotationValue prototype)

public static AnnotationValue.Builder newBuilder(AnnotationValue prototype)
Parameter
NameDescription
prototypeAnnotationValue
Returns
TypeDescription
AnnotationValue.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public AnnotationValue getDefaultInstanceForType()
Returns
TypeDescription
AnnotationValue

getImageBoundingPolyAnnotation()

public ImageBoundingPolyAnnotation getImageBoundingPolyAnnotation()

Annotation value for image bounding box, oriented bounding box and polygon cases.

.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2;

Returns
TypeDescription
ImageBoundingPolyAnnotation

The imageBoundingPolyAnnotation.

getImageBoundingPolyAnnotationOrBuilder()

public ImageBoundingPolyAnnotationOrBuilder getImageBoundingPolyAnnotationOrBuilder()

Annotation value for image bounding box, oriented bounding box and polygon cases.

.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2;

Returns
TypeDescription
ImageBoundingPolyAnnotationOrBuilder

getImageClassificationAnnotation()

public ImageClassificationAnnotation getImageClassificationAnnotation()

Annotation value for image classification case.

.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1;

Returns
TypeDescription
ImageClassificationAnnotation

The imageClassificationAnnotation.

getImageClassificationAnnotationOrBuilder()

public ImageClassificationAnnotationOrBuilder getImageClassificationAnnotationOrBuilder()

Annotation value for image classification case.

.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1;

Returns
TypeDescription
ImageClassificationAnnotationOrBuilder

getImagePolylineAnnotation()

public ImagePolylineAnnotation getImagePolylineAnnotation()

Annotation value for image polyline cases. Polyline here is different from BoundingPoly. It is formed by line segments connected to each other but not closed form(Bounding Poly). The line segments can cross each other.

.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8;

Returns
TypeDescription
ImagePolylineAnnotation

The imagePolylineAnnotation.

getImagePolylineAnnotationOrBuilder()

public ImagePolylineAnnotationOrBuilder getImagePolylineAnnotationOrBuilder()

Annotation value for image polyline cases. Polyline here is different from BoundingPoly. It is formed by line segments connected to each other but not closed form(Bounding Poly). The line segments can cross each other.

.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8;

Returns
TypeDescription
ImagePolylineAnnotationOrBuilder

getImageSegmentationAnnotation()

public ImageSegmentationAnnotation getImageSegmentationAnnotation()

Annotation value for image segmentation.

.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9;

Returns
TypeDescription
ImageSegmentationAnnotation

The imageSegmentationAnnotation.

getImageSegmentationAnnotationOrBuilder()

public ImageSegmentationAnnotationOrBuilder getImageSegmentationAnnotationOrBuilder()

Annotation value for image segmentation.

.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9;

Returns
TypeDescription
ImageSegmentationAnnotationOrBuilder

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getTextClassificationAnnotation()

public TextClassificationAnnotation getTextClassificationAnnotation()

Annotation value for text classification case.

.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3;

Returns
TypeDescription
TextClassificationAnnotation

The textClassificationAnnotation.

getTextClassificationAnnotationOrBuilder()

public TextClassificationAnnotationOrBuilder getTextClassificationAnnotationOrBuilder()

Annotation value for text classification case.

.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3;

Returns
TypeDescription
TextClassificationAnnotationOrBuilder

getTextEntityExtractionAnnotation()

public TextEntityExtractionAnnotation getTextEntityExtractionAnnotation()

Annotation value for text entity extraction case.

.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10;

Returns
TypeDescription
TextEntityExtractionAnnotation

The textEntityExtractionAnnotation.

getTextEntityExtractionAnnotationOrBuilder()

public TextEntityExtractionAnnotationOrBuilder getTextEntityExtractionAnnotationOrBuilder()

Annotation value for text entity extraction case.

.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10;

Returns
TypeDescription
TextEntityExtractionAnnotationOrBuilder

getValueTypeCase()

public AnnotationValue.ValueTypeCase getValueTypeCase()
Returns
TypeDescription
AnnotationValue.ValueTypeCase

getVideoClassificationAnnotation()

public VideoClassificationAnnotation getVideoClassificationAnnotation()

Annotation value for video classification case.

.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4;

Returns
TypeDescription
VideoClassificationAnnotation

The videoClassificationAnnotation.

getVideoClassificationAnnotationOrBuilder()

public VideoClassificationAnnotationOrBuilder getVideoClassificationAnnotationOrBuilder()

Annotation value for video classification case.

.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4;

Returns
TypeDescription
VideoClassificationAnnotationOrBuilder

getVideoEventAnnotation()

public VideoEventAnnotation getVideoEventAnnotation()

Annotation value for video event case.

.google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6;

Returns
TypeDescription
VideoEventAnnotation

The videoEventAnnotation.

getVideoEventAnnotationOrBuilder()

public VideoEventAnnotationOrBuilder getVideoEventAnnotationOrBuilder()

Annotation value for video event case.

.google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6;

Returns
TypeDescription
VideoEventAnnotationOrBuilder

getVideoObjectTrackingAnnotation()

public VideoObjectTrackingAnnotation getVideoObjectTrackingAnnotation()

Annotation value for video object detection and tracking case.

.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5;

Returns
TypeDescription
VideoObjectTrackingAnnotation

The videoObjectTrackingAnnotation.

getVideoObjectTrackingAnnotationOrBuilder()

public VideoObjectTrackingAnnotationOrBuilder getVideoObjectTrackingAnnotationOrBuilder()

Annotation value for video object detection and tracking case.

.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5;

Returns
TypeDescription
VideoObjectTrackingAnnotationOrBuilder

hasImageBoundingPolyAnnotation()

public boolean hasImageBoundingPolyAnnotation()

Annotation value for image bounding box, oriented bounding box and polygon cases.

.google.cloud.datalabeling.v1beta1.ImageBoundingPolyAnnotation image_bounding_poly_annotation = 2;

Returns
TypeDescription
boolean

Whether the imageBoundingPolyAnnotation field is set.

hasImageClassificationAnnotation()

public boolean hasImageClassificationAnnotation()

Annotation value for image classification case.

.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1;

Returns
TypeDescription
boolean

Whether the imageClassificationAnnotation field is set.

hasImagePolylineAnnotation()

public boolean hasImagePolylineAnnotation()

Annotation value for image polyline cases. Polyline here is different from BoundingPoly. It is formed by line segments connected to each other but not closed form(Bounding Poly). The line segments can cross each other.

.google.cloud.datalabeling.v1beta1.ImagePolylineAnnotation image_polyline_annotation = 8;

Returns
TypeDescription
boolean

Whether the imagePolylineAnnotation field is set.

hasImageSegmentationAnnotation()

public boolean hasImageSegmentationAnnotation()

Annotation value for image segmentation.

.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9;

Returns
TypeDescription
boolean

Whether the imageSegmentationAnnotation field is set.

hasTextClassificationAnnotation()

public boolean hasTextClassificationAnnotation()

Annotation value for text classification case.

.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3;

Returns
TypeDescription
boolean

Whether the textClassificationAnnotation field is set.

hasTextEntityExtractionAnnotation()

public boolean hasTextEntityExtractionAnnotation()

Annotation value for text entity extraction case.

.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10;

Returns
TypeDescription
boolean

Whether the textEntityExtractionAnnotation field is set.

hasVideoClassificationAnnotation()

public boolean hasVideoClassificationAnnotation()

Annotation value for video classification case.

.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4;

Returns
TypeDescription
boolean

Whether the videoClassificationAnnotation field is set.

hasVideoEventAnnotation()

public boolean hasVideoEventAnnotation()

Annotation value for video event case.

.google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6;

Returns
TypeDescription
boolean

Whether the videoEventAnnotation field is set.

hasVideoObjectTrackingAnnotation()

public boolean hasVideoObjectTrackingAnnotation()

Annotation value for video object detection and tracking case.

.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5;

Returns
TypeDescription
boolean

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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