Google Cloud Tasks V2beta2 Client - Class BufferTaskRequest (1.14.5)

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

LINT.IfChange Request message for BufferTask.

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

Namespace

Google \ Cloud \ Tasks \ V2beta2

Methods

__construct

Constructor.

Parameters
Name Description
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
Type Description
string

setQueue

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

Parameter
Name Description
var string
Returns
Type Description
$this

getTaskId

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

Returns
Type Description
string

setTaskId

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

Parameter
Name Description
var string
Returns
Type Description
$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
Type Description
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
Name Description
var Google\Api\HttpBody
Returns
Type Description
$this