Interface AnnotationPayloadOrBuilder (2.3.9)

public interface AnnotationPayloadOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAnnotationSpecId()

public abstract 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
TypeDescription
String

The annotationSpecId.

getAnnotationSpecIdBytes()

public abstract 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
TypeDescription
ByteString

The bytes for annotationSpecId.

getClassification()

public abstract ClassificationAnnotation getClassification()

Annotation details for content or image classification.

.google.cloud.automl.v1.ClassificationAnnotation classification = 3;

Returns
TypeDescription
ClassificationAnnotation

The classification.

getClassificationOrBuilder()

public abstract ClassificationAnnotationOrBuilder getClassificationOrBuilder()

Annotation details for content or image classification.

.google.cloud.automl.v1.ClassificationAnnotation classification = 3;

Returns
TypeDescription
ClassificationAnnotationOrBuilder

getDetailCase()

public abstract AnnotationPayload.DetailCase getDetailCase()
Returns
TypeDescription
AnnotationPayload.DetailCase

getDisplayName()

public abstract 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
TypeDescription
String

The displayName.

getDisplayNameBytes()

public abstract 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
TypeDescription
ByteString

The bytes for displayName.

getImageObjectDetection()

public abstract ImageObjectDetectionAnnotation getImageObjectDetection()

Annotation details for image object detection.

.google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4;

Returns
TypeDescription
ImageObjectDetectionAnnotation

The imageObjectDetection.

getImageObjectDetectionOrBuilder()

public abstract ImageObjectDetectionAnnotationOrBuilder getImageObjectDetectionOrBuilder()

Annotation details for image object detection.

.google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4;

Returns
TypeDescription
ImageObjectDetectionAnnotationOrBuilder

getTextExtraction()

public abstract TextExtractionAnnotation getTextExtraction()

Annotation details for text extraction.

.google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6;

Returns
TypeDescription
TextExtractionAnnotation

The textExtraction.

getTextExtractionOrBuilder()

public abstract TextExtractionAnnotationOrBuilder getTextExtractionOrBuilder()

Annotation details for text extraction.

.google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6;

Returns
TypeDescription
TextExtractionAnnotationOrBuilder

getTextSentiment()

public abstract TextSentimentAnnotation getTextSentiment()

Annotation details for text sentiment.

.google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7;

Returns
TypeDescription
TextSentimentAnnotation

The textSentiment.

getTextSentimentOrBuilder()

public abstract TextSentimentAnnotationOrBuilder getTextSentimentOrBuilder()

Annotation details for text sentiment.

.google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7;

Returns
TypeDescription
TextSentimentAnnotationOrBuilder

getTranslation()

public abstract TranslationAnnotation getTranslation()

Annotation details for translation.

.google.cloud.automl.v1.TranslationAnnotation translation = 2;

Returns
TypeDescription
TranslationAnnotation

The translation.

getTranslationOrBuilder()

public abstract TranslationAnnotationOrBuilder getTranslationOrBuilder()

Annotation details for translation.

.google.cloud.automl.v1.TranslationAnnotation translation = 2;

Returns
TypeDescription
TranslationAnnotationOrBuilder

hasClassification()

public abstract boolean hasClassification()

Annotation details for content or image classification.

.google.cloud.automl.v1.ClassificationAnnotation classification = 3;

Returns
TypeDescription
boolean

Whether the classification field is set.

hasImageObjectDetection()

public abstract boolean hasImageObjectDetection()

Annotation details for image object detection.

.google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4;

Returns
TypeDescription
boolean

Whether the imageObjectDetection field is set.

hasTextExtraction()

public abstract boolean hasTextExtraction()

Annotation details for text extraction.

.google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6;

Returns
TypeDescription
boolean

Whether the textExtraction field is set.

hasTextSentiment()

public abstract boolean hasTextSentiment()

Annotation details for text sentiment.

.google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7;

Returns
TypeDescription
boolean

Whether the textSentiment field is set.

hasTranslation()

public abstract boolean hasTranslation()

Annotation details for translation.

.google.cloud.automl.v1.TranslationAnnotation translation = 2;

Returns
TypeDescription
boolean

Whether the translation field is set.