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
IMAGE_CLASSIFICATION_ANNOTATION_FIELD_NUMBER
public static final int IMAGE_CLASSIFICATION_ANNOTATION_FIELD_NUMBER
Field Value
IMAGE_POLYLINE_ANNOTATION_FIELD_NUMBER
public static final int IMAGE_POLYLINE_ANNOTATION_FIELD_NUMBER
Field Value
IMAGE_SEGMENTATION_ANNOTATION_FIELD_NUMBER
public static final int IMAGE_SEGMENTATION_ANNOTATION_FIELD_NUMBER
Field Value
TEXT_CLASSIFICATION_ANNOTATION_FIELD_NUMBER
public static final int TEXT_CLASSIFICATION_ANNOTATION_FIELD_NUMBER
Field Value
public static final int TEXT_ENTITY_EXTRACTION_ANNOTATION_FIELD_NUMBER
Field Value
VIDEO_CLASSIFICATION_ANNOTATION_FIELD_NUMBER
public static final int VIDEO_CLASSIFICATION_ANNOTATION_FIELD_NUMBER
Field Value
VIDEO_EVENT_ANNOTATION_FIELD_NUMBER
public static final int VIDEO_EVENT_ANNOTATION_FIELD_NUMBER
Field Value
VIDEO_OBJECT_TRACKING_ANNOTATION_FIELD_NUMBER
public static final int VIDEO_OBJECT_TRACKING_ANNOTATION_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static AnnotationValue getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static AnnotationValue.Builder newBuilder()
Returns
newBuilder(AnnotationValue prototype)
public static AnnotationValue.Builder newBuilder(AnnotationValue prototype)
Parameter
Returns
public static AnnotationValue parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static AnnotationValue parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static AnnotationValue parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AnnotationValue parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static AnnotationValue parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AnnotationValue parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static AnnotationValue parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static AnnotationValue parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static AnnotationValue parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static AnnotationValue parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static AnnotationValue parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AnnotationValue parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<AnnotationValue> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public AnnotationValue getDefaultInstanceForType()
Returns
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
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
getImageClassificationAnnotation()
public ImageClassificationAnnotation getImageClassificationAnnotation()
Annotation value for image classification case.
.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1;
Returns
getImageClassificationAnnotationOrBuilder()
public ImageClassificationAnnotationOrBuilder getImageClassificationAnnotationOrBuilder()
Annotation value for image classification case.
.google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1;
Returns
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
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
getImageSegmentationAnnotation()
public ImageSegmentationAnnotation getImageSegmentationAnnotation()
Annotation value for image segmentation.
.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9;
Returns
getImageSegmentationAnnotationOrBuilder()
public ImageSegmentationAnnotationOrBuilder getImageSegmentationAnnotationOrBuilder()
Annotation value for image segmentation.
.google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9;
Returns
getParserForType()
public Parser<AnnotationValue> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getTextClassificationAnnotation()
public TextClassificationAnnotation getTextClassificationAnnotation()
Annotation value for text classification case.
.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3;
Returns
getTextClassificationAnnotationOrBuilder()
public TextClassificationAnnotationOrBuilder getTextClassificationAnnotationOrBuilder()
Annotation value for text classification case.
.google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3;
Returns
public TextEntityExtractionAnnotation getTextEntityExtractionAnnotation()
Annotation value for text entity extraction case.
.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10;
Returns
public TextEntityExtractionAnnotationOrBuilder getTextEntityExtractionAnnotationOrBuilder()
Annotation value for text entity extraction case.
.google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10;
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
getValueTypeCase()
public AnnotationValue.ValueTypeCase getValueTypeCase()
Returns
getVideoClassificationAnnotation()
public VideoClassificationAnnotation getVideoClassificationAnnotation()
Annotation value for video classification case.
.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4;
Returns
getVideoClassificationAnnotationOrBuilder()
public VideoClassificationAnnotationOrBuilder getVideoClassificationAnnotationOrBuilder()
Annotation value for video classification case.
.google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4;
Returns
getVideoEventAnnotation()
public VideoEventAnnotation getVideoEventAnnotation()
Annotation value for video event case.
.google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6;
Returns
getVideoEventAnnotationOrBuilder()
public VideoEventAnnotationOrBuilder getVideoEventAnnotationOrBuilder()
Annotation value for video event case.
.google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6;
Returns
getVideoObjectTrackingAnnotation()
public VideoObjectTrackingAnnotation getVideoObjectTrackingAnnotation()
Annotation value for video object detection and tracking case.
.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5;
Returns
getVideoObjectTrackingAnnotationOrBuilder()
public VideoObjectTrackingAnnotationOrBuilder getVideoObjectTrackingAnnotationOrBuilder()
Annotation value for video object detection and tracking case.
.google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5;
Returns
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.
|
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()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public AnnotationValue.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AnnotationValue.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public AnnotationValue.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions