NAME
Google::Cloud::Apigateway::V1::Apigateway - Compiled Protocol Buffers messages for google/cloud/apigateway/v1/apigateway.proto
SYNOPSIS
use Google::Cloud::Apigateway::V1::Apigateway;
my $msg = Google::Cloud::Apigateway::V1::Apigateway::Api->new({
name => $name,
create_time => $create_time,
update_time => $update_time,
labels => $labels,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Apigateway::V1::Apigateway::Api->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/apigateway/v1/apigateway.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::Apigateway::V1::Apigateway::Api
An API that can be served by one or more Gateways.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringOutput only. Resource name of the API. Format: projects/{project}/locations/global/apis/{api}
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Created time.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Updated time.
$msg->labels()/$msg->labels($value)Type:
Message(Google::Cloud::Apigateway::V1::Apigateway::Api::LabelsEntry)Optional. Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources
$msg->display_name()/$msg->display_name($value)Type:
StringOptional. Display name.
$msg->managed_service()/$msg->managed_service($value)Type:
StringOptional. Immutable. The name of a Google Managed Service ( https://cloud.google.com/service-infrastructure/docs/glossary#managed). If not specified, a new Service will automatically be created in the same project as this API.
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Apigateway::V1::Api::State)Output only. State of the API.
Enum: Api::State
STATE_UNSPECIFIED=>0CREATING=>1ACTIVE=>2FAILED=>3DELETING=>4UPDATING=>5
Google::Cloud::Apigateway::V1::Apigateway::ApiConfig
An API Configuration is a combination of settings for both the Managed Service and Gateways serving this API Config.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringOutput only. Resource name of the API Config. Format: projects/{project}/locations/global/apis/{api}/configs/{api_config}
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Created time.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Updated time.
$msg->labels()/$msg->labels($value)Type:
Message(Google::Cloud::Apigateway::V1::Apigateway::ApiConfig::LabelsEntry)Optional. Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources
$msg->display_name()/$msg->display_name($value)Type:
StringOptional. Display name.
$msg->gateway_service_account()/$msg->gateway_service_account($value)Type:
StringImmutable. The Google Cloud IAM Service Account that Gateways serving this config should use to authenticate to other services. This may either be the Service Account's email (`{ACCOUNT_ID}@{PROJECT}.iam.gserviceaccount.com`) or its full resource name (`projects/{PROJECT}/accounts/{UNIQUE_ID}`). This is most often used when the service is a GCP resource such as a Cloud Run Service or an IAP-secured service.
$msg->service_config_id()/$msg->service_config_id($value)Type:
StringOutput only. The ID of the associated Service Config ( https://cloud.google.com/service-infrastructure/docs/glossary#config).
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Apigateway::V1::ApiConfig::State)Output only. State of the API Config.
$msg->openapi_documents()/$msg->openapi_documents($value)Type:
Message(Google::Cloud::Apigateway::V1::Apigateway::ApiConfig::OpenApiDocument)Optional. OpenAPI specification documents. If specified, grpc_services and managed_service_configs must not be included.
$msg->grpc_services()/$msg->grpc_services($value)Type:
Message(Google::Cloud::Apigateway::V1::Apigateway::ApiConfig::GrpcServiceDefinition)Optional. gRPC service definition files. If specified, openapi_documents must not be included.
$msg->managed_service_configs()/$msg->managed_service_configs($value)Type:
Message(Google::Cloud::Apigateway::V1::Apigateway::ApiConfig::File)Optional. Service Configuration files. At least one must be included when using gRPC service definitions. See https://cloud.google.com/endpoints/docs/grpc/grpc-service-config#service_configuration_overview for the expected file contents.
If multiple files are specified, the files are merged with the following rules: * All singular scalar fields are merged using "last one wins" semantics in the order of the files uploaded. * Repeated fields are concatenated. * Singular embedded messages are merged using these rules for nested fields.
Enum: ApiConfig::State
STATE_UNSPECIFIED=>0CREATING=>1ACTIVE=>2FAILED=>3DELETING=>4UPDATING=>5ACTIVATING=>6
Google::Cloud::Apigateway::V1::Apigateway::Gateway
A Gateway is an API-aware HTTP proxy. It performs API-Method and/or API-Consumer specific actions based on an API Config such as authentication, policy enforcement, and backend selection.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringOutput only. Resource name of the Gateway. Format: projects/{project}/locations/{location}/gateways/{gateway}
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Created time.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Updated time.
$msg->labels()/$msg->labels($value)Type:
Message(Google::Cloud::Apigateway::V1::Apigateway::Gateway::LabelsEntry)Optional. Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources
$msg->display_name()/$msg->display_name($value)Type:
StringOptional. Display name.
$msg->api_config()/$msg->api_config($value)Type:
StringRequired. Resource name of the API Config for this Gateway. Format: projects/{project}/locations/global/apis/{api}/configs/{apiConfig}
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Apigateway::V1::Gateway::State)Output only. The current state of the Gateway.
$msg->default_hostname()/$msg->default_hostname($value)Type:
StringOutput only. The default hostname that serves traffic for this Gateway.
$msg->streaming_mode()/$msg->streaming_mode($value)Type:
Enum(Google::Cloud::Apigateway::V1::Gateway::StreamingMode)Optional. Immutable. Requests streaming for a new gateway. An attempt to change it on update is rejected. If unset, the service selects the mode. This field records only what was requested and is never modified by the service; read `effective_streaming_mode` for the mode the gateway is served with.
$msg->effective_streaming_mode()/$msg->effective_streaming_mode($value)Type:
Enum(Google::Cloud::Apigateway::V1::Gateway::EffectiveStreamingMode)Output only. The streaming mode this gateway is actually served with, which the service resolves at creation from `streaming_mode`, the referenced API Config, and the platform default at the time. Read this rather than `streaming_mode` to determine whether a gateway supports streaming.
Enum: Gateway::State
STATE_UNSPECIFIED=>0CREATING=>1ACTIVE=>2FAILED=>3DELETING=>4UPDATING=>5
Enum: Gateway::StreamingMode
STREAMING_MODE_UNSPECIFIED=>0STREAMING_MODE_ENABLED=>1
Enum: Gateway::EffectiveStreamingMode
EFFECTIVE_STREAMING_MODE_UNSPECIFIED=>0EFFECTIVE_STREAMING_MODE_DISABLED=>1EFFECTIVE_STREAMING_MODE_ENABLED=>2
Google::Cloud::Apigateway::V1::Apigateway::ListGatewaysRequest
Request message for ApiGatewayService.ListGateways
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. Parent resource of the Gateway, of the form: `projects/*/locations/*`
$msg->page_size()/$msg->page_size($value)Type:
Int32Page size.
$msg->page_token()/$msg->page_token($value)Type:
StringPage token.
$msg->filter()/$msg->filter($value)Type:
StringFilter.
$msg->order_by()/$msg->order_by($value)Type:
StringOrder by parameters.
Google::Cloud::Apigateway::V1::Apigateway::ListGatewaysResponse
Response message for ApiGatewayService.ListGateways
Inherits from Protobuf::Message.
Accessors
$msg->gateways()/$msg->gateways($value)Type:
Message(Google::Cloud::Apigateway::V1::Apigateway::Gateway)Gateways.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringNext page token.
$msg->unreachable_locations()/$msg->unreachable_locations($value)Type:
StringLocations that could not be reached.
Google::Cloud::Apigateway::V1::Apigateway::GetGatewayRequest
Request message for ApiGatewayService.GetGateway
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Resource name of the form: `projects/*/locations/*/gateways/*`
Google::Cloud::Apigateway::V1::Apigateway::CreateGatewayRequest
Request message for ApiGatewayService.CreateGateway
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. Parent resource of the Gateway, of the form: `projects/*/locations/*`
$msg->gateway_id()/$msg->gateway_id($value)Type:
StringRequired. Identifier to assign to the Gateway. Must be unique within scope of the parent resource.
$msg->gateway()/$msg->gateway($value)Type:
Message(Google::Cloud::Apigateway::V1::Apigateway::Gateway)Required. Gateway resource.
Google::Cloud::Apigateway::V1::Apigateway::UpdateGatewayRequest
Request message for ApiGatewayService.UpdateGateway
Inherits from Protobuf::Message.
Accessors
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)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::Apigateway::V1::Apigateway::Gateway)Required. Gateway resource.
Google::Cloud::Apigateway::V1::Apigateway::DeleteGatewayRequest
Request message for ApiGatewayService.DeleteGateway
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Resource name of the form: `projects/*/locations/*/gateways/*`
Google::Cloud::Apigateway::V1::Apigateway::ListApisRequest
Request message for ApiGatewayService.ListApis
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. Parent resource of the API, of the form: `projects/*/locations/global`
$msg->page_size()/$msg->page_size($value)Type:
Int32Page size.
$msg->page_token()/$msg->page_token($value)Type:
StringPage token.
$msg->filter()/$msg->filter($value)Type:
StringFilter.
$msg->order_by()/$msg->order_by($value)Type:
StringOrder by parameters.
Google::Cloud::Apigateway::V1::Apigateway::ListApisResponse
Response message for ApiGatewayService.ListApis
Inherits from Protobuf::Message.
Accessors
$msg->apis()/$msg->apis($value)Type:
Message(Google::Cloud::Apigateway::V1::Apigateway::Api)APIs.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringNext page token.
$msg->unreachable_locations()/$msg->unreachable_locations($value)Type:
StringLocations that could not be reached.
Google::Cloud::Apigateway::V1::Apigateway::GetApiRequest
Request message for ApiGatewayService.GetApi
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Resource name of the form: `projects/*/locations/global/apis/*`
Google::Cloud::Apigateway::V1::Apigateway::CreateApiRequest
Request message for ApiGatewayService.CreateApi
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. Parent resource of the API, of the form: `projects/*/locations/global`
$msg->api_id()/$msg->api_id($value)Type:
StringRequired. Identifier to assign to the API. Must be unique within scope of the parent resource.
$msg->api()/$msg->api($value)Type:
Message(Google::Cloud::Apigateway::V1::Apigateway::Api)Required. API resource.
Google::Cloud::Apigateway::V1::Apigateway::UpdateApiRequest
Request message for ApiGatewayService.UpdateApi
Inherits from Protobuf::Message.
Accessors
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Field mask is used to specify the fields to be overwritten in the Api 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->api()/$msg->api($value)Type:
Message(Google::Cloud::Apigateway::V1::Apigateway::Api)Required. API resource.
Google::Cloud::Apigateway::V1::Apigateway::DeleteApiRequest
Request message for ApiGatewayService.DeleteApi
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Resource name of the form: `projects/*/locations/global/apis/*`
Google::Cloud::Apigateway::V1::Apigateway::ListApiConfigsRequest
Request message for ApiGatewayService.ListApiConfigs
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. Parent resource of the API Config, of the form: `projects/*/locations/global/apis/*`
$msg->page_size()/$msg->page_size($value)Type:
Int32Page size.
$msg->page_token()/$msg->page_token($value)Type:
StringPage token.
$msg->filter()/$msg->filter($value)Type:
StringFilter.
$msg->order_by()/$msg->order_by($value)Type:
StringOrder by parameters.
Google::Cloud::Apigateway::V1::Apigateway::ListApiConfigsResponse
Response message for ApiGatewayService.ListApiConfigs
Inherits from Protobuf::Message.
Accessors
$msg->api_configs()/$msg->api_configs($value)Type:
Message(Google::Cloud::Apigateway::V1::Apigateway::ApiConfig)API Configs.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringNext page token.
$msg->unreachable_locations()/$msg->unreachable_locations($value)Type:
StringLocations that could not be reached.
Google::Cloud::Apigateway::V1::Apigateway::GetApiConfigRequest
Request message for ApiGatewayService.GetApiConfig
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Resource name of the form: `projects/*/locations/global/apis/*/configs/*`
$msg->view()/$msg->view($value)Type:
Enum(Google::Cloud::Apigateway::V1::GetApiConfigRequest::ConfigView)Specifies which fields of the API Config are returned in the response. Defaults to `BASIC` view.
Enum: GetApiConfigRequest::ConfigView
CONFIG_VIEW_UNSPECIFIED=>0BASIC=>1FULL=>2
Google::Cloud::Apigateway::V1::Apigateway::CreateApiConfigRequest
Request message for ApiGatewayService.CreateApiConfig
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. Parent resource of the API Config, of the form: `projects/*/locations/global/apis/*`
$msg->api_config_id()/$msg->api_config_id($value)Type:
StringRequired. Identifier to assign to the API Config. Must be unique within scope of the parent resource.
$msg->api_config()/$msg->api_config($value)Type:
Message(Google::Cloud::Apigateway::V1::Apigateway::ApiConfig)Required. API resource.
Google::Cloud::Apigateway::V1::Apigateway::UpdateApiConfigRequest
Request message for ApiGatewayService.UpdateApiConfig
Inherits from Protobuf::Message.
Accessors
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Field mask is used to specify the fields to be overwritten in the ApiConfig 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->api_config()/$msg->api_config($value)Type:
Message(Google::Cloud::Apigateway::V1::Apigateway::ApiConfig)Required. API Config resource.
Google::Cloud::Apigateway::V1::Apigateway::DeleteApiConfigRequest
Request message for ApiGatewayService.DeleteApiConfig
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Resource name of the form: `projects/*/locations/global/apis/*/configs/*`
Google::Cloud::Apigateway::V1::Apigateway::OperationMetadata
Represents the metadata of the long-running operation.
Inherits from Protobuf::Message.
Accessors
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time the operation was created.
$msg->end_time()/$msg->end_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time the operation finished running.
$msg->target()/$msg->target($value)Type:
StringOutput only. Server-defined resource path for the target of the operation.
$msg->verb()/$msg->verb($value)Type:
StringOutput only. Name of the verb executed by the operation.
$msg->status_message()/$msg->status_message($value)Type:
StringOutput only. Human-readable status of the operation, if any.
$msg->requested_cancellation()/$msg->requested_cancellation($value)Type:
BoolOutput only. Identifies whether the user has requested cancellation of the operation. Operations that have successfully been cancelled have [google.longrunning.Operation.error][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`.
$msg->api_version()/$msg->api_version($value)Type:
StringOutput only. API version used to start the operation.
$msg->diagnostics()/$msg->diagnostics($value)Type:
Message(Google::Cloud::Apigateway::V1::Apigateway::OperationMetadata::Diagnostic)Output only. Diagnostics generated during processing of configuration source files.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Apigateway::V1::Apigateway::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.