|
| 1 | +from typing import ClassVar as _ClassVar |
| 2 | +from typing import Optional as _Optional |
| 3 | +from typing import Union as _Union |
| 4 | + |
| 5 | +from google.protobuf import descriptor as _descriptor |
| 6 | +from google.protobuf import message as _message |
| 7 | +from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper |
| 8 | + |
| 9 | +from google.api import field_behavior_pb2 as _field_behavior_pb2 |
| 10 | + |
| 11 | +DESCRIPTOR: _descriptor.FileDescriptor |
| 12 | + |
| 13 | +class MetadataExchangeRequest(_message.Message): |
| 14 | + __slots__ = ["auth_type", "oauth2_token", "user_agent"] |
| 15 | + |
| 16 | + class AuthType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): |
| 17 | + __slots__ = [] |
| 18 | + AUTH_TYPE_FIELD_NUMBER: _ClassVar[int] |
| 19 | + AUTH_TYPE_UNSPECIFIED: MetadataExchangeRequest.AuthType |
| 20 | + AUTO_IAM: MetadataExchangeRequest.AuthType |
| 21 | + DB_NATIVE: MetadataExchangeRequest.AuthType |
| 22 | + OAUTH2_TOKEN_FIELD_NUMBER: _ClassVar[int] |
| 23 | + USER_AGENT_FIELD_NUMBER: _ClassVar[int] |
| 24 | + auth_type: MetadataExchangeRequest.AuthType |
| 25 | + oauth2_token: str |
| 26 | + user_agent: str |
| 27 | + def __init__( |
| 28 | + self, |
| 29 | + user_agent: _Optional[str] = ..., |
| 30 | + auth_type: _Optional[_Union[MetadataExchangeRequest.AuthType, str]] = ..., |
| 31 | + oauth2_token: _Optional[str] = ..., |
| 32 | + ) -> None: ... |
| 33 | + |
| 34 | +class MetadataExchangeResponse(_message.Message): |
| 35 | + __slots__ = ["error", "response_code"] |
| 36 | + |
| 37 | + class ResponseCode(int, metaclass=_enum_type_wrapper.EnumTypeWrapper): |
| 38 | + __slots__ = [] |
| 39 | + ERROR: MetadataExchangeResponse.ResponseCode |
| 40 | + ERROR_FIELD_NUMBER: _ClassVar[int] |
| 41 | + OK: MetadataExchangeResponse.ResponseCode |
| 42 | + RESPONSE_CODE_FIELD_NUMBER: _ClassVar[int] |
| 43 | + RESPONSE_CODE_UNSPECIFIED: MetadataExchangeResponse.ResponseCode |
| 44 | + error: str |
| 45 | + response_code: MetadataExchangeResponse.ResponseCode |
| 46 | + def __init__( |
| 47 | + self, |
| 48 | + response_code: _Optional[ |
| 49 | + _Union[MetadataExchangeResponse.ResponseCode, str] |
| 50 | + ] = ..., |
| 51 | + error: _Optional[str] = ..., |
| 52 | + ) -> None: ... |
0 commit comments