Service Client: Google::Cloud::Tasks::V2beta2::Cloudtasks::CloudTasksClient

Client stub representing the remote CloudTasks gRPC service. Delegates call dispatching to Google::gRPC::Client.

target

The endpoint target address. Defaults to tasks.googleapis.com:443.

credentials

The authentication credentials provider. Defaults to application default credentials via Google::Auth.

NAME

Google::Cloud::Tasks::V2beta2::Cloudtasks - Compiled Protocol Buffers messages for google/cloud/tasks/v2beta2/cloudtasks.proto

SYNOPSIS

use Google::Cloud::Tasks::V2beta2::Cloudtasks;

my $msg = Google::Cloud::Tasks::V2beta2::Cloudtasks::ListQueuesRequest->new({
    parent => $parent,
    filter => $filter,
    page_size => $page_size,
    page_token => $page_token,
});

# Read or update a field
my $val = $msg->parent();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Tasks::V2beta2::Cloudtasks::ListQueuesRequest->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/tasks/v2beta2/cloudtasks.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Cloud::Tasks::V2beta2::Cloudtasks::ListQueuesRequest

Request message for [ListQueues][google.cloud.tasks.v2beta2.CloudTasks.ListQueues].

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The location name. For example: `projects/PROJECT_ID/locations/LOCATION_ID`

  • $msg->filter() / $msg->filter($value)

    Type: String

    `filter` can be used to specify a subset of queues. Any [Queue][google.cloud.tasks.v2beta2.Queue] field can be used as a filter and several operators as supported. For example: `<=, <, >=, >, !=, =, :`. The filter syntax is the same as described in [Stackdriver's Advanced Logs Filters](https://cloud.google.com/logging/docs/view/advanced_filters).

    Sample filter "app_engine_http_target: *".

    Note that using filters might cause fewer queues than the requested_page size to be returned.

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Requested page size.

    The maximum page size is 9800. If unspecified, the page size will be the maximum. Fewer queues than requested might be returned, even if more queues exist; use the [next_page_token][google.cloud.tasks.v2beta2.ListQueuesResponse.next_page_token] in the response to determine if more queues exist.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    A token identifying the page of results to return.

    To request the first page results, page_token must be empty. To request the next page of results, page_token must be the value of [next_page_token][google.cloud.tasks.v2beta2.ListQueuesResponse.next_page_token] returned from the previous call to [ListQueues][google.cloud.tasks.v2beta2.CloudTasks.ListQueues] method. It is an error to switch the value of the [filter][google.cloud.tasks.v2beta2.ListQueuesRequest.filter] while iterating through pages.

  • $msg->read_mask() / $msg->read_mask($value)

    Type: Message (Google::Protobuf::FieldMask::FieldMask)

    Optional. Read mask is used for a more granular control over what the API returns. If the mask is not present all fields will be returned except [Queue.stats]. [Queue.stats] will be returned only if it was explicitly specified in the mask.

Google::Cloud::Tasks::V2beta2::Cloudtasks::ListQueuesResponse

Response message for [ListQueues][google.cloud.tasks.v2beta2.CloudTasks.ListQueues].

Inherits from Protobuf::Message.

Accessors

  • $msg->queues() / $msg->queues($value)

    Type: Message (Google::Cloud::Tasks::V2beta2::Queue::Queue)

    The list of queues.

  • $msg->next_page_token() / $msg->next_page_token($value)

    Type: String

    A token to retrieve next page of results.

    To return the next page of results, call [ListQueues][google.cloud.tasks.v2beta2.CloudTasks.ListQueues] with this value as the [page_token][google.cloud.tasks.v2beta2.ListQueuesRequest.page_token].

    If the next_page_token is empty, there are no more results.

    The page token is valid for only 2 hours.

Google::Cloud::Tasks::V2beta2::Cloudtasks::GetQueueRequest

Request message for [GetQueue][google.cloud.tasks.v2beta2.CloudTasks.GetQueue].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The resource name of the queue. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`

  • $msg->read_mask() / $msg->read_mask($value)

    Type: Message (Google::Protobuf::FieldMask::FieldMask)

    Optional. Read mask is used for a more granular control over what the API returns. If the mask is not present all fields will be returned except [Queue.stats]. [Queue.stats] will be returned only if it was explicitly specified in the mask.

Google::Cloud::Tasks::V2beta2::Cloudtasks::CreateQueueRequest

Request message for [CreateQueue][google.cloud.tasks.v2beta2.CloudTasks.CreateQueue].

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The location name in which the queue will be created. For example: `projects/PROJECT_ID/locations/LOCATION_ID`

    The list of allowed locations can be obtained by calling Cloud Tasks' implementation of [ListLocations][google.cloud.location.Locations.ListLocations].

  • $msg->queue() / $msg->queue($value)

    Type: Message (Google::Cloud::Tasks::V2beta2::Queue::Queue)

    Required. The queue to create.

    [Queue's name][google.cloud.tasks.v2beta2.Queue.name] cannot be the same as an existing queue.

Google::Cloud::Tasks::V2beta2::Cloudtasks::UpdateQueueRequest

Request message for [UpdateQueue][google.cloud.tasks.v2beta2.CloudTasks.UpdateQueue].

Inherits from Protobuf::Message.

Accessors

  • $msg->queue() / $msg->queue($value)

    Type: Message (Google::Cloud::Tasks::V2beta2::Queue::Queue)

    Required. The queue to create or update.

    The queue's [name][google.cloud.tasks.v2beta2.Queue.name] must be specified.

    Output only fields cannot be modified using UpdateQueue. Any value specified for an output only field will be ignored. The queue's [name][google.cloud.tasks.v2beta2.Queue.name] cannot be changed.

  • $msg->update_mask() / $msg->update_mask($value)

    Type: Message (Google::Protobuf::FieldMask::FieldMask)

    A mask used to specify which fields of the queue are being updated.

    If empty, then all fields will be updated.

Google::Cloud::Tasks::V2beta2::Cloudtasks::DeleteQueueRequest

Request message for [DeleteQueue][google.cloud.tasks.v2beta2.CloudTasks.DeleteQueue].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

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

Google::Cloud::Tasks::V2beta2::Cloudtasks::PurgeQueueRequest

Request message for [PurgeQueue][google.cloud.tasks.v2beta2.CloudTasks.PurgeQueue].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The queue name. For example: `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`

Google::Cloud::Tasks::V2beta2::Cloudtasks::PauseQueueRequest

Request message for [PauseQueue][google.cloud.tasks.v2beta2.CloudTasks.PauseQueue].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The queue name. For example: `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`

Google::Cloud::Tasks::V2beta2::Cloudtasks::ResumeQueueRequest

Request message for [ResumeQueue][google.cloud.tasks.v2beta2.CloudTasks.ResumeQueue].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The queue name. For example: `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`

Google::Cloud::Tasks::V2beta2::Cloudtasks::UploadQueueYamlRequest

Request message for [UploadQueueYaml][google.cloud.tasks.v2beta2.CloudTasks.UploadQueueYaml].

Inherits from Protobuf::Message.

Accessors

  • $msg->app_id() / $msg->app_id($value)

    Type: String

    Required. The App ID is supplied as an HTTP parameter. Unlike internal usage of App ID, it does not include a region prefix. Rather, the App ID represents the Project ID against which to make the request.

  • $msg->http_body() / $msg->http_body($value)

    Type: Message (Google::Api::Httpbody::HttpBody)

    The http body contains the queue.yaml file which used to update queue lists

Google::Cloud::Tasks::V2beta2::Cloudtasks::ListTasksRequest

Request message for listing tasks using [ListTasks][google.cloud.tasks.v2beta2.CloudTasks.ListTasks].

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

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

  • $msg->response_view() / $msg->response_view($value)

    Type: Enum (Google::Cloud::Tasks::V2beta2::Task::View)

    The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be returned.

    By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all information is retrieved by default because some data, such as payloads, might be desirable to return only when needed because of its large size or because of the sensitivity of data that it contains.

    Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    Maximum page size.

    Fewer tasks than requested might be returned, even if more tasks exist; use [next_page_token][google.cloud.tasks.v2beta2.ListTasksResponse.next_page_token] in the response to determine if more tasks exist.

    The maximum page size is 1000. If unspecified, the page size will be the maximum.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    A token identifying the page of results to return.

    To request the first page results, page_token must be empty. To request the next page of results, page_token must be the value of [next_page_token][google.cloud.tasks.v2beta2.ListTasksResponse.next_page_token] returned from the previous call to [ListTasks][google.cloud.tasks.v2beta2.CloudTasks.ListTasks] method.

    The page token is valid for only 2 hours.

Google::Cloud::Tasks::V2beta2::Cloudtasks::ListTasksResponse

Response message for listing tasks using [ListTasks][google.cloud.tasks.v2beta2.CloudTasks.ListTasks].

Inherits from Protobuf::Message.

Accessors

  • $msg->tasks() / $msg->tasks($value)

    Type: Message (Google::Cloud::Tasks::V2beta2::Task::Task)

    The list of tasks.

  • $msg->next_page_token() / $msg->next_page_token($value)

    Type: String

    A token to retrieve next page of results.

    To return the next page of results, call [ListTasks][google.cloud.tasks.v2beta2.CloudTasks.ListTasks] with this value as the [page_token][google.cloud.tasks.v2beta2.ListTasksRequest.page_token].

    If the next_page_token is empty, there are no more results.

Google::Cloud::Tasks::V2beta2::Cloudtasks::GetTaskRequest

Request message for getting a task using [GetTask][google.cloud.tasks.v2beta2.CloudTasks.GetTask].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The task name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`

  • $msg->response_view() / $msg->response_view($value)

    Type: Enum (Google::Cloud::Tasks::V2beta2::Task::View)

    The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be returned.

    By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all information is retrieved by default because some data, such as payloads, might be desirable to return only when needed because of its large size or because of the sensitivity of data that it contains.

    Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.

Google::Cloud::Tasks::V2beta2::Cloudtasks::CreateTaskRequest

Request message for [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

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

    The queue must already exist.

  • $msg->task() / $msg->task($value)

    Type: Message (Google::Cloud::Tasks::V2beta2::Task::Task)

    Required. The task to add.

    Task names have the following format: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`. The user can optionally specify a task [name][google.cloud.tasks.v2beta2.Task.name]. If a name is not specified then the system will generate a random unique task id, which will be set in the task returned in the [response][google.cloud.tasks.v2beta2.Task.name].

    If [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] is not set or is in the past then Cloud Tasks will set it to the current time.

    Task De-duplication:

    Explicitly specifying a task ID enables task de-duplication. If a task's ID is identical to that of an existing task or a task that was deleted or completed recently then the call will fail with [ALREADY_EXISTS][google.rpc.Code.ALREADY_EXISTS]. If the task's queue was created using Cloud Tasks, then another task with the same name can't be created for ~1 hour after the original task was deleted or completed. If the task's queue was created using queue.yaml or queue.xml, then another task with the same name can't be created for ~9 days after the original task was deleted or completed.

    Because there is an extra lookup cost to identify duplicate task names, these [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask] calls have significantly increased latency. Using hashed strings for the task id or for the prefix of the task id is recommended. Choosing task ids that are sequential or have sequential prefixes, for example using a timestamp, causes an increase in latency and error rates in all task commands. The infrastructure relies on an approximately uniform distribution of task ids to store and serve tasks efficiently.

  • $msg->response_view() / $msg->response_view($value)

    Type: Enum (Google::Cloud::Tasks::V2beta2::Task::View)

    The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be returned.

    By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all information is retrieved by default because some data, such as payloads, might be desirable to return only when needed because of its large size or because of the sensitivity of data that it contains.

    Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.

Google::Cloud::Tasks::V2beta2::Cloudtasks::DeleteTaskRequest

Request message for deleting a task using [DeleteTask][google.cloud.tasks.v2beta2.CloudTasks.DeleteTask].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The task name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`

Google::Cloud::Tasks::V2beta2::Cloudtasks::LeaseTasksRequest

Request message for leasing tasks using [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks].

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

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

  • $msg->max_tasks() / $msg->max_tasks($value)

    Type: Int32

    The maximum number of tasks to lease.

    The system will make a best effort to return as close to as `max_tasks` as possible.

    The largest that `max_tasks` can be is 1000.

    The maximum total size of a [lease tasks response][google.cloud.tasks.v2beta2.LeaseTasksResponse] is 32 MB. If the sum of all task sizes requested reaches this limit, fewer tasks than requested are returned.

  • $msg->lease_duration() / $msg->lease_duration($value)

    Type: Message (Google::Protobuf::Duration::Duration)

    Required. The duration of the lease.

    Each task returned in the [response][google.cloud.tasks.v2beta2.LeaseTasksResponse] will have its [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] set to the current time plus the `lease_duration`. The task is leased until its [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time]; thus, the task will not be returned to another [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] call before its [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time].

    After the worker has successfully finished the work associated with the task, the worker must call via [AcknowledgeTask][google.cloud.tasks.v2beta2.CloudTasks.AcknowledgeTask] before the [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time]. Otherwise the task will be returned to a later [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] call so that another worker can retry it.

    The maximum lease duration is 1 week. `lease_duration` will be truncated to the nearest second.

  • $msg->response_view() / $msg->response_view($value)

    Type: Enum (Google::Cloud::Tasks::V2beta2::Task::View)

    The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be returned.

    By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all information is retrieved by default because some data, such as payloads, might be desirable to return only when needed because of its large size or because of the sensitivity of data that it contains.

    Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.

  • $msg->filter() / $msg->filter($value)

    Type: String

    `filter` can be used to specify a subset of tasks to lease.

    When `filter` is set to `tag=<my-tag>` then the [response][google.cloud.tasks.v2beta2.LeaseTasksResponse] will contain only tasks whose [tag][google.cloud.tasks.v2beta2.PullMessage.tag] is equal to `<my-tag>`. `<my-tag>` must be less than 500 characters.

    When `filter` is set to `tag_function=oldest_tag()`, only tasks which have the same tag as the task with the oldest [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] will be returned.

    Grammar Syntax:

    * `filter = "tag=" tag | "tag_function=" function`

    * `tag = string`

    * `function = "oldest_tag()"`

    The `oldest_tag()` function returns tasks which have the same tag as the oldest task (ordered by schedule time).

    SDK compatibility: Although the SDK allows tags to be either string or [bytes](https://cloud.google.com/appengine/docs/standard/java/javadoc/com/google/appengine/api/taskqueue/TaskOptions.html#tag-byte:A-), only UTF-8 encoded tags can be used in Cloud Tasks. Tag which aren't UTF-8 encoded can't be used in the [filter][google.cloud.tasks.v2beta2.LeaseTasksRequest.filter] and the task's [tag][google.cloud.tasks.v2beta2.PullMessage.tag] will be displayed as empty in Cloud Tasks.

Google::Cloud::Tasks::V2beta2::Cloudtasks::LeaseTasksResponse

Response message for leasing tasks using [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks].

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Tasks::V2beta2::Cloudtasks::AcknowledgeTaskRequest

Request message for acknowledging a task using [AcknowledgeTask][google.cloud.tasks.v2beta2.CloudTasks.AcknowledgeTask].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The task name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`

  • $msg->schedule_time() / $msg->schedule_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Required. The task's current schedule time, available in the [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response. This restriction is to ensure that your worker currently holds the lease.

Google::Cloud::Tasks::V2beta2::Cloudtasks::RenewLeaseRequest

Request message for renewing a lease using [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The task name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`

  • $msg->schedule_time() / $msg->schedule_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Required. The task's current schedule time, available in the [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response. This restriction is to ensure that your worker currently holds the lease.

  • $msg->lease_duration() / $msg->lease_duration($value)

    Type: Message (Google::Protobuf::Duration::Duration)

    Required. The desired new lease duration, starting from now.

    The maximum lease duration is 1 week. `lease_duration` will be truncated to the nearest second.

  • $msg->response_view() / $msg->response_view($value)

    Type: Enum (Google::Cloud::Tasks::V2beta2::Task::View)

    The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be returned.

    By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all information is retrieved by default because some data, such as payloads, might be desirable to return only when needed because of its large size or because of the sensitivity of data that it contains.

    Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.

Google::Cloud::Tasks::V2beta2::Cloudtasks::CancelLeaseRequest

Request message for canceling a lease using [CancelLease][google.cloud.tasks.v2beta2.CloudTasks.CancelLease].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The task name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`

  • $msg->schedule_time() / $msg->schedule_time($value)

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Required. The task's current schedule time, available in the [schedule_time][google.cloud.tasks.v2beta2.Task.schedule_time] returned by [LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] response or [RenewLease][google.cloud.tasks.v2beta2.CloudTasks.RenewLease] response. This restriction is to ensure that your worker currently holds the lease.

  • $msg->response_view() / $msg->response_view($value)

    Type: Enum (Google::Cloud::Tasks::V2beta2::Task::View)

    The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be returned.

    By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all information is retrieved by default because some data, such as payloads, might be desirable to return only when needed because of its large size or because of the sensitivity of data that it contains.

    Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.

Google::Cloud::Tasks::V2beta2::Cloudtasks::RunTaskRequest

Request message for forcing a task to run now using [RunTask][google.cloud.tasks.v2beta2.CloudTasks.RunTask].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The task name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_ID`

  • $msg->response_view() / $msg->response_view($value)

    Type: Enum (Google::Cloud::Tasks::V2beta2::Task::View)

    The response_view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] will be returned.

    By default response_view is [BASIC][google.cloud.tasks.v2beta2.Task.View.BASIC]; not all information is retrieved by default because some data, such as payloads, might be desirable to return only when needed because of its large size or because of the sensitivity of data that it contains.

    Authorization for [FULL][google.cloud.tasks.v2beta2.Task.View.FULL] requires `cloudtasks.tasks.fullView` [Google IAM](https://cloud.google.com/iam/) permission on the [Task][google.cloud.tasks.v2beta2.Task] resource.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Tasks::V2beta2::Cloudtasks::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.