Google Cloud Discovery Engine V1 Client - Class CustomTuningModel (1.5.0)

Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class CustomTuningModel.

Metadata that describes a custom tuned model.

Generated from protobuf message google.cloud.discoveryengine.v1.CustomTuningModel

Namespace

Google \ Cloud \ DiscoveryEngine \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ namestring

Required. The fully qualified resource name of the model. Format: projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}. Model must be an alpha-numerical string with limit of 40 characters.

↳ display_namestring

The display name of the model.

↳ model_versionint|string

The version of the model.

↳ model_stateint

The state that the model is in (e.g.TRAINING or TRAINING_FAILED).

↳ create_timeGoogle\Protobuf\Timestamp

Deprecated: Timestamp the Model was created at.

↳ training_start_timeGoogle\Protobuf\Timestamp

Timestamp the model training was initiated.

↳ metricsarray|Google\Protobuf\Internal\MapField

The metrics of the trained model.

↳ error_messagestring

Currently this is only populated if the model state is INPUT_VALIDATION_FAILED.

getName

Required. The fully qualified resource name of the model.

Format: projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}. Model must be an alpha-numerical string with limit of 40 characters.

Returns
TypeDescription
string

setName

Required. The fully qualified resource name of the model.

Format: projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}/customTuningModels/{custom_tuning_model}. Model must be an alpha-numerical string with limit of 40 characters.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getDisplayName

The display name of the model.

Returns
TypeDescription
string

setDisplayName

The display name of the model.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getModelVersion

The version of the model.

Returns
TypeDescription
int|string

setModelVersion

The version of the model.

Parameter
NameDescription
varint|string
Returns
TypeDescription
$this

getModelState

The state that the model is in (e.g.TRAINING or TRAINING_FAILED).

Returns
TypeDescription
int

setModelState

The state that the model is in (e.g.TRAINING or TRAINING_FAILED).

Parameter
NameDescription
varint
Returns
TypeDescription
$this

getCreateTime

Deprecated: Timestamp the Model was created at.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Deprecated: Timestamp the Model was created at.

Parameter
NameDescription
varGoogle\Protobuf\Timestamp
Returns
TypeDescription
$this

getTrainingStartTime

Timestamp the model training was initiated.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasTrainingStartTime

clearTrainingStartTime

setTrainingStartTime

Timestamp the model training was initiated.

Parameter
NameDescription
varGoogle\Protobuf\Timestamp
Returns
TypeDescription
$this

getMetrics

The metrics of the trained model.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setMetrics

The metrics of the trained model.

Parameter
NameDescription
vararray|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getErrorMessage

Currently this is only populated if the model state is INPUT_VALIDATION_FAILED.

Returns
TypeDescription
string

setErrorMessage

Currently this is only populated if the model state is INPUT_VALIDATION_FAILED.

Parameter
NameDescription
varstring
Returns
TypeDescription
$this