Class AnnotationPayload

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.automl.v1.AnnotationPayload
All Implemented Interfaces:
AnnotationPayloadOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class AnnotationPayload extends com.google.protobuf.GeneratedMessage implements AnnotationPayloadOrBuilder
 Contains annotation information that is relevant to AutoML.
 
Protobuf type google.cloud.automl.v1.AnnotationPayload
See Also:
  • Field Details

    • TRANSLATION_FIELD_NUMBER

      public static final int TRANSLATION_FIELD_NUMBER
      See Also:
    • CLASSIFICATION_FIELD_NUMBER

      public static final int CLASSIFICATION_FIELD_NUMBER
      See Also:
    • IMAGE_OBJECT_DETECTION_FIELD_NUMBER

      public static final int IMAGE_OBJECT_DETECTION_FIELD_NUMBER
      See Also:
    • TEXT_EXTRACTION_FIELD_NUMBER

      public static final int TEXT_EXTRACTION_FIELD_NUMBER
      See Also:
    • TEXT_SENTIMENT_FIELD_NUMBER

      public static final int TEXT_SENTIMENT_FIELD_NUMBER
      See Also:
    • ANNOTATION_SPEC_ID_FIELD_NUMBER

      public static final int ANNOTATION_SPEC_ID_FIELD_NUMBER
      See Also:
    • DISPLAY_NAME_FIELD_NUMBER

      public static final int DISPLAY_NAME_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
    • getDetailCase

      public AnnotationPayload.DetailCase getDetailCase()
      Specified by:
      getDetailCase in interface AnnotationPayloadOrBuilder
    • hasTranslation

      public boolean hasTranslation()
       Annotation details for translation.
       
      .google.cloud.automl.v1.TranslationAnnotation translation = 2;
      Specified by:
      hasTranslation in interface AnnotationPayloadOrBuilder
      Returns:
      Whether the translation field is set.
    • getTranslation

      public TranslationAnnotation getTranslation()
       Annotation details for translation.
       
      .google.cloud.automl.v1.TranslationAnnotation translation = 2;
      Specified by:
      getTranslation in interface AnnotationPayloadOrBuilder
      Returns:
      The translation.
    • getTranslationOrBuilder

      public TranslationAnnotationOrBuilder getTranslationOrBuilder()
       Annotation details for translation.
       
      .google.cloud.automl.v1.TranslationAnnotation translation = 2;
      Specified by:
      getTranslationOrBuilder in interface AnnotationPayloadOrBuilder
    • hasClassification

      public boolean hasClassification()
       Annotation details for content or image classification.
       
      .google.cloud.automl.v1.ClassificationAnnotation classification = 3;
      Specified by:
      hasClassification in interface AnnotationPayloadOrBuilder
      Returns:
      Whether the classification field is set.
    • getClassification

      public ClassificationAnnotation getClassification()
       Annotation details for content or image classification.
       
      .google.cloud.automl.v1.ClassificationAnnotation classification = 3;
      Specified by:
      getClassification in interface AnnotationPayloadOrBuilder
      Returns:
      The classification.
    • getClassificationOrBuilder

      public ClassificationAnnotationOrBuilder getClassificationOrBuilder()
       Annotation details for content or image classification.
       
      .google.cloud.automl.v1.ClassificationAnnotation classification = 3;
      Specified by:
      getClassificationOrBuilder in interface AnnotationPayloadOrBuilder
    • hasImageObjectDetection

      public boolean hasImageObjectDetection()
       Annotation details for image object detection.
       
      .google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4;
      Specified by:
      hasImageObjectDetection in interface AnnotationPayloadOrBuilder
      Returns:
      Whether the imageObjectDetection field is set.
    • getImageObjectDetection

      public ImageObjectDetectionAnnotation getImageObjectDetection()
       Annotation details for image object detection.
       
      .google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4;
      Specified by:
      getImageObjectDetection in interface AnnotationPayloadOrBuilder
      Returns:
      The imageObjectDetection.
    • getImageObjectDetectionOrBuilder

      public ImageObjectDetectionAnnotationOrBuilder getImageObjectDetectionOrBuilder()
       Annotation details for image object detection.
       
      .google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4;
      Specified by:
      getImageObjectDetectionOrBuilder in interface AnnotationPayloadOrBuilder
    • hasTextExtraction

      public boolean hasTextExtraction()
       Annotation details for text extraction.
       
      .google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6;
      Specified by:
      hasTextExtraction in interface AnnotationPayloadOrBuilder
      Returns:
      Whether the textExtraction field is set.
    • getTextExtraction

      public TextExtractionAnnotation getTextExtraction()
       Annotation details for text extraction.
       
      .google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6;
      Specified by:
      getTextExtraction in interface AnnotationPayloadOrBuilder
      Returns:
      The textExtraction.
    • getTextExtractionOrBuilder

      public TextExtractionAnnotationOrBuilder getTextExtractionOrBuilder()
       Annotation details for text extraction.
       
      .google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6;
      Specified by:
      getTextExtractionOrBuilder in interface AnnotationPayloadOrBuilder
    • hasTextSentiment

      public boolean hasTextSentiment()
       Annotation details for text sentiment.
       
      .google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7;
      Specified by:
      hasTextSentiment in interface AnnotationPayloadOrBuilder
      Returns:
      Whether the textSentiment field is set.
    • getTextSentiment

      public TextSentimentAnnotation getTextSentiment()
       Annotation details for text sentiment.
       
      .google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7;
      Specified by:
      getTextSentiment in interface AnnotationPayloadOrBuilder
      Returns:
      The textSentiment.
    • getTextSentimentOrBuilder

      public TextSentimentAnnotationOrBuilder getTextSentimentOrBuilder()
       Annotation details for text sentiment.
       
      .google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7;
      Specified by:
      getTextSentimentOrBuilder in interface AnnotationPayloadOrBuilder
    • getAnnotationSpecId

      public String getAnnotationSpecId()
       Output only . The resource ID of the annotation spec that
       this annotation pertains to. The annotation spec comes from either an
       ancestor dataset, or the dataset that was used to train the model in use.
       
      string annotation_spec_id = 1;
      Specified by:
      getAnnotationSpecId in interface AnnotationPayloadOrBuilder
      Returns:
      The annotationSpecId.
    • getAnnotationSpecIdBytes

      public com.google.protobuf.ByteString getAnnotationSpecIdBytes()
       Output only . The resource ID of the annotation spec that
       this annotation pertains to. The annotation spec comes from either an
       ancestor dataset, or the dataset that was used to train the model in use.
       
      string annotation_spec_id = 1;
      Specified by:
      getAnnotationSpecIdBytes in interface AnnotationPayloadOrBuilder
      Returns:
      The bytes for annotationSpecId.
    • getDisplayName

      public String getDisplayName()
       Output only. The value of
       [display_name][google.cloud.automl.v1.AnnotationSpec.display_name]
       when the model was trained. Because this field returns a value at model
       training time, for different models trained using the same dataset, the
       returned value could be different as model owner could update the
       `display_name` between any two model training.
       
      string display_name = 5;
      Specified by:
      getDisplayName in interface AnnotationPayloadOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Output only. The value of
       [display_name][google.cloud.automl.v1.AnnotationSpec.display_name]
       when the model was trained. Because this field returns a value at model
       training time, for different models trained using the same dataset, the
       returned value could be different as model owner could update the
       `display_name` between any two model training.
       
      string display_name = 5;
      Specified by:
      getDisplayNameBytes in interface AnnotationPayloadOrBuilder
      Returns:
      The bytes for displayName.
    • 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 AnnotationPayload parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static AnnotationPayload.Builder newBuilder()
    • newBuilder

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

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

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

      public static AnnotationPayload getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<AnnotationPayload> 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 AnnotationPayload getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder