NAME

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

SYNOPSIS

use Google::Cloud::Run::V2::TrafficTarget;

my $msg = Google::Cloud::Run::V2::TrafficTarget::TrafficTarget->new({
    type => $type,
    revision => $revision,
    percent => $percent,
    tag => $tag,
});

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

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

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/run/v2/traffic_target.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::TrafficTarget::TrafficTarget

Holds a single traffic routing entry for the Service. Allocations can be done to a specific Revision name, or pointing to the latest Ready Revision.

Inherits from Protobuf::Message.

Accessors

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

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

    The allocation type for this traffic target.

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

    Type: String

    Revision to which to send this portion of traffic, if traffic allocation is by revision.

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

    Type: Int32

    Specifies percent of the traffic to this Revision. This defaults to zero if unspecified.

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

    Type: String

    Indicates a string to be part of the URI to exclusively reference this target.

Google::Cloud::Run::V2::TrafficTarget::TrafficTargetStatus

Represents the observed state of a single `TrafficTarget` entry.

Inherits from Protobuf::Message.

Accessors

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

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

    The allocation type for this traffic target.

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

    Type: String

    Revision to which this traffic is sent.

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

    Type: Int32

    Specifies percent of the traffic to this Revision.

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

    Type: String

    Indicates the string used in the URI to exclusively reference this target.

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

    Type: String

    Displays the target URI.

SEE ALSO

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

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.