NAME
Google::Cloud::Tasks::V2beta3::Queue - Compiled Protocol Buffers messages for google/cloud/tasks/v2beta3/queue.proto
SYNOPSIS
use Google::Cloud::Tasks::V2beta3::Queue;
my $msg = Google::Cloud::Tasks::V2beta3::Queue::Queue->new({
name => $name,
app_engine_http_queue => $app_engine_http_queue,
http_target => $http_target,
rate_limits => $rate_limits,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Tasks::V2beta3::Queue::Queue->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/tasks/v2beta3/queue.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::V2beta3::Queue::Queue
A queue is a container of related tasks. Queues are configured to manage how those tasks are dispatched. Configurable properties include rate limits, retry options, queue types, and others.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringCaller-specified and required in [CreateQueue][google.cloud.tasks.v2beta3.CloudTasks.CreateQueue], after which it becomes output only.
The queue name.
The queue name must have the following format: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID`
* `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), hyphens (-), colons (:), or periods (.). For more information, see [Identifying projects](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) * `LOCATION_ID` is the canonical ID for the queue's location. The list of available locations can be obtained by calling [ListLocations][google.cloud.location.Locations.ListLocations]. For more information, see https://cloud.google.com/about/locations/. * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or hyphens (-). The maximum length is 100 characters.
$msg->app_engine_http_queue()/$msg->app_engine_http_queue($value)Type:
Message(Google::Cloud::Tasks::V2beta3::Target::AppEngineHttpQueue)[AppEngineHttpQueue][google.cloud.tasks.v2beta3.AppEngineHttpQueue] settings apply only to [App Engine tasks][google.cloud.tasks.v2beta3.AppEngineHttpRequest] in this queue. [Http tasks][google.cloud.tasks.v2beta3.HttpRequest] are not affected by this proto.
$msg->http_target()/$msg->http_target($value)Type:
Message(Google::Cloud::Tasks::V2beta3::Target::HttpTarget)Modifies HTTP target for HTTP tasks.
$msg->rate_limits()/$msg->rate_limits($value)Type:
Message(Google::Cloud::Tasks::V2beta3::Queue::RateLimits)Rate limits for task dispatches.
[rate_limits][google.cloud.tasks.v2beta3.Queue.rate_limits] and [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config] are related because they both control task attempts. However they control task attempts in different ways:
* [rate_limits][google.cloud.tasks.v2beta3.Queue.rate_limits] controls the total rate of dispatches from a queue (i.e. all traffic dispatched from the queue, regardless of whether the dispatch is from a first attempt or a retry). * [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config] controls what happens to a particular task after its first attempt fails. That is, [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config] controls task retries (the second attempt, third attempt, etc).
The queue's actual dispatch rate is the result of:
* Number of tasks in the queue * User-specified throttling: [rate_limits][google.cloud.tasks.v2beta3.Queue.rate_limits], [retry_config][google.cloud.tasks.v2beta3.Queue.retry_config], and the [queue's state][google.cloud.tasks.v2beta3.Queue.state]. * System throttling due to `429` (Too Many Requests) or `503` (Service Unavailable) responses from the worker, high error rates, or to smooth sudden large traffic spikes.
$msg->retry_config()/$msg->retry_config($value)Type:
Message(Google::Cloud::Tasks::V2beta3::Queue::RetryConfig)Settings that determine the retry behavior.
* For tasks created using Cloud Tasks: the queue-level retry settings apply to all tasks in the queue that were created using Cloud Tasks. Retry settings cannot be set on individual tasks. * For tasks created using the App Engine SDK: the queue-level retry settings apply to all tasks in the queue which do not have retry settings explicitly set on the task and were created by the App Engine SDK. See [App Engine documentation](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/retrying-tasks).
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Tasks::V2beta3::Queue::State)Output only. The state of the queue.
`state` can only be changed by called [PauseQueue][google.cloud.tasks.v2beta3.CloudTasks.PauseQueue], [ResumeQueue][google.cloud.tasks.v2beta3.CloudTasks.ResumeQueue], or uploading [queue.yaml/xml](https://cloud.google.com/appengine/docs/python/config/queueref). [UpdateQueue][google.cloud.tasks.v2beta3.CloudTasks.UpdateQueue] cannot be used to change `state`.
$msg->purge_time()/$msg->purge_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The last time this queue was purged.
All tasks that were [created][google.cloud.tasks.v2beta3.Task.create_time] before this time were purged.
A queue can be purged using [PurgeQueue][google.cloud.tasks.v2beta3.CloudTasks.PurgeQueue], the [App Engine Task Queue SDK, or the Cloud Console](https://cloud.google.com/appengine/docs/standard/python/taskqueue/push/deleting-tasks-and-queues#purging_all_tasks_from_a_queue).
Purge time will be truncated to the nearest microsecond. Purge time will be unset if the queue has never been purged.
$msg->task_ttl()/$msg->task_ttl($value)Type:
Message(Google::Protobuf::Duration::Duration)The maximum amount of time that a task will be retained in this queue. After a task has lived for `task_ttl`, the task will be deleted regardless of whether it was dispatched or not.
The minimum value is 10 days. The maximum value is 10 years. The value must be given as a string that indicates the length of time (in seconds) followed by `s` (for "seconds"). For more information on the format, see the documentation for [Duration](https://protobuf.dev/reference/protobuf/google.protobuf/#duration).
Queues created by Cloud Tasks have a default `task_ttl` of 31 days. .
Queues created by queue.yaml/xml have a fixed `task_ttl` of the maximum duration, because there is a [storage quota](https://docs.cloud.google.com/appengine/docs/standard/quotas#Task_Queue) for these queues.
$msg->tombstone_ttl()/$msg->tombstone_ttl($value)Type:
Message(Google::Protobuf::Duration::Duration)The task tombstone time to live (TTL).
After a task is deleted or executed, the task's tombstone is retained for the length of time specified by `tombstone_ttl`. The tombstone is used by task de-duplication; another task with the same name can't be created until the tombstone has expired. For more information about task de-duplication, see the documentation for [CreateTaskRequest][google.cloud.tasks.v2beta3.CreateTaskRequest.task].
The minimum value is 1 hour. The maximum value is 9 days. The value must be given as a string that indicates the length of time (in seconds) followed by `s` (for "seconds"). For more information on the format, see the documentation for [Duration](https://protobuf.dev/reference/protobuf/google.protobuf/#duration).
Queues created by Cloud Tasks have a default `tombstone_ttl` of 1 hour.
$msg->stackdriver_logging_config()/$msg->stackdriver_logging_config($value)Type:
Message(Google::Cloud::Tasks::V2beta3::Queue::StackdriverLoggingConfig)Configuration options for writing logs to [Stackdriver Logging](https://cloud.google.com/logging/docs/). If this field is unset, then no logs are written.
$msg->type()/$msg->type($value)Type:
Enum(Google::Cloud::Tasks::V2beta3::Queue::Type)Immutable. The type of a queue (push or pull).
`Queue.type` is an immutable property of the queue that is set at the queue creation time. When left unspecified, the default value of `PUSH` is selected.
$msg->stats()/$msg->stats($value)Type:
Message(Google::Cloud::Tasks::V2beta3::Queue::QueueStats)Output only. The realtime, informational statistics for a queue. In order to receive the statistics the caller should include this field in the FieldMask.
Enum: Queue::State
STATE_UNSPECIFIED=>0RUNNING=>1PAUSED=>2DISABLED=>3
Enum: Queue::Type
TYPE_UNSPECIFIED=>0PULL=>1PUSH=>2
Google::Cloud::Tasks::V2beta3::Queue::RateLimits
Rate limits.
This message determines the maximum rate that tasks can be dispatched by a queue, regardless of whether the dispatch is a first task attempt or a retry.
Note: The debugging command, [RunTask][google.cloud.tasks.v2beta3.CloudTasks.RunTask], will run a task even if the queue has reached its [RateLimits][google.cloud.tasks.v2beta3.RateLimits].
Inherits from Protobuf::Message.
Accessors
$msg->max_dispatches_per_second()/$msg->max_dispatches_per_second($value)Type:
DoubleThe maximum rate at which tasks are dispatched from this queue.
If unspecified when the queue is created, Cloud Tasks will pick the default.
For [App Engine queues][google.cloud.tasks.v2beta3.AppEngineHttpQueue], the maximum allowed value is 500.
This field has the same meaning as [rate in queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#rate).
$msg->max_burst_size()/$msg->max_burst_size($value)Type:
Int32The max burst size.
Max burst size limits how fast tasks in queue are processed when many tasks are in the queue and the rate is high. This field allows the queue to have a high rate so processing starts shortly after a task is enqueued, but still limits resource usage when many tasks are enqueued in a short period of time.
The [token bucket](https://wikipedia.org/wiki/Token_Bucket) algorithm is used to control the rate of task dispatches. Each queue has a token bucket that holds tokens, up to the maximum specified by `max_burst_size`. Each time a task is dispatched, a token is removed from the bucket. Tasks will be dispatched until the queue's bucket runs out of tokens. The bucket will be continuously refilled with new tokens based on [max_dispatches_per_second][google.cloud.tasks.v2beta3.RateLimits.max_dispatches_per_second].
The default value of `max_burst_size` is picked by Cloud Tasks based on the value of [max_dispatches_per_second][google.cloud.tasks.v2beta3.RateLimits.max_dispatches_per_second].
The maximum value of `max_burst_size` is 500.
For App Engine queues that were created or updated using `queue.yaml/xml`, `max_burst_size` is equal to [bucket_size](https://cloud.google.com/appengine/docs/standard/python/config/queueref#bucket_size). If [UpdateQueue][google.cloud.tasks.v2beta3.CloudTasks.UpdateQueue] is called on a queue without explicitly setting a value for `max_burst_size`, `max_burst_size` value will get updated if [UpdateQueue][google.cloud.tasks.v2beta3.CloudTasks.UpdateQueue] is updating [max_dispatches_per_second][google.cloud.tasks.v2beta3.RateLimits.max_dispatches_per_second].
$msg->max_concurrent_dispatches()/$msg->max_concurrent_dispatches($value)Type:
Int32The maximum number of concurrent tasks that Cloud Tasks allows to be dispatched for this queue. After this threshold has been reached, Cloud Tasks stops dispatching tasks until the number of concurrent requests decreases.
If unspecified when the queue is created, Cloud Tasks will pick the default.
The maximum allowed value is 5,000.
This field has the same meaning as [max_concurrent_requests in queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#max_concurrent_requests).
Google::Cloud::Tasks::V2beta3::Queue::RetryConfig
Retry config.
These settings determine when a failed task attempt is retried.
Inherits from Protobuf::Message.
Accessors
$msg->max_attempts()/$msg->max_attempts($value)Type:
Int32Number of attempts per task, including the first attempt. (If the first attempt fails, there will be `max_attempts - 1` retries.)
Must be greater than or equal to -1, which indicates unlimited attempts.
Cloud Tasks stops retrying only when `max_attempts` and `max_retry_duration` are both satisfied, or when the task is successfully executed. When the task has been attempted `max_attempts` times and when the `max_retry_duration` time has passed, no further attempts are made, and the task is deleted. If `max_attempts` is set to -1 and `max_retry_duration` is set to 0, the task is retried until the [maximum task retention](https://docs.cloud.google.com/tasks/docs/quotas#limits) limit is reached.
If unspecified when the queue is created, Cloud Tasks will pick the default.
This field has the same meaning as [task_retry_limit in queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
$msg->max_retry_duration()/$msg->max_retry_duration($value)Type:
Message(Google::Protobuf::Duration::Duration)If positive, `max_retry_duration` specifies the time limit for retrying a failed task, measured from when the task was first attempted. Once `max_retry_duration` time has passed *and* the task has been attempted [max_attempts][google.cloud.tasks.v2beta3.RetryConfig.max_attempts] times, no further attempts are made and the task is deleted.
A zero (0) indicates an unlimited duration, up to the [maximum task retention](https://docs.cloud.google.com/tasks/docs/quotas#limits) limit.
The value must be given as a string that indicates the length of time (in seconds) followed by `s` (for "seconds"). For the maximum possible value or the format, see the documentation for [Duration](https://protobuf.dev/reference/protobuf/google.protobuf/#duration). `max_retry_duration` will be truncated to the nearest second.
If unspecified when the queue is created, Cloud Tasks will pick the default.
This field has the same meaning as [task_age_limit in queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
$msg->min_backoff()/$msg->min_backoff($value)Type:
Message(Google::Protobuf::Duration::Duration)A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails, if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be retried.
The value must be given as a string that indicates the length of time (in seconds) followed by `s` (for "seconds"). For more information on the format, see the documentation for [Duration](https://protobuf.dev/reference/protobuf/google.protobuf/#duration). `min_backoff` will be truncated to the nearest second.
If unspecified when the queue is created, Cloud Tasks will pick the default.
This field has the same meaning as [min_backoff_seconds in queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
$msg->max_backoff()/$msg->max_backoff($value)Type:
Message(Google::Protobuf::Duration::Duration)A task will be [scheduled][google.cloud.tasks.v2beta3.Task.schedule_time] for retry between [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] and [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] duration after it fails, if the queue's [RetryConfig][google.cloud.tasks.v2beta3.RetryConfig] specifies that the task should be retried.
The value must be given as a string that indicates the length of time (in seconds) followed by `s` (for "seconds"). For more information on the format, see the documentation for [Duration](https://protobuf.dev/reference/protobuf/google.protobuf/#duration). `max_backoff` will be truncated to the nearest second.
If unspecified when the queue is created, Cloud Tasks will pick the default.
This field has the same meaning as [max_backoff_seconds in queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
$msg->max_doublings()/$msg->max_doublings($value)Type:
Int32The time between retries will double `max_doublings` times.
A task's retry interval starts at [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff], then doubles `max_doublings` times, then increases linearly, and finally retries at intervals of [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] up to [max_attempts][google.cloud.tasks.v2beta3.RetryConfig.max_attempts] times.
For example, if [min_backoff][google.cloud.tasks.v2beta3.RetryConfig.min_backoff] is 10s, [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] is 300s, and `max_doublings` is 3, then the a task will first be retried in 10s. The retry interval will double three times, and then increase linearly by 2^3 * 10s. Finally, the task will retry at intervals of [max_backoff][google.cloud.tasks.v2beta3.RetryConfig.max_backoff] until the task has been attempted [max_attempts][google.cloud.tasks.v2beta3.RetryConfig.max_attempts] times. Thus, the requests will retry at 10s, 20s, 40s, 80s, 160s, 240s, 300s, 300s, ....
If unspecified when the queue is created, Cloud Tasks will pick the default.
This field has the same meaning as [max_doublings in queue.yaml/xml](https://cloud.google.com/appengine/docs/standard/python/config/queueref#retry_parameters).
Google::Cloud::Tasks::V2beta3::Queue::StackdriverLoggingConfig
Configuration options for writing logs to [Stackdriver Logging](https://cloud.google.com/logging/docs/).
Inherits from Protobuf::Message.
Accessors
$msg->sampling_ratio()/$msg->sampling_ratio($value)Type:
DoubleSpecifies the fraction of operations to write to [Stackdriver Logging](https://cloud.google.com/logging/docs/). This field may contain any value between 0.0 and 1.0, inclusive. 0.0 is the default and means that no operations are logged.
Google::Cloud::Tasks::V2beta3::Queue::QueueStats
Statistics for a queue.
Inherits from Protobuf::Message.
Accessors
$msg->tasks_count()/$msg->tasks_count($value)Type:
Int64Output only. An estimation of the number of tasks in the queue, that is, the tasks in the queue that haven't been executed, the tasks in the queue which the queue has dispatched but has not yet received a reply for, and the failed tasks that the queue is retrying.
$msg->oldest_estimated_arrival_time()/$msg->oldest_estimated_arrival_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. An estimation of the nearest time in the future where a task in the queue is scheduled to be executed.
$msg->executed_last_minute_count()/$msg->executed_last_minute_count($value)Type:
Int64Output only. The number of tasks that the queue has dispatched and received a reply for during the last minute. This variable counts both successful and non-successful executions.
$msg->concurrent_dispatches_count()/$msg->concurrent_dispatches_count($value)Type:
Int64Output only. The number of requests that the queue has dispatched but has not received a reply for yet.
$msg->effective_execution_rate()/$msg->effective_execution_rate($value)Type:
DoubleOutput only. The current maximum number of tasks per second executed by the queue. The maximum value of this variable is controlled by the RateLimits of the Queue. However, this value could be less to avoid overloading the endpoints tasks in the queue are targeting.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Tasks::V2beta3::Queue::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.