NAME

Google::Cloud::Run::V2::TaskTemplate - Compiled Protocol Buffers messages for google/cloud/run/v2/task_template.proto

SYNOPSIS

use Google::Cloud::Run::V2::TaskTemplate;

my $msg = Google::Cloud::Run::V2::TaskTemplate::TaskTemplate->new({
    containers => $containers,
    sandboxes => $sandboxes,
    volumes => $volumes,
    max_retries => $max_retries,
});

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

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Run::V2::TaskTemplate::TaskTemplate->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/run/v2/task_template.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::Run::V2::TaskTemplate::TaskTemplate

TaskTemplate describes the data a task should have when created from a template.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Run::V2::K8sMin::Container)

    Holds the single container that defines the unit of execution for this task.

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

    Type: Message (Google::Cloud::Run::V2::Sandbox::SandboxConfiguration)

    Optional. Configuration for sandboxes.

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

    Type: Message (Google::Cloud::Run::V2::K8sMin::Volume)

    Optional. A list of Volumes to make available to containers.

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

    Type: Int32

    Number of retries allowed per Task, before marking this Task failed. Defaults to 3.

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

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

    Optional. Max allowed time duration the Task may be active before the system will actively try to mark it failed and kill associated containers. This applies per attempt of a task, meaning each retry can run for the full timeout. Defaults to 600 seconds.

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

    Type: String

    Optional. Email address of the IAM service account associated with the Task of a Job. The service account represents the identity of the running task, and determines what permissions the task has. If not provided, the task will use the project's default service account.

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

    Type: Enum (Google::Cloud::Run::V2::ExecutionEnvironment)

    Optional. The execution environment being used to host this Task.

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

    Type: String

    A reference to a customer managed encryption key (CMEK) to use to encrypt this container image. For more information, go to https://cloud.google.com/run/docs/securing/using-cmek

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

    Type: Message (Google::Cloud::Run::V2::VendorSettings::VpcAccess)

    Optional. VPC Access configuration to use for this Task. For more information, visit https://cloud.google.com/run/docs/configuring/connecting-vpc.

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

    Type: Message (Google::Cloud::Run::V2::VendorSettings::NodeSelector)

    Optional. The node selector for the task template.

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

    Type: Bool

    Optional. True if GPU zonal redundancy is disabled on this task template.

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

    Type: Message (Google::Cloud::Run::V2::VendorSettings::WorkloadIdentityConfig)

    Optional. The Task's workload identity settings.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Run::V2::TaskTemplate::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.