Cloud Translation V3 Client - Class ExportDataMetadata (1.18.1)

Reference documentation and code samples for the Cloud Translation V3 Client class ExportDataMetadata.

Metadata of export data operation.

Generated from protobuf message google.cloud.translation.v3.ExportDataMetadata

Namespace

Google \ Cloud \ Translate \ V3

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ stateint

The current state of the operation.

↳ create_timeGoogle\Protobuf\Timestamp

The creation time of the operation.

↳ update_timeGoogle\Protobuf\Timestamp

The last update time of the operation.

↳ errorGoogle\Rpc\Status

Only populated when operation doesn't succeed.

getState

The current state of the operation.

Returns
TypeDescription
int

setState

The current state of the operation.

Parameter
NameDescription
varint
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
varGoogle\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
varGoogle\Protobuf\Timestamp
Returns
TypeDescription
$this

getError

Only populated when operation doesn't succeed.

Returns
TypeDescription
Google\Rpc\Status|null

hasError

clearError

setError

Only populated when operation doesn't succeed.

Parameter
NameDescription
varGoogle\Rpc\Status
Returns
TypeDescription
$this