Google Cloud Tasks V2 Client - Class BatchCreateTasksMetadata (2.3.0)

Reference documentation and code samples for the Google Cloud Tasks V2 Client class BatchCreateTasksMetadata.

Metadata message for [BatchCreateTasks].

Generated from protobuf message google.cloud.tasks.v2.BatchCreateTasksMetadata

Namespace

Google \ Cloud \ Tasks \ V2

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ start_time Google\Protobuf\Timestamp

The time when the batch create started.

↳ end_time Google\Protobuf\Timestamp

The time when the batch create finished.

↳ state int

Output only. The state of the batch create operation.

↳ failed_requests array|Google\Protobuf\Internal\MapField

A map of failed requests, where the key is the index of the request in BatchCreateTasksRequest.requests and the value is the error status.

getStartTime

The time when the batch create started.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasStartTime

clearStartTime

setStartTime

The time when the batch create started.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getEndTime

The time when the batch create finished.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasEndTime

clearEndTime

setEndTime

The time when the batch create finished.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getState

Output only. The state of the batch create operation.

Returns
Type Description
int Enum of type State.

setState

Output only. The state of the batch create operation.

Parameter
Name Description
var int

Enum of type State.

Returns
Type Description
$this

getFailedRequests

A map of failed requests, where the key is the index of the request in BatchCreateTasksRequest.requests and the value is the error status.

Returns
Type Description
Google\Protobuf\Internal\MapField

setFailedRequests

A map of failed requests, where the key is the index of the request in BatchCreateTasksRequest.requests and the value is the error status.

Parameter
Name Description
var array|Google\Protobuf\Internal\MapField
Returns
Type Description
$this