Class AnnotationValue

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.datalabeling.v1beta1.AnnotationValue
All Implemented Interfaces:
AnnotationValueOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class AnnotationValue extends com.google.protobuf.GeneratedMessage implements AnnotationValueOrBuilder
 Annotation value for an example.
 
Protobuf type google.cloud.datalabeling.v1beta1.AnnotationValue
See Also:
  • Field Details

    • IMAGE_CLASSIFICATION_ANNOTATION_FIELD_NUMBER

      public static final int IMAGE_CLASSIFICATION_ANNOTATION_FIELD_NUMBER
      See Also:
    • IMAGE_BOUNDING_POLY_ANNOTATION_FIELD_NUMBER

      public static final int IMAGE_BOUNDING_POLY_ANNOTATION_FIELD_NUMBER
      See Also:
    • IMAGE_POLYLINE_ANNOTATION_FIELD_NUMBER

      public static final int IMAGE_POLYLINE_ANNOTATION_FIELD_NUMBER
      See Also:
    • IMAGE_SEGMENTATION_ANNOTATION_FIELD_NUMBER

      public static final int IMAGE_SEGMENTATION_ANNOTATION_FIELD_NUMBER
      See Also:
    • TEXT_CLASSIFICATION_ANNOTATION_FIELD_NUMBER

      public static final int TEXT_CLASSIFICATION_ANNOTATION_FIELD_NUMBER
      See Also:
    • TEXT_ENTITY_EXTRACTION_ANNOTATION_FIELD_NUMBER

      public static final int TEXT_ENTITY_EXTRACTION_ANNOTATION_FIELD_NUMBER
      See Also:
    • VIDEO_CLASSIFICATION_ANNOTATION_FIELD_NUMBER

      public static final int VIDEO_CLASSIFICATION_ANNOTATION_FIELD_NUMBER
      See Also:
    • VIDEO_OBJECT_TRACKING_ANNOTATION_FIELD_NUMBER

      public static final int VIDEO_OBJECT_TRACKING_ANNOTATION_FIELD_NUMBER
      See Also:
    • VIDEO_EVENT_ANNOTATION_FIELD_NUMBER

      public static final int VIDEO_EVENT_ANNOTATION_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getValueTypeCase

      public AnnotationValue.ValueTypeCase getValueTypeCase()
      Specified by:
      getValueTypeCase in interface AnnotationValueOrBuilder
    • hasImageClassificationAnnotation

      public boolean hasImageClassificationAnnotation()
       Annotation value for image classification case.
       
      .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1;
      Specified by:
      hasImageClassificationAnnotation in interface AnnotationValueOrBuilder
      Returns:
      Whether the imageClassificationAnnotation field is set.
    • getImageClassificationAnnotation

      public ImageClassificationAnnotation getImageClassificationAnnotation()
       Annotation value for image classification case.
       
      .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1;
      Specified by:
      getImageClassificationAnnotation in interface AnnotationValueOrBuilder
      Returns:
      The imageClassificationAnnotation.
    • getImageClassificationAnnotationOrBuilder

      public ImageClassificationAnnotationOrBuilder getImageClassificationAnnotationOrBuilder()
       Annotation value for image classification case.
       
      .google.cloud.datalabeling.v1beta1.ImageClassificationAnnotation image_classification_annotation = 1;
      Specified by:
      getImageClassificationAnnotationOrBuilder in interface AnnotationValueOrBuilder
    • 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;
      Specified by:
      hasImageBoundingPolyAnnotation in interface AnnotationValueOrBuilder
      Returns:
      Whether the imageBoundingPolyAnnotation field is set.
    • 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;
      Specified by:
      getImageBoundingPolyAnnotation in interface AnnotationValueOrBuilder
      Returns:
      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;
      Specified by:
      getImageBoundingPolyAnnotationOrBuilder in interface AnnotationValueOrBuilder
    • 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;
      Specified by:
      hasImagePolylineAnnotation in interface AnnotationValueOrBuilder
      Returns:
      Whether the imagePolylineAnnotation field is set.
    • 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;
      Specified by:
      getImagePolylineAnnotation in interface AnnotationValueOrBuilder
      Returns:
      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;
      Specified by:
      getImagePolylineAnnotationOrBuilder in interface AnnotationValueOrBuilder
    • hasImageSegmentationAnnotation

      public boolean hasImageSegmentationAnnotation()
       Annotation value for image segmentation.
       
      .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9;
      Specified by:
      hasImageSegmentationAnnotation in interface AnnotationValueOrBuilder
      Returns:
      Whether the imageSegmentationAnnotation field is set.
    • getImageSegmentationAnnotation

      public ImageSegmentationAnnotation getImageSegmentationAnnotation()
       Annotation value for image segmentation.
       
      .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9;
      Specified by:
      getImageSegmentationAnnotation in interface AnnotationValueOrBuilder
      Returns:
      The imageSegmentationAnnotation.
    • getImageSegmentationAnnotationOrBuilder

      public ImageSegmentationAnnotationOrBuilder getImageSegmentationAnnotationOrBuilder()
       Annotation value for image segmentation.
       
      .google.cloud.datalabeling.v1beta1.ImageSegmentationAnnotation image_segmentation_annotation = 9;
      Specified by:
      getImageSegmentationAnnotationOrBuilder in interface AnnotationValueOrBuilder
    • hasTextClassificationAnnotation

      public boolean hasTextClassificationAnnotation()
       Annotation value for text classification case.
       
      .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3;
      Specified by:
      hasTextClassificationAnnotation in interface AnnotationValueOrBuilder
      Returns:
      Whether the textClassificationAnnotation field is set.
    • getTextClassificationAnnotation

      public TextClassificationAnnotation getTextClassificationAnnotation()
       Annotation value for text classification case.
       
      .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3;
      Specified by:
      getTextClassificationAnnotation in interface AnnotationValueOrBuilder
      Returns:
      The textClassificationAnnotation.
    • getTextClassificationAnnotationOrBuilder

      public TextClassificationAnnotationOrBuilder getTextClassificationAnnotationOrBuilder()
       Annotation value for text classification case.
       
      .google.cloud.datalabeling.v1beta1.TextClassificationAnnotation text_classification_annotation = 3;
      Specified by:
      getTextClassificationAnnotationOrBuilder in interface AnnotationValueOrBuilder
    • hasTextEntityExtractionAnnotation

      public boolean hasTextEntityExtractionAnnotation()
       Annotation value for text entity extraction case.
       
      .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10;
      Specified by:
      hasTextEntityExtractionAnnotation in interface AnnotationValueOrBuilder
      Returns:
      Whether the textEntityExtractionAnnotation field is set.
    • getTextEntityExtractionAnnotation

      public TextEntityExtractionAnnotation getTextEntityExtractionAnnotation()
       Annotation value for text entity extraction case.
       
      .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10;
      Specified by:
      getTextEntityExtractionAnnotation in interface AnnotationValueOrBuilder
      Returns:
      The textEntityExtractionAnnotation.
    • getTextEntityExtractionAnnotationOrBuilder

      public TextEntityExtractionAnnotationOrBuilder getTextEntityExtractionAnnotationOrBuilder()
       Annotation value for text entity extraction case.
       
      .google.cloud.datalabeling.v1beta1.TextEntityExtractionAnnotation text_entity_extraction_annotation = 10;
      Specified by:
      getTextEntityExtractionAnnotationOrBuilder in interface AnnotationValueOrBuilder
    • hasVideoClassificationAnnotation

      public boolean hasVideoClassificationAnnotation()
       Annotation value for video classification case.
       
      .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4;
      Specified by:
      hasVideoClassificationAnnotation in interface AnnotationValueOrBuilder
      Returns:
      Whether the videoClassificationAnnotation field is set.
    • getVideoClassificationAnnotation

      public VideoClassificationAnnotation getVideoClassificationAnnotation()
       Annotation value for video classification case.
       
      .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4;
      Specified by:
      getVideoClassificationAnnotation in interface AnnotationValueOrBuilder
      Returns:
      The videoClassificationAnnotation.
    • getVideoClassificationAnnotationOrBuilder

      public VideoClassificationAnnotationOrBuilder getVideoClassificationAnnotationOrBuilder()
       Annotation value for video classification case.
       
      .google.cloud.datalabeling.v1beta1.VideoClassificationAnnotation video_classification_annotation = 4;
      Specified by:
      getVideoClassificationAnnotationOrBuilder in interface AnnotationValueOrBuilder
    • hasVideoObjectTrackingAnnotation

      public boolean hasVideoObjectTrackingAnnotation()
       Annotation value for video object detection and tracking case.
       
      .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5;
      Specified by:
      hasVideoObjectTrackingAnnotation in interface AnnotationValueOrBuilder
      Returns:
      Whether the videoObjectTrackingAnnotation field is set.
    • getVideoObjectTrackingAnnotation

      public VideoObjectTrackingAnnotation getVideoObjectTrackingAnnotation()
       Annotation value for video object detection and tracking case.
       
      .google.cloud.datalabeling.v1beta1.VideoObjectTrackingAnnotation video_object_tracking_annotation = 5;
      Specified by:
      getVideoObjectTrackingAnnotation in interface AnnotationValueOrBuilder
      Returns:
      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;
      Specified by:
      getVideoObjectTrackingAnnotationOrBuilder in interface AnnotationValueOrBuilder
    • hasVideoEventAnnotation

      public boolean hasVideoEventAnnotation()
       Annotation value for video event case.
       
      .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6;
      Specified by:
      hasVideoEventAnnotation in interface AnnotationValueOrBuilder
      Returns:
      Whether the videoEventAnnotation field is set.
    • getVideoEventAnnotation

      public VideoEventAnnotation getVideoEventAnnotation()
       Annotation value for video event case.
       
      .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6;
      Specified by:
      getVideoEventAnnotation in interface AnnotationValueOrBuilder
      Returns:
      The videoEventAnnotation.
    • getVideoEventAnnotationOrBuilder

      public VideoEventAnnotationOrBuilder getVideoEventAnnotationOrBuilder()
       Annotation value for video event case.
       
      .google.cloud.datalabeling.v1beta1.VideoEventAnnotation video_event_annotation = 6;
      Specified by:
      getVideoEventAnnotationOrBuilder in interface AnnotationValueOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static AnnotationValue parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AnnotationValue parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AnnotationValue parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AnnotationValue parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AnnotationValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AnnotationValue parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static AnnotationValue parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AnnotationValue parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AnnotationValue parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static AnnotationValue parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AnnotationValue parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static AnnotationValue parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public AnnotationValue.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static AnnotationValue.Builder newBuilder()
    • newBuilder

      public static AnnotationValue.Builder newBuilder(AnnotationValue prototype)
    • toBuilder

      public AnnotationValue.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected AnnotationValue.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static AnnotationValue getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<AnnotationValue> parser()
    • getParserForType

      public com.google.protobuf.Parser<AnnotationValue> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public AnnotationValue getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder