Debian Codegraph @

google/gapic/metadata/gapic_metadata_pb2.pyi

raw
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 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: str
42 value: GapicMetadata.ServiceForTransport
43 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: str
57 value: GapicMetadata.ServiceAsClient
58 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: str
68 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: str
82 value: GapicMetadata.MethodList
83 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: str
92 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: str
112 comment: str
113 language: str
114 proto_package: str
115 library_package: str
116 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: ...