Package com.google.cloud.automl.v1
Interface AnnotationPayloadOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
AnnotationPayload
,AnnotationPayload.Builder
public interface AnnotationPayloadOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getAnnotationSpecId()
Output only .com.google.protobuf.ByteString
getAnnotationSpecIdBytes()
Output only .ClassificationAnnotation
getClassification()
Annotation details for content or image classification.ClassificationAnnotationOrBuilder
getClassificationOrBuilder()
Annotation details for content or image classification.AnnotationPayload.DetailCase
getDetailCase()
String
getDisplayName()
Output only.com.google.protobuf.ByteString
getDisplayNameBytes()
Output only.ImageObjectDetectionAnnotation
getImageObjectDetection()
Annotation details for image object detection.ImageObjectDetectionAnnotationOrBuilder
getImageObjectDetectionOrBuilder()
Annotation details for image object detection.TextExtractionAnnotation
getTextExtraction()
Annotation details for text extraction.TextExtractionAnnotationOrBuilder
getTextExtractionOrBuilder()
Annotation details for text extraction.TextSentimentAnnotation
getTextSentiment()
Annotation details for text sentiment.TextSentimentAnnotationOrBuilder
getTextSentimentOrBuilder()
Annotation details for text sentiment.TranslationAnnotation
getTranslation()
Annotation details for translation.TranslationAnnotationOrBuilder
getTranslationOrBuilder()
Annotation details for translation.boolean
hasClassification()
Annotation details for content or image classification.boolean
hasImageObjectDetection()
Annotation details for image object detection.boolean
hasTextExtraction()
Annotation details for text extraction.boolean
hasTextSentiment()
Annotation details for text sentiment.boolean
hasTranslation()
Annotation details for translation.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasTranslation
boolean hasTranslation()
Annotation details for translation.
.google.cloud.automl.v1.TranslationAnnotation translation = 2;
- Returns:
- Whether the translation field is set.
-
getTranslation
TranslationAnnotation getTranslation()
Annotation details for translation.
.google.cloud.automl.v1.TranslationAnnotation translation = 2;
- Returns:
- The translation.
-
getTranslationOrBuilder
TranslationAnnotationOrBuilder getTranslationOrBuilder()
Annotation details for translation.
.google.cloud.automl.v1.TranslationAnnotation translation = 2;
-
hasClassification
boolean hasClassification()
Annotation details for content or image classification.
.google.cloud.automl.v1.ClassificationAnnotation classification = 3;
- Returns:
- Whether the classification field is set.
-
getClassification
ClassificationAnnotation getClassification()
Annotation details for content or image classification.
.google.cloud.automl.v1.ClassificationAnnotation classification = 3;
- Returns:
- The classification.
-
getClassificationOrBuilder
ClassificationAnnotationOrBuilder getClassificationOrBuilder()
Annotation details for content or image classification.
.google.cloud.automl.v1.ClassificationAnnotation classification = 3;
-
hasImageObjectDetection
boolean hasImageObjectDetection()
Annotation details for image object detection.
.google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4;
- Returns:
- Whether the imageObjectDetection field is set.
-
getImageObjectDetection
ImageObjectDetectionAnnotation getImageObjectDetection()
Annotation details for image object detection.
.google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4;
- Returns:
- The imageObjectDetection.
-
getImageObjectDetectionOrBuilder
ImageObjectDetectionAnnotationOrBuilder getImageObjectDetectionOrBuilder()
Annotation details for image object detection.
.google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4;
-
hasTextExtraction
boolean hasTextExtraction()
Annotation details for text extraction.
.google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6;
- Returns:
- Whether the textExtraction field is set.
-
getTextExtraction
TextExtractionAnnotation getTextExtraction()
Annotation details for text extraction.
.google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6;
- Returns:
- The textExtraction.
-
getTextExtractionOrBuilder
TextExtractionAnnotationOrBuilder getTextExtractionOrBuilder()
Annotation details for text extraction.
.google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6;
-
hasTextSentiment
boolean hasTextSentiment()
Annotation details for text sentiment.
.google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7;
- Returns:
- Whether the textSentiment field is set.
-
getTextSentiment
TextSentimentAnnotation getTextSentiment()
Annotation details for text sentiment.
.google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7;
- Returns:
- The textSentiment.
-
getTextSentimentOrBuilder
TextSentimentAnnotationOrBuilder getTextSentimentOrBuilder()
Annotation details for text sentiment.
.google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7;
-
getAnnotationSpecId
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:
- The annotationSpecId.
-
getAnnotationSpecIdBytes
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;
- Returns:
- The bytes for annotationSpecId.
-
getDisplayName
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;
- Returns:
- The displayName.
-
getDisplayNameBytes
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;
- Returns:
- The bytes for displayName.
-
getDetailCase
AnnotationPayload.DetailCase getDetailCase()
-
-