Google Cloud Tasks V2beta3 Client - Class BufferTaskRequest (1.13.2)

Reference documentation and code samples for the Google Cloud Tasks V2beta3 Client class BufferTaskRequest.

Request message for BufferTask.

Generated from protobuf message google.cloud.tasks.v2beta3.BufferTaskRequest

Namespace

Google \ Cloud \ Tasks \ V2beta3

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ queue string

Required. The parent queue name. For example: projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` The queue must already exist.

↳ task_id string

Optional. Task ID for the task being created. If not provided, a random task ID is assigned to the task.

↳ body Google\Api\HttpBody

Optional. Body of the HTTP request. The body can take any generic value. The value is written to the HttpRequest of the [Task].

getQueue

Required. The parent queue name. For example: projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` The queue must already exist.

Returns
TypeDescription
string

setQueue

Required. The parent queue name. For example: projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` The queue must already exist.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getTaskId

Optional. Task ID for the task being created. If not provided, a random task ID is assigned to the task.

Returns
TypeDescription
string

setTaskId

Optional. Task ID for the task being created. If not provided, a random task ID is assigned to the task.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getBody

Optional. Body of the HTTP request.

The body can take any generic value. The value is written to the HttpRequest of the [Task].

Returns
TypeDescription
Google\Api\HttpBody|null

hasBody

clearBody

setBody

Optional. Body of the HTTP request.

The body can take any generic value. The value is written to the HttpRequest of the [Task].

Parameter
NameDescription
var Google\Api\HttpBody
Returns
TypeDescription
$this