Interface ModelOrBuilder (2.31.0)

public interface ModelOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsLabels(String key)

public abstract 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;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getCreateTime()

public abstract Timestamp getCreateTime()

Output only. Timestamp when the model training finished and can be used for prediction.

.google.protobuf.Timestamp create_time = 7;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeOrBuilder()

public abstract TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Timestamp when the model training finished and can be used for prediction.

.google.protobuf.Timestamp create_time = 7;

Returns
TypeDescription
TimestampOrBuilder

getDatasetId()

public abstract 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;

Returns
TypeDescription
String

The datasetId.

getDatasetIdBytes()

public abstract 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;

Returns
TypeDescription
ByteString

The bytes for datasetId.

getDeploymentState()

public abstract 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;

Returns
TypeDescription
Model.DeploymentState

The deploymentState.

getDeploymentStateValue()

public abstract 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;

Returns
TypeDescription
int

The enum numeric value on the wire for deploymentState.

getDisplayName()

public abstract 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;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public abstract 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;

Returns
TypeDescription
ByteString

The bytes for displayName.

getEtag()

public abstract String getEtag()

Used to perform a consistent read-modify-write updates. If not set, a blind "overwrite" update happens.

string etag = 10;

Returns
TypeDescription
String

The etag.

getEtagBytes()

public abstract ByteString getEtagBytes()

Used to perform a consistent read-modify-write updates. If not set, a blind "overwrite" update happens.

string etag = 10;

Returns
TypeDescription
ByteString

The bytes for etag.

getImageClassificationModelMetadata()

public abstract ImageClassificationModelMetadata getImageClassificationModelMetadata()

Metadata for image classification models.

.google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13;

Returns
TypeDescription
ImageClassificationModelMetadata

The imageClassificationModelMetadata.

getImageClassificationModelMetadataOrBuilder()

public abstract ImageClassificationModelMetadataOrBuilder getImageClassificationModelMetadataOrBuilder()

Metadata for image classification models.

.google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13;

Returns
TypeDescription
ImageClassificationModelMetadataOrBuilder

getImageObjectDetectionModelMetadata()

public abstract ImageObjectDetectionModelMetadata getImageObjectDetectionModelMetadata()

Metadata for image object detection models.

.google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20;

Returns
TypeDescription
ImageObjectDetectionModelMetadata

The imageObjectDetectionModelMetadata.

getImageObjectDetectionModelMetadataOrBuilder()

public abstract ImageObjectDetectionModelMetadataOrBuilder getImageObjectDetectionModelMetadataOrBuilder()

Metadata for image object detection models.

.google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20;

Returns
TypeDescription
ImageObjectDetectionModelMetadataOrBuilder

getLabels() (deprecated)

public abstract Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public abstract 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;

Returns
TypeDescription
int

getLabelsMap()

public abstract 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;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public abstract 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;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public abstract 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;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getModelMetadataCase()

public abstract Model.ModelMetadataCase getModelMetadataCase()
Returns
TypeDescription
Model.ModelMetadataCase

getName()

public abstract String getName()

Output only. Resource name of the model. Format: projects/{project_id}/locations/{location_id}/models/{model_id}

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

Output only. Resource name of the model. Format: projects/{project_id}/locations/{location_id}/models/{model_id}

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getTextClassificationModelMetadata()

public abstract TextClassificationModelMetadata getTextClassificationModelMetadata()

Metadata for text classification models.

.google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14;

Returns
TypeDescription
TextClassificationModelMetadata

The textClassificationModelMetadata.

getTextClassificationModelMetadataOrBuilder()

public abstract TextClassificationModelMetadataOrBuilder getTextClassificationModelMetadataOrBuilder()

Metadata for text classification models.

.google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14;

Returns
TypeDescription
TextClassificationModelMetadataOrBuilder

getTextExtractionModelMetadata()

public abstract TextExtractionModelMetadata getTextExtractionModelMetadata()

Metadata for text extraction models.

.google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19;

Returns
TypeDescription
TextExtractionModelMetadata

The textExtractionModelMetadata.

getTextExtractionModelMetadataOrBuilder()

public abstract TextExtractionModelMetadataOrBuilder getTextExtractionModelMetadataOrBuilder()

Metadata for text extraction models.

.google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19;

Returns
TypeDescription
TextExtractionModelMetadataOrBuilder

getTextSentimentModelMetadata()

public abstract TextSentimentModelMetadata getTextSentimentModelMetadata()

Metadata for text sentiment models.

.google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22;

Returns
TypeDescription
TextSentimentModelMetadata

The textSentimentModelMetadata.

getTextSentimentModelMetadataOrBuilder()

public abstract TextSentimentModelMetadataOrBuilder getTextSentimentModelMetadataOrBuilder()

Metadata for text sentiment models.

.google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22;

Returns
TypeDescription
TextSentimentModelMetadataOrBuilder

getTranslationModelMetadata()

public abstract TranslationModelMetadata getTranslationModelMetadata()

Metadata for translation models.

.google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15;

Returns
TypeDescription
TranslationModelMetadata

The translationModelMetadata.

getTranslationModelMetadataOrBuilder()

public abstract TranslationModelMetadataOrBuilder getTranslationModelMetadataOrBuilder()

Metadata for translation models.

.google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15;

Returns
TypeDescription
TranslationModelMetadataOrBuilder

getUpdateTime()

public abstract Timestamp getUpdateTime()

Output only. Timestamp when this model was last updated.

.google.protobuf.Timestamp update_time = 11;

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public abstract TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Timestamp when this model was last updated.

.google.protobuf.Timestamp update_time = 11;

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public abstract boolean hasCreateTime()

Output only. Timestamp when the model training finished and can be used for prediction.

.google.protobuf.Timestamp create_time = 7;

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasImageClassificationModelMetadata()

public abstract boolean hasImageClassificationModelMetadata()

Metadata for image classification models.

.google.cloud.automl.v1.ImageClassificationModelMetadata image_classification_model_metadata = 13;

Returns
TypeDescription
boolean

Whether the imageClassificationModelMetadata field is set.

hasImageObjectDetectionModelMetadata()

public abstract boolean hasImageObjectDetectionModelMetadata()

Metadata for image object detection models.

.google.cloud.automl.v1.ImageObjectDetectionModelMetadata image_object_detection_model_metadata = 20;

Returns
TypeDescription
boolean

Whether the imageObjectDetectionModelMetadata field is set.

hasTextClassificationModelMetadata()

public abstract boolean hasTextClassificationModelMetadata()

Metadata for text classification models.

.google.cloud.automl.v1.TextClassificationModelMetadata text_classification_model_metadata = 14;

Returns
TypeDescription
boolean

Whether the textClassificationModelMetadata field is set.

hasTextExtractionModelMetadata()

public abstract boolean hasTextExtractionModelMetadata()

Metadata for text extraction models.

.google.cloud.automl.v1.TextExtractionModelMetadata text_extraction_model_metadata = 19;

Returns
TypeDescription
boolean

Whether the textExtractionModelMetadata field is set.

hasTextSentimentModelMetadata()

public abstract boolean hasTextSentimentModelMetadata()

Metadata for text sentiment models.

.google.cloud.automl.v1.TextSentimentModelMetadata text_sentiment_model_metadata = 22;

Returns
TypeDescription
boolean

Whether the textSentimentModelMetadata field is set.

hasTranslationModelMetadata()

public abstract boolean hasTranslationModelMetadata()

Metadata for translation models.

.google.cloud.automl.v1.TranslationModelMetadata translation_model_metadata = 15;

Returns
TypeDescription
boolean

Whether the translationModelMetadata field is set.

hasUpdateTime()

public abstract boolean hasUpdateTime()

Output only. Timestamp when this model was last updated.

.google.protobuf.Timestamp update_time = 11;

Returns
TypeDescription
boolean

Whether the updateTime field is set.