Descriptor.php 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: google/protobuf/descriptor.proto
  4. namespace GPBMetadata\Google\Protobuf\Internal;
  5. class Descriptor
  6. {
  7. public static $is_initialized = false;
  8. public static function initOnce() {
  9. $pool = \Google\Protobuf\Internal\DescriptorPool::getGeneratedPool();
  10. if (static::$is_initialized == true) {
  11. return;
  12. }
  13. $pool->addMessage('google.protobuf.internal.FileDescriptorSet', \Google\Protobuf\Internal\FileDescriptorSet::class)
  14. ->repeated('file', \Google\Protobuf\Internal\GPBType::MESSAGE, 1, 'google.protobuf.internal.FileDescriptorProto')
  15. ->finalizeToPool();
  16. $pool->addMessage('google.protobuf.internal.FileDescriptorProto', \Google\Protobuf\Internal\FileDescriptorProto::class)
  17. ->optional('name', \Google\Protobuf\Internal\GPBType::STRING, 1)
  18. ->optional('package', \Google\Protobuf\Internal\GPBType::STRING, 2)
  19. ->repeated('dependency', \Google\Protobuf\Internal\GPBType::STRING, 3)
  20. ->repeated('public_dependency', \Google\Protobuf\Internal\GPBType::INT32, 10)
  21. ->repeated('weak_dependency', \Google\Protobuf\Internal\GPBType::INT32, 11)
  22. ->repeated('message_type', \Google\Protobuf\Internal\GPBType::MESSAGE, 4, 'google.protobuf.internal.DescriptorProto')
  23. ->repeated('enum_type', \Google\Protobuf\Internal\GPBType::MESSAGE, 5, 'google.protobuf.internal.EnumDescriptorProto')
  24. ->repeated('service', \Google\Protobuf\Internal\GPBType::MESSAGE, 6, 'google.protobuf.internal.ServiceDescriptorProto')
  25. ->repeated('extension', \Google\Protobuf\Internal\GPBType::MESSAGE, 7, 'google.protobuf.internal.FieldDescriptorProto')
  26. ->optional('options', \Google\Protobuf\Internal\GPBType::MESSAGE, 8, 'google.protobuf.internal.FileOptions')
  27. ->optional('source_code_info', \Google\Protobuf\Internal\GPBType::MESSAGE, 9, 'google.protobuf.internal.SourceCodeInfo')
  28. ->optional('syntax', \Google\Protobuf\Internal\GPBType::STRING, 12)
  29. ->finalizeToPool();
  30. $pool->addMessage('google.protobuf.internal.DescriptorProto', \Google\Protobuf\Internal\DescriptorProto::class)
  31. ->optional('name', \Google\Protobuf\Internal\GPBType::STRING, 1)
  32. ->repeated('field', \Google\Protobuf\Internal\GPBType::MESSAGE, 2, 'google.protobuf.internal.FieldDescriptorProto')
  33. ->repeated('extension', \Google\Protobuf\Internal\GPBType::MESSAGE, 6, 'google.protobuf.internal.FieldDescriptorProto')
  34. ->repeated('nested_type', \Google\Protobuf\Internal\GPBType::MESSAGE, 3, 'google.protobuf.internal.DescriptorProto')
  35. ->repeated('enum_type', \Google\Protobuf\Internal\GPBType::MESSAGE, 4, 'google.protobuf.internal.EnumDescriptorProto')
  36. ->repeated('extension_range', \Google\Protobuf\Internal\GPBType::MESSAGE, 5, 'google.protobuf.internal.DescriptorProto.ExtensionRange')
  37. ->repeated('oneof_decl', \Google\Protobuf\Internal\GPBType::MESSAGE, 8, 'google.protobuf.internal.OneofDescriptorProto')
  38. ->optional('options', \Google\Protobuf\Internal\GPBType::MESSAGE, 7, 'google.protobuf.internal.MessageOptions')
  39. ->repeated('reserved_range', \Google\Protobuf\Internal\GPBType::MESSAGE, 9, 'google.protobuf.internal.DescriptorProto.ReservedRange')
  40. ->repeated('reserved_name', \Google\Protobuf\Internal\GPBType::STRING, 10)
  41. ->finalizeToPool();
  42. $pool->addMessage('google.protobuf.internal.DescriptorProto.ExtensionRange', \Google\Protobuf\Internal\DescriptorProto_ExtensionRange::class)
  43. ->optional('start', \Google\Protobuf\Internal\GPBType::INT32, 1)
  44. ->optional('end', \Google\Protobuf\Internal\GPBType::INT32, 2)
  45. ->optional('options', \Google\Protobuf\Internal\GPBType::MESSAGE, 3, 'google.protobuf.internal.ExtensionRangeOptions')
  46. ->finalizeToPool();
  47. $pool->addMessage('google.protobuf.internal.DescriptorProto.ReservedRange', \Google\Protobuf\Internal\DescriptorProto_ReservedRange::class)
  48. ->optional('start', \Google\Protobuf\Internal\GPBType::INT32, 1)
  49. ->optional('end', \Google\Protobuf\Internal\GPBType::INT32, 2)
  50. ->finalizeToPool();
  51. $pool->addMessage('google.protobuf.internal.ExtensionRangeOptions', \Google\Protobuf\Internal\ExtensionRangeOptions::class)
  52. ->repeated('uninterpreted_option', \Google\Protobuf\Internal\GPBType::MESSAGE, 999, 'google.protobuf.internal.UninterpretedOption')
  53. ->finalizeToPool();
  54. $pool->addMessage('google.protobuf.internal.FieldDescriptorProto', \Google\Protobuf\Internal\FieldDescriptorProto::class)
  55. ->optional('name', \Google\Protobuf\Internal\GPBType::STRING, 1)
  56. ->optional('number', \Google\Protobuf\Internal\GPBType::INT32, 3)
  57. ->optional('label', \Google\Protobuf\Internal\GPBType::ENUM, 4, 'google.protobuf.internal.FieldDescriptorProto.Label')
  58. ->optional('type', \Google\Protobuf\Internal\GPBType::ENUM, 5, 'google.protobuf.internal.FieldDescriptorProto.Type')
  59. ->optional('type_name', \Google\Protobuf\Internal\GPBType::STRING, 6)
  60. ->optional('extendee', \Google\Protobuf\Internal\GPBType::STRING, 2)
  61. ->optional('default_value', \Google\Protobuf\Internal\GPBType::STRING, 7)
  62. ->optional('oneof_index', \Google\Protobuf\Internal\GPBType::INT32, 9)
  63. ->optional('json_name', \Google\Protobuf\Internal\GPBType::STRING, 10)
  64. ->optional('options', \Google\Protobuf\Internal\GPBType::MESSAGE, 8, 'google.protobuf.internal.FieldOptions')
  65. ->finalizeToPool();
  66. $pool->addEnum('google.protobuf.internal.FieldDescriptorProto.Type', \Google\Protobuf\Internal\Type::class)
  67. ->value("TYPE_DOUBLE", 1)
  68. ->value("TYPE_FLOAT", 2)
  69. ->value("TYPE_INT64", 3)
  70. ->value("TYPE_UINT64", 4)
  71. ->value("TYPE_INT32", 5)
  72. ->value("TYPE_FIXED64", 6)
  73. ->value("TYPE_FIXED32", 7)
  74. ->value("TYPE_BOOL", 8)
  75. ->value("TYPE_STRING", 9)
  76. ->value("TYPE_GROUP", 10)
  77. ->value("TYPE_MESSAGE", 11)
  78. ->value("TYPE_BYTES", 12)
  79. ->value("TYPE_UINT32", 13)
  80. ->value("TYPE_ENUM", 14)
  81. ->value("TYPE_SFIXED32", 15)
  82. ->value("TYPE_SFIXED64", 16)
  83. ->value("TYPE_SINT32", 17)
  84. ->value("TYPE_SINT64", 18)
  85. ->finalizeToPool();
  86. $pool->addEnum('google.protobuf.internal.FieldDescriptorProto.Label', \Google\Protobuf\Internal\Label::class)
  87. ->value("LABEL_OPTIONAL", 1)
  88. ->value("LABEL_REQUIRED", 2)
  89. ->value("LABEL_REPEATED", 3)
  90. ->finalizeToPool();
  91. $pool->addMessage('google.protobuf.internal.OneofDescriptorProto', \Google\Protobuf\Internal\OneofDescriptorProto::class)
  92. ->optional('name', \Google\Protobuf\Internal\GPBType::STRING, 1)
  93. ->optional('options', \Google\Protobuf\Internal\GPBType::MESSAGE, 2, 'google.protobuf.internal.OneofOptions')
  94. ->finalizeToPool();
  95. $pool->addMessage('google.protobuf.internal.EnumDescriptorProto', \Google\Protobuf\Internal\EnumDescriptorProto::class)
  96. ->optional('name', \Google\Protobuf\Internal\GPBType::STRING, 1)
  97. ->repeated('value', \Google\Protobuf\Internal\GPBType::MESSAGE, 2, 'google.protobuf.internal.EnumValueDescriptorProto')
  98. ->optional('options', \Google\Protobuf\Internal\GPBType::MESSAGE, 3, 'google.protobuf.internal.EnumOptions')
  99. ->repeated('reserved_range', \Google\Protobuf\Internal\GPBType::MESSAGE, 4, 'google.protobuf.internal.EnumDescriptorProto.EnumReservedRange')
  100. ->repeated('reserved_name', \Google\Protobuf\Internal\GPBType::STRING, 5)
  101. ->finalizeToPool();
  102. $pool->addMessage('google.protobuf.internal.EnumDescriptorProto.EnumReservedRange', \Google\Protobuf\Internal\EnumDescriptorProto_EnumReservedRange::class)
  103. ->optional('start', \Google\Protobuf\Internal\GPBType::INT32, 1)
  104. ->optional('end', \Google\Protobuf\Internal\GPBType::INT32, 2)
  105. ->finalizeToPool();
  106. $pool->addMessage('google.protobuf.internal.EnumValueDescriptorProto', \Google\Protobuf\Internal\EnumValueDescriptorProto::class)
  107. ->optional('name', \Google\Protobuf\Internal\GPBType::STRING, 1)
  108. ->optional('number', \Google\Protobuf\Internal\GPBType::INT32, 2)
  109. ->optional('options', \Google\Protobuf\Internal\GPBType::MESSAGE, 3, 'google.protobuf.internal.EnumValueOptions')
  110. ->finalizeToPool();
  111. $pool->addMessage('google.protobuf.internal.ServiceDescriptorProto', \Google\Protobuf\Internal\ServiceDescriptorProto::class)
  112. ->optional('name', \Google\Protobuf\Internal\GPBType::STRING, 1)
  113. ->repeated('method', \Google\Protobuf\Internal\GPBType::MESSAGE, 2, 'google.protobuf.internal.MethodDescriptorProto')
  114. ->optional('options', \Google\Protobuf\Internal\GPBType::MESSAGE, 3, 'google.protobuf.internal.ServiceOptions')
  115. ->finalizeToPool();
  116. $pool->addMessage('google.protobuf.internal.MethodDescriptorProto', \Google\Protobuf\Internal\MethodDescriptorProto::class)
  117. ->optional('name', \Google\Protobuf\Internal\GPBType::STRING, 1)
  118. ->optional('input_type', \Google\Protobuf\Internal\GPBType::STRING, 2)
  119. ->optional('output_type', \Google\Protobuf\Internal\GPBType::STRING, 3)
  120. ->optional('options', \Google\Protobuf\Internal\GPBType::MESSAGE, 4, 'google.protobuf.internal.MethodOptions')
  121. ->optional('client_streaming', \Google\Protobuf\Internal\GPBType::BOOL, 5)
  122. ->optional('server_streaming', \Google\Protobuf\Internal\GPBType::BOOL, 6)
  123. ->finalizeToPool();
  124. $pool->addMessage('google.protobuf.internal.FileOptions', \Google\Protobuf\Internal\FileOptions::class)
  125. ->optional('java_package', \Google\Protobuf\Internal\GPBType::STRING, 1)
  126. ->optional('java_outer_classname', \Google\Protobuf\Internal\GPBType::STRING, 8)
  127. ->optional('java_multiple_files', \Google\Protobuf\Internal\GPBType::BOOL, 10)
  128. ->optional('java_generate_equals_and_hash', \Google\Protobuf\Internal\GPBType::BOOL, 20)
  129. ->optional('java_string_check_utf8', \Google\Protobuf\Internal\GPBType::BOOL, 27)
  130. ->optional('optimize_for', \Google\Protobuf\Internal\GPBType::ENUM, 9, 'google.protobuf.internal.FileOptions.OptimizeMode')
  131. ->optional('go_package', \Google\Protobuf\Internal\GPBType::STRING, 11)
  132. ->optional('cc_generic_services', \Google\Protobuf\Internal\GPBType::BOOL, 16)
  133. ->optional('java_generic_services', \Google\Protobuf\Internal\GPBType::BOOL, 17)
  134. ->optional('py_generic_services', \Google\Protobuf\Internal\GPBType::BOOL, 18)
  135. ->optional('php_generic_services', \Google\Protobuf\Internal\GPBType::BOOL, 42)
  136. ->optional('deprecated', \Google\Protobuf\Internal\GPBType::BOOL, 23)
  137. ->optional('cc_enable_arenas', \Google\Protobuf\Internal\GPBType::BOOL, 31)
  138. ->optional('objc_class_prefix', \Google\Protobuf\Internal\GPBType::STRING, 36)
  139. ->optional('csharp_namespace', \Google\Protobuf\Internal\GPBType::STRING, 37)
  140. ->optional('swift_prefix', \Google\Protobuf\Internal\GPBType::STRING, 39)
  141. ->optional('php_class_prefix', \Google\Protobuf\Internal\GPBType::STRING, 40)
  142. ->optional('php_namespace', \Google\Protobuf\Internal\GPBType::STRING, 41)
  143. ->optional('php_metadata_namespace', \Google\Protobuf\Internal\GPBType::STRING, 44)
  144. ->optional('ruby_package', \Google\Protobuf\Internal\GPBType::STRING, 45)
  145. ->repeated('uninterpreted_option', \Google\Protobuf\Internal\GPBType::MESSAGE, 999, 'google.protobuf.internal.UninterpretedOption')
  146. ->finalizeToPool();
  147. $pool->addEnum('google.protobuf.internal.FileOptions.OptimizeMode', \Google\Protobuf\Internal\OptimizeMode::class)
  148. ->value("SPEED", 1)
  149. ->value("CODE_SIZE", 2)
  150. ->value("LITE_RUNTIME", 3)
  151. ->finalizeToPool();
  152. $pool->addMessage('google.protobuf.internal.MessageOptions', \Google\Protobuf\Internal\MessageOptions::class)
  153. ->optional('message_set_wire_format', \Google\Protobuf\Internal\GPBType::BOOL, 1)
  154. ->optional('no_standard_descriptor_accessor', \Google\Protobuf\Internal\GPBType::BOOL, 2)
  155. ->optional('deprecated', \Google\Protobuf\Internal\GPBType::BOOL, 3)
  156. ->optional('map_entry', \Google\Protobuf\Internal\GPBType::BOOL, 7)
  157. ->repeated('uninterpreted_option', \Google\Protobuf\Internal\GPBType::MESSAGE, 999, 'google.protobuf.internal.UninterpretedOption')
  158. ->finalizeToPool();
  159. $pool->addMessage('google.protobuf.internal.FieldOptions', \Google\Protobuf\Internal\FieldOptions::class)
  160. ->optional('ctype', \Google\Protobuf\Internal\GPBType::ENUM, 1, 'google.protobuf.internal.FieldOptions.CType')
  161. ->optional('packed', \Google\Protobuf\Internal\GPBType::BOOL, 2)
  162. ->optional('jstype', \Google\Protobuf\Internal\GPBType::ENUM, 6, 'google.protobuf.internal.FieldOptions.JSType')
  163. ->optional('lazy', \Google\Protobuf\Internal\GPBType::BOOL, 5)
  164. ->optional('deprecated', \Google\Protobuf\Internal\GPBType::BOOL, 3)
  165. ->optional('weak', \Google\Protobuf\Internal\GPBType::BOOL, 10)
  166. ->repeated('uninterpreted_option', \Google\Protobuf\Internal\GPBType::MESSAGE, 999, 'google.protobuf.internal.UninterpretedOption')
  167. ->finalizeToPool();
  168. $pool->addEnum('google.protobuf.internal.FieldOptions.CType', \Google\Protobuf\Internal\CType::class)
  169. ->value("STRING", 0)
  170. ->value("CORD", 1)
  171. ->value("STRING_PIECE", 2)
  172. ->finalizeToPool();
  173. $pool->addEnum('google.protobuf.internal.FieldOptions.JSType', \Google\Protobuf\Internal\JSType::class)
  174. ->value("JS_NORMAL", 0)
  175. ->value("JS_STRING", 1)
  176. ->value("JS_NUMBER", 2)
  177. ->finalizeToPool();
  178. $pool->addMessage('google.protobuf.internal.OneofOptions', \Google\Protobuf\Internal\OneofOptions::class)
  179. ->repeated('uninterpreted_option', \Google\Protobuf\Internal\GPBType::MESSAGE, 999, 'google.protobuf.internal.UninterpretedOption')
  180. ->finalizeToPool();
  181. $pool->addMessage('google.protobuf.internal.EnumOptions', \Google\Protobuf\Internal\EnumOptions::class)
  182. ->optional('allow_alias', \Google\Protobuf\Internal\GPBType::BOOL, 2)
  183. ->optional('deprecated', \Google\Protobuf\Internal\GPBType::BOOL, 3)
  184. ->repeated('uninterpreted_option', \Google\Protobuf\Internal\GPBType::MESSAGE, 999, 'google.protobuf.internal.UninterpretedOption')
  185. ->finalizeToPool();
  186. $pool->addMessage('google.protobuf.internal.EnumValueOptions', \Google\Protobuf\Internal\EnumValueOptions::class)
  187. ->optional('deprecated', \Google\Protobuf\Internal\GPBType::BOOL, 1)
  188. ->repeated('uninterpreted_option', \Google\Protobuf\Internal\GPBType::MESSAGE, 999, 'google.protobuf.internal.UninterpretedOption')
  189. ->finalizeToPool();
  190. $pool->addMessage('google.protobuf.internal.ServiceOptions', \Google\Protobuf\Internal\ServiceOptions::class)
  191. ->optional('deprecated', \Google\Protobuf\Internal\GPBType::BOOL, 33)
  192. ->repeated('uninterpreted_option', \Google\Protobuf\Internal\GPBType::MESSAGE, 999, 'google.protobuf.internal.UninterpretedOption')
  193. ->finalizeToPool();
  194. $pool->addMessage('google.protobuf.internal.MethodOptions', \Google\Protobuf\Internal\MethodOptions::class)
  195. ->optional('deprecated', \Google\Protobuf\Internal\GPBType::BOOL, 33)
  196. ->optional('idempotency_level', \Google\Protobuf\Internal\GPBType::ENUM, 34, 'google.protobuf.internal.MethodOptions.IdempotencyLevel')
  197. ->repeated('uninterpreted_option', \Google\Protobuf\Internal\GPBType::MESSAGE, 999, 'google.protobuf.internal.UninterpretedOption')
  198. ->finalizeToPool();
  199. $pool->addEnum('google.protobuf.internal.MethodOptions.IdempotencyLevel', \Google\Protobuf\Internal\IdempotencyLevel::class)
  200. ->value("IDEMPOTENCY_UNKNOWN", 0)
  201. ->value("NO_SIDE_EFFECTS", 1)
  202. ->value("IDEMPOTENT", 2)
  203. ->finalizeToPool();
  204. $pool->addMessage('google.protobuf.internal.UninterpretedOption', \Google\Protobuf\Internal\UninterpretedOption::class)
  205. ->repeated('name', \Google\Protobuf\Internal\GPBType::MESSAGE, 2, 'google.protobuf.internal.UninterpretedOption.NamePart')
  206. ->optional('identifier_value', \Google\Protobuf\Internal\GPBType::STRING, 3)
  207. ->optional('positive_int_value', \Google\Protobuf\Internal\GPBType::UINT64, 4)
  208. ->optional('negative_int_value', \Google\Protobuf\Internal\GPBType::INT64, 5)
  209. ->optional('double_value', \Google\Protobuf\Internal\GPBType::DOUBLE, 6)
  210. ->optional('string_value', \Google\Protobuf\Internal\GPBType::BYTES, 7)
  211. ->optional('aggregate_value', \Google\Protobuf\Internal\GPBType::STRING, 8)
  212. ->finalizeToPool();
  213. $pool->addMessage('google.protobuf.internal.UninterpretedOption.NamePart', \Google\Protobuf\Internal\UninterpretedOption_NamePart::class)
  214. ->required('name_part', \Google\Protobuf\Internal\GPBType::STRING, 1)
  215. ->required('is_extension', \Google\Protobuf\Internal\GPBType::BOOL, 2)
  216. ->finalizeToPool();
  217. $pool->addMessage('google.protobuf.internal.SourceCodeInfo', \Google\Protobuf\Internal\SourceCodeInfo::class)
  218. ->repeated('location', \Google\Protobuf\Internal\GPBType::MESSAGE, 1, 'google.protobuf.internal.SourceCodeInfo.Location')
  219. ->finalizeToPool();
  220. $pool->addMessage('google.protobuf.internal.SourceCodeInfo.Location', \Google\Protobuf\Internal\SourceCodeInfo_Location::class)
  221. ->repeated('path', \Google\Protobuf\Internal\GPBType::INT32, 1)
  222. ->repeated('span', \Google\Protobuf\Internal\GPBType::INT32, 2)
  223. ->optional('leading_comments', \Google\Protobuf\Internal\GPBType::STRING, 3)
  224. ->optional('trailing_comments', \Google\Protobuf\Internal\GPBType::STRING, 4)
  225. ->repeated('leading_detached_comments', \Google\Protobuf\Internal\GPBType::STRING, 6)
  226. ->finalizeToPool();
  227. $pool->addMessage('google.protobuf.internal.GeneratedCodeInfo', \Google\Protobuf\Internal\GeneratedCodeInfo::class)
  228. ->repeated('annotation', \Google\Protobuf\Internal\GPBType::MESSAGE, 1, 'google.protobuf.internal.GeneratedCodeInfo.Annotation')
  229. ->finalizeToPool();
  230. $pool->addMessage('google.protobuf.internal.GeneratedCodeInfo.Annotation', \Google\Protobuf\Internal\GeneratedCodeInfo_Annotation::class)
  231. ->repeated('path', \Google\Protobuf\Internal\GPBType::INT32, 1)
  232. ->optional('source_file', \Google\Protobuf\Internal\GPBType::STRING, 2)
  233. ->optional('begin', \Google\Protobuf\Internal\GPBType::INT32, 3)
  234. ->optional('end', \Google\Protobuf\Internal\GPBType::INT32, 4)
  235. ->finalizeToPool();
  236. $pool->finish();
  237. static::$is_initialized = true;
  238. }
  239. }