Package com.google.cloud.automl.v1
Class AnnotationPayload.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AnnotationPayload.Builder>
com.google.cloud.automl.v1.AnnotationPayload.Builder
- All Implemented Interfaces:
AnnotationPayloadOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AnnotationPayload
public static final class AnnotationPayload.Builder
extends com.google.protobuf.GeneratedMessage.Builder<AnnotationPayload.Builder>
implements AnnotationPayloadOrBuilder
Contains annotation information that is relevant to AutoML.Protobuf type
google.cloud.automl.v1.AnnotationPayload-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only .Annotation details for content or image classification.Output only.Annotation details for image object detection.Annotation details for text extraction.Annotation details for text sentiment.Annotation details for translation.Output only .com.google.protobuf.ByteStringOutput only .Annotation details for content or image classification.Annotation details for content or image classification.Annotation details for content or image classification.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOutput only.com.google.protobuf.ByteStringOutput only.Annotation details for image object detection.Annotation details for image object detection.Annotation details for image object detection.Annotation details for text extraction.Annotation details for text extraction.Annotation details for text extraction.Annotation details for text sentiment.Annotation details for text sentiment.Annotation details for text sentiment.Annotation details for translation.Annotation details for translation.Annotation details for translation.booleanAnnotation details for content or image classification.booleanAnnotation details for image object detection.booleanAnnotation details for text extraction.booleanAnnotation details for text sentiment.booleanAnnotation details for translation.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanAnnotation details for content or image classification.mergeFrom(AnnotationPayload other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Annotation details for image object detection.Annotation details for text extraction.Annotation details for text sentiment.Annotation details for translation.setAnnotationSpecId(String value) Output only .setAnnotationSpecIdBytes(com.google.protobuf.ByteString value) Output only .Annotation details for content or image classification.setClassification(ClassificationAnnotation.Builder builderForValue) Annotation details for content or image classification.setDisplayName(String value) Output only.setDisplayNameBytes(com.google.protobuf.ByteString value) Output only.Annotation details for image object detection.setImageObjectDetection(ImageObjectDetectionAnnotation.Builder builderForValue) Annotation details for image object detection.Annotation details for text extraction.setTextExtraction(TextExtractionAnnotation.Builder builderForValue) Annotation details for text extraction.Annotation details for text sentiment.setTextSentiment(TextSentimentAnnotation.Builder builderForValue) Annotation details for text sentiment.Annotation details for translation.setTranslation(TranslationAnnotation.Builder builderForValue) Annotation details for translation.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<AnnotationPayload.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<AnnotationPayload.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<AnnotationPayload.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AnnotationPayload.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AnnotationPayload.Builder>
-
mergeFrom
public AnnotationPayload.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AnnotationPayload.Builder>- Throws:
IOException
-
getDetailCase
- Specified by:
getDetailCasein interfaceAnnotationPayloadOrBuilder
-
clearDetail
-
hasTranslation
public boolean hasTranslation()Annotation details for translation.
.google.cloud.automl.v1.TranslationAnnotation translation = 2;- Specified by:
hasTranslationin interfaceAnnotationPayloadOrBuilder- Returns:
- Whether the translation field is set.
-
getTranslation
Annotation details for translation.
.google.cloud.automl.v1.TranslationAnnotation translation = 2;- Specified by:
getTranslationin interfaceAnnotationPayloadOrBuilder- Returns:
- The translation.
-
setTranslation
Annotation details for translation.
.google.cloud.automl.v1.TranslationAnnotation translation = 2; -
setTranslation
Annotation details for translation.
.google.cloud.automl.v1.TranslationAnnotation translation = 2; -
mergeTranslation
Annotation details for translation.
.google.cloud.automl.v1.TranslationAnnotation translation = 2; -
clearTranslation
Annotation details for translation.
.google.cloud.automl.v1.TranslationAnnotation translation = 2; -
getTranslationBuilder
Annotation details for translation.
.google.cloud.automl.v1.TranslationAnnotation translation = 2; -
getTranslationOrBuilder
Annotation details for translation.
.google.cloud.automl.v1.TranslationAnnotation translation = 2;- Specified by:
getTranslationOrBuilderin interfaceAnnotationPayloadOrBuilder
-
hasClassification
public boolean hasClassification()Annotation details for content or image classification.
.google.cloud.automl.v1.ClassificationAnnotation classification = 3;- Specified by:
hasClassificationin interfaceAnnotationPayloadOrBuilder- Returns:
- Whether the classification field is set.
-
getClassification
Annotation details for content or image classification.
.google.cloud.automl.v1.ClassificationAnnotation classification = 3;- Specified by:
getClassificationin interfaceAnnotationPayloadOrBuilder- Returns:
- The classification.
-
setClassification
Annotation details for content or image classification.
.google.cloud.automl.v1.ClassificationAnnotation classification = 3; -
setClassification
public AnnotationPayload.Builder setClassification(ClassificationAnnotation.Builder builderForValue) Annotation details for content or image classification.
.google.cloud.automl.v1.ClassificationAnnotation classification = 3; -
mergeClassification
Annotation details for content or image classification.
.google.cloud.automl.v1.ClassificationAnnotation classification = 3; -
clearClassification
Annotation details for content or image classification.
.google.cloud.automl.v1.ClassificationAnnotation classification = 3; -
getClassificationBuilder
Annotation details for content or image classification.
.google.cloud.automl.v1.ClassificationAnnotation classification = 3; -
getClassificationOrBuilder
Annotation details for content or image classification.
.google.cloud.automl.v1.ClassificationAnnotation classification = 3;- Specified by:
getClassificationOrBuilderin interfaceAnnotationPayloadOrBuilder
-
hasImageObjectDetection
public boolean hasImageObjectDetection()Annotation details for image object detection.
.google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4;- Specified by:
hasImageObjectDetectionin interfaceAnnotationPayloadOrBuilder- Returns:
- Whether the imageObjectDetection field is set.
-
getImageObjectDetection
Annotation details for image object detection.
.google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4;- Specified by:
getImageObjectDetectionin interfaceAnnotationPayloadOrBuilder- Returns:
- The imageObjectDetection.
-
setImageObjectDetection
Annotation details for image object detection.
.google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4; -
setImageObjectDetection
public AnnotationPayload.Builder setImageObjectDetection(ImageObjectDetectionAnnotation.Builder builderForValue) Annotation details for image object detection.
.google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4; -
mergeImageObjectDetection
Annotation details for image object detection.
.google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4; -
clearImageObjectDetection
Annotation details for image object detection.
.google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4; -
getImageObjectDetectionBuilder
Annotation details for image object detection.
.google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4; -
getImageObjectDetectionOrBuilder
Annotation details for image object detection.
.google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4;- Specified by:
getImageObjectDetectionOrBuilderin interfaceAnnotationPayloadOrBuilder
-
hasTextExtraction
public boolean hasTextExtraction()Annotation details for text extraction.
.google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6;- Specified by:
hasTextExtractionin interfaceAnnotationPayloadOrBuilder- Returns:
- Whether the textExtraction field is set.
-
getTextExtraction
Annotation details for text extraction.
.google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6;- Specified by:
getTextExtractionin interfaceAnnotationPayloadOrBuilder- Returns:
- The textExtraction.
-
setTextExtraction
Annotation details for text extraction.
.google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6; -
setTextExtraction
public AnnotationPayload.Builder setTextExtraction(TextExtractionAnnotation.Builder builderForValue) Annotation details for text extraction.
.google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6; -
mergeTextExtraction
Annotation details for text extraction.
.google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6; -
clearTextExtraction
Annotation details for text extraction.
.google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6; -
getTextExtractionBuilder
Annotation details for text extraction.
.google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6; -
getTextExtractionOrBuilder
Annotation details for text extraction.
.google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6;- Specified by:
getTextExtractionOrBuilderin interfaceAnnotationPayloadOrBuilder
-
hasTextSentiment
public boolean hasTextSentiment()Annotation details for text sentiment.
.google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7;- Specified by:
hasTextSentimentin interfaceAnnotationPayloadOrBuilder- Returns:
- Whether the textSentiment field is set.
-
getTextSentiment
Annotation details for text sentiment.
.google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7;- Specified by:
getTextSentimentin interfaceAnnotationPayloadOrBuilder- Returns:
- The textSentiment.
-
setTextSentiment
Annotation details for text sentiment.
.google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7; -
setTextSentiment
Annotation details for text sentiment.
.google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7; -
mergeTextSentiment
Annotation details for text sentiment.
.google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7; -
clearTextSentiment
Annotation details for text sentiment.
.google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7; -
getTextSentimentBuilder
Annotation details for text sentiment.
.google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7; -
getTextSentimentOrBuilder
Annotation details for text sentiment.
.google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7;- Specified by:
getTextSentimentOrBuilderin interfaceAnnotationPayloadOrBuilder
-
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:
getAnnotationSpecIdin interfaceAnnotationPayloadOrBuilder- 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:
getAnnotationSpecIdBytesin interfaceAnnotationPayloadOrBuilder- Returns:
- The bytes for annotationSpecId.
-
setAnnotationSpecId
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;- Parameters:
value- The annotationSpecId to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
setAnnotationSpecIdBytes
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;- Parameters:
value- The bytes for annotationSpecId to set.- Returns:
- This builder for chaining.
-
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:
getDisplayNamein interfaceAnnotationPayloadOrBuilder- 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:
getDisplayNameBytesin interfaceAnnotationPayloadOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
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;- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
setDisplayNameBytes
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;- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-