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