Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(119)

Side by Side Diff: third_party/protobuf/php/src/GPBMetadata/Google/Protobuf/Internal/Descriptor.php

Issue 2590803003: Revert "third_party/protobuf: Update to HEAD (83d681ee2c)" (Closed)
Patch Set: Created 3 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <?php
2 # Generated by the protocol buffer compiler. DO NOT EDIT!
3 # source: google/protobuf/descriptor.proto
4
5 namespace GPBMetadata\Google\Protobuf\Internal;
6
7 class 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, 'g oogle.protobuf.internal.FileDescriptorProto')
19 ->finalizeToPool();
20
21 $pool->addMessage('google.protobuf.internal.FileDescriptorProto', \Googl e\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::I NT32, 10)
26 ->repeated('weak_dependency', \Google\Protobuf\Internal\GPBType::INT 32, 11)
27 ->repeated('message_type', \Google\Protobuf\Internal\GPBType::MESSAG E, 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::ME SSAGE, 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\Pr otobuf\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::MES SAGE, 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::MESS AGE, 9, 'google.protobuf.internal.DescriptorProto.ReservedRange')
46 ->repeated('reserved_name', \Google\Protobuf\Internal\GPBType::STRIN G, 10)
47 ->finalizeToPool();
48
49 $pool->addMessage('google.protobuf.internal.DescriptorProto.ExtensionRan ge', \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 ->finalizeToPool();
53
54 $pool->addMessage('google.protobuf.internal.DescriptorProto.ReservedRang e', \Google\Protobuf\Internal\DescriptorProto_ReservedRange::class)
55 ->optional('start', \Google\Protobuf\Internal\GPBType::INT32, 1)
56 ->optional('end', \Google\Protobuf\Internal\GPBType::INT32, 2)
57 ->finalizeToPool();
58
59 $pool->addMessage('google.protobuf.internal.FieldDescriptorProto', \Goog le\Protobuf\Internal\FieldDescriptorProto::class)
60 ->optional('name', \Google\Protobuf\Internal\GPBType::STRING, 1)
61 ->optional('number', \Google\Protobuf\Internal\GPBType::INT32, 3)
62 ->optional('label', \Google\Protobuf\Internal\GPBType::ENUM, 4, 'goo gle.protobuf.internal.FieldDescriptorProto.Label')
63 ->optional('type', \Google\Protobuf\Internal\GPBType::ENUM, 5, 'goog le.protobuf.internal.FieldDescriptorProto.Type')
64 ->optional('type_name', \Google\Protobuf\Internal\GPBType::STRING, 6 )
65 ->optional('extendee', \Google\Protobuf\Internal\GPBType::STRING, 2)
66 ->optional('default_value', \Google\Protobuf\Internal\GPBType::STRIN G, 7)
67 ->optional('oneof_index', \Google\Protobuf\Internal\GPBType::INT32, 9)
68 ->optional('json_name', \Google\Protobuf\Internal\GPBType::STRING, 1 0)
69 ->optional('options', \Google\Protobuf\Internal\GPBType::MESSAGE, 8, 'google.protobuf.internal.FieldOptions')
70 ->finalizeToPool();
71
72 $pool->addEnum('google.protobuf.internal.FieldDescriptorProto.Type', \Go ogle\Protobuf\Internal\Type::class)
73 ->value("TYPE_DOUBLE", 1)
74 ->value("TYPE_FLOAT", 2)
75 ->value("TYPE_INT64", 3)
76 ->value("TYPE_UINT64", 4)
77 ->value("TYPE_INT32", 5)
78 ->value("TYPE_FIXED64", 6)
79 ->value("TYPE_FIXED32", 7)
80 ->value("TYPE_BOOL", 8)
81 ->value("TYPE_STRING", 9)
82 ->value("TYPE_GROUP", 10)
83 ->value("TYPE_MESSAGE", 11)
84 ->value("TYPE_BYTES", 12)
85 ->value("TYPE_UINT32", 13)
86 ->value("TYPE_ENUM", 14)
87 ->value("TYPE_SFIXED32", 15)
88 ->value("TYPE_SFIXED64", 16)
89 ->value("TYPE_SINT32", 17)
90 ->value("TYPE_SINT64", 18)
91 ->finalizeToPool();
92
93 $pool->addEnum('google.protobuf.internal.FieldDescriptorProto.Label', \G oogle\Protobuf\Internal\Label::class)
94 ->value("LABEL_OPTIONAL", 1)
95 ->value("LABEL_REQUIRED", 2)
96 ->value("LABEL_REPEATED", 3)
97 ->finalizeToPool();
98
99 $pool->addMessage('google.protobuf.internal.OneofDescriptorProto', \Goog le\Protobuf\Internal\OneofDescriptorProto::class)
100 ->optional('name', \Google\Protobuf\Internal\GPBType::STRING, 1)
101 ->optional('options', \Google\Protobuf\Internal\GPBType::MESSAGE, 2, 'google.protobuf.internal.OneofOptions')
102 ->finalizeToPool();
103
104 $pool->addMessage('google.protobuf.internal.EnumDescriptorProto', \Googl e\Protobuf\Internal\EnumDescriptorProto::class)
105 ->optional('name', \Google\Protobuf\Internal\GPBType::STRING, 1)
106 ->repeated('value', \Google\Protobuf\Internal\GPBType::MESSAGE, 2, ' google.protobuf.internal.EnumValueDescriptorProto')
107 ->optional('options', \Google\Protobuf\Internal\GPBType::MESSAGE, 3, 'google.protobuf.internal.EnumOptions')
108 ->finalizeToPool();
109
110 $pool->addMessage('google.protobuf.internal.EnumValueDescriptorProto', \ Google\Protobuf\Internal\EnumValueDescriptorProto::class)
111 ->optional('name', \Google\Protobuf\Internal\GPBType::STRING, 1)
112 ->optional('number', \Google\Protobuf\Internal\GPBType::INT32, 2)
113 ->optional('options', \Google\Protobuf\Internal\GPBType::MESSAGE, 3, 'google.protobuf.internal.EnumValueOptions')
114 ->finalizeToPool();
115
116 $pool->addMessage('google.protobuf.internal.ServiceDescriptorProto', \Go ogle\Protobuf\Internal\ServiceDescriptorProto::class)
117 ->optional('name', \Google\Protobuf\Internal\GPBType::STRING, 1)
118 ->repeated('method', \Google\Protobuf\Internal\GPBType::MESSAGE, 2, 'google.protobuf.internal.MethodDescriptorProto')
119 ->optional('options', \Google\Protobuf\Internal\GPBType::MESSAGE, 3, 'google.protobuf.internal.ServiceOptions')
120 ->finalizeToPool();
121
122 $pool->addMessage('google.protobuf.internal.MethodDescriptorProto', \Goo gle\Protobuf\Internal\MethodDescriptorProto::class)
123 ->optional('name', \Google\Protobuf\Internal\GPBType::STRING, 1)
124 ->optional('input_type', \Google\Protobuf\Internal\GPBType::STRING, 2)
125 ->optional('output_type', \Google\Protobuf\Internal\GPBType::STRING, 3)
126 ->optional('options', \Google\Protobuf\Internal\GPBType::MESSAGE, 4, 'google.protobuf.internal.MethodOptions')
127 ->optional('client_streaming', \Google\Protobuf\Internal\GPBType::BO OL, 5)
128 ->optional('server_streaming', \Google\Protobuf\Internal\GPBType::BO OL, 6)
129 ->finalizeToPool();
130
131 $pool->addMessage('google.protobuf.internal.FileOptions', \Google\Protob uf\Internal\FileOptions::class)
132 ->optional('java_package', \Google\Protobuf\Internal\GPBType::STRING , 1)
133 ->optional('java_outer_classname', \Google\Protobuf\Internal\GPBType ::STRING, 8)
134 ->optional('java_multiple_files', \Google\Protobuf\Internal\GPBType: :BOOL, 10)
135 ->optional('java_generate_equals_and_hash', \Google\Protobuf\Interna l\GPBType::BOOL, 20)
136 ->optional('java_string_check_utf8', \Google\Protobuf\Internal\GPBTy pe::BOOL, 27)
137 ->optional('optimize_for', \Google\Protobuf\Internal\GPBType::ENUM, 9, 'google.protobuf.internal.FileOptions.OptimizeMode')
138 ->optional('go_package', \Google\Protobuf\Internal\GPBType::STRING, 11)
139 ->optional('cc_generic_services', \Google\Protobuf\Internal\GPBType: :BOOL, 16)
140 ->optional('java_generic_services', \Google\Protobuf\Internal\GPBTyp e::BOOL, 17)
141 ->optional('py_generic_services', \Google\Protobuf\Internal\GPBType: :BOOL, 18)
142 ->optional('deprecated', \Google\Protobuf\Internal\GPBType::BOOL, 23 )
143 ->optional('cc_enable_arenas', \Google\Protobuf\Internal\GPBType::BO OL, 31)
144 ->optional('objc_class_prefix', \Google\Protobuf\Internal\GPBType::S TRING, 36)
145 ->optional('csharp_namespace', \Google\Protobuf\Internal\GPBType::ST RING, 37)
146 ->optional('swift_prefix', \Google\Protobuf\Internal\GPBType::STRING , 39)
147 ->repeated('uninterpreted_option', \Google\Protobuf\Internal\GPBType ::MESSAGE, 999, 'google.protobuf.internal.UninterpretedOption')
148 ->finalizeToPool();
149
150 $pool->addEnum('google.protobuf.internal.FileOptions.OptimizeMode', \Goo gle\Protobuf\Internal\OptimizeMode::class)
151 ->value("SPEED", 1)
152 ->value("CODE_SIZE", 2)
153 ->value("LITE_RUNTIME", 3)
154 ->finalizeToPool();
155
156 $pool->addMessage('google.protobuf.internal.MessageOptions', \Google\Pro tobuf\Internal\MessageOptions::class)
157 ->optional('message_set_wire_format', \Google\Protobuf\Internal\GPBT ype::BOOL, 1)
158 ->optional('no_standard_descriptor_accessor', \Google\Protobuf\Inter nal\GPBType::BOOL, 2)
159 ->optional('deprecated', \Google\Protobuf\Internal\GPBType::BOOL, 3)
160 ->optional('map_entry', \Google\Protobuf\Internal\GPBType::BOOL, 7)
161 ->repeated('uninterpreted_option', \Google\Protobuf\Internal\GPBType ::MESSAGE, 999, 'google.protobuf.internal.UninterpretedOption')
162 ->finalizeToPool();
163
164 $pool->addMessage('google.protobuf.internal.FieldOptions', \Google\Proto buf\Internal\FieldOptions::class)
165 ->optional('ctype', \Google\Protobuf\Internal\GPBType::ENUM, 1, 'goo gle.protobuf.internal.FieldOptions.CType')
166 ->optional('packed', \Google\Protobuf\Internal\GPBType::BOOL, 2)
167 ->optional('jstype', \Google\Protobuf\Internal\GPBType::ENUM, 6, 'go ogle.protobuf.internal.FieldOptions.JSType')
168 ->optional('lazy', \Google\Protobuf\Internal\GPBType::BOOL, 5)
169 ->optional('deprecated', \Google\Protobuf\Internal\GPBType::BOOL, 3)
170 ->optional('weak', \Google\Protobuf\Internal\GPBType::BOOL, 10)
171 ->repeated('uninterpreted_option', \Google\Protobuf\Internal\GPBType ::MESSAGE, 999, 'google.protobuf.internal.UninterpretedOption')
172 ->finalizeToPool();
173
174 $pool->addEnum('google.protobuf.internal.FieldOptions.CType', \Google\Pr otobuf\Internal\CType::class)
175 ->value("STRING", 0)
176 ->value("CORD", 1)
177 ->value("STRING_PIECE", 2)
178 ->finalizeToPool();
179
180 $pool->addEnum('google.protobuf.internal.FieldOptions.JSType', \Google\P rotobuf\Internal\JSType::class)
181 ->value("JS_NORMAL", 0)
182 ->value("JS_STRING", 1)
183 ->value("JS_NUMBER", 2)
184 ->finalizeToPool();
185
186 $pool->addMessage('google.protobuf.internal.OneofOptions', \Google\Proto buf\Internal\OneofOptions::class)
187 ->repeated('uninterpreted_option', \Google\Protobuf\Internal\GPBType ::MESSAGE, 999, 'google.protobuf.internal.UninterpretedOption')
188 ->finalizeToPool();
189
190 $pool->addMessage('google.protobuf.internal.EnumOptions', \Google\Protob uf\Internal\EnumOptions::class)
191 ->optional('allow_alias', \Google\Protobuf\Internal\GPBType::BOOL, 2 )
192 ->optional('deprecated', \Google\Protobuf\Internal\GPBType::BOOL, 3)
193 ->repeated('uninterpreted_option', \Google\Protobuf\Internal\GPBType ::MESSAGE, 999, 'google.protobuf.internal.UninterpretedOption')
194 ->finalizeToPool();
195
196 $pool->addMessage('google.protobuf.internal.EnumValueOptions', \Google\P rotobuf\Internal\EnumValueOptions::class)
197 ->optional('deprecated', \Google\Protobuf\Internal\GPBType::BOOL, 1)
198 ->repeated('uninterpreted_option', \Google\Protobuf\Internal\GPBType ::MESSAGE, 999, 'google.protobuf.internal.UninterpretedOption')
199 ->finalizeToPool();
200
201 $pool->addMessage('google.protobuf.internal.ServiceOptions', \Google\Pro tobuf\Internal\ServiceOptions::class)
202 ->optional('deprecated', \Google\Protobuf\Internal\GPBType::BOOL, 33 )
203 ->repeated('uninterpreted_option', \Google\Protobuf\Internal\GPBType ::MESSAGE, 999, 'google.protobuf.internal.UninterpretedOption')
204 ->finalizeToPool();
205
206 $pool->addMessage('google.protobuf.internal.MethodOptions', \Google\Prot obuf\Internal\MethodOptions::class)
207 ->optional('deprecated', \Google\Protobuf\Internal\GPBType::BOOL, 33 )
208 ->optional('idempotency_level', \Google\Protobuf\Internal\GPBType::E NUM, 34, 'google.protobuf.internal.MethodOptions.IdempotencyLevel')
209 ->repeated('uninterpreted_option', \Google\Protobuf\Internal\GPBType ::MESSAGE, 999, 'google.protobuf.internal.UninterpretedOption')
210 ->finalizeToPool();
211
212 $pool->addEnum('google.protobuf.internal.MethodOptions.IdempotencyLevel' , \Google\Protobuf\Internal\IdempotencyLevel::class)
213 ->value("IDEMPOTENCY_UNKNOWN", 0)
214 ->value("NO_SIDE_EFFECTS", 1)
215 ->value("IDEMPOTENT", 2)
216 ->finalizeToPool();
217
218 $pool->addMessage('google.protobuf.internal.UninterpretedOption', \Googl e\Protobuf\Internal\UninterpretedOption::class)
219 ->repeated('name', \Google\Protobuf\Internal\GPBType::MESSAGE, 2, 'g oogle.protobuf.internal.UninterpretedOption.NamePart')
220 ->optional('identifier_value', \Google\Protobuf\Internal\GPBType::ST RING, 3)
221 ->optional('positive_int_value', \Google\Protobuf\Internal\GPBType:: UINT64, 4)
222 ->optional('negative_int_value', \Google\Protobuf\Internal\GPBType:: INT64, 5)
223 ->optional('double_value', \Google\Protobuf\Internal\GPBType::DOUBLE , 6)
224 ->optional('string_value', \Google\Protobuf\Internal\GPBType::BYTES, 7)
225 ->optional('aggregate_value', \Google\Protobuf\Internal\GPBType::STR ING, 8)
226 ->finalizeToPool();
227
228 $pool->addMessage('google.protobuf.internal.UninterpretedOption.NamePart ', \Google\Protobuf\Internal\UninterpretedOption_NamePart::class)
229 ->required('name_part', \Google\Protobuf\Internal\GPBType::STRING, 1 )
230 ->required('is_extension', \Google\Protobuf\Internal\GPBType::BOOL, 2)
231 ->finalizeToPool();
232
233 $pool->addMessage('google.protobuf.internal.SourceCodeInfo', \Google\Pro tobuf\Internal\SourceCodeInfo::class)
234 ->repeated('location', \Google\Protobuf\Internal\GPBType::MESSAGE, 1 , 'google.protobuf.internal.SourceCodeInfo.Location')
235 ->finalizeToPool();
236
237 $pool->addMessage('google.protobuf.internal.SourceCodeInfo.Location', \G oogle\Protobuf\Internal\SourceCodeInfo_Location::class)
238 ->repeated('path', \Google\Protobuf\Internal\GPBType::INT32, 1)
239 ->repeated('span', \Google\Protobuf\Internal\GPBType::INT32, 2)
240 ->optional('leading_comments', \Google\Protobuf\Internal\GPBType::ST RING, 3)
241 ->optional('trailing_comments', \Google\Protobuf\Internal\GPBType::S TRING, 4)
242 ->repeated('leading_detached_comments', \Google\Protobuf\Internal\GP BType::STRING, 6)
243 ->finalizeToPool();
244
245 $pool->addMessage('google.protobuf.internal.GeneratedCodeInfo', \Google\ Protobuf\Internal\GeneratedCodeInfo::class)
246 ->repeated('annotation', \Google\Protobuf\Internal\GPBType::MESSAGE, 1, 'google.protobuf.internal.GeneratedCodeInfo.Annotation')
247 ->finalizeToPool();
248
249 $pool->addMessage('google.protobuf.internal.GeneratedCodeInfo.Annotation ', \Google\Protobuf\Internal\GeneratedCodeInfo_Annotation::class)
250 ->repeated('path', \Google\Protobuf\Internal\GPBType::INT32, 1)
251 ->optional('source_file', \Google\Protobuf\Internal\GPBType::STRING, 2)
252 ->optional('begin', \Google\Protobuf\Internal\GPBType::INT32, 3)
253 ->optional('end', \Google\Protobuf\Internal\GPBType::INT32, 4)
254 ->finalizeToPool();
255
256 $pool->finish();
257 static::$is_initialized = true;
258 }
259 }
260
OLDNEW
« no previous file with comments | « third_party/protobuf/php/phpunit.xml ('k') | third_party/protobuf/php/src/Google/Protobuf/Internal/DescriptorPool.php » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698