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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<AnnotationPayload.Builder> implements AnnotationPayloadOrBuilder
Contains annotation information that is relevant to AutoML.
Protobuf typegoogle.cloud.automl.v1.AnnotationPayload
-
-
Method Summary
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<AnnotationPayload.Builder>
-
clear
public AnnotationPayload.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<AnnotationPayload.Builder>
-
getDefaultInstanceForType
public AnnotationPayload getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public AnnotationPayload build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AnnotationPayload buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AnnotationPayload.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<AnnotationPayload.Builder>
-
setField
public AnnotationPayload.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AnnotationPayload.Builder>
-
clearField
public AnnotationPayload.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AnnotationPayload.Builder>
-
clearOneof
public AnnotationPayload.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<AnnotationPayload.Builder>
-
setRepeatedField
public AnnotationPayload.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AnnotationPayload.Builder>
-
addRepeatedField
public AnnotationPayload.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AnnotationPayload.Builder>
-
mergeFrom
public AnnotationPayload.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AnnotationPayload.Builder>
-
mergeFrom
public AnnotationPayload.Builder mergeFrom(AnnotationPayload other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
public AnnotationPayload.DetailCase getDetailCase()
- Specified by:
getDetailCasein interfaceAnnotationPayloadOrBuilder
-
clearDetail
public AnnotationPayload.Builder 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
public TranslationAnnotation getTranslation()
Annotation details for translation.
.google.cloud.automl.v1.TranslationAnnotation translation = 2;- Specified by:
getTranslationin interfaceAnnotationPayloadOrBuilder- Returns:
- The translation.
-
setTranslation
public AnnotationPayload.Builder setTranslation(TranslationAnnotation value)
Annotation details for translation.
.google.cloud.automl.v1.TranslationAnnotation translation = 2;
-
setTranslation
public AnnotationPayload.Builder setTranslation(TranslationAnnotation.Builder builderForValue)
Annotation details for translation.
.google.cloud.automl.v1.TranslationAnnotation translation = 2;
-
mergeTranslation
public AnnotationPayload.Builder mergeTranslation(TranslationAnnotation value)
Annotation details for translation.
.google.cloud.automl.v1.TranslationAnnotation translation = 2;
-
clearTranslation
public AnnotationPayload.Builder clearTranslation()
Annotation details for translation.
.google.cloud.automl.v1.TranslationAnnotation translation = 2;
-
getTranslationBuilder
public TranslationAnnotation.Builder getTranslationBuilder()
Annotation details for translation.
.google.cloud.automl.v1.TranslationAnnotation translation = 2;
-
getTranslationOrBuilder
public TranslationAnnotationOrBuilder 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
public ClassificationAnnotation getClassification()
Annotation details for content or image classification.
.google.cloud.automl.v1.ClassificationAnnotation classification = 3;- Specified by:
getClassificationin interfaceAnnotationPayloadOrBuilder- Returns:
- The classification.
-
setClassification
public AnnotationPayload.Builder setClassification(ClassificationAnnotation value)
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
public AnnotationPayload.Builder mergeClassification(ClassificationAnnotation value)
Annotation details for content or image classification.
.google.cloud.automl.v1.ClassificationAnnotation classification = 3;
-
clearClassification
public AnnotationPayload.Builder clearClassification()
Annotation details for content or image classification.
.google.cloud.automl.v1.ClassificationAnnotation classification = 3;
-
getClassificationBuilder
public ClassificationAnnotation.Builder getClassificationBuilder()
Annotation details for content or image classification.
.google.cloud.automl.v1.ClassificationAnnotation classification = 3;
-
getClassificationOrBuilder
public ClassificationAnnotationOrBuilder 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
public ImageObjectDetectionAnnotation getImageObjectDetection()
Annotation details for image object detection.
.google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4;- Specified by:
getImageObjectDetectionin interfaceAnnotationPayloadOrBuilder- Returns:
- The imageObjectDetection.
-
setImageObjectDetection
public AnnotationPayload.Builder setImageObjectDetection(ImageObjectDetectionAnnotation value)
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
public AnnotationPayload.Builder mergeImageObjectDetection(ImageObjectDetectionAnnotation value)
Annotation details for image object detection.
.google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4;
-
clearImageObjectDetection
public AnnotationPayload.Builder clearImageObjectDetection()
Annotation details for image object detection.
.google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4;
-
getImageObjectDetectionBuilder
public ImageObjectDetectionAnnotation.Builder getImageObjectDetectionBuilder()
Annotation details for image object detection.
.google.cloud.automl.v1.ImageObjectDetectionAnnotation image_object_detection = 4;
-
getImageObjectDetectionOrBuilder
public ImageObjectDetectionAnnotationOrBuilder 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
public TextExtractionAnnotation getTextExtraction()
Annotation details for text extraction.
.google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6;- Specified by:
getTextExtractionin interfaceAnnotationPayloadOrBuilder- Returns:
- The textExtraction.
-
setTextExtraction
public AnnotationPayload.Builder setTextExtraction(TextExtractionAnnotation value)
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
public AnnotationPayload.Builder mergeTextExtraction(TextExtractionAnnotation value)
Annotation details for text extraction.
.google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6;
-
clearTextExtraction
public AnnotationPayload.Builder clearTextExtraction()
Annotation details for text extraction.
.google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6;
-
getTextExtractionBuilder
public TextExtractionAnnotation.Builder getTextExtractionBuilder()
Annotation details for text extraction.
.google.cloud.automl.v1.TextExtractionAnnotation text_extraction = 6;
-
getTextExtractionOrBuilder
public TextExtractionAnnotationOrBuilder 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
public TextSentimentAnnotation getTextSentiment()
Annotation details for text sentiment.
.google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7;- Specified by:
getTextSentimentin interfaceAnnotationPayloadOrBuilder- Returns:
- The textSentiment.
-
setTextSentiment
public AnnotationPayload.Builder setTextSentiment(TextSentimentAnnotation value)
Annotation details for text sentiment.
.google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7;
-
setTextSentiment
public AnnotationPayload.Builder setTextSentiment(TextSentimentAnnotation.Builder builderForValue)
Annotation details for text sentiment.
.google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7;
-
mergeTextSentiment
public AnnotationPayload.Builder mergeTextSentiment(TextSentimentAnnotation value)
Annotation details for text sentiment.
.google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7;
-
clearTextSentiment
public AnnotationPayload.Builder clearTextSentiment()
Annotation details for text sentiment.
.google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7;
-
getTextSentimentBuilder
public TextSentimentAnnotation.Builder getTextSentimentBuilder()
Annotation details for text sentiment.
.google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7;
-
getTextSentimentOrBuilder
public TextSentimentAnnotationOrBuilder getTextSentimentOrBuilder()
Annotation details for text sentiment.
.google.cloud.automl.v1.TextSentimentAnnotation text_sentiment = 7;- Specified by:
getTextSentimentOrBuilderin interfaceAnnotationPayloadOrBuilder
-
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;- 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
public 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;- Parameters:
value- The annotationSpecId to set.- Returns:
- This builder for chaining.
-
clearAnnotationSpecId
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;- Returns:
- This builder for chaining.
-
setAnnotationSpecIdBytes
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;- Parameters:
value- The bytes for annotationSpecId to set.- Returns:
- This builder for chaining.
-
getDisplayName
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;- 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
public 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;- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
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;- Returns:
- This builder for chaining.
-
setDisplayNameBytes
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;- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final AnnotationPayload.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AnnotationPayload.Builder>
-
mergeUnknownFields
public final AnnotationPayload.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AnnotationPayload.Builder>
-
-