NAME
Google::Cloud::Networkservices::V1::GrpcRoute - Compiled Protocol Buffers messages for google/cloud/networkservices/v1/grpc_route.proto
SYNOPSIS
use Google::Cloud::Networkservices::V1::GrpcRoute;
my $msg = Google::Cloud::Networkservices::V1::GrpcRoute::GrpcRoute->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::GrpcRoute::GrpcRoute->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/networkservices/v1/grpc_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::GrpcRoute::GrpcRoute
GrpcRoute is the resource defining how gRPC traffic routed by a Mesh or Gateway resource is routed.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringIdentifier. Name of the GrpcRoute resource. It matches pattern `projects/*/locations/*/grpcRoutes/<grpc_route_name>`
$msg->self_link()/$msg->self_link($value)Type:
StringOutput 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->labels()/$msg->labels($value)Type:
Message(Google::Cloud::Networkservices::V1::GrpcRoute::GrpcRoute::LabelsEntry)Optional. Set of label tags associated with the GrpcRoute resource.
$msg->description()/$msg->description($value)Type:
StringOptional. A free-text description of the resource. Max length 1024 characters.
$msg->hostnames()/$msg->hostnames($value)Type:
StringRequired. Service hostnames with an optional port for which this route describes traffic.
Format: <hostname>[:<port>]
Hostname is the fully qualified domain name of a network host. This matches the RFC 1123 definition of a hostname with 2 notable exceptions: - IPs are not allowed. - A hostname may be prefixed with a wildcard label (`*.`). The wildcard label must appear by itself as the first label.
Hostname can be "precise" which is a domain name without the terminating dot of a network host (e.g. `foo.example.com`) or "wildcard", which is a domain name prefixed with a single wildcard label (e.g. `*.example.com`).
Note that as per RFC1035 and RFC1123, a label must consist of lower case alphanumeric characters or '-', and must start and end with an alphanumeric character. No other punctuation is allowed.
The routes associated with a Mesh or Gateway must have unique hostnames. If you attempt to attach multiple routes with conflicting hostnames, the configuration will be rejected.
For example, while it is acceptable for routes for the hostnames `*.foo.bar.com` and `*.bar.com` to be associated with the same route, it is not possible to associate two routes both with `*.bar.com` or both with `bar.com`.
If a port is specified, then gRPC clients must use the channel URI with the port to match this rule (i.e. "xds:///service:123"), otherwise they must supply the URI without a port (i.e. "xds:///service").
$msg->meshes()/$msg->meshes($value)Type:
StringOptional. Meshes defines a list of meshes this GrpcRoute 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>`
$msg->gateways()/$msg->gateways($value)Type:
StringOptional. Gateways defines a list of gateways this GrpcRoute 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->rules()/$msg->rules($value)Type:
Message(Google::Cloud::Networkservices::V1::GrpcRoute::GrpcRoute::RouteRule)Required. A list of detailed rules defining how to route traffic.
Within a single GrpcRoute, the GrpcRoute.RouteAction associated with the first matching GrpcRoute.RouteRule will be executed. At least one rule must be supplied.
Google::Cloud::Networkservices::V1::GrpcRoute::ListGrpcRoutesRequest
Request used with the ListGrpcRoutes method.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The project and location from which the GrpcRoutes should be listed, specified in the format `projects/*/locations/*`.
$msg->page_size()/$msg->page_size($value)Type:
Int32Maximum number of GrpcRoutes to return per call.
$msg->page_token()/$msg->page_token($value)Type:
StringThe value returned by the last `ListGrpcRoutesResponse` Indicates that this is a continuation of a prior `ListGrpcRoutes` call, and that the system should return the next page of data.
$msg->return_partial_success()/$msg->return_partial_success($value)Type:
BoolOptional. 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::GrpcRoute::ListGrpcRoutesResponse
Response returned by the ListGrpcRoutes method.
Inherits from Protobuf::Message.
Accessors
$msg->grpc_routes()/$msg->grpc_routes($value)Type:
Message(Google::Cloud::Networkservices::V1::GrpcRoute::GrpcRoute)List of GrpcRoute resources.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringIf 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:
StringUnreachable resources. Populated when the request opts into [return_partial_success][google.cloud.networkservices.v1.ListGrpcRoutesRequest.return_partial_success] and reading across collections e.g. when attempting to list all resources across all supported locations.
Google::Cloud::Networkservices::V1::GrpcRoute::GetGrpcRouteRequest
Request used by the GetGrpcRoute method.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. A name of the GrpcRoute to get. Must be in the format `projects/*/locations/*/grpcRoutes/*`.
Google::Cloud::Networkservices::V1::GrpcRoute::CreateGrpcRouteRequest
Request used by the CreateGrpcRoute method.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource of the GrpcRoute. Must be in the format `projects/*/locations/*`.
$msg->grpc_route_id()/$msg->grpc_route_id($value)Type:
StringRequired. Short name of the GrpcRoute resource to be created.
$msg->grpc_route()/$msg->grpc_route($value)Type:
Message(Google::Cloud::Networkservices::V1::GrpcRoute::GrpcRoute)Required. GrpcRoute resource to be created.
Google::Cloud::Networkservices::V1::GrpcRoute::UpdateGrpcRouteRequest
Request used by the UpdateGrpcRoute 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 GrpcRoute 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->grpc_route()/$msg->grpc_route($value)Type:
Message(Google::Cloud::Networkservices::V1::GrpcRoute::GrpcRoute)Required. Updated GrpcRoute resource.
Google::Cloud::Networkservices::V1::GrpcRoute::DeleteGrpcRouteRequest
Request used by the DeleteGrpcRoute method.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. A name of the GrpcRoute to delete. Must be in the format `projects/*/locations/*/grpcRoutes/*`.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Networkservices::V1::GrpcRoute::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.