Debian Codegraph @

google/api/http_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 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: ...