__init__.py 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  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. """Protobuf Well-Known types."""
  15. from __future__ import annotations
  16. from ._gen import (
  17. any_pb,
  18. api_pb,
  19. c_sharp_features_pb,
  20. cpp_features_pb,
  21. descriptor_pb,
  22. duration_pb,
  23. empty_pb,
  24. field_mask_pb,
  25. go_features_pb,
  26. java_features_pb,
  27. source_context_pb,
  28. struct_pb,
  29. timestamp_pb,
  30. type_pb,
  31. wrappers_pb,
  32. )
  33. from ._gen.any_pb import Any
  34. from ._gen.api_pb import Api, Method, Mixin
  35. from ._gen.c_sharp_features_pb import CSharpFeatures, ext_csharp
  36. from ._gen.compiler import plugin_pb
  37. from ._gen.compiler.plugin_pb import (
  38. CodeGeneratorRequest,
  39. CodeGeneratorResponse,
  40. Version,
  41. )
  42. from ._gen.cpp_features_pb import CppFeatures, ext_cpp
  43. from ._gen.descriptor_pb import (
  44. DescriptorProto,
  45. Edition,
  46. EnumDescriptorProto,
  47. EnumOptions,
  48. EnumValueDescriptorProto,
  49. EnumValueOptions,
  50. ExtensionRangeOptions,
  51. FeatureSet,
  52. FeatureSetDefaults,
  53. FieldDescriptorProto,
  54. FieldOptions,
  55. FileDescriptorProto,
  56. FileDescriptorSet,
  57. FileOptions,
  58. GeneratedCodeInfo,
  59. MessageOptions,
  60. MethodDescriptorProto,
  61. MethodOptions,
  62. OneofDescriptorProto,
  63. OneofOptions,
  64. ServiceDescriptorProto,
  65. ServiceOptions,
  66. SourceCodeInfo,
  67. SymbolVisibility,
  68. UninterpretedOption,
  69. )
  70. from ._gen.duration_pb import Duration
  71. from ._gen.empty_pb import Empty
  72. from ._gen.field_mask_pb import FieldMask
  73. from ._gen.go_features_pb import GoFeatures, ext_go
  74. from ._gen.java_features_pb import JavaFeatures, ext_java
  75. from ._gen.source_context_pb import SourceContext
  76. from ._gen.struct_pb import ListValue, NullValue, Struct, Value
  77. from ._gen.timestamp_pb import Timestamp
  78. from ._gen.type_pb import Enum, EnumValue, Field, Option, Syntax, Type
  79. from ._gen.wrappers_pb import (
  80. BoolValue,
  81. BytesValue,
  82. DoubleValue,
  83. FloatValue,
  84. Int32Value,
  85. Int64Value,
  86. StringValue,
  87. UInt32Value,
  88. UInt64Value,
  89. )
  90. __all__ = [
  91. "Any",
  92. "Api",
  93. "BoolValue",
  94. "BytesValue",
  95. "CSharpFeatures",
  96. "CodeGeneratorRequest",
  97. "CodeGeneratorResponse",
  98. "CppFeatures",
  99. "DescriptorProto",
  100. "DoubleValue",
  101. "Duration",
  102. "Edition",
  103. "Empty",
  104. "Enum",
  105. "EnumDescriptorProto",
  106. "EnumOptions",
  107. "EnumValue",
  108. "EnumValueDescriptorProto",
  109. "EnumValueOptions",
  110. "ExtensionRangeOptions",
  111. "FeatureSet",
  112. "FeatureSetDefaults",
  113. "Field",
  114. "FieldDescriptorProto",
  115. "FieldMask",
  116. "FieldOptions",
  117. "FileDescriptorProto",
  118. "FileDescriptorSet",
  119. "FileOptions",
  120. "FloatValue",
  121. "GeneratedCodeInfo",
  122. "GoFeatures",
  123. "Int32Value",
  124. "Int64Value",
  125. "JavaFeatures",
  126. "ListValue",
  127. "MessageOptions",
  128. "Method",
  129. "MethodDescriptorProto",
  130. "MethodOptions",
  131. "Mixin",
  132. "NullValue",
  133. "OneofDescriptorProto",
  134. "OneofOptions",
  135. "Option",
  136. "ServiceDescriptorProto",
  137. "ServiceOptions",
  138. "SourceCodeInfo",
  139. "SourceContext",
  140. "StringValue",
  141. "Struct",
  142. "SymbolVisibility",
  143. "Syntax",
  144. "Timestamp",
  145. "Type",
  146. "UInt32Value",
  147. "UInt64Value",
  148. "UninterpretedOption",
  149. "Value",
  150. "Version",
  151. "any_pb",
  152. "api_pb",
  153. "c_sharp_features_pb",
  154. "cpp_features_pb",
  155. "descriptor_pb",
  156. "duration_pb",
  157. "empty_pb",
  158. "ext_cpp",
  159. "ext_csharp",
  160. "ext_go",
  161. "ext_java",
  162. "field_mask_pb",
  163. "go_features_pb",
  164. "java_features_pb",
  165. "plugin_pb",
  166. "source_context_pb",
  167. "struct_pb",
  168. "timestamp_pb",
  169. "type_pb",
  170. "wrappers_pb",
  171. ]