Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes.
See raw diff
- .venv/lib/python3.11/site-packages/google/api/__pycache__/backend_pb2.cpython-311.pyc +0 -0
- .venv/lib/python3.11/site-packages/google/api/__pycache__/billing_pb2.cpython-311.pyc +0 -0
- .venv/lib/python3.11/site-packages/google/api/__pycache__/resource_pb2.cpython-311.pyc +0 -0
- .venv/lib/python3.11/site-packages/google/api/__pycache__/routing_pb2.cpython-311.pyc +0 -0
- .venv/lib/python3.11/site-packages/google/api/__pycache__/service_pb2.cpython-311.pyc +0 -0
- .venv/lib/python3.11/site-packages/google/api/annotations.proto +31 -0
- .venv/lib/python3.11/site-packages/google/api/annotations_pb2.py +46 -0
- .venv/lib/python3.11/site-packages/google/api/auth.proto +237 -0
- .venv/lib/python3.11/site-packages/google/api/backend_pb2.py +52 -0
- .venv/lib/python3.11/site-packages/google/api/billing.proto +77 -0
- .venv/lib/python3.11/site-packages/google/api/billing_pb2.py +44 -0
- .venv/lib/python3.11/site-packages/google/api/client_pb2.py +95 -0
- .venv/lib/python3.11/site-packages/google/api/config_change.proto +84 -0
- .venv/lib/python3.11/site-packages/google/api/config_change_pb2.py +48 -0
- .venv/lib/python3.11/site-packages/google/api/consumer.proto +82 -0
- .venv/lib/python3.11/site-packages/google/api/consumer_pb2.py +46 -0
- .venv/lib/python3.11/site-packages/google/api/context.proto +92 -0
- .venv/lib/python3.11/site-packages/google/api/context_pb2.py +44 -0
- .venv/lib/python3.11/site-packages/google/api/control.proto +41 -0
- .venv/lib/python3.11/site-packages/google/api/control_pb2.py +45 -0
- .venv/lib/python3.11/site-packages/google/api/distribution.proto +213 -0
- .venv/lib/python3.11/site-packages/google/api/distribution_pb2.py +60 -0
- .venv/lib/python3.11/site-packages/google/api/documentation.proto +168 -0
- .venv/lib/python3.11/site-packages/google/api/documentation_pb2.py +48 -0
- .venv/lib/python3.11/site-packages/google/api/endpoint.proto +69 -0
- .venv/lib/python3.11/site-packages/google/api/endpoint_pb2.py +42 -0
- .venv/lib/python3.11/site-packages/google/api/error_reason.proto +622 -0
- .venv/lib/python3.11/site-packages/google/api/error_reason_pb2.py +44 -0
- .venv/lib/python3.11/site-packages/google/api/field_behavior_pb2.py +49 -0
- .venv/lib/python3.11/site-packages/google/api/field_info.proto +106 -0
- .venv/lib/python3.11/site-packages/google/api/field_info_pb2.py +51 -0
- .venv/lib/python3.11/site-packages/google/api/http.proto +371 -0
- .venv/lib/python3.11/site-packages/google/api/http_pb2.py +46 -0
- .venv/lib/python3.11/site-packages/google/api/httpbody.proto +80 -0
- .venv/lib/python3.11/site-packages/google/api/httpbody_pb2.py +45 -0
- .venv/lib/python3.11/site-packages/google/api/label.proto +48 -0
- .venv/lib/python3.11/site-packages/google/api/label_pb2.py +44 -0
- .venv/lib/python3.11/site-packages/google/api/launch_stage.proto +72 -0
- .venv/lib/python3.11/site-packages/google/api/launch_stage_pb2.py +44 -0
- .venv/lib/python3.11/site-packages/google/api/log.proto +54 -0
- .venv/lib/python3.11/site-packages/google/api/log_pb2.py +45 -0
- .venv/lib/python3.11/site-packages/google/api/logging.proto +81 -0
- .venv/lib/python3.11/site-packages/google/api/logging_pb2.py +44 -0
- .venv/lib/python3.11/site-packages/google/api/metric.proto +287 -0
- .venv/lib/python3.11/site-packages/google/api/metric_pb2.py +71 -0
- .venv/lib/python3.11/site-packages/google/api/monitored_resource.proto +130 -0
- .venv/lib/python3.11/site-packages/google/api/monitored_resource_pb2.py +61 -0
- .venv/lib/python3.11/site-packages/google/api/monitoring.proto +107 -0
- .venv/lib/python3.11/site-packages/google/api/monitoring_pb2.py +46 -0
- .venv/lib/python3.11/site-packages/google/api/policy.proto +83 -0
.venv/lib/python3.11/site-packages/google/api/__pycache__/backend_pb2.cpython-311.pyc
ADDED
|
Binary file (2.74 kB). View file
|
|
|
.venv/lib/python3.11/site-packages/google/api/__pycache__/billing_pb2.cpython-311.pyc
ADDED
|
Binary file (1.83 kB). View file
|
|
|
.venv/lib/python3.11/site-packages/google/api/__pycache__/resource_pb2.cpython-311.pyc
ADDED
|
Binary file (2.74 kB). View file
|
|
|
.venv/lib/python3.11/site-packages/google/api/__pycache__/routing_pb2.cpython-311.pyc
ADDED
|
Binary file (2.01 kB). View file
|
|
|
.venv/lib/python3.11/site-packages/google/api/__pycache__/service_pb2.cpython-311.pyc
ADDED
|
Binary file (4.98 kB). View file
|
|
|
.venv/lib/python3.11/site-packages/google/api/annotations.proto
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2024 Google LLC
|
| 2 |
+
//
|
| 3 |
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
// you may not use this file except in compliance with the License.
|
| 5 |
+
// You may obtain a copy of the License at
|
| 6 |
+
//
|
| 7 |
+
// http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
//
|
| 9 |
+
// Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
// See the License for the specific language governing permissions and
|
| 13 |
+
// limitations under the License.
|
| 14 |
+
|
| 15 |
+
syntax = "proto3";
|
| 16 |
+
|
| 17 |
+
package google.api;
|
| 18 |
+
|
| 19 |
+
import "google/api/http.proto";
|
| 20 |
+
import "google/protobuf/descriptor.proto";
|
| 21 |
+
|
| 22 |
+
option go_package = "google.golang.org/genproto/googleapis/api/annotations;annotations";
|
| 23 |
+
option java_multiple_files = true;
|
| 24 |
+
option java_outer_classname = "AnnotationsProto";
|
| 25 |
+
option java_package = "com.google.api";
|
| 26 |
+
option objc_class_prefix = "GAPI";
|
| 27 |
+
|
| 28 |
+
extend google.protobuf.MethodOptions {
|
| 29 |
+
// See `HttpRule`.
|
| 30 |
+
HttpRule http = 72295728;
|
| 31 |
+
}
|
.venv/lib/python3.11/site-packages/google/api/annotations_pb2.py
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# -*- coding: utf-8 -*-
|
| 2 |
+
|
| 3 |
+
# Copyright 2024 Google LLC
|
| 4 |
+
#
|
| 5 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 6 |
+
# you may not use this file except in compliance with the License.
|
| 7 |
+
# You may obtain a copy of the License at
|
| 8 |
+
#
|
| 9 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 10 |
+
#
|
| 11 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 12 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 13 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 14 |
+
# See the License for the specific language governing permissions and
|
| 15 |
+
# limitations under the License.
|
| 16 |
+
|
| 17 |
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
| 18 |
+
# source: google/api/annotations.proto
|
| 19 |
+
"""Generated protocol buffer code."""
|
| 20 |
+
from google.protobuf import descriptor as _descriptor
|
| 21 |
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
| 22 |
+
from google.protobuf import symbol_database as _symbol_database
|
| 23 |
+
from google.protobuf.internal import builder as _builder
|
| 24 |
+
|
| 25 |
+
# @@protoc_insertion_point(imports)
|
| 26 |
+
|
| 27 |
+
_sym_db = _symbol_database.Default()
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
from google.api import http_pb2 as google_dot_api_dot_http__pb2
|
| 31 |
+
from google.protobuf import descriptor_pb2 as google_dot_protobuf_dot_descriptor__pb2
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
| 35 |
+
b'\n\x1cgoogle/api/annotations.proto\x12\ngoogle.api\x1a\x15google/api/http.proto\x1a google/protobuf/descriptor.proto:E\n\x04http\x12\x1e.google.protobuf.MethodOptions\x18\xb0\xca\xbc" \x01(\x0b\x32\x14.google.api.HttpRuleBn\n\x0e\x63om.google.apiB\x10\x41nnotationsProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xa2\x02\x04GAPIb\x06proto3'
|
| 36 |
+
)
|
| 37 |
+
|
| 38 |
+
_globals = globals()
|
| 39 |
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
| 40 |
+
_builder.BuildTopDescriptorsAndMessages(
|
| 41 |
+
DESCRIPTOR, "google.api.annotations_pb2", _globals
|
| 42 |
+
)
|
| 43 |
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
| 44 |
+
DESCRIPTOR._options = None
|
| 45 |
+
DESCRIPTOR._serialized_options = b"\n\016com.google.apiB\020AnnotationsProtoP\001ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\242\002\004GAPI"
|
| 46 |
+
# @@protoc_insertion_point(module_scope)
|
.venv/lib/python3.11/site-packages/google/api/auth.proto
ADDED
|
@@ -0,0 +1,237 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2024 Google LLC
|
| 2 |
+
//
|
| 3 |
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
// you may not use this file except in compliance with the License.
|
| 5 |
+
// You may obtain a copy of the License at
|
| 6 |
+
//
|
| 7 |
+
// http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
//
|
| 9 |
+
// Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
// See the License for the specific language governing permissions and
|
| 13 |
+
// limitations under the License.
|
| 14 |
+
|
| 15 |
+
syntax = "proto3";
|
| 16 |
+
|
| 17 |
+
package google.api;
|
| 18 |
+
|
| 19 |
+
option go_package = "google.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig";
|
| 20 |
+
option java_multiple_files = true;
|
| 21 |
+
option java_outer_classname = "AuthProto";
|
| 22 |
+
option java_package = "com.google.api";
|
| 23 |
+
option objc_class_prefix = "GAPI";
|
| 24 |
+
|
| 25 |
+
// `Authentication` defines the authentication configuration for API methods
|
| 26 |
+
// provided by an API service.
|
| 27 |
+
//
|
| 28 |
+
// Example:
|
| 29 |
+
//
|
| 30 |
+
// name: calendar.googleapis.com
|
| 31 |
+
// authentication:
|
| 32 |
+
// providers:
|
| 33 |
+
// - id: google_calendar_auth
|
| 34 |
+
// jwks_uri: https://www.googleapis.com/oauth2/v1/certs
|
| 35 |
+
// issuer: https://securetoken.google.com
|
| 36 |
+
// rules:
|
| 37 |
+
// - selector: "*"
|
| 38 |
+
// requirements:
|
| 39 |
+
// provider_id: google_calendar_auth
|
| 40 |
+
// - selector: google.calendar.Delegate
|
| 41 |
+
// oauth:
|
| 42 |
+
// canonical_scopes: https://www.googleapis.com/auth/calendar.read
|
| 43 |
+
message Authentication {
|
| 44 |
+
// A list of authentication rules that apply to individual API methods.
|
| 45 |
+
//
|
| 46 |
+
// **NOTE:** All service configuration rules follow "last one wins" order.
|
| 47 |
+
repeated AuthenticationRule rules = 3;
|
| 48 |
+
|
| 49 |
+
// Defines a set of authentication providers that a service supports.
|
| 50 |
+
repeated AuthProvider providers = 4;
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
+
// Authentication rules for the service.
|
| 54 |
+
//
|
| 55 |
+
// By default, if a method has any authentication requirements, every request
|
| 56 |
+
// must include a valid credential matching one of the requirements.
|
| 57 |
+
// It's an error to include more than one kind of credential in a single
|
| 58 |
+
// request.
|
| 59 |
+
//
|
| 60 |
+
// If a method doesn't have any auth requirements, request credentials will be
|
| 61 |
+
// ignored.
|
| 62 |
+
message AuthenticationRule {
|
| 63 |
+
// Selects the methods to which this rule applies.
|
| 64 |
+
//
|
| 65 |
+
// Refer to [selector][google.api.DocumentationRule.selector] for syntax
|
| 66 |
+
// details.
|
| 67 |
+
string selector = 1;
|
| 68 |
+
|
| 69 |
+
// The requirements for OAuth credentials.
|
| 70 |
+
OAuthRequirements oauth = 2;
|
| 71 |
+
|
| 72 |
+
// If true, the service accepts API keys without any other credential.
|
| 73 |
+
// This flag only applies to HTTP and gRPC requests.
|
| 74 |
+
bool allow_without_credential = 5;
|
| 75 |
+
|
| 76 |
+
// Requirements for additional authentication providers.
|
| 77 |
+
repeated AuthRequirement requirements = 7;
|
| 78 |
+
}
|
| 79 |
+
|
| 80 |
+
// Specifies a location to extract JWT from an API request.
|
| 81 |
+
message JwtLocation {
|
| 82 |
+
oneof in {
|
| 83 |
+
// Specifies HTTP header name to extract JWT token.
|
| 84 |
+
string header = 1;
|
| 85 |
+
|
| 86 |
+
// Specifies URL query parameter name to extract JWT token.
|
| 87 |
+
string query = 2;
|
| 88 |
+
|
| 89 |
+
// Specifies cookie name to extract JWT token.
|
| 90 |
+
string cookie = 4;
|
| 91 |
+
}
|
| 92 |
+
|
| 93 |
+
// The value prefix. The value format is "value_prefix{token}"
|
| 94 |
+
// Only applies to "in" header type. Must be empty for "in" query type.
|
| 95 |
+
// If not empty, the header value has to match (case sensitive) this prefix.
|
| 96 |
+
// If not matched, JWT will not be extracted. If matched, JWT will be
|
| 97 |
+
// extracted after the prefix is removed.
|
| 98 |
+
//
|
| 99 |
+
// For example, for "Authorization: Bearer {JWT}",
|
| 100 |
+
// value_prefix="Bearer " with a space at the end.
|
| 101 |
+
string value_prefix = 3;
|
| 102 |
+
}
|
| 103 |
+
|
| 104 |
+
// Configuration for an authentication provider, including support for
|
| 105 |
+
// [JSON Web Token
|
| 106 |
+
// (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).
|
| 107 |
+
message AuthProvider {
|
| 108 |
+
// The unique identifier of the auth provider. It will be referred to by
|
| 109 |
+
// `AuthRequirement.provider_id`.
|
| 110 |
+
//
|
| 111 |
+
// Example: "bookstore_auth".
|
| 112 |
+
string id = 1;
|
| 113 |
+
|
| 114 |
+
// Identifies the principal that issued the JWT. See
|
| 115 |
+
// https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1
|
| 116 |
+
// Usually a URL or an email address.
|
| 117 |
+
//
|
| 118 |
+
// Example: https://securetoken.google.com
|
| 119 |
+
// Example: 1234567-compute@developer.gserviceaccount.com
|
| 120 |
+
string issuer = 2;
|
| 121 |
+
|
| 122 |
+
// URL of the provider's public key set to validate signature of the JWT. See
|
| 123 |
+
// [OpenID
|
| 124 |
+
// Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata).
|
| 125 |
+
// Optional if the key set document:
|
| 126 |
+
// - can be retrieved from
|
| 127 |
+
// [OpenID
|
| 128 |
+
// Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html)
|
| 129 |
+
// of the issuer.
|
| 130 |
+
// - can be inferred from the email domain of the issuer (e.g. a Google
|
| 131 |
+
// service account).
|
| 132 |
+
//
|
| 133 |
+
// Example: https://www.googleapis.com/oauth2/v1/certs
|
| 134 |
+
string jwks_uri = 3;
|
| 135 |
+
|
| 136 |
+
// The list of JWT
|
| 137 |
+
// [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
|
| 138 |
+
// that are allowed to access. A JWT containing any of these audiences will
|
| 139 |
+
// be accepted. When this setting is absent, JWTs with audiences:
|
| 140 |
+
// - "https://[service.name]/[google.protobuf.Api.name]"
|
| 141 |
+
// - "https://[service.name]/"
|
| 142 |
+
// will be accepted.
|
| 143 |
+
// For example, if no audiences are in the setting, LibraryService API will
|
| 144 |
+
// accept JWTs with the following audiences:
|
| 145 |
+
// -
|
| 146 |
+
// https://library-example.googleapis.com/google.example.library.v1.LibraryService
|
| 147 |
+
// - https://library-example.googleapis.com/
|
| 148 |
+
//
|
| 149 |
+
// Example:
|
| 150 |
+
//
|
| 151 |
+
// audiences: bookstore_android.apps.googleusercontent.com,
|
| 152 |
+
// bookstore_web.apps.googleusercontent.com
|
| 153 |
+
string audiences = 4;
|
| 154 |
+
|
| 155 |
+
// Redirect URL if JWT token is required but not present or is expired.
|
| 156 |
+
// Implement authorizationUrl of securityDefinitions in OpenAPI spec.
|
| 157 |
+
string authorization_url = 5;
|
| 158 |
+
|
| 159 |
+
// Defines the locations to extract the JWT. For now it is only used by the
|
| 160 |
+
// Cloud Endpoints to store the OpenAPI extension [x-google-jwt-locations]
|
| 161 |
+
// (https://cloud.google.com/endpoints/docs/openapi/openapi-extensions#x-google-jwt-locations)
|
| 162 |
+
//
|
| 163 |
+
// JWT locations can be one of HTTP headers, URL query parameters or
|
| 164 |
+
// cookies. The rule is that the first match wins.
|
| 165 |
+
//
|
| 166 |
+
// If not specified, default to use following 3 locations:
|
| 167 |
+
// 1) Authorization: Bearer
|
| 168 |
+
// 2) x-goog-iap-jwt-assertion
|
| 169 |
+
// 3) access_token query parameter
|
| 170 |
+
//
|
| 171 |
+
// Default locations can be specified as followings:
|
| 172 |
+
// jwt_locations:
|
| 173 |
+
// - header: Authorization
|
| 174 |
+
// value_prefix: "Bearer "
|
| 175 |
+
// - header: x-goog-iap-jwt-assertion
|
| 176 |
+
// - query: access_token
|
| 177 |
+
repeated JwtLocation jwt_locations = 6;
|
| 178 |
+
}
|
| 179 |
+
|
| 180 |
+
// OAuth scopes are a way to define data and permissions on data. For example,
|
| 181 |
+
// there are scopes defined for "Read-only access to Google Calendar" and
|
| 182 |
+
// "Access to Cloud Platform". Users can consent to a scope for an application,
|
| 183 |
+
// giving it permission to access that data on their behalf.
|
| 184 |
+
//
|
| 185 |
+
// OAuth scope specifications should be fairly coarse grained; a user will need
|
| 186 |
+
// to see and understand the text description of what your scope means.
|
| 187 |
+
//
|
| 188 |
+
// In most cases: use one or at most two OAuth scopes for an entire family of
|
| 189 |
+
// products. If your product has multiple APIs, you should probably be sharing
|
| 190 |
+
// the OAuth scope across all of those APIs.
|
| 191 |
+
//
|
| 192 |
+
// When you need finer grained OAuth consent screens: talk with your product
|
| 193 |
+
// management about how developers will use them in practice.
|
| 194 |
+
//
|
| 195 |
+
// Please note that even though each of the canonical scopes is enough for a
|
| 196 |
+
// request to be accepted and passed to the backend, a request can still fail
|
| 197 |
+
// due to the backend requiring additional scopes or permissions.
|
| 198 |
+
message OAuthRequirements {
|
| 199 |
+
// The list of publicly documented OAuth scopes that are allowed access. An
|
| 200 |
+
// OAuth token containing any of these scopes will be accepted.
|
| 201 |
+
//
|
| 202 |
+
// Example:
|
| 203 |
+
//
|
| 204 |
+
// canonical_scopes: https://www.googleapis.com/auth/calendar,
|
| 205 |
+
// https://www.googleapis.com/auth/calendar.read
|
| 206 |
+
string canonical_scopes = 1;
|
| 207 |
+
}
|
| 208 |
+
|
| 209 |
+
// User-defined authentication requirements, including support for
|
| 210 |
+
// [JSON Web Token
|
| 211 |
+
// (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).
|
| 212 |
+
message AuthRequirement {
|
| 213 |
+
// [id][google.api.AuthProvider.id] from authentication provider.
|
| 214 |
+
//
|
| 215 |
+
// Example:
|
| 216 |
+
//
|
| 217 |
+
// provider_id: bookstore_auth
|
| 218 |
+
string provider_id = 1;
|
| 219 |
+
|
| 220 |
+
// NOTE: This will be deprecated soon, once AuthProvider.audiences is
|
| 221 |
+
// implemented and accepted in all the runtime components.
|
| 222 |
+
//
|
| 223 |
+
// The list of JWT
|
| 224 |
+
// [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
|
| 225 |
+
// that are allowed to access. A JWT containing any of these audiences will
|
| 226 |
+
// be accepted. When this setting is absent, only JWTs with audience
|
| 227 |
+
// "https://[Service_name][google.api.Service.name]/[API_name][google.protobuf.Api.name]"
|
| 228 |
+
// will be accepted. For example, if no audiences are in the setting,
|
| 229 |
+
// LibraryService API will only accept JWTs with the following audience
|
| 230 |
+
// "https://library-example.googleapis.com/google.example.library.v1.LibraryService".
|
| 231 |
+
//
|
| 232 |
+
// Example:
|
| 233 |
+
//
|
| 234 |
+
// audiences: bookstore_android.apps.googleusercontent.com,
|
| 235 |
+
// bookstore_web.apps.googleusercontent.com
|
| 236 |
+
string audiences = 2;
|
| 237 |
+
}
|
.venv/lib/python3.11/site-packages/google/api/backend_pb2.py
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# -*- coding: utf-8 -*-
|
| 2 |
+
|
| 3 |
+
# Copyright 2024 Google LLC
|
| 4 |
+
#
|
| 5 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 6 |
+
# you may not use this file except in compliance with the License.
|
| 7 |
+
# You may obtain a copy of the License at
|
| 8 |
+
#
|
| 9 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 10 |
+
#
|
| 11 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 12 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 13 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 14 |
+
# See the License for the specific language governing permissions and
|
| 15 |
+
# limitations under the License.
|
| 16 |
+
|
| 17 |
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
| 18 |
+
# source: google/api/backend.proto
|
| 19 |
+
"""Generated protocol buffer code."""
|
| 20 |
+
from google.protobuf import descriptor as _descriptor
|
| 21 |
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
| 22 |
+
from google.protobuf import symbol_database as _symbol_database
|
| 23 |
+
from google.protobuf.internal import builder as _builder
|
| 24 |
+
|
| 25 |
+
# @@protoc_insertion_point(imports)
|
| 26 |
+
|
| 27 |
+
_sym_db = _symbol_database.Default()
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
| 31 |
+
b'\n\x18google/api/backend.proto\x12\ngoogle.api"1\n\x07\x42\x61\x63kend\x12&\n\x05rules\x18\x01 \x03(\x0b\x32\x17.google.api.BackendRule"\xb2\x04\n\x0b\x42\x61\x63kendRule\x12\x10\n\x08selector\x18\x01 \x01(\t\x12\x0f\n\x07\x61\x64\x64ress\x18\x02 \x01(\t\x12\x10\n\x08\x64\x65\x61\x64line\x18\x03 \x01(\x01\x12\x18\n\x0cmin_deadline\x18\x04 \x01(\x01\x42\x02\x18\x01\x12\x1a\n\x12operation_deadline\x18\x05 \x01(\x01\x12\x41\n\x10path_translation\x18\x06 \x01(\x0e\x32\'.google.api.BackendRule.PathTranslation\x12\x16\n\x0cjwt_audience\x18\x07 \x01(\tH\x00\x12\x16\n\x0c\x64isable_auth\x18\x08 \x01(\x08H\x00\x12\x10\n\x08protocol\x18\t \x01(\t\x12^\n\x1doverrides_by_request_protocol\x18\n \x03(\x0b\x32\x37.google.api.BackendRule.OverridesByRequestProtocolEntry\x1aZ\n\x1fOverridesByRequestProtocolEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12&\n\x05value\x18\x02 \x01(\x0b\x32\x17.google.api.BackendRule:\x02\x38\x01"e\n\x0fPathTranslation\x12 \n\x1cPATH_TRANSLATION_UNSPECIFIED\x10\x00\x12\x14\n\x10\x43ONSTANT_ADDRESS\x10\x01\x12\x1a\n\x16\x41PPEND_PATH_TO_ADDRESS\x10\x02\x42\x10\n\x0e\x61uthenticationBn\n\x0e\x63om.google.apiB\x0c\x42\x61\x63kendProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xa2\x02\x04GAPIb\x06proto3'
|
| 32 |
+
)
|
| 33 |
+
|
| 34 |
+
_globals = globals()
|
| 35 |
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
| 36 |
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "google.api.backend_pb2", _globals)
|
| 37 |
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
| 38 |
+
DESCRIPTOR._options = None
|
| 39 |
+
DESCRIPTOR._serialized_options = b"\n\016com.google.apiB\014BackendProtoP\001ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\242\002\004GAPI"
|
| 40 |
+
_BACKENDRULE_OVERRIDESBYREQUESTPROTOCOLENTRY._options = None
|
| 41 |
+
_BACKENDRULE_OVERRIDESBYREQUESTPROTOCOLENTRY._serialized_options = b"8\001"
|
| 42 |
+
_BACKENDRULE.fields_by_name["min_deadline"]._options = None
|
| 43 |
+
_BACKENDRULE.fields_by_name["min_deadline"]._serialized_options = b"\030\001"
|
| 44 |
+
_globals["_BACKEND"]._serialized_start = 40
|
| 45 |
+
_globals["_BACKEND"]._serialized_end = 89
|
| 46 |
+
_globals["_BACKENDRULE"]._serialized_start = 92
|
| 47 |
+
_globals["_BACKENDRULE"]._serialized_end = 654
|
| 48 |
+
_globals["_BACKENDRULE_OVERRIDESBYREQUESTPROTOCOLENTRY"]._serialized_start = 443
|
| 49 |
+
_globals["_BACKENDRULE_OVERRIDESBYREQUESTPROTOCOLENTRY"]._serialized_end = 533
|
| 50 |
+
_globals["_BACKENDRULE_PATHTRANSLATION"]._serialized_start = 535
|
| 51 |
+
_globals["_BACKENDRULE_PATHTRANSLATION"]._serialized_end = 636
|
| 52 |
+
# @@protoc_insertion_point(module_scope)
|
.venv/lib/python3.11/site-packages/google/api/billing.proto
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2024 Google LLC
|
| 2 |
+
//
|
| 3 |
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
// you may not use this file except in compliance with the License.
|
| 5 |
+
// You may obtain a copy of the License at
|
| 6 |
+
//
|
| 7 |
+
// http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
//
|
| 9 |
+
// Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
// See the License for the specific language governing permissions and
|
| 13 |
+
// limitations under the License.
|
| 14 |
+
|
| 15 |
+
syntax = "proto3";
|
| 16 |
+
|
| 17 |
+
package google.api;
|
| 18 |
+
|
| 19 |
+
option go_package = "google.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig";
|
| 20 |
+
option java_multiple_files = true;
|
| 21 |
+
option java_outer_classname = "BillingProto";
|
| 22 |
+
option java_package = "com.google.api";
|
| 23 |
+
option objc_class_prefix = "GAPI";
|
| 24 |
+
|
| 25 |
+
// Billing related configuration of the service.
|
| 26 |
+
//
|
| 27 |
+
// The following example shows how to configure monitored resources and metrics
|
| 28 |
+
// for billing, `consumer_destinations` is the only supported destination and
|
| 29 |
+
// the monitored resources need at least one label key
|
| 30 |
+
// `cloud.googleapis.com/location` to indicate the location of the billing
|
| 31 |
+
// usage, using different monitored resources between monitoring and billing is
|
| 32 |
+
// recommended so they can be evolved independently:
|
| 33 |
+
//
|
| 34 |
+
//
|
| 35 |
+
// monitored_resources:
|
| 36 |
+
// - type: library.googleapis.com/billing_branch
|
| 37 |
+
// labels:
|
| 38 |
+
// - key: cloud.googleapis.com/location
|
| 39 |
+
// description: |
|
| 40 |
+
// Predefined label to support billing location restriction.
|
| 41 |
+
// - key: city
|
| 42 |
+
// description: |
|
| 43 |
+
// Custom label to define the city where the library branch is located
|
| 44 |
+
// in.
|
| 45 |
+
// - key: name
|
| 46 |
+
// description: Custom label to define the name of the library branch.
|
| 47 |
+
// metrics:
|
| 48 |
+
// - name: library.googleapis.com/book/borrowed_count
|
| 49 |
+
// metric_kind: DELTA
|
| 50 |
+
// value_type: INT64
|
| 51 |
+
// unit: "1"
|
| 52 |
+
// billing:
|
| 53 |
+
// consumer_destinations:
|
| 54 |
+
// - monitored_resource: library.googleapis.com/billing_branch
|
| 55 |
+
// metrics:
|
| 56 |
+
// - library.googleapis.com/book/borrowed_count
|
| 57 |
+
message Billing {
|
| 58 |
+
// Configuration of a specific billing destination (Currently only support
|
| 59 |
+
// bill against consumer project).
|
| 60 |
+
message BillingDestination {
|
| 61 |
+
// The monitored resource type. The type must be defined in
|
| 62 |
+
// [Service.monitored_resources][google.api.Service.monitored_resources]
|
| 63 |
+
// section.
|
| 64 |
+
string monitored_resource = 1;
|
| 65 |
+
|
| 66 |
+
// Names of the metrics to report to this billing destination.
|
| 67 |
+
// Each name must be defined in
|
| 68 |
+
// [Service.metrics][google.api.Service.metrics] section.
|
| 69 |
+
repeated string metrics = 2;
|
| 70 |
+
}
|
| 71 |
+
|
| 72 |
+
// Billing configurations for sending metrics to the consumer project.
|
| 73 |
+
// There can be multiple consumer destinations per service, each one must have
|
| 74 |
+
// a different monitored resource type. A metric can be used in at most
|
| 75 |
+
// one consumer destination.
|
| 76 |
+
repeated BillingDestination consumer_destinations = 8;
|
| 77 |
+
}
|
.venv/lib/python3.11/site-packages/google/api/billing_pb2.py
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# -*- coding: utf-8 -*-
|
| 2 |
+
|
| 3 |
+
# Copyright 2024 Google LLC
|
| 4 |
+
#
|
| 5 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 6 |
+
# you may not use this file except in compliance with the License.
|
| 7 |
+
# You may obtain a copy of the License at
|
| 8 |
+
#
|
| 9 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 10 |
+
#
|
| 11 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 12 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 13 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 14 |
+
# See the License for the specific language governing permissions and
|
| 15 |
+
# limitations under the License.
|
| 16 |
+
|
| 17 |
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
| 18 |
+
# source: google/api/billing.proto
|
| 19 |
+
"""Generated protocol buffer code."""
|
| 20 |
+
from google.protobuf import descriptor as _descriptor
|
| 21 |
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
| 22 |
+
from google.protobuf import symbol_database as _symbol_database
|
| 23 |
+
from google.protobuf.internal import builder as _builder
|
| 24 |
+
|
| 25 |
+
# @@protoc_insertion_point(imports)
|
| 26 |
+
|
| 27 |
+
_sym_db = _symbol_database.Default()
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
| 31 |
+
b'\n\x18google/api/billing.proto\x12\ngoogle.api"\x93\x01\n\x07\x42illing\x12\x45\n\x15\x63onsumer_destinations\x18\x08 \x03(\x0b\x32&.google.api.Billing.BillingDestination\x1a\x41\n\x12\x42illingDestination\x12\x1a\n\x12monitored_resource\x18\x01 \x01(\t\x12\x0f\n\x07metrics\x18\x02 \x03(\tBn\n\x0e\x63om.google.apiB\x0c\x42illingProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xa2\x02\x04GAPIb\x06proto3'
|
| 32 |
+
)
|
| 33 |
+
|
| 34 |
+
_globals = globals()
|
| 35 |
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
| 36 |
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "google.api.billing_pb2", _globals)
|
| 37 |
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
| 38 |
+
DESCRIPTOR._options = None
|
| 39 |
+
DESCRIPTOR._serialized_options = b"\n\016com.google.apiB\014BillingProtoP\001ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\242\002\004GAPI"
|
| 40 |
+
_globals["_BILLING"]._serialized_start = 41
|
| 41 |
+
_globals["_BILLING"]._serialized_end = 188
|
| 42 |
+
_globals["_BILLING_BILLINGDESTINATION"]._serialized_start = 123
|
| 43 |
+
_globals["_BILLING_BILLINGDESTINATION"]._serialized_end = 188
|
| 44 |
+
# @@protoc_insertion_point(module_scope)
|
.venv/lib/python3.11/site-packages/google/api/client_pb2.py
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# -*- coding: utf-8 -*-
|
| 2 |
+
|
| 3 |
+
# Copyright 2024 Google LLC
|
| 4 |
+
#
|
| 5 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 6 |
+
# you may not use this file except in compliance with the License.
|
| 7 |
+
# You may obtain a copy of the License at
|
| 8 |
+
#
|
| 9 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 10 |
+
#
|
| 11 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 12 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 13 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 14 |
+
# See the License for the specific language governing permissions and
|
| 15 |
+
# limitations under the License.
|
| 16 |
+
|
| 17 |
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
| 18 |
+
# source: google/api/client.proto
|
| 19 |
+
"""Generated protocol buffer code."""
|
| 20 |
+
from google.protobuf import descriptor as _descriptor
|
| 21 |
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
| 22 |
+
from google.protobuf import symbol_database as _symbol_database
|
| 23 |
+
from google.protobuf.internal import builder as _builder
|
| 24 |
+
|
| 25 |
+
# @@protoc_insertion_point(imports)
|
| 26 |
+
|
| 27 |
+
_sym_db = _symbol_database.Default()
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
from google.api import launch_stage_pb2 as google_dot_api_dot_launch__stage__pb2
|
| 31 |
+
from google.protobuf import descriptor_pb2 as google_dot_protobuf_dot_descriptor__pb2
|
| 32 |
+
from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
| 36 |
+
b'\n\x17google/api/client.proto\x12\ngoogle.api\x1a\x1dgoogle/api/launch_stage.proto\x1a google/protobuf/descriptor.proto\x1a\x1egoogle/protobuf/duration.proto"\xbe\x01\n\x16\x43ommonLanguageSettings\x12\x1e\n\x12reference_docs_uri\x18\x01 \x01(\tB\x02\x18\x01\x12:\n\x0c\x64\x65stinations\x18\x02 \x03(\x0e\x32$.google.api.ClientLibraryDestination\x12H\n\x1aselective_gapic_generation\x18\x03 \x01(\x0b\x32$.google.api.SelectiveGapicGeneration"\xfb\x03\n\x15\x43lientLibrarySettings\x12\x0f\n\x07version\x18\x01 \x01(\t\x12-\n\x0claunch_stage\x18\x02 \x01(\x0e\x32\x17.google.api.LaunchStage\x12\x1a\n\x12rest_numeric_enums\x18\x03 \x01(\x08\x12/\n\rjava_settings\x18\x15 \x01(\x0b\x32\x18.google.api.JavaSettings\x12-\n\x0c\x63pp_settings\x18\x16 \x01(\x0b\x32\x17.google.api.CppSettings\x12-\n\x0cphp_settings\x18\x17 \x01(\x0b\x32\x17.google.api.PhpSettings\x12\x33\n\x0fpython_settings\x18\x18 \x01(\x0b\x32\x1a.google.api.PythonSettings\x12/\n\rnode_settings\x18\x19 \x01(\x0b\x32\x18.google.api.NodeSettings\x12\x33\n\x0f\x64otnet_settings\x18\x1a \x01(\x0b\x32\x1a.google.api.DotnetSettings\x12/\n\rruby_settings\x18\x1b \x01(\x0b\x32\x18.google.api.RubySettings\x12+\n\x0bgo_settings\x18\x1c \x01(\x0b\x32\x16.google.api.GoSettings"\xa8\x03\n\nPublishing\x12\x33\n\x0fmethod_settings\x18\x02 \x03(\x0b\x32\x1a.google.api.MethodSettings\x12\x15\n\rnew_issue_uri\x18\x65 \x01(\t\x12\x19\n\x11\x64ocumentation_uri\x18\x66 \x01(\t\x12\x16\n\x0e\x61pi_short_name\x18g \x01(\t\x12\x14\n\x0cgithub_label\x18h \x01(\t\x12\x1e\n\x16\x63odeowner_github_teams\x18i \x03(\t\x12\x16\n\x0e\x64oc_tag_prefix\x18j \x01(\t\x12;\n\x0corganization\x18k \x01(\x0e\x32%.google.api.ClientLibraryOrganization\x12;\n\x10library_settings\x18m \x03(\x0b\x32!.google.api.ClientLibrarySettings\x12)\n!proto_reference_documentation_uri\x18n \x01(\t\x12(\n rest_reference_documentation_uri\x18o \x01(\t"\xe3\x01\n\x0cJavaSettings\x12\x17\n\x0flibrary_package\x18\x01 \x01(\t\x12L\n\x13service_class_names\x18\x02 \x03(\x0b\x32/.google.api.JavaSettings.ServiceClassNamesEntry\x12\x32\n\x06\x63ommon\x18\x03 \x01(\x0b\x32".google.api.CommonLanguageSettings\x1a\x38\n\x16ServiceClassNamesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"A\n\x0b\x43ppSettings\x12\x32\n\x06\x63ommon\x18\x01 \x01(\x0b\x32".google.api.CommonLanguageSettings"A\n\x0bPhpSettings\x12\x32\n\x06\x63ommon\x18\x01 \x01(\x0b\x32".google.api.CommonLanguageSettings"\xf4\x01\n\x0ePythonSettings\x12\x32\n\x06\x63ommon\x18\x01 \x01(\x0b\x32".google.api.CommonLanguageSettings\x12N\n\x15\x65xperimental_features\x18\x02 \x01(\x0b\x32/.google.api.PythonSettings.ExperimentalFeatures\x1a^\n\x14\x45xperimentalFeatures\x12\x1d\n\x15rest_async_io_enabled\x18\x01 \x01(\x08\x12\'\n\x1fprotobuf_pythonic_types_enabled\x18\x02 \x01(\x08"B\n\x0cNodeSettings\x12\x32\n\x06\x63ommon\x18\x01 \x01(\x0b\x32".google.api.CommonLanguageSettings"\xaa\x03\n\x0e\x44otnetSettings\x12\x32\n\x06\x63ommon\x18\x01 \x01(\x0b\x32".google.api.CommonLanguageSettings\x12I\n\x10renamed_services\x18\x02 \x03(\x0b\x32/.google.api.DotnetSettings.RenamedServicesEntry\x12K\n\x11renamed_resources\x18\x03 \x03(\x0b\x32\x30.google.api.DotnetSettings.RenamedResourcesEntry\x12\x19\n\x11ignored_resources\x18\x04 \x03(\t\x12 \n\x18\x66orced_namespace_aliases\x18\x05 \x03(\t\x12\x1e\n\x16handwritten_signatures\x18\x06 \x03(\t\x1a\x36\n\x14RenamedServicesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x37\n\x15RenamedResourcesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"B\n\x0cRubySettings\x12\x32\n\x06\x63ommon\x18\x01 \x01(\x0b\x32".google.api.CommonLanguageSettings"@\n\nGoSettings\x12\x32\n\x06\x63ommon\x18\x01 \x01(\x0b\x32".google.api.CommonLanguageSettings"\xcf\x02\n\x0eMethodSettings\x12\x10\n\x08selector\x18\x01 \x01(\t\x12<\n\x0clong_running\x18\x02 \x01(\x0b\x32&.google.api.MethodSettings.LongRunning\x12\x1d\n\x15\x61uto_populated_fields\x18\x03 \x03(\t\x1a\xcd\x01\n\x0bLongRunning\x12\x35\n\x12initial_poll_delay\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x1d\n\x15poll_delay_multiplier\x18\x02 \x01(\x02\x12\x31\n\x0emax_poll_delay\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x35\n\x12total_poll_timeout\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration"+\n\x18SelectiveGapicGeneration\x12\x0f\n\x07methods\x18\x01 \x03(\t*\xa3\x01\n\x19\x43lientLibraryOrganization\x12+\n\'CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED\x10\x00\x12\t\n\x05\x43LOUD\x10\x01\x12\x07\n\x03\x41\x44S\x10\x02\x12\n\n\x06PHOTOS\x10\x03\x12\x0f\n\x0bSTREET_VIEW\x10\x04\x12\x0c\n\x08SHOPPING\x10\x05\x12\x07\n\x03GEO\x10\x06\x12\x11\n\rGENERATIVE_AI\x10\x07*g\n\x18\x43lientLibraryDestination\x12*\n&CLIENT_LIBRARY_DESTINATION_UNSPECIFIED\x10\x00\x12\n\n\x06GITHUB\x10\n\x12\x13\n\x0fPACKAGE_MANAGER\x10\x14:9\n\x10method_signature\x12\x1e.google.protobuf.MethodOptions\x18\x9b\x08 \x03(\t:6\n\x0c\x64\x65\x66\x61ult_host\x12\x1f.google.protobuf.ServiceOptions\x18\x99\x08 \x01(\t:6\n\x0coauth_scopes\x12\x1f.google.protobuf.ServiceOptions\x18\x9a\x08 \x01(\t:8\n\x0b\x61pi_version\x12\x1f.google.protobuf.ServiceOptions\x18\xc1\xba\xab\xfa\x01 \x01(\tBi\n\x0e\x63om.google.apiB\x0b\x43lientProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xa2\x02\x04GAPIb\x06proto3'
|
| 37 |
+
)
|
| 38 |
+
|
| 39 |
+
_globals = globals()
|
| 40 |
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
| 41 |
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "google.api.client_pb2", _globals)
|
| 42 |
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
| 43 |
+
DESCRIPTOR._options = None
|
| 44 |
+
DESCRIPTOR._serialized_options = b"\n\016com.google.apiB\013ClientProtoP\001ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\242\002\004GAPI"
|
| 45 |
+
_COMMONLANGUAGESETTINGS.fields_by_name["reference_docs_uri"]._options = None
|
| 46 |
+
_COMMONLANGUAGESETTINGS.fields_by_name[
|
| 47 |
+
"reference_docs_uri"
|
| 48 |
+
]._serialized_options = b"\030\001"
|
| 49 |
+
_JAVASETTINGS_SERVICECLASSNAMESENTRY._options = None
|
| 50 |
+
_JAVASETTINGS_SERVICECLASSNAMESENTRY._serialized_options = b"8\001"
|
| 51 |
+
_DOTNETSETTINGS_RENAMEDSERVICESENTRY._options = None
|
| 52 |
+
_DOTNETSETTINGS_RENAMEDSERVICESENTRY._serialized_options = b"8\001"
|
| 53 |
+
_DOTNETSETTINGS_RENAMEDRESOURCESENTRY._options = None
|
| 54 |
+
_DOTNETSETTINGS_RENAMEDRESOURCESENTRY._serialized_options = b"8\001"
|
| 55 |
+
_globals["_CLIENTLIBRARYORGANIZATION"]._serialized_start = 2892
|
| 56 |
+
_globals["_CLIENTLIBRARYORGANIZATION"]._serialized_end = 3055
|
| 57 |
+
_globals["_CLIENTLIBRARYDESTINATION"]._serialized_start = 3057
|
| 58 |
+
_globals["_CLIENTLIBRARYDESTINATION"]._serialized_end = 3160
|
| 59 |
+
_globals["_COMMONLANGUAGESETTINGS"]._serialized_start = 137
|
| 60 |
+
_globals["_COMMONLANGUAGESETTINGS"]._serialized_end = 327
|
| 61 |
+
_globals["_CLIENTLIBRARYSETTINGS"]._serialized_start = 330
|
| 62 |
+
_globals["_CLIENTLIBRARYSETTINGS"]._serialized_end = 837
|
| 63 |
+
_globals["_PUBLISHING"]._serialized_start = 840
|
| 64 |
+
_globals["_PUBLISHING"]._serialized_end = 1264
|
| 65 |
+
_globals["_JAVASETTINGS"]._serialized_start = 1267
|
| 66 |
+
_globals["_JAVASETTINGS"]._serialized_end = 1494
|
| 67 |
+
_globals["_JAVASETTINGS_SERVICECLASSNAMESENTRY"]._serialized_start = 1438
|
| 68 |
+
_globals["_JAVASETTINGS_SERVICECLASSNAMESENTRY"]._serialized_end = 1494
|
| 69 |
+
_globals["_CPPSETTINGS"]._serialized_start = 1496
|
| 70 |
+
_globals["_CPPSETTINGS"]._serialized_end = 1561
|
| 71 |
+
_globals["_PHPSETTINGS"]._serialized_start = 1563
|
| 72 |
+
_globals["_PHPSETTINGS"]._serialized_end = 1628
|
| 73 |
+
_globals["_PYTHONSETTINGS"]._serialized_start = 1631
|
| 74 |
+
_globals["_PYTHONSETTINGS"]._serialized_end = 1875
|
| 75 |
+
_globals["_PYTHONSETTINGS_EXPERIMENTALFEATURES"]._serialized_start = 1781
|
| 76 |
+
_globals["_PYTHONSETTINGS_EXPERIMENTALFEATURES"]._serialized_end = 1875
|
| 77 |
+
_globals["_NODESETTINGS"]._serialized_start = 1877
|
| 78 |
+
_globals["_NODESETTINGS"]._serialized_end = 1943
|
| 79 |
+
_globals["_DOTNETSETTINGS"]._serialized_start = 1946
|
| 80 |
+
_globals["_DOTNETSETTINGS"]._serialized_end = 2372
|
| 81 |
+
_globals["_DOTNETSETTINGS_RENAMEDSERVICESENTRY"]._serialized_start = 2261
|
| 82 |
+
_globals["_DOTNETSETTINGS_RENAMEDSERVICESENTRY"]._serialized_end = 2315
|
| 83 |
+
_globals["_DOTNETSETTINGS_RENAMEDRESOURCESENTRY"]._serialized_start = 2317
|
| 84 |
+
_globals["_DOTNETSETTINGS_RENAMEDRESOURCESENTRY"]._serialized_end = 2372
|
| 85 |
+
_globals["_RUBYSETTINGS"]._serialized_start = 2374
|
| 86 |
+
_globals["_RUBYSETTINGS"]._serialized_end = 2440
|
| 87 |
+
_globals["_GOSETTINGS"]._serialized_start = 2442
|
| 88 |
+
_globals["_GOSETTINGS"]._serialized_end = 2506
|
| 89 |
+
_globals["_METHODSETTINGS"]._serialized_start = 2509
|
| 90 |
+
_globals["_METHODSETTINGS"]._serialized_end = 2844
|
| 91 |
+
_globals["_METHODSETTINGS_LONGRUNNING"]._serialized_start = 2639
|
| 92 |
+
_globals["_METHODSETTINGS_LONGRUNNING"]._serialized_end = 2844
|
| 93 |
+
_globals["_SELECTIVEGAPICGENERATION"]._serialized_start = 2846
|
| 94 |
+
_globals["_SELECTIVEGAPICGENERATION"]._serialized_end = 2889
|
| 95 |
+
# @@protoc_insertion_point(module_scope)
|
.venv/lib/python3.11/site-packages/google/api/config_change.proto
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2024 Google LLC
|
| 2 |
+
//
|
| 3 |
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
// you may not use this file except in compliance with the License.
|
| 5 |
+
// You may obtain a copy of the License at
|
| 6 |
+
//
|
| 7 |
+
// http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
//
|
| 9 |
+
// Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
// See the License for the specific language governing permissions and
|
| 13 |
+
// limitations under the License.
|
| 14 |
+
|
| 15 |
+
syntax = "proto3";
|
| 16 |
+
|
| 17 |
+
package google.api;
|
| 18 |
+
|
| 19 |
+
option go_package = "google.golang.org/genproto/googleapis/api/configchange;configchange";
|
| 20 |
+
option java_multiple_files = true;
|
| 21 |
+
option java_outer_classname = "ConfigChangeProto";
|
| 22 |
+
option java_package = "com.google.api";
|
| 23 |
+
option objc_class_prefix = "GAPI";
|
| 24 |
+
|
| 25 |
+
// Output generated from semantically comparing two versions of a service
|
| 26 |
+
// configuration.
|
| 27 |
+
//
|
| 28 |
+
// Includes detailed information about a field that have changed with
|
| 29 |
+
// applicable advice about potential consequences for the change, such as
|
| 30 |
+
// backwards-incompatibility.
|
| 31 |
+
message ConfigChange {
|
| 32 |
+
// Object hierarchy path to the change, with levels separated by a '.'
|
| 33 |
+
// character. For repeated fields, an applicable unique identifier field is
|
| 34 |
+
// used for the index (usually selector, name, or id). For maps, the term
|
| 35 |
+
// 'key' is used. If the field has no unique identifier, the numeric index
|
| 36 |
+
// is used.
|
| 37 |
+
// Examples:
|
| 38 |
+
// - visibility.rules[selector=="google.LibraryService.ListBooks"].restriction
|
| 39 |
+
// - quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value
|
| 40 |
+
// - logging.producer_destinations[0]
|
| 41 |
+
string element = 1;
|
| 42 |
+
|
| 43 |
+
// Value of the changed object in the old Service configuration,
|
| 44 |
+
// in JSON format. This field will not be populated if ChangeType == ADDED.
|
| 45 |
+
string old_value = 2;
|
| 46 |
+
|
| 47 |
+
// Value of the changed object in the new Service configuration,
|
| 48 |
+
// in JSON format. This field will not be populated if ChangeType == REMOVED.
|
| 49 |
+
string new_value = 3;
|
| 50 |
+
|
| 51 |
+
// The type for this change, either ADDED, REMOVED, or MODIFIED.
|
| 52 |
+
ChangeType change_type = 4;
|
| 53 |
+
|
| 54 |
+
// Collection of advice provided for this change, useful for determining the
|
| 55 |
+
// possible impact of this change.
|
| 56 |
+
repeated Advice advices = 5;
|
| 57 |
+
}
|
| 58 |
+
|
| 59 |
+
// Generated advice about this change, used for providing more
|
| 60 |
+
// information about how a change will affect the existing service.
|
| 61 |
+
message Advice {
|
| 62 |
+
// Useful description for why this advice was applied and what actions should
|
| 63 |
+
// be taken to mitigate any implied risks.
|
| 64 |
+
string description = 2;
|
| 65 |
+
}
|
| 66 |
+
|
| 67 |
+
// Classifies set of possible modifications to an object in the service
|
| 68 |
+
// configuration.
|
| 69 |
+
enum ChangeType {
|
| 70 |
+
// No value was provided.
|
| 71 |
+
CHANGE_TYPE_UNSPECIFIED = 0;
|
| 72 |
+
|
| 73 |
+
// The changed object exists in the 'new' service configuration, but not
|
| 74 |
+
// in the 'old' service configuration.
|
| 75 |
+
ADDED = 1;
|
| 76 |
+
|
| 77 |
+
// The changed object exists in the 'old' service configuration, but not
|
| 78 |
+
// in the 'new' service configuration.
|
| 79 |
+
REMOVED = 2;
|
| 80 |
+
|
| 81 |
+
// The changed object exists in both service configurations, but its value
|
| 82 |
+
// is different.
|
| 83 |
+
MODIFIED = 3;
|
| 84 |
+
}
|
.venv/lib/python3.11/site-packages/google/api/config_change_pb2.py
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# -*- coding: utf-8 -*-
|
| 2 |
+
|
| 3 |
+
# Copyright 2024 Google LLC
|
| 4 |
+
#
|
| 5 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 6 |
+
# you may not use this file except in compliance with the License.
|
| 7 |
+
# You may obtain a copy of the License at
|
| 8 |
+
#
|
| 9 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 10 |
+
#
|
| 11 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 12 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 13 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 14 |
+
# See the License for the specific language governing permissions and
|
| 15 |
+
# limitations under the License.
|
| 16 |
+
|
| 17 |
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
| 18 |
+
# source: google/api/config_change.proto
|
| 19 |
+
"""Generated protocol buffer code."""
|
| 20 |
+
from google.protobuf import descriptor as _descriptor
|
| 21 |
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
| 22 |
+
from google.protobuf import symbol_database as _symbol_database
|
| 23 |
+
from google.protobuf.internal import builder as _builder
|
| 24 |
+
|
| 25 |
+
# @@protoc_insertion_point(imports)
|
| 26 |
+
|
| 27 |
+
_sym_db = _symbol_database.Default()
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
| 31 |
+
b'\n\x1egoogle/api/config_change.proto\x12\ngoogle.api"\x97\x01\n\x0c\x43onfigChange\x12\x0f\n\x07\x65lement\x18\x01 \x01(\t\x12\x11\n\told_value\x18\x02 \x01(\t\x12\x11\n\tnew_value\x18\x03 \x01(\t\x12+\n\x0b\x63hange_type\x18\x04 \x01(\x0e\x32\x16.google.api.ChangeType\x12#\n\x07\x61\x64vices\x18\x05 \x03(\x0b\x32\x12.google.api.Advice"\x1d\n\x06\x41\x64vice\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t*O\n\nChangeType\x12\x1b\n\x17\x43HANGE_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x41\x44\x44\x45\x44\x10\x01\x12\x0b\n\x07REMOVED\x10\x02\x12\x0c\n\x08MODIFIED\x10\x03\x42q\n\x0e\x63om.google.apiB\x11\x43onfigChangeProtoP\x01ZCgoogle.golang.org/genproto/googleapis/api/configchange;configchange\xa2\x02\x04GAPIb\x06proto3'
|
| 32 |
+
)
|
| 33 |
+
|
| 34 |
+
_globals = globals()
|
| 35 |
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
| 36 |
+
_builder.BuildTopDescriptorsAndMessages(
|
| 37 |
+
DESCRIPTOR, "google.api.config_change_pb2", _globals
|
| 38 |
+
)
|
| 39 |
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
| 40 |
+
DESCRIPTOR._options = None
|
| 41 |
+
DESCRIPTOR._serialized_options = b"\n\016com.google.apiB\021ConfigChangeProtoP\001ZCgoogle.golang.org/genproto/googleapis/api/configchange;configchange\242\002\004GAPI"
|
| 42 |
+
_globals["_CHANGETYPE"]._serialized_start = 231
|
| 43 |
+
_globals["_CHANGETYPE"]._serialized_end = 310
|
| 44 |
+
_globals["_CONFIGCHANGE"]._serialized_start = 47
|
| 45 |
+
_globals["_CONFIGCHANGE"]._serialized_end = 198
|
| 46 |
+
_globals["_ADVICE"]._serialized_start = 200
|
| 47 |
+
_globals["_ADVICE"]._serialized_end = 229
|
| 48 |
+
# @@protoc_insertion_point(module_scope)
|
.venv/lib/python3.11/site-packages/google/api/consumer.proto
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2024 Google LLC
|
| 2 |
+
//
|
| 3 |
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
// you may not use this file except in compliance with the License.
|
| 5 |
+
// You may obtain a copy of the License at
|
| 6 |
+
//
|
| 7 |
+
// http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
//
|
| 9 |
+
// Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
// See the License for the specific language governing permissions and
|
| 13 |
+
// limitations under the License.
|
| 14 |
+
|
| 15 |
+
syntax = "proto3";
|
| 16 |
+
|
| 17 |
+
package google.api;
|
| 18 |
+
|
| 19 |
+
option go_package = "google.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig";
|
| 20 |
+
option java_multiple_files = true;
|
| 21 |
+
option java_outer_classname = "ConsumerProto";
|
| 22 |
+
option java_package = "com.google.api";
|
| 23 |
+
|
| 24 |
+
// A descriptor for defining project properties for a service. One service may
|
| 25 |
+
// have many consumer projects, and the service may want to behave differently
|
| 26 |
+
// depending on some properties on the project. For example, a project may be
|
| 27 |
+
// associated with a school, or a business, or a government agency, a business
|
| 28 |
+
// type property on the project may affect how a service responds to the client.
|
| 29 |
+
// This descriptor defines which properties are allowed to be set on a project.
|
| 30 |
+
//
|
| 31 |
+
// Example:
|
| 32 |
+
//
|
| 33 |
+
// project_properties:
|
| 34 |
+
// properties:
|
| 35 |
+
// - name: NO_WATERMARK
|
| 36 |
+
// type: BOOL
|
| 37 |
+
// description: Allows usage of the API without watermarks.
|
| 38 |
+
// - name: EXTENDED_TILE_CACHE_PERIOD
|
| 39 |
+
// type: INT64
|
| 40 |
+
message ProjectProperties {
|
| 41 |
+
// List of per consumer project-specific properties.
|
| 42 |
+
repeated Property properties = 1;
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
// Defines project properties.
|
| 46 |
+
//
|
| 47 |
+
// API services can define properties that can be assigned to consumer projects
|
| 48 |
+
// so that backends can perform response customization without having to make
|
| 49 |
+
// additional calls or maintain additional storage. For example, Maps API
|
| 50 |
+
// defines properties that controls map tile cache period, or whether to embed a
|
| 51 |
+
// watermark in a result.
|
| 52 |
+
//
|
| 53 |
+
// These values can be set via API producer console. Only API providers can
|
| 54 |
+
// define and set these properties.
|
| 55 |
+
message Property {
|
| 56 |
+
// Supported data type of the property values
|
| 57 |
+
enum PropertyType {
|
| 58 |
+
// The type is unspecified, and will result in an error.
|
| 59 |
+
UNSPECIFIED = 0;
|
| 60 |
+
|
| 61 |
+
// The type is `int64`.
|
| 62 |
+
INT64 = 1;
|
| 63 |
+
|
| 64 |
+
// The type is `bool`.
|
| 65 |
+
BOOL = 2;
|
| 66 |
+
|
| 67 |
+
// The type is `string`.
|
| 68 |
+
STRING = 3;
|
| 69 |
+
|
| 70 |
+
// The type is 'double'.
|
| 71 |
+
DOUBLE = 4;
|
| 72 |
+
}
|
| 73 |
+
|
| 74 |
+
// The name of the property (a.k.a key).
|
| 75 |
+
string name = 1;
|
| 76 |
+
|
| 77 |
+
// The type of this property.
|
| 78 |
+
PropertyType type = 2;
|
| 79 |
+
|
| 80 |
+
// The description of the property
|
| 81 |
+
string description = 3;
|
| 82 |
+
}
|
.venv/lib/python3.11/site-packages/google/api/consumer_pb2.py
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# -*- coding: utf-8 -*-
|
| 2 |
+
|
| 3 |
+
# Copyright 2024 Google LLC
|
| 4 |
+
#
|
| 5 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 6 |
+
# you may not use this file except in compliance with the License.
|
| 7 |
+
# You may obtain a copy of the License at
|
| 8 |
+
#
|
| 9 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 10 |
+
#
|
| 11 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 12 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 13 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 14 |
+
# See the License for the specific language governing permissions and
|
| 15 |
+
# limitations under the License.
|
| 16 |
+
|
| 17 |
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
| 18 |
+
# source: google/api/consumer.proto
|
| 19 |
+
"""Generated protocol buffer code."""
|
| 20 |
+
from google.protobuf import descriptor as _descriptor
|
| 21 |
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
| 22 |
+
from google.protobuf import symbol_database as _symbol_database
|
| 23 |
+
from google.protobuf.internal import builder as _builder
|
| 24 |
+
|
| 25 |
+
# @@protoc_insertion_point(imports)
|
| 26 |
+
|
| 27 |
+
_sym_db = _symbol_database.Default()
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
| 31 |
+
b'\n\x19google/api/consumer.proto\x12\ngoogle.api"=\n\x11ProjectProperties\x12(\n\nproperties\x18\x01 \x03(\x0b\x32\x14.google.api.Property"\xac\x01\n\x08Property\x12\x0c\n\x04name\x18\x01 \x01(\t\x12/\n\x04type\x18\x02 \x01(\x0e\x32!.google.api.Property.PropertyType\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t"L\n\x0cPropertyType\x12\x0f\n\x0bUNSPECIFIED\x10\x00\x12\t\n\x05INT64\x10\x01\x12\x08\n\x04\x42OOL\x10\x02\x12\n\n\x06STRING\x10\x03\x12\n\n\x06\x44OUBLE\x10\x04\x42h\n\x0e\x63om.google.apiB\rConsumerProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfigb\x06proto3'
|
| 32 |
+
)
|
| 33 |
+
|
| 34 |
+
_globals = globals()
|
| 35 |
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
| 36 |
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "google.api.consumer_pb2", _globals)
|
| 37 |
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
| 38 |
+
DESCRIPTOR._options = None
|
| 39 |
+
DESCRIPTOR._serialized_options = b"\n\016com.google.apiB\rConsumerProtoP\001ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig"
|
| 40 |
+
_globals["_PROJECTPROPERTIES"]._serialized_start = 41
|
| 41 |
+
_globals["_PROJECTPROPERTIES"]._serialized_end = 102
|
| 42 |
+
_globals["_PROPERTY"]._serialized_start = 105
|
| 43 |
+
_globals["_PROPERTY"]._serialized_end = 277
|
| 44 |
+
_globals["_PROPERTY_PROPERTYTYPE"]._serialized_start = 201
|
| 45 |
+
_globals["_PROPERTY_PROPERTYTYPE"]._serialized_end = 277
|
| 46 |
+
# @@protoc_insertion_point(module_scope)
|
.venv/lib/python3.11/site-packages/google/api/context.proto
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2024 Google LLC
|
| 2 |
+
//
|
| 3 |
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
// you may not use this file except in compliance with the License.
|
| 5 |
+
// You may obtain a copy of the License at
|
| 6 |
+
//
|
| 7 |
+
// http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
//
|
| 9 |
+
// Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
// See the License for the specific language governing permissions and
|
| 13 |
+
// limitations under the License.
|
| 14 |
+
|
| 15 |
+
syntax = "proto3";
|
| 16 |
+
|
| 17 |
+
package google.api;
|
| 18 |
+
|
| 19 |
+
option go_package = "google.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig";
|
| 20 |
+
option java_multiple_files = true;
|
| 21 |
+
option java_outer_classname = "ContextProto";
|
| 22 |
+
option java_package = "com.google.api";
|
| 23 |
+
option objc_class_prefix = "GAPI";
|
| 24 |
+
|
| 25 |
+
// `Context` defines which contexts an API requests.
|
| 26 |
+
//
|
| 27 |
+
// Example:
|
| 28 |
+
//
|
| 29 |
+
// context:
|
| 30 |
+
// rules:
|
| 31 |
+
// - selector: "*"
|
| 32 |
+
// requested:
|
| 33 |
+
// - google.rpc.context.ProjectContext
|
| 34 |
+
// - google.rpc.context.OriginContext
|
| 35 |
+
//
|
| 36 |
+
// The above specifies that all methods in the API request
|
| 37 |
+
// `google.rpc.context.ProjectContext` and
|
| 38 |
+
// `google.rpc.context.OriginContext`.
|
| 39 |
+
//
|
| 40 |
+
// Available context types are defined in package
|
| 41 |
+
// `google.rpc.context`.
|
| 42 |
+
//
|
| 43 |
+
// This also provides mechanism to allowlist any protobuf message extension that
|
| 44 |
+
// can be sent in grpc metadata using “x-goog-ext-<extension_id>-bin” and
|
| 45 |
+
// “x-goog-ext-<extension_id>-jspb” format. For example, list any service
|
| 46 |
+
// specific protobuf types that can appear in grpc metadata as follows in your
|
| 47 |
+
// yaml file:
|
| 48 |
+
//
|
| 49 |
+
// Example:
|
| 50 |
+
//
|
| 51 |
+
// context:
|
| 52 |
+
// rules:
|
| 53 |
+
// - selector: "google.example.library.v1.LibraryService.CreateBook"
|
| 54 |
+
// allowed_request_extensions:
|
| 55 |
+
// - google.foo.v1.NewExtension
|
| 56 |
+
// allowed_response_extensions:
|
| 57 |
+
// - google.foo.v1.NewExtension
|
| 58 |
+
//
|
| 59 |
+
// You can also specify extension ID instead of fully qualified extension name
|
| 60 |
+
// here.
|
| 61 |
+
message Context {
|
| 62 |
+
// A list of RPC context rules that apply to individual API methods.
|
| 63 |
+
//
|
| 64 |
+
// **NOTE:** All service configuration rules follow "last one wins" order.
|
| 65 |
+
repeated ContextRule rules = 1;
|
| 66 |
+
}
|
| 67 |
+
|
| 68 |
+
// A context rule provides information about the context for an individual API
|
| 69 |
+
// element.
|
| 70 |
+
message ContextRule {
|
| 71 |
+
// Selects the methods to which this rule applies.
|
| 72 |
+
//
|
| 73 |
+
// Refer to [selector][google.api.DocumentationRule.selector] for syntax
|
| 74 |
+
// details.
|
| 75 |
+
string selector = 1;
|
| 76 |
+
|
| 77 |
+
// A list of full type names of requested contexts, only the requested context
|
| 78 |
+
// will be made available to the backend.
|
| 79 |
+
repeated string requested = 2;
|
| 80 |
+
|
| 81 |
+
// A list of full type names of provided contexts. It is used to support
|
| 82 |
+
// propagating HTTP headers and ETags from the response extension.
|
| 83 |
+
repeated string provided = 3;
|
| 84 |
+
|
| 85 |
+
// A list of full type names or extension IDs of extensions allowed in grpc
|
| 86 |
+
// side channel from client to backend.
|
| 87 |
+
repeated string allowed_request_extensions = 4;
|
| 88 |
+
|
| 89 |
+
// A list of full type names or extension IDs of extensions allowed in grpc
|
| 90 |
+
// side channel from backend to client.
|
| 91 |
+
repeated string allowed_response_extensions = 5;
|
| 92 |
+
}
|
.venv/lib/python3.11/site-packages/google/api/context_pb2.py
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# -*- coding: utf-8 -*-
|
| 2 |
+
|
| 3 |
+
# Copyright 2024 Google LLC
|
| 4 |
+
#
|
| 5 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 6 |
+
# you may not use this file except in compliance with the License.
|
| 7 |
+
# You may obtain a copy of the License at
|
| 8 |
+
#
|
| 9 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 10 |
+
#
|
| 11 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 12 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 13 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 14 |
+
# See the License for the specific language governing permissions and
|
| 15 |
+
# limitations under the License.
|
| 16 |
+
|
| 17 |
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
| 18 |
+
# source: google/api/context.proto
|
| 19 |
+
"""Generated protocol buffer code."""
|
| 20 |
+
from google.protobuf import descriptor as _descriptor
|
| 21 |
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
| 22 |
+
from google.protobuf import symbol_database as _symbol_database
|
| 23 |
+
from google.protobuf.internal import builder as _builder
|
| 24 |
+
|
| 25 |
+
# @@protoc_insertion_point(imports)
|
| 26 |
+
|
| 27 |
+
_sym_db = _symbol_database.Default()
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
| 31 |
+
b'\n\x18google/api/context.proto\x12\ngoogle.api"1\n\x07\x43ontext\x12&\n\x05rules\x18\x01 \x03(\x0b\x32\x17.google.api.ContextRule"\x8d\x01\n\x0b\x43ontextRule\x12\x10\n\x08selector\x18\x01 \x01(\t\x12\x11\n\trequested\x18\x02 \x03(\t\x12\x10\n\x08provided\x18\x03 \x03(\t\x12"\n\x1a\x61llowed_request_extensions\x18\x04 \x03(\t\x12#\n\x1b\x61llowed_response_extensions\x18\x05 \x03(\tBn\n\x0e\x63om.google.apiB\x0c\x43ontextProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xa2\x02\x04GAPIb\x06proto3'
|
| 32 |
+
)
|
| 33 |
+
|
| 34 |
+
_globals = globals()
|
| 35 |
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
| 36 |
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "google.api.context_pb2", _globals)
|
| 37 |
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
| 38 |
+
DESCRIPTOR._options = None
|
| 39 |
+
DESCRIPTOR._serialized_options = b"\n\016com.google.apiB\014ContextProtoP\001ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\242\002\004GAPI"
|
| 40 |
+
_globals["_CONTEXT"]._serialized_start = 40
|
| 41 |
+
_globals["_CONTEXT"]._serialized_end = 89
|
| 42 |
+
_globals["_CONTEXTRULE"]._serialized_start = 92
|
| 43 |
+
_globals["_CONTEXTRULE"]._serialized_end = 233
|
| 44 |
+
# @@protoc_insertion_point(module_scope)
|
.venv/lib/python3.11/site-packages/google/api/control.proto
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2024 Google LLC
|
| 2 |
+
//
|
| 3 |
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
// you may not use this file except in compliance with the License.
|
| 5 |
+
// You may obtain a copy of the License at
|
| 6 |
+
//
|
| 7 |
+
// http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
//
|
| 9 |
+
// Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
// See the License for the specific language governing permissions and
|
| 13 |
+
// limitations under the License.
|
| 14 |
+
|
| 15 |
+
syntax = "proto3";
|
| 16 |
+
|
| 17 |
+
package google.api;
|
| 18 |
+
|
| 19 |
+
import "google/api/policy.proto";
|
| 20 |
+
|
| 21 |
+
option go_package = "google.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig";
|
| 22 |
+
option java_multiple_files = true;
|
| 23 |
+
option java_outer_classname = "ControlProto";
|
| 24 |
+
option java_package = "com.google.api";
|
| 25 |
+
option objc_class_prefix = "GAPI";
|
| 26 |
+
|
| 27 |
+
// Selects and configures the service controller used by the service.
|
| 28 |
+
//
|
| 29 |
+
// Example:
|
| 30 |
+
//
|
| 31 |
+
// control:
|
| 32 |
+
// environment: servicecontrol.googleapis.com
|
| 33 |
+
message Control {
|
| 34 |
+
// The service controller environment to use. If empty, no control plane
|
| 35 |
+
// feature (like quota and billing) will be enabled. The recommended value for
|
| 36 |
+
// most services is servicecontrol.googleapis.com
|
| 37 |
+
string environment = 1;
|
| 38 |
+
|
| 39 |
+
// Defines policies applying to the API methods of the service.
|
| 40 |
+
repeated MethodPolicy method_policies = 4;
|
| 41 |
+
}
|
.venv/lib/python3.11/site-packages/google/api/control_pb2.py
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# -*- coding: utf-8 -*-
|
| 2 |
+
|
| 3 |
+
# Copyright 2024 Google LLC
|
| 4 |
+
#
|
| 5 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 6 |
+
# you may not use this file except in compliance with the License.
|
| 7 |
+
# You may obtain a copy of the License at
|
| 8 |
+
#
|
| 9 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 10 |
+
#
|
| 11 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 12 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 13 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 14 |
+
# See the License for the specific language governing permissions and
|
| 15 |
+
# limitations under the License.
|
| 16 |
+
|
| 17 |
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
| 18 |
+
# source: google/api/control.proto
|
| 19 |
+
"""Generated protocol buffer code."""
|
| 20 |
+
from google.protobuf import descriptor as _descriptor
|
| 21 |
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
| 22 |
+
from google.protobuf import symbol_database as _symbol_database
|
| 23 |
+
from google.protobuf.internal import builder as _builder
|
| 24 |
+
|
| 25 |
+
# @@protoc_insertion_point(imports)
|
| 26 |
+
|
| 27 |
+
_sym_db = _symbol_database.Default()
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
from google.api import policy_pb2 as google_dot_api_dot_policy__pb2
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
| 34 |
+
b'\n\x18google/api/control.proto\x12\ngoogle.api\x1a\x17google/api/policy.proto"Q\n\x07\x43ontrol\x12\x13\n\x0b\x65nvironment\x18\x01 \x01(\t\x12\x31\n\x0fmethod_policies\x18\x04 \x03(\x0b\x32\x18.google.api.MethodPolicyBn\n\x0e\x63om.google.apiB\x0c\x43ontrolProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xa2\x02\x04GAPIb\x06proto3'
|
| 35 |
+
)
|
| 36 |
+
|
| 37 |
+
_globals = globals()
|
| 38 |
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
| 39 |
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "google.api.control_pb2", _globals)
|
| 40 |
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
| 41 |
+
DESCRIPTOR._options = None
|
| 42 |
+
DESCRIPTOR._serialized_options = b"\n\016com.google.apiB\014ControlProtoP\001ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\242\002\004GAPI"
|
| 43 |
+
_globals["_CONTROL"]._serialized_start = 65
|
| 44 |
+
_globals["_CONTROL"]._serialized_end = 146
|
| 45 |
+
# @@protoc_insertion_point(module_scope)
|
.venv/lib/python3.11/site-packages/google/api/distribution.proto
ADDED
|
@@ -0,0 +1,213 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2024 Google LLC
|
| 2 |
+
//
|
| 3 |
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
// you may not use this file except in compliance with the License.
|
| 5 |
+
// You may obtain a copy of the License at
|
| 6 |
+
//
|
| 7 |
+
// http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
//
|
| 9 |
+
// Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
// See the License for the specific language governing permissions and
|
| 13 |
+
// limitations under the License.
|
| 14 |
+
|
| 15 |
+
syntax = "proto3";
|
| 16 |
+
|
| 17 |
+
package google.api;
|
| 18 |
+
|
| 19 |
+
import "google/protobuf/any.proto";
|
| 20 |
+
import "google/protobuf/timestamp.proto";
|
| 21 |
+
|
| 22 |
+
option go_package = "google.golang.org/genproto/googleapis/api/distribution;distribution";
|
| 23 |
+
option java_multiple_files = true;
|
| 24 |
+
option java_outer_classname = "DistributionProto";
|
| 25 |
+
option java_package = "com.google.api";
|
| 26 |
+
option objc_class_prefix = "GAPI";
|
| 27 |
+
|
| 28 |
+
// `Distribution` contains summary statistics for a population of values. It
|
| 29 |
+
// optionally contains a histogram representing the distribution of those values
|
| 30 |
+
// across a set of buckets.
|
| 31 |
+
//
|
| 32 |
+
// The summary statistics are the count, mean, sum of the squared deviation from
|
| 33 |
+
// the mean, the minimum, and the maximum of the set of population of values.
|
| 34 |
+
// The histogram is based on a sequence of buckets and gives a count of values
|
| 35 |
+
// that fall into each bucket. The boundaries of the buckets are given either
|
| 36 |
+
// explicitly or by formulas for buckets of fixed or exponentially increasing
|
| 37 |
+
// widths.
|
| 38 |
+
//
|
| 39 |
+
// Although it is not forbidden, it is generally a bad idea to include
|
| 40 |
+
// non-finite values (infinities or NaNs) in the population of values, as this
|
| 41 |
+
// will render the `mean` and `sum_of_squared_deviation` fields meaningless.
|
| 42 |
+
message Distribution {
|
| 43 |
+
// The range of the population values.
|
| 44 |
+
message Range {
|
| 45 |
+
// The minimum of the population values.
|
| 46 |
+
double min = 1;
|
| 47 |
+
|
| 48 |
+
// The maximum of the population values.
|
| 49 |
+
double max = 2;
|
| 50 |
+
}
|
| 51 |
+
|
| 52 |
+
// `BucketOptions` describes the bucket boundaries used to create a histogram
|
| 53 |
+
// for the distribution. The buckets can be in a linear sequence, an
|
| 54 |
+
// exponential sequence, or each bucket can be specified explicitly.
|
| 55 |
+
// `BucketOptions` does not include the number of values in each bucket.
|
| 56 |
+
//
|
| 57 |
+
// A bucket has an inclusive lower bound and exclusive upper bound for the
|
| 58 |
+
// values that are counted for that bucket. The upper bound of a bucket must
|
| 59 |
+
// be strictly greater than the lower bound. The sequence of N buckets for a
|
| 60 |
+
// distribution consists of an underflow bucket (number 0), zero or more
|
| 61 |
+
// finite buckets (number 1 through N - 2) and an overflow bucket (number N -
|
| 62 |
+
// 1). The buckets are contiguous: the lower bound of bucket i (i > 0) is the
|
| 63 |
+
// same as the upper bound of bucket i - 1. The buckets span the whole range
|
| 64 |
+
// of finite values: lower bound of the underflow bucket is -infinity and the
|
| 65 |
+
// upper bound of the overflow bucket is +infinity. The finite buckets are
|
| 66 |
+
// so-called because both bounds are finite.
|
| 67 |
+
message BucketOptions {
|
| 68 |
+
// Specifies a linear sequence of buckets that all have the same width
|
| 69 |
+
// (except overflow and underflow). Each bucket represents a constant
|
| 70 |
+
// absolute uncertainty on the specific value in the bucket.
|
| 71 |
+
//
|
| 72 |
+
// There are `num_finite_buckets + 2` (= N) buckets. Bucket `i` has the
|
| 73 |
+
// following boundaries:
|
| 74 |
+
//
|
| 75 |
+
// Upper bound (0 <= i < N-1): offset + (width * i).
|
| 76 |
+
//
|
| 77 |
+
// Lower bound (1 <= i < N): offset + (width * (i - 1)).
|
| 78 |
+
message Linear {
|
| 79 |
+
// Must be greater than 0.
|
| 80 |
+
int32 num_finite_buckets = 1;
|
| 81 |
+
|
| 82 |
+
// Must be greater than 0.
|
| 83 |
+
double width = 2;
|
| 84 |
+
|
| 85 |
+
// Lower bound of the first bucket.
|
| 86 |
+
double offset = 3;
|
| 87 |
+
}
|
| 88 |
+
|
| 89 |
+
// Specifies an exponential sequence of buckets that have a width that is
|
| 90 |
+
// proportional to the value of the lower bound. Each bucket represents a
|
| 91 |
+
// constant relative uncertainty on a specific value in the bucket.
|
| 92 |
+
//
|
| 93 |
+
// There are `num_finite_buckets + 2` (= N) buckets. Bucket `i` has the
|
| 94 |
+
// following boundaries:
|
| 95 |
+
//
|
| 96 |
+
// Upper bound (0 <= i < N-1): scale * (growth_factor ^ i).
|
| 97 |
+
//
|
| 98 |
+
// Lower bound (1 <= i < N): scale * (growth_factor ^ (i - 1)).
|
| 99 |
+
message Exponential {
|
| 100 |
+
// Must be greater than 0.
|
| 101 |
+
int32 num_finite_buckets = 1;
|
| 102 |
+
|
| 103 |
+
// Must be greater than 1.
|
| 104 |
+
double growth_factor = 2;
|
| 105 |
+
|
| 106 |
+
// Must be greater than 0.
|
| 107 |
+
double scale = 3;
|
| 108 |
+
}
|
| 109 |
+
|
| 110 |
+
// Specifies a set of buckets with arbitrary widths.
|
| 111 |
+
//
|
| 112 |
+
// There are `size(bounds) + 1` (= N) buckets. Bucket `i` has the following
|
| 113 |
+
// boundaries:
|
| 114 |
+
//
|
| 115 |
+
// Upper bound (0 <= i < N-1): bounds[i]
|
| 116 |
+
// Lower bound (1 <= i < N); bounds[i - 1]
|
| 117 |
+
//
|
| 118 |
+
// The `bounds` field must contain at least one element. If `bounds` has
|
| 119 |
+
// only one element, then there are no finite buckets, and that single
|
| 120 |
+
// element is the common boundary of the overflow and underflow buckets.
|
| 121 |
+
message Explicit {
|
| 122 |
+
// The values must be monotonically increasing.
|
| 123 |
+
repeated double bounds = 1;
|
| 124 |
+
}
|
| 125 |
+
|
| 126 |
+
// Exactly one of these three fields must be set.
|
| 127 |
+
oneof options {
|
| 128 |
+
// The linear bucket.
|
| 129 |
+
Linear linear_buckets = 1;
|
| 130 |
+
|
| 131 |
+
// The exponential buckets.
|
| 132 |
+
Exponential exponential_buckets = 2;
|
| 133 |
+
|
| 134 |
+
// The explicit buckets.
|
| 135 |
+
Explicit explicit_buckets = 3;
|
| 136 |
+
}
|
| 137 |
+
}
|
| 138 |
+
|
| 139 |
+
// Exemplars are example points that may be used to annotate aggregated
|
| 140 |
+
// distribution values. They are metadata that gives information about a
|
| 141 |
+
// particular value added to a Distribution bucket, such as a trace ID that
|
| 142 |
+
// was active when a value was added. They may contain further information,
|
| 143 |
+
// such as a example values and timestamps, origin, etc.
|
| 144 |
+
message Exemplar {
|
| 145 |
+
// Value of the exemplar point. This value determines to which bucket the
|
| 146 |
+
// exemplar belongs.
|
| 147 |
+
double value = 1;
|
| 148 |
+
|
| 149 |
+
// The observation (sampling) time of the above value.
|
| 150 |
+
google.protobuf.Timestamp timestamp = 2;
|
| 151 |
+
|
| 152 |
+
// Contextual information about the example value. Examples are:
|
| 153 |
+
//
|
| 154 |
+
// Trace: type.googleapis.com/google.monitoring.v3.SpanContext
|
| 155 |
+
//
|
| 156 |
+
// Literal string: type.googleapis.com/google.protobuf.StringValue
|
| 157 |
+
//
|
| 158 |
+
// Labels dropped during aggregation:
|
| 159 |
+
// type.googleapis.com/google.monitoring.v3.DroppedLabels
|
| 160 |
+
//
|
| 161 |
+
// There may be only a single attachment of any given message type in a
|
| 162 |
+
// single exemplar, and this is enforced by the system.
|
| 163 |
+
repeated google.protobuf.Any attachments = 3;
|
| 164 |
+
}
|
| 165 |
+
|
| 166 |
+
// The number of values in the population. Must be non-negative. This value
|
| 167 |
+
// must equal the sum of the values in `bucket_counts` if a histogram is
|
| 168 |
+
// provided.
|
| 169 |
+
int64 count = 1;
|
| 170 |
+
|
| 171 |
+
// The arithmetic mean of the values in the population. If `count` is zero
|
| 172 |
+
// then this field must be zero.
|
| 173 |
+
double mean = 2;
|
| 174 |
+
|
| 175 |
+
// The sum of squared deviations from the mean of the values in the
|
| 176 |
+
// population. For values x_i this is:
|
| 177 |
+
//
|
| 178 |
+
// Sum[i=1..n]((x_i - mean)^2)
|
| 179 |
+
//
|
| 180 |
+
// Knuth, "The Art of Computer Programming", Vol. 2, page 232, 3rd edition
|
| 181 |
+
// describes Welford's method for accumulating this sum in one pass.
|
| 182 |
+
//
|
| 183 |
+
// If `count` is zero then this field must be zero.
|
| 184 |
+
double sum_of_squared_deviation = 3;
|
| 185 |
+
|
| 186 |
+
// If specified, contains the range of the population values. The field
|
| 187 |
+
// must not be present if the `count` is zero.
|
| 188 |
+
Range range = 4;
|
| 189 |
+
|
| 190 |
+
// Defines the histogram bucket boundaries. If the distribution does not
|
| 191 |
+
// contain a histogram, then omit this field.
|
| 192 |
+
BucketOptions bucket_options = 6;
|
| 193 |
+
|
| 194 |
+
// The number of values in each bucket of the histogram, as described in
|
| 195 |
+
// `bucket_options`. If the distribution does not have a histogram, then omit
|
| 196 |
+
// this field. If there is a histogram, then the sum of the values in
|
| 197 |
+
// `bucket_counts` must equal the value in the `count` field of the
|
| 198 |
+
// distribution.
|
| 199 |
+
//
|
| 200 |
+
// If present, `bucket_counts` should contain N values, where N is the number
|
| 201 |
+
// of buckets specified in `bucket_options`. If you supply fewer than N
|
| 202 |
+
// values, the remaining values are assumed to be 0.
|
| 203 |
+
//
|
| 204 |
+
// The order of the values in `bucket_counts` follows the bucket numbering
|
| 205 |
+
// schemes described for the three bucket types. The first value must be the
|
| 206 |
+
// count for the underflow bucket (number 0). The next N-2 values are the
|
| 207 |
+
// counts for the finite buckets (number 1 through N-2). The N'th value in
|
| 208 |
+
// `bucket_counts` is the count for the overflow bucket (number N-1).
|
| 209 |
+
repeated int64 bucket_counts = 7;
|
| 210 |
+
|
| 211 |
+
// Must be in increasing order of `value` field.
|
| 212 |
+
repeated Exemplar exemplars = 10;
|
| 213 |
+
}
|
.venv/lib/python3.11/site-packages/google/api/distribution_pb2.py
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# -*- coding: utf-8 -*-
|
| 2 |
+
|
| 3 |
+
# Copyright 2024 Google LLC
|
| 4 |
+
#
|
| 5 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 6 |
+
# you may not use this file except in compliance with the License.
|
| 7 |
+
# You may obtain a copy of the License at
|
| 8 |
+
#
|
| 9 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 10 |
+
#
|
| 11 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 12 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 13 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 14 |
+
# See the License for the specific language governing permissions and
|
| 15 |
+
# limitations under the License.
|
| 16 |
+
|
| 17 |
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
| 18 |
+
# source: google/api/distribution.proto
|
| 19 |
+
"""Generated protocol buffer code."""
|
| 20 |
+
from google.protobuf import descriptor as _descriptor
|
| 21 |
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
| 22 |
+
from google.protobuf import symbol_database as _symbol_database
|
| 23 |
+
from google.protobuf.internal import builder as _builder
|
| 24 |
+
|
| 25 |
+
# @@protoc_insertion_point(imports)
|
| 26 |
+
|
| 27 |
+
_sym_db = _symbol_database.Default()
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2
|
| 31 |
+
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
| 35 |
+
b'\n\x1dgoogle/api/distribution.proto\x12\ngoogle.api\x1a\x19google/protobuf/any.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xd9\x06\n\x0c\x44istribution\x12\r\n\x05\x63ount\x18\x01 \x01(\x03\x12\x0c\n\x04mean\x18\x02 \x01(\x01\x12 \n\x18sum_of_squared_deviation\x18\x03 \x01(\x01\x12-\n\x05range\x18\x04 \x01(\x0b\x32\x1e.google.api.Distribution.Range\x12>\n\x0e\x62ucket_options\x18\x06 \x01(\x0b\x32&.google.api.Distribution.BucketOptions\x12\x15\n\rbucket_counts\x18\x07 \x03(\x03\x12\x34\n\texemplars\x18\n \x03(\x0b\x32!.google.api.Distribution.Exemplar\x1a!\n\x05Range\x12\x0b\n\x03min\x18\x01 \x01(\x01\x12\x0b\n\x03max\x18\x02 \x01(\x01\x1a\xb5\x03\n\rBucketOptions\x12G\n\x0elinear_buckets\x18\x01 \x01(\x0b\x32-.google.api.Distribution.BucketOptions.LinearH\x00\x12Q\n\x13\x65xponential_buckets\x18\x02 \x01(\x0b\x32\x32.google.api.Distribution.BucketOptions.ExponentialH\x00\x12K\n\x10\x65xplicit_buckets\x18\x03 \x01(\x0b\x32/.google.api.Distribution.BucketOptions.ExplicitH\x00\x1a\x43\n\x06Linear\x12\x1a\n\x12num_finite_buckets\x18\x01 \x01(\x05\x12\r\n\x05width\x18\x02 \x01(\x01\x12\x0e\n\x06offset\x18\x03 \x01(\x01\x1aO\n\x0b\x45xponential\x12\x1a\n\x12num_finite_buckets\x18\x01 \x01(\x05\x12\x15\n\rgrowth_factor\x18\x02 \x01(\x01\x12\r\n\x05scale\x18\x03 \x01(\x01\x1a\x1a\n\x08\x45xplicit\x12\x0e\n\x06\x62ounds\x18\x01 \x03(\x01\x42\t\n\x07options\x1as\n\x08\x45xemplar\x12\r\n\x05value\x18\x01 \x01(\x01\x12-\n\ttimestamp\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12)\n\x0b\x61ttachments\x18\x03 \x03(\x0b\x32\x14.google.protobuf.AnyBq\n\x0e\x63om.google.apiB\x11\x44istributionProtoP\x01ZCgoogle.golang.org/genproto/googleapis/api/distribution;distribution\xa2\x02\x04GAPIb\x06proto3'
|
| 36 |
+
)
|
| 37 |
+
|
| 38 |
+
_globals = globals()
|
| 39 |
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
| 40 |
+
_builder.BuildTopDescriptorsAndMessages(
|
| 41 |
+
DESCRIPTOR, "google.api.distribution_pb2", _globals
|
| 42 |
+
)
|
| 43 |
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
| 44 |
+
DESCRIPTOR._options = None
|
| 45 |
+
DESCRIPTOR._serialized_options = b"\n\016com.google.apiB\021DistributionProtoP\001ZCgoogle.golang.org/genproto/googleapis/api/distribution;distribution\242\002\004GAPI"
|
| 46 |
+
_globals["_DISTRIBUTION"]._serialized_start = 106
|
| 47 |
+
_globals["_DISTRIBUTION"]._serialized_end = 963
|
| 48 |
+
_globals["_DISTRIBUTION_RANGE"]._serialized_start = 373
|
| 49 |
+
_globals["_DISTRIBUTION_RANGE"]._serialized_end = 406
|
| 50 |
+
_globals["_DISTRIBUTION_BUCKETOPTIONS"]._serialized_start = 409
|
| 51 |
+
_globals["_DISTRIBUTION_BUCKETOPTIONS"]._serialized_end = 846
|
| 52 |
+
_globals["_DISTRIBUTION_BUCKETOPTIONS_LINEAR"]._serialized_start = 659
|
| 53 |
+
_globals["_DISTRIBUTION_BUCKETOPTIONS_LINEAR"]._serialized_end = 726
|
| 54 |
+
_globals["_DISTRIBUTION_BUCKETOPTIONS_EXPONENTIAL"]._serialized_start = 728
|
| 55 |
+
_globals["_DISTRIBUTION_BUCKETOPTIONS_EXPONENTIAL"]._serialized_end = 807
|
| 56 |
+
_globals["_DISTRIBUTION_BUCKETOPTIONS_EXPLICIT"]._serialized_start = 809
|
| 57 |
+
_globals["_DISTRIBUTION_BUCKETOPTIONS_EXPLICIT"]._serialized_end = 835
|
| 58 |
+
_globals["_DISTRIBUTION_EXEMPLAR"]._serialized_start = 848
|
| 59 |
+
_globals["_DISTRIBUTION_EXEMPLAR"]._serialized_end = 963
|
| 60 |
+
# @@protoc_insertion_point(module_scope)
|
.venv/lib/python3.11/site-packages/google/api/documentation.proto
ADDED
|
@@ -0,0 +1,168 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2024 Google LLC
|
| 2 |
+
//
|
| 3 |
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
// you may not use this file except in compliance with the License.
|
| 5 |
+
// You may obtain a copy of the License at
|
| 6 |
+
//
|
| 7 |
+
// http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
//
|
| 9 |
+
// Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
// See the License for the specific language governing permissions and
|
| 13 |
+
// limitations under the License.
|
| 14 |
+
|
| 15 |
+
syntax = "proto3";
|
| 16 |
+
|
| 17 |
+
package google.api;
|
| 18 |
+
|
| 19 |
+
option go_package = "google.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig";
|
| 20 |
+
option java_multiple_files = true;
|
| 21 |
+
option java_outer_classname = "DocumentationProto";
|
| 22 |
+
option java_package = "com.google.api";
|
| 23 |
+
option objc_class_prefix = "GAPI";
|
| 24 |
+
|
| 25 |
+
// `Documentation` provides the information for describing a service.
|
| 26 |
+
//
|
| 27 |
+
// Example:
|
| 28 |
+
// <pre><code>documentation:
|
| 29 |
+
// summary: >
|
| 30 |
+
// The Google Calendar API gives access
|
| 31 |
+
// to most calendar features.
|
| 32 |
+
// pages:
|
| 33 |
+
// - name: Overview
|
| 34 |
+
// content: (== include google/foo/overview.md ==)
|
| 35 |
+
// - name: Tutorial
|
| 36 |
+
// content: (== include google/foo/tutorial.md ==)
|
| 37 |
+
// subpages:
|
| 38 |
+
// - name: Java
|
| 39 |
+
// content: (== include google/foo/tutorial_java.md ==)
|
| 40 |
+
// rules:
|
| 41 |
+
// - selector: google.calendar.Calendar.Get
|
| 42 |
+
// description: >
|
| 43 |
+
// ...
|
| 44 |
+
// - selector: google.calendar.Calendar.Put
|
| 45 |
+
// description: >
|
| 46 |
+
// ...
|
| 47 |
+
// </code></pre>
|
| 48 |
+
// Documentation is provided in markdown syntax. In addition to
|
| 49 |
+
// standard markdown features, definition lists, tables and fenced
|
| 50 |
+
// code blocks are supported. Section headers can be provided and are
|
| 51 |
+
// interpreted relative to the section nesting of the context where
|
| 52 |
+
// a documentation fragment is embedded.
|
| 53 |
+
//
|
| 54 |
+
// Documentation from the IDL is merged with documentation defined
|
| 55 |
+
// via the config at normalization time, where documentation provided
|
| 56 |
+
// by config rules overrides IDL provided.
|
| 57 |
+
//
|
| 58 |
+
// A number of constructs specific to the API platform are supported
|
| 59 |
+
// in documentation text.
|
| 60 |
+
//
|
| 61 |
+
// In order to reference a proto element, the following
|
| 62 |
+
// notation can be used:
|
| 63 |
+
// <pre><code>[fully.qualified.proto.name][]</code></pre>
|
| 64 |
+
// To override the display text used for the link, this can be used:
|
| 65 |
+
// <pre><code>[display text][fully.qualified.proto.name]</code></pre>
|
| 66 |
+
// Text can be excluded from doc using the following notation:
|
| 67 |
+
// <pre><code>(-- internal comment --)</code></pre>
|
| 68 |
+
//
|
| 69 |
+
// A few directives are available in documentation. Note that
|
| 70 |
+
// directives must appear on a single line to be properly
|
| 71 |
+
// identified. The `include` directive includes a markdown file from
|
| 72 |
+
// an external source:
|
| 73 |
+
// <pre><code>(== include path/to/file ==)</code></pre>
|
| 74 |
+
// The `resource_for` directive marks a message to be the resource of
|
| 75 |
+
// a collection in REST view. If it is not specified, tools attempt
|
| 76 |
+
// to infer the resource from the operations in a collection:
|
| 77 |
+
// <pre><code>(== resource_for v1.shelves.books ==)</code></pre>
|
| 78 |
+
// The directive `suppress_warning` does not directly affect documentation
|
| 79 |
+
// and is documented together with service config validation.
|
| 80 |
+
message Documentation {
|
| 81 |
+
// A short description of what the service does. The summary must be plain
|
| 82 |
+
// text. It becomes the overview of the service displayed in Google Cloud
|
| 83 |
+
// Console.
|
| 84 |
+
// NOTE: This field is equivalent to the standard field `description`.
|
| 85 |
+
string summary = 1;
|
| 86 |
+
|
| 87 |
+
// The top level pages for the documentation set.
|
| 88 |
+
repeated Page pages = 5;
|
| 89 |
+
|
| 90 |
+
// A list of documentation rules that apply to individual API elements.
|
| 91 |
+
//
|
| 92 |
+
// **NOTE:** All service configuration rules follow "last one wins" order.
|
| 93 |
+
repeated DocumentationRule rules = 3;
|
| 94 |
+
|
| 95 |
+
// The URL to the root of documentation.
|
| 96 |
+
string documentation_root_url = 4;
|
| 97 |
+
|
| 98 |
+
// Specifies the service root url if the default one (the service name
|
| 99 |
+
// from the yaml file) is not suitable. This can be seen in any fully
|
| 100 |
+
// specified service urls as well as sections that show a base that other
|
| 101 |
+
// urls are relative to.
|
| 102 |
+
string service_root_url = 6;
|
| 103 |
+
|
| 104 |
+
// Declares a single overview page. For example:
|
| 105 |
+
// <pre><code>documentation:
|
| 106 |
+
// summary: ...
|
| 107 |
+
// overview: (== include overview.md ==)
|
| 108 |
+
// </code></pre>
|
| 109 |
+
// This is a shortcut for the following declaration (using pages style):
|
| 110 |
+
// <pre><code>documentation:
|
| 111 |
+
// summary: ...
|
| 112 |
+
// pages:
|
| 113 |
+
// - name: Overview
|
| 114 |
+
// content: (== include overview.md ==)
|
| 115 |
+
// </code></pre>
|
| 116 |
+
// Note: you cannot specify both `overview` field and `pages` field.
|
| 117 |
+
string overview = 2;
|
| 118 |
+
}
|
| 119 |
+
|
| 120 |
+
// A documentation rule provides information about individual API elements.
|
| 121 |
+
message DocumentationRule {
|
| 122 |
+
// The selector is a comma-separated list of patterns for any element such as
|
| 123 |
+
// a method, a field, an enum value. Each pattern is a qualified name of the
|
| 124 |
+
// element which may end in "*", indicating a wildcard. Wildcards are only
|
| 125 |
+
// allowed at the end and for a whole component of the qualified name,
|
| 126 |
+
// i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". A wildcard will match
|
| 127 |
+
// one or more components. To specify a default for all applicable elements,
|
| 128 |
+
// the whole pattern "*" is used.
|
| 129 |
+
string selector = 1;
|
| 130 |
+
|
| 131 |
+
// Description of the selected proto element (e.g. a message, a method, a
|
| 132 |
+
// 'service' definition, or a field). Defaults to leading & trailing comments
|
| 133 |
+
// taken from the proto source definition of the proto element.
|
| 134 |
+
string description = 2;
|
| 135 |
+
|
| 136 |
+
// Deprecation description of the selected element(s). It can be provided if
|
| 137 |
+
// an element is marked as `deprecated`.
|
| 138 |
+
string deprecation_description = 3;
|
| 139 |
+
}
|
| 140 |
+
|
| 141 |
+
// Represents a documentation page. A page can contain subpages to represent
|
| 142 |
+
// nested documentation set structure.
|
| 143 |
+
message Page {
|
| 144 |
+
// The name of the page. It will be used as an identity of the page to
|
| 145 |
+
// generate URI of the page, text of the link to this page in navigation,
|
| 146 |
+
// etc. The full page name (start from the root page name to this page
|
| 147 |
+
// concatenated with `.`) can be used as reference to the page in your
|
| 148 |
+
// documentation. For example:
|
| 149 |
+
// <pre><code>pages:
|
| 150 |
+
// - name: Tutorial
|
| 151 |
+
// content: (== include tutorial.md ==)
|
| 152 |
+
// subpages:
|
| 153 |
+
// - name: Java
|
| 154 |
+
// content: (== include tutorial_java.md ==)
|
| 155 |
+
// </code></pre>
|
| 156 |
+
// You can reference `Java` page using Markdown reference link syntax:
|
| 157 |
+
// `[Java][Tutorial.Java]`.
|
| 158 |
+
string name = 1;
|
| 159 |
+
|
| 160 |
+
// The Markdown content of the page. You can use <code>(== include {path}
|
| 161 |
+
// ==)</code> to include content from a Markdown file. The content can be
|
| 162 |
+
// used to produce the documentation page such as HTML format page.
|
| 163 |
+
string content = 2;
|
| 164 |
+
|
| 165 |
+
// Subpages of this page. The order of subpages specified here will be
|
| 166 |
+
// honored in the generated docset.
|
| 167 |
+
repeated Page subpages = 3;
|
| 168 |
+
}
|
.venv/lib/python3.11/site-packages/google/api/documentation_pb2.py
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# -*- coding: utf-8 -*-
|
| 2 |
+
|
| 3 |
+
# Copyright 2024 Google LLC
|
| 4 |
+
#
|
| 5 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 6 |
+
# you may not use this file except in compliance with the License.
|
| 7 |
+
# You may obtain a copy of the License at
|
| 8 |
+
#
|
| 9 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 10 |
+
#
|
| 11 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 12 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 13 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 14 |
+
# See the License for the specific language governing permissions and
|
| 15 |
+
# limitations under the License.
|
| 16 |
+
|
| 17 |
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
| 18 |
+
# source: google/api/documentation.proto
|
| 19 |
+
"""Generated protocol buffer code."""
|
| 20 |
+
from google.protobuf import descriptor as _descriptor
|
| 21 |
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
| 22 |
+
from google.protobuf import symbol_database as _symbol_database
|
| 23 |
+
from google.protobuf.internal import builder as _builder
|
| 24 |
+
|
| 25 |
+
# @@protoc_insertion_point(imports)
|
| 26 |
+
|
| 27 |
+
_sym_db = _symbol_database.Default()
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
| 31 |
+
b'\n\x1egoogle/api/documentation.proto\x12\ngoogle.api"\xbb\x01\n\rDocumentation\x12\x0f\n\x07summary\x18\x01 \x01(\t\x12\x1f\n\x05pages\x18\x05 \x03(\x0b\x32\x10.google.api.Page\x12,\n\x05rules\x18\x03 \x03(\x0b\x32\x1d.google.api.DocumentationRule\x12\x1e\n\x16\x64ocumentation_root_url\x18\x04 \x01(\t\x12\x18\n\x10service_root_url\x18\x06 \x01(\t\x12\x10\n\x08overview\x18\x02 \x01(\t"[\n\x11\x44ocumentationRule\x12\x10\n\x08selector\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x1f\n\x17\x64\x65precation_description\x18\x03 \x01(\t"I\n\x04Page\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07\x63ontent\x18\x02 \x01(\t\x12"\n\x08subpages\x18\x03 \x03(\x0b\x32\x10.google.api.PageBt\n\x0e\x63om.google.apiB\x12\x44ocumentationProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xa2\x02\x04GAPIb\x06proto3'
|
| 32 |
+
)
|
| 33 |
+
|
| 34 |
+
_globals = globals()
|
| 35 |
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
| 36 |
+
_builder.BuildTopDescriptorsAndMessages(
|
| 37 |
+
DESCRIPTOR, "google.api.documentation_pb2", _globals
|
| 38 |
+
)
|
| 39 |
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
| 40 |
+
DESCRIPTOR._options = None
|
| 41 |
+
DESCRIPTOR._serialized_options = b"\n\016com.google.apiB\022DocumentationProtoP\001ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\242\002\004GAPI"
|
| 42 |
+
_globals["_DOCUMENTATION"]._serialized_start = 47
|
| 43 |
+
_globals["_DOCUMENTATION"]._serialized_end = 234
|
| 44 |
+
_globals["_DOCUMENTATIONRULE"]._serialized_start = 236
|
| 45 |
+
_globals["_DOCUMENTATIONRULE"]._serialized_end = 327
|
| 46 |
+
_globals["_PAGE"]._serialized_start = 329
|
| 47 |
+
_globals["_PAGE"]._serialized_end = 402
|
| 48 |
+
# @@protoc_insertion_point(module_scope)
|
.venv/lib/python3.11/site-packages/google/api/endpoint.proto
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2024 Google LLC
|
| 2 |
+
//
|
| 3 |
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
// you may not use this file except in compliance with the License.
|
| 5 |
+
// You may obtain a copy of the License at
|
| 6 |
+
//
|
| 7 |
+
// http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
//
|
| 9 |
+
// Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
// See the License for the specific language governing permissions and
|
| 13 |
+
// limitations under the License.
|
| 14 |
+
|
| 15 |
+
syntax = "proto3";
|
| 16 |
+
|
| 17 |
+
package google.api;
|
| 18 |
+
|
| 19 |
+
option go_package = "google.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig";
|
| 20 |
+
option java_multiple_files = true;
|
| 21 |
+
option java_outer_classname = "EndpointProto";
|
| 22 |
+
option java_package = "com.google.api";
|
| 23 |
+
option objc_class_prefix = "GAPI";
|
| 24 |
+
|
| 25 |
+
// `Endpoint` describes a network address of a service that serves a set of
|
| 26 |
+
// APIs. It is commonly known as a service endpoint. A service may expose
|
| 27 |
+
// any number of service endpoints, and all service endpoints share the same
|
| 28 |
+
// service definition, such as quota limits and monitoring metrics.
|
| 29 |
+
//
|
| 30 |
+
// Example:
|
| 31 |
+
//
|
| 32 |
+
// type: google.api.Service
|
| 33 |
+
// name: library-example.googleapis.com
|
| 34 |
+
// endpoints:
|
| 35 |
+
// # Declares network address `https://library-example.googleapis.com`
|
| 36 |
+
// # for service `library-example.googleapis.com`. The `https` scheme
|
| 37 |
+
// # is implicit for all service endpoints. Other schemes may be
|
| 38 |
+
// # supported in the future.
|
| 39 |
+
// - name: library-example.googleapis.com
|
| 40 |
+
// allow_cors: false
|
| 41 |
+
// - name: content-staging-library-example.googleapis.com
|
| 42 |
+
// # Allows HTTP OPTIONS calls to be passed to the API frontend, for it
|
| 43 |
+
// # to decide whether the subsequent cross-origin request is allowed
|
| 44 |
+
// # to proceed.
|
| 45 |
+
// allow_cors: true
|
| 46 |
+
message Endpoint {
|
| 47 |
+
// The canonical name of this endpoint.
|
| 48 |
+
string name = 1;
|
| 49 |
+
|
| 50 |
+
// Aliases for this endpoint, these will be served by the same UrlMap as the
|
| 51 |
+
// parent endpoint, and will be provisioned in the GCP stack for the Regional
|
| 52 |
+
// Endpoints.
|
| 53 |
+
repeated string aliases = 2;
|
| 54 |
+
|
| 55 |
+
// The specification of an Internet routable address of API frontend that will
|
| 56 |
+
// handle requests to this [API
|
| 57 |
+
// Endpoint](https://cloud.google.com/apis/design/glossary). It should be
|
| 58 |
+
// either a valid IPv4 address or a fully-qualified domain name. For example,
|
| 59 |
+
// "8.8.8.8" or "myservice.appspot.com".
|
| 60 |
+
string target = 101;
|
| 61 |
+
|
| 62 |
+
// Allowing
|
| 63 |
+
// [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka
|
| 64 |
+
// cross-domain traffic, would allow the backends served from this endpoint to
|
| 65 |
+
// receive and respond to HTTP OPTIONS requests. The response will be used by
|
| 66 |
+
// the browser to determine whether the subsequent cross-origin request is
|
| 67 |
+
// allowed to proceed.
|
| 68 |
+
bool allow_cors = 5;
|
| 69 |
+
}
|
.venv/lib/python3.11/site-packages/google/api/endpoint_pb2.py
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# -*- coding: utf-8 -*-
|
| 2 |
+
|
| 3 |
+
# Copyright 2024 Google LLC
|
| 4 |
+
#
|
| 5 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 6 |
+
# you may not use this file except in compliance with the License.
|
| 7 |
+
# You may obtain a copy of the License at
|
| 8 |
+
#
|
| 9 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 10 |
+
#
|
| 11 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 12 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 13 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 14 |
+
# See the License for the specific language governing permissions and
|
| 15 |
+
# limitations under the License.
|
| 16 |
+
|
| 17 |
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
| 18 |
+
# source: google/api/endpoint.proto
|
| 19 |
+
"""Generated protocol buffer code."""
|
| 20 |
+
from google.protobuf import descriptor as _descriptor
|
| 21 |
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
| 22 |
+
from google.protobuf import symbol_database as _symbol_database
|
| 23 |
+
from google.protobuf.internal import builder as _builder
|
| 24 |
+
|
| 25 |
+
# @@protoc_insertion_point(imports)
|
| 26 |
+
|
| 27 |
+
_sym_db = _symbol_database.Default()
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
| 31 |
+
b'\n\x19google/api/endpoint.proto\x12\ngoogle.api"M\n\x08\x45ndpoint\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07\x61liases\x18\x02 \x03(\t\x12\x0e\n\x06target\x18\x65 \x01(\t\x12\x12\n\nallow_cors\x18\x05 \x01(\x08\x42o\n\x0e\x63om.google.apiB\rEndpointProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xa2\x02\x04GAPIb\x06proto3'
|
| 32 |
+
)
|
| 33 |
+
|
| 34 |
+
_globals = globals()
|
| 35 |
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
| 36 |
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "google.api.endpoint_pb2", _globals)
|
| 37 |
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
| 38 |
+
DESCRIPTOR._options = None
|
| 39 |
+
DESCRIPTOR._serialized_options = b"\n\016com.google.apiB\rEndpointProtoP\001ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\242\002\004GAPI"
|
| 40 |
+
_globals["_ENDPOINT"]._serialized_start = 41
|
| 41 |
+
_globals["_ENDPOINT"]._serialized_end = 118
|
| 42 |
+
# @@protoc_insertion_point(module_scope)
|
.venv/lib/python3.11/site-packages/google/api/error_reason.proto
ADDED
|
@@ -0,0 +1,622 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2024 Google LLC
|
| 2 |
+
//
|
| 3 |
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
// you may not use this file except in compliance with the License.
|
| 5 |
+
// You may obtain a copy of the License at
|
| 6 |
+
//
|
| 7 |
+
// http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
//
|
| 9 |
+
// Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
// See the License for the specific language governing permissions and
|
| 13 |
+
// limitations under the License.
|
| 14 |
+
|
| 15 |
+
syntax = "proto3";
|
| 16 |
+
|
| 17 |
+
package google.api;
|
| 18 |
+
|
| 19 |
+
option go_package = "google.golang.org/genproto/googleapis/api/error_reason;error_reason";
|
| 20 |
+
option java_multiple_files = true;
|
| 21 |
+
option java_outer_classname = "ErrorReasonProto";
|
| 22 |
+
option java_package = "com.google.api";
|
| 23 |
+
option objc_class_prefix = "GAPI";
|
| 24 |
+
|
| 25 |
+
// Defines the supported values for `google.rpc.ErrorInfo.reason` for the
|
| 26 |
+
// `googleapis.com` error domain. This error domain is reserved for [Service
|
| 27 |
+
// Infrastructure](https://cloud.google.com/service-infrastructure/docs/overview).
|
| 28 |
+
// For each error info of this domain, the metadata key "service" refers to the
|
| 29 |
+
// logical identifier of an API service, such as "pubsub.googleapis.com". The
|
| 30 |
+
// "consumer" refers to the entity that consumes an API Service. It typically is
|
| 31 |
+
// a Google project that owns the client application or the server resource,
|
| 32 |
+
// such as "projects/123". Other metadata keys are specific to each error
|
| 33 |
+
// reason. For more information, see the definition of the specific error
|
| 34 |
+
// reason.
|
| 35 |
+
enum ErrorReason {
|
| 36 |
+
// Do not use this default value.
|
| 37 |
+
ERROR_REASON_UNSPECIFIED = 0;
|
| 38 |
+
|
| 39 |
+
// The request is calling a disabled service for a consumer.
|
| 40 |
+
//
|
| 41 |
+
// Example of an ErrorInfo when the consumer "projects/123" contacting
|
| 42 |
+
// "pubsub.googleapis.com" service which is disabled:
|
| 43 |
+
//
|
| 44 |
+
// { "reason": "SERVICE_DISABLED",
|
| 45 |
+
// "domain": "googleapis.com",
|
| 46 |
+
// "metadata": {
|
| 47 |
+
// "consumer": "projects/123",
|
| 48 |
+
// "service": "pubsub.googleapis.com"
|
| 49 |
+
// }
|
| 50 |
+
// }
|
| 51 |
+
//
|
| 52 |
+
// This response indicates the "pubsub.googleapis.com" has been disabled in
|
| 53 |
+
// "projects/123".
|
| 54 |
+
SERVICE_DISABLED = 1;
|
| 55 |
+
|
| 56 |
+
// The request whose associated billing account is disabled.
|
| 57 |
+
//
|
| 58 |
+
// Example of an ErrorInfo when the consumer "projects/123" fails to contact
|
| 59 |
+
// "pubsub.googleapis.com" service because the associated billing account is
|
| 60 |
+
// disabled:
|
| 61 |
+
//
|
| 62 |
+
// { "reason": "BILLING_DISABLED",
|
| 63 |
+
// "domain": "googleapis.com",
|
| 64 |
+
// "metadata": {
|
| 65 |
+
// "consumer": "projects/123",
|
| 66 |
+
// "service": "pubsub.googleapis.com"
|
| 67 |
+
// }
|
| 68 |
+
// }
|
| 69 |
+
//
|
| 70 |
+
// This response indicates the billing account associated has been disabled.
|
| 71 |
+
BILLING_DISABLED = 2;
|
| 72 |
+
|
| 73 |
+
// The request is denied because the provided [API
|
| 74 |
+
// key](https://cloud.google.com/docs/authentication/api-keys) is invalid. It
|
| 75 |
+
// may be in a bad format, cannot be found, or has been expired).
|
| 76 |
+
//
|
| 77 |
+
// Example of an ErrorInfo when the request is contacting
|
| 78 |
+
// "storage.googleapis.com" service with an invalid API key:
|
| 79 |
+
//
|
| 80 |
+
// { "reason": "API_KEY_INVALID",
|
| 81 |
+
// "domain": "googleapis.com",
|
| 82 |
+
// "metadata": {
|
| 83 |
+
// "service": "storage.googleapis.com",
|
| 84 |
+
// }
|
| 85 |
+
// }
|
| 86 |
+
API_KEY_INVALID = 3;
|
| 87 |
+
|
| 88 |
+
// The request is denied because it violates [API key API
|
| 89 |
+
// restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_api_restrictions).
|
| 90 |
+
//
|
| 91 |
+
// Example of an ErrorInfo when the consumer "projects/123" fails to call the
|
| 92 |
+
// "storage.googleapis.com" service because this service is restricted in the
|
| 93 |
+
// API key:
|
| 94 |
+
//
|
| 95 |
+
// { "reason": "API_KEY_SERVICE_BLOCKED",
|
| 96 |
+
// "domain": "googleapis.com",
|
| 97 |
+
// "metadata": {
|
| 98 |
+
// "consumer": "projects/123",
|
| 99 |
+
// "service": "storage.googleapis.com"
|
| 100 |
+
// }
|
| 101 |
+
// }
|
| 102 |
+
API_KEY_SERVICE_BLOCKED = 4;
|
| 103 |
+
|
| 104 |
+
// The request is denied because it violates [API key HTTP
|
| 105 |
+
// restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_http_restrictions).
|
| 106 |
+
//
|
| 107 |
+
// Example of an ErrorInfo when the consumer "projects/123" fails to call
|
| 108 |
+
// "storage.googleapis.com" service because the http referrer of the request
|
| 109 |
+
// violates API key HTTP restrictions:
|
| 110 |
+
//
|
| 111 |
+
// { "reason": "API_KEY_HTTP_REFERRER_BLOCKED",
|
| 112 |
+
// "domain": "googleapis.com",
|
| 113 |
+
// "metadata": {
|
| 114 |
+
// "consumer": "projects/123",
|
| 115 |
+
// "service": "storage.googleapis.com",
|
| 116 |
+
// }
|
| 117 |
+
// }
|
| 118 |
+
API_KEY_HTTP_REFERRER_BLOCKED = 7;
|
| 119 |
+
|
| 120 |
+
// The request is denied because it violates [API key IP address
|
| 121 |
+
// restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_application_restrictions).
|
| 122 |
+
//
|
| 123 |
+
// Example of an ErrorInfo when the consumer "projects/123" fails to call
|
| 124 |
+
// "storage.googleapis.com" service because the caller IP of the request
|
| 125 |
+
// violates API key IP address restrictions:
|
| 126 |
+
//
|
| 127 |
+
// { "reason": "API_KEY_IP_ADDRESS_BLOCKED",
|
| 128 |
+
// "domain": "googleapis.com",
|
| 129 |
+
// "metadata": {
|
| 130 |
+
// "consumer": "projects/123",
|
| 131 |
+
// "service": "storage.googleapis.com",
|
| 132 |
+
// }
|
| 133 |
+
// }
|
| 134 |
+
API_KEY_IP_ADDRESS_BLOCKED = 8;
|
| 135 |
+
|
| 136 |
+
// The request is denied because it violates [API key Android application
|
| 137 |
+
// restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_application_restrictions).
|
| 138 |
+
//
|
| 139 |
+
// Example of an ErrorInfo when the consumer "projects/123" fails to call
|
| 140 |
+
// "storage.googleapis.com" service because the request from the Android apps
|
| 141 |
+
// violates the API key Android application restrictions:
|
| 142 |
+
//
|
| 143 |
+
// { "reason": "API_KEY_ANDROID_APP_BLOCKED",
|
| 144 |
+
// "domain": "googleapis.com",
|
| 145 |
+
// "metadata": {
|
| 146 |
+
// "consumer": "projects/123",
|
| 147 |
+
// "service": "storage.googleapis.com"
|
| 148 |
+
// }
|
| 149 |
+
// }
|
| 150 |
+
API_KEY_ANDROID_APP_BLOCKED = 9;
|
| 151 |
+
|
| 152 |
+
// The request is denied because it violates [API key iOS application
|
| 153 |
+
// restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_application_restrictions).
|
| 154 |
+
//
|
| 155 |
+
// Example of an ErrorInfo when the consumer "projects/123" fails to call
|
| 156 |
+
// "storage.googleapis.com" service because the request from the iOS apps
|
| 157 |
+
// violates the API key iOS application restrictions:
|
| 158 |
+
//
|
| 159 |
+
// { "reason": "API_KEY_IOS_APP_BLOCKED",
|
| 160 |
+
// "domain": "googleapis.com",
|
| 161 |
+
// "metadata": {
|
| 162 |
+
// "consumer": "projects/123",
|
| 163 |
+
// "service": "storage.googleapis.com"
|
| 164 |
+
// }
|
| 165 |
+
// }
|
| 166 |
+
API_KEY_IOS_APP_BLOCKED = 13;
|
| 167 |
+
|
| 168 |
+
// The request is denied because there is not enough rate quota for the
|
| 169 |
+
// consumer.
|
| 170 |
+
//
|
| 171 |
+
// Example of an ErrorInfo when the consumer "projects/123" fails to contact
|
| 172 |
+
// "pubsub.googleapis.com" service because consumer's rate quota usage has
|
| 173 |
+
// reached the maximum value set for the quota limit
|
| 174 |
+
// "ReadsPerMinutePerProject" on the quota metric
|
| 175 |
+
// "pubsub.googleapis.com/read_requests":
|
| 176 |
+
//
|
| 177 |
+
// { "reason": "RATE_LIMIT_EXCEEDED",
|
| 178 |
+
// "domain": "googleapis.com",
|
| 179 |
+
// "metadata": {
|
| 180 |
+
// "consumer": "projects/123",
|
| 181 |
+
// "service": "pubsub.googleapis.com",
|
| 182 |
+
// "quota_metric": "pubsub.googleapis.com/read_requests",
|
| 183 |
+
// "quota_limit": "ReadsPerMinutePerProject"
|
| 184 |
+
// }
|
| 185 |
+
// }
|
| 186 |
+
//
|
| 187 |
+
// Example of an ErrorInfo when the consumer "projects/123" checks quota on
|
| 188 |
+
// the service "dataflow.googleapis.com" and hits the organization quota
|
| 189 |
+
// limit "DefaultRequestsPerMinutePerOrganization" on the metric
|
| 190 |
+
// "dataflow.googleapis.com/default_requests".
|
| 191 |
+
//
|
| 192 |
+
// { "reason": "RATE_LIMIT_EXCEEDED",
|
| 193 |
+
// "domain": "googleapis.com",
|
| 194 |
+
// "metadata": {
|
| 195 |
+
// "consumer": "projects/123",
|
| 196 |
+
// "service": "dataflow.googleapis.com",
|
| 197 |
+
// "quota_metric": "dataflow.googleapis.com/default_requests",
|
| 198 |
+
// "quota_limit": "DefaultRequestsPerMinutePerOrganization"
|
| 199 |
+
// }
|
| 200 |
+
// }
|
| 201 |
+
RATE_LIMIT_EXCEEDED = 5;
|
| 202 |
+
|
| 203 |
+
// The request is denied because there is not enough resource quota for the
|
| 204 |
+
// consumer.
|
| 205 |
+
//
|
| 206 |
+
// Example of an ErrorInfo when the consumer "projects/123" fails to contact
|
| 207 |
+
// "compute.googleapis.com" service because consumer's resource quota usage
|
| 208 |
+
// has reached the maximum value set for the quota limit "VMsPerProject"
|
| 209 |
+
// on the quota metric "compute.googleapis.com/vms":
|
| 210 |
+
//
|
| 211 |
+
// { "reason": "RESOURCE_QUOTA_EXCEEDED",
|
| 212 |
+
// "domain": "googleapis.com",
|
| 213 |
+
// "metadata": {
|
| 214 |
+
// "consumer": "projects/123",
|
| 215 |
+
// "service": "compute.googleapis.com",
|
| 216 |
+
// "quota_metric": "compute.googleapis.com/vms",
|
| 217 |
+
// "quota_limit": "VMsPerProject"
|
| 218 |
+
// }
|
| 219 |
+
// }
|
| 220 |
+
//
|
| 221 |
+
// Example of an ErrorInfo when the consumer "projects/123" checks resource
|
| 222 |
+
// quota on the service "dataflow.googleapis.com" and hits the organization
|
| 223 |
+
// quota limit "jobs-per-organization" on the metric
|
| 224 |
+
// "dataflow.googleapis.com/job_count".
|
| 225 |
+
//
|
| 226 |
+
// { "reason": "RESOURCE_QUOTA_EXCEEDED",
|
| 227 |
+
// "domain": "googleapis.com",
|
| 228 |
+
// "metadata": {
|
| 229 |
+
// "consumer": "projects/123",
|
| 230 |
+
// "service": "dataflow.googleapis.com",
|
| 231 |
+
// "quota_metric": "dataflow.googleapis.com/job_count",
|
| 232 |
+
// "quota_limit": "jobs-per-organization"
|
| 233 |
+
// }
|
| 234 |
+
// }
|
| 235 |
+
RESOURCE_QUOTA_EXCEEDED = 6;
|
| 236 |
+
|
| 237 |
+
// The request whose associated billing account address is in a tax restricted
|
| 238 |
+
// location, violates the local tax restrictions when creating resources in
|
| 239 |
+
// the restricted region.
|
| 240 |
+
//
|
| 241 |
+
// Example of an ErrorInfo when creating the Cloud Storage Bucket in the
|
| 242 |
+
// container "projects/123" under a tax restricted region
|
| 243 |
+
// "locations/asia-northeast3":
|
| 244 |
+
//
|
| 245 |
+
// { "reason": "LOCATION_TAX_POLICY_VIOLATED",
|
| 246 |
+
// "domain": "googleapis.com",
|
| 247 |
+
// "metadata": {
|
| 248 |
+
// "consumer": "projects/123",
|
| 249 |
+
// "service": "storage.googleapis.com",
|
| 250 |
+
// "location": "locations/asia-northeast3"
|
| 251 |
+
// }
|
| 252 |
+
// }
|
| 253 |
+
//
|
| 254 |
+
// This response indicates creating the Cloud Storage Bucket in
|
| 255 |
+
// "locations/asia-northeast3" violates the location tax restriction.
|
| 256 |
+
LOCATION_TAX_POLICY_VIOLATED = 10;
|
| 257 |
+
|
| 258 |
+
// The request is denied because the caller does not have required permission
|
| 259 |
+
// on the user project "projects/123" or the user project is invalid. For more
|
| 260 |
+
// information, check the [userProject System
|
| 261 |
+
// Parameters](https://cloud.google.com/apis/docs/system-parameters).
|
| 262 |
+
//
|
| 263 |
+
// Example of an ErrorInfo when the caller is calling Cloud Storage service
|
| 264 |
+
// with insufficient permissions on the user project:
|
| 265 |
+
//
|
| 266 |
+
// { "reason": "USER_PROJECT_DENIED",
|
| 267 |
+
// "domain": "googleapis.com",
|
| 268 |
+
// "metadata": {
|
| 269 |
+
// "consumer": "projects/123",
|
| 270 |
+
// "service": "storage.googleapis.com"
|
| 271 |
+
// }
|
| 272 |
+
// }
|
| 273 |
+
USER_PROJECT_DENIED = 11;
|
| 274 |
+
|
| 275 |
+
// The request is denied because the consumer "projects/123" is suspended due
|
| 276 |
+
// to Terms of Service(Tos) violations. Check [Project suspension
|
| 277 |
+
// guidelines](https://cloud.google.com/resource-manager/docs/project-suspension-guidelines)
|
| 278 |
+
// for more information.
|
| 279 |
+
//
|
| 280 |
+
// Example of an ErrorInfo when calling Cloud Storage service with the
|
| 281 |
+
// suspended consumer "projects/123":
|
| 282 |
+
//
|
| 283 |
+
// { "reason": "CONSUMER_SUSPENDED",
|
| 284 |
+
// "domain": "googleapis.com",
|
| 285 |
+
// "metadata": {
|
| 286 |
+
// "consumer": "projects/123",
|
| 287 |
+
// "service": "storage.googleapis.com"
|
| 288 |
+
// }
|
| 289 |
+
// }
|
| 290 |
+
CONSUMER_SUSPENDED = 12;
|
| 291 |
+
|
| 292 |
+
// The request is denied because the associated consumer is invalid. It may be
|
| 293 |
+
// in a bad format, cannot be found, or have been deleted.
|
| 294 |
+
//
|
| 295 |
+
// Example of an ErrorInfo when calling Cloud Storage service with the
|
| 296 |
+
// invalid consumer "projects/123":
|
| 297 |
+
//
|
| 298 |
+
// { "reason": "CONSUMER_INVALID",
|
| 299 |
+
// "domain": "googleapis.com",
|
| 300 |
+
// "metadata": {
|
| 301 |
+
// "consumer": "projects/123",
|
| 302 |
+
// "service": "storage.googleapis.com"
|
| 303 |
+
// }
|
| 304 |
+
// }
|
| 305 |
+
CONSUMER_INVALID = 14;
|
| 306 |
+
|
| 307 |
+
// The request is denied because it violates [VPC Service
|
| 308 |
+
// Controls](https://cloud.google.com/vpc-service-controls/docs/overview).
|
| 309 |
+
// The 'uid' field is a random generated identifier that customer can use it
|
| 310 |
+
// to search the audit log for a request rejected by VPC Service Controls. For
|
| 311 |
+
// more information, please refer [VPC Service Controls
|
| 312 |
+
// Troubleshooting](https://cloud.google.com/vpc-service-controls/docs/troubleshooting#unique-id)
|
| 313 |
+
//
|
| 314 |
+
// Example of an ErrorInfo when the consumer "projects/123" fails to call
|
| 315 |
+
// Cloud Storage service because the request is prohibited by the VPC Service
|
| 316 |
+
// Controls.
|
| 317 |
+
//
|
| 318 |
+
// { "reason": "SECURITY_POLICY_VIOLATED",
|
| 319 |
+
// "domain": "googleapis.com",
|
| 320 |
+
// "metadata": {
|
| 321 |
+
// "uid": "123456789abcde",
|
| 322 |
+
// "consumer": "projects/123",
|
| 323 |
+
// "service": "storage.googleapis.com"
|
| 324 |
+
// }
|
| 325 |
+
// }
|
| 326 |
+
SECURITY_POLICY_VIOLATED = 15;
|
| 327 |
+
|
| 328 |
+
// The request is denied because the provided access token has expired.
|
| 329 |
+
//
|
| 330 |
+
// Example of an ErrorInfo when the request is calling Cloud Storage service
|
| 331 |
+
// with an expired access token:
|
| 332 |
+
//
|
| 333 |
+
// { "reason": "ACCESS_TOKEN_EXPIRED",
|
| 334 |
+
// "domain": "googleapis.com",
|
| 335 |
+
// "metadata": {
|
| 336 |
+
// "service": "storage.googleapis.com",
|
| 337 |
+
// "method": "google.storage.v1.Storage.GetObject"
|
| 338 |
+
// }
|
| 339 |
+
// }
|
| 340 |
+
ACCESS_TOKEN_EXPIRED = 16;
|
| 341 |
+
|
| 342 |
+
// The request is denied because the provided access token doesn't have at
|
| 343 |
+
// least one of the acceptable scopes required for the API. Please check
|
| 344 |
+
// [OAuth 2.0 Scopes for Google
|
| 345 |
+
// APIs](https://developers.google.com/identity/protocols/oauth2/scopes) for
|
| 346 |
+
// the list of the OAuth 2.0 scopes that you might need to request to access
|
| 347 |
+
// the API.
|
| 348 |
+
//
|
| 349 |
+
// Example of an ErrorInfo when the request is calling Cloud Storage service
|
| 350 |
+
// with an access token that is missing required scopes:
|
| 351 |
+
//
|
| 352 |
+
// { "reason": "ACCESS_TOKEN_SCOPE_INSUFFICIENT",
|
| 353 |
+
// "domain": "googleapis.com",
|
| 354 |
+
// "metadata": {
|
| 355 |
+
// "service": "storage.googleapis.com",
|
| 356 |
+
// "method": "google.storage.v1.Storage.GetObject"
|
| 357 |
+
// }
|
| 358 |
+
// }
|
| 359 |
+
ACCESS_TOKEN_SCOPE_INSUFFICIENT = 17;
|
| 360 |
+
|
| 361 |
+
// The request is denied because the account associated with the provided
|
| 362 |
+
// access token is in an invalid state, such as disabled or deleted.
|
| 363 |
+
// For more information, see https://cloud.google.com/docs/authentication.
|
| 364 |
+
//
|
| 365 |
+
// Warning: For privacy reasons, the server may not be able to disclose the
|
| 366 |
+
// email address for some accounts. The client MUST NOT depend on the
|
| 367 |
+
// availability of the `email` attribute.
|
| 368 |
+
//
|
| 369 |
+
// Example of an ErrorInfo when the request is to the Cloud Storage API with
|
| 370 |
+
// an access token that is associated with a disabled or deleted [service
|
| 371 |
+
// account](http://cloud/iam/docs/service-accounts):
|
| 372 |
+
//
|
| 373 |
+
// { "reason": "ACCOUNT_STATE_INVALID",
|
| 374 |
+
// "domain": "googleapis.com",
|
| 375 |
+
// "metadata": {
|
| 376 |
+
// "service": "storage.googleapis.com",
|
| 377 |
+
// "method": "google.storage.v1.Storage.GetObject",
|
| 378 |
+
// "email": "user@123.iam.gserviceaccount.com"
|
| 379 |
+
// }
|
| 380 |
+
// }
|
| 381 |
+
ACCOUNT_STATE_INVALID = 18;
|
| 382 |
+
|
| 383 |
+
// The request is denied because the type of the provided access token is not
|
| 384 |
+
// supported by the API being called.
|
| 385 |
+
//
|
| 386 |
+
// Example of an ErrorInfo when the request is to the Cloud Storage API with
|
| 387 |
+
// an unsupported token type.
|
| 388 |
+
//
|
| 389 |
+
// { "reason": "ACCESS_TOKEN_TYPE_UNSUPPORTED",
|
| 390 |
+
// "domain": "googleapis.com",
|
| 391 |
+
// "metadata": {
|
| 392 |
+
// "service": "storage.googleapis.com",
|
| 393 |
+
// "method": "google.storage.v1.Storage.GetObject"
|
| 394 |
+
// }
|
| 395 |
+
// }
|
| 396 |
+
ACCESS_TOKEN_TYPE_UNSUPPORTED = 19;
|
| 397 |
+
|
| 398 |
+
// The request is denied because the request doesn't have any authentication
|
| 399 |
+
// credentials. For more information regarding the supported authentication
|
| 400 |
+
// strategies for Google Cloud APIs, see
|
| 401 |
+
// https://cloud.google.com/docs/authentication.
|
| 402 |
+
//
|
| 403 |
+
// Example of an ErrorInfo when the request is to the Cloud Storage API
|
| 404 |
+
// without any authentication credentials.
|
| 405 |
+
//
|
| 406 |
+
// { "reason": "CREDENTIALS_MISSING",
|
| 407 |
+
// "domain": "googleapis.com",
|
| 408 |
+
// "metadata": {
|
| 409 |
+
// "service": "storage.googleapis.com",
|
| 410 |
+
// "method": "google.storage.v1.Storage.GetObject"
|
| 411 |
+
// }
|
| 412 |
+
// }
|
| 413 |
+
CREDENTIALS_MISSING = 20;
|
| 414 |
+
|
| 415 |
+
// The request is denied because the provided project owning the resource
|
| 416 |
+
// which acts as the [API
|
| 417 |
+
// consumer](https://cloud.google.com/apis/design/glossary#api_consumer) is
|
| 418 |
+
// invalid. It may be in a bad format or empty.
|
| 419 |
+
//
|
| 420 |
+
// Example of an ErrorInfo when the request is to the Cloud Functions API,
|
| 421 |
+
// but the offered resource project in the request in a bad format which can't
|
| 422 |
+
// perform the ListFunctions method.
|
| 423 |
+
//
|
| 424 |
+
// { "reason": "RESOURCE_PROJECT_INVALID",
|
| 425 |
+
// "domain": "googleapis.com",
|
| 426 |
+
// "metadata": {
|
| 427 |
+
// "service": "cloudfunctions.googleapis.com",
|
| 428 |
+
// "method":
|
| 429 |
+
// "google.cloud.functions.v1.CloudFunctionsService.ListFunctions"
|
| 430 |
+
// }
|
| 431 |
+
// }
|
| 432 |
+
RESOURCE_PROJECT_INVALID = 21;
|
| 433 |
+
|
| 434 |
+
// The request is denied because the provided session cookie is missing,
|
| 435 |
+
// invalid or failed to decode.
|
| 436 |
+
//
|
| 437 |
+
// Example of an ErrorInfo when the request is calling Cloud Storage service
|
| 438 |
+
// with a SID cookie which can't be decoded.
|
| 439 |
+
//
|
| 440 |
+
// { "reason": "SESSION_COOKIE_INVALID",
|
| 441 |
+
// "domain": "googleapis.com",
|
| 442 |
+
// "metadata": {
|
| 443 |
+
// "service": "storage.googleapis.com",
|
| 444 |
+
// "method": "google.storage.v1.Storage.GetObject",
|
| 445 |
+
// "cookie": "SID"
|
| 446 |
+
// }
|
| 447 |
+
// }
|
| 448 |
+
SESSION_COOKIE_INVALID = 23;
|
| 449 |
+
|
| 450 |
+
// The request is denied because the user is from a Google Workspace customer
|
| 451 |
+
// that blocks their users from accessing a particular service.
|
| 452 |
+
//
|
| 453 |
+
// Example scenario: https://support.google.com/a/answer/9197205?hl=en
|
| 454 |
+
//
|
| 455 |
+
// Example of an ErrorInfo when access to Google Cloud Storage service is
|
| 456 |
+
// blocked by the Google Workspace administrator:
|
| 457 |
+
//
|
| 458 |
+
// { "reason": "USER_BLOCKED_BY_ADMIN",
|
| 459 |
+
// "domain": "googleapis.com",
|
| 460 |
+
// "metadata": {
|
| 461 |
+
// "service": "storage.googleapis.com",
|
| 462 |
+
// "method": "google.storage.v1.Storage.GetObject",
|
| 463 |
+
// }
|
| 464 |
+
// }
|
| 465 |
+
USER_BLOCKED_BY_ADMIN = 24;
|
| 466 |
+
|
| 467 |
+
// The request is denied because the resource service usage is restricted
|
| 468 |
+
// by administrators according to the organization policy constraint.
|
| 469 |
+
// For more information see
|
| 470 |
+
// https://cloud.google.com/resource-manager/docs/organization-policy/restricting-services.
|
| 471 |
+
//
|
| 472 |
+
// Example of an ErrorInfo when access to Google Cloud Storage service is
|
| 473 |
+
// restricted by Resource Usage Restriction policy:
|
| 474 |
+
//
|
| 475 |
+
// { "reason": "RESOURCE_USAGE_RESTRICTION_VIOLATED",
|
| 476 |
+
// "domain": "googleapis.com",
|
| 477 |
+
// "metadata": {
|
| 478 |
+
// "consumer": "projects/project-123",
|
| 479 |
+
// "service": "storage.googleapis.com"
|
| 480 |
+
// }
|
| 481 |
+
// }
|
| 482 |
+
RESOURCE_USAGE_RESTRICTION_VIOLATED = 25;
|
| 483 |
+
|
| 484 |
+
// Unimplemented. Do not use.
|
| 485 |
+
//
|
| 486 |
+
// The request is denied because it contains unsupported system parameters in
|
| 487 |
+
// URL query parameters or HTTP headers. For more information,
|
| 488 |
+
// see https://cloud.google.com/apis/docs/system-parameters
|
| 489 |
+
//
|
| 490 |
+
// Example of an ErrorInfo when access "pubsub.googleapis.com" service with
|
| 491 |
+
// a request header of "x-goog-user-ip":
|
| 492 |
+
//
|
| 493 |
+
// { "reason": "SYSTEM_PARAMETER_UNSUPPORTED",
|
| 494 |
+
// "domain": "googleapis.com",
|
| 495 |
+
// "metadata": {
|
| 496 |
+
// "service": "pubsub.googleapis.com"
|
| 497 |
+
// "parameter": "x-goog-user-ip"
|
| 498 |
+
// }
|
| 499 |
+
// }
|
| 500 |
+
SYSTEM_PARAMETER_UNSUPPORTED = 26;
|
| 501 |
+
|
| 502 |
+
// The request is denied because it violates Org Restriction: the requested
|
| 503 |
+
// resource does not belong to allowed organizations specified in
|
| 504 |
+
// "X-Goog-Allowed-Resources" header.
|
| 505 |
+
//
|
| 506 |
+
// Example of an ErrorInfo when accessing a GCP resource that is restricted by
|
| 507 |
+
// Org Restriction for "pubsub.googleapis.com" service.
|
| 508 |
+
//
|
| 509 |
+
// {
|
| 510 |
+
// reason: "ORG_RESTRICTION_VIOLATION"
|
| 511 |
+
// domain: "googleapis.com"
|
| 512 |
+
// metadata {
|
| 513 |
+
// "consumer":"projects/123456"
|
| 514 |
+
// "service": "pubsub.googleapis.com"
|
| 515 |
+
// }
|
| 516 |
+
// }
|
| 517 |
+
ORG_RESTRICTION_VIOLATION = 27;
|
| 518 |
+
|
| 519 |
+
// The request is denied because "X-Goog-Allowed-Resources" header is in a bad
|
| 520 |
+
// format.
|
| 521 |
+
//
|
| 522 |
+
// Example of an ErrorInfo when
|
| 523 |
+
// accessing "pubsub.googleapis.com" service with an invalid
|
| 524 |
+
// "X-Goog-Allowed-Resources" request header.
|
| 525 |
+
//
|
| 526 |
+
// {
|
| 527 |
+
// reason: "ORG_RESTRICTION_HEADER_INVALID"
|
| 528 |
+
// domain: "googleapis.com"
|
| 529 |
+
// metadata {
|
| 530 |
+
// "consumer":"projects/123456"
|
| 531 |
+
// "service": "pubsub.googleapis.com"
|
| 532 |
+
// }
|
| 533 |
+
// }
|
| 534 |
+
ORG_RESTRICTION_HEADER_INVALID = 28;
|
| 535 |
+
|
| 536 |
+
// Unimplemented. Do not use.
|
| 537 |
+
//
|
| 538 |
+
// The request is calling a service that is not visible to the consumer.
|
| 539 |
+
//
|
| 540 |
+
// Example of an ErrorInfo when the consumer "projects/123" contacting
|
| 541 |
+
// "pubsub.googleapis.com" service which is not visible to the consumer.
|
| 542 |
+
//
|
| 543 |
+
// { "reason": "SERVICE_NOT_VISIBLE",
|
| 544 |
+
// "domain": "googleapis.com",
|
| 545 |
+
// "metadata": {
|
| 546 |
+
// "consumer": "projects/123",
|
| 547 |
+
// "service": "pubsub.googleapis.com"
|
| 548 |
+
// }
|
| 549 |
+
// }
|
| 550 |
+
//
|
| 551 |
+
// This response indicates the "pubsub.googleapis.com" is not visible to
|
| 552 |
+
// "projects/123" (or it may not exist).
|
| 553 |
+
SERVICE_NOT_VISIBLE = 29;
|
| 554 |
+
|
| 555 |
+
// The request is related to a project for which GCP access is suspended.
|
| 556 |
+
//
|
| 557 |
+
// Example of an ErrorInfo when the consumer "projects/123" fails to contact
|
| 558 |
+
// "pubsub.googleapis.com" service because GCP access is suspended:
|
| 559 |
+
//
|
| 560 |
+
// { "reason": "GCP_SUSPENDED",
|
| 561 |
+
// "domain": "googleapis.com",
|
| 562 |
+
// "metadata": {
|
| 563 |
+
// "consumer": "projects/123",
|
| 564 |
+
// "service": "pubsub.googleapis.com"
|
| 565 |
+
// }
|
| 566 |
+
// }
|
| 567 |
+
//
|
| 568 |
+
// This response indicates the associated GCP account has been suspended.
|
| 569 |
+
GCP_SUSPENDED = 30;
|
| 570 |
+
|
| 571 |
+
// The request violates the location policies when creating resources in
|
| 572 |
+
// the restricted region.
|
| 573 |
+
//
|
| 574 |
+
// Example of an ErrorInfo when creating the Cloud Storage Bucket by
|
| 575 |
+
// "projects/123" for service storage.googleapis.com:
|
| 576 |
+
//
|
| 577 |
+
// { "reason": "LOCATION_POLICY_VIOLATED",
|
| 578 |
+
// "domain": "googleapis.com",
|
| 579 |
+
// "metadata": {
|
| 580 |
+
// "consumer": "projects/123",
|
| 581 |
+
// "service": "storage.googleapis.com",
|
| 582 |
+
// }
|
| 583 |
+
// }
|
| 584 |
+
//
|
| 585 |
+
// This response indicates creating the Cloud Storage Bucket in
|
| 586 |
+
// "locations/asia-northeast3" violates at least one location policy.
|
| 587 |
+
// The troubleshooting guidance is provided in the Help links.
|
| 588 |
+
LOCATION_POLICY_VIOLATED = 31;
|
| 589 |
+
|
| 590 |
+
// The request is denied because origin request header is missing.
|
| 591 |
+
//
|
| 592 |
+
// Example of an ErrorInfo when
|
| 593 |
+
// accessing "pubsub.googleapis.com" service with an empty "Origin" request
|
| 594 |
+
// header.
|
| 595 |
+
//
|
| 596 |
+
// {
|
| 597 |
+
// reason: "MISSING_ORIGIN"
|
| 598 |
+
// domain: "googleapis.com"
|
| 599 |
+
// metadata {
|
| 600 |
+
// "consumer":"projects/123456"
|
| 601 |
+
// "service": "pubsub.googleapis.com"
|
| 602 |
+
// }
|
| 603 |
+
// }
|
| 604 |
+
MISSING_ORIGIN = 33;
|
| 605 |
+
|
| 606 |
+
// The request is denied because the request contains more than one credential
|
| 607 |
+
// type that are individually acceptable, but not together. The customer
|
| 608 |
+
// should retry their request with only one set of credentials.
|
| 609 |
+
//
|
| 610 |
+
// Example of an ErrorInfo when
|
| 611 |
+
// accessing "pubsub.googleapis.com" service with overloaded credentials.
|
| 612 |
+
//
|
| 613 |
+
// {
|
| 614 |
+
// reason: "OVERLOADED_CREDENTIALS"
|
| 615 |
+
// domain: "googleapis.com"
|
| 616 |
+
// metadata {
|
| 617 |
+
// "consumer":"projects/123456"
|
| 618 |
+
// "service": "pubsub.googleapis.com"
|
| 619 |
+
// }
|
| 620 |
+
// }
|
| 621 |
+
OVERLOADED_CREDENTIALS = 34;
|
| 622 |
+
}
|
.venv/lib/python3.11/site-packages/google/api/error_reason_pb2.py
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# -*- coding: utf-8 -*-
|
| 2 |
+
|
| 3 |
+
# Copyright 2024 Google LLC
|
| 4 |
+
#
|
| 5 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 6 |
+
# you may not use this file except in compliance with the License.
|
| 7 |
+
# You may obtain a copy of the License at
|
| 8 |
+
#
|
| 9 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 10 |
+
#
|
| 11 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 12 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 13 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 14 |
+
# See the License for the specific language governing permissions and
|
| 15 |
+
# limitations under the License.
|
| 16 |
+
|
| 17 |
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
| 18 |
+
# source: google/api/error_reason.proto
|
| 19 |
+
"""Generated protocol buffer code."""
|
| 20 |
+
from google.protobuf import descriptor as _descriptor
|
| 21 |
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
| 22 |
+
from google.protobuf import symbol_database as _symbol_database
|
| 23 |
+
from google.protobuf.internal import builder as _builder
|
| 24 |
+
|
| 25 |
+
# @@protoc_insertion_point(imports)
|
| 26 |
+
|
| 27 |
+
_sym_db = _symbol_database.Default()
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
| 31 |
+
b'\n\x1dgoogle/api/error_reason.proto\x12\ngoogle.api*\xba\x07\n\x0b\x45rrorReason\x12\x1c\n\x18\x45RROR_REASON_UNSPECIFIED\x10\x00\x12\x14\n\x10SERVICE_DISABLED\x10\x01\x12\x14\n\x10\x42ILLING_DISABLED\x10\x02\x12\x13\n\x0f\x41PI_KEY_INVALID\x10\x03\x12\x1b\n\x17\x41PI_KEY_SERVICE_BLOCKED\x10\x04\x12!\n\x1d\x41PI_KEY_HTTP_REFERRER_BLOCKED\x10\x07\x12\x1e\n\x1a\x41PI_KEY_IP_ADDRESS_BLOCKED\x10\x08\x12\x1f\n\x1b\x41PI_KEY_ANDROID_APP_BLOCKED\x10\t\x12\x1b\n\x17\x41PI_KEY_IOS_APP_BLOCKED\x10\r\x12\x17\n\x13RATE_LIMIT_EXCEEDED\x10\x05\x12\x1b\n\x17RESOURCE_QUOTA_EXCEEDED\x10\x06\x12 \n\x1cLOCATION_TAX_POLICY_VIOLATED\x10\n\x12\x17\n\x13USER_PROJECT_DENIED\x10\x0b\x12\x16\n\x12\x43ONSUMER_SUSPENDED\x10\x0c\x12\x14\n\x10\x43ONSUMER_INVALID\x10\x0e\x12\x1c\n\x18SECURITY_POLICY_VIOLATED\x10\x0f\x12\x18\n\x14\x41\x43\x43\x45SS_TOKEN_EXPIRED\x10\x10\x12#\n\x1f\x41\x43\x43\x45SS_TOKEN_SCOPE_INSUFFICIENT\x10\x11\x12\x19\n\x15\x41\x43\x43OUNT_STATE_INVALID\x10\x12\x12!\n\x1d\x41\x43\x43\x45SS_TOKEN_TYPE_UNSUPPORTED\x10\x13\x12\x17\n\x13\x43REDENTIALS_MISSING\x10\x14\x12\x1c\n\x18RESOURCE_PROJECT_INVALID\x10\x15\x12\x1a\n\x16SESSION_COOKIE_INVALID\x10\x17\x12\x19\n\x15USER_BLOCKED_BY_ADMIN\x10\x18\x12\'\n#RESOURCE_USAGE_RESTRICTION_VIOLATED\x10\x19\x12 \n\x1cSYSTEM_PARAMETER_UNSUPPORTED\x10\x1a\x12\x1d\n\x19ORG_RESTRICTION_VIOLATION\x10\x1b\x12"\n\x1eORG_RESTRICTION_HEADER_INVALID\x10\x1c\x12\x17\n\x13SERVICE_NOT_VISIBLE\x10\x1d\x12\x11\n\rGCP_SUSPENDED\x10\x1e\x12\x1c\n\x18LOCATION_POLICY_VIOLATED\x10\x1f\x12\x12\n\x0eMISSING_ORIGIN\x10!\x12\x1a\n\x16OVERLOADED_CREDENTIALS\x10"Bp\n\x0e\x63om.google.apiB\x10\x45rrorReasonProtoP\x01ZCgoogle.golang.org/genproto/googleapis/api/error_reason;error_reason\xa2\x02\x04GAPIb\x06proto3'
|
| 32 |
+
)
|
| 33 |
+
|
| 34 |
+
_globals = globals()
|
| 35 |
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
| 36 |
+
_builder.BuildTopDescriptorsAndMessages(
|
| 37 |
+
DESCRIPTOR, "google.api.error_reason_pb2", _globals
|
| 38 |
+
)
|
| 39 |
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
| 40 |
+
DESCRIPTOR._options = None
|
| 41 |
+
DESCRIPTOR._serialized_options = b"\n\016com.google.apiB\020ErrorReasonProtoP\001ZCgoogle.golang.org/genproto/googleapis/api/error_reason;error_reason\242\002\004GAPI"
|
| 42 |
+
_globals["_ERRORREASON"]._serialized_start = 46
|
| 43 |
+
_globals["_ERRORREASON"]._serialized_end = 1000
|
| 44 |
+
# @@protoc_insertion_point(module_scope)
|
.venv/lib/python3.11/site-packages/google/api/field_behavior_pb2.py
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# -*- coding: utf-8 -*-
|
| 2 |
+
|
| 3 |
+
# Copyright 2024 Google LLC
|
| 4 |
+
#
|
| 5 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 6 |
+
# you may not use this file except in compliance with the License.
|
| 7 |
+
# You may obtain a copy of the License at
|
| 8 |
+
#
|
| 9 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 10 |
+
#
|
| 11 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 12 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 13 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 14 |
+
# See the License for the specific language governing permissions and
|
| 15 |
+
# limitations under the License.
|
| 16 |
+
|
| 17 |
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
| 18 |
+
# source: google/api/field_behavior.proto
|
| 19 |
+
"""Generated protocol buffer code."""
|
| 20 |
+
from google.protobuf import descriptor as _descriptor
|
| 21 |
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
| 22 |
+
from google.protobuf import symbol_database as _symbol_database
|
| 23 |
+
from google.protobuf.internal import builder as _builder
|
| 24 |
+
|
| 25 |
+
# @@protoc_insertion_point(imports)
|
| 26 |
+
|
| 27 |
+
_sym_db = _symbol_database.Default()
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
from google.protobuf import descriptor_pb2 as google_dot_protobuf_dot_descriptor__pb2
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
| 34 |
+
b"\n\x1fgoogle/api/field_behavior.proto\x12\ngoogle.api\x1a google/protobuf/descriptor.proto*\xb6\x01\n\rFieldBehavior\x12\x1e\n\x1a\x46IELD_BEHAVIOR_UNSPECIFIED\x10\x00\x12\x0c\n\x08OPTIONAL\x10\x01\x12\x0c\n\x08REQUIRED\x10\x02\x12\x0f\n\x0bOUTPUT_ONLY\x10\x03\x12\x0e\n\nINPUT_ONLY\x10\x04\x12\r\n\tIMMUTABLE\x10\x05\x12\x12\n\x0eUNORDERED_LIST\x10\x06\x12\x15\n\x11NON_EMPTY_DEFAULT\x10\x07\x12\x0e\n\nIDENTIFIER\x10\x08:U\n\x0e\x66ield_behavior\x12\x1d.google.protobuf.FieldOptions\x18\x9c\x08 \x03(\x0e\x32\x19.google.api.FieldBehaviorB\x02\x10\x00\x42p\n\x0e\x63om.google.apiB\x12\x46ieldBehaviorProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xa2\x02\x04GAPIb\x06proto3"
|
| 35 |
+
)
|
| 36 |
+
|
| 37 |
+
_globals = globals()
|
| 38 |
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
| 39 |
+
_builder.BuildTopDescriptorsAndMessages(
|
| 40 |
+
DESCRIPTOR, "google.api.field_behavior_pb2", _globals
|
| 41 |
+
)
|
| 42 |
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
| 43 |
+
DESCRIPTOR._options = None
|
| 44 |
+
DESCRIPTOR._serialized_options = b"\n\016com.google.apiB\022FieldBehaviorProtoP\001ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\242\002\004GAPI"
|
| 45 |
+
field_behavior._options = None
|
| 46 |
+
field_behavior._serialized_options = b"\020\000"
|
| 47 |
+
_globals["_FIELDBEHAVIOR"]._serialized_start = 82
|
| 48 |
+
_globals["_FIELDBEHAVIOR"]._serialized_end = 264
|
| 49 |
+
# @@protoc_insertion_point(module_scope)
|
.venv/lib/python3.11/site-packages/google/api/field_info.proto
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2024 Google LLC
|
| 2 |
+
//
|
| 3 |
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
// you may not use this file except in compliance with the License.
|
| 5 |
+
// You may obtain a copy of the License at
|
| 6 |
+
//
|
| 7 |
+
// http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
//
|
| 9 |
+
// Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
// See the License for the specific language governing permissions and
|
| 13 |
+
// limitations under the License.
|
| 14 |
+
|
| 15 |
+
syntax = "proto3";
|
| 16 |
+
|
| 17 |
+
package google.api;
|
| 18 |
+
|
| 19 |
+
import "google/protobuf/descriptor.proto";
|
| 20 |
+
|
| 21 |
+
option go_package = "google.golang.org/genproto/googleapis/api/annotations;annotations";
|
| 22 |
+
option java_multiple_files = true;
|
| 23 |
+
option java_outer_classname = "FieldInfoProto";
|
| 24 |
+
option java_package = "com.google.api";
|
| 25 |
+
option objc_class_prefix = "GAPI";
|
| 26 |
+
|
| 27 |
+
extend google.protobuf.FieldOptions {
|
| 28 |
+
// Rich semantic descriptor of an API field beyond the basic typing.
|
| 29 |
+
//
|
| 30 |
+
// Examples:
|
| 31 |
+
//
|
| 32 |
+
// string request_id = 1 [(google.api.field_info).format = UUID4];
|
| 33 |
+
// string old_ip_address = 2 [(google.api.field_info).format = IPV4];
|
| 34 |
+
// string new_ip_address = 3 [(google.api.field_info).format = IPV6];
|
| 35 |
+
// string actual_ip_address = 4 [
|
| 36 |
+
// (google.api.field_info).format = IPV4_OR_IPV6
|
| 37 |
+
// ];
|
| 38 |
+
// google.protobuf.Any generic_field = 5 [
|
| 39 |
+
// (google.api.field_info).referenced_types = {type_name: "ActualType"},
|
| 40 |
+
// (google.api.field_info).referenced_types = {type_name: "OtherType"},
|
| 41 |
+
// ];
|
| 42 |
+
// google.protobuf.Any generic_user_input = 5 [
|
| 43 |
+
// (google.api.field_info).referenced_types = {type_name: "*"},
|
| 44 |
+
// ];
|
| 45 |
+
google.api.FieldInfo field_info = 291403980;
|
| 46 |
+
}
|
| 47 |
+
|
| 48 |
+
// Rich semantic information of an API field beyond basic typing.
|
| 49 |
+
message FieldInfo {
|
| 50 |
+
// The standard format of a field value. The supported formats are all backed
|
| 51 |
+
// by either an RFC defined by the IETF or a Google-defined AIP.
|
| 52 |
+
enum Format {
|
| 53 |
+
// Default, unspecified value.
|
| 54 |
+
FORMAT_UNSPECIFIED = 0;
|
| 55 |
+
|
| 56 |
+
// Universally Unique Identifier, version 4, value as defined by
|
| 57 |
+
// https://datatracker.ietf.org/doc/html/rfc4122. The value may be
|
| 58 |
+
// normalized to entirely lowercase letters. For example, the value
|
| 59 |
+
// `F47AC10B-58CC-0372-8567-0E02B2C3D479` would be normalized to
|
| 60 |
+
// `f47ac10b-58cc-0372-8567-0e02b2c3d479`.
|
| 61 |
+
UUID4 = 1;
|
| 62 |
+
|
| 63 |
+
// Internet Protocol v4 value as defined by [RFC
|
| 64 |
+
// 791](https://datatracker.ietf.org/doc/html/rfc791). The value may be
|
| 65 |
+
// condensed, with leading zeros in each octet stripped. For example,
|
| 66 |
+
// `001.022.233.040` would be condensed to `1.22.233.40`.
|
| 67 |
+
IPV4 = 2;
|
| 68 |
+
|
| 69 |
+
// Internet Protocol v6 value as defined by [RFC
|
| 70 |
+
// 2460](https://datatracker.ietf.org/doc/html/rfc2460). The value may be
|
| 71 |
+
// normalized to entirely lowercase letters with zeros compressed, following
|
| 72 |
+
// [RFC 5952](https://datatracker.ietf.org/doc/html/rfc5952). For example,
|
| 73 |
+
// the value `2001:0DB8:0::0` would be normalized to `2001:db8::`.
|
| 74 |
+
IPV6 = 3;
|
| 75 |
+
|
| 76 |
+
// An IP address in either v4 or v6 format as described by the individual
|
| 77 |
+
// values defined herein. See the comments on the IPV4 and IPV6 types for
|
| 78 |
+
// allowed normalizations of each.
|
| 79 |
+
IPV4_OR_IPV6 = 4;
|
| 80 |
+
}
|
| 81 |
+
|
| 82 |
+
// The standard format of a field value. This does not explicitly configure
|
| 83 |
+
// any API consumer, just documents the API's format for the field it is
|
| 84 |
+
// applied to.
|
| 85 |
+
Format format = 1;
|
| 86 |
+
|
| 87 |
+
// The type(s) that the annotated, generic field may represent.
|
| 88 |
+
//
|
| 89 |
+
// Currently, this must only be used on fields of type `google.protobuf.Any`.
|
| 90 |
+
// Supporting other generic types may be considered in the future.
|
| 91 |
+
repeated TypeReference referenced_types = 2;
|
| 92 |
+
}
|
| 93 |
+
|
| 94 |
+
// A reference to a message type, for use in [FieldInfo][google.api.FieldInfo].
|
| 95 |
+
message TypeReference {
|
| 96 |
+
// The name of the type that the annotated, generic field may represent.
|
| 97 |
+
// If the type is in the same protobuf package, the value can be the simple
|
| 98 |
+
// message name e.g., `"MyMessage"`. Otherwise, the value must be the
|
| 99 |
+
// fully-qualified message name e.g., `"google.library.v1.Book"`.
|
| 100 |
+
//
|
| 101 |
+
// If the type(s) are unknown to the service (e.g. the field accepts generic
|
| 102 |
+
// user input), use the wildcard `"*"` to denote this behavior.
|
| 103 |
+
//
|
| 104 |
+
// See [AIP-202](https://google.aip.dev/202#type-references) for more details.
|
| 105 |
+
string type_name = 1;
|
| 106 |
+
}
|
.venv/lib/python3.11/site-packages/google/api/field_info_pb2.py
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# -*- coding: utf-8 -*-
|
| 2 |
+
|
| 3 |
+
# Copyright 2024 Google LLC
|
| 4 |
+
#
|
| 5 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 6 |
+
# you may not use this file except in compliance with the License.
|
| 7 |
+
# You may obtain a copy of the License at
|
| 8 |
+
#
|
| 9 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 10 |
+
#
|
| 11 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 12 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 13 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 14 |
+
# See the License for the specific language governing permissions and
|
| 15 |
+
# limitations under the License.
|
| 16 |
+
|
| 17 |
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
| 18 |
+
# source: google/api/field_info.proto
|
| 19 |
+
"""Generated protocol buffer code."""
|
| 20 |
+
from google.protobuf import descriptor as _descriptor
|
| 21 |
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
| 22 |
+
from google.protobuf import symbol_database as _symbol_database
|
| 23 |
+
from google.protobuf.internal import builder as _builder
|
| 24 |
+
|
| 25 |
+
# @@protoc_insertion_point(imports)
|
| 26 |
+
|
| 27 |
+
_sym_db = _symbol_database.Default()
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
from google.protobuf import descriptor_pb2 as google_dot_protobuf_dot_descriptor__pb2
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
| 34 |
+
b'\n\x1bgoogle/api/field_info.proto\x12\ngoogle.api\x1a google/protobuf/descriptor.proto"\xc1\x01\n\tFieldInfo\x12,\n\x06\x66ormat\x18\x01 \x01(\x0e\x32\x1c.google.api.FieldInfo.Format\x12\x33\n\x10referenced_types\x18\x02 \x03(\x0b\x32\x19.google.api.TypeReference"Q\n\x06\x46ormat\x12\x16\n\x12\x46ORMAT_UNSPECIFIED\x10\x00\x12\t\n\x05UUID4\x10\x01\x12\x08\n\x04IPV4\x10\x02\x12\x08\n\x04IPV6\x10\x03\x12\x10\n\x0cIPV4_OR_IPV6\x10\x04""\n\rTypeReference\x12\x11\n\ttype_name\x18\x01 \x01(\t:L\n\nfield_info\x12\x1d.google.protobuf.FieldOptions\x18\xcc\xf1\xf9\x8a\x01 \x01(\x0b\x32\x15.google.api.FieldInfoBl\n\x0e\x63om.google.apiB\x0e\x46ieldInfoProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xa2\x02\x04GAPIb\x06proto3'
|
| 35 |
+
)
|
| 36 |
+
|
| 37 |
+
_globals = globals()
|
| 38 |
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
| 39 |
+
_builder.BuildTopDescriptorsAndMessages(
|
| 40 |
+
DESCRIPTOR, "google.api.field_info_pb2", _globals
|
| 41 |
+
)
|
| 42 |
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
| 43 |
+
DESCRIPTOR._options = None
|
| 44 |
+
DESCRIPTOR._serialized_options = b"\n\016com.google.apiB\016FieldInfoProtoP\001ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\242\002\004GAPI"
|
| 45 |
+
_globals["_FIELDINFO"]._serialized_start = 78
|
| 46 |
+
_globals["_FIELDINFO"]._serialized_end = 271
|
| 47 |
+
_globals["_FIELDINFO_FORMAT"]._serialized_start = 190
|
| 48 |
+
_globals["_FIELDINFO_FORMAT"]._serialized_end = 271
|
| 49 |
+
_globals["_TYPEREFERENCE"]._serialized_start = 273
|
| 50 |
+
_globals["_TYPEREFERENCE"]._serialized_end = 307
|
| 51 |
+
# @@protoc_insertion_point(module_scope)
|
.venv/lib/python3.11/site-packages/google/api/http.proto
ADDED
|
@@ -0,0 +1,371 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2024 Google LLC
|
| 2 |
+
//
|
| 3 |
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
// you may not use this file except in compliance with the License.
|
| 5 |
+
// You may obtain a copy of the License at
|
| 6 |
+
//
|
| 7 |
+
// http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
//
|
| 9 |
+
// Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
// See the License for the specific language governing permissions and
|
| 13 |
+
// limitations under the License.
|
| 14 |
+
|
| 15 |
+
syntax = "proto3";
|
| 16 |
+
|
| 17 |
+
package google.api;
|
| 18 |
+
|
| 19 |
+
option cc_enable_arenas = true;
|
| 20 |
+
option go_package = "google.golang.org/genproto/googleapis/api/annotations;annotations";
|
| 21 |
+
option java_multiple_files = true;
|
| 22 |
+
option java_outer_classname = "HttpProto";
|
| 23 |
+
option java_package = "com.google.api";
|
| 24 |
+
option objc_class_prefix = "GAPI";
|
| 25 |
+
|
| 26 |
+
// Defines the HTTP configuration for an API service. It contains a list of
|
| 27 |
+
// [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method
|
| 28 |
+
// to one or more HTTP REST API methods.
|
| 29 |
+
message Http {
|
| 30 |
+
// A list of HTTP configuration rules that apply to individual API methods.
|
| 31 |
+
//
|
| 32 |
+
// **NOTE:** All service configuration rules follow "last one wins" order.
|
| 33 |
+
repeated HttpRule rules = 1;
|
| 34 |
+
|
| 35 |
+
// When set to true, URL path parameters will be fully URI-decoded except in
|
| 36 |
+
// cases of single segment matches in reserved expansion, where "%2F" will be
|
| 37 |
+
// left encoded.
|
| 38 |
+
//
|
| 39 |
+
// The default behavior is to not decode RFC 6570 reserved characters in multi
|
| 40 |
+
// segment matches.
|
| 41 |
+
bool fully_decode_reserved_expansion = 2;
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
// gRPC Transcoding
|
| 45 |
+
//
|
| 46 |
+
// gRPC Transcoding is a feature for mapping between a gRPC method and one or
|
| 47 |
+
// more HTTP REST endpoints. It allows developers to build a single API service
|
| 48 |
+
// that supports both gRPC APIs and REST APIs. Many systems, including [Google
|
| 49 |
+
// APIs](https://github.com/googleapis/googleapis),
|
| 50 |
+
// [Cloud Endpoints](https://cloud.google.com/endpoints), [gRPC
|
| 51 |
+
// Gateway](https://github.com/grpc-ecosystem/grpc-gateway),
|
| 52 |
+
// and [Envoy](https://github.com/envoyproxy/envoy) proxy support this feature
|
| 53 |
+
// and use it for large scale production services.
|
| 54 |
+
//
|
| 55 |
+
// `HttpRule` defines the schema of the gRPC/REST mapping. The mapping specifies
|
| 56 |
+
// how different portions of the gRPC request message are mapped to the URL
|
| 57 |
+
// path, URL query parameters, and HTTP request body. It also controls how the
|
| 58 |
+
// gRPC response message is mapped to the HTTP response body. `HttpRule` is
|
| 59 |
+
// typically specified as an `google.api.http` annotation on the gRPC method.
|
| 60 |
+
//
|
| 61 |
+
// Each mapping specifies a URL path template and an HTTP method. The path
|
| 62 |
+
// template may refer to one or more fields in the gRPC request message, as long
|
| 63 |
+
// as each field is a non-repeated field with a primitive (non-message) type.
|
| 64 |
+
// The path template controls how fields of the request message are mapped to
|
| 65 |
+
// the URL path.
|
| 66 |
+
//
|
| 67 |
+
// Example:
|
| 68 |
+
//
|
| 69 |
+
// service Messaging {
|
| 70 |
+
// rpc GetMessage(GetMessageRequest) returns (Message) {
|
| 71 |
+
// option (google.api.http) = {
|
| 72 |
+
// get: "/v1/{name=messages/*}"
|
| 73 |
+
// };
|
| 74 |
+
// }
|
| 75 |
+
// }
|
| 76 |
+
// message GetMessageRequest {
|
| 77 |
+
// string name = 1; // Mapped to URL path.
|
| 78 |
+
// }
|
| 79 |
+
// message Message {
|
| 80 |
+
// string text = 1; // The resource content.
|
| 81 |
+
// }
|
| 82 |
+
//
|
| 83 |
+
// This enables an HTTP REST to gRPC mapping as below:
|
| 84 |
+
//
|
| 85 |
+
// - HTTP: `GET /v1/messages/123456`
|
| 86 |
+
// - gRPC: `GetMessage(name: "messages/123456")`
|
| 87 |
+
//
|
| 88 |
+
// Any fields in the request message which are not bound by the path template
|
| 89 |
+
// automatically become HTTP query parameters if there is no HTTP request body.
|
| 90 |
+
// For example:
|
| 91 |
+
//
|
| 92 |
+
// service Messaging {
|
| 93 |
+
// rpc GetMessage(GetMessageRequest) returns (Message) {
|
| 94 |
+
// option (google.api.http) = {
|
| 95 |
+
// get:"/v1/messages/{message_id}"
|
| 96 |
+
// };
|
| 97 |
+
// }
|
| 98 |
+
// }
|
| 99 |
+
// message GetMessageRequest {
|
| 100 |
+
// message SubMessage {
|
| 101 |
+
// string subfield = 1;
|
| 102 |
+
// }
|
| 103 |
+
// string message_id = 1; // Mapped to URL path.
|
| 104 |
+
// int64 revision = 2; // Mapped to URL query parameter `revision`.
|
| 105 |
+
// SubMessage sub = 3; // Mapped to URL query parameter `sub.subfield`.
|
| 106 |
+
// }
|
| 107 |
+
//
|
| 108 |
+
// This enables a HTTP JSON to RPC mapping as below:
|
| 109 |
+
//
|
| 110 |
+
// - HTTP: `GET /v1/messages/123456?revision=2&sub.subfield=foo`
|
| 111 |
+
// - gRPC: `GetMessage(message_id: "123456" revision: 2 sub:
|
| 112 |
+
// SubMessage(subfield: "foo"))`
|
| 113 |
+
//
|
| 114 |
+
// Note that fields which are mapped to URL query parameters must have a
|
| 115 |
+
// primitive type or a repeated primitive type or a non-repeated message type.
|
| 116 |
+
// In the case of a repeated type, the parameter can be repeated in the URL
|
| 117 |
+
// as `...?param=A¶m=B`. In the case of a message type, each field of the
|
| 118 |
+
// message is mapped to a separate parameter, such as
|
| 119 |
+
// `...?foo.a=A&foo.b=B&foo.c=C`.
|
| 120 |
+
//
|
| 121 |
+
// For HTTP methods that allow a request body, the `body` field
|
| 122 |
+
// specifies the mapping. Consider a REST update method on the
|
| 123 |
+
// message resource collection:
|
| 124 |
+
//
|
| 125 |
+
// service Messaging {
|
| 126 |
+
// rpc UpdateMessage(UpdateMessageRequest) returns (Message) {
|
| 127 |
+
// option (google.api.http) = {
|
| 128 |
+
// patch: "/v1/messages/{message_id}"
|
| 129 |
+
// body: "message"
|
| 130 |
+
// };
|
| 131 |
+
// }
|
| 132 |
+
// }
|
| 133 |
+
// message UpdateMessageRequest {
|
| 134 |
+
// string message_id = 1; // mapped to the URL
|
| 135 |
+
// Message message = 2; // mapped to the body
|
| 136 |
+
// }
|
| 137 |
+
//
|
| 138 |
+
// The following HTTP JSON to RPC mapping is enabled, where the
|
| 139 |
+
// representation of the JSON in the request body is determined by
|
| 140 |
+
// protos JSON encoding:
|
| 141 |
+
//
|
| 142 |
+
// - HTTP: `PATCH /v1/messages/123456 { "text": "Hi!" }`
|
| 143 |
+
// - gRPC: `UpdateMessage(message_id: "123456" message { text: "Hi!" })`
|
| 144 |
+
//
|
| 145 |
+
// The special name `*` can be used in the body mapping to define that
|
| 146 |
+
// every field not bound by the path template should be mapped to the
|
| 147 |
+
// request body. This enables the following alternative definition of
|
| 148 |
+
// the update method:
|
| 149 |
+
//
|
| 150 |
+
// service Messaging {
|
| 151 |
+
// rpc UpdateMessage(Message) returns (Message) {
|
| 152 |
+
// option (google.api.http) = {
|
| 153 |
+
// patch: "/v1/messages/{message_id}"
|
| 154 |
+
// body: "*"
|
| 155 |
+
// };
|
| 156 |
+
// }
|
| 157 |
+
// }
|
| 158 |
+
// message Message {
|
| 159 |
+
// string message_id = 1;
|
| 160 |
+
// string text = 2;
|
| 161 |
+
// }
|
| 162 |
+
//
|
| 163 |
+
//
|
| 164 |
+
// The following HTTP JSON to RPC mapping is enabled:
|
| 165 |
+
//
|
| 166 |
+
// - HTTP: `PATCH /v1/messages/123456 { "text": "Hi!" }`
|
| 167 |
+
// - gRPC: `UpdateMessage(message_id: "123456" text: "Hi!")`
|
| 168 |
+
//
|
| 169 |
+
// Note that when using `*` in the body mapping, it is not possible to
|
| 170 |
+
// have HTTP parameters, as all fields not bound by the path end in
|
| 171 |
+
// the body. This makes this option more rarely used in practice when
|
| 172 |
+
// defining REST APIs. The common usage of `*` is in custom methods
|
| 173 |
+
// which don't use the URL at all for transferring data.
|
| 174 |
+
//
|
| 175 |
+
// It is possible to define multiple HTTP methods for one RPC by using
|
| 176 |
+
// the `additional_bindings` option. Example:
|
| 177 |
+
//
|
| 178 |
+
// service Messaging {
|
| 179 |
+
// rpc GetMessage(GetMessageRequest) returns (Message) {
|
| 180 |
+
// option (google.api.http) = {
|
| 181 |
+
// get: "/v1/messages/{message_id}"
|
| 182 |
+
// additional_bindings {
|
| 183 |
+
// get: "/v1/users/{user_id}/messages/{message_id}"
|
| 184 |
+
// }
|
| 185 |
+
// };
|
| 186 |
+
// }
|
| 187 |
+
// }
|
| 188 |
+
// message GetMessageRequest {
|
| 189 |
+
// string message_id = 1;
|
| 190 |
+
// string user_id = 2;
|
| 191 |
+
// }
|
| 192 |
+
//
|
| 193 |
+
// This enables the following two alternative HTTP JSON to RPC mappings:
|
| 194 |
+
//
|
| 195 |
+
// - HTTP: `GET /v1/messages/123456`
|
| 196 |
+
// - gRPC: `GetMessage(message_id: "123456")`
|
| 197 |
+
//
|
| 198 |
+
// - HTTP: `GET /v1/users/me/messages/123456`
|
| 199 |
+
// - gRPC: `GetMessage(user_id: "me" message_id: "123456")`
|
| 200 |
+
//
|
| 201 |
+
// Rules for HTTP mapping
|
| 202 |
+
//
|
| 203 |
+
// 1. Leaf request fields (recursive expansion nested messages in the request
|
| 204 |
+
// message) are classified into three categories:
|
| 205 |
+
// - Fields referred by the path template. They are passed via the URL path.
|
| 206 |
+
// - Fields referred by the [HttpRule.body][google.api.HttpRule.body]. They
|
| 207 |
+
// are passed via the HTTP
|
| 208 |
+
// request body.
|
| 209 |
+
// - All other fields are passed via the URL query parameters, and the
|
| 210 |
+
// parameter name is the field path in the request message. A repeated
|
| 211 |
+
// field can be represented as multiple query parameters under the same
|
| 212 |
+
// name.
|
| 213 |
+
// 2. If [HttpRule.body][google.api.HttpRule.body] is "*", there is no URL
|
| 214 |
+
// query parameter, all fields
|
| 215 |
+
// are passed via URL path and HTTP request body.
|
| 216 |
+
// 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP
|
| 217 |
+
// request body, all
|
| 218 |
+
// fields are passed via URL path and URL query parameters.
|
| 219 |
+
//
|
| 220 |
+
// Path template syntax
|
| 221 |
+
//
|
| 222 |
+
// Template = "/" Segments [ Verb ] ;
|
| 223 |
+
// Segments = Segment { "/" Segment } ;
|
| 224 |
+
// Segment = "*" | "**" | LITERAL | Variable ;
|
| 225 |
+
// Variable = "{" FieldPath [ "=" Segments ] "}" ;
|
| 226 |
+
// FieldPath = IDENT { "." IDENT } ;
|
| 227 |
+
// Verb = ":" LITERAL ;
|
| 228 |
+
//
|
| 229 |
+
// The syntax `*` matches a single URL path segment. The syntax `**` matches
|
| 230 |
+
// zero or more URL path segments, which must be the last part of the URL path
|
| 231 |
+
// except the `Verb`.
|
| 232 |
+
//
|
| 233 |
+
// The syntax `Variable` matches part of the URL path as specified by its
|
| 234 |
+
// template. A variable template must not contain other variables. If a variable
|
| 235 |
+
// matches a single path segment, its template may be omitted, e.g. `{var}`
|
| 236 |
+
// is equivalent to `{var=*}`.
|
| 237 |
+
//
|
| 238 |
+
// The syntax `LITERAL` matches literal text in the URL path. If the `LITERAL`
|
| 239 |
+
// contains any reserved character, such characters should be percent-encoded
|
| 240 |
+
// before the matching.
|
| 241 |
+
//
|
| 242 |
+
// If a variable contains exactly one path segment, such as `"{var}"` or
|
| 243 |
+
// `"{var=*}"`, when such a variable is expanded into a URL path on the client
|
| 244 |
+
// side, all characters except `[-_.~0-9a-zA-Z]` are percent-encoded. The
|
| 245 |
+
// server side does the reverse decoding. Such variables show up in the
|
| 246 |
+
// [Discovery
|
| 247 |
+
// Document](https://developers.google.com/discovery/v1/reference/apis) as
|
| 248 |
+
// `{var}`.
|
| 249 |
+
//
|
| 250 |
+
// If a variable contains multiple path segments, such as `"{var=foo/*}"`
|
| 251 |
+
// or `"{var=**}"`, when such a variable is expanded into a URL path on the
|
| 252 |
+
// client side, all characters except `[-_.~/0-9a-zA-Z]` are percent-encoded.
|
| 253 |
+
// The server side does the reverse decoding, except "%2F" and "%2f" are left
|
| 254 |
+
// unchanged. Such variables show up in the
|
| 255 |
+
// [Discovery
|
| 256 |
+
// Document](https://developers.google.com/discovery/v1/reference/apis) as
|
| 257 |
+
// `{+var}`.
|
| 258 |
+
//
|
| 259 |
+
// Using gRPC API Service Configuration
|
| 260 |
+
//
|
| 261 |
+
// gRPC API Service Configuration (service config) is a configuration language
|
| 262 |
+
// for configuring a gRPC service to become a user-facing product. The
|
| 263 |
+
// service config is simply the YAML representation of the `google.api.Service`
|
| 264 |
+
// proto message.
|
| 265 |
+
//
|
| 266 |
+
// As an alternative to annotating your proto file, you can configure gRPC
|
| 267 |
+
// transcoding in your service config YAML files. You do this by specifying a
|
| 268 |
+
// `HttpRule` that maps the gRPC method to a REST endpoint, achieving the same
|
| 269 |
+
// effect as the proto annotation. This can be particularly useful if you
|
| 270 |
+
// have a proto that is reused in multiple services. Note that any transcoding
|
| 271 |
+
// specified in the service config will override any matching transcoding
|
| 272 |
+
// configuration in the proto.
|
| 273 |
+
//
|
| 274 |
+
// The following example selects a gRPC method and applies an `HttpRule` to it:
|
| 275 |
+
//
|
| 276 |
+
// http:
|
| 277 |
+
// rules:
|
| 278 |
+
// - selector: example.v1.Messaging.GetMessage
|
| 279 |
+
// get: /v1/messages/{message_id}/{sub.subfield}
|
| 280 |
+
//
|
| 281 |
+
// Special notes
|
| 282 |
+
//
|
| 283 |
+
// When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the
|
| 284 |
+
// proto to JSON conversion must follow the [proto3
|
| 285 |
+
// specification](https://developers.google.com/protocol-buffers/docs/proto3#json).
|
| 286 |
+
//
|
| 287 |
+
// While the single segment variable follows the semantics of
|
| 288 |
+
// [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String
|
| 289 |
+
// Expansion, the multi segment variable **does not** follow RFC 6570 Section
|
| 290 |
+
// 3.2.3 Reserved Expansion. The reason is that the Reserved Expansion
|
| 291 |
+
// does not expand special characters like `?` and `#`, which would lead
|
| 292 |
+
// to invalid URLs. As the result, gRPC Transcoding uses a custom encoding
|
| 293 |
+
// for multi segment variables.
|
| 294 |
+
//
|
| 295 |
+
// The path variables **must not** refer to any repeated or mapped field,
|
| 296 |
+
// because client libraries are not capable of handling such variable expansion.
|
| 297 |
+
//
|
| 298 |
+
// The path variables **must not** capture the leading "/" character. The reason
|
| 299 |
+
// is that the most common use case "{var}" does not capture the leading "/"
|
| 300 |
+
// character. For consistency, all path variables must share the same behavior.
|
| 301 |
+
//
|
| 302 |
+
// Repeated message fields must not be mapped to URL query parameters, because
|
| 303 |
+
// no client library can support such complicated mapping.
|
| 304 |
+
//
|
| 305 |
+
// If an API needs to use a JSON array for request or response body, it can map
|
| 306 |
+
// the request or response body to a repeated field. However, some gRPC
|
| 307 |
+
// Transcoding implementations may not support this feature.
|
| 308 |
+
message HttpRule {
|
| 309 |
+
// Selects a method to which this rule applies.
|
| 310 |
+
//
|
| 311 |
+
// Refer to [selector][google.api.DocumentationRule.selector] for syntax
|
| 312 |
+
// details.
|
| 313 |
+
string selector = 1;
|
| 314 |
+
|
| 315 |
+
// Determines the URL pattern is matched by this rules. This pattern can be
|
| 316 |
+
// used with any of the {get|put|post|delete|patch} methods. A custom method
|
| 317 |
+
// can be defined using the 'custom' field.
|
| 318 |
+
oneof pattern {
|
| 319 |
+
// Maps to HTTP GET. Used for listing and getting information about
|
| 320 |
+
// resources.
|
| 321 |
+
string get = 2;
|
| 322 |
+
|
| 323 |
+
// Maps to HTTP PUT. Used for replacing a resource.
|
| 324 |
+
string put = 3;
|
| 325 |
+
|
| 326 |
+
// Maps to HTTP POST. Used for creating a resource or performing an action.
|
| 327 |
+
string post = 4;
|
| 328 |
+
|
| 329 |
+
// Maps to HTTP DELETE. Used for deleting a resource.
|
| 330 |
+
string delete = 5;
|
| 331 |
+
|
| 332 |
+
// Maps to HTTP PATCH. Used for updating a resource.
|
| 333 |
+
string patch = 6;
|
| 334 |
+
|
| 335 |
+
// The custom pattern is used for specifying an HTTP method that is not
|
| 336 |
+
// included in the `pattern` field, such as HEAD, or "*" to leave the
|
| 337 |
+
// HTTP method unspecified for this rule. The wild-card rule is useful
|
| 338 |
+
// for services that provide content to Web (HTML) clients.
|
| 339 |
+
CustomHttpPattern custom = 8;
|
| 340 |
+
}
|
| 341 |
+
|
| 342 |
+
// The name of the request field whose value is mapped to the HTTP request
|
| 343 |
+
// body, or `*` for mapping all request fields not captured by the path
|
| 344 |
+
// pattern to the HTTP body, or omitted for not having any HTTP request body.
|
| 345 |
+
//
|
| 346 |
+
// NOTE: the referred field must be present at the top-level of the request
|
| 347 |
+
// message type.
|
| 348 |
+
string body = 7;
|
| 349 |
+
|
| 350 |
+
// Optional. The name of the response field whose value is mapped to the HTTP
|
| 351 |
+
// response body. When omitted, the entire response message will be used
|
| 352 |
+
// as the HTTP response body.
|
| 353 |
+
//
|
| 354 |
+
// NOTE: The referred field must be present at the top-level of the response
|
| 355 |
+
// message type.
|
| 356 |
+
string response_body = 12;
|
| 357 |
+
|
| 358 |
+
// Additional HTTP bindings for the selector. Nested bindings must
|
| 359 |
+
// not contain an `additional_bindings` field themselves (that is,
|
| 360 |
+
// the nesting may only be one level deep).
|
| 361 |
+
repeated HttpRule additional_bindings = 11;
|
| 362 |
+
}
|
| 363 |
+
|
| 364 |
+
// A custom pattern is used for defining custom HTTP verb.
|
| 365 |
+
message CustomHttpPattern {
|
| 366 |
+
// The name of this custom HTTP verb.
|
| 367 |
+
string kind = 1;
|
| 368 |
+
|
| 369 |
+
// The path matched by this custom verb.
|
| 370 |
+
string path = 2;
|
| 371 |
+
}
|
.venv/lib/python3.11/site-packages/google/api/http_pb2.py
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# -*- coding: utf-8 -*-
|
| 2 |
+
|
| 3 |
+
# Copyright 2024 Google LLC
|
| 4 |
+
#
|
| 5 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 6 |
+
# you may not use this file except in compliance with the License.
|
| 7 |
+
# You may obtain a copy of the License at
|
| 8 |
+
#
|
| 9 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 10 |
+
#
|
| 11 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 12 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 13 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 14 |
+
# See the License for the specific language governing permissions and
|
| 15 |
+
# limitations under the License.
|
| 16 |
+
|
| 17 |
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
| 18 |
+
# source: google/api/http.proto
|
| 19 |
+
"""Generated protocol buffer code."""
|
| 20 |
+
from google.protobuf import descriptor as _descriptor
|
| 21 |
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
| 22 |
+
from google.protobuf import symbol_database as _symbol_database
|
| 23 |
+
from google.protobuf.internal import builder as _builder
|
| 24 |
+
|
| 25 |
+
# @@protoc_insertion_point(imports)
|
| 26 |
+
|
| 27 |
+
_sym_db = _symbol_database.Default()
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
| 31 |
+
b'\n\x15google/api/http.proto\x12\ngoogle.api"T\n\x04Http\x12#\n\x05rules\x18\x01 \x03(\x0b\x32\x14.google.api.HttpRule\x12\'\n\x1f\x66ully_decode_reserved_expansion\x18\x02 \x01(\x08"\x81\x02\n\x08HttpRule\x12\x10\n\x08selector\x18\x01 \x01(\t\x12\r\n\x03get\x18\x02 \x01(\tH\x00\x12\r\n\x03put\x18\x03 \x01(\tH\x00\x12\x0e\n\x04post\x18\x04 \x01(\tH\x00\x12\x10\n\x06\x64\x65lete\x18\x05 \x01(\tH\x00\x12\x0f\n\x05patch\x18\x06 \x01(\tH\x00\x12/\n\x06\x63ustom\x18\x08 \x01(\x0b\x32\x1d.google.api.CustomHttpPatternH\x00\x12\x0c\n\x04\x62ody\x18\x07 \x01(\t\x12\x15\n\rresponse_body\x18\x0c \x01(\t\x12\x31\n\x13\x61\x64\x64itional_bindings\x18\x0b \x03(\x0b\x32\x14.google.api.HttpRuleB\t\n\x07pattern"/\n\x11\x43ustomHttpPattern\x12\x0c\n\x04kind\x18\x01 \x01(\t\x12\x0c\n\x04path\x18\x02 \x01(\tBj\n\x0e\x63om.google.apiB\tHttpProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xf8\x01\x01\xa2\x02\x04GAPIb\x06proto3'
|
| 32 |
+
)
|
| 33 |
+
|
| 34 |
+
_globals = globals()
|
| 35 |
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
| 36 |
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "google.api.http_pb2", _globals)
|
| 37 |
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
| 38 |
+
DESCRIPTOR._options = None
|
| 39 |
+
DESCRIPTOR._serialized_options = b"\n\016com.google.apiB\tHttpProtoP\001ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\370\001\001\242\002\004GAPI"
|
| 40 |
+
_globals["_HTTP"]._serialized_start = 37
|
| 41 |
+
_globals["_HTTP"]._serialized_end = 121
|
| 42 |
+
_globals["_HTTPRULE"]._serialized_start = 124
|
| 43 |
+
_globals["_HTTPRULE"]._serialized_end = 381
|
| 44 |
+
_globals["_CUSTOMHTTPPATTERN"]._serialized_start = 383
|
| 45 |
+
_globals["_CUSTOMHTTPPATTERN"]._serialized_end = 430
|
| 46 |
+
# @@protoc_insertion_point(module_scope)
|
.venv/lib/python3.11/site-packages/google/api/httpbody.proto
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2024 Google LLC
|
| 2 |
+
//
|
| 3 |
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
// you may not use this file except in compliance with the License.
|
| 5 |
+
// You may obtain a copy of the License at
|
| 6 |
+
//
|
| 7 |
+
// http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
//
|
| 9 |
+
// Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
// See the License for the specific language governing permissions and
|
| 13 |
+
// limitations under the License.
|
| 14 |
+
|
| 15 |
+
syntax = "proto3";
|
| 16 |
+
|
| 17 |
+
package google.api;
|
| 18 |
+
|
| 19 |
+
import "google/protobuf/any.proto";
|
| 20 |
+
|
| 21 |
+
option go_package = "google.golang.org/genproto/googleapis/api/httpbody;httpbody";
|
| 22 |
+
option java_multiple_files = true;
|
| 23 |
+
option java_outer_classname = "HttpBodyProto";
|
| 24 |
+
option java_package = "com.google.api";
|
| 25 |
+
option objc_class_prefix = "GAPI";
|
| 26 |
+
|
| 27 |
+
// Message that represents an arbitrary HTTP body. It should only be used for
|
| 28 |
+
// payload formats that can't be represented as JSON, such as raw binary or
|
| 29 |
+
// an HTML page.
|
| 30 |
+
//
|
| 31 |
+
//
|
| 32 |
+
// This message can be used both in streaming and non-streaming API methods in
|
| 33 |
+
// the request as well as the response.
|
| 34 |
+
//
|
| 35 |
+
// It can be used as a top-level request field, which is convenient if one
|
| 36 |
+
// wants to extract parameters from either the URL or HTTP template into the
|
| 37 |
+
// request fields and also want access to the raw HTTP body.
|
| 38 |
+
//
|
| 39 |
+
// Example:
|
| 40 |
+
//
|
| 41 |
+
// message GetResourceRequest {
|
| 42 |
+
// // A unique request id.
|
| 43 |
+
// string request_id = 1;
|
| 44 |
+
//
|
| 45 |
+
// // The raw HTTP body is bound to this field.
|
| 46 |
+
// google.api.HttpBody http_body = 2;
|
| 47 |
+
//
|
| 48 |
+
// }
|
| 49 |
+
//
|
| 50 |
+
// service ResourceService {
|
| 51 |
+
// rpc GetResource(GetResourceRequest)
|
| 52 |
+
// returns (google.api.HttpBody);
|
| 53 |
+
// rpc UpdateResource(google.api.HttpBody)
|
| 54 |
+
// returns (google.protobuf.Empty);
|
| 55 |
+
//
|
| 56 |
+
// }
|
| 57 |
+
//
|
| 58 |
+
// Example with streaming methods:
|
| 59 |
+
//
|
| 60 |
+
// service CaldavService {
|
| 61 |
+
// rpc GetCalendar(stream google.api.HttpBody)
|
| 62 |
+
// returns (stream google.api.HttpBody);
|
| 63 |
+
// rpc UpdateCalendar(stream google.api.HttpBody)
|
| 64 |
+
// returns (stream google.api.HttpBody);
|
| 65 |
+
//
|
| 66 |
+
// }
|
| 67 |
+
//
|
| 68 |
+
// Use of this type only changes how the request and response bodies are
|
| 69 |
+
// handled, all other features will continue to work unchanged.
|
| 70 |
+
message HttpBody {
|
| 71 |
+
// The HTTP Content-Type header value specifying the content type of the body.
|
| 72 |
+
string content_type = 1;
|
| 73 |
+
|
| 74 |
+
// The HTTP request/response body as raw binary.
|
| 75 |
+
bytes data = 2;
|
| 76 |
+
|
| 77 |
+
// Application specific response metadata. Must be set in the first response
|
| 78 |
+
// for streaming APIs.
|
| 79 |
+
repeated google.protobuf.Any extensions = 3;
|
| 80 |
+
}
|
.venv/lib/python3.11/site-packages/google/api/httpbody_pb2.py
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# -*- coding: utf-8 -*-
|
| 2 |
+
|
| 3 |
+
# Copyright 2024 Google LLC
|
| 4 |
+
#
|
| 5 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 6 |
+
# you may not use this file except in compliance with the License.
|
| 7 |
+
# You may obtain a copy of the License at
|
| 8 |
+
#
|
| 9 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 10 |
+
#
|
| 11 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 12 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 13 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 14 |
+
# See the License for the specific language governing permissions and
|
| 15 |
+
# limitations under the License.
|
| 16 |
+
|
| 17 |
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
| 18 |
+
# source: google/api/httpbody.proto
|
| 19 |
+
"""Generated protocol buffer code."""
|
| 20 |
+
from google.protobuf import descriptor as _descriptor
|
| 21 |
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
| 22 |
+
from google.protobuf import symbol_database as _symbol_database
|
| 23 |
+
from google.protobuf.internal import builder as _builder
|
| 24 |
+
|
| 25 |
+
# @@protoc_insertion_point(imports)
|
| 26 |
+
|
| 27 |
+
_sym_db = _symbol_database.Default()
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
| 34 |
+
b'\n\x19google/api/httpbody.proto\x12\ngoogle.api\x1a\x19google/protobuf/any.proto"X\n\x08HttpBody\x12\x14\n\x0c\x63ontent_type\x18\x01 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c\x12(\n\nextensions\x18\x03 \x03(\x0b\x32\x14.google.protobuf.AnyBe\n\x0e\x63om.google.apiB\rHttpBodyProtoP\x01Z;google.golang.org/genproto/googleapis/api/httpbody;httpbody\xa2\x02\x04GAPIb\x06proto3'
|
| 35 |
+
)
|
| 36 |
+
|
| 37 |
+
_globals = globals()
|
| 38 |
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
| 39 |
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "google.api.httpbody_pb2", _globals)
|
| 40 |
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
| 41 |
+
DESCRIPTOR._options = None
|
| 42 |
+
DESCRIPTOR._serialized_options = b"\n\016com.google.apiB\rHttpBodyProtoP\001Z;google.golang.org/genproto/googleapis/api/httpbody;httpbody\242\002\004GAPI"
|
| 43 |
+
_globals["_HTTPBODY"]._serialized_start = 68
|
| 44 |
+
_globals["_HTTPBODY"]._serialized_end = 156
|
| 45 |
+
# @@protoc_insertion_point(module_scope)
|
.venv/lib/python3.11/site-packages/google/api/label.proto
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2024 Google LLC
|
| 2 |
+
//
|
| 3 |
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
// you may not use this file except in compliance with the License.
|
| 5 |
+
// You may obtain a copy of the License at
|
| 6 |
+
//
|
| 7 |
+
// http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
//
|
| 9 |
+
// Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
// See the License for the specific language governing permissions and
|
| 13 |
+
// limitations under the License.
|
| 14 |
+
|
| 15 |
+
syntax = "proto3";
|
| 16 |
+
|
| 17 |
+
package google.api;
|
| 18 |
+
|
| 19 |
+
option cc_enable_arenas = true;
|
| 20 |
+
option go_package = "google.golang.org/genproto/googleapis/api/label;label";
|
| 21 |
+
option java_multiple_files = true;
|
| 22 |
+
option java_outer_classname = "LabelProto";
|
| 23 |
+
option java_package = "com.google.api";
|
| 24 |
+
option objc_class_prefix = "GAPI";
|
| 25 |
+
|
| 26 |
+
// A description of a label.
|
| 27 |
+
message LabelDescriptor {
|
| 28 |
+
// Value types that can be used as label values.
|
| 29 |
+
enum ValueType {
|
| 30 |
+
// A variable-length string. This is the default.
|
| 31 |
+
STRING = 0;
|
| 32 |
+
|
| 33 |
+
// Boolean; true or false.
|
| 34 |
+
BOOL = 1;
|
| 35 |
+
|
| 36 |
+
// A 64-bit signed integer.
|
| 37 |
+
INT64 = 2;
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
// The label key.
|
| 41 |
+
string key = 1;
|
| 42 |
+
|
| 43 |
+
// The type of data that can be assigned to the label.
|
| 44 |
+
ValueType value_type = 2;
|
| 45 |
+
|
| 46 |
+
// A human-readable description for the label.
|
| 47 |
+
string description = 3;
|
| 48 |
+
}
|
.venv/lib/python3.11/site-packages/google/api/label_pb2.py
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# -*- coding: utf-8 -*-
|
| 2 |
+
|
| 3 |
+
# Copyright 2024 Google LLC
|
| 4 |
+
#
|
| 5 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 6 |
+
# you may not use this file except in compliance with the License.
|
| 7 |
+
# You may obtain a copy of the License at
|
| 8 |
+
#
|
| 9 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 10 |
+
#
|
| 11 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 12 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 13 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 14 |
+
# See the License for the specific language governing permissions and
|
| 15 |
+
# limitations under the License.
|
| 16 |
+
|
| 17 |
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
| 18 |
+
# source: google/api/label.proto
|
| 19 |
+
"""Generated protocol buffer code."""
|
| 20 |
+
from google.protobuf import descriptor as _descriptor
|
| 21 |
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
| 22 |
+
from google.protobuf import symbol_database as _symbol_database
|
| 23 |
+
from google.protobuf.internal import builder as _builder
|
| 24 |
+
|
| 25 |
+
# @@protoc_insertion_point(imports)
|
| 26 |
+
|
| 27 |
+
_sym_db = _symbol_database.Default()
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
| 31 |
+
b'\n\x16google/api/label.proto\x12\ngoogle.api"\x9c\x01\n\x0fLabelDescriptor\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x39\n\nvalue_type\x18\x02 \x01(\x0e\x32%.google.api.LabelDescriptor.ValueType\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t",\n\tValueType\x12\n\n\x06STRING\x10\x00\x12\x08\n\x04\x42OOL\x10\x01\x12\t\n\x05INT64\x10\x02\x42_\n\x0e\x63om.google.apiB\nLabelProtoP\x01Z5google.golang.org/genproto/googleapis/api/label;label\xf8\x01\x01\xa2\x02\x04GAPIb\x06proto3'
|
| 32 |
+
)
|
| 33 |
+
|
| 34 |
+
_globals = globals()
|
| 35 |
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
| 36 |
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "google.api.label_pb2", _globals)
|
| 37 |
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
| 38 |
+
DESCRIPTOR._options = None
|
| 39 |
+
DESCRIPTOR._serialized_options = b"\n\016com.google.apiB\nLabelProtoP\001Z5google.golang.org/genproto/googleapis/api/label;label\370\001\001\242\002\004GAPI"
|
| 40 |
+
_globals["_LABELDESCRIPTOR"]._serialized_start = 39
|
| 41 |
+
_globals["_LABELDESCRIPTOR"]._serialized_end = 195
|
| 42 |
+
_globals["_LABELDESCRIPTOR_VALUETYPE"]._serialized_start = 151
|
| 43 |
+
_globals["_LABELDESCRIPTOR_VALUETYPE"]._serialized_end = 195
|
| 44 |
+
# @@protoc_insertion_point(module_scope)
|
.venv/lib/python3.11/site-packages/google/api/launch_stage.proto
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2024 Google LLC
|
| 2 |
+
//
|
| 3 |
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
// you may not use this file except in compliance with the License.
|
| 5 |
+
// You may obtain a copy of the License at
|
| 6 |
+
//
|
| 7 |
+
// http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
//
|
| 9 |
+
// Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
// See the License for the specific language governing permissions and
|
| 13 |
+
// limitations under the License.
|
| 14 |
+
|
| 15 |
+
syntax = "proto3";
|
| 16 |
+
|
| 17 |
+
package google.api;
|
| 18 |
+
|
| 19 |
+
option go_package = "google.golang.org/genproto/googleapis/api;api";
|
| 20 |
+
option java_multiple_files = true;
|
| 21 |
+
option java_outer_classname = "LaunchStageProto";
|
| 22 |
+
option java_package = "com.google.api";
|
| 23 |
+
option objc_class_prefix = "GAPI";
|
| 24 |
+
|
| 25 |
+
// The launch stage as defined by [Google Cloud Platform
|
| 26 |
+
// Launch Stages](https://cloud.google.com/terms/launch-stages).
|
| 27 |
+
enum LaunchStage {
|
| 28 |
+
// Do not use this default value.
|
| 29 |
+
LAUNCH_STAGE_UNSPECIFIED = 0;
|
| 30 |
+
|
| 31 |
+
// The feature is not yet implemented. Users can not use it.
|
| 32 |
+
UNIMPLEMENTED = 6;
|
| 33 |
+
|
| 34 |
+
// Prelaunch features are hidden from users and are only visible internally.
|
| 35 |
+
PRELAUNCH = 7;
|
| 36 |
+
|
| 37 |
+
// Early Access features are limited to a closed group of testers. To use
|
| 38 |
+
// these features, you must sign up in advance and sign a Trusted Tester
|
| 39 |
+
// agreement (which includes confidentiality provisions). These features may
|
| 40 |
+
// be unstable, changed in backward-incompatible ways, and are not
|
| 41 |
+
// guaranteed to be released.
|
| 42 |
+
EARLY_ACCESS = 1;
|
| 43 |
+
|
| 44 |
+
// Alpha is a limited availability test for releases before they are cleared
|
| 45 |
+
// for widespread use. By Alpha, all significant design issues are resolved
|
| 46 |
+
// and we are in the process of verifying functionality. Alpha customers
|
| 47 |
+
// need to apply for access, agree to applicable terms, and have their
|
| 48 |
+
// projects allowlisted. Alpha releases don't have to be feature complete,
|
| 49 |
+
// no SLAs are provided, and there are no technical support obligations, but
|
| 50 |
+
// they will be far enough along that customers can actually use them in
|
| 51 |
+
// test environments or for limited-use tests -- just like they would in
|
| 52 |
+
// normal production cases.
|
| 53 |
+
ALPHA = 2;
|
| 54 |
+
|
| 55 |
+
// Beta is the point at which we are ready to open a release for any
|
| 56 |
+
// customer to use. There are no SLA or technical support obligations in a
|
| 57 |
+
// Beta release. Products will be complete from a feature perspective, but
|
| 58 |
+
// may have some open outstanding issues. Beta releases are suitable for
|
| 59 |
+
// limited production use cases.
|
| 60 |
+
BETA = 3;
|
| 61 |
+
|
| 62 |
+
// GA features are open to all developers and are considered stable and
|
| 63 |
+
// fully qualified for production use.
|
| 64 |
+
GA = 4;
|
| 65 |
+
|
| 66 |
+
// Deprecated features are scheduled to be shut down and removed. For more
|
| 67 |
+
// information, see the "Deprecation Policy" section of our [Terms of
|
| 68 |
+
// Service](https://cloud.google.com/terms/)
|
| 69 |
+
// and the [Google Cloud Platform Subject to the Deprecation
|
| 70 |
+
// Policy](https://cloud.google.com/terms/deprecation) documentation.
|
| 71 |
+
DEPRECATED = 5;
|
| 72 |
+
}
|
.venv/lib/python3.11/site-packages/google/api/launch_stage_pb2.py
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# -*- coding: utf-8 -*-
|
| 2 |
+
|
| 3 |
+
# Copyright 2024 Google LLC
|
| 4 |
+
#
|
| 5 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 6 |
+
# you may not use this file except in compliance with the License.
|
| 7 |
+
# You may obtain a copy of the License at
|
| 8 |
+
#
|
| 9 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 10 |
+
#
|
| 11 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 12 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 13 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 14 |
+
# See the License for the specific language governing permissions and
|
| 15 |
+
# limitations under the License.
|
| 16 |
+
|
| 17 |
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
| 18 |
+
# source: google/api/launch_stage.proto
|
| 19 |
+
"""Generated protocol buffer code."""
|
| 20 |
+
from google.protobuf import descriptor as _descriptor
|
| 21 |
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
| 22 |
+
from google.protobuf import symbol_database as _symbol_database
|
| 23 |
+
from google.protobuf.internal import builder as _builder
|
| 24 |
+
|
| 25 |
+
# @@protoc_insertion_point(imports)
|
| 26 |
+
|
| 27 |
+
_sym_db = _symbol_database.Default()
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
| 31 |
+
b"\n\x1dgoogle/api/launch_stage.proto\x12\ngoogle.api*\x8c\x01\n\x0bLaunchStage\x12\x1c\n\x18LAUNCH_STAGE_UNSPECIFIED\x10\x00\x12\x11\n\rUNIMPLEMENTED\x10\x06\x12\r\n\tPRELAUNCH\x10\x07\x12\x10\n\x0c\x45\x41RLY_ACCESS\x10\x01\x12\t\n\x05\x41LPHA\x10\x02\x12\x08\n\x04\x42\x45TA\x10\x03\x12\x06\n\x02GA\x10\x04\x12\x0e\n\nDEPRECATED\x10\x05\x42Z\n\x0e\x63om.google.apiB\x10LaunchStageProtoP\x01Z-google.golang.org/genproto/googleapis/api;api\xa2\x02\x04GAPIb\x06proto3"
|
| 32 |
+
)
|
| 33 |
+
|
| 34 |
+
_globals = globals()
|
| 35 |
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
| 36 |
+
_builder.BuildTopDescriptorsAndMessages(
|
| 37 |
+
DESCRIPTOR, "google.api.launch_stage_pb2", _globals
|
| 38 |
+
)
|
| 39 |
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
| 40 |
+
DESCRIPTOR._options = None
|
| 41 |
+
DESCRIPTOR._serialized_options = b"\n\016com.google.apiB\020LaunchStageProtoP\001Z-google.golang.org/genproto/googleapis/api;api\242\002\004GAPI"
|
| 42 |
+
_globals["_LAUNCHSTAGE"]._serialized_start = 46
|
| 43 |
+
_globals["_LAUNCHSTAGE"]._serialized_end = 186
|
| 44 |
+
# @@protoc_insertion_point(module_scope)
|
.venv/lib/python3.11/site-packages/google/api/log.proto
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2024 Google LLC
|
| 2 |
+
//
|
| 3 |
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
// you may not use this file except in compliance with the License.
|
| 5 |
+
// You may obtain a copy of the License at
|
| 6 |
+
//
|
| 7 |
+
// http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
//
|
| 9 |
+
// Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
// See the License for the specific language governing permissions and
|
| 13 |
+
// limitations under the License.
|
| 14 |
+
|
| 15 |
+
syntax = "proto3";
|
| 16 |
+
|
| 17 |
+
package google.api;
|
| 18 |
+
|
| 19 |
+
import "google/api/label.proto";
|
| 20 |
+
|
| 21 |
+
option go_package = "google.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig";
|
| 22 |
+
option java_multiple_files = true;
|
| 23 |
+
option java_outer_classname = "LogProto";
|
| 24 |
+
option java_package = "com.google.api";
|
| 25 |
+
option objc_class_prefix = "GAPI";
|
| 26 |
+
|
| 27 |
+
// A description of a log type. Example in YAML format:
|
| 28 |
+
//
|
| 29 |
+
// - name: library.googleapis.com/activity_history
|
| 30 |
+
// description: The history of borrowing and returning library items.
|
| 31 |
+
// display_name: Activity
|
| 32 |
+
// labels:
|
| 33 |
+
// - key: /customer_id
|
| 34 |
+
// description: Identifier of a library customer
|
| 35 |
+
message LogDescriptor {
|
| 36 |
+
// The name of the log. It must be less than 512 characters long and can
|
| 37 |
+
// include the following characters: upper- and lower-case alphanumeric
|
| 38 |
+
// characters [A-Za-z0-9], and punctuation characters including
|
| 39 |
+
// slash, underscore, hyphen, period [/_-.].
|
| 40 |
+
string name = 1;
|
| 41 |
+
|
| 42 |
+
// The set of labels that are available to describe a specific log entry.
|
| 43 |
+
// Runtime requests that contain labels not specified here are
|
| 44 |
+
// considered invalid.
|
| 45 |
+
repeated LabelDescriptor labels = 2;
|
| 46 |
+
|
| 47 |
+
// A human-readable description of this log. This information appears in
|
| 48 |
+
// the documentation and can contain details.
|
| 49 |
+
string description = 3;
|
| 50 |
+
|
| 51 |
+
// The human-readable name for this log. This information appears on
|
| 52 |
+
// the user interface and should be concise.
|
| 53 |
+
string display_name = 4;
|
| 54 |
+
}
|
.venv/lib/python3.11/site-packages/google/api/log_pb2.py
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# -*- coding: utf-8 -*-
|
| 2 |
+
|
| 3 |
+
# Copyright 2024 Google LLC
|
| 4 |
+
#
|
| 5 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 6 |
+
# you may not use this file except in compliance with the License.
|
| 7 |
+
# You may obtain a copy of the License at
|
| 8 |
+
#
|
| 9 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 10 |
+
#
|
| 11 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 12 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 13 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 14 |
+
# See the License for the specific language governing permissions and
|
| 15 |
+
# limitations under the License.
|
| 16 |
+
|
| 17 |
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
| 18 |
+
# source: google/api/log.proto
|
| 19 |
+
"""Generated protocol buffer code."""
|
| 20 |
+
from google.protobuf import descriptor as _descriptor
|
| 21 |
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
| 22 |
+
from google.protobuf import symbol_database as _symbol_database
|
| 23 |
+
from google.protobuf.internal import builder as _builder
|
| 24 |
+
|
| 25 |
+
# @@protoc_insertion_point(imports)
|
| 26 |
+
|
| 27 |
+
_sym_db = _symbol_database.Default()
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
from google.api import label_pb2 as google_dot_api_dot_label__pb2
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
| 34 |
+
b'\n\x14google/api/log.proto\x12\ngoogle.api\x1a\x16google/api/label.proto"u\n\rLogDescriptor\x12\x0c\n\x04name\x18\x01 \x01(\t\x12+\n\x06labels\x18\x02 \x03(\x0b\x32\x1b.google.api.LabelDescriptor\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x04 \x01(\tBj\n\x0e\x63om.google.apiB\x08LogProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xa2\x02\x04GAPIb\x06proto3'
|
| 35 |
+
)
|
| 36 |
+
|
| 37 |
+
_globals = globals()
|
| 38 |
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
| 39 |
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "google.api.log_pb2", _globals)
|
| 40 |
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
| 41 |
+
DESCRIPTOR._options = None
|
| 42 |
+
DESCRIPTOR._serialized_options = b"\n\016com.google.apiB\010LogProtoP\001ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\242\002\004GAPI"
|
| 43 |
+
_globals["_LOGDESCRIPTOR"]._serialized_start = 60
|
| 44 |
+
_globals["_LOGDESCRIPTOR"]._serialized_end = 177
|
| 45 |
+
# @@protoc_insertion_point(module_scope)
|
.venv/lib/python3.11/site-packages/google/api/logging.proto
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2024 Google LLC
|
| 2 |
+
//
|
| 3 |
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
// you may not use this file except in compliance with the License.
|
| 5 |
+
// You may obtain a copy of the License at
|
| 6 |
+
//
|
| 7 |
+
// http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
//
|
| 9 |
+
// Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
// See the License for the specific language governing permissions and
|
| 13 |
+
// limitations under the License.
|
| 14 |
+
|
| 15 |
+
syntax = "proto3";
|
| 16 |
+
|
| 17 |
+
package google.api;
|
| 18 |
+
|
| 19 |
+
option go_package = "google.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig";
|
| 20 |
+
option java_multiple_files = true;
|
| 21 |
+
option java_outer_classname = "LoggingProto";
|
| 22 |
+
option java_package = "com.google.api";
|
| 23 |
+
option objc_class_prefix = "GAPI";
|
| 24 |
+
|
| 25 |
+
// Logging configuration of the service.
|
| 26 |
+
//
|
| 27 |
+
// The following example shows how to configure logs to be sent to the
|
| 28 |
+
// producer and consumer projects. In the example, the `activity_history`
|
| 29 |
+
// log is sent to both the producer and consumer projects, whereas the
|
| 30 |
+
// `purchase_history` log is only sent to the producer project.
|
| 31 |
+
//
|
| 32 |
+
// monitored_resources:
|
| 33 |
+
// - type: library.googleapis.com/branch
|
| 34 |
+
// labels:
|
| 35 |
+
// - key: /city
|
| 36 |
+
// description: The city where the library branch is located in.
|
| 37 |
+
// - key: /name
|
| 38 |
+
// description: The name of the branch.
|
| 39 |
+
// logs:
|
| 40 |
+
// - name: activity_history
|
| 41 |
+
// labels:
|
| 42 |
+
// - key: /customer_id
|
| 43 |
+
// - name: purchase_history
|
| 44 |
+
// logging:
|
| 45 |
+
// producer_destinations:
|
| 46 |
+
// - monitored_resource: library.googleapis.com/branch
|
| 47 |
+
// logs:
|
| 48 |
+
// - activity_history
|
| 49 |
+
// - purchase_history
|
| 50 |
+
// consumer_destinations:
|
| 51 |
+
// - monitored_resource: library.googleapis.com/branch
|
| 52 |
+
// logs:
|
| 53 |
+
// - activity_history
|
| 54 |
+
message Logging {
|
| 55 |
+
// Configuration of a specific logging destination (the producer project
|
| 56 |
+
// or the consumer project).
|
| 57 |
+
message LoggingDestination {
|
| 58 |
+
// The monitored resource type. The type must be defined in the
|
| 59 |
+
// [Service.monitored_resources][google.api.Service.monitored_resources]
|
| 60 |
+
// section.
|
| 61 |
+
string monitored_resource = 3;
|
| 62 |
+
|
| 63 |
+
// Names of the logs to be sent to this destination. Each name must
|
| 64 |
+
// be defined in the [Service.logs][google.api.Service.logs] section. If the
|
| 65 |
+
// log name is not a domain scoped name, it will be automatically prefixed
|
| 66 |
+
// with the service name followed by "/".
|
| 67 |
+
repeated string logs = 1;
|
| 68 |
+
}
|
| 69 |
+
|
| 70 |
+
// Logging configurations for sending logs to the producer project.
|
| 71 |
+
// There can be multiple producer destinations, each one must have a
|
| 72 |
+
// different monitored resource type. A log can be used in at most
|
| 73 |
+
// one producer destination.
|
| 74 |
+
repeated LoggingDestination producer_destinations = 1;
|
| 75 |
+
|
| 76 |
+
// Logging configurations for sending logs to the consumer project.
|
| 77 |
+
// There can be multiple consumer destinations, each one must have a
|
| 78 |
+
// different monitored resource type. A log can be used in at most
|
| 79 |
+
// one consumer destination.
|
| 80 |
+
repeated LoggingDestination consumer_destinations = 2;
|
| 81 |
+
}
|
.venv/lib/python3.11/site-packages/google/api/logging_pb2.py
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# -*- coding: utf-8 -*-
|
| 2 |
+
|
| 3 |
+
# Copyright 2024 Google LLC
|
| 4 |
+
#
|
| 5 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 6 |
+
# you may not use this file except in compliance with the License.
|
| 7 |
+
# You may obtain a copy of the License at
|
| 8 |
+
#
|
| 9 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 10 |
+
#
|
| 11 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 12 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 13 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 14 |
+
# See the License for the specific language governing permissions and
|
| 15 |
+
# limitations under the License.
|
| 16 |
+
|
| 17 |
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
| 18 |
+
# source: google/api/logging.proto
|
| 19 |
+
"""Generated protocol buffer code."""
|
| 20 |
+
from google.protobuf import descriptor as _descriptor
|
| 21 |
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
| 22 |
+
from google.protobuf import symbol_database as _symbol_database
|
| 23 |
+
from google.protobuf.internal import builder as _builder
|
| 24 |
+
|
| 25 |
+
# @@protoc_insertion_point(imports)
|
| 26 |
+
|
| 27 |
+
_sym_db = _symbol_database.Default()
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
| 31 |
+
b'\n\x18google/api/logging.proto\x12\ngoogle.api"\xd7\x01\n\x07Logging\x12\x45\n\x15producer_destinations\x18\x01 \x03(\x0b\x32&.google.api.Logging.LoggingDestination\x12\x45\n\x15\x63onsumer_destinations\x18\x02 \x03(\x0b\x32&.google.api.Logging.LoggingDestination\x1a>\n\x12LoggingDestination\x12\x1a\n\x12monitored_resource\x18\x03 \x01(\t\x12\x0c\n\x04logs\x18\x01 \x03(\tBn\n\x0e\x63om.google.apiB\x0cLoggingProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xa2\x02\x04GAPIb\x06proto3'
|
| 32 |
+
)
|
| 33 |
+
|
| 34 |
+
_globals = globals()
|
| 35 |
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
| 36 |
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "google.api.logging_pb2", _globals)
|
| 37 |
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
| 38 |
+
DESCRIPTOR._options = None
|
| 39 |
+
DESCRIPTOR._serialized_options = b"\n\016com.google.apiB\014LoggingProtoP\001ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\242\002\004GAPI"
|
| 40 |
+
_globals["_LOGGING"]._serialized_start = 41
|
| 41 |
+
_globals["_LOGGING"]._serialized_end = 256
|
| 42 |
+
_globals["_LOGGING_LOGGINGDESTINATION"]._serialized_start = 194
|
| 43 |
+
_globals["_LOGGING_LOGGINGDESTINATION"]._serialized_end = 256
|
| 44 |
+
# @@protoc_insertion_point(module_scope)
|
.venv/lib/python3.11/site-packages/google/api/metric.proto
ADDED
|
@@ -0,0 +1,287 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2024 Google LLC
|
| 2 |
+
//
|
| 3 |
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
// you may not use this file except in compliance with the License.
|
| 5 |
+
// You may obtain a copy of the License at
|
| 6 |
+
//
|
| 7 |
+
// http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
//
|
| 9 |
+
// Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
// See the License for the specific language governing permissions and
|
| 13 |
+
// limitations under the License.
|
| 14 |
+
|
| 15 |
+
syntax = "proto3";
|
| 16 |
+
|
| 17 |
+
package google.api;
|
| 18 |
+
|
| 19 |
+
import "google/api/label.proto";
|
| 20 |
+
import "google/api/launch_stage.proto";
|
| 21 |
+
import "google/protobuf/duration.proto";
|
| 22 |
+
|
| 23 |
+
option go_package = "google.golang.org/genproto/googleapis/api/metric;metric";
|
| 24 |
+
option java_multiple_files = true;
|
| 25 |
+
option java_outer_classname = "MetricProto";
|
| 26 |
+
option java_package = "com.google.api";
|
| 27 |
+
option objc_class_prefix = "GAPI";
|
| 28 |
+
|
| 29 |
+
// Defines a metric type and its schema. Once a metric descriptor is created,
|
| 30 |
+
// deleting or altering it stops data collection and makes the metric type's
|
| 31 |
+
// existing data unusable.
|
| 32 |
+
//
|
| 33 |
+
message MetricDescriptor {
|
| 34 |
+
// The kind of measurement. It describes how the data is reported.
|
| 35 |
+
// For information on setting the start time and end time based on
|
| 36 |
+
// the MetricKind, see [TimeInterval][google.monitoring.v3.TimeInterval].
|
| 37 |
+
enum MetricKind {
|
| 38 |
+
// Do not use this default value.
|
| 39 |
+
METRIC_KIND_UNSPECIFIED = 0;
|
| 40 |
+
|
| 41 |
+
// An instantaneous measurement of a value.
|
| 42 |
+
GAUGE = 1;
|
| 43 |
+
|
| 44 |
+
// The change in a value during a time interval.
|
| 45 |
+
DELTA = 2;
|
| 46 |
+
|
| 47 |
+
// A value accumulated over a time interval. Cumulative
|
| 48 |
+
// measurements in a time series should have the same start time
|
| 49 |
+
// and increasing end times, until an event resets the cumulative
|
| 50 |
+
// value to zero and sets a new start time for the following
|
| 51 |
+
// points.
|
| 52 |
+
CUMULATIVE = 3;
|
| 53 |
+
}
|
| 54 |
+
|
| 55 |
+
// The value type of a metric.
|
| 56 |
+
enum ValueType {
|
| 57 |
+
// Do not use this default value.
|
| 58 |
+
VALUE_TYPE_UNSPECIFIED = 0;
|
| 59 |
+
|
| 60 |
+
// The value is a boolean.
|
| 61 |
+
// This value type can be used only if the metric kind is `GAUGE`.
|
| 62 |
+
BOOL = 1;
|
| 63 |
+
|
| 64 |
+
// The value is a signed 64-bit integer.
|
| 65 |
+
INT64 = 2;
|
| 66 |
+
|
| 67 |
+
// The value is a double precision floating point number.
|
| 68 |
+
DOUBLE = 3;
|
| 69 |
+
|
| 70 |
+
// The value is a text string.
|
| 71 |
+
// This value type can be used only if the metric kind is `GAUGE`.
|
| 72 |
+
STRING = 4;
|
| 73 |
+
|
| 74 |
+
// The value is a [`Distribution`][google.api.Distribution].
|
| 75 |
+
DISTRIBUTION = 5;
|
| 76 |
+
|
| 77 |
+
// The value is money.
|
| 78 |
+
MONEY = 6;
|
| 79 |
+
}
|
| 80 |
+
|
| 81 |
+
// Additional annotations that can be used to guide the usage of a metric.
|
| 82 |
+
message MetricDescriptorMetadata {
|
| 83 |
+
// The resource hierarchy level of the timeseries data of a metric.
|
| 84 |
+
enum TimeSeriesResourceHierarchyLevel {
|
| 85 |
+
// Do not use this default value.
|
| 86 |
+
TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_UNSPECIFIED = 0;
|
| 87 |
+
|
| 88 |
+
// Scopes a metric to a project.
|
| 89 |
+
PROJECT = 1;
|
| 90 |
+
|
| 91 |
+
// Scopes a metric to an organization.
|
| 92 |
+
ORGANIZATION = 2;
|
| 93 |
+
|
| 94 |
+
// Scopes a metric to a folder.
|
| 95 |
+
FOLDER = 3;
|
| 96 |
+
}
|
| 97 |
+
|
| 98 |
+
// Deprecated. Must use the
|
| 99 |
+
// [MetricDescriptor.launch_stage][google.api.MetricDescriptor.launch_stage]
|
| 100 |
+
// instead.
|
| 101 |
+
LaunchStage launch_stage = 1 [deprecated = true];
|
| 102 |
+
|
| 103 |
+
// The sampling period of metric data points. For metrics which are written
|
| 104 |
+
// periodically, consecutive data points are stored at this time interval,
|
| 105 |
+
// excluding data loss due to errors. Metrics with a higher granularity have
|
| 106 |
+
// a smaller sampling period.
|
| 107 |
+
google.protobuf.Duration sample_period = 2;
|
| 108 |
+
|
| 109 |
+
// The delay of data points caused by ingestion. Data points older than this
|
| 110 |
+
// age are guaranteed to be ingested and available to be read, excluding
|
| 111 |
+
// data loss due to errors.
|
| 112 |
+
google.protobuf.Duration ingest_delay = 3;
|
| 113 |
+
|
| 114 |
+
// The scope of the timeseries data of the metric.
|
| 115 |
+
repeated TimeSeriesResourceHierarchyLevel
|
| 116 |
+
time_series_resource_hierarchy_level = 4;
|
| 117 |
+
}
|
| 118 |
+
|
| 119 |
+
// The resource name of the metric descriptor.
|
| 120 |
+
string name = 1;
|
| 121 |
+
|
| 122 |
+
// The metric type, including its DNS name prefix. The type is not
|
| 123 |
+
// URL-encoded. All user-defined metric types have the DNS name
|
| 124 |
+
// `custom.googleapis.com` or `external.googleapis.com`. Metric types should
|
| 125 |
+
// use a natural hierarchical grouping. For example:
|
| 126 |
+
//
|
| 127 |
+
// "custom.googleapis.com/invoice/paid/amount"
|
| 128 |
+
// "external.googleapis.com/prometheus/up"
|
| 129 |
+
// "appengine.googleapis.com/http/server/response_latencies"
|
| 130 |
+
string type = 8;
|
| 131 |
+
|
| 132 |
+
// The set of labels that can be used to describe a specific
|
| 133 |
+
// instance of this metric type. For example, the
|
| 134 |
+
// `appengine.googleapis.com/http/server/response_latencies` metric
|
| 135 |
+
// type has a label for the HTTP response code, `response_code`, so
|
| 136 |
+
// you can look at latencies for successful responses or just
|
| 137 |
+
// for responses that failed.
|
| 138 |
+
repeated LabelDescriptor labels = 2;
|
| 139 |
+
|
| 140 |
+
// Whether the metric records instantaneous values, changes to a value, etc.
|
| 141 |
+
// Some combinations of `metric_kind` and `value_type` might not be supported.
|
| 142 |
+
MetricKind metric_kind = 3;
|
| 143 |
+
|
| 144 |
+
// Whether the measurement is an integer, a floating-point number, etc.
|
| 145 |
+
// Some combinations of `metric_kind` and `value_type` might not be supported.
|
| 146 |
+
ValueType value_type = 4;
|
| 147 |
+
|
| 148 |
+
// The units in which the metric value is reported. It is only applicable
|
| 149 |
+
// if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
|
| 150 |
+
// defines the representation of the stored metric values.
|
| 151 |
+
//
|
| 152 |
+
// Different systems might scale the values to be more easily displayed (so a
|
| 153 |
+
// value of `0.02kBy` _might_ be displayed as `20By`, and a value of
|
| 154 |
+
// `3523kBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is
|
| 155 |
+
// `kBy`, then the value of the metric is always in thousands of bytes, no
|
| 156 |
+
// matter how it might be displayed.
|
| 157 |
+
//
|
| 158 |
+
// If you want a custom metric to record the exact number of CPU-seconds used
|
| 159 |
+
// by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is
|
| 160 |
+
// `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005
|
| 161 |
+
// CPU-seconds, then the value is written as `12005`.
|
| 162 |
+
//
|
| 163 |
+
// Alternatively, if you want a custom metric to record data in a more
|
| 164 |
+
// granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is
|
| 165 |
+
// `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`),
|
| 166 |
+
// or use `Kis{CPU}` and write `11.723` (which is `12005/1024`).
|
| 167 |
+
//
|
| 168 |
+
// The supported units are a subset of [The Unified Code for Units of
|
| 169 |
+
// Measure](https://unitsofmeasure.org/ucum.html) standard:
|
| 170 |
+
//
|
| 171 |
+
// **Basic units (UNIT)**
|
| 172 |
+
//
|
| 173 |
+
// * `bit` bit
|
| 174 |
+
// * `By` byte
|
| 175 |
+
// * `s` second
|
| 176 |
+
// * `min` minute
|
| 177 |
+
// * `h` hour
|
| 178 |
+
// * `d` day
|
| 179 |
+
// * `1` dimensionless
|
| 180 |
+
//
|
| 181 |
+
// **Prefixes (PREFIX)**
|
| 182 |
+
//
|
| 183 |
+
// * `k` kilo (10^3)
|
| 184 |
+
// * `M` mega (10^6)
|
| 185 |
+
// * `G` giga (10^9)
|
| 186 |
+
// * `T` tera (10^12)
|
| 187 |
+
// * `P` peta (10^15)
|
| 188 |
+
// * `E` exa (10^18)
|
| 189 |
+
// * `Z` zetta (10^21)
|
| 190 |
+
// * `Y` yotta (10^24)
|
| 191 |
+
//
|
| 192 |
+
// * `m` milli (10^-3)
|
| 193 |
+
// * `u` micro (10^-6)
|
| 194 |
+
// * `n` nano (10^-9)
|
| 195 |
+
// * `p` pico (10^-12)
|
| 196 |
+
// * `f` femto (10^-15)
|
| 197 |
+
// * `a` atto (10^-18)
|
| 198 |
+
// * `z` zepto (10^-21)
|
| 199 |
+
// * `y` yocto (10^-24)
|
| 200 |
+
//
|
| 201 |
+
// * `Ki` kibi (2^10)
|
| 202 |
+
// * `Mi` mebi (2^20)
|
| 203 |
+
// * `Gi` gibi (2^30)
|
| 204 |
+
// * `Ti` tebi (2^40)
|
| 205 |
+
// * `Pi` pebi (2^50)
|
| 206 |
+
//
|
| 207 |
+
// **Grammar**
|
| 208 |
+
//
|
| 209 |
+
// The grammar also includes these connectors:
|
| 210 |
+
//
|
| 211 |
+
// * `/` division or ratio (as an infix operator). For examples,
|
| 212 |
+
// `kBy/{email}` or `MiBy/10ms` (although you should almost never
|
| 213 |
+
// have `/s` in a metric `unit`; rates should always be computed at
|
| 214 |
+
// query time from the underlying cumulative or delta value).
|
| 215 |
+
// * `.` multiplication or composition (as an infix operator). For
|
| 216 |
+
// examples, `GBy.d` or `k{watt}.h`.
|
| 217 |
+
//
|
| 218 |
+
// The grammar for a unit is as follows:
|
| 219 |
+
//
|
| 220 |
+
// Expression = Component { "." Component } { "/" Component } ;
|
| 221 |
+
//
|
| 222 |
+
// Component = ( [ PREFIX ] UNIT | "%" ) [ Annotation ]
|
| 223 |
+
// | Annotation
|
| 224 |
+
// | "1"
|
| 225 |
+
// ;
|
| 226 |
+
//
|
| 227 |
+
// Annotation = "{" NAME "}" ;
|
| 228 |
+
//
|
| 229 |
+
// Notes:
|
| 230 |
+
//
|
| 231 |
+
// * `Annotation` is just a comment if it follows a `UNIT`. If the annotation
|
| 232 |
+
// is used alone, then the unit is equivalent to `1`. For examples,
|
| 233 |
+
// `{request}/s == 1/s`, `By{transmitted}/s == By/s`.
|
| 234 |
+
// * `NAME` is a sequence of non-blank printable ASCII characters not
|
| 235 |
+
// containing `{` or `}`.
|
| 236 |
+
// * `1` represents a unitary [dimensionless
|
| 237 |
+
// unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such
|
| 238 |
+
// as in `1/s`. It is typically used when none of the basic units are
|
| 239 |
+
// appropriate. For example, "new users per day" can be represented as
|
| 240 |
+
// `1/d` or `{new-users}/d` (and a metric value `5` would mean "5 new
|
| 241 |
+
// users). Alternatively, "thousands of page views per day" would be
|
| 242 |
+
// represented as `1000/d` or `k1/d` or `k{page_views}/d` (and a metric
|
| 243 |
+
// value of `5.3` would mean "5300 page views per day").
|
| 244 |
+
// * `%` represents dimensionless value of 1/100, and annotates values giving
|
| 245 |
+
// a percentage (so the metric values are typically in the range of 0..100,
|
| 246 |
+
// and a metric value `3` means "3 percent").
|
| 247 |
+
// * `10^2.%` indicates a metric contains a ratio, typically in the range
|
| 248 |
+
// 0..1, that will be multiplied by 100 and displayed as a percentage
|
| 249 |
+
// (so a metric value `0.03` means "3 percent").
|
| 250 |
+
string unit = 5;
|
| 251 |
+
|
| 252 |
+
// A detailed description of the metric, which can be used in documentation.
|
| 253 |
+
string description = 6;
|
| 254 |
+
|
| 255 |
+
// A concise name for the metric, which can be displayed in user interfaces.
|
| 256 |
+
// Use sentence case without an ending period, for example "Request count".
|
| 257 |
+
// This field is optional but it is recommended to be set for any metrics
|
| 258 |
+
// associated with user-visible concepts, such as Quota.
|
| 259 |
+
string display_name = 7;
|
| 260 |
+
|
| 261 |
+
// Optional. Metadata which can be used to guide usage of the metric.
|
| 262 |
+
MetricDescriptorMetadata metadata = 10;
|
| 263 |
+
|
| 264 |
+
// Optional. The launch stage of the metric definition.
|
| 265 |
+
LaunchStage launch_stage = 12;
|
| 266 |
+
|
| 267 |
+
// Read-only. If present, then a [time
|
| 268 |
+
// series][google.monitoring.v3.TimeSeries], which is identified partially by
|
| 269 |
+
// a metric type and a
|
| 270 |
+
// [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor], that
|
| 271 |
+
// is associated with this metric type can only be associated with one of the
|
| 272 |
+
// monitored resource types listed here.
|
| 273 |
+
repeated string monitored_resource_types = 13;
|
| 274 |
+
}
|
| 275 |
+
|
| 276 |
+
// A specific metric, identified by specifying values for all of the
|
| 277 |
+
// labels of a [`MetricDescriptor`][google.api.MetricDescriptor].
|
| 278 |
+
message Metric {
|
| 279 |
+
// An existing metric type, see
|
| 280 |
+
// [google.api.MetricDescriptor][google.api.MetricDescriptor]. For example,
|
| 281 |
+
// `custom.googleapis.com/invoice/paid/amount`.
|
| 282 |
+
string type = 3;
|
| 283 |
+
|
| 284 |
+
// The set of label values that uniquely identify this metric. All
|
| 285 |
+
// labels listed in the `MetricDescriptor` must be assigned values.
|
| 286 |
+
map<string, string> labels = 2;
|
| 287 |
+
}
|
.venv/lib/python3.11/site-packages/google/api/metric_pb2.py
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# -*- coding: utf-8 -*-
|
| 2 |
+
|
| 3 |
+
# Copyright 2024 Google LLC
|
| 4 |
+
#
|
| 5 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 6 |
+
# you may not use this file except in compliance with the License.
|
| 7 |
+
# You may obtain a copy of the License at
|
| 8 |
+
#
|
| 9 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 10 |
+
#
|
| 11 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 12 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 13 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 14 |
+
# See the License for the specific language governing permissions and
|
| 15 |
+
# limitations under the License.
|
| 16 |
+
|
| 17 |
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
| 18 |
+
# source: google/api/metric.proto
|
| 19 |
+
"""Generated protocol buffer code."""
|
| 20 |
+
from google.protobuf import descriptor as _descriptor
|
| 21 |
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
| 22 |
+
from google.protobuf import symbol_database as _symbol_database
|
| 23 |
+
from google.protobuf.internal import builder as _builder
|
| 24 |
+
|
| 25 |
+
# @@protoc_insertion_point(imports)
|
| 26 |
+
|
| 27 |
+
_sym_db = _symbol_database.Default()
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
from google.api import label_pb2 as google_dot_api_dot_label__pb2
|
| 31 |
+
from google.api import launch_stage_pb2 as google_dot_api_dot_launch__stage__pb2
|
| 32 |
+
from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
| 36 |
+
b'\n\x17google/api/metric.proto\x12\ngoogle.api\x1a\x16google/api/label.proto\x1a\x1dgoogle/api/launch_stage.proto\x1a\x1egoogle/protobuf/duration.proto"\xac\x08\n\x10MetricDescriptor\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04type\x18\x08 \x01(\t\x12+\n\x06labels\x18\x02 \x03(\x0b\x32\x1b.google.api.LabelDescriptor\x12<\n\x0bmetric_kind\x18\x03 \x01(\x0e\x32\'.google.api.MetricDescriptor.MetricKind\x12:\n\nvalue_type\x18\x04 \x01(\x0e\x32&.google.api.MetricDescriptor.ValueType\x12\x0c\n\x04unit\x18\x05 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x07 \x01(\t\x12G\n\x08metadata\x18\n \x01(\x0b\x32\x35.google.api.MetricDescriptor.MetricDescriptorMetadata\x12-\n\x0claunch_stage\x18\x0c \x01(\x0e\x32\x17.google.api.LaunchStage\x12 \n\x18monitored_resource_types\x18\r \x03(\t\x1a\xbd\x03\n\x18MetricDescriptorMetadata\x12\x31\n\x0claunch_stage\x18\x01 \x01(\x0e\x32\x17.google.api.LaunchStageB\x02\x18\x01\x12\x30\n\rsample_period\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12/\n\x0cingest_delay\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x84\x01\n$time_series_resource_hierarchy_level\x18\x04 \x03(\x0e\x32V.google.api.MetricDescriptor.MetricDescriptorMetadata.TimeSeriesResourceHierarchyLevel"\x83\x01\n TimeSeriesResourceHierarchyLevel\x12\x34\n0TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_UNSPECIFIED\x10\x00\x12\x0b\n\x07PROJECT\x10\x01\x12\x10\n\x0cORGANIZATION\x10\x02\x12\n\n\x06\x46OLDER\x10\x03"O\n\nMetricKind\x12\x1b\n\x17METRIC_KIND_UNSPECIFIED\x10\x00\x12\t\n\x05GAUGE\x10\x01\x12\t\n\x05\x44\x45LTA\x10\x02\x12\x0e\n\nCUMULATIVE\x10\x03"q\n\tValueType\x12\x1a\n\x16VALUE_TYPE_UNSPECIFIED\x10\x00\x12\x08\n\x04\x42OOL\x10\x01\x12\t\n\x05INT64\x10\x02\x12\n\n\x06\x44OUBLE\x10\x03\x12\n\n\x06STRING\x10\x04\x12\x10\n\x0c\x44ISTRIBUTION\x10\x05\x12\t\n\x05MONEY\x10\x06"u\n\x06Metric\x12\x0c\n\x04type\x18\x03 \x01(\t\x12.\n\x06labels\x18\x02 \x03(\x0b\x32\x1e.google.api.Metric.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42_\n\x0e\x63om.google.apiB\x0bMetricProtoP\x01Z7google.golang.org/genproto/googleapis/api/metric;metric\xa2\x02\x04GAPIb\x06proto3'
|
| 37 |
+
)
|
| 38 |
+
|
| 39 |
+
_globals = globals()
|
| 40 |
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
| 41 |
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "google.api.metric_pb2", _globals)
|
| 42 |
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
| 43 |
+
DESCRIPTOR._options = None
|
| 44 |
+
DESCRIPTOR._serialized_options = b"\n\016com.google.apiB\013MetricProtoP\001Z7google.golang.org/genproto/googleapis/api/metric;metric\242\002\004GAPI"
|
| 45 |
+
_METRICDESCRIPTOR_METRICDESCRIPTORMETADATA.fields_by_name[
|
| 46 |
+
"launch_stage"
|
| 47 |
+
]._options = None
|
| 48 |
+
_METRICDESCRIPTOR_METRICDESCRIPTORMETADATA.fields_by_name[
|
| 49 |
+
"launch_stage"
|
| 50 |
+
]._serialized_options = b"\030\001"
|
| 51 |
+
_METRIC_LABELSENTRY._options = None
|
| 52 |
+
_METRIC_LABELSENTRY._serialized_options = b"8\001"
|
| 53 |
+
_globals["_METRICDESCRIPTOR"]._serialized_start = 127
|
| 54 |
+
_globals["_METRICDESCRIPTOR"]._serialized_end = 1195
|
| 55 |
+
_globals["_METRICDESCRIPTOR_METRICDESCRIPTORMETADATA"]._serialized_start = 554
|
| 56 |
+
_globals["_METRICDESCRIPTOR_METRICDESCRIPTORMETADATA"]._serialized_end = 999
|
| 57 |
+
_globals[
|
| 58 |
+
"_METRICDESCRIPTOR_METRICDESCRIPTORMETADATA_TIMESERIESRESOURCEHIERARCHYLEVEL"
|
| 59 |
+
]._serialized_start = 868
|
| 60 |
+
_globals[
|
| 61 |
+
"_METRICDESCRIPTOR_METRICDESCRIPTORMETADATA_TIMESERIESRESOURCEHIERARCHYLEVEL"
|
| 62 |
+
]._serialized_end = 999
|
| 63 |
+
_globals["_METRICDESCRIPTOR_METRICKIND"]._serialized_start = 1001
|
| 64 |
+
_globals["_METRICDESCRIPTOR_METRICKIND"]._serialized_end = 1080
|
| 65 |
+
_globals["_METRICDESCRIPTOR_VALUETYPE"]._serialized_start = 1082
|
| 66 |
+
_globals["_METRICDESCRIPTOR_VALUETYPE"]._serialized_end = 1195
|
| 67 |
+
_globals["_METRIC"]._serialized_start = 1197
|
| 68 |
+
_globals["_METRIC"]._serialized_end = 1314
|
| 69 |
+
_globals["_METRIC_LABELSENTRY"]._serialized_start = 1269
|
| 70 |
+
_globals["_METRIC_LABELSENTRY"]._serialized_end = 1314
|
| 71 |
+
# @@protoc_insertion_point(module_scope)
|
.venv/lib/python3.11/site-packages/google/api/monitored_resource.proto
ADDED
|
@@ -0,0 +1,130 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2024 Google LLC
|
| 2 |
+
//
|
| 3 |
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
// you may not use this file except in compliance with the License.
|
| 5 |
+
// You may obtain a copy of the License at
|
| 6 |
+
//
|
| 7 |
+
// http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
//
|
| 9 |
+
// Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
// See the License for the specific language governing permissions and
|
| 13 |
+
// limitations under the License.
|
| 14 |
+
|
| 15 |
+
syntax = "proto3";
|
| 16 |
+
|
| 17 |
+
package google.api;
|
| 18 |
+
|
| 19 |
+
import "google/api/label.proto";
|
| 20 |
+
import "google/api/launch_stage.proto";
|
| 21 |
+
import "google/protobuf/struct.proto";
|
| 22 |
+
|
| 23 |
+
option cc_enable_arenas = true;
|
| 24 |
+
option go_package = "google.golang.org/genproto/googleapis/api/monitoredres;monitoredres";
|
| 25 |
+
option java_multiple_files = true;
|
| 26 |
+
option java_outer_classname = "MonitoredResourceProto";
|
| 27 |
+
option java_package = "com.google.api";
|
| 28 |
+
option objc_class_prefix = "GAPI";
|
| 29 |
+
|
| 30 |
+
// An object that describes the schema of a
|
| 31 |
+
// [MonitoredResource][google.api.MonitoredResource] object using a type name
|
| 32 |
+
// and a set of labels. For example, the monitored resource descriptor for
|
| 33 |
+
// Google Compute Engine VM instances has a type of
|
| 34 |
+
// `"gce_instance"` and specifies the use of the labels `"instance_id"` and
|
| 35 |
+
// `"zone"` to identify particular VM instances.
|
| 36 |
+
//
|
| 37 |
+
// Different APIs can support different monitored resource types. APIs generally
|
| 38 |
+
// provide a `list` method that returns the monitored resource descriptors used
|
| 39 |
+
// by the API.
|
| 40 |
+
//
|
| 41 |
+
message MonitoredResourceDescriptor {
|
| 42 |
+
// Optional. The resource name of the monitored resource descriptor:
|
| 43 |
+
// `"projects/{project_id}/monitoredResourceDescriptors/{type}"` where
|
| 44 |
+
// {type} is the value of the `type` field in this object and
|
| 45 |
+
// {project_id} is a project ID that provides API-specific context for
|
| 46 |
+
// accessing the type. APIs that do not use project information can use the
|
| 47 |
+
// resource name format `"monitoredResourceDescriptors/{type}"`.
|
| 48 |
+
string name = 5;
|
| 49 |
+
|
| 50 |
+
// Required. The monitored resource type. For example, the type
|
| 51 |
+
// `"cloudsql_database"` represents databases in Google Cloud SQL.
|
| 52 |
+
// For a list of types, see [Monitored resource
|
| 53 |
+
// types](https://cloud.google.com/monitoring/api/resources)
|
| 54 |
+
// and [Logging resource
|
| 55 |
+
// types](https://cloud.google.com/logging/docs/api/v2/resource-list).
|
| 56 |
+
string type = 1;
|
| 57 |
+
|
| 58 |
+
// Optional. A concise name for the monitored resource type that might be
|
| 59 |
+
// displayed in user interfaces. It should be a Title Cased Noun Phrase,
|
| 60 |
+
// without any article or other determiners. For example,
|
| 61 |
+
// `"Google Cloud SQL Database"`.
|
| 62 |
+
string display_name = 2;
|
| 63 |
+
|
| 64 |
+
// Optional. A detailed description of the monitored resource type that might
|
| 65 |
+
// be used in documentation.
|
| 66 |
+
string description = 3;
|
| 67 |
+
|
| 68 |
+
// Required. A set of labels used to describe instances of this monitored
|
| 69 |
+
// resource type. For example, an individual Google Cloud SQL database is
|
| 70 |
+
// identified by values for the labels `"database_id"` and `"zone"`.
|
| 71 |
+
repeated LabelDescriptor labels = 4;
|
| 72 |
+
|
| 73 |
+
// Optional. The launch stage of the monitored resource definition.
|
| 74 |
+
LaunchStage launch_stage = 7;
|
| 75 |
+
}
|
| 76 |
+
|
| 77 |
+
// An object representing a resource that can be used for monitoring, logging,
|
| 78 |
+
// billing, or other purposes. Examples include virtual machine instances,
|
| 79 |
+
// databases, and storage devices such as disks. The `type` field identifies a
|
| 80 |
+
// [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] object
|
| 81 |
+
// that describes the resource's schema. Information in the `labels` field
|
| 82 |
+
// identifies the actual resource and its attributes according to the schema.
|
| 83 |
+
// For example, a particular Compute Engine VM instance could be represented by
|
| 84 |
+
// the following object, because the
|
| 85 |
+
// [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] for
|
| 86 |
+
// `"gce_instance"` has labels
|
| 87 |
+
// `"project_id"`, `"instance_id"` and `"zone"`:
|
| 88 |
+
//
|
| 89 |
+
// { "type": "gce_instance",
|
| 90 |
+
// "labels": { "project_id": "my-project",
|
| 91 |
+
// "instance_id": "12345678901234",
|
| 92 |
+
// "zone": "us-central1-a" }}
|
| 93 |
+
message MonitoredResource {
|
| 94 |
+
// Required. The monitored resource type. This field must match
|
| 95 |
+
// the `type` field of a
|
| 96 |
+
// [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor]
|
| 97 |
+
// object. For example, the type of a Compute Engine VM instance is
|
| 98 |
+
// `gce_instance`. Some descriptors include the service name in the type; for
|
| 99 |
+
// example, the type of a Datastream stream is
|
| 100 |
+
// `datastream.googleapis.com/Stream`.
|
| 101 |
+
string type = 1;
|
| 102 |
+
|
| 103 |
+
// Required. Values for all of the labels listed in the associated monitored
|
| 104 |
+
// resource descriptor. For example, Compute Engine VM instances use the
|
| 105 |
+
// labels `"project_id"`, `"instance_id"`, and `"zone"`.
|
| 106 |
+
map<string, string> labels = 2;
|
| 107 |
+
}
|
| 108 |
+
|
| 109 |
+
// Auxiliary metadata for a [MonitoredResource][google.api.MonitoredResource]
|
| 110 |
+
// object. [MonitoredResource][google.api.MonitoredResource] objects contain the
|
| 111 |
+
// minimum set of information to uniquely identify a monitored resource
|
| 112 |
+
// instance. There is some other useful auxiliary metadata. Monitoring and
|
| 113 |
+
// Logging use an ingestion pipeline to extract metadata for cloud resources of
|
| 114 |
+
// all types, and store the metadata in this message.
|
| 115 |
+
message MonitoredResourceMetadata {
|
| 116 |
+
// Output only. Values for predefined system metadata labels.
|
| 117 |
+
// System labels are a kind of metadata extracted by Google, including
|
| 118 |
+
// "machine_image", "vpc", "subnet_id",
|
| 119 |
+
// "security_group", "name", etc.
|
| 120 |
+
// System label values can be only strings, Boolean values, or a list of
|
| 121 |
+
// strings. For example:
|
| 122 |
+
//
|
| 123 |
+
// { "name": "my-test-instance",
|
| 124 |
+
// "security_group": ["a", "b", "c"],
|
| 125 |
+
// "spot_instance": false }
|
| 126 |
+
google.protobuf.Struct system_labels = 1;
|
| 127 |
+
|
| 128 |
+
// Output only. A map of user-defined metadata labels.
|
| 129 |
+
map<string, string> user_labels = 2;
|
| 130 |
+
}
|
.venv/lib/python3.11/site-packages/google/api/monitored_resource_pb2.py
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# -*- coding: utf-8 -*-
|
| 2 |
+
|
| 3 |
+
# Copyright 2024 Google LLC
|
| 4 |
+
#
|
| 5 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 6 |
+
# you may not use this file except in compliance with the License.
|
| 7 |
+
# You may obtain a copy of the License at
|
| 8 |
+
#
|
| 9 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 10 |
+
#
|
| 11 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 12 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 13 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 14 |
+
# See the License for the specific language governing permissions and
|
| 15 |
+
# limitations under the License.
|
| 16 |
+
|
| 17 |
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
| 18 |
+
# source: google/api/monitored_resource.proto
|
| 19 |
+
"""Generated protocol buffer code."""
|
| 20 |
+
from google.protobuf import descriptor as _descriptor
|
| 21 |
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
| 22 |
+
from google.protobuf import symbol_database as _symbol_database
|
| 23 |
+
from google.protobuf.internal import builder as _builder
|
| 24 |
+
|
| 25 |
+
# @@protoc_insertion_point(imports)
|
| 26 |
+
|
| 27 |
+
_sym_db = _symbol_database.Default()
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
from google.api import label_pb2 as google_dot_api_dot_label__pb2
|
| 31 |
+
from google.api import launch_stage_pb2 as google_dot_api_dot_launch__stage__pb2
|
| 32 |
+
from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
| 36 |
+
b'\n#google/api/monitored_resource.proto\x12\ngoogle.api\x1a\x16google/api/label.proto\x1a\x1dgoogle/api/launch_stage.proto\x1a\x1cgoogle/protobuf/struct.proto"\xc0\x01\n\x1bMonitoredResourceDescriptor\x12\x0c\n\x04name\x18\x05 \x01(\t\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12+\n\x06labels\x18\x04 \x03(\x0b\x32\x1b.google.api.LabelDescriptor\x12-\n\x0claunch_stage\x18\x07 \x01(\x0e\x32\x17.google.api.LaunchStage"\x8b\x01\n\x11MonitoredResource\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x39\n\x06labels\x18\x02 \x03(\x0b\x32).google.api.MonitoredResource.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\xca\x01\n\x19MonitoredResourceMetadata\x12.\n\rsystem_labels\x18\x01 \x01(\x0b\x32\x17.google.protobuf.Struct\x12J\n\x0buser_labels\x18\x02 \x03(\x0b\x32\x35.google.api.MonitoredResourceMetadata.UserLabelsEntry\x1a\x31\n\x0fUserLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42y\n\x0e\x63om.google.apiB\x16MonitoredResourceProtoP\x01ZCgoogle.golang.org/genproto/googleapis/api/monitoredres;monitoredres\xf8\x01\x01\xa2\x02\x04GAPIb\x06proto3'
|
| 37 |
+
)
|
| 38 |
+
|
| 39 |
+
_globals = globals()
|
| 40 |
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
| 41 |
+
_builder.BuildTopDescriptorsAndMessages(
|
| 42 |
+
DESCRIPTOR, "google.api.monitored_resource_pb2", _globals
|
| 43 |
+
)
|
| 44 |
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
| 45 |
+
DESCRIPTOR._options = None
|
| 46 |
+
DESCRIPTOR._serialized_options = b"\n\016com.google.apiB\026MonitoredResourceProtoP\001ZCgoogle.golang.org/genproto/googleapis/api/monitoredres;monitoredres\370\001\001\242\002\004GAPI"
|
| 47 |
+
_MONITOREDRESOURCE_LABELSENTRY._options = None
|
| 48 |
+
_MONITOREDRESOURCE_LABELSENTRY._serialized_options = b"8\001"
|
| 49 |
+
_MONITOREDRESOURCEMETADATA_USERLABELSENTRY._options = None
|
| 50 |
+
_MONITOREDRESOURCEMETADATA_USERLABELSENTRY._serialized_options = b"8\001"
|
| 51 |
+
_globals["_MONITOREDRESOURCEDESCRIPTOR"]._serialized_start = 137
|
| 52 |
+
_globals["_MONITOREDRESOURCEDESCRIPTOR"]._serialized_end = 329
|
| 53 |
+
_globals["_MONITOREDRESOURCE"]._serialized_start = 332
|
| 54 |
+
_globals["_MONITOREDRESOURCE"]._serialized_end = 471
|
| 55 |
+
_globals["_MONITOREDRESOURCE_LABELSENTRY"]._serialized_start = 426
|
| 56 |
+
_globals["_MONITOREDRESOURCE_LABELSENTRY"]._serialized_end = 471
|
| 57 |
+
_globals["_MONITOREDRESOURCEMETADATA"]._serialized_start = 474
|
| 58 |
+
_globals["_MONITOREDRESOURCEMETADATA"]._serialized_end = 676
|
| 59 |
+
_globals["_MONITOREDRESOURCEMETADATA_USERLABELSENTRY"]._serialized_start = 627
|
| 60 |
+
_globals["_MONITOREDRESOURCEMETADATA_USERLABELSENTRY"]._serialized_end = 676
|
| 61 |
+
# @@protoc_insertion_point(module_scope)
|
.venv/lib/python3.11/site-packages/google/api/monitoring.proto
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2024 Google LLC
|
| 2 |
+
//
|
| 3 |
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
// you may not use this file except in compliance with the License.
|
| 5 |
+
// You may obtain a copy of the License at
|
| 6 |
+
//
|
| 7 |
+
// http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
//
|
| 9 |
+
// Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
// See the License for the specific language governing permissions and
|
| 13 |
+
// limitations under the License.
|
| 14 |
+
|
| 15 |
+
syntax = "proto3";
|
| 16 |
+
|
| 17 |
+
package google.api;
|
| 18 |
+
|
| 19 |
+
option go_package = "google.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig";
|
| 20 |
+
option java_multiple_files = true;
|
| 21 |
+
option java_outer_classname = "MonitoringProto";
|
| 22 |
+
option java_package = "com.google.api";
|
| 23 |
+
option objc_class_prefix = "GAPI";
|
| 24 |
+
|
| 25 |
+
// Monitoring configuration of the service.
|
| 26 |
+
//
|
| 27 |
+
// The example below shows how to configure monitored resources and metrics
|
| 28 |
+
// for monitoring. In the example, a monitored resource and two metrics are
|
| 29 |
+
// defined. The `library.googleapis.com/book/returned_count` metric is sent
|
| 30 |
+
// to both producer and consumer projects, whereas the
|
| 31 |
+
// `library.googleapis.com/book/num_overdue` metric is only sent to the
|
| 32 |
+
// consumer project.
|
| 33 |
+
//
|
| 34 |
+
// monitored_resources:
|
| 35 |
+
// - type: library.googleapis.com/Branch
|
| 36 |
+
// display_name: "Library Branch"
|
| 37 |
+
// description: "A branch of a library."
|
| 38 |
+
// launch_stage: GA
|
| 39 |
+
// labels:
|
| 40 |
+
// - key: resource_container
|
| 41 |
+
// description: "The Cloud container (ie. project id) for the Branch."
|
| 42 |
+
// - key: location
|
| 43 |
+
// description: "The location of the library branch."
|
| 44 |
+
// - key: branch_id
|
| 45 |
+
// description: "The id of the branch."
|
| 46 |
+
// metrics:
|
| 47 |
+
// - name: library.googleapis.com/book/returned_count
|
| 48 |
+
// display_name: "Books Returned"
|
| 49 |
+
// description: "The count of books that have been returned."
|
| 50 |
+
// launch_stage: GA
|
| 51 |
+
// metric_kind: DELTA
|
| 52 |
+
// value_type: INT64
|
| 53 |
+
// unit: "1"
|
| 54 |
+
// labels:
|
| 55 |
+
// - key: customer_id
|
| 56 |
+
// description: "The id of the customer."
|
| 57 |
+
// - name: library.googleapis.com/book/num_overdue
|
| 58 |
+
// display_name: "Books Overdue"
|
| 59 |
+
// description: "The current number of overdue books."
|
| 60 |
+
// launch_stage: GA
|
| 61 |
+
// metric_kind: GAUGE
|
| 62 |
+
// value_type: INT64
|
| 63 |
+
// unit: "1"
|
| 64 |
+
// labels:
|
| 65 |
+
// - key: customer_id
|
| 66 |
+
// description: "The id of the customer."
|
| 67 |
+
// monitoring:
|
| 68 |
+
// producer_destinations:
|
| 69 |
+
// - monitored_resource: library.googleapis.com/Branch
|
| 70 |
+
// metrics:
|
| 71 |
+
// - library.googleapis.com/book/returned_count
|
| 72 |
+
// consumer_destinations:
|
| 73 |
+
// - monitored_resource: library.googleapis.com/Branch
|
| 74 |
+
// metrics:
|
| 75 |
+
// - library.googleapis.com/book/returned_count
|
| 76 |
+
// - library.googleapis.com/book/num_overdue
|
| 77 |
+
message Monitoring {
|
| 78 |
+
// Configuration of a specific monitoring destination (the producer project
|
| 79 |
+
// or the consumer project).
|
| 80 |
+
message MonitoringDestination {
|
| 81 |
+
// The monitored resource type. The type must be defined in
|
| 82 |
+
// [Service.monitored_resources][google.api.Service.monitored_resources]
|
| 83 |
+
// section.
|
| 84 |
+
string monitored_resource = 1;
|
| 85 |
+
|
| 86 |
+
// Types of the metrics to report to this monitoring destination.
|
| 87 |
+
// Each type must be defined in
|
| 88 |
+
// [Service.metrics][google.api.Service.metrics] section.
|
| 89 |
+
repeated string metrics = 2;
|
| 90 |
+
}
|
| 91 |
+
|
| 92 |
+
// Monitoring configurations for sending metrics to the producer project.
|
| 93 |
+
// There can be multiple producer destinations. A monitored resource type may
|
| 94 |
+
// appear in multiple monitoring destinations if different aggregations are
|
| 95 |
+
// needed for different sets of metrics associated with that monitored
|
| 96 |
+
// resource type. A monitored resource and metric pair may only be used once
|
| 97 |
+
// in the Monitoring configuration.
|
| 98 |
+
repeated MonitoringDestination producer_destinations = 1;
|
| 99 |
+
|
| 100 |
+
// Monitoring configurations for sending metrics to the consumer project.
|
| 101 |
+
// There can be multiple consumer destinations. A monitored resource type may
|
| 102 |
+
// appear in multiple monitoring destinations if different aggregations are
|
| 103 |
+
// needed for different sets of metrics associated with that monitored
|
| 104 |
+
// resource type. A monitored resource and metric pair may only be used once
|
| 105 |
+
// in the Monitoring configuration.
|
| 106 |
+
repeated MonitoringDestination consumer_destinations = 2;
|
| 107 |
+
}
|
.venv/lib/python3.11/site-packages/google/api/monitoring_pb2.py
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# -*- coding: utf-8 -*-
|
| 2 |
+
|
| 3 |
+
# Copyright 2024 Google LLC
|
| 4 |
+
#
|
| 5 |
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
| 6 |
+
# you may not use this file except in compliance with the License.
|
| 7 |
+
# You may obtain a copy of the License at
|
| 8 |
+
#
|
| 9 |
+
# http://www.apache.org/licenses/LICENSE-2.0
|
| 10 |
+
#
|
| 11 |
+
# Unless required by applicable law or agreed to in writing, software
|
| 12 |
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
| 13 |
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 14 |
+
# See the License for the specific language governing permissions and
|
| 15 |
+
# limitations under the License.
|
| 16 |
+
|
| 17 |
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
| 18 |
+
# source: google/api/monitoring.proto
|
| 19 |
+
"""Generated protocol buffer code."""
|
| 20 |
+
from google.protobuf import descriptor as _descriptor
|
| 21 |
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
| 22 |
+
from google.protobuf import symbol_database as _symbol_database
|
| 23 |
+
from google.protobuf.internal import builder as _builder
|
| 24 |
+
|
| 25 |
+
# @@protoc_insertion_point(imports)
|
| 26 |
+
|
| 27 |
+
_sym_db = _symbol_database.Default()
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
| 31 |
+
b'\n\x1bgoogle/api/monitoring.proto\x12\ngoogle.api"\xec\x01\n\nMonitoring\x12K\n\x15producer_destinations\x18\x01 \x03(\x0b\x32,.google.api.Monitoring.MonitoringDestination\x12K\n\x15\x63onsumer_destinations\x18\x02 \x03(\x0b\x32,.google.api.Monitoring.MonitoringDestination\x1a\x44\n\x15MonitoringDestination\x12\x1a\n\x12monitored_resource\x18\x01 \x01(\t\x12\x0f\n\x07metrics\x18\x02 \x03(\tBq\n\x0e\x63om.google.apiB\x0fMonitoringProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xa2\x02\x04GAPIb\x06proto3'
|
| 32 |
+
)
|
| 33 |
+
|
| 34 |
+
_globals = globals()
|
| 35 |
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
| 36 |
+
_builder.BuildTopDescriptorsAndMessages(
|
| 37 |
+
DESCRIPTOR, "google.api.monitoring_pb2", _globals
|
| 38 |
+
)
|
| 39 |
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
| 40 |
+
DESCRIPTOR._options = None
|
| 41 |
+
DESCRIPTOR._serialized_options = b"\n\016com.google.apiB\017MonitoringProtoP\001ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\242\002\004GAPI"
|
| 42 |
+
_globals["_MONITORING"]._serialized_start = 44
|
| 43 |
+
_globals["_MONITORING"]._serialized_end = 280
|
| 44 |
+
_globals["_MONITORING_MONITORINGDESTINATION"]._serialized_start = 212
|
| 45 |
+
_globals["_MONITORING_MONITORINGDESTINATION"]._serialized_end = 280
|
| 46 |
+
# @@protoc_insertion_point(module_scope)
|
.venv/lib/python3.11/site-packages/google/api/policy.proto
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2024 Google LLC
|
| 2 |
+
//
|
| 3 |
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
| 4 |
+
// you may not use this file except in compliance with the License.
|
| 5 |
+
// You may obtain a copy of the License at
|
| 6 |
+
//
|
| 7 |
+
// http://www.apache.org/licenses/LICENSE-2.0
|
| 8 |
+
//
|
| 9 |
+
// Unless required by applicable law or agreed to in writing, software
|
| 10 |
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
| 11 |
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 12 |
+
// See the License for the specific language governing permissions and
|
| 13 |
+
// limitations under the License.
|
| 14 |
+
|
| 15 |
+
syntax = "proto3";
|
| 16 |
+
|
| 17 |
+
package google.api;
|
| 18 |
+
|
| 19 |
+
import "google/protobuf/descriptor.proto";
|
| 20 |
+
|
| 21 |
+
option cc_enable_arenas = true;
|
| 22 |
+
option go_package = "google.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig";
|
| 23 |
+
option java_multiple_files = true;
|
| 24 |
+
option java_outer_classname = "PolicyProto";
|
| 25 |
+
option java_package = "com.google.api";
|
| 26 |
+
option objc_class_prefix = "GAPI";
|
| 27 |
+
|
| 28 |
+
extend google.protobuf.FieldOptions {
|
| 29 |
+
// See [FieldPolicy][].
|
| 30 |
+
google.api.FieldPolicy field_policy = 158361448;
|
| 31 |
+
}
|
| 32 |
+
|
| 33 |
+
extend google.protobuf.MethodOptions {
|
| 34 |
+
// See [MethodPolicy][].
|
| 35 |
+
google.api.MethodPolicy method_policy = 161893301;
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
// Google API Policy Annotation
|
| 39 |
+
//
|
| 40 |
+
// This message defines a simple API policy annotation that can be used to
|
| 41 |
+
// annotate API request and response message fields with applicable policies.
|
| 42 |
+
// One field may have multiple applicable policies that must all be satisfied
|
| 43 |
+
// before a request can be processed. This policy annotation is used to
|
| 44 |
+
// generate the overall policy that will be used for automatic runtime
|
| 45 |
+
// policy enforcement and documentation generation.
|
| 46 |
+
message FieldPolicy {
|
| 47 |
+
// Selects one or more request or response message fields to apply this
|
| 48 |
+
// `FieldPolicy`.
|
| 49 |
+
//
|
| 50 |
+
// When a `FieldPolicy` is used in proto annotation, the selector must
|
| 51 |
+
// be left as empty. The service config generator will automatically fill
|
| 52 |
+
// the correct value.
|
| 53 |
+
//
|
| 54 |
+
// When a `FieldPolicy` is used in service config, the selector must be a
|
| 55 |
+
// comma-separated string with valid request or response field paths,
|
| 56 |
+
// such as "foo.bar" or "foo.bar,foo.baz".
|
| 57 |
+
string selector = 1;
|
| 58 |
+
|
| 59 |
+
// Specifies the required permission(s) for the resource referred to by the
|
| 60 |
+
// field. It requires the field contains a valid resource reference, and
|
| 61 |
+
// the request must pass the permission checks to proceed. For example,
|
| 62 |
+
// "resourcemanager.projects.get".
|
| 63 |
+
string resource_permission = 2;
|
| 64 |
+
|
| 65 |
+
// Specifies the resource type for the resource referred to by the field.
|
| 66 |
+
string resource_type = 3;
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
// Defines policies applying to an RPC method.
|
| 70 |
+
message MethodPolicy {
|
| 71 |
+
// Selects a method to which these policies should be enforced, for example,
|
| 72 |
+
// "google.pubsub.v1.Subscriber.CreateSubscription".
|
| 73 |
+
//
|
| 74 |
+
// Refer to [selector][google.api.DocumentationRule.selector] for syntax
|
| 75 |
+
// details.
|
| 76 |
+
//
|
| 77 |
+
// NOTE: This field must not be set in the proto annotation. It will be
|
| 78 |
+
// automatically filled by the service config compiler .
|
| 79 |
+
string selector = 9;
|
| 80 |
+
|
| 81 |
+
// Policies that are applicable to the request message.
|
| 82 |
+
repeated FieldPolicy request_policies = 2;
|
| 83 |
+
}
|