Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- python/user_packages/Python313/site-packages/google/api/annotations.proto +31 -0
- python/user_packages/Python313/site-packages/google/api/annotations_pb2.py +50 -0
- python/user_packages/Python313/site-packages/google/api/annotations_pb2.pyi +24 -0
- python/user_packages/Python313/site-packages/google/api/auth.proto +238 -0
- python/user_packages/Python313/site-packages/google/api/auth_pb2.py +56 -0
- python/user_packages/Python313/site-packages/google/api/auth_pb2.pyi +120 -0
- python/user_packages/Python313/site-packages/google/api/backend.proto +196 -0
- python/user_packages/Python313/site-packages/google/api/backend_pb2.py +60 -0
- python/user_packages/Python313/site-packages/google/api/backend_pb2.pyi +106 -0
- python/user_packages/Python313/site-packages/google/api/billing.proto +77 -0
- python/user_packages/Python313/site-packages/google/api/billing_pb2.py +48 -0
- python/user_packages/Python313/site-packages/google/api/billing_pb2.pyi +50 -0
- python/user_packages/Python313/site-packages/google/api/client.proto +598 -0
- python/user_packages/Python313/site-packages/google/api/client_pb2.py +113 -0
- python/user_packages/Python313/site-packages/google/api/client_pb2.pyi +493 -0
- python/user_packages/Python313/site-packages/google/api/config_change.proto +84 -0
- python/user_packages/Python313/site-packages/google/api/config_change_pb2.py +52 -0
- python/user_packages/Python313/site-packages/google/api/config_change_pb2.pyi +65 -0
- python/user_packages/Python313/site-packages/google/api/consumer.proto +82 -0
- python/user_packages/Python313/site-packages/google/api/consumer_pb2.py +50 -0
- python/user_packages/Python313/site-packages/google/api/consumer_pb2.pyi +62 -0
- python/user_packages/Python313/site-packages/google/api/context.proto +92 -0
- python/user_packages/Python313/site-packages/google/api/context_pb2.py +48 -0
- python/user_packages/Python313/site-packages/google/api/context_pb2.pyi +60 -0
- python/user_packages/Python313/site-packages/google/api/control.proto +41 -0
- python/user_packages/Python313/site-packages/google/api/control_pb2.py +48 -0
- python/user_packages/Python313/site-packages/google/api/control_pb2.pyi +43 -0
- python/user_packages/Python313/site-packages/google/api/distribution.proto +213 -0
- python/user_packages/Python313/site-packages/google/api/distribution_pb2.py +63 -0
- python/user_packages/Python313/site-packages/google/api/distribution_pb2.pyi +144 -0
- python/user_packages/Python313/site-packages/google/api/documentation.proto +168 -0
- python/user_packages/Python313/site-packages/google/api/documentation_pb2.py +52 -0
- python/user_packages/Python313/site-packages/google/api/documentation_pb2.pyi +86 -0
- python/user_packages/Python313/site-packages/google/api/endpoint.proto +69 -0
- python/user_packages/Python313/site-packages/google/api/endpoint_pb2.py +46 -0
- python/user_packages/Python313/site-packages/google/api/endpoint_pb2.pyi +41 -0
- python/user_packages/Python313/site-packages/google/api/error_reason.proto +807 -0
- python/user_packages/Python313/site-packages/google/api/error_reason_pb2.py +48 -0
- python/user_packages/Python313/site-packages/google/api/error_reason_pb2.pyi +112 -0
- python/user_packages/Python313/site-packages/google/api/field_behavior.proto +104 -0
- python/user_packages/Python313/site-packages/google/api/field_behavior_pb2.py +52 -0
- python/user_packages/Python313/site-packages/google/api/field_behavior_pb2.pyi +45 -0
- python/user_packages/Python313/site-packages/google/api/field_info.proto +106 -0
- python/user_packages/Python313/site-packages/google/api/field_info_pb2.py +54 -0
- python/user_packages/Python313/site-packages/google/api/field_info_pb2.pyi +60 -0
- python/user_packages/Python313/site-packages/google/api/http.proto +370 -0
- python/user_packages/Python313/site-packages/google/api/http_pb2.py +50 -0
- python/user_packages/Python313/site-packages/google/api/http_pb2.pyi +94 -0
- python/user_packages/Python313/site-packages/google/api/httpbody.proto +80 -0
- python/user_packages/Python313/site-packages/google/api/httpbody_pb2.py +48 -0
python/user_packages/Python313/site-packages/google/api/annotations.proto
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2025 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 |
+
}
|
python/user_packages/Python313/site-packages/google/api/annotations_pb2.py
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# -*- coding: utf-8 -*-
|
| 2 |
+
|
| 3 |
+
# Copyright 2025 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 |
+
# Protobuf Python Version: 4.25.3
|
| 20 |
+
"""Generated protocol buffer code."""
|
| 21 |
+
|
| 22 |
+
from google.protobuf import descriptor as _descriptor
|
| 23 |
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
| 24 |
+
from google.protobuf import symbol_database as _symbol_database
|
| 25 |
+
from google.protobuf.internal import builder as _builder
|
| 26 |
+
|
| 27 |
+
# @@protoc_insertion_point(imports)
|
| 28 |
+
|
| 29 |
+
_sym_db = _symbol_database.Default()
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
from google.protobuf import descriptor_pb2 as google_dot_protobuf_dot_descriptor__pb2
|
| 33 |
+
|
| 34 |
+
from google.api import http_pb2 as google_dot_api_dot_http__pb2
|
| 35 |
+
|
| 36 |
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
| 37 |
+
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'
|
| 38 |
+
)
|
| 39 |
+
|
| 40 |
+
_globals = globals()
|
| 41 |
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
| 42 |
+
_builder.BuildTopDescriptorsAndMessages(
|
| 43 |
+
DESCRIPTOR, "google.api.annotations_pb2", _globals
|
| 44 |
+
)
|
| 45 |
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
| 46 |
+
_globals["DESCRIPTOR"]._options = None
|
| 47 |
+
_globals[
|
| 48 |
+
"DESCRIPTOR"
|
| 49 |
+
]._serialized_options = b"\n\016com.google.apiB\020AnnotationsProtoP\001ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\242\002\004GAPI"
|
| 50 |
+
# @@protoc_insertion_point(module_scope)
|
python/user_packages/Python313/site-packages/google/api/annotations_pb2.pyi
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2025 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 |
+
from typing import ClassVar as _ClassVar
|
| 16 |
+
|
| 17 |
+
from google.protobuf import descriptor as _descriptor
|
| 18 |
+
from google.protobuf import descriptor_pb2 as _descriptor_pb2
|
| 19 |
+
|
| 20 |
+
from google.api import http_pb2 as _http_pb2
|
| 21 |
+
|
| 22 |
+
DESCRIPTOR: _descriptor.FileDescriptor
|
| 23 |
+
HTTP_FIELD_NUMBER: _ClassVar[int]
|
| 24 |
+
http: _descriptor.FieldDescriptor
|
python/user_packages/Python313/site-packages/google/api/auth.proto
ADDED
|
@@ -0,0 +1,238 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2026 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 |
+
//
|
| 203 |
+
// Example:
|
| 204 |
+
//
|
| 205 |
+
// canonical_scopes: https://www.googleapis.com/auth/calendar,
|
| 206 |
+
// https://www.googleapis.com/auth/calendar.read
|
| 207 |
+
string canonical_scopes = 1;
|
| 208 |
+
}
|
| 209 |
+
|
| 210 |
+
// User-defined authentication requirements, including support for
|
| 211 |
+
// [JSON Web Token
|
| 212 |
+
// (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).
|
| 213 |
+
message AuthRequirement {
|
| 214 |
+
// [id][google.api.AuthProvider.id] from authentication provider.
|
| 215 |
+
//
|
| 216 |
+
// Example:
|
| 217 |
+
//
|
| 218 |
+
// provider_id: bookstore_auth
|
| 219 |
+
string provider_id = 1;
|
| 220 |
+
|
| 221 |
+
// NOTE: This will be deprecated soon, once AuthProvider.audiences is
|
| 222 |
+
// implemented and accepted in all the runtime components.
|
| 223 |
+
//
|
| 224 |
+
// The list of JWT
|
| 225 |
+
// [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
|
| 226 |
+
// that are allowed to access. A JWT containing any of these audiences will
|
| 227 |
+
// be accepted. When this setting is absent, only JWTs with audience
|
| 228 |
+
// "https://[Service_name][google.api.Service.name]/[API_name][google.protobuf.Api.name]"
|
| 229 |
+
// will be accepted. For example, if no audiences are in the setting,
|
| 230 |
+
// LibraryService API will only accept JWTs with the following audience
|
| 231 |
+
// "https://library-example.googleapis.com/google.example.library.v1.LibraryService".
|
| 232 |
+
//
|
| 233 |
+
// Example:
|
| 234 |
+
//
|
| 235 |
+
// audiences: bookstore_android.apps.googleusercontent.com,
|
| 236 |
+
// bookstore_web.apps.googleusercontent.com
|
| 237 |
+
string audiences = 2;
|
| 238 |
+
}
|
python/user_packages/Python313/site-packages/google/api/auth_pb2.py
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# -*- coding: utf-8 -*-
|
| 2 |
+
|
| 3 |
+
# Copyright 2025 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/auth.proto
|
| 19 |
+
# Protobuf Python Version: 4.25.3
|
| 20 |
+
"""Generated protocol buffer code."""
|
| 21 |
+
|
| 22 |
+
from google.protobuf import descriptor as _descriptor
|
| 23 |
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
| 24 |
+
from google.protobuf import symbol_database as _symbol_database
|
| 25 |
+
from google.protobuf.internal import builder as _builder
|
| 26 |
+
|
| 27 |
+
# @@protoc_insertion_point(imports)
|
| 28 |
+
|
| 29 |
+
_sym_db = _symbol_database.Default()
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
| 33 |
+
b'\n\x15google/api/auth.proto\x12\ngoogle.api"l\n\x0e\x41uthentication\x12-\n\x05rules\x18\x03 \x03(\x0b\x32\x1e.google.api.AuthenticationRule\x12+\n\tproviders\x18\x04 \x03(\x0b\x32\x18.google.api.AuthProvider"\xa9\x01\n\x12\x41uthenticationRule\x12\x10\n\x08selector\x18\x01 \x01(\t\x12,\n\x05oauth\x18\x02 \x01(\x0b\x32\x1d.google.api.OAuthRequirements\x12 \n\x18\x61llow_without_credential\x18\x05 \x01(\x08\x12\x31\n\x0crequirements\x18\x07 \x03(\x0b\x32\x1b.google.api.AuthRequirement"^\n\x0bJwtLocation\x12\x10\n\x06header\x18\x01 \x01(\tH\x00\x12\x0f\n\x05query\x18\x02 \x01(\tH\x00\x12\x10\n\x06\x63ookie\x18\x04 \x01(\tH\x00\x12\x14\n\x0cvalue_prefix\x18\x03 \x01(\tB\x04\n\x02in"\x9a\x01\n\x0c\x41uthProvider\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0e\n\x06issuer\x18\x02 \x01(\t\x12\x10\n\x08jwks_uri\x18\x03 \x01(\t\x12\x11\n\taudiences\x18\x04 \x01(\t\x12\x19\n\x11\x61uthorization_url\x18\x05 \x01(\t\x12.\n\rjwt_locations\x18\x06 \x03(\x0b\x32\x17.google.api.JwtLocation"-\n\x11OAuthRequirements\x12\x18\n\x10\x63\x61nonical_scopes\x18\x01 \x01(\t"9\n\x0f\x41uthRequirement\x12\x13\n\x0bprovider_id\x18\x01 \x01(\t\x12\x11\n\taudiences\x18\x02 \x01(\tBk\n\x0e\x63om.google.apiB\tAuthProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xa2\x02\x04GAPIb\x06proto3'
|
| 34 |
+
)
|
| 35 |
+
|
| 36 |
+
_globals = globals()
|
| 37 |
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
| 38 |
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "google.api.auth_pb2", _globals)
|
| 39 |
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
| 40 |
+
_globals["DESCRIPTOR"]._options = None
|
| 41 |
+
_globals[
|
| 42 |
+
"DESCRIPTOR"
|
| 43 |
+
]._serialized_options = b"\n\016com.google.apiB\tAuthProtoP\001ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\242\002\004GAPI"
|
| 44 |
+
_globals["_AUTHENTICATION"]._serialized_start = 37
|
| 45 |
+
_globals["_AUTHENTICATION"]._serialized_end = 145
|
| 46 |
+
_globals["_AUTHENTICATIONRULE"]._serialized_start = 148
|
| 47 |
+
_globals["_AUTHENTICATIONRULE"]._serialized_end = 317
|
| 48 |
+
_globals["_JWTLOCATION"]._serialized_start = 319
|
| 49 |
+
_globals["_JWTLOCATION"]._serialized_end = 413
|
| 50 |
+
_globals["_AUTHPROVIDER"]._serialized_start = 416
|
| 51 |
+
_globals["_AUTHPROVIDER"]._serialized_end = 570
|
| 52 |
+
_globals["_OAUTHREQUIREMENTS"]._serialized_start = 572
|
| 53 |
+
_globals["_OAUTHREQUIREMENTS"]._serialized_end = 617
|
| 54 |
+
_globals["_AUTHREQUIREMENT"]._serialized_start = 619
|
| 55 |
+
_globals["_AUTHREQUIREMENT"]._serialized_end = 676
|
| 56 |
+
# @@protoc_insertion_point(module_scope)
|
python/user_packages/Python313/site-packages/google/api/auth_pb2.pyi
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2025 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 |
+
from typing import ClassVar as _ClassVar
|
| 16 |
+
from typing import Iterable as _Iterable
|
| 17 |
+
from typing import Mapping as _Mapping
|
| 18 |
+
from typing import Optional as _Optional
|
| 19 |
+
from typing import Union as _Union
|
| 20 |
+
|
| 21 |
+
from google.protobuf import descriptor as _descriptor
|
| 22 |
+
from google.protobuf import message as _message
|
| 23 |
+
from google.protobuf.internal import containers as _containers
|
| 24 |
+
|
| 25 |
+
DESCRIPTOR: _descriptor.FileDescriptor
|
| 26 |
+
|
| 27 |
+
class Authentication(_message.Message):
|
| 28 |
+
__slots__ = ("rules", "providers")
|
| 29 |
+
RULES_FIELD_NUMBER: _ClassVar[int]
|
| 30 |
+
PROVIDERS_FIELD_NUMBER: _ClassVar[int]
|
| 31 |
+
rules: _containers.RepeatedCompositeFieldContainer[AuthenticationRule]
|
| 32 |
+
providers: _containers.RepeatedCompositeFieldContainer[AuthProvider]
|
| 33 |
+
def __init__(
|
| 34 |
+
self,
|
| 35 |
+
rules: _Optional[_Iterable[_Union[AuthenticationRule, _Mapping]]] = ...,
|
| 36 |
+
providers: _Optional[_Iterable[_Union[AuthProvider, _Mapping]]] = ...,
|
| 37 |
+
) -> None: ...
|
| 38 |
+
|
| 39 |
+
class AuthenticationRule(_message.Message):
|
| 40 |
+
__slots__ = ("selector", "oauth", "allow_without_credential", "requirements")
|
| 41 |
+
SELECTOR_FIELD_NUMBER: _ClassVar[int]
|
| 42 |
+
OAUTH_FIELD_NUMBER: _ClassVar[int]
|
| 43 |
+
ALLOW_WITHOUT_CREDENTIAL_FIELD_NUMBER: _ClassVar[int]
|
| 44 |
+
REQUIREMENTS_FIELD_NUMBER: _ClassVar[int]
|
| 45 |
+
selector: str
|
| 46 |
+
oauth: OAuthRequirements
|
| 47 |
+
allow_without_credential: bool
|
| 48 |
+
requirements: _containers.RepeatedCompositeFieldContainer[AuthRequirement]
|
| 49 |
+
def __init__(
|
| 50 |
+
self,
|
| 51 |
+
selector: _Optional[str] = ...,
|
| 52 |
+
oauth: _Optional[_Union[OAuthRequirements, _Mapping]] = ...,
|
| 53 |
+
allow_without_credential: bool = ...,
|
| 54 |
+
requirements: _Optional[_Iterable[_Union[AuthRequirement, _Mapping]]] = ...,
|
| 55 |
+
) -> None: ...
|
| 56 |
+
|
| 57 |
+
class JwtLocation(_message.Message):
|
| 58 |
+
__slots__ = ("header", "query", "cookie", "value_prefix")
|
| 59 |
+
HEADER_FIELD_NUMBER: _ClassVar[int]
|
| 60 |
+
QUERY_FIELD_NUMBER: _ClassVar[int]
|
| 61 |
+
COOKIE_FIELD_NUMBER: _ClassVar[int]
|
| 62 |
+
VALUE_PREFIX_FIELD_NUMBER: _ClassVar[int]
|
| 63 |
+
header: str
|
| 64 |
+
query: str
|
| 65 |
+
cookie: str
|
| 66 |
+
value_prefix: str
|
| 67 |
+
def __init__(
|
| 68 |
+
self,
|
| 69 |
+
header: _Optional[str] = ...,
|
| 70 |
+
query: _Optional[str] = ...,
|
| 71 |
+
cookie: _Optional[str] = ...,
|
| 72 |
+
value_prefix: _Optional[str] = ...,
|
| 73 |
+
) -> None: ...
|
| 74 |
+
|
| 75 |
+
class AuthProvider(_message.Message):
|
| 76 |
+
__slots__ = (
|
| 77 |
+
"id",
|
| 78 |
+
"issuer",
|
| 79 |
+
"jwks_uri",
|
| 80 |
+
"audiences",
|
| 81 |
+
"authorization_url",
|
| 82 |
+
"jwt_locations",
|
| 83 |
+
)
|
| 84 |
+
ID_FIELD_NUMBER: _ClassVar[int]
|
| 85 |
+
ISSUER_FIELD_NUMBER: _ClassVar[int]
|
| 86 |
+
JWKS_URI_FIELD_NUMBER: _ClassVar[int]
|
| 87 |
+
AUDIENCES_FIELD_NUMBER: _ClassVar[int]
|
| 88 |
+
AUTHORIZATION_URL_FIELD_NUMBER: _ClassVar[int]
|
| 89 |
+
JWT_LOCATIONS_FIELD_NUMBER: _ClassVar[int]
|
| 90 |
+
id: str
|
| 91 |
+
issuer: str
|
| 92 |
+
jwks_uri: str
|
| 93 |
+
audiences: str
|
| 94 |
+
authorization_url: str
|
| 95 |
+
jwt_locations: _containers.RepeatedCompositeFieldContainer[JwtLocation]
|
| 96 |
+
def __init__(
|
| 97 |
+
self,
|
| 98 |
+
id: _Optional[str] = ...,
|
| 99 |
+
issuer: _Optional[str] = ...,
|
| 100 |
+
jwks_uri: _Optional[str] = ...,
|
| 101 |
+
audiences: _Optional[str] = ...,
|
| 102 |
+
authorization_url: _Optional[str] = ...,
|
| 103 |
+
jwt_locations: _Optional[_Iterable[_Union[JwtLocation, _Mapping]]] = ...,
|
| 104 |
+
) -> None: ...
|
| 105 |
+
|
| 106 |
+
class OAuthRequirements(_message.Message):
|
| 107 |
+
__slots__ = ("canonical_scopes",)
|
| 108 |
+
CANONICAL_SCOPES_FIELD_NUMBER: _ClassVar[int]
|
| 109 |
+
canonical_scopes: str
|
| 110 |
+
def __init__(self, canonical_scopes: _Optional[str] = ...) -> None: ...
|
| 111 |
+
|
| 112 |
+
class AuthRequirement(_message.Message):
|
| 113 |
+
__slots__ = ("provider_id", "audiences")
|
| 114 |
+
PROVIDER_ID_FIELD_NUMBER: _ClassVar[int]
|
| 115 |
+
AUDIENCES_FIELD_NUMBER: _ClassVar[int]
|
| 116 |
+
provider_id: str
|
| 117 |
+
audiences: str
|
| 118 |
+
def __init__(
|
| 119 |
+
self, provider_id: _Optional[str] = ..., audiences: _Optional[str] = ...
|
| 120 |
+
) -> None: ...
|
python/user_packages/Python313/site-packages/google/api/backend.proto
ADDED
|
@@ -0,0 +1,196 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2026 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 = "BackendProto";
|
| 22 |
+
option java_package = "com.google.api";
|
| 23 |
+
option objc_class_prefix = "GAPI";
|
| 24 |
+
|
| 25 |
+
// `Backend` defines the backend configuration for a service.
|
| 26 |
+
message Backend {
|
| 27 |
+
// A list of API backend rules that apply to individual API methods.
|
| 28 |
+
//
|
| 29 |
+
// **NOTE:** All service configuration rules follow "last one wins" order.
|
| 30 |
+
repeated BackendRule rules = 1;
|
| 31 |
+
}
|
| 32 |
+
|
| 33 |
+
// A backend rule provides configuration for an individual API element.
|
| 34 |
+
message BackendRule {
|
| 35 |
+
// Path Translation specifies how to combine the backend address with the
|
| 36 |
+
// request path in order to produce the appropriate forwarding URL for the
|
| 37 |
+
// request.
|
| 38 |
+
//
|
| 39 |
+
// Path Translation is applicable only to HTTP-based backends. Backends which
|
| 40 |
+
// do not accept requests over HTTP/HTTPS should leave `path_translation`
|
| 41 |
+
// unspecified.
|
| 42 |
+
enum PathTranslation {
|
| 43 |
+
PATH_TRANSLATION_UNSPECIFIED = 0;
|
| 44 |
+
|
| 45 |
+
// Use the backend address as-is, with no modification to the path. If the
|
| 46 |
+
// URL pattern contains variables, the variable names and values will be
|
| 47 |
+
// appended to the query string. If a query string parameter and a URL
|
| 48 |
+
// pattern variable have the same name, this may result in duplicate keys in
|
| 49 |
+
// the query string.
|
| 50 |
+
//
|
| 51 |
+
// # Examples
|
| 52 |
+
//
|
| 53 |
+
// Given the following operation config:
|
| 54 |
+
//
|
| 55 |
+
// Method path: /api/company/{cid}/user/{uid}
|
| 56 |
+
// Backend address: https://example.cloudfunctions.net/getUser
|
| 57 |
+
//
|
| 58 |
+
// Requests to the following request paths will call the backend at the
|
| 59 |
+
// translated path:
|
| 60 |
+
//
|
| 61 |
+
// Request path: /api/company/widgetworks/user/johndoe
|
| 62 |
+
// Translated:
|
| 63 |
+
// https://example.cloudfunctions.net/getUser?cid=widgetworks&uid=johndoe
|
| 64 |
+
//
|
| 65 |
+
// Request path: /api/company/widgetworks/user/johndoe?timezone=EST
|
| 66 |
+
// Translated:
|
| 67 |
+
// https://example.cloudfunctions.net/getUser?timezone=EST&cid=widgetworks&uid=johndoe
|
| 68 |
+
CONSTANT_ADDRESS = 1;
|
| 69 |
+
|
| 70 |
+
// The request path will be appended to the backend address.
|
| 71 |
+
//
|
| 72 |
+
// # Examples
|
| 73 |
+
//
|
| 74 |
+
// Given the following operation config:
|
| 75 |
+
//
|
| 76 |
+
// Method path: /api/company/{cid}/user/{uid}
|
| 77 |
+
// Backend address: https://example.appspot.com
|
| 78 |
+
//
|
| 79 |
+
// Requests to the following request paths will call the backend at the
|
| 80 |
+
// translated path:
|
| 81 |
+
//
|
| 82 |
+
// Request path: /api/company/widgetworks/user/johndoe
|
| 83 |
+
// Translated:
|
| 84 |
+
// https://example.appspot.com/api/company/widgetworks/user/johndoe
|
| 85 |
+
//
|
| 86 |
+
// Request path: /api/company/widgetworks/user/johndoe?timezone=EST
|
| 87 |
+
// Translated:
|
| 88 |
+
// https://example.appspot.com/api/company/widgetworks/user/johndoe?timezone=EST
|
| 89 |
+
APPEND_PATH_TO_ADDRESS = 2;
|
| 90 |
+
}
|
| 91 |
+
|
| 92 |
+
// Selects the methods to which this rule applies.
|
| 93 |
+
//
|
| 94 |
+
// Refer to [selector][google.api.DocumentationRule.selector] for syntax
|
| 95 |
+
// details.
|
| 96 |
+
string selector = 1;
|
| 97 |
+
|
| 98 |
+
// The address of the API backend.
|
| 99 |
+
//
|
| 100 |
+
// The scheme is used to determine the backend protocol and security.
|
| 101 |
+
// The following schemes are accepted:
|
| 102 |
+
//
|
| 103 |
+
// SCHEME PROTOCOL SECURITY
|
| 104 |
+
// http:// HTTP None
|
| 105 |
+
// https:// HTTP TLS
|
| 106 |
+
// grpc:// gRPC None
|
| 107 |
+
// grpcs:// gRPC TLS
|
| 108 |
+
//
|
| 109 |
+
// It is recommended to explicitly include a scheme. Leaving out the scheme
|
| 110 |
+
// may cause constrasting behaviors across platforms.
|
| 111 |
+
//
|
| 112 |
+
// If the port is unspecified, the default is:
|
| 113 |
+
// - 80 for schemes without TLS
|
| 114 |
+
// - 443 for schemes with TLS
|
| 115 |
+
//
|
| 116 |
+
// For HTTP backends, use [protocol][google.api.BackendRule.protocol]
|
| 117 |
+
// to specify the protocol version.
|
| 118 |
+
string address = 2;
|
| 119 |
+
|
| 120 |
+
// The number of seconds to wait for a response from a request. The default
|
| 121 |
+
// varies based on the request protocol and deployment environment.
|
| 122 |
+
double deadline = 3;
|
| 123 |
+
|
| 124 |
+
// Deprecated, do not use.
|
| 125 |
+
double min_deadline = 4 [deprecated = true];
|
| 126 |
+
|
| 127 |
+
// The number of seconds to wait for the completion of a long running
|
| 128 |
+
// operation. The default is no deadline.
|
| 129 |
+
double operation_deadline = 5;
|
| 130 |
+
|
| 131 |
+
// Path translation specifies how to combine the backend address with the
|
| 132 |
+
// request path in order to produce the appropriate forwarding URL for the
|
| 133 |
+
// request. See [PathTranslation][google.api.BackendRule.PathTranslation] for
|
| 134 |
+
// more details.
|
| 135 |
+
PathTranslation path_translation = 6;
|
| 136 |
+
|
| 137 |
+
// Authentication settings used by the backend.
|
| 138 |
+
//
|
| 139 |
+
// These are typically used to provide service management functionality to
|
| 140 |
+
// a backend served on a publicly-routable URL. The `authentication`
|
| 141 |
+
// details should match the authentication behavior used by the backend.
|
| 142 |
+
//
|
| 143 |
+
// For example, specifying `jwt_audience` implies that the backend expects
|
| 144 |
+
// authentication via a JWT.
|
| 145 |
+
//
|
| 146 |
+
// When authentication is unspecified, the resulting behavior is the same
|
| 147 |
+
// as `disable_auth` set to `true`.
|
| 148 |
+
//
|
| 149 |
+
// Refer to https://developers.google.com/identity/protocols/OpenIDConnect for
|
| 150 |
+
// JWT ID token.
|
| 151 |
+
oneof authentication {
|
| 152 |
+
// The JWT audience is used when generating a JWT ID token for the backend.
|
| 153 |
+
// This ID token will be added in the HTTP "authorization" header, and sent
|
| 154 |
+
// to the backend.
|
| 155 |
+
string jwt_audience = 7;
|
| 156 |
+
|
| 157 |
+
// When disable_auth is true, a JWT ID token won't be generated and the
|
| 158 |
+
// original "Authorization" HTTP header will be preserved. If the header is
|
| 159 |
+
// used to carry the original token and is expected by the backend, this
|
| 160 |
+
// field must be set to true to preserve the header.
|
| 161 |
+
bool disable_auth = 8;
|
| 162 |
+
}
|
| 163 |
+
|
| 164 |
+
// The protocol used for sending a request to the backend.
|
| 165 |
+
// The supported values are "http/1.1" and "h2".
|
| 166 |
+
//
|
| 167 |
+
// The default value is inferred from the scheme in the
|
| 168 |
+
// [address][google.api.BackendRule.address] field:
|
| 169 |
+
//
|
| 170 |
+
// SCHEME PROTOCOL
|
| 171 |
+
// http:// http/1.1
|
| 172 |
+
// https:// http/1.1
|
| 173 |
+
// grpc:// h2
|
| 174 |
+
// grpcs:// h2
|
| 175 |
+
//
|
| 176 |
+
// For secure HTTP backends (https://) that support HTTP/2, set this field
|
| 177 |
+
// to "h2" for improved performance.
|
| 178 |
+
//
|
| 179 |
+
// Configuring this field to non-default values is only supported for secure
|
| 180 |
+
// HTTP backends. This field will be ignored for all other backends.
|
| 181 |
+
//
|
| 182 |
+
// See
|
| 183 |
+
// https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
|
| 184 |
+
// for more details on the supported values.
|
| 185 |
+
string protocol = 9;
|
| 186 |
+
|
| 187 |
+
// The map between request protocol and the backend address.
|
| 188 |
+
map<string, BackendRule> overrides_by_request_protocol = 10;
|
| 189 |
+
|
| 190 |
+
// The load balancing policy used for connection to the application backend.
|
| 191 |
+
//
|
| 192 |
+
// Defined as an arbitrary string to accomondate custom load balancing
|
| 193 |
+
// policies supported by the underlying channel, but suggest most users use
|
| 194 |
+
// one of the standard policies, such as the default, "RoundRobin".
|
| 195 |
+
string load_balancing_policy = 11;
|
| 196 |
+
}
|
python/user_packages/Python313/site-packages/google/api/backend_pb2.py
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# -*- coding: utf-8 -*-
|
| 2 |
+
|
| 3 |
+
# Copyright 2025 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 |
+
# Protobuf Python Version: 4.25.3
|
| 20 |
+
"""Generated protocol buffer code."""
|
| 21 |
+
|
| 22 |
+
from google.protobuf import descriptor as _descriptor
|
| 23 |
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
| 24 |
+
from google.protobuf import symbol_database as _symbol_database
|
| 25 |
+
from google.protobuf.internal import builder as _builder
|
| 26 |
+
|
| 27 |
+
# @@protoc_insertion_point(imports)
|
| 28 |
+
|
| 29 |
+
_sym_db = _symbol_database.Default()
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
| 33 |
+
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"\xd1\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\x12\x1d\n\x15load_balancing_policy\x18\x0b \x01(\t\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'
|
| 34 |
+
)
|
| 35 |
+
|
| 36 |
+
_globals = globals()
|
| 37 |
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
| 38 |
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "google.api.backend_pb2", _globals)
|
| 39 |
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
| 40 |
+
_globals["DESCRIPTOR"]._options = None
|
| 41 |
+
_globals[
|
| 42 |
+
"DESCRIPTOR"
|
| 43 |
+
]._serialized_options = b"\n\016com.google.apiB\014BackendProtoP\001ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\242\002\004GAPI"
|
| 44 |
+
_globals["_BACKENDRULE_OVERRIDESBYREQUESTPROTOCOLENTRY"]._options = None
|
| 45 |
+
_globals[
|
| 46 |
+
"_BACKENDRULE_OVERRIDESBYREQUESTPROTOCOLENTRY"
|
| 47 |
+
]._serialized_options = b"8\001"
|
| 48 |
+
_globals["_BACKENDRULE"].fields_by_name["min_deadline"]._options = None
|
| 49 |
+
_globals["_BACKENDRULE"].fields_by_name[
|
| 50 |
+
"min_deadline"
|
| 51 |
+
]._serialized_options = b"\030\001"
|
| 52 |
+
_globals["_BACKEND"]._serialized_start = 40
|
| 53 |
+
_globals["_BACKEND"]._serialized_end = 89
|
| 54 |
+
_globals["_BACKENDRULE"]._serialized_start = 92
|
| 55 |
+
_globals["_BACKENDRULE"]._serialized_end = 685
|
| 56 |
+
_globals["_BACKENDRULE_OVERRIDESBYREQUESTPROTOCOLENTRY"]._serialized_start = 474
|
| 57 |
+
_globals["_BACKENDRULE_OVERRIDESBYREQUESTPROTOCOLENTRY"]._serialized_end = 564
|
| 58 |
+
_globals["_BACKENDRULE_PATHTRANSLATION"]._serialized_start = 566
|
| 59 |
+
_globals["_BACKENDRULE_PATHTRANSLATION"]._serialized_end = 667
|
| 60 |
+
# @@protoc_insertion_point(module_scope)
|
python/user_packages/Python313/site-packages/google/api/backend_pb2.pyi
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2025 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 |
+
from typing import ClassVar as _ClassVar
|
| 16 |
+
from typing import Iterable as _Iterable
|
| 17 |
+
from typing import Mapping as _Mapping
|
| 18 |
+
from typing import Optional as _Optional
|
| 19 |
+
from typing import Union as _Union
|
| 20 |
+
|
| 21 |
+
from google.protobuf import descriptor as _descriptor
|
| 22 |
+
from google.protobuf import message as _message
|
| 23 |
+
from google.protobuf.internal import containers as _containers
|
| 24 |
+
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
| 25 |
+
|
| 26 |
+
DESCRIPTOR: _descriptor.FileDescriptor
|
| 27 |
+
|
| 28 |
+
class Backend(_message.Message):
|
| 29 |
+
__slots__ = ("rules",)
|
| 30 |
+
RULES_FIELD_NUMBER: _ClassVar[int]
|
| 31 |
+
rules: _containers.RepeatedCompositeFieldContainer[BackendRule]
|
| 32 |
+
def __init__(
|
| 33 |
+
self, rules: _Optional[_Iterable[_Union[BackendRule, _Mapping]]] = ...
|
| 34 |
+
) -> None: ...
|
| 35 |
+
|
| 36 |
+
class BackendRule(_message.Message):
|
| 37 |
+
__slots__ = (
|
| 38 |
+
"selector",
|
| 39 |
+
"address",
|
| 40 |
+
"deadline",
|
| 41 |
+
"min_deadline",
|
| 42 |
+
"operation_deadline",
|
| 43 |
+
"path_translation",
|
| 44 |
+
"jwt_audience",
|
| 45 |
+
"disable_auth",
|
| 46 |
+
"protocol",
|
| 47 |
+
"overrides_by_request_protocol",
|
| 48 |
+
"load_balancing_policy",
|
| 49 |
+
)
|
| 50 |
+
class PathTranslation(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
| 51 |
+
__slots__ = ()
|
| 52 |
+
PATH_TRANSLATION_UNSPECIFIED: _ClassVar[BackendRule.PathTranslation]
|
| 53 |
+
CONSTANT_ADDRESS: _ClassVar[BackendRule.PathTranslation]
|
| 54 |
+
APPEND_PATH_TO_ADDRESS: _ClassVar[BackendRule.PathTranslation]
|
| 55 |
+
|
| 56 |
+
PATH_TRANSLATION_UNSPECIFIED: BackendRule.PathTranslation
|
| 57 |
+
CONSTANT_ADDRESS: BackendRule.PathTranslation
|
| 58 |
+
APPEND_PATH_TO_ADDRESS: BackendRule.PathTranslation
|
| 59 |
+
class OverridesByRequestProtocolEntry(_message.Message):
|
| 60 |
+
__slots__ = ("key", "value")
|
| 61 |
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
| 62 |
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
| 63 |
+
key: str
|
| 64 |
+
value: BackendRule
|
| 65 |
+
def __init__(
|
| 66 |
+
self,
|
| 67 |
+
key: _Optional[str] = ...,
|
| 68 |
+
value: _Optional[_Union[BackendRule, _Mapping]] = ...,
|
| 69 |
+
) -> None: ...
|
| 70 |
+
|
| 71 |
+
SELECTOR_FIELD_NUMBER: _ClassVar[int]
|
| 72 |
+
ADDRESS_FIELD_NUMBER: _ClassVar[int]
|
| 73 |
+
DEADLINE_FIELD_NUMBER: _ClassVar[int]
|
| 74 |
+
MIN_DEADLINE_FIELD_NUMBER: _ClassVar[int]
|
| 75 |
+
OPERATION_DEADLINE_FIELD_NUMBER: _ClassVar[int]
|
| 76 |
+
PATH_TRANSLATION_FIELD_NUMBER: _ClassVar[int]
|
| 77 |
+
JWT_AUDIENCE_FIELD_NUMBER: _ClassVar[int]
|
| 78 |
+
DISABLE_AUTH_FIELD_NUMBER: _ClassVar[int]
|
| 79 |
+
PROTOCOL_FIELD_NUMBER: _ClassVar[int]
|
| 80 |
+
OVERRIDES_BY_REQUEST_PROTOCOL_FIELD_NUMBER: _ClassVar[int]
|
| 81 |
+
LOAD_BALANCING_POLICY_FIELD_NUMBER: _ClassVar[int]
|
| 82 |
+
selector: str
|
| 83 |
+
address: str
|
| 84 |
+
deadline: float
|
| 85 |
+
min_deadline: float
|
| 86 |
+
operation_deadline: float
|
| 87 |
+
path_translation: BackendRule.PathTranslation
|
| 88 |
+
jwt_audience: str
|
| 89 |
+
disable_auth: bool
|
| 90 |
+
protocol: str
|
| 91 |
+
overrides_by_request_protocol: _containers.MessageMap[str, BackendRule]
|
| 92 |
+
load_balancing_policy: str
|
| 93 |
+
def __init__(
|
| 94 |
+
self,
|
| 95 |
+
selector: _Optional[str] = ...,
|
| 96 |
+
address: _Optional[str] = ...,
|
| 97 |
+
deadline: _Optional[float] = ...,
|
| 98 |
+
min_deadline: _Optional[float] = ...,
|
| 99 |
+
operation_deadline: _Optional[float] = ...,
|
| 100 |
+
path_translation: _Optional[_Union[BackendRule.PathTranslation, str]] = ...,
|
| 101 |
+
jwt_audience: _Optional[str] = ...,
|
| 102 |
+
disable_auth: bool = ...,
|
| 103 |
+
protocol: _Optional[str] = ...,
|
| 104 |
+
overrides_by_request_protocol: _Optional[_Mapping[str, BackendRule]] = ...,
|
| 105 |
+
load_balancing_policy: _Optional[str] = ...,
|
| 106 |
+
) -> None: ...
|
python/user_packages/Python313/site-packages/google/api/billing.proto
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2026 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 |
+
}
|
python/user_packages/Python313/site-packages/google/api/billing_pb2.py
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# -*- coding: utf-8 -*-
|
| 2 |
+
|
| 3 |
+
# Copyright 2025 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 |
+
# Protobuf Python Version: 4.25.3
|
| 20 |
+
"""Generated protocol buffer code."""
|
| 21 |
+
|
| 22 |
+
from google.protobuf import descriptor as _descriptor
|
| 23 |
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
| 24 |
+
from google.protobuf import symbol_database as _symbol_database
|
| 25 |
+
from google.protobuf.internal import builder as _builder
|
| 26 |
+
|
| 27 |
+
# @@protoc_insertion_point(imports)
|
| 28 |
+
|
| 29 |
+
_sym_db = _symbol_database.Default()
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
| 33 |
+
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'
|
| 34 |
+
)
|
| 35 |
+
|
| 36 |
+
_globals = globals()
|
| 37 |
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
| 38 |
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "google.api.billing_pb2", _globals)
|
| 39 |
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
| 40 |
+
_globals["DESCRIPTOR"]._options = None
|
| 41 |
+
_globals[
|
| 42 |
+
"DESCRIPTOR"
|
| 43 |
+
]._serialized_options = b"\n\016com.google.apiB\014BillingProtoP\001ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\242\002\004GAPI"
|
| 44 |
+
_globals["_BILLING"]._serialized_start = 41
|
| 45 |
+
_globals["_BILLING"]._serialized_end = 188
|
| 46 |
+
_globals["_BILLING_BILLINGDESTINATION"]._serialized_start = 123
|
| 47 |
+
_globals["_BILLING_BILLINGDESTINATION"]._serialized_end = 188
|
| 48 |
+
# @@protoc_insertion_point(module_scope)
|
python/user_packages/Python313/site-packages/google/api/billing_pb2.pyi
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2025 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 |
+
from typing import ClassVar as _ClassVar
|
| 16 |
+
from typing import Iterable as _Iterable
|
| 17 |
+
from typing import Mapping as _Mapping
|
| 18 |
+
from typing import Optional as _Optional
|
| 19 |
+
from typing import Union as _Union
|
| 20 |
+
|
| 21 |
+
from google.protobuf import descriptor as _descriptor
|
| 22 |
+
from google.protobuf import message as _message
|
| 23 |
+
from google.protobuf.internal import containers as _containers
|
| 24 |
+
|
| 25 |
+
DESCRIPTOR: _descriptor.FileDescriptor
|
| 26 |
+
|
| 27 |
+
class Billing(_message.Message):
|
| 28 |
+
__slots__ = ("consumer_destinations",)
|
| 29 |
+
class BillingDestination(_message.Message):
|
| 30 |
+
__slots__ = ("monitored_resource", "metrics")
|
| 31 |
+
MONITORED_RESOURCE_FIELD_NUMBER: _ClassVar[int]
|
| 32 |
+
METRICS_FIELD_NUMBER: _ClassVar[int]
|
| 33 |
+
monitored_resource: str
|
| 34 |
+
metrics: _containers.RepeatedScalarFieldContainer[str]
|
| 35 |
+
def __init__(
|
| 36 |
+
self,
|
| 37 |
+
monitored_resource: _Optional[str] = ...,
|
| 38 |
+
metrics: _Optional[_Iterable[str]] = ...,
|
| 39 |
+
) -> None: ...
|
| 40 |
+
|
| 41 |
+
CONSUMER_DESTINATIONS_FIELD_NUMBER: _ClassVar[int]
|
| 42 |
+
consumer_destinations: _containers.RepeatedCompositeFieldContainer[
|
| 43 |
+
Billing.BillingDestination
|
| 44 |
+
]
|
| 45 |
+
def __init__(
|
| 46 |
+
self,
|
| 47 |
+
consumer_destinations: _Optional[
|
| 48 |
+
_Iterable[_Union[Billing.BillingDestination, _Mapping]]
|
| 49 |
+
] = ...,
|
| 50 |
+
) -> None: ...
|
python/user_packages/Python313/site-packages/google/api/client.proto
ADDED
|
@@ -0,0 +1,598 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2026 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/launch_stage.proto";
|
| 20 |
+
import "google/protobuf/descriptor.proto";
|
| 21 |
+
import "google/protobuf/duration.proto";
|
| 22 |
+
|
| 23 |
+
option go_package = "google.golang.org/genproto/googleapis/api/annotations;annotations";
|
| 24 |
+
option java_multiple_files = true;
|
| 25 |
+
option java_outer_classname = "ClientProto";
|
| 26 |
+
option java_package = "com.google.api";
|
| 27 |
+
option objc_class_prefix = "GAPI";
|
| 28 |
+
|
| 29 |
+
extend google.protobuf.MethodOptions {
|
| 30 |
+
// A definition of a client library method signature.
|
| 31 |
+
//
|
| 32 |
+
// In client libraries, each proto RPC corresponds to one or more methods
|
| 33 |
+
// which the end user is able to call, and calls the underlying RPC.
|
| 34 |
+
// Normally, this method receives a single argument (a struct or instance
|
| 35 |
+
// corresponding to the RPC request object). Defining this field will
|
| 36 |
+
// add one or more overloads providing flattened or simpler method signatures
|
| 37 |
+
// in some languages.
|
| 38 |
+
//
|
| 39 |
+
// The fields on the method signature are provided as a comma-separated
|
| 40 |
+
// string.
|
| 41 |
+
//
|
| 42 |
+
// For example, the proto RPC and annotation:
|
| 43 |
+
//
|
| 44 |
+
// rpc CreateSubscription(CreateSubscriptionRequest)
|
| 45 |
+
// returns (Subscription) {
|
| 46 |
+
// option (google.api.method_signature) = "name,topic";
|
| 47 |
+
// }
|
| 48 |
+
//
|
| 49 |
+
// Would add the following Java overload (in addition to the method accepting
|
| 50 |
+
// the request object):
|
| 51 |
+
//
|
| 52 |
+
// public final Subscription createSubscription(String name, String topic)
|
| 53 |
+
//
|
| 54 |
+
// The following backwards-compatibility guidelines apply:
|
| 55 |
+
//
|
| 56 |
+
// * Adding this annotation to an unannotated method is backwards
|
| 57 |
+
// compatible.
|
| 58 |
+
// * Adding this annotation to a method which already has existing
|
| 59 |
+
// method signature annotations is backwards compatible if and only if
|
| 60 |
+
// the new method signature annotation is last in the sequence.
|
| 61 |
+
// * Modifying or removing an existing method signature annotation is
|
| 62 |
+
// a breaking change.
|
| 63 |
+
// * Re-ordering existing method signature annotations is a breaking
|
| 64 |
+
// change.
|
| 65 |
+
repeated string method_signature = 1051;
|
| 66 |
+
}
|
| 67 |
+
|
| 68 |
+
extend google.protobuf.ServiceOptions {
|
| 69 |
+
// The hostname for this service.
|
| 70 |
+
// This should be specified with no prefix or protocol.
|
| 71 |
+
//
|
| 72 |
+
// Example:
|
| 73 |
+
//
|
| 74 |
+
// service Foo {
|
| 75 |
+
// option (google.api.default_host) = "foo.googleapi.com";
|
| 76 |
+
// ...
|
| 77 |
+
// }
|
| 78 |
+
string default_host = 1049;
|
| 79 |
+
|
| 80 |
+
// OAuth scopes needed for the client.
|
| 81 |
+
//
|
| 82 |
+
// Example:
|
| 83 |
+
//
|
| 84 |
+
// service Foo {
|
| 85 |
+
// option (google.api.oauth_scopes) = \
|
| 86 |
+
// "https://www.googleapis.com/auth/cloud-platform";
|
| 87 |
+
// ...
|
| 88 |
+
// }
|
| 89 |
+
//
|
| 90 |
+
// If there is more than one scope, use a comma-separated string:
|
| 91 |
+
//
|
| 92 |
+
// Example:
|
| 93 |
+
//
|
| 94 |
+
// service Foo {
|
| 95 |
+
// option (google.api.oauth_scopes) = \
|
| 96 |
+
// "https://www.googleapis.com/auth/cloud-platform,"
|
| 97 |
+
// "https://www.googleapis.com/auth/monitoring";
|
| 98 |
+
// ...
|
| 99 |
+
// }
|
| 100 |
+
string oauth_scopes = 1050;
|
| 101 |
+
|
| 102 |
+
// The API version of this service, which should be sent by version-aware
|
| 103 |
+
// clients to the service. This allows services to abide by the schema and
|
| 104 |
+
// behavior of the service at the time this API version was deployed.
|
| 105 |
+
// The format of the API version must be treated as opaque by clients.
|
| 106 |
+
// Services may use a format with an apparent structure, but clients must
|
| 107 |
+
// not rely on this to determine components within an API version, or attempt
|
| 108 |
+
// to construct other valid API versions. Note that this is for upcoming
|
| 109 |
+
// functionality and may not be implemented for all services.
|
| 110 |
+
//
|
| 111 |
+
// Example:
|
| 112 |
+
//
|
| 113 |
+
// service Foo {
|
| 114 |
+
// option (google.api.api_version) = "v1_20230821_preview";
|
| 115 |
+
// }
|
| 116 |
+
string api_version = 525000001;
|
| 117 |
+
}
|
| 118 |
+
|
| 119 |
+
// Required information for every language.
|
| 120 |
+
message CommonLanguageSettings {
|
| 121 |
+
// Link to automatically generated reference documentation. Example:
|
| 122 |
+
// https://cloud.google.com/nodejs/docs/reference/asset/latest
|
| 123 |
+
string reference_docs_uri = 1 [deprecated = true];
|
| 124 |
+
|
| 125 |
+
// The destination where API teams want this client library to be published.
|
| 126 |
+
repeated ClientLibraryDestination destinations = 2;
|
| 127 |
+
|
| 128 |
+
// Configuration for which RPCs should be generated in the GAPIC client.
|
| 129 |
+
//
|
| 130 |
+
// Note: This field should not be used in most cases.
|
| 131 |
+
SelectiveGapicGeneration selective_gapic_generation = 3;
|
| 132 |
+
}
|
| 133 |
+
|
| 134 |
+
// Details about how and where to publish client libraries.
|
| 135 |
+
message ClientLibrarySettings {
|
| 136 |
+
// Version of the API to apply these settings to. This is the full protobuf
|
| 137 |
+
// package for the API, ending in the version element.
|
| 138 |
+
// Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1".
|
| 139 |
+
string version = 1;
|
| 140 |
+
|
| 141 |
+
// Launch stage of this version of the API.
|
| 142 |
+
LaunchStage launch_stage = 2;
|
| 143 |
+
|
| 144 |
+
// When using transport=rest, the client request will encode enums as
|
| 145 |
+
// numbers rather than strings.
|
| 146 |
+
bool rest_numeric_enums = 3;
|
| 147 |
+
|
| 148 |
+
// Settings for legacy Java features, supported in the Service YAML.
|
| 149 |
+
JavaSettings java_settings = 21;
|
| 150 |
+
|
| 151 |
+
// Settings for C++ client libraries.
|
| 152 |
+
CppSettings cpp_settings = 22;
|
| 153 |
+
|
| 154 |
+
// Settings for PHP client libraries.
|
| 155 |
+
PhpSettings php_settings = 23;
|
| 156 |
+
|
| 157 |
+
// Settings for Python client libraries.
|
| 158 |
+
PythonSettings python_settings = 24;
|
| 159 |
+
|
| 160 |
+
// Settings for Node client libraries.
|
| 161 |
+
NodeSettings node_settings = 25;
|
| 162 |
+
|
| 163 |
+
// Settings for .NET client libraries.
|
| 164 |
+
DotnetSettings dotnet_settings = 26;
|
| 165 |
+
|
| 166 |
+
// Settings for Ruby client libraries.
|
| 167 |
+
RubySettings ruby_settings = 27;
|
| 168 |
+
|
| 169 |
+
// Settings for Go client libraries.
|
| 170 |
+
GoSettings go_settings = 28;
|
| 171 |
+
}
|
| 172 |
+
|
| 173 |
+
// This message configures the settings for publishing [Google Cloud Client
|
| 174 |
+
// libraries](https://cloud.google.com/apis/docs/cloud-client-libraries)
|
| 175 |
+
// generated from the service config.
|
| 176 |
+
message Publishing {
|
| 177 |
+
// A list of API method settings, e.g. the behavior for methods that use the
|
| 178 |
+
// long-running operation pattern.
|
| 179 |
+
repeated MethodSettings method_settings = 2;
|
| 180 |
+
|
| 181 |
+
// Link to a *public* URI where users can report issues. Example:
|
| 182 |
+
// https://issuetracker.google.com/issues/new?component=190865&template=1161103
|
| 183 |
+
string new_issue_uri = 101;
|
| 184 |
+
|
| 185 |
+
// Link to product home page. Example:
|
| 186 |
+
// https://cloud.google.com/asset-inventory/docs/overview
|
| 187 |
+
string documentation_uri = 102;
|
| 188 |
+
|
| 189 |
+
// Used as a tracking tag when collecting data about the APIs developer
|
| 190 |
+
// relations artifacts like docs, packages delivered to package managers,
|
| 191 |
+
// etc. Example: "speech".
|
| 192 |
+
string api_short_name = 103;
|
| 193 |
+
|
| 194 |
+
// GitHub label to apply to issues and pull requests opened for this API.
|
| 195 |
+
string github_label = 104;
|
| 196 |
+
|
| 197 |
+
// GitHub teams to be added to CODEOWNERS in the directory in GitHub
|
| 198 |
+
// containing source code for the client libraries for this API.
|
| 199 |
+
repeated string codeowner_github_teams = 105;
|
| 200 |
+
|
| 201 |
+
// A prefix used in sample code when demarking regions to be included in
|
| 202 |
+
// documentation.
|
| 203 |
+
string doc_tag_prefix = 106;
|
| 204 |
+
|
| 205 |
+
// For whom the client library is being published.
|
| 206 |
+
ClientLibraryOrganization organization = 107;
|
| 207 |
+
|
| 208 |
+
// Client library settings. If the same version string appears multiple
|
| 209 |
+
// times in this list, then the last one wins. Settings from earlier
|
| 210 |
+
// settings with the same version string are discarded.
|
| 211 |
+
repeated ClientLibrarySettings library_settings = 109;
|
| 212 |
+
|
| 213 |
+
// Optional link to proto reference documentation. Example:
|
| 214 |
+
// https://cloud.google.com/pubsub/lite/docs/reference/rpc
|
| 215 |
+
string proto_reference_documentation_uri = 110;
|
| 216 |
+
|
| 217 |
+
// Optional link to REST reference documentation. Example:
|
| 218 |
+
// https://cloud.google.com/pubsub/lite/docs/reference/rest
|
| 219 |
+
string rest_reference_documentation_uri = 111;
|
| 220 |
+
}
|
| 221 |
+
|
| 222 |
+
// Settings for Java client libraries.
|
| 223 |
+
message JavaSettings {
|
| 224 |
+
// The package name to use in Java. Clobbers the java_package option
|
| 225 |
+
// set in the protobuf. This should be used **only** by APIs
|
| 226 |
+
// who have already set the language_settings.java.package_name" field
|
| 227 |
+
// in gapic.yaml. API teams should use the protobuf java_package option
|
| 228 |
+
// where possible.
|
| 229 |
+
//
|
| 230 |
+
// Example of a YAML configuration::
|
| 231 |
+
//
|
| 232 |
+
// publishing:
|
| 233 |
+
// library_settings:
|
| 234 |
+
// java_settings:
|
| 235 |
+
// library_package: com.google.cloud.pubsub.v1
|
| 236 |
+
string library_package = 1;
|
| 237 |
+
|
| 238 |
+
// Configure the Java class name to use instead of the service's for its
|
| 239 |
+
// corresponding generated GAPIC client. Keys are fully-qualified
|
| 240 |
+
// service names as they appear in the protobuf (including the full
|
| 241 |
+
// the language_settings.java.interface_names" field in gapic.yaml. API
|
| 242 |
+
// teams should otherwise use the service name as it appears in the
|
| 243 |
+
// protobuf.
|
| 244 |
+
//
|
| 245 |
+
// Example of a YAML configuration::
|
| 246 |
+
//
|
| 247 |
+
// publishing:
|
| 248 |
+
// java_settings:
|
| 249 |
+
// service_class_names:
|
| 250 |
+
// - google.pubsub.v1.Publisher: TopicAdmin
|
| 251 |
+
// - google.pubsub.v1.Subscriber: SubscriptionAdmin
|
| 252 |
+
map<string, string> service_class_names = 2;
|
| 253 |
+
|
| 254 |
+
// Some settings.
|
| 255 |
+
CommonLanguageSettings common = 3;
|
| 256 |
+
}
|
| 257 |
+
|
| 258 |
+
// Settings for C++ client libraries.
|
| 259 |
+
message CppSettings {
|
| 260 |
+
// Some settings.
|
| 261 |
+
CommonLanguageSettings common = 1;
|
| 262 |
+
}
|
| 263 |
+
|
| 264 |
+
// Settings for Php client libraries.
|
| 265 |
+
message PhpSettings {
|
| 266 |
+
// Some settings.
|
| 267 |
+
CommonLanguageSettings common = 1;
|
| 268 |
+
|
| 269 |
+
// The package name to use in Php. Clobbers the php_namespace option
|
| 270 |
+
// set in the protobuf. This should be used **only** by APIs
|
| 271 |
+
// who have already set the language_settings.php.package_name" field
|
| 272 |
+
// in gapic.yaml. API teams should use the protobuf php_namespace option
|
| 273 |
+
// where possible.
|
| 274 |
+
//
|
| 275 |
+
// Example of a YAML configuration::
|
| 276 |
+
//
|
| 277 |
+
// publishing:
|
| 278 |
+
// library_settings:
|
| 279 |
+
// php_settings:
|
| 280 |
+
// library_package: Google\Cloud\PubSub\V1
|
| 281 |
+
string library_package = 2;
|
| 282 |
+
}
|
| 283 |
+
|
| 284 |
+
// Settings for Python client libraries.
|
| 285 |
+
message PythonSettings {
|
| 286 |
+
// Experimental features to be included during client library generation.
|
| 287 |
+
// These fields will be deprecated once the feature graduates and is enabled
|
| 288 |
+
// by default.
|
| 289 |
+
message ExperimentalFeatures {
|
| 290 |
+
// Enables generation of asynchronous REST clients if `rest` transport is
|
| 291 |
+
// enabled. By default, asynchronous REST clients will not be generated.
|
| 292 |
+
// This feature will be enabled by default 1 month after launching the
|
| 293 |
+
// feature in preview packages.
|
| 294 |
+
bool rest_async_io_enabled = 1;
|
| 295 |
+
|
| 296 |
+
// Enables generation of protobuf code using new types that are more
|
| 297 |
+
// Pythonic which are included in `protobuf>=5.29.x`. This feature will be
|
| 298 |
+
// enabled by default 1 month after launching the feature in preview
|
| 299 |
+
// packages.
|
| 300 |
+
bool protobuf_pythonic_types_enabled = 2;
|
| 301 |
+
|
| 302 |
+
// Disables generation of an unversioned Python package for this client
|
| 303 |
+
// library. This means that the module names will need to be versioned in
|
| 304 |
+
// import statements. For example `import google.cloud.library_v2` instead
|
| 305 |
+
// of `import google.cloud.library`.
|
| 306 |
+
bool unversioned_package_disabled = 3;
|
| 307 |
+
}
|
| 308 |
+
|
| 309 |
+
// Some settings.
|
| 310 |
+
CommonLanguageSettings common = 1;
|
| 311 |
+
|
| 312 |
+
// Experimental features to be included during client library generation.
|
| 313 |
+
ExperimentalFeatures experimental_features = 2;
|
| 314 |
+
}
|
| 315 |
+
|
| 316 |
+
// Settings for Node client libraries.
|
| 317 |
+
message NodeSettings {
|
| 318 |
+
// Some settings.
|
| 319 |
+
CommonLanguageSettings common = 1;
|
| 320 |
+
}
|
| 321 |
+
|
| 322 |
+
// Settings for Dotnet client libraries.
|
| 323 |
+
message DotnetSettings {
|
| 324 |
+
// Some settings.
|
| 325 |
+
CommonLanguageSettings common = 1;
|
| 326 |
+
|
| 327 |
+
// Map from original service names to renamed versions.
|
| 328 |
+
// This is used when the default generated types
|
| 329 |
+
// would cause a naming conflict. (Neither name is
|
| 330 |
+
// fully-qualified.)
|
| 331 |
+
// Example: Subscriber to SubscriberServiceApi.
|
| 332 |
+
map<string, string> renamed_services = 2;
|
| 333 |
+
|
| 334 |
+
// Map from full resource types to the effective short name
|
| 335 |
+
// for the resource. This is used when otherwise resource
|
| 336 |
+
// named from different services would cause naming collisions.
|
| 337 |
+
// Example entry:
|
| 338 |
+
// "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
|
| 339 |
+
map<string, string> renamed_resources = 3;
|
| 340 |
+
|
| 341 |
+
// List of full resource types to ignore during generation.
|
| 342 |
+
// This is typically used for API-specific Location resources,
|
| 343 |
+
// which should be handled by the generator as if they were actually
|
| 344 |
+
// the common Location resources.
|
| 345 |
+
// Example entry: "documentai.googleapis.com/Location"
|
| 346 |
+
repeated string ignored_resources = 4;
|
| 347 |
+
|
| 348 |
+
// Namespaces which must be aliased in snippets due to
|
| 349 |
+
// a known (but non-generator-predictable) naming collision
|
| 350 |
+
repeated string forced_namespace_aliases = 5;
|
| 351 |
+
|
| 352 |
+
// Method signatures (in the form "service.method(signature)")
|
| 353 |
+
// which are provided separately, so shouldn't be generated.
|
| 354 |
+
// Snippets *calling* these methods are still generated, however.
|
| 355 |
+
repeated string handwritten_signatures = 6;
|
| 356 |
+
}
|
| 357 |
+
|
| 358 |
+
// Settings for Ruby client libraries.
|
| 359 |
+
message RubySettings {
|
| 360 |
+
// Some settings.
|
| 361 |
+
CommonLanguageSettings common = 1;
|
| 362 |
+
}
|
| 363 |
+
|
| 364 |
+
// Settings for Go client libraries.
|
| 365 |
+
message GoSettings {
|
| 366 |
+
// Some settings.
|
| 367 |
+
CommonLanguageSettings common = 1;
|
| 368 |
+
|
| 369 |
+
// Map of service names to renamed services. Keys are the package relative
|
| 370 |
+
// service names and values are the name to be used for the service client
|
| 371 |
+
// and call options.
|
| 372 |
+
//
|
| 373 |
+
// Example:
|
| 374 |
+
//
|
| 375 |
+
// publishing:
|
| 376 |
+
// go_settings:
|
| 377 |
+
// renamed_services:
|
| 378 |
+
// Publisher: TopicAdmin
|
| 379 |
+
map<string, string> renamed_services = 2;
|
| 380 |
+
}
|
| 381 |
+
|
| 382 |
+
// Describes the generator configuration for a method.
|
| 383 |
+
message MethodSettings {
|
| 384 |
+
// Describes settings to use when generating API methods that use the
|
| 385 |
+
// long-running operation pattern.
|
| 386 |
+
// All default values below are from those used in the client library
|
| 387 |
+
// generators (e.g.
|
| 388 |
+
// [Java](https://github.com/googleapis/gapic-generator-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java)).
|
| 389 |
+
message LongRunning {
|
| 390 |
+
// Initial delay after which the first poll request will be made.
|
| 391 |
+
// Default value: 5 seconds.
|
| 392 |
+
google.protobuf.Duration initial_poll_delay = 1;
|
| 393 |
+
|
| 394 |
+
// Multiplier to gradually increase delay between subsequent polls until it
|
| 395 |
+
// reaches max_poll_delay.
|
| 396 |
+
// Default value: 1.5.
|
| 397 |
+
float poll_delay_multiplier = 2;
|
| 398 |
+
|
| 399 |
+
// Maximum time between two subsequent poll requests.
|
| 400 |
+
// Default value: 45 seconds.
|
| 401 |
+
google.protobuf.Duration max_poll_delay = 3;
|
| 402 |
+
|
| 403 |
+
// Total polling timeout.
|
| 404 |
+
// Default value: 5 minutes.
|
| 405 |
+
google.protobuf.Duration total_poll_timeout = 4;
|
| 406 |
+
}
|
| 407 |
+
|
| 408 |
+
// The fully qualified name of the method, for which the options below apply.
|
| 409 |
+
// This is used to find the method to apply the options.
|
| 410 |
+
//
|
| 411 |
+
// Example:
|
| 412 |
+
//
|
| 413 |
+
// publishing:
|
| 414 |
+
// method_settings:
|
| 415 |
+
// - selector: google.storage.control.v2.StorageControl.CreateFolder
|
| 416 |
+
// # method settings for CreateFolder...
|
| 417 |
+
string selector = 1;
|
| 418 |
+
|
| 419 |
+
// Describes settings to use for long-running operations when generating
|
| 420 |
+
// API methods for RPCs. Complements RPCs that use the annotations in
|
| 421 |
+
// google/longrunning/operations.proto.
|
| 422 |
+
//
|
| 423 |
+
// Example of a YAML configuration::
|
| 424 |
+
//
|
| 425 |
+
// publishing:
|
| 426 |
+
// method_settings:
|
| 427 |
+
// - selector: google.cloud.speech.v2.Speech.BatchRecognize
|
| 428 |
+
// long_running:
|
| 429 |
+
// initial_poll_delay: 60s # 1 minute
|
| 430 |
+
// poll_delay_multiplier: 1.5
|
| 431 |
+
// max_poll_delay: 360s # 6 minutes
|
| 432 |
+
// total_poll_timeout: 54000s # 90 minutes
|
| 433 |
+
LongRunning long_running = 2;
|
| 434 |
+
|
| 435 |
+
// List of top-level fields of the request message, that should be
|
| 436 |
+
// automatically populated by the client libraries based on their
|
| 437 |
+
// (google.api.field_info).format. Currently supported format: UUID4.
|
| 438 |
+
//
|
| 439 |
+
// Example of a YAML configuration:
|
| 440 |
+
//
|
| 441 |
+
// publishing:
|
| 442 |
+
// method_settings:
|
| 443 |
+
// - selector: google.example.v1.ExampleService.CreateExample
|
| 444 |
+
// auto_populated_fields:
|
| 445 |
+
// - request_id
|
| 446 |
+
repeated string auto_populated_fields = 3;
|
| 447 |
+
|
| 448 |
+
// Batching configuration for an API method in client libraries.
|
| 449 |
+
//
|
| 450 |
+
// Example of a YAML configuration:
|
| 451 |
+
//
|
| 452 |
+
// publishing:
|
| 453 |
+
// method_settings:
|
| 454 |
+
// - selector: google.example.v1.ExampleService.BatchCreateExample
|
| 455 |
+
// batching:
|
| 456 |
+
// element_count_threshold: 1000
|
| 457 |
+
// request_byte_threshold: 100000000
|
| 458 |
+
// delay_threshold_millis: 10
|
| 459 |
+
BatchingConfigProto batching = 4;
|
| 460 |
+
}
|
| 461 |
+
|
| 462 |
+
// The organization for which the client libraries are being published.
|
| 463 |
+
// Affects the url where generated docs are published, etc.
|
| 464 |
+
enum ClientLibraryOrganization {
|
| 465 |
+
// Not useful.
|
| 466 |
+
CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED = 0;
|
| 467 |
+
|
| 468 |
+
// Google Cloud Platform Org.
|
| 469 |
+
CLOUD = 1;
|
| 470 |
+
|
| 471 |
+
// Ads (Advertising) Org.
|
| 472 |
+
ADS = 2;
|
| 473 |
+
|
| 474 |
+
// Photos Org.
|
| 475 |
+
PHOTOS = 3;
|
| 476 |
+
|
| 477 |
+
// Street View Org.
|
| 478 |
+
STREET_VIEW = 4;
|
| 479 |
+
|
| 480 |
+
// Shopping Org.
|
| 481 |
+
SHOPPING = 5;
|
| 482 |
+
|
| 483 |
+
// Geo Org.
|
| 484 |
+
GEO = 6;
|
| 485 |
+
|
| 486 |
+
// Generative AI - https://developers.generativeai.google
|
| 487 |
+
GENERATIVE_AI = 7;
|
| 488 |
+
}
|
| 489 |
+
|
| 490 |
+
// To where should client libraries be published?
|
| 491 |
+
enum ClientLibraryDestination {
|
| 492 |
+
// Client libraries will neither be generated nor published to package
|
| 493 |
+
// managers.
|
| 494 |
+
CLIENT_LIBRARY_DESTINATION_UNSPECIFIED = 0;
|
| 495 |
+
|
| 496 |
+
// Generate the client library in a repo under github.com/googleapis,
|
| 497 |
+
// but don't publish it to package managers.
|
| 498 |
+
GITHUB = 10;
|
| 499 |
+
|
| 500 |
+
// Publish the library to package managers like nuget.org and npmjs.com.
|
| 501 |
+
PACKAGE_MANAGER = 20;
|
| 502 |
+
}
|
| 503 |
+
|
| 504 |
+
// This message is used to configure the generation of a subset of the RPCs in
|
| 505 |
+
// a service for client libraries.
|
| 506 |
+
//
|
| 507 |
+
// Note: This feature should not be used in most cases.
|
| 508 |
+
message SelectiveGapicGeneration {
|
| 509 |
+
// An allowlist of the fully qualified names of RPCs that should be included
|
| 510 |
+
// on public client surfaces.
|
| 511 |
+
repeated string methods = 1;
|
| 512 |
+
|
| 513 |
+
// Setting this to true indicates to the client generators that methods
|
| 514 |
+
// that would be excluded from the generation should instead be generated
|
| 515 |
+
// in a way that indicates these methods should not be consumed by
|
| 516 |
+
// end users. How this is expressed is up to individual language
|
| 517 |
+
// implementations to decide. Some examples may be: added annotations,
|
| 518 |
+
// obfuscated identifiers, or other language idiomatic patterns.
|
| 519 |
+
bool generate_omitted_as_internal = 2;
|
| 520 |
+
}
|
| 521 |
+
|
| 522 |
+
// `BatchingConfigProto` defines the batching configuration for an API method.
|
| 523 |
+
message BatchingConfigProto {
|
| 524 |
+
// The thresholds which trigger a batched request to be sent.
|
| 525 |
+
BatchingSettingsProto thresholds = 1;
|
| 526 |
+
|
| 527 |
+
// The request and response fields used in batching.
|
| 528 |
+
BatchingDescriptorProto batch_descriptor = 2;
|
| 529 |
+
}
|
| 530 |
+
|
| 531 |
+
// `BatchingSettingsProto` specifies a set of batching thresholds, each of
|
| 532 |
+
// which acts as a trigger to send a batch of messages as a request. At least
|
| 533 |
+
// one threshold must be positive nonzero.
|
| 534 |
+
message BatchingSettingsProto {
|
| 535 |
+
// The number of elements of a field collected into a batch which, if
|
| 536 |
+
// exceeded, causes the batch to be sent.
|
| 537 |
+
int32 element_count_threshold = 1;
|
| 538 |
+
|
| 539 |
+
// The aggregated size of the batched field which, if exceeded, causes the
|
| 540 |
+
// batch to be sent. This size is computed by aggregating the sizes of the
|
| 541 |
+
// request field to be batched, not of the entire request message.
|
| 542 |
+
int64 request_byte_threshold = 2;
|
| 543 |
+
|
| 544 |
+
// The duration after which a batch should be sent, starting from the addition
|
| 545 |
+
// of the first message to that batch.
|
| 546 |
+
google.protobuf.Duration delay_threshold = 3;
|
| 547 |
+
|
| 548 |
+
// The maximum number of elements collected in a batch that could be accepted
|
| 549 |
+
// by server.
|
| 550 |
+
int32 element_count_limit = 4;
|
| 551 |
+
|
| 552 |
+
// The maximum size of the request that could be accepted by server.
|
| 553 |
+
int32 request_byte_limit = 5;
|
| 554 |
+
|
| 555 |
+
// The maximum number of elements allowed by flow control.
|
| 556 |
+
int32 flow_control_element_limit = 6;
|
| 557 |
+
|
| 558 |
+
// The maximum size of data allowed by flow control.
|
| 559 |
+
int32 flow_control_byte_limit = 7;
|
| 560 |
+
|
| 561 |
+
// The behavior to take when the flow control limit is exceeded.
|
| 562 |
+
FlowControlLimitExceededBehaviorProto flow_control_limit_exceeded_behavior =
|
| 563 |
+
8;
|
| 564 |
+
}
|
| 565 |
+
|
| 566 |
+
// The behavior to take when the flow control limit is exceeded.
|
| 567 |
+
enum FlowControlLimitExceededBehaviorProto {
|
| 568 |
+
// Default behavior, system-defined.
|
| 569 |
+
UNSET_BEHAVIOR = 0;
|
| 570 |
+
|
| 571 |
+
// Stop operation, raise error.
|
| 572 |
+
THROW_EXCEPTION = 1;
|
| 573 |
+
|
| 574 |
+
// Pause operation until limit clears.
|
| 575 |
+
BLOCK = 2;
|
| 576 |
+
|
| 577 |
+
// Continue operation, disregard limit.
|
| 578 |
+
IGNORE = 3;
|
| 579 |
+
}
|
| 580 |
+
|
| 581 |
+
// `BatchingDescriptorProto` specifies the fields of the request message to be
|
| 582 |
+
// used for batching, and, optionally, the fields of the response message to be
|
| 583 |
+
// used for demultiplexing.
|
| 584 |
+
message BatchingDescriptorProto {
|
| 585 |
+
// The repeated field in the request message to be aggregated by batching.
|
| 586 |
+
string batched_field = 1;
|
| 587 |
+
|
| 588 |
+
// A list of the fields in the request message. Two requests will be batched
|
| 589 |
+
// together only if the values of every field specified in
|
| 590 |
+
// `request_discriminator_fields` is equal between the two requests.
|
| 591 |
+
repeated string discriminator_fields = 2;
|
| 592 |
+
|
| 593 |
+
// Optional. When present, indicates the field in the response message to be
|
| 594 |
+
// used to demultiplex the response into multiple response messages, in
|
| 595 |
+
// correspondence with the multiple request messages originally batched
|
| 596 |
+
// together.
|
| 597 |
+
string subresponse_field = 3;
|
| 598 |
+
}
|
python/user_packages/Python313/site-packages/google/api/client_pb2.py
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# -*- coding: utf-8 -*-
|
| 2 |
+
|
| 3 |
+
# Copyright 2025 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 |
+
# Protobuf Python Version: 4.25.3
|
| 20 |
+
"""Generated protocol buffer code."""
|
| 21 |
+
|
| 22 |
+
from google.protobuf import descriptor as _descriptor
|
| 23 |
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
| 24 |
+
from google.protobuf import symbol_database as _symbol_database
|
| 25 |
+
from google.protobuf.internal import builder as _builder
|
| 26 |
+
|
| 27 |
+
# @@protoc_insertion_point(imports)
|
| 28 |
+
|
| 29 |
+
_sym_db = _symbol_database.Default()
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
from google.protobuf import descriptor_pb2 as google_dot_protobuf_dot_descriptor__pb2
|
| 33 |
+
from google.protobuf import duration_pb2 as google_dot_protobuf_dot_duration__pb2
|
| 34 |
+
|
| 35 |
+
from google.api import launch_stage_pb2 as google_dot_api_dot_launch__stage__pb2
|
| 36 |
+
|
| 37 |
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
| 38 |
+
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"Z\n\x0bPhpSettings\x12\x32\n\x06\x63ommon\x18\x01 \x01(\x0b\x32".google.api.CommonLanguageSettings\x12\x17\n\x0flibrary_package\x18\x02 \x01(\t"\x9b\x02\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\x84\x01\n\x14\x45xperimentalFeatures\x12\x1d\n\x15rest_async_io_enabled\x18\x01 \x01(\x08\x12\'\n\x1fprotobuf_pythonic_types_enabled\x18\x02 \x01(\x08\x12$\n\x1cunversioned_package_disabled\x18\x03 \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"\xbf\x01\n\nGoSettings\x12\x32\n\x06\x63ommon\x18\x01 \x01(\x0b\x32".google.api.CommonLanguageSettings\x12\x45\n\x10renamed_services\x18\x02 \x03(\x0b\x32+.google.api.GoSettings.RenamedServicesEntry\x1a\x36\n\x14RenamedServicesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01"\x82\x03\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\x12\x31\n\x08\x62\x61tching\x18\x04 \x01(\x0b\x32\x1f.google.api.BatchingConfigProto\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"Q\n\x18SelectiveGapicGeneration\x12\x0f\n\x07methods\x18\x01 \x03(\t\x12$\n\x1cgenerate_omitted_as_internal\x18\x02 \x01(\x08"\x8b\x01\n\x13\x42\x61tchingConfigProto\x12\x35\n\nthresholds\x18\x01 \x01(\x0b\x32!.google.api.BatchingSettingsProto\x12=\n\x10\x62\x61tch_descriptor\x18\x02 \x01(\x0b\x32#.google.api.BatchingDescriptorProto"\xeb\x02\n\x15\x42\x61tchingSettingsProto\x12\x1f\n\x17\x65lement_count_threshold\x18\x01 \x01(\x05\x12\x1e\n\x16request_byte_threshold\x18\x02 \x01(\x03\x12\x32\n\x0f\x64\x65lay_threshold\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x1b\n\x13\x65lement_count_limit\x18\x04 \x01(\x05\x12\x1a\n\x12request_byte_limit\x18\x05 \x01(\x05\x12"\n\x1a\x66low_control_element_limit\x18\x06 \x01(\x05\x12\x1f\n\x17\x66low_control_byte_limit\x18\x07 \x01(\x05\x12_\n$flow_control_limit_exceeded_behavior\x18\x08 \x01(\x0e\x32\x31.google.api.FlowControlLimitExceededBehaviorProto"i\n\x17\x42\x61tchingDescriptorProto\x12\x15\n\rbatched_field\x18\x01 \x01(\t\x12\x1c\n\x14\x64iscriminator_fields\x18\x02 \x03(\t\x12\x19\n\x11subresponse_field\x18\x03 \x01(\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*g\n%FlowControlLimitExceededBehaviorProto\x12\x12\n\x0eUNSET_BEHAVIOR\x10\x00\x12\x13\n\x0fTHROW_EXCEPTION\x10\x01\x12\t\n\x05\x42LOCK\x10\x02\x12\n\n\x06IGNORE\x10\x03: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'
|
| 39 |
+
)
|
| 40 |
+
|
| 41 |
+
_globals = globals()
|
| 42 |
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
| 43 |
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "google.api.client_pb2", _globals)
|
| 44 |
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
| 45 |
+
_globals["DESCRIPTOR"]._options = None
|
| 46 |
+
_globals[
|
| 47 |
+
"DESCRIPTOR"
|
| 48 |
+
]._serialized_options = b"\n\016com.google.apiB\013ClientProtoP\001ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\242\002\004GAPI"
|
| 49 |
+
_globals["_COMMONLANGUAGESETTINGS"].fields_by_name[
|
| 50 |
+
"reference_docs_uri"
|
| 51 |
+
]._options = None
|
| 52 |
+
_globals["_COMMONLANGUAGESETTINGS"].fields_by_name[
|
| 53 |
+
"reference_docs_uri"
|
| 54 |
+
]._serialized_options = b"\030\001"
|
| 55 |
+
_globals["_JAVASETTINGS_SERVICECLASSNAMESENTRY"]._options = None
|
| 56 |
+
_globals["_JAVASETTINGS_SERVICECLASSNAMESENTRY"]._serialized_options = b"8\001"
|
| 57 |
+
_globals["_DOTNETSETTINGS_RENAMEDSERVICESENTRY"]._options = None
|
| 58 |
+
_globals["_DOTNETSETTINGS_RENAMEDSERVICESENTRY"]._serialized_options = b"8\001"
|
| 59 |
+
_globals["_DOTNETSETTINGS_RENAMEDRESOURCESENTRY"]._options = None
|
| 60 |
+
_globals["_DOTNETSETTINGS_RENAMEDRESOURCESENTRY"]._serialized_options = b"8\001"
|
| 61 |
+
_globals["_GOSETTINGS_RENAMEDSERVICESENTRY"]._options = None
|
| 62 |
+
_globals["_GOSETTINGS_RENAMEDSERVICESENTRY"]._serialized_options = b"8\001"
|
| 63 |
+
_globals["_CLIENTLIBRARYORGANIZATION"]._serialized_start = 3788
|
| 64 |
+
_globals["_CLIENTLIBRARYORGANIZATION"]._serialized_end = 3951
|
| 65 |
+
_globals["_CLIENTLIBRARYDESTINATION"]._serialized_start = 3953
|
| 66 |
+
_globals["_CLIENTLIBRARYDESTINATION"]._serialized_end = 4056
|
| 67 |
+
_globals["_FLOWCONTROLLIMITEXCEEDEDBEHAVIORPROTO"]._serialized_start = 4058
|
| 68 |
+
_globals["_FLOWCONTROLLIMITEXCEEDEDBEHAVIORPROTO"]._serialized_end = 4161
|
| 69 |
+
_globals["_COMMONLANGUAGESETTINGS"]._serialized_start = 137
|
| 70 |
+
_globals["_COMMONLANGUAGESETTINGS"]._serialized_end = 327
|
| 71 |
+
_globals["_CLIENTLIBRARYSETTINGS"]._serialized_start = 330
|
| 72 |
+
_globals["_CLIENTLIBRARYSETTINGS"]._serialized_end = 837
|
| 73 |
+
_globals["_PUBLISHING"]._serialized_start = 840
|
| 74 |
+
_globals["_PUBLISHING"]._serialized_end = 1264
|
| 75 |
+
_globals["_JAVASETTINGS"]._serialized_start = 1267
|
| 76 |
+
_globals["_JAVASETTINGS"]._serialized_end = 1494
|
| 77 |
+
_globals["_JAVASETTINGS_SERVICECLASSNAMESENTRY"]._serialized_start = 1438
|
| 78 |
+
_globals["_JAVASETTINGS_SERVICECLASSNAMESENTRY"]._serialized_end = 1494
|
| 79 |
+
_globals["_CPPSETTINGS"]._serialized_start = 1496
|
| 80 |
+
_globals["_CPPSETTINGS"]._serialized_end = 1561
|
| 81 |
+
_globals["_PHPSETTINGS"]._serialized_start = 1563
|
| 82 |
+
_globals["_PHPSETTINGS"]._serialized_end = 1653
|
| 83 |
+
_globals["_PYTHONSETTINGS"]._serialized_start = 1656
|
| 84 |
+
_globals["_PYTHONSETTINGS"]._serialized_end = 1939
|
| 85 |
+
_globals["_PYTHONSETTINGS_EXPERIMENTALFEATURES"]._serialized_start = 1807
|
| 86 |
+
_globals["_PYTHONSETTINGS_EXPERIMENTALFEATURES"]._serialized_end = 1939
|
| 87 |
+
_globals["_NODESETTINGS"]._serialized_start = 1941
|
| 88 |
+
_globals["_NODESETTINGS"]._serialized_end = 2007
|
| 89 |
+
_globals["_DOTNETSETTINGS"]._serialized_start = 2010
|
| 90 |
+
_globals["_DOTNETSETTINGS"]._serialized_end = 2436
|
| 91 |
+
_globals["_DOTNETSETTINGS_RENAMEDSERVICESENTRY"]._serialized_start = 2325
|
| 92 |
+
_globals["_DOTNETSETTINGS_RENAMEDSERVICESENTRY"]._serialized_end = 2379
|
| 93 |
+
_globals["_DOTNETSETTINGS_RENAMEDRESOURCESENTRY"]._serialized_start = 2381
|
| 94 |
+
_globals["_DOTNETSETTINGS_RENAMEDRESOURCESENTRY"]._serialized_end = 2436
|
| 95 |
+
_globals["_RUBYSETTINGS"]._serialized_start = 2438
|
| 96 |
+
_globals["_RUBYSETTINGS"]._serialized_end = 2504
|
| 97 |
+
_globals["_GOSETTINGS"]._serialized_start = 2507
|
| 98 |
+
_globals["_GOSETTINGS"]._serialized_end = 2698
|
| 99 |
+
_globals["_GOSETTINGS_RENAMEDSERVICESENTRY"]._serialized_start = 2325
|
| 100 |
+
_globals["_GOSETTINGS_RENAMEDSERVICESENTRY"]._serialized_end = 2379
|
| 101 |
+
_globals["_METHODSETTINGS"]._serialized_start = 2701
|
| 102 |
+
_globals["_METHODSETTINGS"]._serialized_end = 3087
|
| 103 |
+
_globals["_METHODSETTINGS_LONGRUNNING"]._serialized_start = 2882
|
| 104 |
+
_globals["_METHODSETTINGS_LONGRUNNING"]._serialized_end = 3087
|
| 105 |
+
_globals["_SELECTIVEGAPICGENERATION"]._serialized_start = 3089
|
| 106 |
+
_globals["_SELECTIVEGAPICGENERATION"]._serialized_end = 3170
|
| 107 |
+
_globals["_BATCHINGCONFIGPROTO"]._serialized_start = 3173
|
| 108 |
+
_globals["_BATCHINGCONFIGPROTO"]._serialized_end = 3312
|
| 109 |
+
_globals["_BATCHINGSETTINGSPROTO"]._serialized_start = 3315
|
| 110 |
+
_globals["_BATCHINGSETTINGSPROTO"]._serialized_end = 3678
|
| 111 |
+
_globals["_BATCHINGDESCRIPTORPROTO"]._serialized_start = 3680
|
| 112 |
+
_globals["_BATCHINGDESCRIPTORPROTO"]._serialized_end = 3785
|
| 113 |
+
# @@protoc_insertion_point(module_scope)
|
python/user_packages/Python313/site-packages/google/api/client_pb2.pyi
ADDED
|
@@ -0,0 +1,493 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2025 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 |
+
from typing import ClassVar as _ClassVar
|
| 16 |
+
from typing import Iterable as _Iterable
|
| 17 |
+
from typing import Mapping as _Mapping
|
| 18 |
+
from typing import Optional as _Optional
|
| 19 |
+
from typing import Union as _Union
|
| 20 |
+
|
| 21 |
+
from google.protobuf import descriptor as _descriptor
|
| 22 |
+
from google.protobuf import descriptor_pb2 as _descriptor_pb2
|
| 23 |
+
from google.protobuf import duration_pb2 as _duration_pb2
|
| 24 |
+
from google.protobuf import message as _message
|
| 25 |
+
from google.protobuf.internal import containers as _containers
|
| 26 |
+
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
| 27 |
+
|
| 28 |
+
from google.api import launch_stage_pb2 as _launch_stage_pb2
|
| 29 |
+
|
| 30 |
+
DESCRIPTOR: _descriptor.FileDescriptor
|
| 31 |
+
|
| 32 |
+
class ClientLibraryOrganization(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
| 33 |
+
__slots__ = ()
|
| 34 |
+
CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED: _ClassVar[ClientLibraryOrganization]
|
| 35 |
+
CLOUD: _ClassVar[ClientLibraryOrganization]
|
| 36 |
+
ADS: _ClassVar[ClientLibraryOrganization]
|
| 37 |
+
PHOTOS: _ClassVar[ClientLibraryOrganization]
|
| 38 |
+
STREET_VIEW: _ClassVar[ClientLibraryOrganization]
|
| 39 |
+
SHOPPING: _ClassVar[ClientLibraryOrganization]
|
| 40 |
+
GEO: _ClassVar[ClientLibraryOrganization]
|
| 41 |
+
GENERATIVE_AI: _ClassVar[ClientLibraryOrganization]
|
| 42 |
+
|
| 43 |
+
class ClientLibraryDestination(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
| 44 |
+
__slots__ = ()
|
| 45 |
+
CLIENT_LIBRARY_DESTINATION_UNSPECIFIED: _ClassVar[ClientLibraryDestination]
|
| 46 |
+
GITHUB: _ClassVar[ClientLibraryDestination]
|
| 47 |
+
PACKAGE_MANAGER: _ClassVar[ClientLibraryDestination]
|
| 48 |
+
|
| 49 |
+
class FlowControlLimitExceededBehaviorProto(
|
| 50 |
+
int, metaclass=_enum_type_wrapper.EnumTypeWrapper
|
| 51 |
+
):
|
| 52 |
+
__slots__ = ()
|
| 53 |
+
UNSET_BEHAVIOR: _ClassVar[FlowControlLimitExceededBehaviorProto]
|
| 54 |
+
THROW_EXCEPTION: _ClassVar[FlowControlLimitExceededBehaviorProto]
|
| 55 |
+
BLOCK: _ClassVar[FlowControlLimitExceededBehaviorProto]
|
| 56 |
+
IGNORE: _ClassVar[FlowControlLimitExceededBehaviorProto]
|
| 57 |
+
|
| 58 |
+
CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED: ClientLibraryOrganization
|
| 59 |
+
CLOUD: ClientLibraryOrganization
|
| 60 |
+
ADS: ClientLibraryOrganization
|
| 61 |
+
PHOTOS: ClientLibraryOrganization
|
| 62 |
+
STREET_VIEW: ClientLibraryOrganization
|
| 63 |
+
SHOPPING: ClientLibraryOrganization
|
| 64 |
+
GEO: ClientLibraryOrganization
|
| 65 |
+
GENERATIVE_AI: ClientLibraryOrganization
|
| 66 |
+
CLIENT_LIBRARY_DESTINATION_UNSPECIFIED: ClientLibraryDestination
|
| 67 |
+
GITHUB: ClientLibraryDestination
|
| 68 |
+
PACKAGE_MANAGER: ClientLibraryDestination
|
| 69 |
+
UNSET_BEHAVIOR: FlowControlLimitExceededBehaviorProto
|
| 70 |
+
THROW_EXCEPTION: FlowControlLimitExceededBehaviorProto
|
| 71 |
+
BLOCK: FlowControlLimitExceededBehaviorProto
|
| 72 |
+
IGNORE: FlowControlLimitExceededBehaviorProto
|
| 73 |
+
METHOD_SIGNATURE_FIELD_NUMBER: _ClassVar[int]
|
| 74 |
+
method_signature: _descriptor.FieldDescriptor
|
| 75 |
+
DEFAULT_HOST_FIELD_NUMBER: _ClassVar[int]
|
| 76 |
+
default_host: _descriptor.FieldDescriptor
|
| 77 |
+
OAUTH_SCOPES_FIELD_NUMBER: _ClassVar[int]
|
| 78 |
+
oauth_scopes: _descriptor.FieldDescriptor
|
| 79 |
+
API_VERSION_FIELD_NUMBER: _ClassVar[int]
|
| 80 |
+
api_version: _descriptor.FieldDescriptor
|
| 81 |
+
|
| 82 |
+
class CommonLanguageSettings(_message.Message):
|
| 83 |
+
__slots__ = ("reference_docs_uri", "destinations", "selective_gapic_generation")
|
| 84 |
+
REFERENCE_DOCS_URI_FIELD_NUMBER: _ClassVar[int]
|
| 85 |
+
DESTINATIONS_FIELD_NUMBER: _ClassVar[int]
|
| 86 |
+
SELECTIVE_GAPIC_GENERATION_FIELD_NUMBER: _ClassVar[int]
|
| 87 |
+
reference_docs_uri: str
|
| 88 |
+
destinations: _containers.RepeatedScalarFieldContainer[ClientLibraryDestination]
|
| 89 |
+
selective_gapic_generation: SelectiveGapicGeneration
|
| 90 |
+
def __init__(
|
| 91 |
+
self,
|
| 92 |
+
reference_docs_uri: _Optional[str] = ...,
|
| 93 |
+
destinations: _Optional[_Iterable[_Union[ClientLibraryDestination, str]]] = ...,
|
| 94 |
+
selective_gapic_generation: _Optional[
|
| 95 |
+
_Union[SelectiveGapicGeneration, _Mapping]
|
| 96 |
+
] = ...,
|
| 97 |
+
) -> None: ...
|
| 98 |
+
|
| 99 |
+
class ClientLibrarySettings(_message.Message):
|
| 100 |
+
__slots__ = (
|
| 101 |
+
"version",
|
| 102 |
+
"launch_stage",
|
| 103 |
+
"rest_numeric_enums",
|
| 104 |
+
"java_settings",
|
| 105 |
+
"cpp_settings",
|
| 106 |
+
"php_settings",
|
| 107 |
+
"python_settings",
|
| 108 |
+
"node_settings",
|
| 109 |
+
"dotnet_settings",
|
| 110 |
+
"ruby_settings",
|
| 111 |
+
"go_settings",
|
| 112 |
+
)
|
| 113 |
+
VERSION_FIELD_NUMBER: _ClassVar[int]
|
| 114 |
+
LAUNCH_STAGE_FIELD_NUMBER: _ClassVar[int]
|
| 115 |
+
REST_NUMERIC_ENUMS_FIELD_NUMBER: _ClassVar[int]
|
| 116 |
+
JAVA_SETTINGS_FIELD_NUMBER: _ClassVar[int]
|
| 117 |
+
CPP_SETTINGS_FIELD_NUMBER: _ClassVar[int]
|
| 118 |
+
PHP_SETTINGS_FIELD_NUMBER: _ClassVar[int]
|
| 119 |
+
PYTHON_SETTINGS_FIELD_NUMBER: _ClassVar[int]
|
| 120 |
+
NODE_SETTINGS_FIELD_NUMBER: _ClassVar[int]
|
| 121 |
+
DOTNET_SETTINGS_FIELD_NUMBER: _ClassVar[int]
|
| 122 |
+
RUBY_SETTINGS_FIELD_NUMBER: _ClassVar[int]
|
| 123 |
+
GO_SETTINGS_FIELD_NUMBER: _ClassVar[int]
|
| 124 |
+
version: str
|
| 125 |
+
launch_stage: _launch_stage_pb2.LaunchStage
|
| 126 |
+
rest_numeric_enums: bool
|
| 127 |
+
java_settings: JavaSettings
|
| 128 |
+
cpp_settings: CppSettings
|
| 129 |
+
php_settings: PhpSettings
|
| 130 |
+
python_settings: PythonSettings
|
| 131 |
+
node_settings: NodeSettings
|
| 132 |
+
dotnet_settings: DotnetSettings
|
| 133 |
+
ruby_settings: RubySettings
|
| 134 |
+
go_settings: GoSettings
|
| 135 |
+
def __init__(
|
| 136 |
+
self,
|
| 137 |
+
version: _Optional[str] = ...,
|
| 138 |
+
launch_stage: _Optional[_Union[_launch_stage_pb2.LaunchStage, str]] = ...,
|
| 139 |
+
rest_numeric_enums: bool = ...,
|
| 140 |
+
java_settings: _Optional[_Union[JavaSettings, _Mapping]] = ...,
|
| 141 |
+
cpp_settings: _Optional[_Union[CppSettings, _Mapping]] = ...,
|
| 142 |
+
php_settings: _Optional[_Union[PhpSettings, _Mapping]] = ...,
|
| 143 |
+
python_settings: _Optional[_Union[PythonSettings, _Mapping]] = ...,
|
| 144 |
+
node_settings: _Optional[_Union[NodeSettings, _Mapping]] = ...,
|
| 145 |
+
dotnet_settings: _Optional[_Union[DotnetSettings, _Mapping]] = ...,
|
| 146 |
+
ruby_settings: _Optional[_Union[RubySettings, _Mapping]] = ...,
|
| 147 |
+
go_settings: _Optional[_Union[GoSettings, _Mapping]] = ...,
|
| 148 |
+
) -> None: ...
|
| 149 |
+
|
| 150 |
+
class Publishing(_message.Message):
|
| 151 |
+
__slots__ = (
|
| 152 |
+
"method_settings",
|
| 153 |
+
"new_issue_uri",
|
| 154 |
+
"documentation_uri",
|
| 155 |
+
"api_short_name",
|
| 156 |
+
"github_label",
|
| 157 |
+
"codeowner_github_teams",
|
| 158 |
+
"doc_tag_prefix",
|
| 159 |
+
"organization",
|
| 160 |
+
"library_settings",
|
| 161 |
+
"proto_reference_documentation_uri",
|
| 162 |
+
"rest_reference_documentation_uri",
|
| 163 |
+
)
|
| 164 |
+
METHOD_SETTINGS_FIELD_NUMBER: _ClassVar[int]
|
| 165 |
+
NEW_ISSUE_URI_FIELD_NUMBER: _ClassVar[int]
|
| 166 |
+
DOCUMENTATION_URI_FIELD_NUMBER: _ClassVar[int]
|
| 167 |
+
API_SHORT_NAME_FIELD_NUMBER: _ClassVar[int]
|
| 168 |
+
GITHUB_LABEL_FIELD_NUMBER: _ClassVar[int]
|
| 169 |
+
CODEOWNER_GITHUB_TEAMS_FIELD_NUMBER: _ClassVar[int]
|
| 170 |
+
DOC_TAG_PREFIX_FIELD_NUMBER: _ClassVar[int]
|
| 171 |
+
ORGANIZATION_FIELD_NUMBER: _ClassVar[int]
|
| 172 |
+
LIBRARY_SETTINGS_FIELD_NUMBER: _ClassVar[int]
|
| 173 |
+
PROTO_REFERENCE_DOCUMENTATION_URI_FIELD_NUMBER: _ClassVar[int]
|
| 174 |
+
REST_REFERENCE_DOCUMENTATION_URI_FIELD_NUMBER: _ClassVar[int]
|
| 175 |
+
method_settings: _containers.RepeatedCompositeFieldContainer[MethodSettings]
|
| 176 |
+
new_issue_uri: str
|
| 177 |
+
documentation_uri: str
|
| 178 |
+
api_short_name: str
|
| 179 |
+
github_label: str
|
| 180 |
+
codeowner_github_teams: _containers.RepeatedScalarFieldContainer[str]
|
| 181 |
+
doc_tag_prefix: str
|
| 182 |
+
organization: ClientLibraryOrganization
|
| 183 |
+
library_settings: _containers.RepeatedCompositeFieldContainer[ClientLibrarySettings]
|
| 184 |
+
proto_reference_documentation_uri: str
|
| 185 |
+
rest_reference_documentation_uri: str
|
| 186 |
+
def __init__(
|
| 187 |
+
self,
|
| 188 |
+
method_settings: _Optional[_Iterable[_Union[MethodSettings, _Mapping]]] = ...,
|
| 189 |
+
new_issue_uri: _Optional[str] = ...,
|
| 190 |
+
documentation_uri: _Optional[str] = ...,
|
| 191 |
+
api_short_name: _Optional[str] = ...,
|
| 192 |
+
github_label: _Optional[str] = ...,
|
| 193 |
+
codeowner_github_teams: _Optional[_Iterable[str]] = ...,
|
| 194 |
+
doc_tag_prefix: _Optional[str] = ...,
|
| 195 |
+
organization: _Optional[_Union[ClientLibraryOrganization, str]] = ...,
|
| 196 |
+
library_settings: _Optional[
|
| 197 |
+
_Iterable[_Union[ClientLibrarySettings, _Mapping]]
|
| 198 |
+
] = ...,
|
| 199 |
+
proto_reference_documentation_uri: _Optional[str] = ...,
|
| 200 |
+
rest_reference_documentation_uri: _Optional[str] = ...,
|
| 201 |
+
) -> None: ...
|
| 202 |
+
|
| 203 |
+
class JavaSettings(_message.Message):
|
| 204 |
+
__slots__ = ("library_package", "service_class_names", "common")
|
| 205 |
+
class ServiceClassNamesEntry(_message.Message):
|
| 206 |
+
__slots__ = ("key", "value")
|
| 207 |
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
| 208 |
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
| 209 |
+
key: str
|
| 210 |
+
value: str
|
| 211 |
+
def __init__(
|
| 212 |
+
self, key: _Optional[str] = ..., value: _Optional[str] = ...
|
| 213 |
+
) -> None: ...
|
| 214 |
+
|
| 215 |
+
LIBRARY_PACKAGE_FIELD_NUMBER: _ClassVar[int]
|
| 216 |
+
SERVICE_CLASS_NAMES_FIELD_NUMBER: _ClassVar[int]
|
| 217 |
+
COMMON_FIELD_NUMBER: _ClassVar[int]
|
| 218 |
+
library_package: str
|
| 219 |
+
service_class_names: _containers.ScalarMap[str, str]
|
| 220 |
+
common: CommonLanguageSettings
|
| 221 |
+
def __init__(
|
| 222 |
+
self,
|
| 223 |
+
library_package: _Optional[str] = ...,
|
| 224 |
+
service_class_names: _Optional[_Mapping[str, str]] = ...,
|
| 225 |
+
common: _Optional[_Union[CommonLanguageSettings, _Mapping]] = ...,
|
| 226 |
+
) -> None: ...
|
| 227 |
+
|
| 228 |
+
class CppSettings(_message.Message):
|
| 229 |
+
__slots__ = ("common",)
|
| 230 |
+
COMMON_FIELD_NUMBER: _ClassVar[int]
|
| 231 |
+
common: CommonLanguageSettings
|
| 232 |
+
def __init__(
|
| 233 |
+
self, common: _Optional[_Union[CommonLanguageSettings, _Mapping]] = ...
|
| 234 |
+
) -> None: ...
|
| 235 |
+
|
| 236 |
+
class PhpSettings(_message.Message):
|
| 237 |
+
__slots__ = ("common", "library_package")
|
| 238 |
+
COMMON_FIELD_NUMBER: _ClassVar[int]
|
| 239 |
+
LIBRARY_PACKAGE_FIELD_NUMBER: _ClassVar[int]
|
| 240 |
+
common: CommonLanguageSettings
|
| 241 |
+
library_package: str
|
| 242 |
+
def __init__(
|
| 243 |
+
self,
|
| 244 |
+
common: _Optional[_Union[CommonLanguageSettings, _Mapping]] = ...,
|
| 245 |
+
library_package: _Optional[str] = ...,
|
| 246 |
+
) -> None: ...
|
| 247 |
+
|
| 248 |
+
class PythonSettings(_message.Message):
|
| 249 |
+
__slots__ = ("common", "experimental_features")
|
| 250 |
+
class ExperimentalFeatures(_message.Message):
|
| 251 |
+
__slots__ = (
|
| 252 |
+
"rest_async_io_enabled",
|
| 253 |
+
"protobuf_pythonic_types_enabled",
|
| 254 |
+
"unversioned_package_disabled",
|
| 255 |
+
)
|
| 256 |
+
REST_ASYNC_IO_ENABLED_FIELD_NUMBER: _ClassVar[int]
|
| 257 |
+
PROTOBUF_PYTHONIC_TYPES_ENABLED_FIELD_NUMBER: _ClassVar[int]
|
| 258 |
+
UNVERSIONED_PACKAGE_DISABLED_FIELD_NUMBER: _ClassVar[int]
|
| 259 |
+
rest_async_io_enabled: bool
|
| 260 |
+
protobuf_pythonic_types_enabled: bool
|
| 261 |
+
unversioned_package_disabled: bool
|
| 262 |
+
def __init__(
|
| 263 |
+
self,
|
| 264 |
+
rest_async_io_enabled: bool = ...,
|
| 265 |
+
protobuf_pythonic_types_enabled: bool = ...,
|
| 266 |
+
unversioned_package_disabled: bool = ...,
|
| 267 |
+
) -> None: ...
|
| 268 |
+
|
| 269 |
+
COMMON_FIELD_NUMBER: _ClassVar[int]
|
| 270 |
+
EXPERIMENTAL_FEATURES_FIELD_NUMBER: _ClassVar[int]
|
| 271 |
+
common: CommonLanguageSettings
|
| 272 |
+
experimental_features: PythonSettings.ExperimentalFeatures
|
| 273 |
+
def __init__(
|
| 274 |
+
self,
|
| 275 |
+
common: _Optional[_Union[CommonLanguageSettings, _Mapping]] = ...,
|
| 276 |
+
experimental_features: _Optional[
|
| 277 |
+
_Union[PythonSettings.ExperimentalFeatures, _Mapping]
|
| 278 |
+
] = ...,
|
| 279 |
+
) -> None: ...
|
| 280 |
+
|
| 281 |
+
class NodeSettings(_message.Message):
|
| 282 |
+
__slots__ = ("common",)
|
| 283 |
+
COMMON_FIELD_NUMBER: _ClassVar[int]
|
| 284 |
+
common: CommonLanguageSettings
|
| 285 |
+
def __init__(
|
| 286 |
+
self, common: _Optional[_Union[CommonLanguageSettings, _Mapping]] = ...
|
| 287 |
+
) -> None: ...
|
| 288 |
+
|
| 289 |
+
class DotnetSettings(_message.Message):
|
| 290 |
+
__slots__ = (
|
| 291 |
+
"common",
|
| 292 |
+
"renamed_services",
|
| 293 |
+
"renamed_resources",
|
| 294 |
+
"ignored_resources",
|
| 295 |
+
"forced_namespace_aliases",
|
| 296 |
+
"handwritten_signatures",
|
| 297 |
+
)
|
| 298 |
+
class RenamedServicesEntry(_message.Message):
|
| 299 |
+
__slots__ = ("key", "value")
|
| 300 |
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
| 301 |
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
| 302 |
+
key: str
|
| 303 |
+
value: str
|
| 304 |
+
def __init__(
|
| 305 |
+
self, key: _Optional[str] = ..., value: _Optional[str] = ...
|
| 306 |
+
) -> None: ...
|
| 307 |
+
|
| 308 |
+
class RenamedResourcesEntry(_message.Message):
|
| 309 |
+
__slots__ = ("key", "value")
|
| 310 |
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
| 311 |
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
| 312 |
+
key: str
|
| 313 |
+
value: str
|
| 314 |
+
def __init__(
|
| 315 |
+
self, key: _Optional[str] = ..., value: _Optional[str] = ...
|
| 316 |
+
) -> None: ...
|
| 317 |
+
|
| 318 |
+
COMMON_FIELD_NUMBER: _ClassVar[int]
|
| 319 |
+
RENAMED_SERVICES_FIELD_NUMBER: _ClassVar[int]
|
| 320 |
+
RENAMED_RESOURCES_FIELD_NUMBER: _ClassVar[int]
|
| 321 |
+
IGNORED_RESOURCES_FIELD_NUMBER: _ClassVar[int]
|
| 322 |
+
FORCED_NAMESPACE_ALIASES_FIELD_NUMBER: _ClassVar[int]
|
| 323 |
+
HANDWRITTEN_SIGNATURES_FIELD_NUMBER: _ClassVar[int]
|
| 324 |
+
common: CommonLanguageSettings
|
| 325 |
+
renamed_services: _containers.ScalarMap[str, str]
|
| 326 |
+
renamed_resources: _containers.ScalarMap[str, str]
|
| 327 |
+
ignored_resources: _containers.RepeatedScalarFieldContainer[str]
|
| 328 |
+
forced_namespace_aliases: _containers.RepeatedScalarFieldContainer[str]
|
| 329 |
+
handwritten_signatures: _containers.RepeatedScalarFieldContainer[str]
|
| 330 |
+
def __init__(
|
| 331 |
+
self,
|
| 332 |
+
common: _Optional[_Union[CommonLanguageSettings, _Mapping]] = ...,
|
| 333 |
+
renamed_services: _Optional[_Mapping[str, str]] = ...,
|
| 334 |
+
renamed_resources: _Optional[_Mapping[str, str]] = ...,
|
| 335 |
+
ignored_resources: _Optional[_Iterable[str]] = ...,
|
| 336 |
+
forced_namespace_aliases: _Optional[_Iterable[str]] = ...,
|
| 337 |
+
handwritten_signatures: _Optional[_Iterable[str]] = ...,
|
| 338 |
+
) -> None: ...
|
| 339 |
+
|
| 340 |
+
class RubySettings(_message.Message):
|
| 341 |
+
__slots__ = ("common",)
|
| 342 |
+
COMMON_FIELD_NUMBER: _ClassVar[int]
|
| 343 |
+
common: CommonLanguageSettings
|
| 344 |
+
def __init__(
|
| 345 |
+
self, common: _Optional[_Union[CommonLanguageSettings, _Mapping]] = ...
|
| 346 |
+
) -> None: ...
|
| 347 |
+
|
| 348 |
+
class GoSettings(_message.Message):
|
| 349 |
+
__slots__ = ("common", "renamed_services")
|
| 350 |
+
class RenamedServicesEntry(_message.Message):
|
| 351 |
+
__slots__ = ("key", "value")
|
| 352 |
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
| 353 |
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
| 354 |
+
key: str
|
| 355 |
+
value: str
|
| 356 |
+
def __init__(
|
| 357 |
+
self, key: _Optional[str] = ..., value: _Optional[str] = ...
|
| 358 |
+
) -> None: ...
|
| 359 |
+
|
| 360 |
+
COMMON_FIELD_NUMBER: _ClassVar[int]
|
| 361 |
+
RENAMED_SERVICES_FIELD_NUMBER: _ClassVar[int]
|
| 362 |
+
common: CommonLanguageSettings
|
| 363 |
+
renamed_services: _containers.ScalarMap[str, str]
|
| 364 |
+
def __init__(
|
| 365 |
+
self,
|
| 366 |
+
common: _Optional[_Union[CommonLanguageSettings, _Mapping]] = ...,
|
| 367 |
+
renamed_services: _Optional[_Mapping[str, str]] = ...,
|
| 368 |
+
) -> None: ...
|
| 369 |
+
|
| 370 |
+
class MethodSettings(_message.Message):
|
| 371 |
+
__slots__ = ("selector", "long_running", "auto_populated_fields", "batching")
|
| 372 |
+
class LongRunning(_message.Message):
|
| 373 |
+
__slots__ = (
|
| 374 |
+
"initial_poll_delay",
|
| 375 |
+
"poll_delay_multiplier",
|
| 376 |
+
"max_poll_delay",
|
| 377 |
+
"total_poll_timeout",
|
| 378 |
+
)
|
| 379 |
+
INITIAL_POLL_DELAY_FIELD_NUMBER: _ClassVar[int]
|
| 380 |
+
POLL_DELAY_MULTIPLIER_FIELD_NUMBER: _ClassVar[int]
|
| 381 |
+
MAX_POLL_DELAY_FIELD_NUMBER: _ClassVar[int]
|
| 382 |
+
TOTAL_POLL_TIMEOUT_FIELD_NUMBER: _ClassVar[int]
|
| 383 |
+
initial_poll_delay: _duration_pb2.Duration
|
| 384 |
+
poll_delay_multiplier: float
|
| 385 |
+
max_poll_delay: _duration_pb2.Duration
|
| 386 |
+
total_poll_timeout: _duration_pb2.Duration
|
| 387 |
+
def __init__(
|
| 388 |
+
self,
|
| 389 |
+
initial_poll_delay: _Optional[
|
| 390 |
+
_Union[_duration_pb2.Duration, _Mapping]
|
| 391 |
+
] = ...,
|
| 392 |
+
poll_delay_multiplier: _Optional[float] = ...,
|
| 393 |
+
max_poll_delay: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ...,
|
| 394 |
+
total_poll_timeout: _Optional[
|
| 395 |
+
_Union[_duration_pb2.Duration, _Mapping]
|
| 396 |
+
] = ...,
|
| 397 |
+
) -> None: ...
|
| 398 |
+
|
| 399 |
+
SELECTOR_FIELD_NUMBER: _ClassVar[int]
|
| 400 |
+
LONG_RUNNING_FIELD_NUMBER: _ClassVar[int]
|
| 401 |
+
AUTO_POPULATED_FIELDS_FIELD_NUMBER: _ClassVar[int]
|
| 402 |
+
BATCHING_FIELD_NUMBER: _ClassVar[int]
|
| 403 |
+
selector: str
|
| 404 |
+
long_running: MethodSettings.LongRunning
|
| 405 |
+
auto_populated_fields: _containers.RepeatedScalarFieldContainer[str]
|
| 406 |
+
batching: BatchingConfigProto
|
| 407 |
+
def __init__(
|
| 408 |
+
self,
|
| 409 |
+
selector: _Optional[str] = ...,
|
| 410 |
+
long_running: _Optional[_Union[MethodSettings.LongRunning, _Mapping]] = ...,
|
| 411 |
+
auto_populated_fields: _Optional[_Iterable[str]] = ...,
|
| 412 |
+
batching: _Optional[_Union[BatchingConfigProto, _Mapping]] = ...,
|
| 413 |
+
) -> None: ...
|
| 414 |
+
|
| 415 |
+
class SelectiveGapicGeneration(_message.Message):
|
| 416 |
+
__slots__ = ("methods", "generate_omitted_as_internal")
|
| 417 |
+
METHODS_FIELD_NUMBER: _ClassVar[int]
|
| 418 |
+
GENERATE_OMITTED_AS_INTERNAL_FIELD_NUMBER: _ClassVar[int]
|
| 419 |
+
methods: _containers.RepeatedScalarFieldContainer[str]
|
| 420 |
+
generate_omitted_as_internal: bool
|
| 421 |
+
def __init__(
|
| 422 |
+
self,
|
| 423 |
+
methods: _Optional[_Iterable[str]] = ...,
|
| 424 |
+
generate_omitted_as_internal: bool = ...,
|
| 425 |
+
) -> None: ...
|
| 426 |
+
|
| 427 |
+
class BatchingConfigProto(_message.Message):
|
| 428 |
+
__slots__ = ("thresholds", "batch_descriptor")
|
| 429 |
+
THRESHOLDS_FIELD_NUMBER: _ClassVar[int]
|
| 430 |
+
BATCH_DESCRIPTOR_FIELD_NUMBER: _ClassVar[int]
|
| 431 |
+
thresholds: BatchingSettingsProto
|
| 432 |
+
batch_descriptor: BatchingDescriptorProto
|
| 433 |
+
def __init__(
|
| 434 |
+
self,
|
| 435 |
+
thresholds: _Optional[_Union[BatchingSettingsProto, _Mapping]] = ...,
|
| 436 |
+
batch_descriptor: _Optional[_Union[BatchingDescriptorProto, _Mapping]] = ...,
|
| 437 |
+
) -> None: ...
|
| 438 |
+
|
| 439 |
+
class BatchingSettingsProto(_message.Message):
|
| 440 |
+
__slots__ = (
|
| 441 |
+
"element_count_threshold",
|
| 442 |
+
"request_byte_threshold",
|
| 443 |
+
"delay_threshold",
|
| 444 |
+
"element_count_limit",
|
| 445 |
+
"request_byte_limit",
|
| 446 |
+
"flow_control_element_limit",
|
| 447 |
+
"flow_control_byte_limit",
|
| 448 |
+
"flow_control_limit_exceeded_behavior",
|
| 449 |
+
)
|
| 450 |
+
ELEMENT_COUNT_THRESHOLD_FIELD_NUMBER: _ClassVar[int]
|
| 451 |
+
REQUEST_BYTE_THRESHOLD_FIELD_NUMBER: _ClassVar[int]
|
| 452 |
+
DELAY_THRESHOLD_FIELD_NUMBER: _ClassVar[int]
|
| 453 |
+
ELEMENT_COUNT_LIMIT_FIELD_NUMBER: _ClassVar[int]
|
| 454 |
+
REQUEST_BYTE_LIMIT_FIELD_NUMBER: _ClassVar[int]
|
| 455 |
+
FLOW_CONTROL_ELEMENT_LIMIT_FIELD_NUMBER: _ClassVar[int]
|
| 456 |
+
FLOW_CONTROL_BYTE_LIMIT_FIELD_NUMBER: _ClassVar[int]
|
| 457 |
+
FLOW_CONTROL_LIMIT_EXCEEDED_BEHAVIOR_FIELD_NUMBER: _ClassVar[int]
|
| 458 |
+
element_count_threshold: int
|
| 459 |
+
request_byte_threshold: int
|
| 460 |
+
delay_threshold: _duration_pb2.Duration
|
| 461 |
+
element_count_limit: int
|
| 462 |
+
request_byte_limit: int
|
| 463 |
+
flow_control_element_limit: int
|
| 464 |
+
flow_control_byte_limit: int
|
| 465 |
+
flow_control_limit_exceeded_behavior: FlowControlLimitExceededBehaviorProto
|
| 466 |
+
def __init__(
|
| 467 |
+
self,
|
| 468 |
+
element_count_threshold: _Optional[int] = ...,
|
| 469 |
+
request_byte_threshold: _Optional[int] = ...,
|
| 470 |
+
delay_threshold: _Optional[_Union[_duration_pb2.Duration, _Mapping]] = ...,
|
| 471 |
+
element_count_limit: _Optional[int] = ...,
|
| 472 |
+
request_byte_limit: _Optional[int] = ...,
|
| 473 |
+
flow_control_element_limit: _Optional[int] = ...,
|
| 474 |
+
flow_control_byte_limit: _Optional[int] = ...,
|
| 475 |
+
flow_control_limit_exceeded_behavior: _Optional[
|
| 476 |
+
_Union[FlowControlLimitExceededBehaviorProto, str]
|
| 477 |
+
] = ...,
|
| 478 |
+
) -> None: ...
|
| 479 |
+
|
| 480 |
+
class BatchingDescriptorProto(_message.Message):
|
| 481 |
+
__slots__ = ("batched_field", "discriminator_fields", "subresponse_field")
|
| 482 |
+
BATCHED_FIELD_FIELD_NUMBER: _ClassVar[int]
|
| 483 |
+
DISCRIMINATOR_FIELDS_FIELD_NUMBER: _ClassVar[int]
|
| 484 |
+
SUBRESPONSE_FIELD_FIELD_NUMBER: _ClassVar[int]
|
| 485 |
+
batched_field: str
|
| 486 |
+
discriminator_fields: _containers.RepeatedScalarFieldContainer[str]
|
| 487 |
+
subresponse_field: str
|
| 488 |
+
def __init__(
|
| 489 |
+
self,
|
| 490 |
+
batched_field: _Optional[str] = ...,
|
| 491 |
+
discriminator_fields: _Optional[_Iterable[str]] = ...,
|
| 492 |
+
subresponse_field: _Optional[str] = ...,
|
| 493 |
+
) -> None: ...
|
python/user_packages/Python313/site-packages/google/api/config_change.proto
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2026 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 |
+
}
|
python/user_packages/Python313/site-packages/google/api/config_change_pb2.py
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# -*- coding: utf-8 -*-
|
| 2 |
+
|
| 3 |
+
# Copyright 2025 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 |
+
# Protobuf Python Version: 4.25.3
|
| 20 |
+
"""Generated protocol buffer code."""
|
| 21 |
+
|
| 22 |
+
from google.protobuf import descriptor as _descriptor
|
| 23 |
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
| 24 |
+
from google.protobuf import symbol_database as _symbol_database
|
| 25 |
+
from google.protobuf.internal import builder as _builder
|
| 26 |
+
|
| 27 |
+
# @@protoc_insertion_point(imports)
|
| 28 |
+
|
| 29 |
+
_sym_db = _symbol_database.Default()
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
| 33 |
+
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'
|
| 34 |
+
)
|
| 35 |
+
|
| 36 |
+
_globals = globals()
|
| 37 |
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
| 38 |
+
_builder.BuildTopDescriptorsAndMessages(
|
| 39 |
+
DESCRIPTOR, "google.api.config_change_pb2", _globals
|
| 40 |
+
)
|
| 41 |
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
| 42 |
+
_globals["DESCRIPTOR"]._options = None
|
| 43 |
+
_globals[
|
| 44 |
+
"DESCRIPTOR"
|
| 45 |
+
]._serialized_options = b"\n\016com.google.apiB\021ConfigChangeProtoP\001ZCgoogle.golang.org/genproto/googleapis/api/configchange;configchange\242\002\004GAPI"
|
| 46 |
+
_globals["_CHANGETYPE"]._serialized_start = 231
|
| 47 |
+
_globals["_CHANGETYPE"]._serialized_end = 310
|
| 48 |
+
_globals["_CONFIGCHANGE"]._serialized_start = 47
|
| 49 |
+
_globals["_CONFIGCHANGE"]._serialized_end = 198
|
| 50 |
+
_globals["_ADVICE"]._serialized_start = 200
|
| 51 |
+
_globals["_ADVICE"]._serialized_end = 229
|
| 52 |
+
# @@protoc_insertion_point(module_scope)
|
python/user_packages/Python313/site-packages/google/api/config_change_pb2.pyi
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2025 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 |
+
from typing import ClassVar as _ClassVar
|
| 16 |
+
from typing import Iterable as _Iterable
|
| 17 |
+
from typing import Mapping as _Mapping
|
| 18 |
+
from typing import Optional as _Optional
|
| 19 |
+
from typing import Union as _Union
|
| 20 |
+
|
| 21 |
+
from google.protobuf import descriptor as _descriptor
|
| 22 |
+
from google.protobuf import message as _message
|
| 23 |
+
from google.protobuf.internal import containers as _containers
|
| 24 |
+
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
| 25 |
+
|
| 26 |
+
DESCRIPTOR: _descriptor.FileDescriptor
|
| 27 |
+
|
| 28 |
+
class ChangeType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
| 29 |
+
__slots__ = ()
|
| 30 |
+
CHANGE_TYPE_UNSPECIFIED: _ClassVar[ChangeType]
|
| 31 |
+
ADDED: _ClassVar[ChangeType]
|
| 32 |
+
REMOVED: _ClassVar[ChangeType]
|
| 33 |
+
MODIFIED: _ClassVar[ChangeType]
|
| 34 |
+
|
| 35 |
+
CHANGE_TYPE_UNSPECIFIED: ChangeType
|
| 36 |
+
ADDED: ChangeType
|
| 37 |
+
REMOVED: ChangeType
|
| 38 |
+
MODIFIED: ChangeType
|
| 39 |
+
|
| 40 |
+
class ConfigChange(_message.Message):
|
| 41 |
+
__slots__ = ("element", "old_value", "new_value", "change_type", "advices")
|
| 42 |
+
ELEMENT_FIELD_NUMBER: _ClassVar[int]
|
| 43 |
+
OLD_VALUE_FIELD_NUMBER: _ClassVar[int]
|
| 44 |
+
NEW_VALUE_FIELD_NUMBER: _ClassVar[int]
|
| 45 |
+
CHANGE_TYPE_FIELD_NUMBER: _ClassVar[int]
|
| 46 |
+
ADVICES_FIELD_NUMBER: _ClassVar[int]
|
| 47 |
+
element: str
|
| 48 |
+
old_value: str
|
| 49 |
+
new_value: str
|
| 50 |
+
change_type: ChangeType
|
| 51 |
+
advices: _containers.RepeatedCompositeFieldContainer[Advice]
|
| 52 |
+
def __init__(
|
| 53 |
+
self,
|
| 54 |
+
element: _Optional[str] = ...,
|
| 55 |
+
old_value: _Optional[str] = ...,
|
| 56 |
+
new_value: _Optional[str] = ...,
|
| 57 |
+
change_type: _Optional[_Union[ChangeType, str]] = ...,
|
| 58 |
+
advices: _Optional[_Iterable[_Union[Advice, _Mapping]]] = ...,
|
| 59 |
+
) -> None: ...
|
| 60 |
+
|
| 61 |
+
class Advice(_message.Message):
|
| 62 |
+
__slots__ = ("description",)
|
| 63 |
+
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
| 64 |
+
description: str
|
| 65 |
+
def __init__(self, description: _Optional[str] = ...) -> None: ...
|
python/user_packages/Python313/site-packages/google/api/consumer.proto
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2025 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 |
+
}
|
python/user_packages/Python313/site-packages/google/api/consumer_pb2.py
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# -*- coding: utf-8 -*-
|
| 2 |
+
|
| 3 |
+
# Copyright 2025 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 |
+
# Protobuf Python Version: 4.25.3
|
| 20 |
+
"""Generated protocol buffer code."""
|
| 21 |
+
|
| 22 |
+
from google.protobuf import descriptor as _descriptor
|
| 23 |
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
| 24 |
+
from google.protobuf import symbol_database as _symbol_database
|
| 25 |
+
from google.protobuf.internal import builder as _builder
|
| 26 |
+
|
| 27 |
+
# @@protoc_insertion_point(imports)
|
| 28 |
+
|
| 29 |
+
_sym_db = _symbol_database.Default()
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
| 33 |
+
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'
|
| 34 |
+
)
|
| 35 |
+
|
| 36 |
+
_globals = globals()
|
| 37 |
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
| 38 |
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "google.api.consumer_pb2", _globals)
|
| 39 |
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
| 40 |
+
_globals["DESCRIPTOR"]._options = None
|
| 41 |
+
_globals[
|
| 42 |
+
"DESCRIPTOR"
|
| 43 |
+
]._serialized_options = b"\n\016com.google.apiB\rConsumerProtoP\001ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig"
|
| 44 |
+
_globals["_PROJECTPROPERTIES"]._serialized_start = 41
|
| 45 |
+
_globals["_PROJECTPROPERTIES"]._serialized_end = 102
|
| 46 |
+
_globals["_PROPERTY"]._serialized_start = 105
|
| 47 |
+
_globals["_PROPERTY"]._serialized_end = 277
|
| 48 |
+
_globals["_PROPERTY_PROPERTYTYPE"]._serialized_start = 201
|
| 49 |
+
_globals["_PROPERTY_PROPERTYTYPE"]._serialized_end = 277
|
| 50 |
+
# @@protoc_insertion_point(module_scope)
|
python/user_packages/Python313/site-packages/google/api/consumer_pb2.pyi
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2025 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 |
+
from typing import ClassVar as _ClassVar
|
| 16 |
+
from typing import Iterable as _Iterable
|
| 17 |
+
from typing import Mapping as _Mapping
|
| 18 |
+
from typing import Optional as _Optional
|
| 19 |
+
from typing import Union as _Union
|
| 20 |
+
|
| 21 |
+
from google.protobuf import descriptor as _descriptor
|
| 22 |
+
from google.protobuf import message as _message
|
| 23 |
+
from google.protobuf.internal import containers as _containers
|
| 24 |
+
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
| 25 |
+
|
| 26 |
+
DESCRIPTOR: _descriptor.FileDescriptor
|
| 27 |
+
|
| 28 |
+
class ProjectProperties(_message.Message):
|
| 29 |
+
__slots__ = ("properties",)
|
| 30 |
+
PROPERTIES_FIELD_NUMBER: _ClassVar[int]
|
| 31 |
+
properties: _containers.RepeatedCompositeFieldContainer[Property]
|
| 32 |
+
def __init__(
|
| 33 |
+
self, properties: _Optional[_Iterable[_Union[Property, _Mapping]]] = ...
|
| 34 |
+
) -> None: ...
|
| 35 |
+
|
| 36 |
+
class Property(_message.Message):
|
| 37 |
+
__slots__ = ("name", "type", "description")
|
| 38 |
+
class PropertyType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
| 39 |
+
__slots__ = ()
|
| 40 |
+
UNSPECIFIED: _ClassVar[Property.PropertyType]
|
| 41 |
+
INT64: _ClassVar[Property.PropertyType]
|
| 42 |
+
BOOL: _ClassVar[Property.PropertyType]
|
| 43 |
+
STRING: _ClassVar[Property.PropertyType]
|
| 44 |
+
DOUBLE: _ClassVar[Property.PropertyType]
|
| 45 |
+
|
| 46 |
+
UNSPECIFIED: Property.PropertyType
|
| 47 |
+
INT64: Property.PropertyType
|
| 48 |
+
BOOL: Property.PropertyType
|
| 49 |
+
STRING: Property.PropertyType
|
| 50 |
+
DOUBLE: Property.PropertyType
|
| 51 |
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
| 52 |
+
TYPE_FIELD_NUMBER: _ClassVar[int]
|
| 53 |
+
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
| 54 |
+
name: str
|
| 55 |
+
type: Property.PropertyType
|
| 56 |
+
description: str
|
| 57 |
+
def __init__(
|
| 58 |
+
self,
|
| 59 |
+
name: _Optional[str] = ...,
|
| 60 |
+
type: _Optional[_Union[Property.PropertyType, str]] = ...,
|
| 61 |
+
description: _Optional[str] = ...,
|
| 62 |
+
) -> None: ...
|
python/user_packages/Python313/site-packages/google/api/context.proto
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2026 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 |
+
}
|
python/user_packages/Python313/site-packages/google/api/context_pb2.py
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# -*- coding: utf-8 -*-
|
| 2 |
+
|
| 3 |
+
# Copyright 2025 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 |
+
# Protobuf Python Version: 4.25.3
|
| 20 |
+
"""Generated protocol buffer code."""
|
| 21 |
+
|
| 22 |
+
from google.protobuf import descriptor as _descriptor
|
| 23 |
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
| 24 |
+
from google.protobuf import symbol_database as _symbol_database
|
| 25 |
+
from google.protobuf.internal import builder as _builder
|
| 26 |
+
|
| 27 |
+
# @@protoc_insertion_point(imports)
|
| 28 |
+
|
| 29 |
+
_sym_db = _symbol_database.Default()
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
| 33 |
+
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'
|
| 34 |
+
)
|
| 35 |
+
|
| 36 |
+
_globals = globals()
|
| 37 |
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
| 38 |
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "google.api.context_pb2", _globals)
|
| 39 |
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
| 40 |
+
_globals["DESCRIPTOR"]._options = None
|
| 41 |
+
_globals[
|
| 42 |
+
"DESCRIPTOR"
|
| 43 |
+
]._serialized_options = b"\n\016com.google.apiB\014ContextProtoP\001ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\242\002\004GAPI"
|
| 44 |
+
_globals["_CONTEXT"]._serialized_start = 40
|
| 45 |
+
_globals["_CONTEXT"]._serialized_end = 89
|
| 46 |
+
_globals["_CONTEXTRULE"]._serialized_start = 92
|
| 47 |
+
_globals["_CONTEXTRULE"]._serialized_end = 233
|
| 48 |
+
# @@protoc_insertion_point(module_scope)
|
python/user_packages/Python313/site-packages/google/api/context_pb2.pyi
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2025 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 |
+
from typing import ClassVar as _ClassVar
|
| 16 |
+
from typing import Iterable as _Iterable
|
| 17 |
+
from typing import Mapping as _Mapping
|
| 18 |
+
from typing import Optional as _Optional
|
| 19 |
+
from typing import Union as _Union
|
| 20 |
+
|
| 21 |
+
from google.protobuf import descriptor as _descriptor
|
| 22 |
+
from google.protobuf import message as _message
|
| 23 |
+
from google.protobuf.internal import containers as _containers
|
| 24 |
+
|
| 25 |
+
DESCRIPTOR: _descriptor.FileDescriptor
|
| 26 |
+
|
| 27 |
+
class Context(_message.Message):
|
| 28 |
+
__slots__ = ("rules",)
|
| 29 |
+
RULES_FIELD_NUMBER: _ClassVar[int]
|
| 30 |
+
rules: _containers.RepeatedCompositeFieldContainer[ContextRule]
|
| 31 |
+
def __init__(
|
| 32 |
+
self, rules: _Optional[_Iterable[_Union[ContextRule, _Mapping]]] = ...
|
| 33 |
+
) -> None: ...
|
| 34 |
+
|
| 35 |
+
class ContextRule(_message.Message):
|
| 36 |
+
__slots__ = (
|
| 37 |
+
"selector",
|
| 38 |
+
"requested",
|
| 39 |
+
"provided",
|
| 40 |
+
"allowed_request_extensions",
|
| 41 |
+
"allowed_response_extensions",
|
| 42 |
+
)
|
| 43 |
+
SELECTOR_FIELD_NUMBER: _ClassVar[int]
|
| 44 |
+
REQUESTED_FIELD_NUMBER: _ClassVar[int]
|
| 45 |
+
PROVIDED_FIELD_NUMBER: _ClassVar[int]
|
| 46 |
+
ALLOWED_REQUEST_EXTENSIONS_FIELD_NUMBER: _ClassVar[int]
|
| 47 |
+
ALLOWED_RESPONSE_EXTENSIONS_FIELD_NUMBER: _ClassVar[int]
|
| 48 |
+
selector: str
|
| 49 |
+
requested: _containers.RepeatedScalarFieldContainer[str]
|
| 50 |
+
provided: _containers.RepeatedScalarFieldContainer[str]
|
| 51 |
+
allowed_request_extensions: _containers.RepeatedScalarFieldContainer[str]
|
| 52 |
+
allowed_response_extensions: _containers.RepeatedScalarFieldContainer[str]
|
| 53 |
+
def __init__(
|
| 54 |
+
self,
|
| 55 |
+
selector: _Optional[str] = ...,
|
| 56 |
+
requested: _Optional[_Iterable[str]] = ...,
|
| 57 |
+
provided: _Optional[_Iterable[str]] = ...,
|
| 58 |
+
allowed_request_extensions: _Optional[_Iterable[str]] = ...,
|
| 59 |
+
allowed_response_extensions: _Optional[_Iterable[str]] = ...,
|
| 60 |
+
) -> None: ...
|
python/user_packages/Python313/site-packages/google/api/control.proto
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2026 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 |
+
// features (like quota and billing) will be enabled. The recommended value
|
| 36 |
+
// for 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 |
+
}
|
python/user_packages/Python313/site-packages/google/api/control_pb2.py
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# -*- coding: utf-8 -*-
|
| 2 |
+
|
| 3 |
+
# Copyright 2025 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 |
+
# Protobuf Python Version: 4.25.3
|
| 20 |
+
"""Generated protocol buffer code."""
|
| 21 |
+
|
| 22 |
+
from google.protobuf import descriptor as _descriptor
|
| 23 |
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
| 24 |
+
from google.protobuf import symbol_database as _symbol_database
|
| 25 |
+
from google.protobuf.internal import builder as _builder
|
| 26 |
+
|
| 27 |
+
# @@protoc_insertion_point(imports)
|
| 28 |
+
|
| 29 |
+
_sym_db = _symbol_database.Default()
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
from google.api import policy_pb2 as google_dot_api_dot_policy__pb2
|
| 33 |
+
|
| 34 |
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
| 35 |
+
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'
|
| 36 |
+
)
|
| 37 |
+
|
| 38 |
+
_globals = globals()
|
| 39 |
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
| 40 |
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "google.api.control_pb2", _globals)
|
| 41 |
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
| 42 |
+
_globals["DESCRIPTOR"]._options = None
|
| 43 |
+
_globals[
|
| 44 |
+
"DESCRIPTOR"
|
| 45 |
+
]._serialized_options = b"\n\016com.google.apiB\014ControlProtoP\001ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\242\002\004GAPI"
|
| 46 |
+
_globals["_CONTROL"]._serialized_start = 65
|
| 47 |
+
_globals["_CONTROL"]._serialized_end = 146
|
| 48 |
+
# @@protoc_insertion_point(module_scope)
|
python/user_packages/Python313/site-packages/google/api/control_pb2.pyi
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2025 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 |
+
from typing import ClassVar as _ClassVar
|
| 16 |
+
from typing import Iterable as _Iterable
|
| 17 |
+
from typing import Mapping as _Mapping
|
| 18 |
+
from typing import Optional as _Optional
|
| 19 |
+
from typing import Union as _Union
|
| 20 |
+
|
| 21 |
+
from google.protobuf import descriptor as _descriptor
|
| 22 |
+
from google.protobuf import message as _message
|
| 23 |
+
from google.protobuf.internal import containers as _containers
|
| 24 |
+
|
| 25 |
+
from google.api import policy_pb2 as _policy_pb2
|
| 26 |
+
|
| 27 |
+
DESCRIPTOR: _descriptor.FileDescriptor
|
| 28 |
+
|
| 29 |
+
class Control(_message.Message):
|
| 30 |
+
__slots__ = ("environment", "method_policies")
|
| 31 |
+
ENVIRONMENT_FIELD_NUMBER: _ClassVar[int]
|
| 32 |
+
METHOD_POLICIES_FIELD_NUMBER: _ClassVar[int]
|
| 33 |
+
environment: str
|
| 34 |
+
method_policies: _containers.RepeatedCompositeFieldContainer[
|
| 35 |
+
_policy_pb2.MethodPolicy
|
| 36 |
+
]
|
| 37 |
+
def __init__(
|
| 38 |
+
self,
|
| 39 |
+
environment: _Optional[str] = ...,
|
| 40 |
+
method_policies: _Optional[
|
| 41 |
+
_Iterable[_Union[_policy_pb2.MethodPolicy, _Mapping]]
|
| 42 |
+
] = ...,
|
| 43 |
+
) -> None: ...
|
python/user_packages/Python313/site-packages/google/api/distribution.proto
ADDED
|
@@ -0,0 +1,213 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2026 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 |
+
}
|
python/user_packages/Python313/site-packages/google/api/distribution_pb2.py
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# -*- coding: utf-8 -*-
|
| 2 |
+
|
| 3 |
+
# Copyright 2025 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 |
+
# Protobuf Python Version: 4.25.3
|
| 20 |
+
"""Generated protocol buffer code."""
|
| 21 |
+
|
| 22 |
+
from google.protobuf import descriptor as _descriptor
|
| 23 |
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
| 24 |
+
from google.protobuf import symbol_database as _symbol_database
|
| 25 |
+
from google.protobuf.internal import builder as _builder
|
| 26 |
+
|
| 27 |
+
# @@protoc_insertion_point(imports)
|
| 28 |
+
|
| 29 |
+
_sym_db = _symbol_database.Default()
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2
|
| 33 |
+
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
| 34 |
+
|
| 35 |
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
| 36 |
+
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'
|
| 37 |
+
)
|
| 38 |
+
|
| 39 |
+
_globals = globals()
|
| 40 |
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
| 41 |
+
_builder.BuildTopDescriptorsAndMessages(
|
| 42 |
+
DESCRIPTOR, "google.api.distribution_pb2", _globals
|
| 43 |
+
)
|
| 44 |
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
| 45 |
+
_globals["DESCRIPTOR"]._options = None
|
| 46 |
+
_globals[
|
| 47 |
+
"DESCRIPTOR"
|
| 48 |
+
]._serialized_options = b"\n\016com.google.apiB\021DistributionProtoP\001ZCgoogle.golang.org/genproto/googleapis/api/distribution;distribution\242\002\004GAPI"
|
| 49 |
+
_globals["_DISTRIBUTION"]._serialized_start = 106
|
| 50 |
+
_globals["_DISTRIBUTION"]._serialized_end = 963
|
| 51 |
+
_globals["_DISTRIBUTION_RANGE"]._serialized_start = 373
|
| 52 |
+
_globals["_DISTRIBUTION_RANGE"]._serialized_end = 406
|
| 53 |
+
_globals["_DISTRIBUTION_BUCKETOPTIONS"]._serialized_start = 409
|
| 54 |
+
_globals["_DISTRIBUTION_BUCKETOPTIONS"]._serialized_end = 846
|
| 55 |
+
_globals["_DISTRIBUTION_BUCKETOPTIONS_LINEAR"]._serialized_start = 659
|
| 56 |
+
_globals["_DISTRIBUTION_BUCKETOPTIONS_LINEAR"]._serialized_end = 726
|
| 57 |
+
_globals["_DISTRIBUTION_BUCKETOPTIONS_EXPONENTIAL"]._serialized_start = 728
|
| 58 |
+
_globals["_DISTRIBUTION_BUCKETOPTIONS_EXPONENTIAL"]._serialized_end = 807
|
| 59 |
+
_globals["_DISTRIBUTION_BUCKETOPTIONS_EXPLICIT"]._serialized_start = 809
|
| 60 |
+
_globals["_DISTRIBUTION_BUCKETOPTIONS_EXPLICIT"]._serialized_end = 835
|
| 61 |
+
_globals["_DISTRIBUTION_EXEMPLAR"]._serialized_start = 848
|
| 62 |
+
_globals["_DISTRIBUTION_EXEMPLAR"]._serialized_end = 963
|
| 63 |
+
# @@protoc_insertion_point(module_scope)
|
python/user_packages/Python313/site-packages/google/api/distribution_pb2.pyi
ADDED
|
@@ -0,0 +1,144 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2025 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 |
+
from typing import ClassVar as _ClassVar
|
| 16 |
+
from typing import Iterable as _Iterable
|
| 17 |
+
from typing import Mapping as _Mapping
|
| 18 |
+
from typing import Optional as _Optional
|
| 19 |
+
from typing import Union as _Union
|
| 20 |
+
|
| 21 |
+
from google.protobuf import any_pb2 as _any_pb2
|
| 22 |
+
from google.protobuf import descriptor as _descriptor
|
| 23 |
+
from google.protobuf import message as _message
|
| 24 |
+
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
| 25 |
+
from google.protobuf.internal import containers as _containers
|
| 26 |
+
|
| 27 |
+
DESCRIPTOR: _descriptor.FileDescriptor
|
| 28 |
+
|
| 29 |
+
class Distribution(_message.Message):
|
| 30 |
+
__slots__ = (
|
| 31 |
+
"count",
|
| 32 |
+
"mean",
|
| 33 |
+
"sum_of_squared_deviation",
|
| 34 |
+
"range",
|
| 35 |
+
"bucket_options",
|
| 36 |
+
"bucket_counts",
|
| 37 |
+
"exemplars",
|
| 38 |
+
)
|
| 39 |
+
class Range(_message.Message):
|
| 40 |
+
__slots__ = ("min", "max")
|
| 41 |
+
MIN_FIELD_NUMBER: _ClassVar[int]
|
| 42 |
+
MAX_FIELD_NUMBER: _ClassVar[int]
|
| 43 |
+
min: float
|
| 44 |
+
max: float
|
| 45 |
+
def __init__(
|
| 46 |
+
self, min: _Optional[float] = ..., max: _Optional[float] = ...
|
| 47 |
+
) -> None: ...
|
| 48 |
+
|
| 49 |
+
class BucketOptions(_message.Message):
|
| 50 |
+
__slots__ = ("linear_buckets", "exponential_buckets", "explicit_buckets")
|
| 51 |
+
class Linear(_message.Message):
|
| 52 |
+
__slots__ = ("num_finite_buckets", "width", "offset")
|
| 53 |
+
NUM_FINITE_BUCKETS_FIELD_NUMBER: _ClassVar[int]
|
| 54 |
+
WIDTH_FIELD_NUMBER: _ClassVar[int]
|
| 55 |
+
OFFSET_FIELD_NUMBER: _ClassVar[int]
|
| 56 |
+
num_finite_buckets: int
|
| 57 |
+
width: float
|
| 58 |
+
offset: float
|
| 59 |
+
def __init__(
|
| 60 |
+
self,
|
| 61 |
+
num_finite_buckets: _Optional[int] = ...,
|
| 62 |
+
width: _Optional[float] = ...,
|
| 63 |
+
offset: _Optional[float] = ...,
|
| 64 |
+
) -> None: ...
|
| 65 |
+
|
| 66 |
+
class Exponential(_message.Message):
|
| 67 |
+
__slots__ = ("num_finite_buckets", "growth_factor", "scale")
|
| 68 |
+
NUM_FINITE_BUCKETS_FIELD_NUMBER: _ClassVar[int]
|
| 69 |
+
GROWTH_FACTOR_FIELD_NUMBER: _ClassVar[int]
|
| 70 |
+
SCALE_FIELD_NUMBER: _ClassVar[int]
|
| 71 |
+
num_finite_buckets: int
|
| 72 |
+
growth_factor: float
|
| 73 |
+
scale: float
|
| 74 |
+
def __init__(
|
| 75 |
+
self,
|
| 76 |
+
num_finite_buckets: _Optional[int] = ...,
|
| 77 |
+
growth_factor: _Optional[float] = ...,
|
| 78 |
+
scale: _Optional[float] = ...,
|
| 79 |
+
) -> None: ...
|
| 80 |
+
|
| 81 |
+
class Explicit(_message.Message):
|
| 82 |
+
__slots__ = ("bounds",)
|
| 83 |
+
BOUNDS_FIELD_NUMBER: _ClassVar[int]
|
| 84 |
+
bounds: _containers.RepeatedScalarFieldContainer[float]
|
| 85 |
+
def __init__(self, bounds: _Optional[_Iterable[float]] = ...) -> None: ...
|
| 86 |
+
|
| 87 |
+
LINEAR_BUCKETS_FIELD_NUMBER: _ClassVar[int]
|
| 88 |
+
EXPONENTIAL_BUCKETS_FIELD_NUMBER: _ClassVar[int]
|
| 89 |
+
EXPLICIT_BUCKETS_FIELD_NUMBER: _ClassVar[int]
|
| 90 |
+
linear_buckets: Distribution.BucketOptions.Linear
|
| 91 |
+
exponential_buckets: Distribution.BucketOptions.Exponential
|
| 92 |
+
explicit_buckets: Distribution.BucketOptions.Explicit
|
| 93 |
+
def __init__(
|
| 94 |
+
self,
|
| 95 |
+
linear_buckets: _Optional[
|
| 96 |
+
_Union[Distribution.BucketOptions.Linear, _Mapping]
|
| 97 |
+
] = ...,
|
| 98 |
+
exponential_buckets: _Optional[
|
| 99 |
+
_Union[Distribution.BucketOptions.Exponential, _Mapping]
|
| 100 |
+
] = ...,
|
| 101 |
+
explicit_buckets: _Optional[
|
| 102 |
+
_Union[Distribution.BucketOptions.Explicit, _Mapping]
|
| 103 |
+
] = ...,
|
| 104 |
+
) -> None: ...
|
| 105 |
+
|
| 106 |
+
class Exemplar(_message.Message):
|
| 107 |
+
__slots__ = ("value", "timestamp", "attachments")
|
| 108 |
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
| 109 |
+
TIMESTAMP_FIELD_NUMBER: _ClassVar[int]
|
| 110 |
+
ATTACHMENTS_FIELD_NUMBER: _ClassVar[int]
|
| 111 |
+
value: float
|
| 112 |
+
timestamp: _timestamp_pb2.Timestamp
|
| 113 |
+
attachments: _containers.RepeatedCompositeFieldContainer[_any_pb2.Any]
|
| 114 |
+
def __init__(
|
| 115 |
+
self,
|
| 116 |
+
value: _Optional[float] = ...,
|
| 117 |
+
timestamp: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...,
|
| 118 |
+
attachments: _Optional[_Iterable[_Union[_any_pb2.Any, _Mapping]]] = ...,
|
| 119 |
+
) -> None: ...
|
| 120 |
+
|
| 121 |
+
COUNT_FIELD_NUMBER: _ClassVar[int]
|
| 122 |
+
MEAN_FIELD_NUMBER: _ClassVar[int]
|
| 123 |
+
SUM_OF_SQUARED_DEVIATION_FIELD_NUMBER: _ClassVar[int]
|
| 124 |
+
RANGE_FIELD_NUMBER: _ClassVar[int]
|
| 125 |
+
BUCKET_OPTIONS_FIELD_NUMBER: _ClassVar[int]
|
| 126 |
+
BUCKET_COUNTS_FIELD_NUMBER: _ClassVar[int]
|
| 127 |
+
EXEMPLARS_FIELD_NUMBER: _ClassVar[int]
|
| 128 |
+
count: int
|
| 129 |
+
mean: float
|
| 130 |
+
sum_of_squared_deviation: float
|
| 131 |
+
range: Distribution.Range
|
| 132 |
+
bucket_options: Distribution.BucketOptions
|
| 133 |
+
bucket_counts: _containers.RepeatedScalarFieldContainer[int]
|
| 134 |
+
exemplars: _containers.RepeatedCompositeFieldContainer[Distribution.Exemplar]
|
| 135 |
+
def __init__(
|
| 136 |
+
self,
|
| 137 |
+
count: _Optional[int] = ...,
|
| 138 |
+
mean: _Optional[float] = ...,
|
| 139 |
+
sum_of_squared_deviation: _Optional[float] = ...,
|
| 140 |
+
range: _Optional[_Union[Distribution.Range, _Mapping]] = ...,
|
| 141 |
+
bucket_options: _Optional[_Union[Distribution.BucketOptions, _Mapping]] = ...,
|
| 142 |
+
bucket_counts: _Optional[_Iterable[int]] = ...,
|
| 143 |
+
exemplars: _Optional[_Iterable[_Union[Distribution.Exemplar, _Mapping]]] = ...,
|
| 144 |
+
) -> None: ...
|
python/user_packages/Python313/site-packages/google/api/documentation.proto
ADDED
|
@@ -0,0 +1,168 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2026 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 ```(== include {path}
|
| 161 |
+
// ==)``` to include content from a Markdown file. The content can be used
|
| 162 |
+
// 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 |
+
}
|
python/user_packages/Python313/site-packages/google/api/documentation_pb2.py
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# -*- coding: utf-8 -*-
|
| 2 |
+
|
| 3 |
+
# Copyright 2025 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 |
+
# Protobuf Python Version: 4.25.3
|
| 20 |
+
"""Generated protocol buffer code."""
|
| 21 |
+
|
| 22 |
+
from google.protobuf import descriptor as _descriptor
|
| 23 |
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
| 24 |
+
from google.protobuf import symbol_database as _symbol_database
|
| 25 |
+
from google.protobuf.internal import builder as _builder
|
| 26 |
+
|
| 27 |
+
# @@protoc_insertion_point(imports)
|
| 28 |
+
|
| 29 |
+
_sym_db = _symbol_database.Default()
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
| 33 |
+
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'
|
| 34 |
+
)
|
| 35 |
+
|
| 36 |
+
_globals = globals()
|
| 37 |
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
| 38 |
+
_builder.BuildTopDescriptorsAndMessages(
|
| 39 |
+
DESCRIPTOR, "google.api.documentation_pb2", _globals
|
| 40 |
+
)
|
| 41 |
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
| 42 |
+
_globals["DESCRIPTOR"]._options = None
|
| 43 |
+
_globals[
|
| 44 |
+
"DESCRIPTOR"
|
| 45 |
+
]._serialized_options = b"\n\016com.google.apiB\022DocumentationProtoP\001ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\242\002\004GAPI"
|
| 46 |
+
_globals["_DOCUMENTATION"]._serialized_start = 47
|
| 47 |
+
_globals["_DOCUMENTATION"]._serialized_end = 234
|
| 48 |
+
_globals["_DOCUMENTATIONRULE"]._serialized_start = 236
|
| 49 |
+
_globals["_DOCUMENTATIONRULE"]._serialized_end = 327
|
| 50 |
+
_globals["_PAGE"]._serialized_start = 329
|
| 51 |
+
_globals["_PAGE"]._serialized_end = 402
|
| 52 |
+
# @@protoc_insertion_point(module_scope)
|
python/user_packages/Python313/site-packages/google/api/documentation_pb2.pyi
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2025 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 |
+
from typing import ClassVar as _ClassVar
|
| 16 |
+
from typing import Iterable as _Iterable
|
| 17 |
+
from typing import Mapping as _Mapping
|
| 18 |
+
from typing import Optional as _Optional
|
| 19 |
+
from typing import Union as _Union
|
| 20 |
+
|
| 21 |
+
from google.protobuf import descriptor as _descriptor
|
| 22 |
+
from google.protobuf import message as _message
|
| 23 |
+
from google.protobuf.internal import containers as _containers
|
| 24 |
+
|
| 25 |
+
DESCRIPTOR: _descriptor.FileDescriptor
|
| 26 |
+
|
| 27 |
+
class Documentation(_message.Message):
|
| 28 |
+
__slots__ = (
|
| 29 |
+
"summary",
|
| 30 |
+
"pages",
|
| 31 |
+
"rules",
|
| 32 |
+
"documentation_root_url",
|
| 33 |
+
"service_root_url",
|
| 34 |
+
"overview",
|
| 35 |
+
)
|
| 36 |
+
SUMMARY_FIELD_NUMBER: _ClassVar[int]
|
| 37 |
+
PAGES_FIELD_NUMBER: _ClassVar[int]
|
| 38 |
+
RULES_FIELD_NUMBER: _ClassVar[int]
|
| 39 |
+
DOCUMENTATION_ROOT_URL_FIELD_NUMBER: _ClassVar[int]
|
| 40 |
+
SERVICE_ROOT_URL_FIELD_NUMBER: _ClassVar[int]
|
| 41 |
+
OVERVIEW_FIELD_NUMBER: _ClassVar[int]
|
| 42 |
+
summary: str
|
| 43 |
+
pages: _containers.RepeatedCompositeFieldContainer[Page]
|
| 44 |
+
rules: _containers.RepeatedCompositeFieldContainer[DocumentationRule]
|
| 45 |
+
documentation_root_url: str
|
| 46 |
+
service_root_url: str
|
| 47 |
+
overview: str
|
| 48 |
+
def __init__(
|
| 49 |
+
self,
|
| 50 |
+
summary: _Optional[str] = ...,
|
| 51 |
+
pages: _Optional[_Iterable[_Union[Page, _Mapping]]] = ...,
|
| 52 |
+
rules: _Optional[_Iterable[_Union[DocumentationRule, _Mapping]]] = ...,
|
| 53 |
+
documentation_root_url: _Optional[str] = ...,
|
| 54 |
+
service_root_url: _Optional[str] = ...,
|
| 55 |
+
overview: _Optional[str] = ...,
|
| 56 |
+
) -> None: ...
|
| 57 |
+
|
| 58 |
+
class DocumentationRule(_message.Message):
|
| 59 |
+
__slots__ = ("selector", "description", "deprecation_description")
|
| 60 |
+
SELECTOR_FIELD_NUMBER: _ClassVar[int]
|
| 61 |
+
DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
| 62 |
+
DEPRECATION_DESCRIPTION_FIELD_NUMBER: _ClassVar[int]
|
| 63 |
+
selector: str
|
| 64 |
+
description: str
|
| 65 |
+
deprecation_description: str
|
| 66 |
+
def __init__(
|
| 67 |
+
self,
|
| 68 |
+
selector: _Optional[str] = ...,
|
| 69 |
+
description: _Optional[str] = ...,
|
| 70 |
+
deprecation_description: _Optional[str] = ...,
|
| 71 |
+
) -> None: ...
|
| 72 |
+
|
| 73 |
+
class Page(_message.Message):
|
| 74 |
+
__slots__ = ("name", "content", "subpages")
|
| 75 |
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
| 76 |
+
CONTENT_FIELD_NUMBER: _ClassVar[int]
|
| 77 |
+
SUBPAGES_FIELD_NUMBER: _ClassVar[int]
|
| 78 |
+
name: str
|
| 79 |
+
content: str
|
| 80 |
+
subpages: _containers.RepeatedCompositeFieldContainer[Page]
|
| 81 |
+
def __init__(
|
| 82 |
+
self,
|
| 83 |
+
name: _Optional[str] = ...,
|
| 84 |
+
content: _Optional[str] = ...,
|
| 85 |
+
subpages: _Optional[_Iterable[_Union[Page, _Mapping]]] = ...,
|
| 86 |
+
) -> None: ...
|
python/user_packages/Python313/site-packages/google/api/endpoint.proto
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2026 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 |
+
}
|
python/user_packages/Python313/site-packages/google/api/endpoint_pb2.py
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# -*- coding: utf-8 -*-
|
| 2 |
+
|
| 3 |
+
# Copyright 2025 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 |
+
# Protobuf Python Version: 4.25.3
|
| 20 |
+
"""Generated protocol buffer code."""
|
| 21 |
+
|
| 22 |
+
from google.protobuf import descriptor as _descriptor
|
| 23 |
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
| 24 |
+
from google.protobuf import symbol_database as _symbol_database
|
| 25 |
+
from google.protobuf.internal import builder as _builder
|
| 26 |
+
|
| 27 |
+
# @@protoc_insertion_point(imports)
|
| 28 |
+
|
| 29 |
+
_sym_db = _symbol_database.Default()
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
| 33 |
+
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'
|
| 34 |
+
)
|
| 35 |
+
|
| 36 |
+
_globals = globals()
|
| 37 |
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
| 38 |
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "google.api.endpoint_pb2", _globals)
|
| 39 |
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
| 40 |
+
_globals["DESCRIPTOR"]._options = None
|
| 41 |
+
_globals[
|
| 42 |
+
"DESCRIPTOR"
|
| 43 |
+
]._serialized_options = b"\n\016com.google.apiB\rEndpointProtoP\001ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\242\002\004GAPI"
|
| 44 |
+
_globals["_ENDPOINT"]._serialized_start = 41
|
| 45 |
+
_globals["_ENDPOINT"]._serialized_end = 118
|
| 46 |
+
# @@protoc_insertion_point(module_scope)
|
python/user_packages/Python313/site-packages/google/api/endpoint_pb2.pyi
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2025 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 |
+
from typing import ClassVar as _ClassVar
|
| 16 |
+
from typing import Iterable as _Iterable
|
| 17 |
+
from typing import Optional as _Optional
|
| 18 |
+
|
| 19 |
+
from google.protobuf import descriptor as _descriptor
|
| 20 |
+
from google.protobuf import message as _message
|
| 21 |
+
from google.protobuf.internal import containers as _containers
|
| 22 |
+
|
| 23 |
+
DESCRIPTOR: _descriptor.FileDescriptor
|
| 24 |
+
|
| 25 |
+
class Endpoint(_message.Message):
|
| 26 |
+
__slots__ = ("name", "aliases", "target", "allow_cors")
|
| 27 |
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
| 28 |
+
ALIASES_FIELD_NUMBER: _ClassVar[int]
|
| 29 |
+
TARGET_FIELD_NUMBER: _ClassVar[int]
|
| 30 |
+
ALLOW_CORS_FIELD_NUMBER: _ClassVar[int]
|
| 31 |
+
name: str
|
| 32 |
+
aliases: _containers.RepeatedScalarFieldContainer[str]
|
| 33 |
+
target: str
|
| 34 |
+
allow_cors: bool
|
| 35 |
+
def __init__(
|
| 36 |
+
self,
|
| 37 |
+
name: _Optional[str] = ...,
|
| 38 |
+
aliases: _Optional[_Iterable[str]] = ...,
|
| 39 |
+
target: _Optional[str] = ...,
|
| 40 |
+
allow_cors: bool = ...,
|
| 41 |
+
) -> None: ...
|
python/user_packages/Python313/site-packages/google/api/error_reason.proto
ADDED
|
@@ -0,0 +1,807 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2026 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 |
+
|
| 623 |
+
// The request whose associated location violates the location org policy
|
| 624 |
+
// restrictions when creating resources in the restricted region.
|
| 625 |
+
//
|
| 626 |
+
// Example of an ErrorInfo when creating the Cloud Storage Bucket in the
|
| 627 |
+
// container "projects/123" under a restricted region
|
| 628 |
+
// "locations/asia-northeast3":
|
| 629 |
+
//
|
| 630 |
+
// {
|
| 631 |
+
// "reason": "LOCATION_ORG_POLICY_VIOLATED",
|
| 632 |
+
// "domain": "googleapis.com",
|
| 633 |
+
// "metadata": {
|
| 634 |
+
// "resource": "projects/123",
|
| 635 |
+
// "location": "locations/asia-northeast3"
|
| 636 |
+
// }
|
| 637 |
+
// }
|
| 638 |
+
//
|
| 639 |
+
// This response indicates creating the Cloud Storage Bucket in
|
| 640 |
+
// "locations/asia-northeast3" violates the location org policy restriction.
|
| 641 |
+
LOCATION_ORG_POLICY_VIOLATED = 35;
|
| 642 |
+
|
| 643 |
+
// The request is denied because it access data of regulated customers using
|
| 644 |
+
// TLS 1.0 and 1.1.
|
| 645 |
+
//
|
| 646 |
+
// Example of an ErrorInfo when accessing a GCP resource "projects/123" that
|
| 647 |
+
// is restricted by TLS Version Restriction for "pubsub.googleapis.com"
|
| 648 |
+
// service.
|
| 649 |
+
//
|
| 650 |
+
// {
|
| 651 |
+
// "reason": "TLS_ORG_POLICY_VIOLATED",
|
| 652 |
+
// "domain": "googleapis.com",
|
| 653 |
+
// "metadata": {
|
| 654 |
+
// "service": "pubsub.googleapis.com"
|
| 655 |
+
// "resource": "projects/123",
|
| 656 |
+
// "policyName": "constraints/gcp.restrictTLSVersion",
|
| 657 |
+
// "tlsVersion": "TLS_VERSION_1"
|
| 658 |
+
// }
|
| 659 |
+
// }
|
| 660 |
+
TLS_ORG_POLICY_VIOLATED = 36;
|
| 661 |
+
|
| 662 |
+
// The request is denied because the associated project has exceeded the
|
| 663 |
+
// emulator quota limit.
|
| 664 |
+
//
|
| 665 |
+
// Example of an ErrorInfo when the associated "projects/123" has exceeded the
|
| 666 |
+
// emulator quota limit.
|
| 667 |
+
//
|
| 668 |
+
// {
|
| 669 |
+
// "reason": "EMULATOR_QUOTA_EXCEEDED",
|
| 670 |
+
// "domain": "googleapis.com",
|
| 671 |
+
// "metadata": {
|
| 672 |
+
// "service": "pubsub.googleapis.com"
|
| 673 |
+
// "consumer": "projects/123"
|
| 674 |
+
// }
|
| 675 |
+
// }
|
| 676 |
+
EMULATOR_QUOTA_EXCEEDED = 38;
|
| 677 |
+
|
| 678 |
+
// The request is denied because the associated application credential header
|
| 679 |
+
// is invalid for an Android applications.
|
| 680 |
+
//
|
| 681 |
+
// Example of an ErrorInfo when the request from an Android application to the
|
| 682 |
+
// "pubsub.googleapis.com" with an invalid application credential header.
|
| 683 |
+
//
|
| 684 |
+
// {
|
| 685 |
+
// "reason": "CREDENTIAL_ANDROID_APP_INVALID",
|
| 686 |
+
// "domain": "googleapis.com",
|
| 687 |
+
// "metadata": {
|
| 688 |
+
// "service": "pubsub.googleapis.com"
|
| 689 |
+
// }
|
| 690 |
+
// }
|
| 691 |
+
CREDENTIAL_ANDROID_APP_INVALID = 39;
|
| 692 |
+
|
| 693 |
+
// The request is denied because IAM permission on resource is denied.
|
| 694 |
+
//
|
| 695 |
+
// Example of an ErrorInfo when the IAM permission `aiplatform.datasets.list`
|
| 696 |
+
// is denied on resource `projects/123`.
|
| 697 |
+
//
|
| 698 |
+
// {
|
| 699 |
+
// "reason": "IAM_PERMISSION_DENIED",
|
| 700 |
+
// "domain": "googleapis.com",
|
| 701 |
+
// "metadata": {
|
| 702 |
+
// "resource": "projects/123"
|
| 703 |
+
// "permission": "aiplatform.datasets.list"
|
| 704 |
+
// }
|
| 705 |
+
// }
|
| 706 |
+
IAM_PERMISSION_DENIED = 41;
|
| 707 |
+
|
| 708 |
+
// The request is denied because it contains the invalid JWT token.
|
| 709 |
+
//
|
| 710 |
+
// Example of an ErrorInfo when the request contains an invalid JWT token for
|
| 711 |
+
// service `storage.googleapis.com`.
|
| 712 |
+
//
|
| 713 |
+
// {
|
| 714 |
+
// "reason": "JWT_TOKEN_INVALID",
|
| 715 |
+
// "domain": "googleapis.com",
|
| 716 |
+
// "metadata": {
|
| 717 |
+
// "service": "storage.googleapis.com"
|
| 718 |
+
// }
|
| 719 |
+
// }
|
| 720 |
+
JWT_TOKEN_INVALID = 42;
|
| 721 |
+
|
| 722 |
+
// The request is denied because it contains credential with type that is
|
| 723 |
+
// unsupported.
|
| 724 |
+
//
|
| 725 |
+
// Example of an ErrorInfo when the request contains an unsupported credential
|
| 726 |
+
// type for service `storage.googleapis.com`.
|
| 727 |
+
//
|
| 728 |
+
// {
|
| 729 |
+
// "reason": "CREDENTIAL_TYPE_UNSUPPORTED",
|
| 730 |
+
// "domain": "googleapis.com",
|
| 731 |
+
// "metadata": {
|
| 732 |
+
// "service": "storage.googleapis.com"
|
| 733 |
+
// }
|
| 734 |
+
// }
|
| 735 |
+
CREDENTIAL_TYPE_UNSUPPORTED = 43;
|
| 736 |
+
|
| 737 |
+
// The request is denied because it contains unsupported account type.
|
| 738 |
+
//
|
| 739 |
+
// Example of an ErrorInfo when the request contains an unsupported account
|
| 740 |
+
// type for service `storage.googleapis.com`.
|
| 741 |
+
//
|
| 742 |
+
// {
|
| 743 |
+
// "reason": "ACCOUNT_TYPE_UNSUPPORTED",
|
| 744 |
+
// "domain": "googleapis.com",
|
| 745 |
+
// "metadata": {
|
| 746 |
+
// "service": "storage.googleapis.com"
|
| 747 |
+
// }
|
| 748 |
+
// }
|
| 749 |
+
ACCOUNT_TYPE_UNSUPPORTED = 44;
|
| 750 |
+
|
| 751 |
+
// The request is denied because the API endpoint is restricted by
|
| 752 |
+
// administrators according to the organization policy constraint.
|
| 753 |
+
// For more information see
|
| 754 |
+
// https://cloud.google.com/assured-workloads/docs/restrict-endpoint-usage.
|
| 755 |
+
//
|
| 756 |
+
// Example of an ErrorInfo when access to Google Cloud Storage service is
|
| 757 |
+
// restricted by Restrict Endpoint Usage policy:
|
| 758 |
+
//
|
| 759 |
+
// {
|
| 760 |
+
// "reason": "ENDPOINT_USAGE_RESTRICTION_VIOLATED",
|
| 761 |
+
// "domain": "googleapis.com/policies/endpointUsageRestriction",
|
| 762 |
+
// "metadata": {
|
| 763 |
+
// "policy_name": "constraints/gcp.restrictEndpointUsage",
|
| 764 |
+
// "checked_value": "storage.googleapis.com"
|
| 765 |
+
// "consumer": "organization/123"
|
| 766 |
+
// "service": "storage.googleapis.com"
|
| 767 |
+
// }
|
| 768 |
+
// }
|
| 769 |
+
ENDPOINT_USAGE_RESTRICTION_VIOLATED = 45;
|
| 770 |
+
|
| 771 |
+
// The request is denied because the TLS Cipher Suite is restricted by
|
| 772 |
+
// administrators according to the organization policy constraint.
|
| 773 |
+
// For more information see
|
| 774 |
+
// https://cloud.google.com/assured-workloads/docs/restrict-tls-cipher-suites
|
| 775 |
+
//
|
| 776 |
+
// Example of an ErrorInfo when access to Google Cloud BigQuery service is
|
| 777 |
+
// restricted by Restrict TLS Cipher Suites policy:
|
| 778 |
+
//
|
| 779 |
+
// {
|
| 780 |
+
// "reason": "TLS_CIPHER_RESTRICTION_VIOLATED",
|
| 781 |
+
// "domain": "googleapis.com/policies/tlsCipherRestriction",
|
| 782 |
+
// "metadata": {
|
| 783 |
+
// "policy_name": "constraints/gcp.restrictTLSCipherSuites",
|
| 784 |
+
// "checked_value": "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
|
| 785 |
+
// "consumer": "organization/123"
|
| 786 |
+
// "service": "bigquery.googleapis.com"
|
| 787 |
+
// }
|
| 788 |
+
// }
|
| 789 |
+
TLS_CIPHER_RESTRICTION_VIOLATED = 46;
|
| 790 |
+
|
| 791 |
+
// The request is denied because the MCP activation check fails.
|
| 792 |
+
//
|
| 793 |
+
// Example of an ErrorInfo when the container "projects/123" contacting
|
| 794 |
+
// "pubsub.googleapis.com" service which is disabled by MCP:
|
| 795 |
+
//
|
| 796 |
+
// { "reason": "MCP_SERVER_DISABLED",
|
| 797 |
+
// "domain": "googleapis.com",
|
| 798 |
+
// "metadata": {
|
| 799 |
+
// "consumer": "projects/123",
|
| 800 |
+
// "service": "pubsub.googleapis.com"
|
| 801 |
+
// }
|
| 802 |
+
// }
|
| 803 |
+
//
|
| 804 |
+
// This response indicates the "pubsub.googleapis.com" has been disabled in
|
| 805 |
+
// "projects/123" for MCP.
|
| 806 |
+
MCP_SERVER_DISABLED = 47;
|
| 807 |
+
}
|
python/user_packages/Python313/site-packages/google/api/error_reason_pb2.py
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# -*- coding: utf-8 -*-
|
| 2 |
+
|
| 3 |
+
# Copyright 2025 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 |
+
# Protobuf Python Version: 4.25.3
|
| 20 |
+
"""Generated protocol buffer code."""
|
| 21 |
+
|
| 22 |
+
from google.protobuf import descriptor as _descriptor
|
| 23 |
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
| 24 |
+
from google.protobuf import symbol_database as _symbol_database
|
| 25 |
+
from google.protobuf.internal import builder as _builder
|
| 26 |
+
|
| 27 |
+
# @@protoc_insertion_point(imports)
|
| 28 |
+
|
| 29 |
+
_sym_db = _symbol_database.Default()
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
| 33 |
+
b"\n\x1dgoogle/api/error_reason.proto\x12\ngoogle.api*\x92\n\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\"\x12 \n\x1cLOCATION_ORG_POLICY_VIOLATED\x10#\x12\x1b\n\x17TLS_ORG_POLICY_VIOLATED\x10$\x12\x1b\n\x17\x45MULATOR_QUOTA_EXCEEDED\x10&\x12\"\n\x1e\x43REDENTIAL_ANDROID_APP_INVALID\x10'\x12\x19\n\x15IAM_PERMISSION_DENIED\x10)\x12\x15\n\x11JWT_TOKEN_INVALID\x10*\x12\x1f\n\x1b\x43REDENTIAL_TYPE_UNSUPPORTED\x10+\x12\x1c\n\x18\x41\x43\x43OUNT_TYPE_UNSUPPORTED\x10,\x12'\n#ENDPOINT_USAGE_RESTRICTION_VIOLATED\x10-\x12#\n\x1fTLS_CIPHER_RESTRICTION_VIOLATED\x10.\x12\x17\n\x13MCP_SERVER_DISABLED\x10/Bp\n\x0e\x63om.google.apiB\x10\x45rrorReasonProtoP\x01ZCgoogle.golang.org/genproto/googleapis/api/error_reason;error_reason\xa2\x02\x04GAPIb\x06proto3"
|
| 34 |
+
)
|
| 35 |
+
|
| 36 |
+
_globals = globals()
|
| 37 |
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
| 38 |
+
_builder.BuildTopDescriptorsAndMessages(
|
| 39 |
+
DESCRIPTOR, "google.api.error_reason_pb2", _globals
|
| 40 |
+
)
|
| 41 |
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
| 42 |
+
_globals["DESCRIPTOR"]._options = None
|
| 43 |
+
_globals[
|
| 44 |
+
"DESCRIPTOR"
|
| 45 |
+
]._serialized_options = b"\n\016com.google.apiB\020ErrorReasonProtoP\001ZCgoogle.golang.org/genproto/googleapis/api/error_reason;error_reason\242\002\004GAPI"
|
| 46 |
+
_globals["_ERRORREASON"]._serialized_start = 46
|
| 47 |
+
_globals["_ERRORREASON"]._serialized_end = 1344
|
| 48 |
+
# @@protoc_insertion_point(module_scope)
|
python/user_packages/Python313/site-packages/google/api/error_reason_pb2.pyi
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2025 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 |
+
from typing import ClassVar as _ClassVar
|
| 16 |
+
|
| 17 |
+
from google.protobuf import descriptor as _descriptor
|
| 18 |
+
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
| 19 |
+
|
| 20 |
+
DESCRIPTOR: _descriptor.FileDescriptor
|
| 21 |
+
|
| 22 |
+
class ErrorReason(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
| 23 |
+
__slots__ = ()
|
| 24 |
+
ERROR_REASON_UNSPECIFIED: _ClassVar[ErrorReason]
|
| 25 |
+
SERVICE_DISABLED: _ClassVar[ErrorReason]
|
| 26 |
+
BILLING_DISABLED: _ClassVar[ErrorReason]
|
| 27 |
+
API_KEY_INVALID: _ClassVar[ErrorReason]
|
| 28 |
+
API_KEY_SERVICE_BLOCKED: _ClassVar[ErrorReason]
|
| 29 |
+
API_KEY_HTTP_REFERRER_BLOCKED: _ClassVar[ErrorReason]
|
| 30 |
+
API_KEY_IP_ADDRESS_BLOCKED: _ClassVar[ErrorReason]
|
| 31 |
+
API_KEY_ANDROID_APP_BLOCKED: _ClassVar[ErrorReason]
|
| 32 |
+
API_KEY_IOS_APP_BLOCKED: _ClassVar[ErrorReason]
|
| 33 |
+
RATE_LIMIT_EXCEEDED: _ClassVar[ErrorReason]
|
| 34 |
+
RESOURCE_QUOTA_EXCEEDED: _ClassVar[ErrorReason]
|
| 35 |
+
LOCATION_TAX_POLICY_VIOLATED: _ClassVar[ErrorReason]
|
| 36 |
+
USER_PROJECT_DENIED: _ClassVar[ErrorReason]
|
| 37 |
+
CONSUMER_SUSPENDED: _ClassVar[ErrorReason]
|
| 38 |
+
CONSUMER_INVALID: _ClassVar[ErrorReason]
|
| 39 |
+
SECURITY_POLICY_VIOLATED: _ClassVar[ErrorReason]
|
| 40 |
+
ACCESS_TOKEN_EXPIRED: _ClassVar[ErrorReason]
|
| 41 |
+
ACCESS_TOKEN_SCOPE_INSUFFICIENT: _ClassVar[ErrorReason]
|
| 42 |
+
ACCOUNT_STATE_INVALID: _ClassVar[ErrorReason]
|
| 43 |
+
ACCESS_TOKEN_TYPE_UNSUPPORTED: _ClassVar[ErrorReason]
|
| 44 |
+
CREDENTIALS_MISSING: _ClassVar[ErrorReason]
|
| 45 |
+
RESOURCE_PROJECT_INVALID: _ClassVar[ErrorReason]
|
| 46 |
+
SESSION_COOKIE_INVALID: _ClassVar[ErrorReason]
|
| 47 |
+
USER_BLOCKED_BY_ADMIN: _ClassVar[ErrorReason]
|
| 48 |
+
RESOURCE_USAGE_RESTRICTION_VIOLATED: _ClassVar[ErrorReason]
|
| 49 |
+
SYSTEM_PARAMETER_UNSUPPORTED: _ClassVar[ErrorReason]
|
| 50 |
+
ORG_RESTRICTION_VIOLATION: _ClassVar[ErrorReason]
|
| 51 |
+
ORG_RESTRICTION_HEADER_INVALID: _ClassVar[ErrorReason]
|
| 52 |
+
SERVICE_NOT_VISIBLE: _ClassVar[ErrorReason]
|
| 53 |
+
GCP_SUSPENDED: _ClassVar[ErrorReason]
|
| 54 |
+
LOCATION_POLICY_VIOLATED: _ClassVar[ErrorReason]
|
| 55 |
+
MISSING_ORIGIN: _ClassVar[ErrorReason]
|
| 56 |
+
OVERLOADED_CREDENTIALS: _ClassVar[ErrorReason]
|
| 57 |
+
LOCATION_ORG_POLICY_VIOLATED: _ClassVar[ErrorReason]
|
| 58 |
+
TLS_ORG_POLICY_VIOLATED: _ClassVar[ErrorReason]
|
| 59 |
+
EMULATOR_QUOTA_EXCEEDED: _ClassVar[ErrorReason]
|
| 60 |
+
CREDENTIAL_ANDROID_APP_INVALID: _ClassVar[ErrorReason]
|
| 61 |
+
IAM_PERMISSION_DENIED: _ClassVar[ErrorReason]
|
| 62 |
+
JWT_TOKEN_INVALID: _ClassVar[ErrorReason]
|
| 63 |
+
CREDENTIAL_TYPE_UNSUPPORTED: _ClassVar[ErrorReason]
|
| 64 |
+
ACCOUNT_TYPE_UNSUPPORTED: _ClassVar[ErrorReason]
|
| 65 |
+
ENDPOINT_USAGE_RESTRICTION_VIOLATED: _ClassVar[ErrorReason]
|
| 66 |
+
TLS_CIPHER_RESTRICTION_VIOLATED: _ClassVar[ErrorReason]
|
| 67 |
+
MCP_SERVER_DISABLED: _ClassVar[ErrorReason]
|
| 68 |
+
|
| 69 |
+
ERROR_REASON_UNSPECIFIED: ErrorReason
|
| 70 |
+
SERVICE_DISABLED: ErrorReason
|
| 71 |
+
BILLING_DISABLED: ErrorReason
|
| 72 |
+
API_KEY_INVALID: ErrorReason
|
| 73 |
+
API_KEY_SERVICE_BLOCKED: ErrorReason
|
| 74 |
+
API_KEY_HTTP_REFERRER_BLOCKED: ErrorReason
|
| 75 |
+
API_KEY_IP_ADDRESS_BLOCKED: ErrorReason
|
| 76 |
+
API_KEY_ANDROID_APP_BLOCKED: ErrorReason
|
| 77 |
+
API_KEY_IOS_APP_BLOCKED: ErrorReason
|
| 78 |
+
RATE_LIMIT_EXCEEDED: ErrorReason
|
| 79 |
+
RESOURCE_QUOTA_EXCEEDED: ErrorReason
|
| 80 |
+
LOCATION_TAX_POLICY_VIOLATED: ErrorReason
|
| 81 |
+
USER_PROJECT_DENIED: ErrorReason
|
| 82 |
+
CONSUMER_SUSPENDED: ErrorReason
|
| 83 |
+
CONSUMER_INVALID: ErrorReason
|
| 84 |
+
SECURITY_POLICY_VIOLATED: ErrorReason
|
| 85 |
+
ACCESS_TOKEN_EXPIRED: ErrorReason
|
| 86 |
+
ACCESS_TOKEN_SCOPE_INSUFFICIENT: ErrorReason
|
| 87 |
+
ACCOUNT_STATE_INVALID: ErrorReason
|
| 88 |
+
ACCESS_TOKEN_TYPE_UNSUPPORTED: ErrorReason
|
| 89 |
+
CREDENTIALS_MISSING: ErrorReason
|
| 90 |
+
RESOURCE_PROJECT_INVALID: ErrorReason
|
| 91 |
+
SESSION_COOKIE_INVALID: ErrorReason
|
| 92 |
+
USER_BLOCKED_BY_ADMIN: ErrorReason
|
| 93 |
+
RESOURCE_USAGE_RESTRICTION_VIOLATED: ErrorReason
|
| 94 |
+
SYSTEM_PARAMETER_UNSUPPORTED: ErrorReason
|
| 95 |
+
ORG_RESTRICTION_VIOLATION: ErrorReason
|
| 96 |
+
ORG_RESTRICTION_HEADER_INVALID: ErrorReason
|
| 97 |
+
SERVICE_NOT_VISIBLE: ErrorReason
|
| 98 |
+
GCP_SUSPENDED: ErrorReason
|
| 99 |
+
LOCATION_POLICY_VIOLATED: ErrorReason
|
| 100 |
+
MISSING_ORIGIN: ErrorReason
|
| 101 |
+
OVERLOADED_CREDENTIALS: ErrorReason
|
| 102 |
+
LOCATION_ORG_POLICY_VIOLATED: ErrorReason
|
| 103 |
+
TLS_ORG_POLICY_VIOLATED: ErrorReason
|
| 104 |
+
EMULATOR_QUOTA_EXCEEDED: ErrorReason
|
| 105 |
+
CREDENTIAL_ANDROID_APP_INVALID: ErrorReason
|
| 106 |
+
IAM_PERMISSION_DENIED: ErrorReason
|
| 107 |
+
JWT_TOKEN_INVALID: ErrorReason
|
| 108 |
+
CREDENTIAL_TYPE_UNSUPPORTED: ErrorReason
|
| 109 |
+
ACCOUNT_TYPE_UNSUPPORTED: ErrorReason
|
| 110 |
+
ENDPOINT_USAGE_RESTRICTION_VIOLATED: ErrorReason
|
| 111 |
+
TLS_CIPHER_RESTRICTION_VIOLATED: ErrorReason
|
| 112 |
+
MCP_SERVER_DISABLED: ErrorReason
|
python/user_packages/Python313/site-packages/google/api/field_behavior.proto
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2026 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 = "FieldBehaviorProto";
|
| 24 |
+
option java_package = "com.google.api";
|
| 25 |
+
option objc_class_prefix = "GAPI";
|
| 26 |
+
|
| 27 |
+
extend google.protobuf.FieldOptions {
|
| 28 |
+
// A designation of a specific field behavior (required, output only, etc.)
|
| 29 |
+
// in protobuf messages.
|
| 30 |
+
//
|
| 31 |
+
// Examples:
|
| 32 |
+
//
|
| 33 |
+
// string name = 1 [(google.api.field_behavior) = REQUIRED];
|
| 34 |
+
// State state = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
|
| 35 |
+
// google.protobuf.Duration ttl = 1
|
| 36 |
+
// [(google.api.field_behavior) = INPUT_ONLY];
|
| 37 |
+
// google.protobuf.Timestamp expire_time = 1
|
| 38 |
+
// [(google.api.field_behavior) = OUTPUT_ONLY,
|
| 39 |
+
// (google.api.field_behavior) = IMMUTABLE];
|
| 40 |
+
repeated google.api.FieldBehavior field_behavior = 1052 [packed = false];
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
// An indicator of the behavior of a given field (for example, that a field
|
| 44 |
+
// is required in requests, or given as output but ignored as input).
|
| 45 |
+
// This **does not** change the behavior in protocol buffers itself; it only
|
| 46 |
+
// denotes the behavior and may affect how API tooling handles the field.
|
| 47 |
+
//
|
| 48 |
+
// Note: This enum **may** receive new values in the future.
|
| 49 |
+
enum FieldBehavior {
|
| 50 |
+
// Conventional default for enums. Do not use this.
|
| 51 |
+
FIELD_BEHAVIOR_UNSPECIFIED = 0;
|
| 52 |
+
|
| 53 |
+
// Specifically denotes a field as optional.
|
| 54 |
+
// While all fields in protocol buffers are optional, this may be specified
|
| 55 |
+
// for emphasis if appropriate.
|
| 56 |
+
OPTIONAL = 1;
|
| 57 |
+
|
| 58 |
+
// Denotes a field as required.
|
| 59 |
+
// This indicates that the field **must** be provided as part of the request,
|
| 60 |
+
// and failure to do so will cause an error (usually `INVALID_ARGUMENT`).
|
| 61 |
+
REQUIRED = 2;
|
| 62 |
+
|
| 63 |
+
// Denotes a field as output only.
|
| 64 |
+
// This indicates that the field is provided in responses, but including the
|
| 65 |
+
// field in a request does nothing (the server *must* ignore it and
|
| 66 |
+
// *must not* throw an error as a result of the field's presence).
|
| 67 |
+
OUTPUT_ONLY = 3;
|
| 68 |
+
|
| 69 |
+
// Denotes a field as input only.
|
| 70 |
+
// This indicates that the field is provided in requests, and the
|
| 71 |
+
// corresponding field is not included in output.
|
| 72 |
+
INPUT_ONLY = 4;
|
| 73 |
+
|
| 74 |
+
// Denotes a field as immutable.
|
| 75 |
+
// This indicates that the field may be set once in a request to create a
|
| 76 |
+
// resource, but may not be changed thereafter.
|
| 77 |
+
IMMUTABLE = 5;
|
| 78 |
+
|
| 79 |
+
// Denotes that a (repeated) field is an unordered list.
|
| 80 |
+
// This indicates that the service may provide the elements of the list
|
| 81 |
+
// in any arbitrary order, rather than the order the user originally
|
| 82 |
+
// provided. Additionally, the list's order may or may not be stable.
|
| 83 |
+
UNORDERED_LIST = 6;
|
| 84 |
+
|
| 85 |
+
// Denotes that this field returns a non-empty default value if not set.
|
| 86 |
+
// This indicates that if the user provides the empty value in a request,
|
| 87 |
+
// a non-empty value will be returned. The user will not be aware of what
|
| 88 |
+
// non-empty value to expect.
|
| 89 |
+
NON_EMPTY_DEFAULT = 7;
|
| 90 |
+
|
| 91 |
+
// Denotes that the field in a resource (a message annotated with
|
| 92 |
+
// google.api.resource) is used in the resource name to uniquely identify the
|
| 93 |
+
// resource. For AIP-compliant APIs, this should only be applied to the
|
| 94 |
+
// `name` field on the resource.
|
| 95 |
+
//
|
| 96 |
+
// This behavior should not be applied to references to other resources within
|
| 97 |
+
// the message.
|
| 98 |
+
//
|
| 99 |
+
// The identifier field of resources often have different field behavior
|
| 100 |
+
// depending on the request it is embedded in (e.g. for Create methods name
|
| 101 |
+
// is optional and unused, while for Update methods it is required). Instead
|
| 102 |
+
// of method-specific annotations, only `IDENTIFIER` is required.
|
| 103 |
+
IDENTIFIER = 8;
|
| 104 |
+
}
|
python/user_packages/Python313/site-packages/google/api/field_behavior_pb2.py
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# -*- coding: utf-8 -*-
|
| 2 |
+
|
| 3 |
+
# Copyright 2025 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 |
+
# Protobuf Python Version: 4.25.3
|
| 20 |
+
"""Generated protocol buffer code."""
|
| 21 |
+
|
| 22 |
+
from google.protobuf import descriptor as _descriptor
|
| 23 |
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
| 24 |
+
from google.protobuf import symbol_database as _symbol_database
|
| 25 |
+
from google.protobuf.internal import builder as _builder
|
| 26 |
+
|
| 27 |
+
# @@protoc_insertion_point(imports)
|
| 28 |
+
|
| 29 |
+
_sym_db = _symbol_database.Default()
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
from google.protobuf import descriptor_pb2 as google_dot_protobuf_dot_descriptor__pb2
|
| 33 |
+
|
| 34 |
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
| 35 |
+
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"
|
| 36 |
+
)
|
| 37 |
+
|
| 38 |
+
_globals = globals()
|
| 39 |
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
| 40 |
+
_builder.BuildTopDescriptorsAndMessages(
|
| 41 |
+
DESCRIPTOR, "google.api.field_behavior_pb2", _globals
|
| 42 |
+
)
|
| 43 |
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
| 44 |
+
_globals["DESCRIPTOR"]._options = None
|
| 45 |
+
_globals[
|
| 46 |
+
"DESCRIPTOR"
|
| 47 |
+
]._serialized_options = b"\n\016com.google.apiB\022FieldBehaviorProtoP\001ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\242\002\004GAPI"
|
| 48 |
+
_globals["field_behavior"]._options = None
|
| 49 |
+
_globals["field_behavior"]._serialized_options = b"\020\000"
|
| 50 |
+
_globals["_FIELDBEHAVIOR"]._serialized_start = 82
|
| 51 |
+
_globals["_FIELDBEHAVIOR"]._serialized_end = 264
|
| 52 |
+
# @@protoc_insertion_point(module_scope)
|
python/user_packages/Python313/site-packages/google/api/field_behavior_pb2.pyi
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2025 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 |
+
from typing import ClassVar as _ClassVar
|
| 16 |
+
|
| 17 |
+
from google.protobuf import descriptor as _descriptor
|
| 18 |
+
from google.protobuf import descriptor_pb2 as _descriptor_pb2
|
| 19 |
+
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
| 20 |
+
|
| 21 |
+
DESCRIPTOR: _descriptor.FileDescriptor
|
| 22 |
+
|
| 23 |
+
class FieldBehavior(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
| 24 |
+
__slots__ = ()
|
| 25 |
+
FIELD_BEHAVIOR_UNSPECIFIED: _ClassVar[FieldBehavior]
|
| 26 |
+
OPTIONAL: _ClassVar[FieldBehavior]
|
| 27 |
+
REQUIRED: _ClassVar[FieldBehavior]
|
| 28 |
+
OUTPUT_ONLY: _ClassVar[FieldBehavior]
|
| 29 |
+
INPUT_ONLY: _ClassVar[FieldBehavior]
|
| 30 |
+
IMMUTABLE: _ClassVar[FieldBehavior]
|
| 31 |
+
UNORDERED_LIST: _ClassVar[FieldBehavior]
|
| 32 |
+
NON_EMPTY_DEFAULT: _ClassVar[FieldBehavior]
|
| 33 |
+
IDENTIFIER: _ClassVar[FieldBehavior]
|
| 34 |
+
|
| 35 |
+
FIELD_BEHAVIOR_UNSPECIFIED: FieldBehavior
|
| 36 |
+
OPTIONAL: FieldBehavior
|
| 37 |
+
REQUIRED: FieldBehavior
|
| 38 |
+
OUTPUT_ONLY: FieldBehavior
|
| 39 |
+
INPUT_ONLY: FieldBehavior
|
| 40 |
+
IMMUTABLE: FieldBehavior
|
| 41 |
+
UNORDERED_LIST: FieldBehavior
|
| 42 |
+
NON_EMPTY_DEFAULT: FieldBehavior
|
| 43 |
+
IDENTIFIER: FieldBehavior
|
| 44 |
+
FIELD_BEHAVIOR_FIELD_NUMBER: _ClassVar[int]
|
| 45 |
+
field_behavior: _descriptor.FieldDescriptor
|
python/user_packages/Python313/site-packages/google/api/field_info.proto
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2026 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 |
+
}
|
python/user_packages/Python313/site-packages/google/api/field_info_pb2.py
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# -*- coding: utf-8 -*-
|
| 2 |
+
|
| 3 |
+
# Copyright 2025 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 |
+
# Protobuf Python Version: 4.25.3
|
| 20 |
+
"""Generated protocol buffer code."""
|
| 21 |
+
|
| 22 |
+
from google.protobuf import descriptor as _descriptor
|
| 23 |
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
| 24 |
+
from google.protobuf import symbol_database as _symbol_database
|
| 25 |
+
from google.protobuf.internal import builder as _builder
|
| 26 |
+
|
| 27 |
+
# @@protoc_insertion_point(imports)
|
| 28 |
+
|
| 29 |
+
_sym_db = _symbol_database.Default()
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
from google.protobuf import descriptor_pb2 as google_dot_protobuf_dot_descriptor__pb2
|
| 33 |
+
|
| 34 |
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
| 35 |
+
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'
|
| 36 |
+
)
|
| 37 |
+
|
| 38 |
+
_globals = globals()
|
| 39 |
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
| 40 |
+
_builder.BuildTopDescriptorsAndMessages(
|
| 41 |
+
DESCRIPTOR, "google.api.field_info_pb2", _globals
|
| 42 |
+
)
|
| 43 |
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
| 44 |
+
_globals["DESCRIPTOR"]._options = None
|
| 45 |
+
_globals[
|
| 46 |
+
"DESCRIPTOR"
|
| 47 |
+
]._serialized_options = b"\n\016com.google.apiB\016FieldInfoProtoP\001ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\242\002\004GAPI"
|
| 48 |
+
_globals["_FIELDINFO"]._serialized_start = 78
|
| 49 |
+
_globals["_FIELDINFO"]._serialized_end = 271
|
| 50 |
+
_globals["_FIELDINFO_FORMAT"]._serialized_start = 190
|
| 51 |
+
_globals["_FIELDINFO_FORMAT"]._serialized_end = 271
|
| 52 |
+
_globals["_TYPEREFERENCE"]._serialized_start = 273
|
| 53 |
+
_globals["_TYPEREFERENCE"]._serialized_end = 307
|
| 54 |
+
# @@protoc_insertion_point(module_scope)
|
python/user_packages/Python313/site-packages/google/api/field_info_pb2.pyi
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2025 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 |
+
from typing import ClassVar as _ClassVar
|
| 16 |
+
from typing import Iterable as _Iterable
|
| 17 |
+
from typing import Mapping as _Mapping
|
| 18 |
+
from typing import Optional as _Optional
|
| 19 |
+
from typing import Union as _Union
|
| 20 |
+
|
| 21 |
+
from google.protobuf import descriptor as _descriptor
|
| 22 |
+
from google.protobuf import descriptor_pb2 as _descriptor_pb2
|
| 23 |
+
from google.protobuf import message as _message
|
| 24 |
+
from google.protobuf.internal import containers as _containers
|
| 25 |
+
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
| 26 |
+
|
| 27 |
+
DESCRIPTOR: _descriptor.FileDescriptor
|
| 28 |
+
FIELD_INFO_FIELD_NUMBER: _ClassVar[int]
|
| 29 |
+
field_info: _descriptor.FieldDescriptor
|
| 30 |
+
|
| 31 |
+
class FieldInfo(_message.Message):
|
| 32 |
+
__slots__ = ("format", "referenced_types")
|
| 33 |
+
class Format(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
| 34 |
+
__slots__ = ()
|
| 35 |
+
FORMAT_UNSPECIFIED: _ClassVar[FieldInfo.Format]
|
| 36 |
+
UUID4: _ClassVar[FieldInfo.Format]
|
| 37 |
+
IPV4: _ClassVar[FieldInfo.Format]
|
| 38 |
+
IPV6: _ClassVar[FieldInfo.Format]
|
| 39 |
+
IPV4_OR_IPV6: _ClassVar[FieldInfo.Format]
|
| 40 |
+
|
| 41 |
+
FORMAT_UNSPECIFIED: FieldInfo.Format
|
| 42 |
+
UUID4: FieldInfo.Format
|
| 43 |
+
IPV4: FieldInfo.Format
|
| 44 |
+
IPV6: FieldInfo.Format
|
| 45 |
+
IPV4_OR_IPV6: FieldInfo.Format
|
| 46 |
+
FORMAT_FIELD_NUMBER: _ClassVar[int]
|
| 47 |
+
REFERENCED_TYPES_FIELD_NUMBER: _ClassVar[int]
|
| 48 |
+
format: FieldInfo.Format
|
| 49 |
+
referenced_types: _containers.RepeatedCompositeFieldContainer[TypeReference]
|
| 50 |
+
def __init__(
|
| 51 |
+
self,
|
| 52 |
+
format: _Optional[_Union[FieldInfo.Format, str]] = ...,
|
| 53 |
+
referenced_types: _Optional[_Iterable[_Union[TypeReference, _Mapping]]] = ...,
|
| 54 |
+
) -> None: ...
|
| 55 |
+
|
| 56 |
+
class TypeReference(_message.Message):
|
| 57 |
+
__slots__ = ("type_name",)
|
| 58 |
+
TYPE_NAME_FIELD_NUMBER: _ClassVar[int]
|
| 59 |
+
type_name: str
|
| 60 |
+
def __init__(self, type_name: _Optional[str] = ...) -> None: ...
|
python/user_packages/Python313/site-packages/google/api/http.proto
ADDED
|
@@ -0,0 +1,370 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2026 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/annotations;annotations";
|
| 20 |
+
option java_multiple_files = true;
|
| 21 |
+
option java_outer_classname = "HttpProto";
|
| 22 |
+
option java_package = "com.google.api";
|
| 23 |
+
option objc_class_prefix = "GAPI";
|
| 24 |
+
|
| 25 |
+
// Defines the HTTP configuration for an API service. It contains a list of
|
| 26 |
+
// [HttpRule][google.api.HttpRule], each specifying the mapping of an RPC method
|
| 27 |
+
// to one or more HTTP REST API methods.
|
| 28 |
+
message Http {
|
| 29 |
+
// A list of HTTP configuration rules that apply to individual API methods.
|
| 30 |
+
//
|
| 31 |
+
// **NOTE:** All service configuration rules follow "last one wins" order.
|
| 32 |
+
repeated HttpRule rules = 1;
|
| 33 |
+
|
| 34 |
+
// When set to true, URL path parameters will be fully URI-decoded except in
|
| 35 |
+
// cases of single segment matches in reserved expansion, where "%2F" will be
|
| 36 |
+
// left encoded.
|
| 37 |
+
//
|
| 38 |
+
// The default behavior is to not decode RFC 6570 reserved characters in multi
|
| 39 |
+
// segment matches.
|
| 40 |
+
bool fully_decode_reserved_expansion = 2;
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
// gRPC Transcoding
|
| 44 |
+
//
|
| 45 |
+
// gRPC Transcoding is a feature for mapping between a gRPC method and one or
|
| 46 |
+
// more HTTP REST endpoints. It allows developers to build a single API service
|
| 47 |
+
// that supports both gRPC APIs and REST APIs. Many systems, including [Google
|
| 48 |
+
// APIs](https://github.com/googleapis/googleapis),
|
| 49 |
+
// [Cloud Endpoints](https://cloud.google.com/endpoints), [gRPC
|
| 50 |
+
// Gateway](https://github.com/grpc-ecosystem/grpc-gateway),
|
| 51 |
+
// and [Envoy](https://github.com/envoyproxy/envoy) proxy support this feature
|
| 52 |
+
// and use it for large scale production services.
|
| 53 |
+
//
|
| 54 |
+
// `HttpRule` defines the schema of the gRPC/REST mapping. The mapping specifies
|
| 55 |
+
// how different portions of the gRPC request message are mapped to the URL
|
| 56 |
+
// path, URL query parameters, and HTTP request body. It also controls how the
|
| 57 |
+
// gRPC response message is mapped to the HTTP response body. `HttpRule` is
|
| 58 |
+
// typically specified as an `google.api.http` annotation on the gRPC method.
|
| 59 |
+
//
|
| 60 |
+
// Each mapping specifies a URL path template and an HTTP method. The path
|
| 61 |
+
// template may refer to one or more fields in the gRPC request message, as long
|
| 62 |
+
// as each field is a non-repeated field with a primitive (non-message) type.
|
| 63 |
+
// The path template controls how fields of the request message are mapped to
|
| 64 |
+
// the URL path.
|
| 65 |
+
//
|
| 66 |
+
// Example:
|
| 67 |
+
//
|
| 68 |
+
// service Messaging {
|
| 69 |
+
// rpc GetMessage(GetMessageRequest) returns (Message) {
|
| 70 |
+
// option (google.api.http) = {
|
| 71 |
+
// get: "/v1/{name=messages/*}"
|
| 72 |
+
// };
|
| 73 |
+
// }
|
| 74 |
+
// }
|
| 75 |
+
// message GetMessageRequest {
|
| 76 |
+
// string name = 1; // Mapped to URL path.
|
| 77 |
+
// }
|
| 78 |
+
// message Message {
|
| 79 |
+
// string text = 1; // The resource content.
|
| 80 |
+
// }
|
| 81 |
+
//
|
| 82 |
+
// This enables an HTTP REST to gRPC mapping as below:
|
| 83 |
+
//
|
| 84 |
+
// - HTTP: `GET /v1/messages/123456`
|
| 85 |
+
// - gRPC: `GetMessage(name: "messages/123456")`
|
| 86 |
+
//
|
| 87 |
+
// Any fields in the request message which are not bound by the path template
|
| 88 |
+
// automatically become HTTP query parameters if there is no HTTP request body.
|
| 89 |
+
// For example:
|
| 90 |
+
//
|
| 91 |
+
// service Messaging {
|
| 92 |
+
// rpc GetMessage(GetMessageRequest) returns (Message) {
|
| 93 |
+
// option (google.api.http) = {
|
| 94 |
+
// get:"/v1/messages/{message_id}"
|
| 95 |
+
// };
|
| 96 |
+
// }
|
| 97 |
+
// }
|
| 98 |
+
// message GetMessageRequest {
|
| 99 |
+
// message SubMessage {
|
| 100 |
+
// string subfield = 1;
|
| 101 |
+
// }
|
| 102 |
+
// string message_id = 1; // Mapped to URL path.
|
| 103 |
+
// int64 revision = 2; // Mapped to URL query parameter `revision`.
|
| 104 |
+
// SubMessage sub = 3; // Mapped to URL query parameter `sub.subfield`.
|
| 105 |
+
// }
|
| 106 |
+
//
|
| 107 |
+
// This enables a HTTP JSON to RPC mapping as below:
|
| 108 |
+
//
|
| 109 |
+
// - HTTP: `GET /v1/messages/123456?revision=2&sub.subfield=foo`
|
| 110 |
+
// - gRPC: `GetMessage(message_id: "123456" revision: 2 sub:
|
| 111 |
+
// SubMessage(subfield: "foo"))`
|
| 112 |
+
//
|
| 113 |
+
// Note that fields which are mapped to URL query parameters must have a
|
| 114 |
+
// primitive type or a repeated primitive type or a non-repeated message type.
|
| 115 |
+
// In the case of a repeated type, the parameter can be repeated in the URL
|
| 116 |
+
// as `...?param=A¶m=B`. In the case of a message type, each field of the
|
| 117 |
+
// message is mapped to a separate parameter, such as
|
| 118 |
+
// `...?foo.a=A&foo.b=B&foo.c=C`.
|
| 119 |
+
//
|
| 120 |
+
// For HTTP methods that allow a request body, the `body` field
|
| 121 |
+
// specifies the mapping. Consider a REST update method on the
|
| 122 |
+
// message resource collection:
|
| 123 |
+
//
|
| 124 |
+
// service Messaging {
|
| 125 |
+
// rpc UpdateMessage(UpdateMessageRequest) returns (Message) {
|
| 126 |
+
// option (google.api.http) = {
|
| 127 |
+
// patch: "/v1/messages/{message_id}"
|
| 128 |
+
// body: "message"
|
| 129 |
+
// };
|
| 130 |
+
// }
|
| 131 |
+
// }
|
| 132 |
+
// message UpdateMessageRequest {
|
| 133 |
+
// string message_id = 1; // mapped to the URL
|
| 134 |
+
// Message message = 2; // mapped to the body
|
| 135 |
+
// }
|
| 136 |
+
//
|
| 137 |
+
// The following HTTP JSON to RPC mapping is enabled, where the
|
| 138 |
+
// representation of the JSON in the request body is determined by
|
| 139 |
+
// protos JSON encoding:
|
| 140 |
+
//
|
| 141 |
+
// - HTTP: `PATCH /v1/messages/123456 { "text": "Hi!" }`
|
| 142 |
+
// - gRPC: `UpdateMessage(message_id: "123456" message { text: "Hi!" })`
|
| 143 |
+
//
|
| 144 |
+
// The special name `*` can be used in the body mapping to define that
|
| 145 |
+
// every field not bound by the path template should be mapped to the
|
| 146 |
+
// request body. This enables the following alternative definition of
|
| 147 |
+
// the update method:
|
| 148 |
+
//
|
| 149 |
+
// service Messaging {
|
| 150 |
+
// rpc UpdateMessage(Message) returns (Message) {
|
| 151 |
+
// option (google.api.http) = {
|
| 152 |
+
// patch: "/v1/messages/{message_id}"
|
| 153 |
+
// body: "*"
|
| 154 |
+
// };
|
| 155 |
+
// }
|
| 156 |
+
// }
|
| 157 |
+
// message Message {
|
| 158 |
+
// string message_id = 1;
|
| 159 |
+
// string text = 2;
|
| 160 |
+
// }
|
| 161 |
+
//
|
| 162 |
+
//
|
| 163 |
+
// The following HTTP JSON to RPC mapping is enabled:
|
| 164 |
+
//
|
| 165 |
+
// - HTTP: `PATCH /v1/messages/123456 { "text": "Hi!" }`
|
| 166 |
+
// - gRPC: `UpdateMessage(message_id: "123456" text: "Hi!")`
|
| 167 |
+
//
|
| 168 |
+
// Note that when using `*` in the body mapping, it is not possible to
|
| 169 |
+
// have HTTP parameters, as all fields not bound by the path end in
|
| 170 |
+
// the body. This makes this option more rarely used in practice when
|
| 171 |
+
// defining REST APIs. The common usage of `*` is in custom methods
|
| 172 |
+
// which don't use the URL at all for transferring data.
|
| 173 |
+
//
|
| 174 |
+
// It is possible to define multiple HTTP methods for one RPC by using
|
| 175 |
+
// the `additional_bindings` option. Example:
|
| 176 |
+
//
|
| 177 |
+
// service Messaging {
|
| 178 |
+
// rpc GetMessage(GetMessageRequest) returns (Message) {
|
| 179 |
+
// option (google.api.http) = {
|
| 180 |
+
// get: "/v1/messages/{message_id}"
|
| 181 |
+
// additional_bindings {
|
| 182 |
+
// get: "/v1/users/{user_id}/messages/{message_id}"
|
| 183 |
+
// }
|
| 184 |
+
// };
|
| 185 |
+
// }
|
| 186 |
+
// }
|
| 187 |
+
// message GetMessageRequest {
|
| 188 |
+
// string message_id = 1;
|
| 189 |
+
// string user_id = 2;
|
| 190 |
+
// }
|
| 191 |
+
//
|
| 192 |
+
// This enables the following two alternative HTTP JSON to RPC mappings:
|
| 193 |
+
//
|
| 194 |
+
// - HTTP: `GET /v1/messages/123456`
|
| 195 |
+
// - gRPC: `GetMessage(message_id: "123456")`
|
| 196 |
+
//
|
| 197 |
+
// - HTTP: `GET /v1/users/me/messages/123456`
|
| 198 |
+
// - gRPC: `GetMessage(user_id: "me" message_id: "123456")`
|
| 199 |
+
//
|
| 200 |
+
// Rules for HTTP mapping
|
| 201 |
+
//
|
| 202 |
+
// 1. Leaf request fields (recursive expansion nested messages in the request
|
| 203 |
+
// message) are classified into three categories:
|
| 204 |
+
// - Fields referred by the path template. They are passed via the URL path.
|
| 205 |
+
// - Fields referred by the [HttpRule.body][google.api.HttpRule.body]. They
|
| 206 |
+
// are passed via the HTTP
|
| 207 |
+
// request body.
|
| 208 |
+
// - All other fields are passed via the URL query parameters, and the
|
| 209 |
+
// parameter name is the field path in the request message. A repeated
|
| 210 |
+
// field can be represented as multiple query parameters under the same
|
| 211 |
+
// name.
|
| 212 |
+
// 2. If [HttpRule.body][google.api.HttpRule.body] is "*", there is no URL
|
| 213 |
+
// query parameter, all fields
|
| 214 |
+
// are passed via URL path and HTTP request body.
|
| 215 |
+
// 3. If [HttpRule.body][google.api.HttpRule.body] is omitted, there is no HTTP
|
| 216 |
+
// request body, all
|
| 217 |
+
// fields are passed via URL path and URL query parameters.
|
| 218 |
+
//
|
| 219 |
+
// Path template syntax
|
| 220 |
+
//
|
| 221 |
+
// Template = "/" Segments [ Verb ] ;
|
| 222 |
+
// Segments = Segment { "/" Segment } ;
|
| 223 |
+
// Segment = "*" | "**" | LITERAL | Variable ;
|
| 224 |
+
// Variable = "{" FieldPath [ "=" Segments ] "}" ;
|
| 225 |
+
// FieldPath = IDENT { "." IDENT } ;
|
| 226 |
+
// Verb = ":" LITERAL ;
|
| 227 |
+
//
|
| 228 |
+
// The syntax `*` matches a single URL path segment. The syntax `**` matches
|
| 229 |
+
// zero or more URL path segments, which must be the last part of the URL path
|
| 230 |
+
// except the `Verb`.
|
| 231 |
+
//
|
| 232 |
+
// The syntax `Variable` matches part of the URL path as specified by its
|
| 233 |
+
// template. A variable template must not contain other variables. If a variable
|
| 234 |
+
// matches a single path segment, its template may be omitted, e.g. `{var}`
|
| 235 |
+
// is equivalent to `{var=*}`.
|
| 236 |
+
//
|
| 237 |
+
// The syntax `LITERAL` matches literal text in the URL path. If the `LITERAL`
|
| 238 |
+
// contains any reserved character, such characters should be percent-encoded
|
| 239 |
+
// before the matching.
|
| 240 |
+
//
|
| 241 |
+
// If a variable contains exactly one path segment, such as `"{var}"` or
|
| 242 |
+
// `"{var=*}"`, when such a variable is expanded into a URL path on the client
|
| 243 |
+
// side, all characters except `[-_.~0-9a-zA-Z]` are percent-encoded. The
|
| 244 |
+
// server side does the reverse decoding. Such variables show up in the
|
| 245 |
+
// [Discovery
|
| 246 |
+
// Document](https://developers.google.com/discovery/v1/reference/apis) as
|
| 247 |
+
// `{var}`.
|
| 248 |
+
//
|
| 249 |
+
// If a variable contains multiple path segments, such as `"{var=foo/*}"`
|
| 250 |
+
// or `"{var=**}"`, when such a variable is expanded into a URL path on the
|
| 251 |
+
// client side, all characters except `[-_.~/0-9a-zA-Z]` are percent-encoded.
|
| 252 |
+
// The server side does the reverse decoding, except "%2F" and "%2f" are left
|
| 253 |
+
// unchanged. Such variables show up in the
|
| 254 |
+
// [Discovery
|
| 255 |
+
// Document](https://developers.google.com/discovery/v1/reference/apis) as
|
| 256 |
+
// `{+var}`.
|
| 257 |
+
//
|
| 258 |
+
// Using gRPC API Service Configuration
|
| 259 |
+
//
|
| 260 |
+
// gRPC API Service Configuration (service config) is a configuration language
|
| 261 |
+
// for configuring a gRPC service to become a user-facing product. The
|
| 262 |
+
// service config is simply the YAML representation of the `google.api.Service`
|
| 263 |
+
// proto message.
|
| 264 |
+
//
|
| 265 |
+
// As an alternative to annotating your proto file, you can configure gRPC
|
| 266 |
+
// transcoding in your service config YAML files. You do this by specifying a
|
| 267 |
+
// `HttpRule` that maps the gRPC method to a REST endpoint, achieving the same
|
| 268 |
+
// effect as the proto annotation. This can be particularly useful if you
|
| 269 |
+
// have a proto that is reused in multiple services. Note that any transcoding
|
| 270 |
+
// specified in the service config will override any matching transcoding
|
| 271 |
+
// configuration in the proto.
|
| 272 |
+
//
|
| 273 |
+
// The following example selects a gRPC method and applies an `HttpRule` to it:
|
| 274 |
+
//
|
| 275 |
+
// http:
|
| 276 |
+
// rules:
|
| 277 |
+
// - selector: example.v1.Messaging.GetMessage
|
| 278 |
+
// get: /v1/messages/{message_id}/{sub.subfield}
|
| 279 |
+
//
|
| 280 |
+
// Special notes
|
| 281 |
+
//
|
| 282 |
+
// When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the
|
| 283 |
+
// proto to JSON conversion must follow the [proto3
|
| 284 |
+
// specification](https://developers.google.com/protocol-buffers/docs/proto3#json).
|
| 285 |
+
//
|
| 286 |
+
// While the single segment variable follows the semantics of
|
| 287 |
+
// [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String
|
| 288 |
+
// Expansion, the multi segment variable **does not** follow RFC 6570 Section
|
| 289 |
+
// 3.2.3 Reserved Expansion. The reason is that the Reserved Expansion
|
| 290 |
+
// does not expand special characters like `?` and `#`, which would lead
|
| 291 |
+
// to invalid URLs. As the result, gRPC Transcoding uses a custom encoding
|
| 292 |
+
// for multi segment variables.
|
| 293 |
+
//
|
| 294 |
+
// The path variables **must not** refer to any repeated or mapped field,
|
| 295 |
+
// because client libraries are not capable of handling such variable expansion.
|
| 296 |
+
//
|
| 297 |
+
// The path variables **must not** capture the leading "/" character. The reason
|
| 298 |
+
// is that the most common use case "{var}" does not capture the leading "/"
|
| 299 |
+
// character. For consistency, all path variables must share the same behavior.
|
| 300 |
+
//
|
| 301 |
+
// Repeated message fields must not be mapped to URL query parameters, because
|
| 302 |
+
// no client library can support such complicated mapping.
|
| 303 |
+
//
|
| 304 |
+
// If an API needs to use a JSON array for request or response body, it can map
|
| 305 |
+
// the request or response body to a repeated field. However, some gRPC
|
| 306 |
+
// Transcoding implementations may not support this feature.
|
| 307 |
+
message HttpRule {
|
| 308 |
+
// Selects a method to which this rule applies.
|
| 309 |
+
//
|
| 310 |
+
// Refer to [selector][google.api.DocumentationRule.selector] for syntax
|
| 311 |
+
// details.
|
| 312 |
+
string selector = 1;
|
| 313 |
+
|
| 314 |
+
// Determines the URL pattern is matched by this rules. This pattern can be
|
| 315 |
+
// used with any of the {get|put|post|delete|patch} methods. A custom method
|
| 316 |
+
// can be defined using the 'custom' field.
|
| 317 |
+
oneof pattern {
|
| 318 |
+
// Maps to HTTP GET. Used for listing and getting information about
|
| 319 |
+
// resources.
|
| 320 |
+
string get = 2;
|
| 321 |
+
|
| 322 |
+
// Maps to HTTP PUT. Used for replacing a resource.
|
| 323 |
+
string put = 3;
|
| 324 |
+
|
| 325 |
+
// Maps to HTTP POST. Used for creating a resource or performing an action.
|
| 326 |
+
string post = 4;
|
| 327 |
+
|
| 328 |
+
// Maps to HTTP DELETE. Used for deleting a resource.
|
| 329 |
+
string delete = 5;
|
| 330 |
+
|
| 331 |
+
// Maps to HTTP PATCH. Used for updating a resource.
|
| 332 |
+
string patch = 6;
|
| 333 |
+
|
| 334 |
+
// The custom pattern is used for specifying an HTTP method that is not
|
| 335 |
+
// included in the `pattern` field, such as HEAD, or "*" to leave the
|
| 336 |
+
// HTTP method unspecified for this rule. The wild-card rule is useful
|
| 337 |
+
// for services that provide content to Web (HTML) clients.
|
| 338 |
+
CustomHttpPattern custom = 8;
|
| 339 |
+
}
|
| 340 |
+
|
| 341 |
+
// The name of the request field whose value is mapped to the HTTP request
|
| 342 |
+
// body, or `*` for mapping all request fields not captured by the path
|
| 343 |
+
// pattern to the HTTP body, or omitted for not having any HTTP request body.
|
| 344 |
+
//
|
| 345 |
+
// NOTE: the referred field must be present at the top-level of the request
|
| 346 |
+
// message type.
|
| 347 |
+
string body = 7;
|
| 348 |
+
|
| 349 |
+
// Optional. The name of the response field whose value is mapped to the HTTP
|
| 350 |
+
// response body. When omitted, the entire response message will be used
|
| 351 |
+
// as the HTTP response body.
|
| 352 |
+
//
|
| 353 |
+
// NOTE: The referred field must be present at the top-level of the response
|
| 354 |
+
// message type.
|
| 355 |
+
string response_body = 12;
|
| 356 |
+
|
| 357 |
+
// Additional HTTP bindings for the selector. Nested bindings must
|
| 358 |
+
// not contain an `additional_bindings` field themselves (that is,
|
| 359 |
+
// the nesting may only be one level deep).
|
| 360 |
+
repeated HttpRule additional_bindings = 11;
|
| 361 |
+
}
|
| 362 |
+
|
| 363 |
+
// A custom pattern is used for defining custom HTTP verb.
|
| 364 |
+
message CustomHttpPattern {
|
| 365 |
+
// The name of this custom HTTP verb.
|
| 366 |
+
string kind = 1;
|
| 367 |
+
|
| 368 |
+
// The path matched by this custom verb.
|
| 369 |
+
string path = 2;
|
| 370 |
+
}
|
python/user_packages/Python313/site-packages/google/api/http_pb2.py
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# -*- coding: utf-8 -*-
|
| 2 |
+
|
| 3 |
+
# Copyright 2025 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 |
+
# Protobuf Python Version: 4.25.3
|
| 20 |
+
"""Generated protocol buffer code."""
|
| 21 |
+
|
| 22 |
+
from google.protobuf import descriptor as _descriptor
|
| 23 |
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
| 24 |
+
from google.protobuf import symbol_database as _symbol_database
|
| 25 |
+
from google.protobuf.internal import builder as _builder
|
| 26 |
+
|
| 27 |
+
# @@protoc_insertion_point(imports)
|
| 28 |
+
|
| 29 |
+
_sym_db = _symbol_database.Default()
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
| 33 |
+
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(\tBg\n\x0e\x63om.google.apiB\tHttpProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xa2\x02\x04GAPIb\x06proto3'
|
| 34 |
+
)
|
| 35 |
+
|
| 36 |
+
_globals = globals()
|
| 37 |
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
| 38 |
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "google.api.http_pb2", _globals)
|
| 39 |
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
| 40 |
+
_globals["DESCRIPTOR"]._options = None
|
| 41 |
+
_globals[
|
| 42 |
+
"DESCRIPTOR"
|
| 43 |
+
]._serialized_options = b"\n\016com.google.apiB\tHttpProtoP\001ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\242\002\004GAPI"
|
| 44 |
+
_globals["_HTTP"]._serialized_start = 37
|
| 45 |
+
_globals["_HTTP"]._serialized_end = 121
|
| 46 |
+
_globals["_HTTPRULE"]._serialized_start = 124
|
| 47 |
+
_globals["_HTTPRULE"]._serialized_end = 381
|
| 48 |
+
_globals["_CUSTOMHTTPPATTERN"]._serialized_start = 383
|
| 49 |
+
_globals["_CUSTOMHTTPPATTERN"]._serialized_end = 430
|
| 50 |
+
# @@protoc_insertion_point(module_scope)
|
python/user_packages/Python313/site-packages/google/api/http_pb2.pyi
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright 2025 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 |
+
from typing import ClassVar as _ClassVar
|
| 16 |
+
from typing import Iterable as _Iterable
|
| 17 |
+
from typing import Mapping as _Mapping
|
| 18 |
+
from typing import Optional as _Optional
|
| 19 |
+
from typing import Union as _Union
|
| 20 |
+
|
| 21 |
+
from google.protobuf import descriptor as _descriptor
|
| 22 |
+
from google.protobuf import message as _message
|
| 23 |
+
from google.protobuf.internal import containers as _containers
|
| 24 |
+
|
| 25 |
+
DESCRIPTOR: _descriptor.FileDescriptor
|
| 26 |
+
|
| 27 |
+
class Http(_message.Message):
|
| 28 |
+
__slots__ = ("rules", "fully_decode_reserved_expansion")
|
| 29 |
+
RULES_FIELD_NUMBER: _ClassVar[int]
|
| 30 |
+
FULLY_DECODE_RESERVED_EXPANSION_FIELD_NUMBER: _ClassVar[int]
|
| 31 |
+
rules: _containers.RepeatedCompositeFieldContainer[HttpRule]
|
| 32 |
+
fully_decode_reserved_expansion: bool
|
| 33 |
+
def __init__(
|
| 34 |
+
self,
|
| 35 |
+
rules: _Optional[_Iterable[_Union[HttpRule, _Mapping]]] = ...,
|
| 36 |
+
fully_decode_reserved_expansion: bool = ...,
|
| 37 |
+
) -> None: ...
|
| 38 |
+
|
| 39 |
+
class HttpRule(_message.Message):
|
| 40 |
+
__slots__ = (
|
| 41 |
+
"selector",
|
| 42 |
+
"get",
|
| 43 |
+
"put",
|
| 44 |
+
"post",
|
| 45 |
+
"delete",
|
| 46 |
+
"patch",
|
| 47 |
+
"custom",
|
| 48 |
+
"body",
|
| 49 |
+
"response_body",
|
| 50 |
+
"additional_bindings",
|
| 51 |
+
)
|
| 52 |
+
SELECTOR_FIELD_NUMBER: _ClassVar[int]
|
| 53 |
+
GET_FIELD_NUMBER: _ClassVar[int]
|
| 54 |
+
PUT_FIELD_NUMBER: _ClassVar[int]
|
| 55 |
+
POST_FIELD_NUMBER: _ClassVar[int]
|
| 56 |
+
DELETE_FIELD_NUMBER: _ClassVar[int]
|
| 57 |
+
PATCH_FIELD_NUMBER: _ClassVar[int]
|
| 58 |
+
CUSTOM_FIELD_NUMBER: _ClassVar[int]
|
| 59 |
+
BODY_FIELD_NUMBER: _ClassVar[int]
|
| 60 |
+
RESPONSE_BODY_FIELD_NUMBER: _ClassVar[int]
|
| 61 |
+
ADDITIONAL_BINDINGS_FIELD_NUMBER: _ClassVar[int]
|
| 62 |
+
selector: str
|
| 63 |
+
get: str
|
| 64 |
+
put: str
|
| 65 |
+
post: str
|
| 66 |
+
delete: str
|
| 67 |
+
patch: str
|
| 68 |
+
custom: CustomHttpPattern
|
| 69 |
+
body: str
|
| 70 |
+
response_body: str
|
| 71 |
+
additional_bindings: _containers.RepeatedCompositeFieldContainer[HttpRule]
|
| 72 |
+
def __init__(
|
| 73 |
+
self,
|
| 74 |
+
selector: _Optional[str] = ...,
|
| 75 |
+
get: _Optional[str] = ...,
|
| 76 |
+
put: _Optional[str] = ...,
|
| 77 |
+
post: _Optional[str] = ...,
|
| 78 |
+
delete: _Optional[str] = ...,
|
| 79 |
+
patch: _Optional[str] = ...,
|
| 80 |
+
custom: _Optional[_Union[CustomHttpPattern, _Mapping]] = ...,
|
| 81 |
+
body: _Optional[str] = ...,
|
| 82 |
+
response_body: _Optional[str] = ...,
|
| 83 |
+
additional_bindings: _Optional[_Iterable[_Union[HttpRule, _Mapping]]] = ...,
|
| 84 |
+
) -> None: ...
|
| 85 |
+
|
| 86 |
+
class CustomHttpPattern(_message.Message):
|
| 87 |
+
__slots__ = ("kind", "path")
|
| 88 |
+
KIND_FIELD_NUMBER: _ClassVar[int]
|
| 89 |
+
PATH_FIELD_NUMBER: _ClassVar[int]
|
| 90 |
+
kind: str
|
| 91 |
+
path: str
|
| 92 |
+
def __init__(
|
| 93 |
+
self, kind: _Optional[str] = ..., path: _Optional[str] = ...
|
| 94 |
+
) -> None: ...
|
python/user_packages/Python313/site-packages/google/api/httpbody.proto
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Copyright 2026 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 |
+
}
|
python/user_packages/Python313/site-packages/google/api/httpbody_pb2.py
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# -*- coding: utf-8 -*-
|
| 2 |
+
|
| 3 |
+
# Copyright 2025 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 |
+
# Protobuf Python Version: 4.25.3
|
| 20 |
+
"""Generated protocol buffer code."""
|
| 21 |
+
|
| 22 |
+
from google.protobuf import descriptor as _descriptor
|
| 23 |
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
| 24 |
+
from google.protobuf import symbol_database as _symbol_database
|
| 25 |
+
from google.protobuf.internal import builder as _builder
|
| 26 |
+
|
| 27 |
+
# @@protoc_insertion_point(imports)
|
| 28 |
+
|
| 29 |
+
_sym_db = _symbol_database.Default()
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
from google.protobuf import any_pb2 as google_dot_protobuf_dot_any__pb2
|
| 33 |
+
|
| 34 |
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(
|
| 35 |
+
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'
|
| 36 |
+
)
|
| 37 |
+
|
| 38 |
+
_globals = globals()
|
| 39 |
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
| 40 |
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, "google.api.httpbody_pb2", _globals)
|
| 41 |
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
| 42 |
+
_globals["DESCRIPTOR"]._options = None
|
| 43 |
+
_globals[
|
| 44 |
+
"DESCRIPTOR"
|
| 45 |
+
]._serialized_options = b"\n\016com.google.apiB\rHttpBodyProtoP\001Z;google.golang.org/genproto/googleapis/api/httpbody;httpbody\242\002\004GAPI"
|
| 46 |
+
_globals["_HTTPBODY"]._serialized_start = 68
|
| 47 |
+
_globals["_HTTPBODY"]._serialized_end = 156
|
| 48 |
+
# @@protoc_insertion_point(module_scope)
|