Google Cloud Optimization V1 Client - Class AsyncModelMetadata (0.2.0)

Reference documentation and code samples for the Google Cloud Optimization V1 Client class AsyncModelMetadata.

The long running operation metadata for async model related methods.

Generated from protobuf message google.cloud.optimization.v1.AsyncModelMetadata

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ state int

The state of the current operation.

↳ state_message string

A message providing more details about the current state of the operation. For example, the error message if the operation is failed.

↳ create_time Google\Protobuf\Timestamp

The creation time of the operation.

↳ update_time Google\Protobuf\Timestamp

The last update time of the operation.

getState

The state of the current operation.

Returns
TypeDescription
int

setState

The state of the current operation.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getStateMessage

A message providing more details about the current state of the operation.

For example, the error message if the operation is failed.

Returns
TypeDescription
string

setStateMessage

A message providing more details about the current state of the operation.

For example, the error message if the operation is failed.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCreateTime

The creation time of the operation.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

The creation time of the operation.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getUpdateTime

The last update time of the operation.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

The last update time of the operation.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this