http_pb2.pyi 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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. from typing import ClassVar as _ClassVar
  15. from typing import Iterable as _Iterable
  16. from typing import Mapping as _Mapping
  17. from typing import Optional as _Optional
  18. from typing import Union as _Union
  19. from google.protobuf import descriptor as _descriptor
  20. from google.protobuf import message as _message
  21. from google.protobuf.internal import containers as _containers
  22. DESCRIPTOR: _descriptor.FileDescriptor
  23. class Http(_message.Message):
  24. __slots__ = ("rules", "fully_decode_reserved_expansion")
  25. RULES_FIELD_NUMBER: _ClassVar[int]
  26. FULLY_DECODE_RESERVED_EXPANSION_FIELD_NUMBER: _ClassVar[int]
  27. rules: _containers.RepeatedCompositeFieldContainer[HttpRule]
  28. fully_decode_reserved_expansion: bool
  29. def __init__(
  30. self,
  31. rules: _Optional[_Iterable[_Union[HttpRule, _Mapping]]] = ...,
  32. fully_decode_reserved_expansion: bool = ...,
  33. ) -> None: ...
  34. class HttpRule(_message.Message):
  35. __slots__ = (
  36. "selector",
  37. "get",
  38. "put",
  39. "post",
  40. "delete",
  41. "patch",
  42. "custom",
  43. "body",
  44. "response_body",
  45. "additional_bindings",
  46. )
  47. SELECTOR_FIELD_NUMBER: _ClassVar[int]
  48. GET_FIELD_NUMBER: _ClassVar[int]
  49. PUT_FIELD_NUMBER: _ClassVar[int]
  50. POST_FIELD_NUMBER: _ClassVar[int]
  51. DELETE_FIELD_NUMBER: _ClassVar[int]
  52. PATCH_FIELD_NUMBER: _ClassVar[int]
  53. CUSTOM_FIELD_NUMBER: _ClassVar[int]
  54. BODY_FIELD_NUMBER: _ClassVar[int]
  55. RESPONSE_BODY_FIELD_NUMBER: _ClassVar[int]
  56. ADDITIONAL_BINDINGS_FIELD_NUMBER: _ClassVar[int]
  57. selector: str
  58. get: str
  59. put: str
  60. post: str
  61. delete: str
  62. patch: str
  63. custom: CustomHttpPattern
  64. body: str
  65. response_body: str
  66. additional_bindings: _containers.RepeatedCompositeFieldContainer[HttpRule]
  67. def __init__(
  68. self,
  69. selector: _Optional[str] = ...,
  70. get: _Optional[str] = ...,
  71. put: _Optional[str] = ...,
  72. post: _Optional[str] = ...,
  73. delete: _Optional[str] = ...,
  74. patch: _Optional[str] = ...,
  75. custom: _Optional[_Union[CustomHttpPattern, _Mapping]] = ...,
  76. body: _Optional[str] = ...,
  77. response_body: _Optional[str] = ...,
  78. additional_bindings: _Optional[_Iterable[_Union[HttpRule, _Mapping]]] = ...,
  79. ) -> None: ...
  80. class CustomHttpPattern(_message.Message):
  81. __slots__ = ("kind", "path")
  82. KIND_FIELD_NUMBER: _ClassVar[int]
  83. PATH_FIELD_NUMBER: _ClassVar[int]
  84. kind: str
  85. path: str
  86. def __init__(
  87. self, kind: _Optional[str] = ..., path: _Optional[str] = ...
  88. ) -> None: ...