| 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: ... |