- 2.55.0 (latest)
- 2.54.0
- 2.53.0
- 2.52.0
- 2.51.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.18
- 2.2.3
- 2.1.23
public static final class Model.Builder extends GeneratedMessageV3.Builder<Model.Builder> implements ModelOrBuilder
API proto representing a trained machine learning model.
Protobuf type google.cloud.automl.v1.Model
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Model.BuilderImplements
ModelOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Model.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Model.Builder |
build()
public Model build()
Type | Description |
Model |
buildPartial()
public Model buildPartial()
Type | Description |
Model |
clear()
public Model.Builder clear()
Type | Description |
Model.Builder |
clearCreateTime()
public Model.Builder clearCreateTime()
Output only. Timestamp when the model training finished and can be used for prediction.
.google.protobuf.Timestamp create_time = 7;
Type | Description |
Model.Builder |
clearDatasetId()
public Model.Builder 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;
Type | Description |
Model.Builder | This builder for chaining. |
clearDeploymentState()
public Model.Builder 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;
Type | Description |
Model.Builder | This builder for chaining. |
clearDisplayName()
public Model.Builder 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;
Type | Description |
Model.Builder | This builder for chaining. |
clearEtag()
public Model.Builder clearEtag()
Used to perform a consistent read-modify-write updates. If not set, a blind "overwrite" update happens.
string etag = 10;
Type | Description |
Model.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Model.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
Model.Builder |
clearImageClassificationModelMetadata()
public Model.Builder clearImageClassificationModelMetadata()
Metadata for image classification models.
.google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13;
Type | Description |
Model.Builder |
clearImageObjectDetectionModelMetadata()
public Model.Builder clearImageObjectDetectionModelMetadata()
Metadata for image object detection models.
.google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20;
Type | Description |
Model.Builder |
clearLabels()
public Model.Builder clearLabels()
Type | Description |
Model.Builder |
clearModelMetadata()
public Model.Builder clearModelMetadata()
Type | Description |
Model.Builder |
clearName()
public Model.Builder clearName()
Output only. Resource name of the model.
Format: projects/{project_id}/locations/{location_id}/models/{model_id}
string name = 1;
Type | Description |
Model.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Model.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
Model.Builder |
clearTextClassificationModelMetadata()
public Model.Builder clearTextClassificationModelMetadata()
Metadata for text classification models.
.google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14;
Type | Description |
Model.Builder |
clearTextExtractionModelMetadata()
public Model.Builder clearTextExtractionModelMetadata()
Metadata for text extraction models.
.google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19;
Type | Description |
Model.Builder |
clearTextSentimentModelMetadata()
public Model.Builder clearTextSentimentModelMetadata()
Metadata for text sentiment models.
.google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22;
Type | Description |
Model.Builder |
clearTranslationModelMetadata()
public Model.Builder clearTranslationModelMetadata()
Metadata for translation models.
.google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15;
Type | Description |
Model.Builder |
clearUpdateTime()
public Model.Builder clearUpdateTime()
Output only. Timestamp when this model was last updated.
.google.protobuf.Timestamp update_time = 11;
Type | Description |
Model.Builder |
clone()
public Model.Builder clone()
Type | Description |
Model.Builder |
containsLabels(String key)
public boolean containsLabels(String key)
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;
Name | Description |
key | String |
Type | Description |
boolean |
getCreateTime()
public Timestamp getCreateTime()
Output only. Timestamp when the model training finished and can be used for prediction.
.google.protobuf.Timestamp create_time = 7;
Type | Description |
Timestamp | The createTime. |
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()
Output only. Timestamp when the model training finished and can be used for prediction.
.google.protobuf.Timestamp create_time = 7;
Type | Description |
Builder |
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Timestamp when the model training finished and can be used for prediction.
.google.protobuf.Timestamp create_time = 7;
Type | Description |
TimestampOrBuilder |
getDatasetId()
public String 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;
Type | Description |
String | The datasetId. |
getDatasetIdBytes()
public 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;
Type | Description |
ByteString | The bytes for datasetId. |
getDefaultInstanceForType()
public Model getDefaultInstanceForType()
Type | Description |
Model |
getDeploymentState()
public Model.DeploymentState 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;
Type | Description |
Model.DeploymentState | The deploymentState. |
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;
Type | Description |
int | The enum numeric value on the wire for deploymentState. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getDisplayName()
public String 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;
Type | Description |
String | The displayName. |
getDisplayNameBytes()
public 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;
Type | Description |
ByteString | The bytes for displayName. |
getEtag()
public String getEtag()
Used to perform a consistent read-modify-write updates. If not set, a blind "overwrite" update happens.
string etag = 10;
Type | Description |
String | The etag. |
getEtagBytes()
public ByteString getEtagBytes()
Used to perform a consistent read-modify-write updates. If not set, a blind "overwrite" update happens.
string etag = 10;
Type | Description |
ByteString | The bytes for etag. |
getImageClassificationModelMetadata()
public ImageClassificationModelMetadata getImageClassificationModelMetadata()
Metadata for image classification models.
.google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13;
Type | Description |
ImageClassificationModelMetadata | The imageClassificationModelMetadata. |
getImageClassificationModelMetadataBuilder()
public ImageClassificationModelMetadata.Builder getImageClassificationModelMetadataBuilder()
Metadata for image classification models.
.google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13;
Type | Description |
ImageClassificationModelMetadata.Builder |
getImageClassificationModelMetadataOrBuilder()
public ImageClassificationModelMetadataOrBuilder getImageClassificationModelMetadataOrBuilder()
Metadata for image classification models.
.google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13;
Type | Description |
ImageClassificationModelMetadataOrBuilder |
getImageObjectDetectionModelMetadata()
public ImageObjectDetectionModelMetadata getImageObjectDetectionModelMetadata()
Metadata for image object detection models.
.google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20;
Type | Description |
ImageObjectDetectionModelMetadata | The imageObjectDetectionModelMetadata. |
getImageObjectDetectionModelMetadataBuilder()
public ImageObjectDetectionModelMetadata.Builder getImageObjectDetectionModelMetadataBuilder()
Metadata for image object detection models.
.google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20;
Type | Description |
ImageObjectDetectionModelMetadata.Builder |
getImageObjectDetectionModelMetadataOrBuilder()
public ImageObjectDetectionModelMetadataOrBuilder getImageObjectDetectionModelMetadataOrBuilder()
Metadata for image object detection models.
.google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20;
Type | Description |
ImageObjectDetectionModelMetadataOrBuilder |
getLabels()
public Map<String,String> getLabels()
Use #getLabelsMap() instead.
Type | Description |
Map<String,String> |
getLabelsCount()
public int getLabelsCount()
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;
Type | Description |
int |
getLabelsMap()
public Map<String,String> 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;
Type | Description |
Map<String,String> |
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)
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;
Name | Description |
key | String |
defaultValue | String |
Type | Description |
String |
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)
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;
Name | Description |
key | String |
Type | Description |
String |
getModelMetadataCase()
public Model.ModelMetadataCase getModelMetadataCase()
Type | Description |
Model.ModelMetadataCase |
getMutableLabels()
public Map<String,String> getMutableLabels()
Use alternate mutation accessors instead.
Type | Description |
Map<String,String> |
getName()
public String getName()
Output only. Resource name of the model.
Format: projects/{project_id}/locations/{location_id}/models/{model_id}
string name = 1;
Type | Description |
String | The name. |
getNameBytes()
public ByteString getNameBytes()
Output only. Resource name of the model.
Format: projects/{project_id}/locations/{location_id}/models/{model_id}
string name = 1;
Type | Description |
ByteString | The bytes for name. |
getTextClassificationModelMetadata()
public TextClassificationModelMetadata getTextClassificationModelMetadata()
Metadata for text classification models.
.google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14;
Type | Description |
TextClassificationModelMetadata | The textClassificationModelMetadata. |
getTextClassificationModelMetadataBuilder()
public TextClassificationModelMetadata.Builder getTextClassificationModelMetadataBuilder()
Metadata for text classification models.
.google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14;
Type | Description |
TextClassificationModelMetadata.Builder |
getTextClassificationModelMetadataOrBuilder()
public TextClassificationModelMetadataOrBuilder getTextClassificationModelMetadataOrBuilder()
Metadata for text classification models.
.google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14;
Type | Description |
TextClassificationModelMetadataOrBuilder |
getTextExtractionModelMetadata()
public TextExtractionModelMetadata getTextExtractionModelMetadata()
Metadata for text extraction models.
.google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19;
Type | Description |
TextExtractionModelMetadata | The textExtractionModelMetadata. |
getTextExtractionModelMetadataBuilder()
public TextExtractionModelMetadata.Builder getTextExtractionModelMetadataBuilder()
Metadata for text extraction models.
.google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19;
Type | Description |
TextExtractionModelMetadata.Builder |
getTextExtractionModelMetadataOrBuilder()
public TextExtractionModelMetadataOrBuilder getTextExtractionModelMetadataOrBuilder()
Metadata for text extraction models.
.google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19;
Type | Description |
TextExtractionModelMetadataOrBuilder |
getTextSentimentModelMetadata()
public TextSentimentModelMetadata getTextSentimentModelMetadata()
Metadata for text sentiment models.
.google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22;
Type | Description |
TextSentimentModelMetadata | The textSentimentModelMetadata. |
getTextSentimentModelMetadataBuilder()
public TextSentimentModelMetadata.Builder getTextSentimentModelMetadataBuilder()
Metadata for text sentiment models.
.google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22;
Type | Description |
TextSentimentModelMetadata.Builder |
getTextSentimentModelMetadataOrBuilder()
public TextSentimentModelMetadataOrBuilder getTextSentimentModelMetadataOrBuilder()
Metadata for text sentiment models.
.google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22;
Type | Description |
TextSentimentModelMetadataOrBuilder |
getTranslationModelMetadata()
public TranslationModelMetadata getTranslationModelMetadata()
Metadata for translation models.
.google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15;
Type | Description |
TranslationModelMetadata | The translationModelMetadata. |
getTranslationModelMetadataBuilder()
public TranslationModelMetadata.Builder getTranslationModelMetadataBuilder()
Metadata for translation models.
.google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15;
Type | Description |
TranslationModelMetadata.Builder |
getTranslationModelMetadataOrBuilder()
public TranslationModelMetadataOrBuilder getTranslationModelMetadataOrBuilder()
Metadata for translation models.
.google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15;
Type | Description |
TranslationModelMetadataOrBuilder |
getUpdateTime()
public Timestamp getUpdateTime()
Output only. Timestamp when this model was last updated.
.google.protobuf.Timestamp update_time = 11;
Type | Description |
Timestamp | The updateTime. |
getUpdateTimeBuilder()
public Timestamp.Builder getUpdateTimeBuilder()
Output only. Timestamp when this model was last updated.
.google.protobuf.Timestamp update_time = 11;
Type | Description |
Builder |
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. Timestamp when this model was last updated.
.google.protobuf.Timestamp update_time = 11;
Type | Description |
TimestampOrBuilder |
hasCreateTime()
public boolean hasCreateTime()
Output only. Timestamp when the model training finished and can be used for prediction.
.google.protobuf.Timestamp create_time = 7;
Type | Description |
boolean | Whether the createTime field is set. |
hasImageClassificationModelMetadata()
public boolean hasImageClassificationModelMetadata()
Metadata for image classification models.
.google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13;
Type | Description |
boolean | Whether the imageClassificationModelMetadata field is set. |
hasImageObjectDetectionModelMetadata()
public boolean hasImageObjectDetectionModelMetadata()
Metadata for image object detection models.
.google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20;
Type | Description |
boolean | Whether the imageObjectDetectionModelMetadata field is set. |
hasTextClassificationModelMetadata()
public boolean hasTextClassificationModelMetadata()
Metadata for text classification models.
.google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14;
Type | Description |
boolean | Whether the textClassificationModelMetadata field is set. |
hasTextExtractionModelMetadata()
public boolean hasTextExtractionModelMetadata()
Metadata for text extraction models.
.google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19;
Type | Description |
boolean | Whether the textExtractionModelMetadata field is set. |
hasTextSentimentModelMetadata()
public boolean hasTextSentimentModelMetadata()
Metadata for text sentiment models.
.google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22;
Type | Description |
boolean | Whether the textSentimentModelMetadata field is set. |
hasTranslationModelMetadata()
public boolean hasTranslationModelMetadata()
Metadata for translation models.
.google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15;
Type | Description |
boolean | Whether the translationModelMetadata field is set. |
hasUpdateTime()
public boolean hasUpdateTime()
Output only. Timestamp when this model was last updated.
.google.protobuf.Timestamp update_time = 11;
Type | Description |
boolean | Whether the updateTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeCreateTime(Timestamp value)
public Model.Builder mergeCreateTime(Timestamp value)
Output only. Timestamp when the model training finished and can be used for prediction.
.google.protobuf.Timestamp create_time = 7;
Name | Description |
value | Timestamp |
Type | Description |
Model.Builder |
mergeFrom(Model other)
public Model.Builder mergeFrom(Model other)
Name | Description |
other | Model |
Type | Description |
Model.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Model.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Model.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Model.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
Model.Builder |
mergeImageClassificationModelMetadata(ImageClassificationModelMetadata value)
public Model.Builder mergeImageClassificationModelMetadata(ImageClassificationModelMetadata value)
Metadata for image classification models.
.google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13;
Name | Description |
value | ImageClassificationModelMetadata |
Type | Description |
Model.Builder |
mergeImageObjectDetectionModelMetadata(ImageObjectDetectionModelMetadata value)
public Model.Builder mergeImageObjectDetectionModelMetadata(ImageObjectDetectionModelMetadata value)
Metadata for image object detection models.
.google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20;
Name | Description |
value | ImageObjectDetectionModelMetadata |
Type | Description |
Model.Builder |
mergeTextClassificationModelMetadata(TextClassificationModelMetadata value)
public Model.Builder mergeTextClassificationModelMetadata(TextClassificationModelMetadata value)
Metadata for text classification models.
.google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14;
Name | Description |
value | TextClassificationModelMetadata |
Type | Description |
Model.Builder |
mergeTextExtractionModelMetadata(TextExtractionModelMetadata value)
public Model.Builder mergeTextExtractionModelMetadata(TextExtractionModelMetadata value)
Metadata for text extraction models.
.google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19;
Name | Description |
value | TextExtractionModelMetadata |
Type | Description |
Model.Builder |
mergeTextSentimentModelMetadata(TextSentimentModelMetadata value)
public Model.Builder mergeTextSentimentModelMetadata(TextSentimentModelMetadata value)
Metadata for text sentiment models.
.google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22;
Name | Description |
value | TextSentimentModelMetadata |
Type | Description |
Model.Builder |
mergeTranslationModelMetadata(TranslationModelMetadata value)
public Model.Builder mergeTranslationModelMetadata(TranslationModelMetadata value)
Metadata for translation models.
.google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15;
Name | Description |
value | TranslationModelMetadata |
Type | Description |
Model.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Model.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Model.Builder |
mergeUpdateTime(Timestamp value)
public Model.Builder mergeUpdateTime(Timestamp value)
Output only. Timestamp when this model was last updated.
.google.protobuf.Timestamp update_time = 11;
Name | Description |
value | Timestamp |
Type | Description |
Model.Builder |
putAllLabels(Map<String,String> values)
public Model.Builder putAllLabels(Map<String,String> values)
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;
Name | Description |
values | Map<String,String> |
Type | Description |
Model.Builder |
putLabels(String key, String value)
public Model.Builder putLabels(String key, String value)
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;
Name | Description |
key | String |
value | String |
Type | Description |
Model.Builder |
removeLabels(String key)
public Model.Builder removeLabels(String key)
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;
Name | Description |
key | String |
Type | Description |
Model.Builder |
setCreateTime(Timestamp value)
public Model.Builder setCreateTime(Timestamp value)
Output only. Timestamp when the model training finished and can be used for prediction.
.google.protobuf.Timestamp create_time = 7;
Name | Description |
value | Timestamp |
Type | Description |
Model.Builder |
setCreateTime(Timestamp.Builder builderForValue)
public Model.Builder setCreateTime(Timestamp.Builder builderForValue)
Output only. Timestamp when the model training finished and can be used for prediction.
.google.protobuf.Timestamp create_time = 7;
Name | Description |
builderForValue | Builder |
Type | Description |
Model.Builder |
setDatasetId(String value)
public Model.Builder setDatasetId(String value)
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;
Name | Description |
value | String The datasetId to set. |
Type | Description |
Model.Builder | This builder for chaining. |
setDatasetIdBytes(ByteString value)
public Model.Builder setDatasetIdBytes(ByteString value)
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;
Name | Description |
value | ByteString The bytes for datasetId to set. |
Type | Description |
Model.Builder | This builder for chaining. |
setDeploymentState(Model.DeploymentState value)
public Model.Builder setDeploymentState(Model.DeploymentState value)
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;
Name | Description |
value | Model.DeploymentState The deploymentState to set. |
Type | Description |
Model.Builder | This builder for chaining. |
setDeploymentStateValue(int value)
public Model.Builder setDeploymentStateValue(int value)
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;
Name | Description |
value | int The enum numeric value on the wire for deploymentState to set. |
Type | Description |
Model.Builder | This builder for chaining. |
setDisplayName(String value)
public Model.Builder setDisplayName(String value)
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;
Name | Description |
value | String The displayName to set. |
Type | Description |
Model.Builder | This builder for chaining. |
setDisplayNameBytes(ByteString value)
public Model.Builder setDisplayNameBytes(ByteString value)
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;
Name | Description |
value | ByteString The bytes for displayName to set. |
Type | Description |
Model.Builder | This builder for chaining. |
setEtag(String value)
public Model.Builder setEtag(String value)
Used to perform a consistent read-modify-write updates. If not set, a blind "overwrite" update happens.
string etag = 10;
Name | Description |
value | String The etag to set. |
Type | Description |
Model.Builder | This builder for chaining. |
setEtagBytes(ByteString value)
public Model.Builder setEtagBytes(ByteString value)
Used to perform a consistent read-modify-write updates. If not set, a blind "overwrite" update happens.
string etag = 10;
Name | Description |
value | ByteString The bytes for etag to set. |
Type | Description |
Model.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public Model.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Model.Builder |
setImageClassificationModelMetadata(ImageClassificationModelMetadata value)
public Model.Builder setImageClassificationModelMetadata(ImageClassificationModelMetadata value)
Metadata for image classification models.
.google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13;
Name | Description |
value | ImageClassificationModelMetadata |
Type | Description |
Model.Builder |
setImageClassificationModelMetadata(ImageClassificationModelMetadata.Builder builderForValue)
public Model.Builder setImageClassificationModelMetadata(ImageClassificationModelMetadata.Builder builderForValue)
Metadata for image classification models.
.google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13;
Name | Description |
builderForValue | ImageClassificationModelMetadata.Builder |
Type | Description |
Model.Builder |
setImageObjectDetectionModelMetadata(ImageObjectDetectionModelMetadata value)
public Model.Builder setImageObjectDetectionModelMetadata(ImageObjectDetectionModelMetadata value)
Metadata for image object detection models.
.google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20;
Name | Description |
value | ImageObjectDetectionModelMetadata |
Type | Description |
Model.Builder |
setImageObjectDetectionModelMetadata(ImageObjectDetectionModelMetadata.Builder builderForValue)
public Model.Builder setImageObjectDetectionModelMetadata(ImageObjectDetectionModelMetadata.Builder builderForValue)
Metadata for image object detection models.
.google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20;
Name | Description |
builderForValue | ImageObjectDetectionModelMetadata.Builder |
Type | Description |
Model.Builder |
setName(String value)
public Model.Builder setName(String value)
Output only. Resource name of the model.
Format: projects/{project_id}/locations/{location_id}/models/{model_id}
string name = 1;
Name | Description |
value | String The name to set. |
Type | Description |
Model.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public Model.Builder setNameBytes(ByteString value)
Output only. Resource name of the model.
Format: projects/{project_id}/locations/{location_id}/models/{model_id}
string name = 1;
Name | Description |
value | ByteString The bytes for name to set. |
Type | Description |
Model.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Model.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
Model.Builder |
setTextClassificationModelMetadata(TextClassificationModelMetadata value)
public Model.Builder setTextClassificationModelMetadata(TextClassificationModelMetadata value)
Metadata for text classification models.
.google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14;
Name | Description |
value | TextClassificationModelMetadata |
Type | Description |
Model.Builder |
setTextClassificationModelMetadata(TextClassificationModelMetadata.Builder builderForValue)
public Model.Builder setTextClassificationModelMetadata(TextClassificationModelMetadata.Builder builderForValue)
Metadata for text classification models.
.google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14;
Name | Description |
builderForValue | TextClassificationModelMetadata.Builder |
Type | Description |
Model.Builder |
setTextExtractionModelMetadata(TextExtractionModelMetadata value)
public Model.Builder setTextExtractionModelMetadata(TextExtractionModelMetadata value)
Metadata for text extraction models.
.google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19;
Name | Description |
value | TextExtractionModelMetadata |
Type | Description |
Model.Builder |
setTextExtractionModelMetadata(TextExtractionModelMetadata.Builder builderForValue)
public Model.Builder setTextExtractionModelMetadata(TextExtractionModelMetadata.Builder builderForValue)
Metadata for text extraction models.
.google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19;
Name | Description |
builderForValue | TextExtractionModelMetadata.Builder |
Type | Description |
Model.Builder |
setTextSentimentModelMetadata(TextSentimentModelMetadata value)
public Model.Builder setTextSentimentModelMetadata(TextSentimentModelMetadata value)
Metadata for text sentiment models.
.google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22;
Name | Description |
value | TextSentimentModelMetadata |
Type | Description |
Model.Builder |
setTextSentimentModelMetadata(TextSentimentModelMetadata.Builder builderForValue)
public Model.Builder setTextSentimentModelMetadata(TextSentimentModelMetadata.Builder builderForValue)
Metadata for text sentiment models.
.google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22;
Name | Description |
builderForValue | TextSentimentModelMetadata.Builder |
Type | Description |
Model.Builder |
setTranslationModelMetadata(TranslationModelMetadata value)
public Model.Builder setTranslationModelMetadata(TranslationModelMetadata value)
Metadata for translation models.
.google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15;
Name | Description |
value | TranslationModelMetadata |
Type | Description |
Model.Builder |
setTranslationModelMetadata(TranslationModelMetadata.Builder builderForValue)
public Model.Builder setTranslationModelMetadata(TranslationModelMetadata.Builder builderForValue)
Metadata for translation models.
.google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15;
Name | Description |
builderForValue | TranslationModelMetadata.Builder |
Type | Description |
Model.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final Model.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Model.Builder |
setUpdateTime(Timestamp value)
public Model.Builder setUpdateTime(Timestamp value)
Output only. Timestamp when this model was last updated.
.google.protobuf.Timestamp update_time = 11;
Name | Description |
value | Timestamp |
Type | Description |
Model.Builder |
setUpdateTime(Timestamp.Builder builderForValue)
public Model.Builder setUpdateTime(Timestamp.Builder builderForValue)
Output only. Timestamp when this model was last updated.
.google.protobuf.Timestamp update_time = 11;
Name | Description |
builderForValue | Builder |
Type | Description |
Model.Builder |