Class AnnotationValue (0.174.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
Type Description
int

IMAGE_CLASSIFICATION_ANNOTATION_FIELD_NUMBER

public static final int IMAGE_CLASSIFICATION_ANNOTATION_FIELD_NUMBER
Field Value
Type Description
int

IMAGE_POLYLINE_ANNOTATION_FIELD_NUMBER

public static final int IMAGE_POLYLINE_ANNOTATION_FIELD_NUMBER
Field Value
Type Description
int

IMAGE_SEGMENTATION_ANNOTATION_FIELD_NUMBER

public static final int IMAGE_SEGMENTATION_ANNOTATION_FIELD_NUMBER
Field Value
Type Description
int

TEXT_CLASSIFICATION_ANNOTATION_FIELD_NUMBER

public static final int TEXT_CLASSIFICATION_ANNOTATION_FIELD_NUMBER
Field Value
Type Description
int

TEXT_ENTITY_EXTRACTION_ANNOTATION_FIELD_NUMBER

public static final int TEXT_ENTITY_EXTRACTION_ANNOTATION_FIELD_NUMBER
Field Value
Type Description
int

VIDEO_CLASSIFICATION_ANNOTATION_FIELD_NUMBER

public static final int VIDEO_CLASSIFICATION_ANNOTATION_FIELD_NUMBER
Field Value
Type Description
int

VIDEO_EVENT_ANNOTATION_FIELD_NUMBER

public static final int VIDEO_EVENT_ANNOTATION_FIELD_NUMBER
Field Value
Type Description
int

VIDEO_OBJECT_TRACKING_ANNOTATION_FIELD_NUMBER

public static final int VIDEO_OBJECT_TRACKING_ANNOTATION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AnnotationValue getDefaultInstance()
Returns
Type Description
AnnotationValue

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static AnnotationValue.Builder newBuilder()
Returns
Type Description
AnnotationValue.Builder

newBuilder(AnnotationValue prototype)

public static AnnotationValue.Builder newBuilder(AnnotationValue prototype)
Parameter
Name Description
prototype AnnotationValue
Returns
Type Description
AnnotationValue.Builder

parseDelimitedFrom(InputStream input)

public static AnnotationValue parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AnnotationValue
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AnnotationValue parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnnotationValue
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AnnotationValue parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AnnotationValue
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AnnotationValue parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnnotationValue
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AnnotationValue parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AnnotationValue
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AnnotationValue parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnnotationValue
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AnnotationValue parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AnnotationValue
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AnnotationValue parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnnotationValue
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AnnotationValue parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AnnotationValue
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AnnotationValue parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnnotationValue
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AnnotationValue parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AnnotationValue
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AnnotationValue parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnnotationValue
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AnnotationValue> parser()
Returns
Type Description
Parser<AnnotationValue>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public AnnotationValue getDefaultInstanceForType()
Returns
Type Description
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
Type Description
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
Type Description
ImageBoundingPolyAnnotationOrBuilder

getImageClassificationAnnotation()

public ImageClassificationAnnotation getImageClassificationAnnotation()

Annotation value for image classification case.

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

Returns
Type Description
ImageClassificationAnnotation

The imageClassificationAnnotation.

getImageClassificationAnnotationOrBuilder()

public ImageClassificationAnnotationOrBuilder getImageClassificationAnnotationOrBuilder()

Annotation value for image classification case.

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

Returns
Type Description
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
Type Description
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
Type Description
ImagePolylineAnnotationOrBuilder

getImageSegmentationAnnotation()

public ImageSegmentationAnnotation getImageSegmentationAnnotation()

Annotation value for image segmentation.

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

Returns
Type Description
ImageSegmentationAnnotation

The imageSegmentationAnnotation.

getImageSegmentationAnnotationOrBuilder()

public ImageSegmentationAnnotationOrBuilder getImageSegmentationAnnotationOrBuilder()

Annotation value for image segmentation.

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

Returns
Type Description
ImageSegmentationAnnotationOrBuilder

getParserForType()

public Parser<AnnotationValue> getParserForType()
Returns
Type Description
Parser<AnnotationValue>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTextClassificationAnnotation()

public TextClassificationAnnotation getTextClassificationAnnotation()

Annotation value for text classification case.

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

Returns
Type Description
TextClassificationAnnotation

The textClassificationAnnotation.

getTextClassificationAnnotationOrBuilder()

public TextClassificationAnnotationOrBuilder getTextClassificationAnnotationOrBuilder()

Annotation value for text classification case.

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

Returns
Type Description
TextClassificationAnnotationOrBuilder

getTextEntityExtractionAnnotation()

public TextEntityExtractionAnnotation getTextEntityExtractionAnnotation()

Annotation value for text entity extraction case.

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

Returns
Type Description
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
Type Description
TextEntityExtractionAnnotationOrBuilder

getValueTypeCase()

public AnnotationValue.ValueTypeCase getValueTypeCase()
Returns
Type Description
AnnotationValue.ValueTypeCase

getVideoClassificationAnnotation()

public VideoClassificationAnnotation getVideoClassificationAnnotation()

Annotation value for video classification case.

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

Returns
Type Description
VideoClassificationAnnotation

The videoClassificationAnnotation.

getVideoClassificationAnnotationOrBuilder()

public VideoClassificationAnnotationOrBuilder getVideoClassificationAnnotationOrBuilder()

Annotation value for video classification case.

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

Returns
Type Description
VideoClassificationAnnotationOrBuilder

getVideoEventAnnotation()

public VideoEventAnnotation getVideoEventAnnotation()

Annotation value for video event case.

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

Returns
Type Description
VideoEventAnnotation

The videoEventAnnotation.

getVideoEventAnnotationOrBuilder()

public VideoEventAnnotationOrBuilder getVideoEventAnnotationOrBuilder()

Annotation value for video event case.

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

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the videoObjectTrackingAnnotation field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public AnnotationValue.Builder newBuilderForType()
Returns
Type Description
AnnotationValue.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AnnotationValue.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AnnotationValue.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public AnnotationValue.Builder toBuilder()
Returns
Type Description
AnnotationValue.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException