xref: /aosp_15_r20/external/cronet/third_party/protobuf/php/src/GPBMetadata/Google/Protobuf/Internal/Descriptor.php (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
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('unverified_lazy', \Google\Protobuf\Internal\GPBType::BOOL, 15)
188            ->optional('deprecated', \Google\Protobuf\Internal\GPBType::BOOL, 3)
189            ->optional('weak', \Google\Protobuf\Internal\GPBType::BOOL, 10)
190            ->repeated('uninterpreted_option', \Google\Protobuf\Internal\GPBType::MESSAGE, 999, 'google.protobuf.internal.UninterpretedOption')
191            ->finalizeToPool();
192
193        $pool->addEnum('google.protobuf.internal.FieldOptions.CType', \Google\Protobuf\Internal\CType::class)
194            ->value("STRING", 0)
195            ->value("CORD", 1)
196            ->value("STRING_PIECE", 2)
197            ->finalizeToPool();
198
199        $pool->addEnum('google.protobuf.internal.FieldOptions.JSType', \Google\Protobuf\Internal\JSType::class)
200            ->value("JS_NORMAL", 0)
201            ->value("JS_STRING", 1)
202            ->value("JS_NUMBER", 2)
203            ->finalizeToPool();
204
205        $pool->addMessage('google.protobuf.internal.OneofOptions', \Google\Protobuf\Internal\OneofOptions::class)
206            ->repeated('uninterpreted_option', \Google\Protobuf\Internal\GPBType::MESSAGE, 999, 'google.protobuf.internal.UninterpretedOption')
207            ->finalizeToPool();
208
209        $pool->addMessage('google.protobuf.internal.EnumOptions', \Google\Protobuf\Internal\EnumOptions::class)
210            ->optional('allow_alias', \Google\Protobuf\Internal\GPBType::BOOL, 2)
211            ->optional('deprecated', \Google\Protobuf\Internal\GPBType::BOOL, 3)
212            ->repeated('uninterpreted_option', \Google\Protobuf\Internal\GPBType::MESSAGE, 999, 'google.protobuf.internal.UninterpretedOption')
213            ->finalizeToPool();
214
215        $pool->addMessage('google.protobuf.internal.EnumValueOptions', \Google\Protobuf\Internal\EnumValueOptions::class)
216            ->optional('deprecated', \Google\Protobuf\Internal\GPBType::BOOL, 1)
217            ->repeated('uninterpreted_option', \Google\Protobuf\Internal\GPBType::MESSAGE, 999, 'google.protobuf.internal.UninterpretedOption')
218            ->finalizeToPool();
219
220        $pool->addMessage('google.protobuf.internal.ServiceOptions', \Google\Protobuf\Internal\ServiceOptions::class)
221            ->optional('deprecated', \Google\Protobuf\Internal\GPBType::BOOL, 33)
222            ->repeated('uninterpreted_option', \Google\Protobuf\Internal\GPBType::MESSAGE, 999, 'google.protobuf.internal.UninterpretedOption')
223            ->finalizeToPool();
224
225        $pool->addMessage('google.protobuf.internal.MethodOptions', \Google\Protobuf\Internal\MethodOptions::class)
226            ->optional('deprecated', \Google\Protobuf\Internal\GPBType::BOOL, 33)
227            ->optional('idempotency_level', \Google\Protobuf\Internal\GPBType::ENUM, 34, 'google.protobuf.internal.MethodOptions.IdempotencyLevel')
228            ->repeated('uninterpreted_option', \Google\Protobuf\Internal\GPBType::MESSAGE, 999, 'google.protobuf.internal.UninterpretedOption')
229            ->finalizeToPool();
230
231        $pool->addEnum('google.protobuf.internal.MethodOptions.IdempotencyLevel', \Google\Protobuf\Internal\IdempotencyLevel::class)
232            ->value("IDEMPOTENCY_UNKNOWN", 0)
233            ->value("NO_SIDE_EFFECTS", 1)
234            ->value("IDEMPOTENT", 2)
235            ->finalizeToPool();
236
237        $pool->addMessage('google.protobuf.internal.UninterpretedOption', \Google\Protobuf\Internal\UninterpretedOption::class)
238            ->repeated('name', \Google\Protobuf\Internal\GPBType::MESSAGE, 2, 'google.protobuf.internal.UninterpretedOption.NamePart')
239            ->optional('identifier_value', \Google\Protobuf\Internal\GPBType::STRING, 3)
240            ->optional('positive_int_value', \Google\Protobuf\Internal\GPBType::UINT64, 4)
241            ->optional('negative_int_value', \Google\Protobuf\Internal\GPBType::INT64, 5)
242            ->optional('double_value', \Google\Protobuf\Internal\GPBType::DOUBLE, 6)
243            ->optional('string_value', \Google\Protobuf\Internal\GPBType::BYTES, 7)
244            ->optional('aggregate_value', \Google\Protobuf\Internal\GPBType::STRING, 8)
245            ->finalizeToPool();
246
247        $pool->addMessage('google.protobuf.internal.UninterpretedOption.NamePart', \Google\Protobuf\Internal\UninterpretedOption\NamePart::class)
248            ->required('name_part', \Google\Protobuf\Internal\GPBType::STRING, 1)
249            ->required('is_extension', \Google\Protobuf\Internal\GPBType::BOOL, 2)
250            ->finalizeToPool();
251
252        $pool->addMessage('google.protobuf.internal.SourceCodeInfo', \Google\Protobuf\Internal\SourceCodeInfo::class)
253            ->repeated('location', \Google\Protobuf\Internal\GPBType::MESSAGE, 1, 'google.protobuf.internal.SourceCodeInfo.Location')
254            ->finalizeToPool();
255
256        $pool->addMessage('google.protobuf.internal.SourceCodeInfo.Location', \Google\Protobuf\Internal\SourceCodeInfo\Location::class)
257            ->repeated('path', \Google\Protobuf\Internal\GPBType::INT32, 1)
258            ->repeated('span', \Google\Protobuf\Internal\GPBType::INT32, 2)
259            ->optional('leading_comments', \Google\Protobuf\Internal\GPBType::STRING, 3)
260            ->optional('trailing_comments', \Google\Protobuf\Internal\GPBType::STRING, 4)
261            ->repeated('leading_detached_comments', \Google\Protobuf\Internal\GPBType::STRING, 6)
262            ->finalizeToPool();
263
264        $pool->addMessage('google.protobuf.internal.GeneratedCodeInfo', \Google\Protobuf\Internal\GeneratedCodeInfo::class)
265            ->repeated('annotation', \Google\Protobuf\Internal\GPBType::MESSAGE, 1, 'google.protobuf.internal.GeneratedCodeInfo.Annotation')
266            ->finalizeToPool();
267
268        $pool->addMessage('google.protobuf.internal.GeneratedCodeInfo.Annotation', \Google\Protobuf\Internal\GeneratedCodeInfo\Annotation::class)
269            ->repeated('path', \Google\Protobuf\Internal\GPBType::INT32, 1)
270            ->optional('source_file', \Google\Protobuf\Internal\GPBType::STRING, 2)
271            ->optional('begin', \Google\Protobuf\Internal\GPBType::INT32, 3)
272            ->optional('end', \Google\Protobuf\Internal\GPBType::INT32, 4)
273            ->finalizeToPool();
274
275        $pool->finish();
276        static::$is_initialized = true;
277    }
278}
279
280