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