Google Cloud Talent Solution V4beta1 Client - Class BatchOperationMetadata (1.1.1)

Reference documentation and code samples for the Google Cloud Talent Solution V4beta1 Client class BatchOperationMetadata.

Metadata used for long running operations returned by CTS batch APIs.

It's used to replace google.longrunning.Operation.metadata.

Generated from protobuf message google.cloud.talent.v4beta1.BatchOperationMetadata

Namespace

Google \ Cloud \ Talent \ V4beta1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ state int

The state of a long running operation.

↳ state_description string

More detailed information about operation state.

↳ success_count int

Count of successful item(s) inside an operation.

↳ failure_count int

Count of failed item(s) inside an operation.

↳ total_count int

Count of total item(s) inside an operation.

↳ create_time Google\Protobuf\Timestamp

The time when the batch operation is created.

↳ update_time Google\Protobuf\Timestamp

The time when the batch operation status is updated. The metadata and the update_time is refreshed every minute otherwise cached data is returned.

↳ end_time Google\Protobuf\Timestamp

The time when the batch operation is finished and google.longrunning.Operation.done is set to true.

getState

The state of a long running operation.

Returns
TypeDescription
int

setState

The state of a long running operation.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getStateDescription

More detailed information about operation state.

Returns
TypeDescription
string

setStateDescription

More detailed information about operation state.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSuccessCount

Count of successful item(s) inside an operation.

Returns
TypeDescription
int

setSuccessCount

Count of successful item(s) inside an operation.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getFailureCount

Count of failed item(s) inside an operation.

Returns
TypeDescription
int

setFailureCount

Count of failed item(s) inside an operation.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getTotalCount

Count of total item(s) inside an operation.

Returns
TypeDescription
int

setTotalCount

Count of total item(s) inside an operation.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getCreateTime

The time when the batch operation is created.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

The time when the batch operation is created.

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

getUpdateTime

The time when the batch operation status is updated. The metadata and the update_time is refreshed every minute otherwise cached data is returned.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

The time when the batch operation status is updated. The metadata and the update_time is refreshed every minute otherwise cached data is returned.

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

getEndTime

The time when the batch operation is finished and google.longrunning.Operation.done is set to true.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasEndTime

clearEndTime

setEndTime

The time when the batch operation is finished and google.longrunning.Operation.done is set to true.

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