NAME

Google::Cloud::Networkservices::V1::TcpRoute - Compiled Protocol Buffers messages for google/cloud/networkservices/v1/tcp_route.proto

SYNOPSIS

use Google::Cloud::Networkservices::V1::TcpRoute;

my $msg = Google::Cloud::Networkservices::V1::TcpRoute::TcpRoute->new({
    name => $name,
    self_link => $self_link,
    create_time => $create_time,
    update_time => $update_time,
});

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

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Networkservices::V1::TcpRoute::TcpRoute->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/networkservices/v1/tcp_route.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::Networkservices::V1::TcpRoute::TcpRoute

TcpRoute is the resource defining how TCP traffic should be routed by a Mesh/Gateway resource.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Identifier. Name of the TcpRoute resource. It matches pattern `projects/*/locations/*/tcpRoutes/tcp_route_name>`.

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

    Type: String

    Output only. Server-defined URL of this resource

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

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

    Output only. The timestamp when the resource was created.

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

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

    Output only. The timestamp when the resource was updated.

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

    Type: String

    Optional. A free-text description of the resource. Max length 1024 characters.

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

    Type: Message (Google::Cloud::Networkservices::V1::TcpRoute::TcpRoute::RouteRule)

    Required. Rules that define how traffic is routed and handled. At least one RouteRule must be supplied. If there are multiple rules then the action taken will be the first rule to match.

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

    Type: String

    Optional. Meshes defines a list of meshes this TcpRoute is attached to, as one of the routing rules to route the requests served by the mesh.

    Each mesh reference should match the pattern: `projects/*/locations/*/meshes/<mesh_name>`

    The attached Mesh should be of a type SIDECAR

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

    Type: String

    Optional. Gateways defines a list of gateways this TcpRoute is attached to, as one of the routing rules to route the requests served by the gateway.

    Each gateway reference should match the pattern: `projects/*/locations/*/gateways/<gateway_name>`

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

    Type: Message (Google::Cloud::Networkservices::V1::TcpRoute::TcpRoute::LabelsEntry)

    Optional. Set of label tags associated with the TcpRoute resource.

Google::Cloud::Networkservices::V1::TcpRoute::ListTcpRoutesRequest

Request used with the ListTcpRoutes method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The project and location from which the TcpRoutes should be listed, specified in the format `projects/*/locations/*`.

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

    Type: Int32

    Maximum number of TcpRoutes to return per call.

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

    Type: String

    The value returned by the last `ListTcpRoutesResponse` Indicates that this is a continuation of a prior `ListTcpRoutes` call, and that the system should return the next page of data.

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

    Type: Bool

    Optional. If true, allow partial responses for multi-regional Aggregated List requests. Otherwise if one of the locations is down or unreachable, the Aggregated List request will fail.

Google::Cloud::Networkservices::V1::TcpRoute::ListTcpRoutesResponse

Response returned by the ListTcpRoutes method.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Networkservices::V1::TcpRoute::TcpRoute)

    List of TcpRoute resources.

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

    Type: String

    If there might be more results than those appearing in this response, then `next_page_token` is included. To get the next set of results, call this method again using the value of `next_page_token` as `page_token`.

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

    Type: String

    Unreachable resources. Populated when the request opts into [return_partial_success][google.cloud.networkservices.v1.ListTcpRoutesRequest.return_partial_success] and reading across collections e.g. when attempting to list all resources across all supported locations.

Google::Cloud::Networkservices::V1::TcpRoute::GetTcpRouteRequest

Request used by the GetTcpRoute method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. A name of the TcpRoute to get. Must be in the format `projects/*/locations/*/tcpRoutes/*`.

Google::Cloud::Networkservices::V1::TcpRoute::CreateTcpRouteRequest

Request used by the TcpRoute method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The parent resource of the TcpRoute. Must be in the format `projects/*/locations/*`.

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

    Type: String

    Required. Short name of the TcpRoute resource to be created.

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

    Type: Message (Google::Cloud::Networkservices::V1::TcpRoute::TcpRoute)

    Required. TcpRoute resource to be created.

Google::Cloud::Networkservices::V1::TcpRoute::UpdateTcpRouteRequest

Request used by the UpdateTcpRoute method.

Inherits from Protobuf::Message.

Accessors

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

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

    Optional. Field mask is used to specify the fields to be overwritten in the TcpRoute resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

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

    Type: Message (Google::Cloud::Networkservices::V1::TcpRoute::TcpRoute)

    Required. Updated TcpRoute resource.

Google::Cloud::Networkservices::V1::TcpRoute::DeleteTcpRouteRequest

Request used by the DeleteTcpRoute method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. A name of the TcpRoute to delete. Must be in the format `projects/*/locations/*/tcpRoutes/*`.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Networkservices::V1::TcpRoute::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.