NAME
Google::Cloud::Tasks::V2beta2::Task - Compiled Protocol Buffers messages for google/cloud/tasks/v2beta2/task.proto
SYNOPSIS
use Google::Cloud::Tasks::V2beta2::Task;
my $msg = Google::Cloud::Tasks::V2beta2::Task::Task->new({
name => $name,
app_engine_http_request => $app_engine_http_request,
pull_message => $pull_message,
http_request => $http_request,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Tasks::V2beta2::Task::Task->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/tasks/v2beta2/task.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::Task::Task
A unit of scheduled work.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringOptionally caller-specified in [CreateTask][google.cloud.tasks.v2beta2.CloudTasks.CreateTask].
The task name.
The task name must have the following format: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID/tasks/TASK_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 task'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. * `TASK_ID` can contain only letters ([A-Za-z]), numbers ([0-9]), hyphens (-), or underscores (_). The maximum length is 500 characters.
$msg->app_engine_http_request()/$msg->app_engine_http_request($value)Type:
Message(Google::Cloud::Tasks::V2beta2::Target::AppEngineHttpRequest)App Engine HTTP request that is sent to the task's target. Can be set only if [app_engine_http_target][google.cloud.tasks.v2beta2.Queue.app_engine_http_target] is set on the queue.
An App Engine task is a task that has [AppEngineHttpRequest][google.cloud.tasks.v2beta2.AppEngineHttpRequest] set.
$msg->pull_message()/$msg->pull_message($value)Type:
Message(Google::Cloud::Tasks::V2beta2::Target::PullMessage)[LeaseTasks][google.cloud.tasks.v2beta2.CloudTasks.LeaseTasks] to process the task. Can be set only if [pull_target][google.cloud.tasks.v2beta2.Queue.pull_target] is set on the queue.
A pull task is a task that has [PullMessage][google.cloud.tasks.v2beta2.PullMessage] set.
$msg->http_request()/$msg->http_request($value)Type:
Message(Google::Cloud::Tasks::V2beta2::Target::HttpRequest)HTTP request that is sent to the task's target.
An HTTP task is a task that has [HttpRequest][google.cloud.tasks.v2beta2.HttpRequest] set.
$msg->schedule_time()/$msg->schedule_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The time when the task is scheduled to be attempted.
For App Engine queues, this is when the task will be attempted or retried.
For pull queues, this is the time when the task is available to be leased; if a task is currently leased, this is the time when the current lease expires, that is, the time that the task was leased plus the [lease_duration][google.cloud.tasks.v2beta2.LeaseTasksRequest.lease_duration].
`schedule_time` will be truncated to the nearest microsecond.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time that the task was created.
`create_time` will be truncated to the nearest second.
$msg->status()/$msg->status($value)Type:
Message(Google::Cloud::Tasks::V2beta2::Task::TaskStatus)Output only. The task status.
$msg->view()/$msg->view($value)Type:
Enum(Google::Cloud::Tasks::V2beta2::Task::View)Output only. The view specifies which subset of the [Task][google.cloud.tasks.v2beta2.Task] has been returned.
Enum: Task::View
VIEW_UNSPECIFIED=>0BASIC=>1FULL=>2
Google::Cloud::Tasks::V2beta2::Task::TaskStatus
Status of the task.
Inherits from Protobuf::Message.
Accessors
$msg->attempt_dispatch_count()/$msg->attempt_dispatch_count($value)Type:
Int32Output only. The number of attempts dispatched.
This count includes attempts which have been dispatched but haven't received a response.
$msg->attempt_response_count()/$msg->attempt_response_count($value)Type:
Int32Output only. The number of attempts which have received a response.
This field is not calculated for [pull tasks][google.cloud.tasks.v2beta2.PullMessage].
$msg->first_attempt_status()/$msg->first_attempt_status($value)Type:
Message(Google::Cloud::Tasks::V2beta2::Task::AttemptStatus)Output only. The status of the task's first attempt.
Only [dispatch_time][google.cloud.tasks.v2beta2.AttemptStatus.dispatch_time] will be set. The other [AttemptStatus][google.cloud.tasks.v2beta2.AttemptStatus] information is not retained by Cloud Tasks.
This field is not calculated for [pull tasks][google.cloud.tasks.v2beta2.PullMessage].
$msg->last_attempt_status()/$msg->last_attempt_status($value)Type:
Message(Google::Cloud::Tasks::V2beta2::Task::AttemptStatus)Output only. The status of the task's last attempt.
This field is not calculated for [pull tasks][google.cloud.tasks.v2beta2.PullMessage].
Google::Cloud::Tasks::V2beta2::Task::AttemptStatus
The status of a task attempt.
Inherits from Protobuf::Message.
Accessors
$msg->schedule_time()/$msg->schedule_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time that this attempt was scheduled.
`schedule_time` will be truncated to the nearest microsecond.
$msg->dispatch_time()/$msg->dispatch_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time that this attempt was dispatched.
`dispatch_time` will be truncated to the nearest microsecond.
$msg->response_time()/$msg->response_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time that this attempt response was received.
`response_time` will be truncated to the nearest microsecond.
$msg->response_status()/$msg->response_status($value)Type:
Message(Google::Rpc::Status::Status)Output only. The response from the target for this attempt.
If the task has not been attempted or the task is currently running then the response status is unset.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Tasks::V2beta2::Task::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.