Class Model.Builder (2.37.0)

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.v1beta1.Model

Implements

ModelOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Model.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Model.Builder
Overrides

build()

public Model build()
Returns
TypeDescription
Model

buildPartial()

public Model buildPartial()
Returns
TypeDescription
Model

clear()

public Model.Builder clear()
Returns
TypeDescription
Model.Builder
Overrides

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;

Returns
TypeDescription
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;

Returns
TypeDescription
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.v1beta1.Model.DeploymentState deployment_state = 8;

Returns
TypeDescription
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;

Returns
TypeDescription
Model.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Model.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Model.Builder
Overrides

clearImageClassificationModelMetadata()

public Model.Builder clearImageClassificationModelMetadata()

Metadata for image classification models.

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

Returns
TypeDescription
Model.Builder

clearImageObjectDetectionModelMetadata()

public Model.Builder clearImageObjectDetectionModelMetadata()

Metadata for image object detection models.

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

Returns
TypeDescription
Model.Builder

clearModelMetadata()

public Model.Builder clearModelMetadata()
Returns
TypeDescription
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;

Returns
TypeDescription
Model.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Model.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Model.Builder
Overrides

clearTablesModelMetadata()

public Model.Builder clearTablesModelMetadata()

Metadata for Tables models.

.google.cloud.automl.v1beta1.TablesModelMetadata tables_model_metadata = 24;

Returns
TypeDescription
Model.Builder

clearTextClassificationModelMetadata()

public Model.Builder clearTextClassificationModelMetadata()

Metadata for text classification models.

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

Returns
TypeDescription
Model.Builder

clearTextExtractionModelMetadata()

public Model.Builder clearTextExtractionModelMetadata()

Metadata for text extraction models.

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

Returns
TypeDescription
Model.Builder

clearTextSentimentModelMetadata()

public Model.Builder clearTextSentimentModelMetadata()

Metadata for text sentiment models.

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

Returns
TypeDescription
Model.Builder

clearTranslationModelMetadata()

public Model.Builder clearTranslationModelMetadata()

Metadata for translation models.

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

Returns
TypeDescription
Model.Builder

clearUpdateTime()

public Model.Builder clearUpdateTime()

Output only. Timestamp when this model was last updated.

.google.protobuf.Timestamp update_time = 11;

Returns
TypeDescription
Model.Builder

clearVideoClassificationModelMetadata()

public Model.Builder clearVideoClassificationModelMetadata()

Metadata for video classification models.

.google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23;

Returns
TypeDescription
Model.Builder

clearVideoObjectTrackingModelMetadata()

public Model.Builder clearVideoObjectTrackingModelMetadata()

Metadata for video object tracking models.

.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21;

Returns
TypeDescription
Model.Builder

clone()

public Model.Builder clone()
Returns
TypeDescription
Model.Builder
Overrides

getCreateTime()

public 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.

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;

Returns
TypeDescription
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;

Returns
TypeDescription
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;

Returns
TypeDescription
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;

Returns
TypeDescription
ByteString

The bytes for datasetId.

getDefaultInstanceForType()

public Model getDefaultInstanceForType()
Returns
TypeDescription
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.v1beta1.Model.DeploymentState deployment_state = 8;

Returns
TypeDescription
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.v1beta1.Model.DeploymentState deployment_state = 8;

Returns
TypeDescription
int

The enum numeric value on the wire for deploymentState.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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;

Returns
TypeDescription
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;

Returns
TypeDescription
ByteString

The bytes for displayName.

getImageClassificationModelMetadata()

public ImageClassificationModelMetadata getImageClassificationModelMetadata()

Metadata for image classification models.

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

Returns
TypeDescription
ImageClassificationModelMetadata

The imageClassificationModelMetadata.

getImageClassificationModelMetadataBuilder()

public ImageClassificationModelMetadata.Builder getImageClassificationModelMetadataBuilder()

Metadata for image classification models.

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

Returns
TypeDescription
ImageClassificationModelMetadata.Builder

getImageClassificationModelMetadataOrBuilder()

public ImageClassificationModelMetadataOrBuilder getImageClassificationModelMetadataOrBuilder()

Metadata for image classification models.

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

Returns
TypeDescription
ImageClassificationModelMetadataOrBuilder

getImageObjectDetectionModelMetadata()

public ImageObjectDetectionModelMetadata getImageObjectDetectionModelMetadata()

Metadata for image object detection models.

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

Returns
TypeDescription
ImageObjectDetectionModelMetadata

The imageObjectDetectionModelMetadata.

getImageObjectDetectionModelMetadataBuilder()

public ImageObjectDetectionModelMetadata.Builder getImageObjectDetectionModelMetadataBuilder()

Metadata for image object detection models.

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

Returns
TypeDescription
ImageObjectDetectionModelMetadata.Builder

getImageObjectDetectionModelMetadataOrBuilder()

public ImageObjectDetectionModelMetadataOrBuilder getImageObjectDetectionModelMetadataOrBuilder()

Metadata for image object detection models.

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

Returns
TypeDescription
ImageObjectDetectionModelMetadataOrBuilder

getModelMetadataCase()

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

getName()

public 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 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.

getTablesModelMetadata()

public TablesModelMetadata getTablesModelMetadata()

Metadata for Tables models.

.google.cloud.automl.v1beta1.TablesModelMetadata tables_model_metadata = 24;

Returns
TypeDescription
TablesModelMetadata

The tablesModelMetadata.

getTablesModelMetadataBuilder()

public TablesModelMetadata.Builder getTablesModelMetadataBuilder()

Metadata for Tables models.

.google.cloud.automl.v1beta1.TablesModelMetadata tables_model_metadata = 24;

Returns
TypeDescription
TablesModelMetadata.Builder

getTablesModelMetadataOrBuilder()

public TablesModelMetadataOrBuilder getTablesModelMetadataOrBuilder()

Metadata for Tables models.

.google.cloud.automl.v1beta1.TablesModelMetadata tables_model_metadata = 24;

Returns
TypeDescription
TablesModelMetadataOrBuilder

getTextClassificationModelMetadata()

public TextClassificationModelMetadata getTextClassificationModelMetadata()

Metadata for text classification models.

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

Returns
TypeDescription
TextClassificationModelMetadata

The textClassificationModelMetadata.

getTextClassificationModelMetadataBuilder()

public TextClassificationModelMetadata.Builder getTextClassificationModelMetadataBuilder()

Metadata for text classification models.

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

Returns
TypeDescription
TextClassificationModelMetadata.Builder

getTextClassificationModelMetadataOrBuilder()

public TextClassificationModelMetadataOrBuilder getTextClassificationModelMetadataOrBuilder()

Metadata for text classification models.

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

Returns
TypeDescription
TextClassificationModelMetadataOrBuilder

getTextExtractionModelMetadata()

public TextExtractionModelMetadata getTextExtractionModelMetadata()

Metadata for text extraction models.

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

Returns
TypeDescription
TextExtractionModelMetadata

The textExtractionModelMetadata.

getTextExtractionModelMetadataBuilder()

public TextExtractionModelMetadata.Builder getTextExtractionModelMetadataBuilder()

Metadata for text extraction models.

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

Returns
TypeDescription
TextExtractionModelMetadata.Builder

getTextExtractionModelMetadataOrBuilder()

public TextExtractionModelMetadataOrBuilder getTextExtractionModelMetadataOrBuilder()

Metadata for text extraction models.

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

Returns
TypeDescription
TextExtractionModelMetadataOrBuilder

getTextSentimentModelMetadata()

public TextSentimentModelMetadata getTextSentimentModelMetadata()

Metadata for text sentiment models.

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

Returns
TypeDescription
TextSentimentModelMetadata

The textSentimentModelMetadata.

getTextSentimentModelMetadataBuilder()

public TextSentimentModelMetadata.Builder getTextSentimentModelMetadataBuilder()

Metadata for text sentiment models.

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

Returns
TypeDescription
TextSentimentModelMetadata.Builder

getTextSentimentModelMetadataOrBuilder()

public TextSentimentModelMetadataOrBuilder getTextSentimentModelMetadataOrBuilder()

Metadata for text sentiment models.

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

Returns
TypeDescription
TextSentimentModelMetadataOrBuilder

getTranslationModelMetadata()

public TranslationModelMetadata getTranslationModelMetadata()

Metadata for translation models.

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

Returns
TypeDescription
TranslationModelMetadata

The translationModelMetadata.

getTranslationModelMetadataBuilder()

public TranslationModelMetadata.Builder getTranslationModelMetadataBuilder()

Metadata for translation models.

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

Returns
TypeDescription
TranslationModelMetadata.Builder

getTranslationModelMetadataOrBuilder()

public TranslationModelMetadataOrBuilder getTranslationModelMetadataOrBuilder()

Metadata for translation models.

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

Returns
TypeDescription
TranslationModelMetadataOrBuilder

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Timestamp when this model was last updated.

.google.protobuf.Timestamp update_time = 11;

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. Timestamp when this model was last updated.

.google.protobuf.Timestamp update_time = 11;

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Timestamp when this model was last updated.

.google.protobuf.Timestamp update_time = 11;

Returns
TypeDescription
TimestampOrBuilder

getVideoClassificationModelMetadata()

public VideoClassificationModelMetadata getVideoClassificationModelMetadata()

Metadata for video classification models.

.google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23;

Returns
TypeDescription
VideoClassificationModelMetadata

The videoClassificationModelMetadata.

getVideoClassificationModelMetadataBuilder()

public VideoClassificationModelMetadata.Builder getVideoClassificationModelMetadataBuilder()

Metadata for video classification models.

.google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23;

Returns
TypeDescription
VideoClassificationModelMetadata.Builder

getVideoClassificationModelMetadataOrBuilder()

public VideoClassificationModelMetadataOrBuilder getVideoClassificationModelMetadataOrBuilder()

Metadata for video classification models.

.google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23;

Returns
TypeDescription
VideoClassificationModelMetadataOrBuilder

getVideoObjectTrackingModelMetadata()

public VideoObjectTrackingModelMetadata getVideoObjectTrackingModelMetadata()

Metadata for video object tracking models.

.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21;

Returns
TypeDescription
VideoObjectTrackingModelMetadata

The videoObjectTrackingModelMetadata.

getVideoObjectTrackingModelMetadataBuilder()

public VideoObjectTrackingModelMetadata.Builder getVideoObjectTrackingModelMetadataBuilder()

Metadata for video object tracking models.

.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21;

Returns
TypeDescription
VideoObjectTrackingModelMetadata.Builder

getVideoObjectTrackingModelMetadataOrBuilder()

public VideoObjectTrackingModelMetadataOrBuilder getVideoObjectTrackingModelMetadataOrBuilder()

Metadata for video object tracking models.

.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21;

Returns
TypeDescription
VideoObjectTrackingModelMetadataOrBuilder

hasCreateTime()

public 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 boolean hasImageClassificationModelMetadata()

Metadata for image classification models.

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

Returns
TypeDescription
boolean

Whether the imageClassificationModelMetadata field is set.

hasImageObjectDetectionModelMetadata()

public boolean hasImageObjectDetectionModelMetadata()

Metadata for image object detection models.

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

Returns
TypeDescription
boolean

Whether the imageObjectDetectionModelMetadata field is set.

hasTablesModelMetadata()

public boolean hasTablesModelMetadata()

Metadata for Tables models.

.google.cloud.automl.v1beta1.TablesModelMetadata tables_model_metadata = 24;

Returns
TypeDescription
boolean

Whether the tablesModelMetadata field is set.

hasTextClassificationModelMetadata()

public boolean hasTextClassificationModelMetadata()

Metadata for text classification models.

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

Returns
TypeDescription
boolean

Whether the textClassificationModelMetadata field is set.

hasTextExtractionModelMetadata()

public boolean hasTextExtractionModelMetadata()

Metadata for text extraction models.

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

Returns
TypeDescription
boolean

Whether the textExtractionModelMetadata field is set.

hasTextSentimentModelMetadata()

public boolean hasTextSentimentModelMetadata()

Metadata for text sentiment models.

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

Returns
TypeDescription
boolean

Whether the textSentimentModelMetadata field is set.

hasTranslationModelMetadata()

public boolean hasTranslationModelMetadata()

Metadata for translation models.

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

Returns
TypeDescription
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;

Returns
TypeDescription
boolean

Whether the updateTime field is set.

hasVideoClassificationModelMetadata()

public boolean hasVideoClassificationModelMetadata()

Metadata for video classification models.

.google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23;

Returns
TypeDescription
boolean

Whether the videoClassificationModelMetadata field is set.

hasVideoObjectTrackingModelMetadata()

public boolean hasVideoObjectTrackingModelMetadata()

Metadata for video object tracking models.

.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21;

Returns
TypeDescription
boolean

Whether the videoObjectTrackingModelMetadata field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

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;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Model.Builder

mergeFrom(Model other)

public Model.Builder mergeFrom(Model other)
Parameter
NameDescription
otherModel
Returns
TypeDescription
Model.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Model.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Model.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Model.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Model.Builder
Overrides

mergeImageClassificationModelMetadata(ImageClassificationModelMetadata value)

public Model.Builder mergeImageClassificationModelMetadata(ImageClassificationModelMetadata value)

Metadata for image classification models.

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

Parameter
NameDescription
valueImageClassificationModelMetadata
Returns
TypeDescription
Model.Builder

mergeImageObjectDetectionModelMetadata(ImageObjectDetectionModelMetadata value)

public Model.Builder mergeImageObjectDetectionModelMetadata(ImageObjectDetectionModelMetadata value)

Metadata for image object detection models.

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

Parameter
NameDescription
valueImageObjectDetectionModelMetadata
Returns
TypeDescription
Model.Builder

mergeTablesModelMetadata(TablesModelMetadata value)

public Model.Builder mergeTablesModelMetadata(TablesModelMetadata value)

Metadata for Tables models.

.google.cloud.automl.v1beta1.TablesModelMetadata tables_model_metadata = 24;

Parameter
NameDescription
valueTablesModelMetadata
Returns
TypeDescription
Model.Builder

mergeTextClassificationModelMetadata(TextClassificationModelMetadata value)

public Model.Builder mergeTextClassificationModelMetadata(TextClassificationModelMetadata value)

Metadata for text classification models.

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

Parameter
NameDescription
valueTextClassificationModelMetadata
Returns
TypeDescription
Model.Builder

mergeTextExtractionModelMetadata(TextExtractionModelMetadata value)

public Model.Builder mergeTextExtractionModelMetadata(TextExtractionModelMetadata value)

Metadata for text extraction models.

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

Parameter
NameDescription
valueTextExtractionModelMetadata
Returns
TypeDescription
Model.Builder

mergeTextSentimentModelMetadata(TextSentimentModelMetadata value)

public Model.Builder mergeTextSentimentModelMetadata(TextSentimentModelMetadata value)

Metadata for text sentiment models.

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

Parameter
NameDescription
valueTextSentimentModelMetadata
Returns
TypeDescription
Model.Builder

mergeTranslationModelMetadata(TranslationModelMetadata value)

public Model.Builder mergeTranslationModelMetadata(TranslationModelMetadata value)

Metadata for translation models.

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

Parameter
NameDescription
valueTranslationModelMetadata
Returns
TypeDescription
Model.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Model.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Model.Builder
Overrides

mergeUpdateTime(Timestamp value)

public Model.Builder mergeUpdateTime(Timestamp value)

Output only. Timestamp when this model was last updated.

.google.protobuf.Timestamp update_time = 11;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Model.Builder

mergeVideoClassificationModelMetadata(VideoClassificationModelMetadata value)

public Model.Builder mergeVideoClassificationModelMetadata(VideoClassificationModelMetadata value)

Metadata for video classification models.

.google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23;

Parameter
NameDescription
valueVideoClassificationModelMetadata
Returns
TypeDescription
Model.Builder

mergeVideoObjectTrackingModelMetadata(VideoObjectTrackingModelMetadata value)

public Model.Builder mergeVideoObjectTrackingModelMetadata(VideoObjectTrackingModelMetadata value)

Metadata for video object tracking models.

.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21;

Parameter
NameDescription
valueVideoObjectTrackingModelMetadata
Returns
TypeDescription
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;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
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;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
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;

Parameter
NameDescription
valueString

The datasetId to set.

Returns
TypeDescription
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;

Parameter
NameDescription
valueByteString

The bytes for datasetId to set.

Returns
TypeDescription
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.v1beta1.Model.DeploymentState deployment_state = 8;

Parameter
NameDescription
valueModel.DeploymentState

The deploymentState to set.

Returns
TypeDescription
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.v1beta1.Model.DeploymentState deployment_state = 8;

Parameter
NameDescription
valueint

The enum numeric value on the wire for deploymentState to set.

Returns
TypeDescription
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;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
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;

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
Model.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Model.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Model.Builder
Overrides

setImageClassificationModelMetadata(ImageClassificationModelMetadata value)

public Model.Builder setImageClassificationModelMetadata(ImageClassificationModelMetadata value)

Metadata for image classification models.

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

Parameter
NameDescription
valueImageClassificationModelMetadata
Returns
TypeDescription
Model.Builder

setImageClassificationModelMetadata(ImageClassificationModelMetadata.Builder builderForValue)

public Model.Builder setImageClassificationModelMetadata(ImageClassificationModelMetadata.Builder builderForValue)

Metadata for image classification models.

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

Parameter
NameDescription
builderForValueImageClassificationModelMetadata.Builder
Returns
TypeDescription
Model.Builder

setImageObjectDetectionModelMetadata(ImageObjectDetectionModelMetadata value)

public Model.Builder setImageObjectDetectionModelMetadata(ImageObjectDetectionModelMetadata value)

Metadata for image object detection models.

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

Parameter
NameDescription
valueImageObjectDetectionModelMetadata
Returns
TypeDescription
Model.Builder

setImageObjectDetectionModelMetadata(ImageObjectDetectionModelMetadata.Builder builderForValue)

public Model.Builder setImageObjectDetectionModelMetadata(ImageObjectDetectionModelMetadata.Builder builderForValue)

Metadata for image object detection models.

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

Parameter
NameDescription
builderForValueImageObjectDetectionModelMetadata.Builder
Returns
TypeDescription
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;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
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;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Model.Builder
Overrides

setTablesModelMetadata(TablesModelMetadata value)

public Model.Builder setTablesModelMetadata(TablesModelMetadata value)

Metadata for Tables models.

.google.cloud.automl.v1beta1.TablesModelMetadata tables_model_metadata = 24;

Parameter
NameDescription
valueTablesModelMetadata
Returns
TypeDescription
Model.Builder

setTablesModelMetadata(TablesModelMetadata.Builder builderForValue)

public Model.Builder setTablesModelMetadata(TablesModelMetadata.Builder builderForValue)

Metadata for Tables models.

.google.cloud.automl.v1beta1.TablesModelMetadata tables_model_metadata = 24;

Parameter
NameDescription
builderForValueTablesModelMetadata.Builder
Returns
TypeDescription
Model.Builder

setTextClassificationModelMetadata(TextClassificationModelMetadata value)

public Model.Builder setTextClassificationModelMetadata(TextClassificationModelMetadata value)

Metadata for text classification models.

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

Parameter
NameDescription
valueTextClassificationModelMetadata
Returns
TypeDescription
Model.Builder

setTextClassificationModelMetadata(TextClassificationModelMetadata.Builder builderForValue)

public Model.Builder setTextClassificationModelMetadata(TextClassificationModelMetadata.Builder builderForValue)

Metadata for text classification models.

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

Parameter
NameDescription
builderForValueTextClassificationModelMetadata.Builder
Returns
TypeDescription
Model.Builder

setTextExtractionModelMetadata(TextExtractionModelMetadata value)

public Model.Builder setTextExtractionModelMetadata(TextExtractionModelMetadata value)

Metadata for text extraction models.

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

Parameter
NameDescription
valueTextExtractionModelMetadata
Returns
TypeDescription
Model.Builder

setTextExtractionModelMetadata(TextExtractionModelMetadata.Builder builderForValue)

public Model.Builder setTextExtractionModelMetadata(TextExtractionModelMetadata.Builder builderForValue)

Metadata for text extraction models.

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

Parameter
NameDescription
builderForValueTextExtractionModelMetadata.Builder
Returns
TypeDescription
Model.Builder

setTextSentimentModelMetadata(TextSentimentModelMetadata value)

public Model.Builder setTextSentimentModelMetadata(TextSentimentModelMetadata value)

Metadata for text sentiment models.

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

Parameter
NameDescription
valueTextSentimentModelMetadata
Returns
TypeDescription
Model.Builder

setTextSentimentModelMetadata(TextSentimentModelMetadata.Builder builderForValue)

public Model.Builder setTextSentimentModelMetadata(TextSentimentModelMetadata.Builder builderForValue)

Metadata for text sentiment models.

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

Parameter
NameDescription
builderForValueTextSentimentModelMetadata.Builder
Returns
TypeDescription
Model.Builder

setTranslationModelMetadata(TranslationModelMetadata value)

public Model.Builder setTranslationModelMetadata(TranslationModelMetadata value)

Metadata for translation models.

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

Parameter
NameDescription
valueTranslationModelMetadata
Returns
TypeDescription
Model.Builder

setTranslationModelMetadata(TranslationModelMetadata.Builder builderForValue)

public Model.Builder setTranslationModelMetadata(TranslationModelMetadata.Builder builderForValue)

Metadata for translation models.

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

Parameter
NameDescription
builderForValueTranslationModelMetadata.Builder
Returns
TypeDescription
Model.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Model.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Model.Builder
Overrides

setUpdateTime(Timestamp value)

public Model.Builder setUpdateTime(Timestamp value)

Output only. Timestamp when this model was last updated.

.google.protobuf.Timestamp update_time = 11;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
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;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Model.Builder

setVideoClassificationModelMetadata(VideoClassificationModelMetadata value)

public Model.Builder setVideoClassificationModelMetadata(VideoClassificationModelMetadata value)

Metadata for video classification models.

.google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23;

Parameter
NameDescription
valueVideoClassificationModelMetadata
Returns
TypeDescription
Model.Builder

setVideoClassificationModelMetadata(VideoClassificationModelMetadata.Builder builderForValue)

public Model.Builder setVideoClassificationModelMetadata(VideoClassificationModelMetadata.Builder builderForValue)

Metadata for video classification models.

.google.cloud.automl.v1beta1.VideoClassificationModelMetadata video_classification_model_metadata = 23;

Parameter
NameDescription
builderForValueVideoClassificationModelMetadata.Builder
Returns
TypeDescription
Model.Builder

setVideoObjectTrackingModelMetadata(VideoObjectTrackingModelMetadata value)

public Model.Builder setVideoObjectTrackingModelMetadata(VideoObjectTrackingModelMetadata value)

Metadata for video object tracking models.

.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21;

Parameter
NameDescription
valueVideoObjectTrackingModelMetadata
Returns
TypeDescription
Model.Builder

setVideoObjectTrackingModelMetadata(VideoObjectTrackingModelMetadata.Builder builderForValue)

public Model.Builder setVideoObjectTrackingModelMetadata(VideoObjectTrackingModelMetadata.Builder builderForValue)

Metadata for video object tracking models.

.google.cloud.automl.v1beta1.VideoObjectTrackingModelMetadata video_object_tracking_model_metadata = 21;

Parameter
NameDescription
builderForValueVideoObjectTrackingModelMetadata.Builder
Returns
TypeDescription
Model.Builder