Class AnnotationValue

  • All Implemented Interfaces:
    AnnotationValueOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class AnnotationValue
    extends com.google.protobuf.GeneratedMessageV3
    implements AnnotationValueOrBuilder
     Annotation value for an example.
     
    Protobuf type google.cloud.datalabeling.v1beta1.AnnotationValue
    See Also:
    Serialized Form
    • Field Detail

      • IMAGE_CLASSIFICATION_ANNOTATION_FIELD_NUMBER

        public static final int IMAGE_CLASSIFICATION_ANNOTATION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • IMAGE_BOUNDING_POLY_ANNOTATION_FIELD_NUMBER

        public static final int IMAGE_BOUNDING_POLY_ANNOTATION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • IMAGE_POLYLINE_ANNOTATION_FIELD_NUMBER

        public static final int IMAGE_POLYLINE_ANNOTATION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • IMAGE_SEGMENTATION_ANNOTATION_FIELD_NUMBER

        public static final int IMAGE_SEGMENTATION_ANNOTATION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • TEXT_CLASSIFICATION_ANNOTATION_FIELD_NUMBER

        public static final int TEXT_CLASSIFICATION_ANNOTATION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • TEXT_ENTITY_EXTRACTION_ANNOTATION_FIELD_NUMBER

        public static final int TEXT_ENTITY_EXTRACTION_ANNOTATION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • VIDEO_CLASSIFICATION_ANNOTATION_FIELD_NUMBER

        public static final int VIDEO_CLASSIFICATION_ANNOTATION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • VIDEO_OBJECT_TRACKING_ANNOTATION_FIELD_NUMBER

        public static final int VIDEO_OBJECT_TRACKING_ANNOTATION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • VIDEO_EVENT_ANNOTATION_FIELD_NUMBER

        public static final int VIDEO_EVENT_ANNOTATION_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • 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​(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
      • 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.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
      • getDefaultInstanceForType

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