Package com.google.cloud.automl.v1
Class Model.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Model.Builder>
com.google.cloud.automl.v1.Model.Builder
- All Implemented Interfaces:
ModelOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Model
public static final class Model.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Model.Builder>
implements ModelOrBuilder
API proto representing a trained machine learning model.Protobuf type
google.cloud.automl.v1.Model-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Required.Output only.Required.Used to perform a consistent read-modify-write updates.Metadata for image classification models.Metadata for image object detection models.Output only.Metadata for text classification models.Metadata for text extraction models.Metadata for text sentiment models.Metadata for translation models.Output only.booleancontainsLabels(String key) Optional.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.Required.com.google.protobuf.ByteStringRequired.Output only.intOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.getEtag()Used to perform a consistent read-modify-write updates.com.google.protobuf.ByteStringUsed to perform a consistent read-modify-write updates.Metadata for image classification models.Metadata for image classification models.Metadata for image classification models.Metadata for image object detection models.Metadata for image object detection models.Metadata for image object detection models.Deprecated.intOptional.Optional.getLabelsOrDefault(String key, String defaultValue) Optional.getLabelsOrThrow(String key) Optional.Deprecated.getName()Output only.com.google.protobuf.ByteStringOutput only.Metadata for text classification models.Metadata for text classification models.Metadata for text classification models.Metadata for text extraction models.Metadata for text extraction models.Metadata for text extraction models.Metadata for text sentiment models.Metadata for text sentiment models.Metadata for text sentiment models.Metadata for translation models.Metadata for translation models.Metadata for translation models.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanOutput only.booleanMetadata for image classification models.booleanMetadata for image object detection models.booleanMetadata for text classification models.booleanMetadata for text extraction models.booleanMetadata for text sentiment models.booleanMetadata for translation models.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeCreateTime(com.google.protobuf.Timestamp value) Output only.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Metadata for image classification models.Metadata for image object detection models.Metadata for text classification models.Metadata for text extraction models.Metadata for text sentiment models.Metadata for translation models.mergeUpdateTime(com.google.protobuf.Timestamp value) Output only.putAllLabels(Map<String, String> values) Optional.Optional.removeLabels(String key) Optional.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setDatasetId(String value) Required.setDatasetIdBytes(com.google.protobuf.ByteString value) Required.Output only.setDeploymentStateValue(int value) Output only.setDisplayName(String value) Required.setDisplayNameBytes(com.google.protobuf.ByteString value) Required.Used to perform a consistent read-modify-write updates.setEtagBytes(com.google.protobuf.ByteString value) Used to perform a consistent read-modify-write updates.Metadata for image classification models.Metadata for image classification models.Metadata for image object detection models.Metadata for image object detection models.Output only.setNameBytes(com.google.protobuf.ByteString value) Output only.Metadata for text classification models.Metadata for text classification models.Metadata for text extraction models.setTextExtractionModelMetadata(TextExtractionModelMetadata.Builder builderForValue) Metadata for text extraction models.Metadata for text sentiment models.setTextSentimentModelMetadata(TextSentimentModelMetadata.Builder builderForValue) Metadata for text sentiment models.Metadata for translation models.setTranslationModelMetadata(TranslationModelMetadata.Builder builderForValue) Metadata for translation models.setUpdateTime(com.google.protobuf.Timestamp value) Output only.setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.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, internalGetMutableMapField, 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() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Model.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Model.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Model.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<Model.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<Model.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<Model.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Model.Builder>
-
mergeFrom
public Model.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<Model.Builder>- Throws:
IOException
-
getModelMetadataCase
- Specified by:
getModelMetadataCasein interfaceModelOrBuilder
-
clearModelMetadata
-
hasTranslationModelMetadata
public boolean hasTranslationModelMetadata()Metadata for translation models.
.google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15;- Specified by:
hasTranslationModelMetadatain interfaceModelOrBuilder- Returns:
- Whether the translationModelMetadata field is set.
-
getTranslationModelMetadata
Metadata for translation models.
.google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15;- Specified by:
getTranslationModelMetadatain interfaceModelOrBuilder- Returns:
- The translationModelMetadata.
-
setTranslationModelMetadata
Metadata for translation models.
.google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15; -
setTranslationModelMetadata
Metadata for translation models.
.google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15; -
mergeTranslationModelMetadata
Metadata for translation models.
.google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15; -
clearTranslationModelMetadata
Metadata for translation models.
.google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15; -
getTranslationModelMetadataBuilder
Metadata for translation models.
.google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15; -
getTranslationModelMetadataOrBuilder
Metadata for translation models.
.google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15;- Specified by:
getTranslationModelMetadataOrBuilderin interfaceModelOrBuilder
-
hasImageClassificationModelMetadata
public boolean hasImageClassificationModelMetadata()Metadata for image classification models.
.google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13;- Specified by:
hasImageClassificationModelMetadatain interfaceModelOrBuilder- Returns:
- Whether the imageClassificationModelMetadata field is set.
-
getImageClassificationModelMetadata
Metadata for image classification models.
.google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13;- Specified by:
getImageClassificationModelMetadatain interfaceModelOrBuilder- Returns:
- The imageClassificationModelMetadata.
-
setImageClassificationModelMetadata
Metadata for image classification models.
.google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; -
setImageClassificationModelMetadata
public Model.Builder setImageClassificationModelMetadata(ImageClassificationModelMetadata.Builder builderForValue) Metadata for image classification models.
.google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; -
mergeImageClassificationModelMetadata
Metadata for image classification models.
.google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; -
clearImageClassificationModelMetadata
Metadata for image classification models.
.google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; -
getImageClassificationModelMetadataBuilder
Metadata for image classification models.
.google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13; -
getImageClassificationModelMetadataOrBuilder
Metadata for image classification models.
.google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13;- Specified by:
getImageClassificationModelMetadataOrBuilderin interfaceModelOrBuilder
-
hasTextClassificationModelMetadata
public boolean hasTextClassificationModelMetadata()Metadata for text classification models.
.google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14;- Specified by:
hasTextClassificationModelMetadatain interfaceModelOrBuilder- Returns:
- Whether the textClassificationModelMetadata field is set.
-
getTextClassificationModelMetadata
Metadata for text classification models.
.google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14;- Specified by:
getTextClassificationModelMetadatain interfaceModelOrBuilder- Returns:
- The textClassificationModelMetadata.
-
setTextClassificationModelMetadata
Metadata for text classification models.
.google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; -
setTextClassificationModelMetadata
public Model.Builder setTextClassificationModelMetadata(TextClassificationModelMetadata.Builder builderForValue) Metadata for text classification models.
.google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; -
mergeTextClassificationModelMetadata
Metadata for text classification models.
.google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; -
clearTextClassificationModelMetadata
Metadata for text classification models.
.google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; -
getTextClassificationModelMetadataBuilder
Metadata for text classification models.
.google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14; -
getTextClassificationModelMetadataOrBuilder
Metadata for text classification models.
.google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14;- Specified by:
getTextClassificationModelMetadataOrBuilderin interfaceModelOrBuilder
-
hasImageObjectDetectionModelMetadata
public boolean hasImageObjectDetectionModelMetadata()Metadata for image object detection models.
.google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20;- Specified by:
hasImageObjectDetectionModelMetadatain interfaceModelOrBuilder- Returns:
- Whether the imageObjectDetectionModelMetadata field is set.
-
getImageObjectDetectionModelMetadata
Metadata for image object detection models.
.google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20;- Specified by:
getImageObjectDetectionModelMetadatain interfaceModelOrBuilder- Returns:
- The imageObjectDetectionModelMetadata.
-
setImageObjectDetectionModelMetadata
Metadata for image object detection models.
.google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; -
setImageObjectDetectionModelMetadata
public Model.Builder setImageObjectDetectionModelMetadata(ImageObjectDetectionModelMetadata.Builder builderForValue) Metadata for image object detection models.
.google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; -
mergeImageObjectDetectionModelMetadata
public Model.Builder mergeImageObjectDetectionModelMetadata(ImageObjectDetectionModelMetadata value) Metadata for image object detection models.
.google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; -
clearImageObjectDetectionModelMetadata
Metadata for image object detection models.
.google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; -
getImageObjectDetectionModelMetadataBuilder
Metadata for image object detection models.
.google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20; -
getImageObjectDetectionModelMetadataOrBuilder
Metadata for image object detection models.
.google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20;- Specified by:
getImageObjectDetectionModelMetadataOrBuilderin interfaceModelOrBuilder
-
hasTextExtractionModelMetadata
public boolean hasTextExtractionModelMetadata()Metadata for text extraction models.
.google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19;- Specified by:
hasTextExtractionModelMetadatain interfaceModelOrBuilder- Returns:
- Whether the textExtractionModelMetadata field is set.
-
getTextExtractionModelMetadata
Metadata for text extraction models.
.google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19;- Specified by:
getTextExtractionModelMetadatain interfaceModelOrBuilder- Returns:
- The textExtractionModelMetadata.
-
setTextExtractionModelMetadata
Metadata for text extraction models.
.google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; -
setTextExtractionModelMetadata
public Model.Builder setTextExtractionModelMetadata(TextExtractionModelMetadata.Builder builderForValue) Metadata for text extraction models.
.google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; -
mergeTextExtractionModelMetadata
Metadata for text extraction models.
.google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; -
clearTextExtractionModelMetadata
Metadata for text extraction models.
.google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; -
getTextExtractionModelMetadataBuilder
Metadata for text extraction models.
.google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19; -
getTextExtractionModelMetadataOrBuilder
Metadata for text extraction models.
.google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19;- Specified by:
getTextExtractionModelMetadataOrBuilderin interfaceModelOrBuilder
-
hasTextSentimentModelMetadata
public boolean hasTextSentimentModelMetadata()Metadata for text sentiment models.
.google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22;- Specified by:
hasTextSentimentModelMetadatain interfaceModelOrBuilder- Returns:
- Whether the textSentimentModelMetadata field is set.
-
getTextSentimentModelMetadata
Metadata for text sentiment models.
.google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22;- Specified by:
getTextSentimentModelMetadatain interfaceModelOrBuilder- Returns:
- The textSentimentModelMetadata.
-
setTextSentimentModelMetadata
Metadata for text sentiment models.
.google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; -
setTextSentimentModelMetadata
public Model.Builder setTextSentimentModelMetadata(TextSentimentModelMetadata.Builder builderForValue) Metadata for text sentiment models.
.google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; -
mergeTextSentimentModelMetadata
Metadata for text sentiment models.
.google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; -
clearTextSentimentModelMetadata
Metadata for text sentiment models.
.google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; -
getTextSentimentModelMetadataBuilder
Metadata for text sentiment models.
.google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22; -
getTextSentimentModelMetadataOrBuilder
Metadata for text sentiment models.
.google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22;- Specified by:
getTextSentimentModelMetadataOrBuilderin interfaceModelOrBuilder
-
getName
Output only. Resource name of the model. Format: `projects/{project_id}/locations/{location_id}/models/{model_id}`string name = 1;- Specified by:
getNamein interfaceModelOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Output only. Resource name of the model. Format: `projects/{project_id}/locations/{location_id}/models/{model_id}`string name = 1;- Specified by:
getNameBytesin interfaceModelOrBuilder- Returns:
- The bytes for name.
-
setName
Output only. Resource name of the model. Format: `projects/{project_id}/locations/{location_id}/models/{model_id}`string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Output only. Resource name of the model. Format: `projects/{project_id}/locations/{location_id}/models/{model_id}`string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
Output only. Resource name of the model. Format: `projects/{project_id}/locations/{location_id}/models/{model_id}`string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getDisplayName
Required. The name of the model to show in the interface. The name can be up to 32 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscores (_), and ASCII digits 0-9. It must start with a letter.
string display_name = 2;- Specified by:
getDisplayNamein interfaceModelOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()Required. The name of the model to show in the interface. The name can be up to 32 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscores (_), and ASCII digits 0-9. It must start with a letter.
string display_name = 2;- Specified by:
getDisplayNameBytesin interfaceModelOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
Required. The name of the model to show in the interface. The name can be up to 32 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscores (_), and ASCII digits 0-9. It must start with a letter.
string display_name = 2;- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
Required. The name of the model to show in the interface. The name can be up to 32 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscores (_), and ASCII digits 0-9. It must start with a letter.
string display_name = 2;- Returns:
- This builder for chaining.
-
setDisplayNameBytes
Required. The name of the model to show in the interface. The name can be up to 32 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscores (_), and ASCII digits 0-9. It must start with a letter.
string display_name = 2;- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-
getDatasetId
Required. The resource ID of the dataset used to create the model. The dataset must come from the same ancestor project and location.
string dataset_id = 3;- Specified by:
getDatasetIdin interfaceModelOrBuilder- Returns:
- The datasetId.
-
getDatasetIdBytes
public com.google.protobuf.ByteString getDatasetIdBytes()Required. The resource ID of the dataset used to create the model. The dataset must come from the same ancestor project and location.
string dataset_id = 3;- Specified by:
getDatasetIdBytesin interfaceModelOrBuilder- Returns:
- The bytes for datasetId.
-
setDatasetId
Required. The resource ID of the dataset used to create the model. The dataset must come from the same ancestor project and location.
string dataset_id = 3;- Parameters:
value- The datasetId to set.- Returns:
- This builder for chaining.
-
clearDatasetId
Required. The resource ID of the dataset used to create the model. The dataset must come from the same ancestor project and location.
string dataset_id = 3;- Returns:
- This builder for chaining.
-
setDatasetIdBytes
Required. The resource ID of the dataset used to create the model. The dataset must come from the same ancestor project and location.
string dataset_id = 3;- Parameters:
value- The bytes for datasetId to set.- Returns:
- This builder for chaining.
-
hasCreateTime
public boolean hasCreateTime()Output only. Timestamp when the model training finished and can be used for prediction.
.google.protobuf.Timestamp create_time = 7;- Specified by:
hasCreateTimein interfaceModelOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Output only. Timestamp when the model training finished and can be used for prediction.
.google.protobuf.Timestamp create_time = 7;- Specified by:
getCreateTimein interfaceModelOrBuilder- Returns:
- The createTime.
-
setCreateTime
Output only. Timestamp when the model training finished and can be used for prediction.
.google.protobuf.Timestamp create_time = 7; -
setCreateTime
Output only. Timestamp when the model training finished and can be used for prediction.
.google.protobuf.Timestamp create_time = 7; -
mergeCreateTime
Output only. Timestamp when the model training finished and can be used for prediction.
.google.protobuf.Timestamp create_time = 7; -
clearCreateTime
Output only. Timestamp when the model training finished and can be used for prediction.
.google.protobuf.Timestamp create_time = 7; -
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()Output only. Timestamp when the model training finished and can be used for prediction.
.google.protobuf.Timestamp create_time = 7; -
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. Timestamp when the model training finished and can be used for prediction.
.google.protobuf.Timestamp create_time = 7;- Specified by:
getCreateTimeOrBuilderin interfaceModelOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()Output only. Timestamp when this model was last updated.
.google.protobuf.Timestamp update_time = 11;- Specified by:
hasUpdateTimein interfaceModelOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()Output only. Timestamp when this model was last updated.
.google.protobuf.Timestamp update_time = 11;- Specified by:
getUpdateTimein interfaceModelOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
Output only. Timestamp when this model was last updated.
.google.protobuf.Timestamp update_time = 11; -
setUpdateTime
Output only. Timestamp when this model was last updated.
.google.protobuf.Timestamp update_time = 11; -
mergeUpdateTime
Output only. Timestamp when this model was last updated.
.google.protobuf.Timestamp update_time = 11; -
clearUpdateTime
Output only. Timestamp when this model was last updated.
.google.protobuf.Timestamp update_time = 11; -
getUpdateTimeBuilder
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()Output only. Timestamp when this model was last updated.
.google.protobuf.Timestamp update_time = 11; -
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()Output only. Timestamp when this model was last updated.
.google.protobuf.Timestamp update_time = 11;- Specified by:
getUpdateTimeOrBuilderin interfaceModelOrBuilder
-
getDeploymentStateValue
public int getDeploymentStateValue()Output only. Deployment state of the model. A model can only serve prediction requests after it gets deployed.
.google.cloud.automl.v1.Model.DeploymentState deployment_state = 8;- Specified by:
getDeploymentStateValuein interfaceModelOrBuilder- Returns:
- The enum numeric value on the wire for deploymentState.
-
setDeploymentStateValue
Output only. Deployment state of the model. A model can only serve prediction requests after it gets deployed.
.google.cloud.automl.v1.Model.DeploymentState deployment_state = 8;- Parameters:
value- The enum numeric value on the wire for deploymentState to set.- Returns:
- This builder for chaining.
-
getDeploymentState
Output only. Deployment state of the model. A model can only serve prediction requests after it gets deployed.
.google.cloud.automl.v1.Model.DeploymentState deployment_state = 8;- Specified by:
getDeploymentStatein interfaceModelOrBuilder- Returns:
- The deploymentState.
-
setDeploymentState
Output only. Deployment state of the model. A model can only serve prediction requests after it gets deployed.
.google.cloud.automl.v1.Model.DeploymentState deployment_state = 8;- Parameters:
value- The deploymentState to set.- Returns:
- This builder for chaining.
-
clearDeploymentState
Output only. Deployment state of the model. A model can only serve prediction requests after it gets deployed.
.google.cloud.automl.v1.Model.DeploymentState deployment_state = 8;- Returns:
- This builder for chaining.
-
getEtag
Used to perform a consistent read-modify-write updates. If not set, a blind "overwrite" update happens.
string etag = 10;- Specified by:
getEtagin interfaceModelOrBuilder- Returns:
- The etag.
-
getEtagBytes
public com.google.protobuf.ByteString getEtagBytes()Used to perform a consistent read-modify-write updates. If not set, a blind "overwrite" update happens.
string etag = 10;- Specified by:
getEtagBytesin interfaceModelOrBuilder- Returns:
- The bytes for etag.
-
setEtag
Used to perform a consistent read-modify-write updates. If not set, a blind "overwrite" update happens.
string etag = 10;- Parameters:
value- The etag to set.- Returns:
- This builder for chaining.
-
clearEtag
Used to perform a consistent read-modify-write updates. If not set, a blind "overwrite" update happens.
string etag = 10;- Returns:
- This builder for chaining.
-
setEtagBytes
Used to perform a consistent read-modify-write updates. If not set, a blind "overwrite" update happens.
string etag = 10;- Parameters:
value- The bytes for etag to set.- Returns:
- This builder for chaining.
-
getLabelsCount
public int getLabelsCount()Description copied from interface:ModelOrBuilderOptional. The labels with user-defined metadata to organize your model. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter. See https://goo.gl/xmQnxf for more information on and examples of labels.
map<string, string> labels = 34;- Specified by:
getLabelsCountin interfaceModelOrBuilder
-
containsLabels
Optional. The labels with user-defined metadata to organize your model. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter. See https://goo.gl/xmQnxf for more information on and examples of labels.
map<string, string> labels = 34;- Specified by:
containsLabelsin interfaceModelOrBuilder
-
getLabels
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceModelOrBuilder
-
getLabelsMap
Optional. The labels with user-defined metadata to organize your model. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter. See https://goo.gl/xmQnxf for more information on and examples of labels.
map<string, string> labels = 34;- Specified by:
getLabelsMapin interfaceModelOrBuilder
-
getLabelsOrDefault
Optional. The labels with user-defined metadata to organize your model. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter. See https://goo.gl/xmQnxf for more information on and examples of labels.
map<string, string> labels = 34;- Specified by:
getLabelsOrDefaultin interfaceModelOrBuilder
-
getLabelsOrThrow
Optional. The labels with user-defined metadata to organize your model. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter. See https://goo.gl/xmQnxf for more information on and examples of labels.
map<string, string> labels = 34;- Specified by:
getLabelsOrThrowin interfaceModelOrBuilder
-
clearLabels
-
removeLabels
Optional. The labels with user-defined metadata to organize your model. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter. See https://goo.gl/xmQnxf for more information on and examples of labels.
map<string, string> labels = 34; -
getMutableLabels
Deprecated.Use alternate mutation accessors instead. -
putLabels
Optional. The labels with user-defined metadata to organize your model. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter. See https://goo.gl/xmQnxf for more information on and examples of labels.
map<string, string> labels = 34; -
putAllLabels
Optional. The labels with user-defined metadata to organize your model. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter. See https://goo.gl/xmQnxf for more information on and examples of labels.
map<string, string> labels = 34;
-