NAME

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

SYNOPSIS

use Google::Cloud::Networkservices::V1::Gateway;

my $msg = Google::Cloud::Networkservices::V1::Gateway::Gateway->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::Gateway::Gateway->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/networkservices/v1/gateway.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::Gateway::Gateway

Gateway represents the configuration for a proxy, typically a load balancer. It captures the ip:port over which the services are exposed by the proxy, along with any policy configurations. Routes have reference to to Gateways to dictate how requests should be routed by this Gateway.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Identifier. Name of the Gateway resource. It matches pattern `projects/*/locations/*/gateways/<gateway_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->labels() / $msg->labels($value)

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

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

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

    Type: String

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

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

    Type: Enum (Google::Cloud::Networkservices::V1::Gateway::Type)

    Immutable. The type of the customer managed gateway. This field is required. If unspecified, an error is returned.

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

    Type: String

    Optional. Zero or one IPv4 or IPv6 address on which the Gateway will receive the traffic. When no address is provided, an IP from the subnetwork is allocated

    This field only applies to gateways of type 'SECURE_WEB_GATEWAY'. Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6.

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

    Type: Int32

    Required. One or more port numbers (1-65535), on which the Gateway will receive traffic. The proxy binds to the specified ports. Gateways of type 'SECURE_WEB_GATEWAY' are limited to 5 ports. Gateways of type 'OPEN_MESH' listen on 0.0.0.0 for IPv4 and :: for IPv6 and support multiple ports.

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

    Type: Bool

    Optional. If true, the Gateway will listen on all ports. This is mutually exclusive with the `ports` field. This field only applies to gateways of type 'SECURE_WEB_GATEWAY'.

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

    Type: String

    Optional. Scope determines how configuration across multiple Gateway instances are merged. The configuration for multiple Gateway instances with the same scope will be merged as presented as a single configuration to the proxy/load balancer.

    Max length 64 characters. Scope should start with a letter and can only have letters, numbers, hyphens.

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

    Type: String

    Optional. A fully-qualified ServerTLSPolicy URL reference. Specifies how TLS traffic is terminated. If empty, TLS termination is disabled.

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

    Type: String

    Optional. A fully-qualified Certificates URL reference. The proxy presents a Certificate (selected based on SNI) when establishing a TLS connection. This feature only applies to gateways of type 'SECURE_WEB_GATEWAY'.

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

    Type: String

    Optional. A fully-qualified GatewaySecurityPolicy URL reference. Defines how a server should apply security policy to inbound (VM to Proxy) initiated connections.

    For example: `projects/*/locations/*/gatewaySecurityPolicies/swg-policy`.

    This policy is specific to gateways of type 'SECURE_WEB_GATEWAY'.

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

    Type: String

    Optional. The relative resource name identifying the VPC network that is using this configuration. For example: `projects/*/global/networks/network-1`.

    Currently, this field is specific to gateways of type 'SECURE_WEB_GATEWAY'.

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

    Type: String

    Optional. The relative resource name identifying the subnetwork in which this SWG is allocated. For example: `projects/*/regions/us-central1/subnetworks/network-1`

    Currently, this field is specific to gateways of type 'SECURE_WEB_GATEWAY".

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

    Type: Enum (Google::Cloud::Networkservices::V1::Gateway::IpVersion)

    Optional. The IP Version that will be used by this gateway. Valid options are IPV4 or IPV6. Default is IPV4.

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

    Type: Enum (Google::Cloud::Networkservices::V1::EnvoyHeaders)

    Optional. Determines if envoy will insert internal debug headers into upstream requests. Other Envoy headers may still be injected. By default, envoy will not insert any debug headers.

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

    Type: Enum (Google::Cloud::Networkservices::V1::Gateway::RoutingMode)

    Optional. The routing mode of the Gateway. This field is configurable only for gateways of type SECURE_WEB_GATEWAY. This field is required for gateways of type SECURE_WEB_GATEWAY.

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

    Type: Bool

    Optional. If true, the gateway will allow traffic from clients outside of the region where the gateway is located. This field is configurable only for gateways of type SECURE_WEB_GATEWAY.

Enum: Gateway::Type

  • TYPE_UNSPECIFIED => 0

  • OPEN_MESH => 1

  • SECURE_WEB_GATEWAY => 2

Enum: Gateway::IpVersion

  • IP_VERSION_UNSPECIFIED => 0

  • IPV4 => 1

  • IPV6 => 2

Enum: Gateway::RoutingMode

  • EXPLICIT_ROUTING_MODE => 0

  • NEXT_HOP_ROUTING_MODE => 1

Google::Cloud::Networkservices::V1::Gateway::ListGatewaysRequest

Request used with the ListGateways method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

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

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

    Type: Int32

    Maximum number of Gateways to return per call.

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

    Type: String

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

Google::Cloud::Networkservices::V1::Gateway::ListGatewaysResponse

Response returned by the ListGateways method.

Inherits from Protobuf::Message.

Accessors

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

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

    List of Gateway 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

    Locations that could not be reached.

Google::Cloud::Networkservices::V1::Gateway::GetGatewayRequest

Request used by the GetGateway method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

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

Google::Cloud::Networkservices::V1::Gateway::CreateGatewayRequest

Request used by the CreateGateway method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

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

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

    Type: String

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

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

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

    Required. Gateway resource to be created.

Google::Cloud::Networkservices::V1::Gateway::UpdateGatewayRequest

Request used by the UpdateGateway 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 Gateway 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->gateway() / $msg->gateway($value)

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

    Required. Updated Gateway resource.

Google::Cloud::Networkservices::V1::Gateway::DeleteGatewayRequest

Request used by the DeleteGateway method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

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

SEE ALSO

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

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.