codekingpro/portable-devtools
114k
1# Copyright 2025 Google LLC2#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 at6#7# http://www.apache.org/licenses/LICENSE-2.08#9# Unless required by applicable law or agreed to in writing, software10# 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 and13# limitations under the License.14 15from typing import ClassVar as _ClassVar16from typing import Iterable as _Iterable17from typing import Mapping as _Mapping18from typing import Optional as _Optional19from typing import Union as _Union20 21from google.protobuf import descriptor as _descriptor22from google.protobuf import message as _message23from google.protobuf.internal import containers as _containers24 25DESCRIPTOR: _descriptor.FileDescriptor26 27class GapicMetadata(_message.Message):28 __slots__ = (29 "schema",30 "comment",31 "language",32 "proto_package",33 "library_package",34 "services",35 )36 37 class ServicesEntry(_message.Message):38 __slots__ = ("key", "value")39 KEY_FIELD_NUMBER: _ClassVar[int]40 VALUE_FIELD_NUMBER: _ClassVar[int]41 key: str42 value: GapicMetadata.ServiceForTransport43 def __init__(44 self,45 key: _Optional[str] = ...,46 value: _Optional[_Union[GapicMetadata.ServiceForTransport, _Mapping]] = ...,47 ) -> None: ...48 49 class ServiceForTransport(_message.Message):50 __slots__ = ("clients", "api_version")51 52 class ClientsEntry(_message.Message):53 __slots__ = ("key", "value")54 KEY_FIELD_NUMBER: _ClassVar[int]55 VALUE_FIELD_NUMBER: _ClassVar[int]56 key: str57 value: GapicMetadata.ServiceAsClient58 def __init__(59 self,60 key: _Optional[str] = ...,61 value: _Optional[_Union[GapicMetadata.ServiceAsClient, _Mapping]] = ...,62 ) -> None: ...63 64 CLIENTS_FIELD_NUMBER: _ClassVar[int]65 API_VERSION_FIELD_NUMBER: _ClassVar[int]66 clients: _containers.MessageMap[str, GapicMetadata.ServiceAsClient]67 api_version: str68 def __init__(69 self,70 clients: _Optional[_Mapping[str, GapicMetadata.ServiceAsClient]] = ...,71 api_version: _Optional[str] = ...,72 ) -> None: ...73 74 class ServiceAsClient(_message.Message):75 __slots__ = ("library_client", "rpcs")76 77 class RpcsEntry(_message.Message):78 __slots__ = ("key", "value")79 KEY_FIELD_NUMBER: _ClassVar[int]80 VALUE_FIELD_NUMBER: _ClassVar[int]81 key: str82 value: GapicMetadata.MethodList83 def __init__(84 self,85 key: _Optional[str] = ...,86 value: _Optional[_Union[GapicMetadata.MethodList, _Mapping]] = ...,87 ) -> None: ...88 89 LIBRARY_CLIENT_FIELD_NUMBER: _ClassVar[int]90 RPCS_FIELD_NUMBER: _ClassVar[int]91 library_client: str92 rpcs: _containers.MessageMap[str, GapicMetadata.MethodList]93 def __init__(94 self,95 library_client: _Optional[str] = ...,96 rpcs: _Optional[_Mapping[str, GapicMetadata.MethodList]] = ...,97 ) -> None: ...98 99 class MethodList(_message.Message):100 __slots__ = ("methods",)101 METHODS_FIELD_NUMBER: _ClassVar[int]102 methods: _containers.RepeatedScalarFieldContainer[str]103 def __init__(self, methods: _Optional[_Iterable[str]] = ...) -> None: ...104 105 SCHEMA_FIELD_NUMBER: _ClassVar[int]106 COMMENT_FIELD_NUMBER: _ClassVar[int]107 LANGUAGE_FIELD_NUMBER: _ClassVar[int]108 PROTO_PACKAGE_FIELD_NUMBER: _ClassVar[int]109 LIBRARY_PACKAGE_FIELD_NUMBER: _ClassVar[int]110 SERVICES_FIELD_NUMBER: _ClassVar[int]111 schema: str112 comment: str113 language: str114 proto_package: str115 library_package: str116 services: _containers.MessageMap[str, GapicMetadata.ServiceForTransport]117 def __init__(118 self,119 schema: _Optional[str] = ...,120 comment: _Optional[str] = ...,121 language: _Optional[str] = ...,122 proto_package: _Optional[str] = ...,123 library_package: _Optional[str] = ...,124 services: _Optional[_Mapping[str, GapicMetadata.ServiceForTransport]] = ...,125 ) -> None: ...126 