public static final class AnnotationPayload.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AnnotationPayload.Builder> implements AnnotationPayloadOrBuilder
Contains annotation information that is relevant to AutoML.Protobuf type
google.cloud.automl.v1.AnnotationPayloadgetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotationPayload.Builder>public AnnotationPayload.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotationPayload.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotationPayload.Builder>public AnnotationPayload getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic AnnotationPayload build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic AnnotationPayload buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic AnnotationPayload.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotationPayload.Builder>public AnnotationPayload.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotationPayload.Builder>public AnnotationPayload.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotationPayload.Builder>public AnnotationPayload.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotationPayload.Builder>public AnnotationPayload.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotationPayload.Builder>public AnnotationPayload.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotationPayload.Builder>public AnnotationPayload.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AnnotationPayload.Builder>public AnnotationPayload.Builder mergeFrom(AnnotationPayload other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotationPayload.Builder>public AnnotationPayload.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AnnotationPayload.Builder>IOExceptionpublic AnnotationPayload.DetailCase getDetailCase()
getDetailCase in interface AnnotationPayloadOrBuilderpublic AnnotationPayload.Builder clearDetail()
public boolean hasTranslation()
Annotation details for translation.
.google.cloud.automl.v1.TranslationAnnotation translation = 2;hasTranslation in interface AnnotationPayloadOrBuilderpublic TranslationAnnotation getTranslation()
Annotation details for translation.
.google.cloud.automl.v1.TranslationAnnotation translation = 2;getTranslation in interface AnnotationPayloadOrBuilderpublic AnnotationPayload.Builder setTranslation(TranslationAnnotation value)
Annotation details for translation.
.google.cloud.automl.v1.TranslationAnnotation translation = 2;public AnnotationPayload.Builder setTranslation(TranslationAnnotation.Builder builderForValue)
Annotation details for translation.
.google.cloud.automl.v1.TranslationAnnotation translation = 2;public AnnotationPayload.Builder mergeTranslation(TranslationAnnotation value)
Annotation details for translation.
.google.cloud.automl.v1.TranslationAnnotation translation = 2;public AnnotationPayload.Builder clearTranslation()
Annotation details for translation.
.google.cloud.automl.v1.TranslationAnnotation translation = 2;public TranslationAnnotation.Builder getTranslationBuilder()
Annotation details for translation.
.google.cloud.automl.v1.TranslationAnnotation translation = 2;public TranslationAnnotationOrBuilder getTranslationOrBuilder()
Annotation details for translation.
.google.cloud.automl.v1.TranslationAnnotation translation = 2;getTranslationOrBuilder in interface AnnotationPayloadOrBuilderpublic boolean hasClassification()
Annotation details for content or image classification.
.google.cloud.automl.v1.ClassificationAnnotation classification = 3;hasClassification in interface AnnotationPayloadOrBuilderpublic ClassificationAnnotation getClassification()
Annotation details for content or image classification.
.google.cloud.automl.v1.ClassificationAnnotation classification = 3;getClassification in interface AnnotationPayloadOrBuilderpublic AnnotationPayload.Builder setClassification(ClassificationAnnotation value)
Annotation details for content or image classification.
.google.cloud.automl.v1.ClassificationAnnotation classification = 3;public AnnotationPayload.Builder setClassification(ClassificationAnnotation.Builder builderForValue)
Annotation details for content or image classification.
.google.cloud.automl.v1.ClassificationAnnotation classification = 3;public AnnotationPayload.Builder mergeClassification(ClassificationAnnotation value)
Annotation details for content or image classification.
.google.cloud.automl.v1.ClassificationAnnotation classification = 3;public AnnotationPayload.Builder clearClassification()
Annotation details for content or image classification.
.google.cloud.automl.v1.ClassificationAnnotation classification = 3;public ClassificationAnnotation.Builder getClassificationBuilder()
Annotation details for content or image classification.
.google.cloud.automl.v1.ClassificationAnnotation classification = 3;public ClassificationAnnotationOrBuilder getClassificationOrBuilder()
Annotation details for content or image classification.
.google.cloud.automl.v1.ClassificationAnnotation classification = 3;getClassificationOrBuilder in interface AnnotationPayloadOrBuilderpublic boolean hasImageObjectDetection()
Annotation details for image object detection.
.google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4;
hasImageObjectDetection in interface AnnotationPayloadOrBuilderpublic ImageObjectDetectionAnnotation getImageObjectDetection()
Annotation details for image object detection.
.google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4;
getImageObjectDetection in interface AnnotationPayloadOrBuilderpublic AnnotationPayload.Builder setImageObjectDetection(ImageObjectDetectionAnnotation value)
Annotation details for image object detection.
.google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4;
public AnnotationPayload.Builder setImageObjectDetection(ImageObjectDetectionAnnotation.Builder builderForValue)
Annotation details for image object detection.
.google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4;
public AnnotationPayload.Builder mergeImageObjectDetection(ImageObjectDetectionAnnotation value)
Annotation details for image object detection.
.google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4;
public AnnotationPayload.Builder clearImageObjectDetection()
Annotation details for image object detection.
.google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4;
public ImageObjectDetectionAnnotation.Builder getImageObjectDetectionBuilder()
Annotation details for image object detection.
.google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4;
public ImageObjectDetectionAnnotationOrBuilder getImageObjectDetectionOrBuilder()
Annotation details for image object detection.
.google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4;
getImageObjectDetectionOrBuilder in interface AnnotationPayloadOrBuilderpublic boolean hasTextExtraction()
Annotation details for text extraction.
.google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6;hasTextExtraction in interface AnnotationPayloadOrBuilderpublic TextExtractionAnnotation getTextExtraction()
Annotation details for text extraction.
.google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6;getTextExtraction in interface AnnotationPayloadOrBuilderpublic AnnotationPayload.Builder setTextExtraction(TextExtractionAnnotation value)
Annotation details for text extraction.
.google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6;public AnnotationPayload.Builder setTextExtraction(TextExtractionAnnotation.Builder builderForValue)
Annotation details for text extraction.
.google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6;public AnnotationPayload.Builder mergeTextExtraction(TextExtractionAnnotation value)
Annotation details for text extraction.
.google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6;public AnnotationPayload.Builder clearTextExtraction()
Annotation details for text extraction.
.google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6;public TextExtractionAnnotation.Builder getTextExtractionBuilder()
Annotation details for text extraction.
.google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6;public TextExtractionAnnotationOrBuilder getTextExtractionOrBuilder()
Annotation details for text extraction.
.google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6;getTextExtractionOrBuilder in interface AnnotationPayloadOrBuilderpublic boolean hasTextSentiment()
Annotation details for text sentiment.
.google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7;hasTextSentiment in interface AnnotationPayloadOrBuilderpublic TextSentimentAnnotation getTextSentiment()
Annotation details for text sentiment.
.google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7;getTextSentiment in interface AnnotationPayloadOrBuilderpublic AnnotationPayload.Builder setTextSentiment(TextSentimentAnnotation value)
Annotation details for text sentiment.
.google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7;public AnnotationPayload.Builder setTextSentiment(TextSentimentAnnotation.Builder builderForValue)
Annotation details for text sentiment.
.google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7;public AnnotationPayload.Builder mergeTextSentiment(TextSentimentAnnotation value)
Annotation details for text sentiment.
.google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7;public AnnotationPayload.Builder clearTextSentiment()
Annotation details for text sentiment.
.google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7;public TextSentimentAnnotation.Builder getTextSentimentBuilder()
Annotation details for text sentiment.
.google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7;public TextSentimentAnnotationOrBuilder getTextSentimentOrBuilder()
Annotation details for text sentiment.
.google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7;getTextSentimentOrBuilder in interface AnnotationPayloadOrBuilderpublic 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;getAnnotationSpecId in interface AnnotationPayloadOrBuilderpublic 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;getAnnotationSpecIdBytes in interface AnnotationPayloadOrBuilderpublic AnnotationPayload.Builder setAnnotationSpecId(String value)
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;value - The annotationSpecId to set.public AnnotationPayload.Builder clearAnnotationSpecId()
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;public AnnotationPayload.Builder setAnnotationSpecIdBytes(com.google.protobuf.ByteString value)
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;value - The bytes for annotationSpecId to set.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;getDisplayName in interface AnnotationPayloadOrBuilderpublic 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;getDisplayNameBytes in interface AnnotationPayloadOrBuilderpublic AnnotationPayload.Builder setDisplayName(String value)
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;value - The displayName to set.public AnnotationPayload.Builder clearDisplayName()
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;public AnnotationPayload.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
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;value - The bytes for displayName to set.public final AnnotationPayload.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotationPayload.Builder>public final AnnotationPayload.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AnnotationPayload.Builder>Copyright © 2025 Google LLC. All rights reserved.