public final class AnnotationPayload extends GeneratedMessageV3 implements AnnotationPayloadOrBuilder
Contains annotation information that is relevant to AutoML.
Protobuf type google.cloud.automl.v1.AnnotationPayload
Static Fields
ANNOTATION_SPEC_ID_FIELD_NUMBER
public static final int ANNOTATION_SPEC_ID_FIELD_NUMBER
Field Value
CLASSIFICATION_FIELD_NUMBER
public static final int CLASSIFICATION_FIELD_NUMBER
Field Value
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
IMAGE_OBJECT_DETECTION_FIELD_NUMBER
public static final int IMAGE_OBJECT_DETECTION_FIELD_NUMBER
Field Value
public static final int TEXT_EXTRACTION_FIELD_NUMBER
Field Value
TEXT_SENTIMENT_FIELD_NUMBER
public static final int TEXT_SENTIMENT_FIELD_NUMBER
Field Value
TRANSLATION_FIELD_NUMBER
public static final int TRANSLATION_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static AnnotationPayload getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static AnnotationPayload.Builder newBuilder()
Returns
newBuilder(AnnotationPayload prototype)
public static AnnotationPayload.Builder newBuilder(AnnotationPayload prototype)
Parameter
Returns
public static AnnotationPayload parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static AnnotationPayload parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static AnnotationPayload parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AnnotationPayload parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static AnnotationPayload parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AnnotationPayload parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static AnnotationPayload parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static AnnotationPayload parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static AnnotationPayload parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static AnnotationPayload parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static AnnotationPayload parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AnnotationPayload parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<AnnotationPayload> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
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;
Returns
Type | Description |
String | The annotationSpecId.
|
getAnnotationSpecIdBytes()
public 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;
Returns
Type | Description |
ByteString | The bytes for annotationSpecId.
|
getClassification()
public ClassificationAnnotation getClassification()
Annotation details for content or image classification.
.google.cloud.automl.v1.ClassificationAnnotation classification = 3;
Returns
getClassificationOrBuilder()
public ClassificationAnnotationOrBuilder getClassificationOrBuilder()
Annotation details for content or image classification.
.google.cloud.automl.v1.ClassificationAnnotation classification = 3;
Returns
getDefaultInstanceForType()
public AnnotationPayload getDefaultInstanceForType()
Returns
getDetailCase()
public AnnotationPayload.DetailCase getDetailCase()
Returns
getDisplayName()
public String getDisplayName()
Output only. The value of
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;
Returns
Type | Description |
String | The displayName.
|
getDisplayNameBytes()
public ByteString getDisplayNameBytes()
Output only. The value of
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;
Returns
Type | Description |
ByteString | The bytes for displayName.
|
getImageObjectDetection()
public ImageObjectDetectionAnnotation getImageObjectDetection()
Annotation details for image object detection.
.google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4;
Returns
getImageObjectDetectionOrBuilder()
public ImageObjectDetectionAnnotationOrBuilder getImageObjectDetectionOrBuilder()
Annotation details for image object detection.
.google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4;
Returns
getParserForType()
public Parser<AnnotationPayload> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
public TextExtractionAnnotation getTextExtraction()
Annotation details for text extraction.
.google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6;
Returns
public TextExtractionAnnotationOrBuilder getTextExtractionOrBuilder()
Annotation details for text extraction.
.google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6;
Returns
getTextSentiment()
public TextSentimentAnnotation getTextSentiment()
Annotation details for text sentiment.
.google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7;
Returns
getTextSentimentOrBuilder()
public TextSentimentAnnotationOrBuilder getTextSentimentOrBuilder()
Annotation details for text sentiment.
.google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7;
Returns
getTranslation()
public TranslationAnnotation getTranslation()
Annotation details for translation.
.google.cloud.automl.v1.TranslationAnnotation translation = 2;
Returns
getTranslationOrBuilder()
public TranslationAnnotationOrBuilder getTranslationOrBuilder()
Annotation details for translation.
.google.cloud.automl.v1.TranslationAnnotation translation = 2;
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hasClassification()
public boolean hasClassification()
Annotation details for content or image classification.
.google.cloud.automl.v1.ClassificationAnnotation classification = 3;
Returns
Type | Description |
boolean | Whether the classification field is set.
|
hasImageObjectDetection()
public boolean hasImageObjectDetection()
Annotation details for image object detection.
.google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4;
Returns
Type | Description |
boolean | Whether the imageObjectDetection field is set.
|
public boolean hasTextExtraction()
Annotation details for text extraction.
.google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6;
Returns
Type | Description |
boolean | Whether the textExtraction field is set.
|
hasTextSentiment()
public boolean hasTextSentiment()
Annotation details for text sentiment.
.google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7;
Returns
Type | Description |
boolean | Whether the textSentiment field is set.
|
hasTranslation()
public boolean hasTranslation()
Annotation details for translation.
.google.cloud.automl.v1.TranslationAnnotation translation = 2;
Returns
Type | Description |
boolean | Whether the translation field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public AnnotationPayload.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AnnotationPayload.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public AnnotationPayload.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions