wrappers_pb.py 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365
  1. # Copyright (c) 2025-2026 Buf Technologies, Inc.
  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. # Generated from google/protobuf/wrappers.proto. DO NOT EDIT.
  15. # Generated by protoc-gen-py v0.1.1 with parameter "no_fmt_off".
  16. # ruff: noqa: PGH004
  17. # ruff: noqa
  18. from __future__ import annotations
  19. from typing import Literal, TYPE_CHECKING, TypeAlias
  20. from protobuf import Message
  21. from protobuf._codegen import file_desc
  22. if TYPE_CHECKING:
  23. from protobuf import DescFile
  24. _DoubleValueFields: TypeAlias = Literal["value"]
  25. class DoubleValue(Message[_DoubleValueFields]):
  26. """
  27. Wrapper message for `double`.
  28. The JSON representation for `DoubleValue` is JSON number.
  29. Not recommended for use in new APIs, but still useful for legacy APIs and
  30. has no plan to be removed.
  31. ```proto
  32. message google.protobuf.DoubleValue
  33. ```
  34. Attributes:
  35. value:
  36. The double value.
  37. ```proto
  38. double value = 1;
  39. ```
  40. """
  41. __slots__ = ("value",)
  42. if TYPE_CHECKING:
  43. def __init__(self, *, value: float = 0) -> None:
  44. pass
  45. value: float
  46. _FloatValueFields: TypeAlias = Literal["value"]
  47. class FloatValue(Message[_FloatValueFields]):
  48. """
  49. Wrapper message for `float`.
  50. The JSON representation for `FloatValue` is JSON number.
  51. Not recommended for use in new APIs, but still useful for legacy APIs and
  52. has no plan to be removed.
  53. ```proto
  54. message google.protobuf.FloatValue
  55. ```
  56. Attributes:
  57. value:
  58. The float value.
  59. ```proto
  60. float value = 1;
  61. ```
  62. """
  63. __slots__ = ("value",)
  64. if TYPE_CHECKING:
  65. def __init__(self, *, value: float = 0) -> None:
  66. pass
  67. value: float
  68. _Int64ValueFields: TypeAlias = Literal["value"]
  69. class Int64Value(Message[_Int64ValueFields]):
  70. """
  71. Wrapper message for `int64`.
  72. The JSON representation for `Int64Value` is JSON string.
  73. Not recommended for use in new APIs, but still useful for legacy APIs and
  74. has no plan to be removed.
  75. ```proto
  76. message google.protobuf.Int64Value
  77. ```
  78. Attributes:
  79. value:
  80. The int64 value.
  81. ```proto
  82. int64 value = 1;
  83. ```
  84. """
  85. __slots__ = ("value",)
  86. if TYPE_CHECKING:
  87. def __init__(self, *, value: int = 0) -> None:
  88. pass
  89. value: int
  90. _UInt64ValueFields: TypeAlias = Literal["value"]
  91. class UInt64Value(Message[_UInt64ValueFields]):
  92. """
  93. Wrapper message for `uint64`.
  94. The JSON representation for `UInt64Value` is JSON string.
  95. Not recommended for use in new APIs, but still useful for legacy APIs and
  96. has no plan to be removed.
  97. ```proto
  98. message google.protobuf.UInt64Value
  99. ```
  100. Attributes:
  101. value:
  102. The uint64 value.
  103. ```proto
  104. uint64 value = 1;
  105. ```
  106. """
  107. __slots__ = ("value",)
  108. if TYPE_CHECKING:
  109. def __init__(self, *, value: int = 0) -> None:
  110. pass
  111. value: int
  112. _Int32ValueFields: TypeAlias = Literal["value"]
  113. class Int32Value(Message[_Int32ValueFields]):
  114. """
  115. Wrapper message for `int32`.
  116. The JSON representation for `Int32Value` is JSON number.
  117. Not recommended for use in new APIs, but still useful for legacy APIs and
  118. has no plan to be removed.
  119. ```proto
  120. message google.protobuf.Int32Value
  121. ```
  122. Attributes:
  123. value:
  124. The int32 value.
  125. ```proto
  126. int32 value = 1;
  127. ```
  128. """
  129. __slots__ = ("value",)
  130. if TYPE_CHECKING:
  131. def __init__(self, *, value: int = 0) -> None:
  132. pass
  133. value: int
  134. _UInt32ValueFields: TypeAlias = Literal["value"]
  135. class UInt32Value(Message[_UInt32ValueFields]):
  136. """
  137. Wrapper message for `uint32`.
  138. The JSON representation for `UInt32Value` is JSON number.
  139. Not recommended for use in new APIs, but still useful for legacy APIs and
  140. has no plan to be removed.
  141. ```proto
  142. message google.protobuf.UInt32Value
  143. ```
  144. Attributes:
  145. value:
  146. The uint32 value.
  147. ```proto
  148. uint32 value = 1;
  149. ```
  150. """
  151. __slots__ = ("value",)
  152. if TYPE_CHECKING:
  153. def __init__(self, *, value: int = 0) -> None:
  154. pass
  155. value: int
  156. _BoolValueFields: TypeAlias = Literal["value"]
  157. class BoolValue(Message[_BoolValueFields]):
  158. """
  159. Wrapper message for `bool`.
  160. The JSON representation for `BoolValue` is JSON `true` and `false`.
  161. Not recommended for use in new APIs, but still useful for legacy APIs and
  162. has no plan to be removed.
  163. ```proto
  164. message google.protobuf.BoolValue
  165. ```
  166. Attributes:
  167. value:
  168. The bool value.
  169. ```proto
  170. bool value = 1;
  171. ```
  172. """
  173. __slots__ = ("value",)
  174. if TYPE_CHECKING:
  175. def __init__(self, *, value: bool = False) -> None:
  176. pass
  177. value: bool
  178. _StringValueFields: TypeAlias = Literal["value"]
  179. class StringValue(Message[_StringValueFields]):
  180. """
  181. Wrapper message for `string`.
  182. The JSON representation for `StringValue` is JSON string.
  183. Not recommended for use in new APIs, but still useful for legacy APIs and
  184. has no plan to be removed.
  185. ```proto
  186. message google.protobuf.StringValue
  187. ```
  188. Attributes:
  189. value:
  190. The string value.
  191. ```proto
  192. string value = 1;
  193. ```
  194. """
  195. __slots__ = ("value",)
  196. if TYPE_CHECKING:
  197. def __init__(self, *, value: str = "") -> None:
  198. pass
  199. value: str
  200. _BytesValueFields: TypeAlias = Literal["value"]
  201. class BytesValue(Message[_BytesValueFields]):
  202. """
  203. Wrapper message for `bytes`.
  204. The JSON representation for `BytesValue` is JSON string.
  205. Not recommended for use in new APIs, but still useful for legacy APIs and
  206. has no plan to be removed.
  207. ```proto
  208. message google.protobuf.BytesValue
  209. ```
  210. Attributes:
  211. value:
  212. The bytes value.
  213. ```proto
  214. bytes value = 1;
  215. ```
  216. """
  217. __slots__ = ("value",)
  218. if TYPE_CHECKING:
  219. def __init__(self, *, value: bytes = b"") -> None:
  220. pass
  221. value: bytes
  222. _DESC = file_desc(
  223. b'\n\x1egoogle/protobuf/wrappers.proto\x12\x0fgoogle.protobuf"#\n\x0bDoubleValue\x12\x14\n\x05value\x18\x01 \x01(\x01R\x05value""\n\nFloatValue\x12\x14\n\x05value\x18\x01 \x01(\x02R\x05value""\n\nInt64Value\x12\x14\n\x05value\x18\x01 \x01(\x03R\x05value"#\n\x0bUInt64Value\x12\x14\n\x05value\x18\x01 \x01(\x04R\x05value""\n\nInt32Value\x12\x14\n\x05value\x18\x01 \x01(\x05R\x05value"#\n\x0bUInt32Value\x12\x14\n\x05value\x18\x01 \x01(\rR\x05value"!\n\tBoolValue\x12\x14\n\x05value\x18\x01 \x01(\x08R\x05value"#\n\x0bStringValue\x12\x14\n\x05value\x18\x01 \x01(\tR\x05value""\n\nBytesValue\x12\x14\n\x05value\x18\x01 \x01(\x0cR\x05valueB\x83\x01\n\x13com.google.protobufB\rWrappersProtoP\x01Z1google.golang.org/protobuf/types/known/wrapperspb\xf8\x01\x01\xa2\x02\x03GPB\xaa\x02\x1eGoogle.Protobuf.WellKnownTypesb\x06proto3',
  224. [],
  225. {
  226. "DoubleValue": DoubleValue,
  227. "FloatValue": FloatValue,
  228. "Int64Value": Int64Value,
  229. "UInt64Value": UInt64Value,
  230. "Int32Value": Int32Value,
  231. "UInt32Value": UInt32Value,
  232. "BoolValue": BoolValue,
  233. "StringValue": StringValue,
  234. "BytesValue": BytesValue,
  235. },
  236. )
  237. def desc() -> DescFile:
  238. """Returns the descriptor for the file `google/protobuf/wrappers.proto`."""
  239. return _DESC