1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: google/protobuf/type.proto
3
4 #include <google/protobuf/type.pb.h>
5
6 #include <algorithm>
7
8 #include <google/protobuf/io/coded_stream.h>
9 #include <google/protobuf/extension_set.h>
10 #include <google/protobuf/wire_format_lite.h>
11 #include <google/protobuf/descriptor.h>
12 #include <google/protobuf/generated_message_reflection.h>
13 #include <google/protobuf/reflection_ops.h>
14 #include <google/protobuf/wire_format.h>
15 // @@protoc_insertion_point(includes)
16 #include <google/protobuf/port_def.inc>
17 extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fany_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_Any_google_2fprotobuf_2fany_2eproto;
18 extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ftype_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_EnumValue_google_2fprotobuf_2ftype_2eproto;
19 extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ftype_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Field_google_2fprotobuf_2ftype_2eproto;
20 extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ftype_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Option_google_2fprotobuf_2ftype_2eproto;
21 extern PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fsource_5fcontext_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SourceContext_google_2fprotobuf_2fsource_5fcontext_2eproto;
22 PROTOBUF_NAMESPACE_OPEN
23 class TypeDefaultTypeInternal {
24 public:
25 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Type> _instance;
26 } _Type_default_instance_;
27 class FieldDefaultTypeInternal {
28 public:
29 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Field> _instance;
30 } _Field_default_instance_;
31 class EnumDefaultTypeInternal {
32 public:
33 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Enum> _instance;
34 } _Enum_default_instance_;
35 class EnumValueDefaultTypeInternal {
36 public:
37 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<EnumValue> _instance;
38 } _EnumValue_default_instance_;
39 class OptionDefaultTypeInternal {
40 public:
41 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Option> _instance;
42 } _Option_default_instance_;
43 PROTOBUF_NAMESPACE_CLOSE
InitDefaultsscc_info_Enum_google_2fprotobuf_2ftype_2eproto()44 static void InitDefaultsscc_info_Enum_google_2fprotobuf_2ftype_2eproto() {
45 GOOGLE_PROTOBUF_VERIFY_VERSION;
46
47 {
48 void* ptr = &PROTOBUF_NAMESPACE_ID::_Enum_default_instance_;
49 new (ptr) PROTOBUF_NAMESPACE_ID::Enum();
50 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
51 }
52 PROTOBUF_NAMESPACE_ID::Enum::InitAsDefaultInstance();
53 }
54
55 PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_Enum_google_2fprotobuf_2ftype_2eproto =
56 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 3, 0, InitDefaultsscc_info_Enum_google_2fprotobuf_2ftype_2eproto}, {
57 &scc_info_EnumValue_google_2fprotobuf_2ftype_2eproto.base,
58 &scc_info_Option_google_2fprotobuf_2ftype_2eproto.base,
59 &scc_info_SourceContext_google_2fprotobuf_2fsource_5fcontext_2eproto.base,}};
60
InitDefaultsscc_info_EnumValue_google_2fprotobuf_2ftype_2eproto()61 static void InitDefaultsscc_info_EnumValue_google_2fprotobuf_2ftype_2eproto() {
62 GOOGLE_PROTOBUF_VERIFY_VERSION;
63
64 {
65 void* ptr = &PROTOBUF_NAMESPACE_ID::_EnumValue_default_instance_;
66 new (ptr) PROTOBUF_NAMESPACE_ID::EnumValue();
67 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
68 }
69 PROTOBUF_NAMESPACE_ID::EnumValue::InitAsDefaultInstance();
70 }
71
72 PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_EnumValue_google_2fprotobuf_2ftype_2eproto =
73 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_EnumValue_google_2fprotobuf_2ftype_2eproto}, {
74 &scc_info_Option_google_2fprotobuf_2ftype_2eproto.base,}};
75
InitDefaultsscc_info_Field_google_2fprotobuf_2ftype_2eproto()76 static void InitDefaultsscc_info_Field_google_2fprotobuf_2ftype_2eproto() {
77 GOOGLE_PROTOBUF_VERIFY_VERSION;
78
79 {
80 void* ptr = &PROTOBUF_NAMESPACE_ID::_Field_default_instance_;
81 new (ptr) PROTOBUF_NAMESPACE_ID::Field();
82 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
83 }
84 PROTOBUF_NAMESPACE_ID::Field::InitAsDefaultInstance();
85 }
86
87 PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Field_google_2fprotobuf_2ftype_2eproto =
88 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_Field_google_2fprotobuf_2ftype_2eproto}, {
89 &scc_info_Option_google_2fprotobuf_2ftype_2eproto.base,}};
90
InitDefaultsscc_info_Option_google_2fprotobuf_2ftype_2eproto()91 static void InitDefaultsscc_info_Option_google_2fprotobuf_2ftype_2eproto() {
92 GOOGLE_PROTOBUF_VERIFY_VERSION;
93
94 {
95 void* ptr = &PROTOBUF_NAMESPACE_ID::_Option_default_instance_;
96 new (ptr) PROTOBUF_NAMESPACE_ID::Option();
97 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
98 }
99 PROTOBUF_NAMESPACE_ID::Option::InitAsDefaultInstance();
100 }
101
102 PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Option_google_2fprotobuf_2ftype_2eproto =
103 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_Option_google_2fprotobuf_2ftype_2eproto}, {
104 &scc_info_Any_google_2fprotobuf_2fany_2eproto.base,}};
105
InitDefaultsscc_info_Type_google_2fprotobuf_2ftype_2eproto()106 static void InitDefaultsscc_info_Type_google_2fprotobuf_2ftype_2eproto() {
107 GOOGLE_PROTOBUF_VERIFY_VERSION;
108
109 {
110 void* ptr = &PROTOBUF_NAMESPACE_ID::_Type_default_instance_;
111 new (ptr) PROTOBUF_NAMESPACE_ID::Type();
112 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
113 }
114 PROTOBUF_NAMESPACE_ID::Type::InitAsDefaultInstance();
115 }
116
117 PROTOBUF_EXPORT ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_Type_google_2fprotobuf_2ftype_2eproto =
118 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 3, 0, InitDefaultsscc_info_Type_google_2fprotobuf_2ftype_2eproto}, {
119 &scc_info_Field_google_2fprotobuf_2ftype_2eproto.base,
120 &scc_info_Option_google_2fprotobuf_2ftype_2eproto.base,
121 &scc_info_SourceContext_google_2fprotobuf_2fsource_5fcontext_2eproto.base,}};
122
123 static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_google_2fprotobuf_2ftype_2eproto[5];
124 static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_google_2fprotobuf_2ftype_2eproto[3];
125 static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_google_2fprotobuf_2ftype_2eproto = nullptr;
126
127 const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_google_2fprotobuf_2ftype_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
128 ~0u, // no _has_bits_
129 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Type, _internal_metadata_),
130 ~0u, // no _extensions_
131 ~0u, // no _oneof_case_
132 ~0u, // no _weak_field_map_
133 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Type, name_),
134 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Type, fields_),
135 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Type, oneofs_),
136 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Type, options_),
137 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Type, source_context_),
138 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Type, syntax_),
139 ~0u, // no _has_bits_
140 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Field, _internal_metadata_),
141 ~0u, // no _extensions_
142 ~0u, // no _oneof_case_
143 ~0u, // no _weak_field_map_
144 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Field, kind_),
145 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Field, cardinality_),
146 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Field, number_),
147 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Field, name_),
148 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Field, type_url_),
149 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Field, oneof_index_),
150 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Field, packed_),
151 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Field, options_),
152 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Field, json_name_),
153 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Field, default_value_),
154 ~0u, // no _has_bits_
155 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Enum, _internal_metadata_),
156 ~0u, // no _extensions_
157 ~0u, // no _oneof_case_
158 ~0u, // no _weak_field_map_
159 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Enum, name_),
160 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Enum, enumvalue_),
161 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Enum, options_),
162 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Enum, source_context_),
163 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Enum, syntax_),
164 ~0u, // no _has_bits_
165 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::EnumValue, _internal_metadata_),
166 ~0u, // no _extensions_
167 ~0u, // no _oneof_case_
168 ~0u, // no _weak_field_map_
169 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::EnumValue, name_),
170 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::EnumValue, number_),
171 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::EnumValue, options_),
172 ~0u, // no _has_bits_
173 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Option, _internal_metadata_),
174 ~0u, // no _extensions_
175 ~0u, // no _oneof_case_
176 ~0u, // no _weak_field_map_
177 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Option, name_),
178 PROTOBUF_FIELD_OFFSET(PROTOBUF_NAMESPACE_ID::Option, value_),
179 };
180 static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
181 { 0, -1, sizeof(PROTOBUF_NAMESPACE_ID::Type)},
182 { 11, -1, sizeof(PROTOBUF_NAMESPACE_ID::Field)},
183 { 26, -1, sizeof(PROTOBUF_NAMESPACE_ID::Enum)},
184 { 36, -1, sizeof(PROTOBUF_NAMESPACE_ID::EnumValue)},
185 { 44, -1, sizeof(PROTOBUF_NAMESPACE_ID::Option)},
186 };
187
188 static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
189 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&PROTOBUF_NAMESPACE_ID::_Type_default_instance_),
190 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&PROTOBUF_NAMESPACE_ID::_Field_default_instance_),
191 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&PROTOBUF_NAMESPACE_ID::_Enum_default_instance_),
192 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&PROTOBUF_NAMESPACE_ID::_EnumValue_default_instance_),
193 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&PROTOBUF_NAMESPACE_ID::_Option_default_instance_),
194 };
195
196 const char descriptor_table_protodef_google_2fprotobuf_2ftype_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
197 "\n\032google/protobuf/type.proto\022\017google.pro"
198 "tobuf\032\031google/protobuf/any.proto\032$google"
199 "/protobuf/source_context.proto\"\327\001\n\004Type\022"
200 "\014\n\004name\030\001 \001(\t\022&\n\006fields\030\002 \003(\0132\026.google.p"
201 "rotobuf.Field\022\016\n\006oneofs\030\003 \003(\t\022(\n\007options"
202 "\030\004 \003(\0132\027.google.protobuf.Option\0226\n\016sourc"
203 "e_context\030\005 \001(\0132\036.google.protobuf.Source"
204 "Context\022\'\n\006syntax\030\006 \001(\0162\027.google.protobu"
205 "f.Syntax\"\325\005\n\005Field\022)\n\004kind\030\001 \001(\0162\033.googl"
206 "e.protobuf.Field.Kind\0227\n\013cardinality\030\002 \001"
207 "(\0162\".google.protobuf.Field.Cardinality\022\016"
208 "\n\006number\030\003 \001(\005\022\014\n\004name\030\004 \001(\t\022\020\n\010type_url"
209 "\030\006 \001(\t\022\023\n\013oneof_index\030\007 \001(\005\022\016\n\006packed\030\010 "
210 "\001(\010\022(\n\007options\030\t \003(\0132\027.google.protobuf.O"
211 "ption\022\021\n\tjson_name\030\n \001(\t\022\025\n\rdefault_valu"
212 "e\030\013 \001(\t\"\310\002\n\004Kind\022\020\n\014TYPE_UNKNOWN\020\000\022\017\n\013TY"
213 "PE_DOUBLE\020\001\022\016\n\nTYPE_FLOAT\020\002\022\016\n\nTYPE_INT6"
214 "4\020\003\022\017\n\013TYPE_UINT64\020\004\022\016\n\nTYPE_INT32\020\005\022\020\n\014"
215 "TYPE_FIXED64\020\006\022\020\n\014TYPE_FIXED32\020\007\022\r\n\tTYPE"
216 "_BOOL\020\010\022\017\n\013TYPE_STRING\020\t\022\016\n\nTYPE_GROUP\020\n"
217 "\022\020\n\014TYPE_MESSAGE\020\013\022\016\n\nTYPE_BYTES\020\014\022\017\n\013TY"
218 "PE_UINT32\020\r\022\r\n\tTYPE_ENUM\020\016\022\021\n\rTYPE_SFIXE"
219 "D32\020\017\022\021\n\rTYPE_SFIXED64\020\020\022\017\n\013TYPE_SINT32\020"
220 "\021\022\017\n\013TYPE_SINT64\020\022\"t\n\013Cardinality\022\027\n\023CAR"
221 "DINALITY_UNKNOWN\020\000\022\030\n\024CARDINALITY_OPTION"
222 "AL\020\001\022\030\n\024CARDINALITY_REQUIRED\020\002\022\030\n\024CARDIN"
223 "ALITY_REPEATED\020\003\"\316\001\n\004Enum\022\014\n\004name\030\001 \001(\t\022"
224 "-\n\tenumvalue\030\002 \003(\0132\032.google.protobuf.Enu"
225 "mValue\022(\n\007options\030\003 \003(\0132\027.google.protobu"
226 "f.Option\0226\n\016source_context\030\004 \001(\0132\036.googl"
227 "e.protobuf.SourceContext\022\'\n\006syntax\030\005 \001(\016"
228 "2\027.google.protobuf.Syntax\"S\n\tEnumValue\022\014"
229 "\n\004name\030\001 \001(\t\022\016\n\006number\030\002 \001(\005\022(\n\007options\030"
230 "\003 \003(\0132\027.google.protobuf.Option\";\n\006Option"
231 "\022\014\n\004name\030\001 \001(\t\022#\n\005value\030\002 \001(\0132\024.google.p"
232 "rotobuf.Any*.\n\006Syntax\022\021\n\rSYNTAX_PROTO2\020\000"
233 "\022\021\n\rSYNTAX_PROTO3\020\001B}\n\023com.google.protob"
234 "ufB\tTypeProtoP\001Z/google.golang.org/genpr"
235 "oto/protobuf/ptype;ptype\370\001\001\242\002\003GPB\252\002\036Goog"
236 "le.Protobuf.WellKnownTypesb\006proto3"
237 ;
238 static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_google_2fprotobuf_2ftype_2eproto_deps[2] = {
239 &::descriptor_table_google_2fprotobuf_2fany_2eproto,
240 &::descriptor_table_google_2fprotobuf_2fsource_5fcontext_2eproto,
241 };
242 static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_google_2fprotobuf_2ftype_2eproto_sccs[5] = {
243 &scc_info_Enum_google_2fprotobuf_2ftype_2eproto.base,
244 &scc_info_EnumValue_google_2fprotobuf_2ftype_2eproto.base,
245 &scc_info_Field_google_2fprotobuf_2ftype_2eproto.base,
246 &scc_info_Option_google_2fprotobuf_2ftype_2eproto.base,
247 &scc_info_Type_google_2fprotobuf_2ftype_2eproto.base,
248 };
249 static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_google_2fprotobuf_2ftype_2eproto_once;
250 static bool descriptor_table_google_2fprotobuf_2ftype_2eproto_initialized = false;
251 const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fprotobuf_2ftype_2eproto = {
252 &descriptor_table_google_2fprotobuf_2ftype_2eproto_initialized, descriptor_table_protodef_google_2fprotobuf_2ftype_2eproto, "google/protobuf/type.proto", 1594,
253 &descriptor_table_google_2fprotobuf_2ftype_2eproto_once, descriptor_table_google_2fprotobuf_2ftype_2eproto_sccs, descriptor_table_google_2fprotobuf_2ftype_2eproto_deps, 5, 2,
254 schemas, file_default_instances, TableStruct_google_2fprotobuf_2ftype_2eproto::offsets,
255 file_level_metadata_google_2fprotobuf_2ftype_2eproto, 5, file_level_enum_descriptors_google_2fprotobuf_2ftype_2eproto, file_level_service_descriptors_google_2fprotobuf_2ftype_2eproto,
256 };
257
258 // Force running AddDescriptors() at dynamic initialization time.
259 static bool dynamic_init_dummy_google_2fprotobuf_2ftype_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_google_2fprotobuf_2ftype_2eproto), true);
260 PROTOBUF_NAMESPACE_OPEN
Field_Kind_descriptor()261 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Field_Kind_descriptor() {
262 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_google_2fprotobuf_2ftype_2eproto);
263 return file_level_enum_descriptors_google_2fprotobuf_2ftype_2eproto[0];
264 }
Field_Kind_IsValid(int value)265 bool Field_Kind_IsValid(int value) {
266 switch (value) {
267 case 0:
268 case 1:
269 case 2:
270 case 3:
271 case 4:
272 case 5:
273 case 6:
274 case 7:
275 case 8:
276 case 9:
277 case 10:
278 case 11:
279 case 12:
280 case 13:
281 case 14:
282 case 15:
283 case 16:
284 case 17:
285 case 18:
286 return true;
287 default:
288 return false;
289 }
290 }
291
292 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
293 constexpr Field_Kind Field::TYPE_UNKNOWN;
294 constexpr Field_Kind Field::TYPE_DOUBLE;
295 constexpr Field_Kind Field::TYPE_FLOAT;
296 constexpr Field_Kind Field::TYPE_INT64;
297 constexpr Field_Kind Field::TYPE_UINT64;
298 constexpr Field_Kind Field::TYPE_INT32;
299 constexpr Field_Kind Field::TYPE_FIXED64;
300 constexpr Field_Kind Field::TYPE_FIXED32;
301 constexpr Field_Kind Field::TYPE_BOOL;
302 constexpr Field_Kind Field::TYPE_STRING;
303 constexpr Field_Kind Field::TYPE_GROUP;
304 constexpr Field_Kind Field::TYPE_MESSAGE;
305 constexpr Field_Kind Field::TYPE_BYTES;
306 constexpr Field_Kind Field::TYPE_UINT32;
307 constexpr Field_Kind Field::TYPE_ENUM;
308 constexpr Field_Kind Field::TYPE_SFIXED32;
309 constexpr Field_Kind Field::TYPE_SFIXED64;
310 constexpr Field_Kind Field::TYPE_SINT32;
311 constexpr Field_Kind Field::TYPE_SINT64;
312 constexpr Field_Kind Field::Kind_MIN;
313 constexpr Field_Kind Field::Kind_MAX;
314 constexpr int Field::Kind_ARRAYSIZE;
315 #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
Field_Cardinality_descriptor()316 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Field_Cardinality_descriptor() {
317 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_google_2fprotobuf_2ftype_2eproto);
318 return file_level_enum_descriptors_google_2fprotobuf_2ftype_2eproto[1];
319 }
Field_Cardinality_IsValid(int value)320 bool Field_Cardinality_IsValid(int value) {
321 switch (value) {
322 case 0:
323 case 1:
324 case 2:
325 case 3:
326 return true;
327 default:
328 return false;
329 }
330 }
331
332 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
333 constexpr Field_Cardinality Field::CARDINALITY_UNKNOWN;
334 constexpr Field_Cardinality Field::CARDINALITY_OPTIONAL;
335 constexpr Field_Cardinality Field::CARDINALITY_REQUIRED;
336 constexpr Field_Cardinality Field::CARDINALITY_REPEATED;
337 constexpr Field_Cardinality Field::Cardinality_MIN;
338 constexpr Field_Cardinality Field::Cardinality_MAX;
339 constexpr int Field::Cardinality_ARRAYSIZE;
340 #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
Syntax_descriptor()341 const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Syntax_descriptor() {
342 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_google_2fprotobuf_2ftype_2eproto);
343 return file_level_enum_descriptors_google_2fprotobuf_2ftype_2eproto[2];
344 }
Syntax_IsValid(int value)345 bool Syntax_IsValid(int value) {
346 switch (value) {
347 case 0:
348 case 1:
349 return true;
350 default:
351 return false;
352 }
353 }
354
355
356 // ===================================================================
357
InitAsDefaultInstance()358 void Type::InitAsDefaultInstance() {
359 PROTOBUF_NAMESPACE_ID::_Type_default_instance_._instance.get_mutable()->source_context_ = const_cast< PROTOBUF_NAMESPACE_ID::SourceContext*>(
360 PROTOBUF_NAMESPACE_ID::SourceContext::internal_default_instance());
361 }
362 class Type::_Internal {
363 public:
364 static const PROTOBUF_NAMESPACE_ID::SourceContext& source_context(const Type* msg);
365 };
366
367 const PROTOBUF_NAMESPACE_ID::SourceContext&
source_context(const Type * msg)368 Type::_Internal::source_context(const Type* msg) {
369 return *msg->source_context_;
370 }
unsafe_arena_set_allocated_source_context(PROTOBUF_NAMESPACE_ID::SourceContext * source_context)371 void Type::unsafe_arena_set_allocated_source_context(
372 PROTOBUF_NAMESPACE_ID::SourceContext* source_context) {
373 if (GetArenaNoVirtual() == nullptr) {
374 delete source_context_;
375 }
376 source_context_ = source_context;
377 if (source_context) {
378
379 } else {
380
381 }
382 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Type.source_context)
383 }
clear_source_context()384 void Type::clear_source_context() {
385 if (GetArenaNoVirtual() == nullptr && source_context_ != nullptr) {
386 delete source_context_;
387 }
388 source_context_ = nullptr;
389 }
Type()390 Type::Type()
391 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
392 SharedCtor();
393 // @@protoc_insertion_point(constructor:google.protobuf.Type)
394 }
Type(::PROTOBUF_NAMESPACE_ID::Arena * arena)395 Type::Type(::PROTOBUF_NAMESPACE_ID::Arena* arena)
396 : ::PROTOBUF_NAMESPACE_ID::Message(),
397 _internal_metadata_(arena),
398 fields_(arena),
399 oneofs_(arena),
400 options_(arena) {
401 SharedCtor();
402 RegisterArenaDtor(arena);
403 // @@protoc_insertion_point(arena_constructor:google.protobuf.Type)
404 }
Type(const Type & from)405 Type::Type(const Type& from)
406 : ::PROTOBUF_NAMESPACE_ID::Message(),
407 _internal_metadata_(nullptr),
408 fields_(from.fields_),
409 oneofs_(from.oneofs_),
410 options_(from.options_) {
411 _internal_metadata_.MergeFrom(from._internal_metadata_);
412 name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
413 if (!from._internal_name().empty()) {
414 name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_name(),
415 GetArenaNoVirtual());
416 }
417 if (from._internal_has_source_context()) {
418 source_context_ = new PROTOBUF_NAMESPACE_ID::SourceContext(*from.source_context_);
419 } else {
420 source_context_ = nullptr;
421 }
422 syntax_ = from.syntax_;
423 // @@protoc_insertion_point(copy_constructor:google.protobuf.Type)
424 }
425
SharedCtor()426 void Type::SharedCtor() {
427 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Type_google_2fprotobuf_2ftype_2eproto.base);
428 name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
429 ::memset(&source_context_, 0, static_cast<size_t>(
430 reinterpret_cast<char*>(&syntax_) -
431 reinterpret_cast<char*>(&source_context_)) + sizeof(syntax_));
432 }
433
~Type()434 Type::~Type() {
435 // @@protoc_insertion_point(destructor:google.protobuf.Type)
436 SharedDtor();
437 }
438
SharedDtor()439 void Type::SharedDtor() {
440 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
441 name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
442 if (this != internal_default_instance()) delete source_context_;
443 }
444
ArenaDtor(void * object)445 void Type::ArenaDtor(void* object) {
446 Type* _this = reinterpret_cast< Type* >(object);
447 (void)_this;
448 }
RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena *)449 void Type::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
450 }
SetCachedSize(int size) const451 void Type::SetCachedSize(int size) const {
452 _cached_size_.Set(size);
453 }
default_instance()454 const Type& Type::default_instance() {
455 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Type_google_2fprotobuf_2ftype_2eproto.base);
456 return *internal_default_instance();
457 }
458
459
Clear()460 void Type::Clear() {
461 // @@protoc_insertion_point(message_clear_start:google.protobuf.Type)
462 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
463 // Prevent compiler warnings about cached_has_bits being unused
464 (void) cached_has_bits;
465
466 fields_.Clear();
467 oneofs_.Clear();
468 options_.Clear();
469 name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
470 if (GetArenaNoVirtual() == nullptr && source_context_ != nullptr) {
471 delete source_context_;
472 }
473 source_context_ = nullptr;
474 syntax_ = 0;
475 _internal_metadata_.Clear();
476 }
477
_InternalParse(const char * ptr,::PROTOBUF_NAMESPACE_ID::internal::ParseContext * ctx)478 const char* Type::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
479 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
480 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
481 while (!ctx->Done(&ptr)) {
482 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
483 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
484 CHK_(ptr);
485 switch (tag >> 3) {
486 // string name = 1;
487 case 1:
488 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
489 auto str = _internal_mutable_name();
490 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
491 CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "google.protobuf.Type.name"));
492 CHK_(ptr);
493 } else goto handle_unusual;
494 continue;
495 // repeated .google.protobuf.Field fields = 2;
496 case 2:
497 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
498 ptr -= 1;
499 do {
500 ptr += 1;
501 ptr = ctx->ParseMessage(_internal_add_fields(), ptr);
502 CHK_(ptr);
503 if (!ctx->DataAvailable(ptr)) break;
504 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
505 } else goto handle_unusual;
506 continue;
507 // repeated string oneofs = 3;
508 case 3:
509 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
510 ptr -= 1;
511 do {
512 ptr += 1;
513 auto str = _internal_add_oneofs();
514 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
515 CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "google.protobuf.Type.oneofs"));
516 CHK_(ptr);
517 if (!ctx->DataAvailable(ptr)) break;
518 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr));
519 } else goto handle_unusual;
520 continue;
521 // repeated .google.protobuf.Option options = 4;
522 case 4:
523 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
524 ptr -= 1;
525 do {
526 ptr += 1;
527 ptr = ctx->ParseMessage(_internal_add_options(), ptr);
528 CHK_(ptr);
529 if (!ctx->DataAvailable(ptr)) break;
530 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr));
531 } else goto handle_unusual;
532 continue;
533 // .google.protobuf.SourceContext source_context = 5;
534 case 5:
535 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
536 ptr = ctx->ParseMessage(_internal_mutable_source_context(), ptr);
537 CHK_(ptr);
538 } else goto handle_unusual;
539 continue;
540 // .google.protobuf.Syntax syntax = 6;
541 case 6:
542 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) {
543 ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
544 CHK_(ptr);
545 _internal_set_syntax(static_cast<PROTOBUF_NAMESPACE_ID::Syntax>(val));
546 } else goto handle_unusual;
547 continue;
548 default: {
549 handle_unusual:
550 if ((tag & 7) == 4 || tag == 0) {
551 ctx->SetLastTag(tag);
552 goto success;
553 }
554 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
555 CHK_(ptr != nullptr);
556 continue;
557 }
558 } // switch
559 } // while
560 success:
561 return ptr;
562 failure:
563 ptr = nullptr;
564 goto success;
565 #undef CHK_
566 }
567
_InternalSerialize(::PROTOBUF_NAMESPACE_ID::uint8 * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const568 ::PROTOBUF_NAMESPACE_ID::uint8* Type::_InternalSerialize(
569 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
570 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Type)
571 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
572 (void) cached_has_bits;
573
574 // string name = 1;
575 if (this->name().size() > 0) {
576 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
577 this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
578 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
579 "google.protobuf.Type.name");
580 target = stream->WriteStringMaybeAliased(
581 1, this->_internal_name(), target);
582 }
583
584 // repeated .google.protobuf.Field fields = 2;
585 for (unsigned int i = 0,
586 n = static_cast<unsigned int>(this->_internal_fields_size()); i < n; i++) {
587 target = stream->EnsureSpace(target);
588 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
589 InternalWriteMessage(2, this->_internal_fields(i), target, stream);
590 }
591
592 // repeated string oneofs = 3;
593 for (int i = 0, n = this->_internal_oneofs_size(); i < n; i++) {
594 const auto& s = this->_internal_oneofs(i);
595 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
596 s.data(), static_cast<int>(s.length()),
597 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
598 "google.protobuf.Type.oneofs");
599 target = stream->WriteString(3, s, target);
600 }
601
602 // repeated .google.protobuf.Option options = 4;
603 for (unsigned int i = 0,
604 n = static_cast<unsigned int>(this->_internal_options_size()); i < n; i++) {
605 target = stream->EnsureSpace(target);
606 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
607 InternalWriteMessage(4, this->_internal_options(i), target, stream);
608 }
609
610 // .google.protobuf.SourceContext source_context = 5;
611 if (this->has_source_context()) {
612 target = stream->EnsureSpace(target);
613 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
614 InternalWriteMessage(
615 5, _Internal::source_context(this), target, stream);
616 }
617
618 // .google.protobuf.Syntax syntax = 6;
619 if (this->syntax() != 0) {
620 target = stream->EnsureSpace(target);
621 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
622 6, this->_internal_syntax(), target);
623 }
624
625 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
626 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
627 _internal_metadata_.unknown_fields(), target, stream);
628 }
629 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Type)
630 return target;
631 }
632
ByteSizeLong() const633 size_t Type::ByteSizeLong() const {
634 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Type)
635 size_t total_size = 0;
636
637 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
638 // Prevent compiler warnings about cached_has_bits being unused
639 (void) cached_has_bits;
640
641 // repeated .google.protobuf.Field fields = 2;
642 total_size += 1UL * this->_internal_fields_size();
643 for (const auto& msg : this->fields_) {
644 total_size +=
645 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
646 }
647
648 // repeated string oneofs = 3;
649 total_size += 1 *
650 ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(oneofs_.size());
651 for (int i = 0, n = oneofs_.size(); i < n; i++) {
652 total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
653 oneofs_.Get(i));
654 }
655
656 // repeated .google.protobuf.Option options = 4;
657 total_size += 1UL * this->_internal_options_size();
658 for (const auto& msg : this->options_) {
659 total_size +=
660 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
661 }
662
663 // string name = 1;
664 if (this->name().size() > 0) {
665 total_size += 1 +
666 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
667 this->_internal_name());
668 }
669
670 // .google.protobuf.SourceContext source_context = 5;
671 if (this->has_source_context()) {
672 total_size += 1 +
673 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
674 *source_context_);
675 }
676
677 // .google.protobuf.Syntax syntax = 6;
678 if (this->syntax() != 0) {
679 total_size += 1 +
680 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_syntax());
681 }
682
683 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
684 return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
685 _internal_metadata_, total_size, &_cached_size_);
686 }
687 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
688 SetCachedSize(cached_size);
689 return total_size;
690 }
691
MergeFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)692 void Type::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
693 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Type)
694 GOOGLE_DCHECK_NE(&from, this);
695 const Type* source =
696 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Type>(
697 &from);
698 if (source == nullptr) {
699 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.Type)
700 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
701 } else {
702 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.Type)
703 MergeFrom(*source);
704 }
705 }
706
MergeFrom(const Type & from)707 void Type::MergeFrom(const Type& from) {
708 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Type)
709 GOOGLE_DCHECK_NE(&from, this);
710 _internal_metadata_.MergeFrom(from._internal_metadata_);
711 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
712 (void) cached_has_bits;
713
714 fields_.MergeFrom(from.fields_);
715 oneofs_.MergeFrom(from.oneofs_);
716 options_.MergeFrom(from.options_);
717 if (from.name().size() > 0) {
718 _internal_set_name(from._internal_name());
719 }
720 if (from.has_source_context()) {
721 _internal_mutable_source_context()->PROTOBUF_NAMESPACE_ID::SourceContext::MergeFrom(from._internal_source_context());
722 }
723 if (from.syntax() != 0) {
724 _internal_set_syntax(from._internal_syntax());
725 }
726 }
727
CopyFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)728 void Type::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
729 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Type)
730 if (&from == this) return;
731 Clear();
732 MergeFrom(from);
733 }
734
CopyFrom(const Type & from)735 void Type::CopyFrom(const Type& from) {
736 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Type)
737 if (&from == this) return;
738 Clear();
739 MergeFrom(from);
740 }
741
IsInitialized() const742 bool Type::IsInitialized() const {
743 return true;
744 }
745
InternalSwap(Type * other)746 void Type::InternalSwap(Type* other) {
747 using std::swap;
748 _internal_metadata_.Swap(&other->_internal_metadata_);
749 fields_.InternalSwap(&other->fields_);
750 oneofs_.InternalSwap(&other->oneofs_);
751 options_.InternalSwap(&other->options_);
752 name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
753 GetArenaNoVirtual());
754 swap(source_context_, other->source_context_);
755 swap(syntax_, other->syntax_);
756 }
757
GetMetadata() const758 ::PROTOBUF_NAMESPACE_ID::Metadata Type::GetMetadata() const {
759 return GetMetadataStatic();
760 }
761
762
763 // ===================================================================
764
InitAsDefaultInstance()765 void Field::InitAsDefaultInstance() {
766 }
767 class Field::_Internal {
768 public:
769 };
770
Field()771 Field::Field()
772 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
773 SharedCtor();
774 // @@protoc_insertion_point(constructor:google.protobuf.Field)
775 }
Field(::PROTOBUF_NAMESPACE_ID::Arena * arena)776 Field::Field(::PROTOBUF_NAMESPACE_ID::Arena* arena)
777 : ::PROTOBUF_NAMESPACE_ID::Message(),
778 _internal_metadata_(arena),
779 options_(arena) {
780 SharedCtor();
781 RegisterArenaDtor(arena);
782 // @@protoc_insertion_point(arena_constructor:google.protobuf.Field)
783 }
Field(const Field & from)784 Field::Field(const Field& from)
785 : ::PROTOBUF_NAMESPACE_ID::Message(),
786 _internal_metadata_(nullptr),
787 options_(from.options_) {
788 _internal_metadata_.MergeFrom(from._internal_metadata_);
789 name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
790 if (!from._internal_name().empty()) {
791 name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_name(),
792 GetArenaNoVirtual());
793 }
794 type_url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
795 if (!from._internal_type_url().empty()) {
796 type_url_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_type_url(),
797 GetArenaNoVirtual());
798 }
799 json_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
800 if (!from._internal_json_name().empty()) {
801 json_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_json_name(),
802 GetArenaNoVirtual());
803 }
804 default_value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
805 if (!from._internal_default_value().empty()) {
806 default_value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_default_value(),
807 GetArenaNoVirtual());
808 }
809 ::memcpy(&kind_, &from.kind_,
810 static_cast<size_t>(reinterpret_cast<char*>(&packed_) -
811 reinterpret_cast<char*>(&kind_)) + sizeof(packed_));
812 // @@protoc_insertion_point(copy_constructor:google.protobuf.Field)
813 }
814
SharedCtor()815 void Field::SharedCtor() {
816 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Field_google_2fprotobuf_2ftype_2eproto.base);
817 name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
818 type_url_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
819 json_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
820 default_value_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
821 ::memset(&kind_, 0, static_cast<size_t>(
822 reinterpret_cast<char*>(&packed_) -
823 reinterpret_cast<char*>(&kind_)) + sizeof(packed_));
824 }
825
~Field()826 Field::~Field() {
827 // @@protoc_insertion_point(destructor:google.protobuf.Field)
828 SharedDtor();
829 }
830
SharedDtor()831 void Field::SharedDtor() {
832 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
833 name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
834 type_url_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
835 json_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
836 default_value_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
837 }
838
ArenaDtor(void * object)839 void Field::ArenaDtor(void* object) {
840 Field* _this = reinterpret_cast< Field* >(object);
841 (void)_this;
842 }
RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena *)843 void Field::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
844 }
SetCachedSize(int size) const845 void Field::SetCachedSize(int size) const {
846 _cached_size_.Set(size);
847 }
default_instance()848 const Field& Field::default_instance() {
849 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Field_google_2fprotobuf_2ftype_2eproto.base);
850 return *internal_default_instance();
851 }
852
853
Clear()854 void Field::Clear() {
855 // @@protoc_insertion_point(message_clear_start:google.protobuf.Field)
856 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
857 // Prevent compiler warnings about cached_has_bits being unused
858 (void) cached_has_bits;
859
860 options_.Clear();
861 name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
862 type_url_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
863 json_name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
864 default_value_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
865 ::memset(&kind_, 0, static_cast<size_t>(
866 reinterpret_cast<char*>(&packed_) -
867 reinterpret_cast<char*>(&kind_)) + sizeof(packed_));
868 _internal_metadata_.Clear();
869 }
870
_InternalParse(const char * ptr,::PROTOBUF_NAMESPACE_ID::internal::ParseContext * ctx)871 const char* Field::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
872 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
873 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
874 while (!ctx->Done(&ptr)) {
875 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
876 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
877 CHK_(ptr);
878 switch (tag >> 3) {
879 // .google.protobuf.Field.Kind kind = 1;
880 case 1:
881 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
882 ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
883 CHK_(ptr);
884 _internal_set_kind(static_cast<PROTOBUF_NAMESPACE_ID::Field_Kind>(val));
885 } else goto handle_unusual;
886 continue;
887 // .google.protobuf.Field.Cardinality cardinality = 2;
888 case 2:
889 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
890 ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
891 CHK_(ptr);
892 _internal_set_cardinality(static_cast<PROTOBUF_NAMESPACE_ID::Field_Cardinality>(val));
893 } else goto handle_unusual;
894 continue;
895 // int32 number = 3;
896 case 3:
897 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
898 number_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
899 CHK_(ptr);
900 } else goto handle_unusual;
901 continue;
902 // string name = 4;
903 case 4:
904 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
905 auto str = _internal_mutable_name();
906 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
907 CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "google.protobuf.Field.name"));
908 CHK_(ptr);
909 } else goto handle_unusual;
910 continue;
911 // string type_url = 6;
912 case 6:
913 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) {
914 auto str = _internal_mutable_type_url();
915 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
916 CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "google.protobuf.Field.type_url"));
917 CHK_(ptr);
918 } else goto handle_unusual;
919 continue;
920 // int32 oneof_index = 7;
921 case 7:
922 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 56)) {
923 oneof_index_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
924 CHK_(ptr);
925 } else goto handle_unusual;
926 continue;
927 // bool packed = 8;
928 case 8:
929 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 64)) {
930 packed_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
931 CHK_(ptr);
932 } else goto handle_unusual;
933 continue;
934 // repeated .google.protobuf.Option options = 9;
935 case 9:
936 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) {
937 ptr -= 1;
938 do {
939 ptr += 1;
940 ptr = ctx->ParseMessage(_internal_add_options(), ptr);
941 CHK_(ptr);
942 if (!ctx->DataAvailable(ptr)) break;
943 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<74>(ptr));
944 } else goto handle_unusual;
945 continue;
946 // string json_name = 10;
947 case 10:
948 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 82)) {
949 auto str = _internal_mutable_json_name();
950 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
951 CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "google.protobuf.Field.json_name"));
952 CHK_(ptr);
953 } else goto handle_unusual;
954 continue;
955 // string default_value = 11;
956 case 11:
957 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 90)) {
958 auto str = _internal_mutable_default_value();
959 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
960 CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "google.protobuf.Field.default_value"));
961 CHK_(ptr);
962 } else goto handle_unusual;
963 continue;
964 default: {
965 handle_unusual:
966 if ((tag & 7) == 4 || tag == 0) {
967 ctx->SetLastTag(tag);
968 goto success;
969 }
970 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
971 CHK_(ptr != nullptr);
972 continue;
973 }
974 } // switch
975 } // while
976 success:
977 return ptr;
978 failure:
979 ptr = nullptr;
980 goto success;
981 #undef CHK_
982 }
983
_InternalSerialize(::PROTOBUF_NAMESPACE_ID::uint8 * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const984 ::PROTOBUF_NAMESPACE_ID::uint8* Field::_InternalSerialize(
985 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
986 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Field)
987 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
988 (void) cached_has_bits;
989
990 // .google.protobuf.Field.Kind kind = 1;
991 if (this->kind() != 0) {
992 target = stream->EnsureSpace(target);
993 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
994 1, this->_internal_kind(), target);
995 }
996
997 // .google.protobuf.Field.Cardinality cardinality = 2;
998 if (this->cardinality() != 0) {
999 target = stream->EnsureSpace(target);
1000 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
1001 2, this->_internal_cardinality(), target);
1002 }
1003
1004 // int32 number = 3;
1005 if (this->number() != 0) {
1006 target = stream->EnsureSpace(target);
1007 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_number(), target);
1008 }
1009
1010 // string name = 4;
1011 if (this->name().size() > 0) {
1012 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1013 this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
1014 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1015 "google.protobuf.Field.name");
1016 target = stream->WriteStringMaybeAliased(
1017 4, this->_internal_name(), target);
1018 }
1019
1020 // string type_url = 6;
1021 if (this->type_url().size() > 0) {
1022 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1023 this->_internal_type_url().data(), static_cast<int>(this->_internal_type_url().length()),
1024 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1025 "google.protobuf.Field.type_url");
1026 target = stream->WriteStringMaybeAliased(
1027 6, this->_internal_type_url(), target);
1028 }
1029
1030 // int32 oneof_index = 7;
1031 if (this->oneof_index() != 0) {
1032 target = stream->EnsureSpace(target);
1033 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(7, this->_internal_oneof_index(), target);
1034 }
1035
1036 // bool packed = 8;
1037 if (this->packed() != 0) {
1038 target = stream->EnsureSpace(target);
1039 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(8, this->_internal_packed(), target);
1040 }
1041
1042 // repeated .google.protobuf.Option options = 9;
1043 for (unsigned int i = 0,
1044 n = static_cast<unsigned int>(this->_internal_options_size()); i < n; i++) {
1045 target = stream->EnsureSpace(target);
1046 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1047 InternalWriteMessage(9, this->_internal_options(i), target, stream);
1048 }
1049
1050 // string json_name = 10;
1051 if (this->json_name().size() > 0) {
1052 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1053 this->_internal_json_name().data(), static_cast<int>(this->_internal_json_name().length()),
1054 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1055 "google.protobuf.Field.json_name");
1056 target = stream->WriteStringMaybeAliased(
1057 10, this->_internal_json_name(), target);
1058 }
1059
1060 // string default_value = 11;
1061 if (this->default_value().size() > 0) {
1062 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1063 this->_internal_default_value().data(), static_cast<int>(this->_internal_default_value().length()),
1064 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1065 "google.protobuf.Field.default_value");
1066 target = stream->WriteStringMaybeAliased(
1067 11, this->_internal_default_value(), target);
1068 }
1069
1070 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1071 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
1072 _internal_metadata_.unknown_fields(), target, stream);
1073 }
1074 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Field)
1075 return target;
1076 }
1077
ByteSizeLong() const1078 size_t Field::ByteSizeLong() const {
1079 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Field)
1080 size_t total_size = 0;
1081
1082 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1083 // Prevent compiler warnings about cached_has_bits being unused
1084 (void) cached_has_bits;
1085
1086 // repeated .google.protobuf.Option options = 9;
1087 total_size += 1UL * this->_internal_options_size();
1088 for (const auto& msg : this->options_) {
1089 total_size +=
1090 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1091 }
1092
1093 // string name = 4;
1094 if (this->name().size() > 0) {
1095 total_size += 1 +
1096 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1097 this->_internal_name());
1098 }
1099
1100 // string type_url = 6;
1101 if (this->type_url().size() > 0) {
1102 total_size += 1 +
1103 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1104 this->_internal_type_url());
1105 }
1106
1107 // string json_name = 10;
1108 if (this->json_name().size() > 0) {
1109 total_size += 1 +
1110 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1111 this->_internal_json_name());
1112 }
1113
1114 // string default_value = 11;
1115 if (this->default_value().size() > 0) {
1116 total_size += 1 +
1117 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1118 this->_internal_default_value());
1119 }
1120
1121 // .google.protobuf.Field.Kind kind = 1;
1122 if (this->kind() != 0) {
1123 total_size += 1 +
1124 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_kind());
1125 }
1126
1127 // .google.protobuf.Field.Cardinality cardinality = 2;
1128 if (this->cardinality() != 0) {
1129 total_size += 1 +
1130 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_cardinality());
1131 }
1132
1133 // int32 number = 3;
1134 if (this->number() != 0) {
1135 total_size += 1 +
1136 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
1137 this->_internal_number());
1138 }
1139
1140 // int32 oneof_index = 7;
1141 if (this->oneof_index() != 0) {
1142 total_size += 1 +
1143 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
1144 this->_internal_oneof_index());
1145 }
1146
1147 // bool packed = 8;
1148 if (this->packed() != 0) {
1149 total_size += 1 + 1;
1150 }
1151
1152 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1153 return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
1154 _internal_metadata_, total_size, &_cached_size_);
1155 }
1156 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
1157 SetCachedSize(cached_size);
1158 return total_size;
1159 }
1160
MergeFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)1161 void Field::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1162 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Field)
1163 GOOGLE_DCHECK_NE(&from, this);
1164 const Field* source =
1165 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Field>(
1166 &from);
1167 if (source == nullptr) {
1168 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.Field)
1169 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
1170 } else {
1171 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.Field)
1172 MergeFrom(*source);
1173 }
1174 }
1175
MergeFrom(const Field & from)1176 void Field::MergeFrom(const Field& from) {
1177 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Field)
1178 GOOGLE_DCHECK_NE(&from, this);
1179 _internal_metadata_.MergeFrom(from._internal_metadata_);
1180 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1181 (void) cached_has_bits;
1182
1183 options_.MergeFrom(from.options_);
1184 if (from.name().size() > 0) {
1185 _internal_set_name(from._internal_name());
1186 }
1187 if (from.type_url().size() > 0) {
1188 _internal_set_type_url(from._internal_type_url());
1189 }
1190 if (from.json_name().size() > 0) {
1191 _internal_set_json_name(from._internal_json_name());
1192 }
1193 if (from.default_value().size() > 0) {
1194 _internal_set_default_value(from._internal_default_value());
1195 }
1196 if (from.kind() != 0) {
1197 _internal_set_kind(from._internal_kind());
1198 }
1199 if (from.cardinality() != 0) {
1200 _internal_set_cardinality(from._internal_cardinality());
1201 }
1202 if (from.number() != 0) {
1203 _internal_set_number(from._internal_number());
1204 }
1205 if (from.oneof_index() != 0) {
1206 _internal_set_oneof_index(from._internal_oneof_index());
1207 }
1208 if (from.packed() != 0) {
1209 _internal_set_packed(from._internal_packed());
1210 }
1211 }
1212
CopyFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)1213 void Field::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1214 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Field)
1215 if (&from == this) return;
1216 Clear();
1217 MergeFrom(from);
1218 }
1219
CopyFrom(const Field & from)1220 void Field::CopyFrom(const Field& from) {
1221 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Field)
1222 if (&from == this) return;
1223 Clear();
1224 MergeFrom(from);
1225 }
1226
IsInitialized() const1227 bool Field::IsInitialized() const {
1228 return true;
1229 }
1230
InternalSwap(Field * other)1231 void Field::InternalSwap(Field* other) {
1232 using std::swap;
1233 _internal_metadata_.Swap(&other->_internal_metadata_);
1234 options_.InternalSwap(&other->options_);
1235 name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1236 GetArenaNoVirtual());
1237 type_url_.Swap(&other->type_url_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1238 GetArenaNoVirtual());
1239 json_name_.Swap(&other->json_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1240 GetArenaNoVirtual());
1241 default_value_.Swap(&other->default_value_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1242 GetArenaNoVirtual());
1243 swap(kind_, other->kind_);
1244 swap(cardinality_, other->cardinality_);
1245 swap(number_, other->number_);
1246 swap(oneof_index_, other->oneof_index_);
1247 swap(packed_, other->packed_);
1248 }
1249
GetMetadata() const1250 ::PROTOBUF_NAMESPACE_ID::Metadata Field::GetMetadata() const {
1251 return GetMetadataStatic();
1252 }
1253
1254
1255 // ===================================================================
1256
InitAsDefaultInstance()1257 void Enum::InitAsDefaultInstance() {
1258 PROTOBUF_NAMESPACE_ID::_Enum_default_instance_._instance.get_mutable()->source_context_ = const_cast< PROTOBUF_NAMESPACE_ID::SourceContext*>(
1259 PROTOBUF_NAMESPACE_ID::SourceContext::internal_default_instance());
1260 }
1261 class Enum::_Internal {
1262 public:
1263 static const PROTOBUF_NAMESPACE_ID::SourceContext& source_context(const Enum* msg);
1264 };
1265
1266 const PROTOBUF_NAMESPACE_ID::SourceContext&
source_context(const Enum * msg)1267 Enum::_Internal::source_context(const Enum* msg) {
1268 return *msg->source_context_;
1269 }
unsafe_arena_set_allocated_source_context(PROTOBUF_NAMESPACE_ID::SourceContext * source_context)1270 void Enum::unsafe_arena_set_allocated_source_context(
1271 PROTOBUF_NAMESPACE_ID::SourceContext* source_context) {
1272 if (GetArenaNoVirtual() == nullptr) {
1273 delete source_context_;
1274 }
1275 source_context_ = source_context;
1276 if (source_context) {
1277
1278 } else {
1279
1280 }
1281 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Enum.source_context)
1282 }
clear_source_context()1283 void Enum::clear_source_context() {
1284 if (GetArenaNoVirtual() == nullptr && source_context_ != nullptr) {
1285 delete source_context_;
1286 }
1287 source_context_ = nullptr;
1288 }
Enum()1289 Enum::Enum()
1290 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
1291 SharedCtor();
1292 // @@protoc_insertion_point(constructor:google.protobuf.Enum)
1293 }
Enum(::PROTOBUF_NAMESPACE_ID::Arena * arena)1294 Enum::Enum(::PROTOBUF_NAMESPACE_ID::Arena* arena)
1295 : ::PROTOBUF_NAMESPACE_ID::Message(),
1296 _internal_metadata_(arena),
1297 enumvalue_(arena),
1298 options_(arena) {
1299 SharedCtor();
1300 RegisterArenaDtor(arena);
1301 // @@protoc_insertion_point(arena_constructor:google.protobuf.Enum)
1302 }
Enum(const Enum & from)1303 Enum::Enum(const Enum& from)
1304 : ::PROTOBUF_NAMESPACE_ID::Message(),
1305 _internal_metadata_(nullptr),
1306 enumvalue_(from.enumvalue_),
1307 options_(from.options_) {
1308 _internal_metadata_.MergeFrom(from._internal_metadata_);
1309 name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1310 if (!from._internal_name().empty()) {
1311 name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_name(),
1312 GetArenaNoVirtual());
1313 }
1314 if (from._internal_has_source_context()) {
1315 source_context_ = new PROTOBUF_NAMESPACE_ID::SourceContext(*from.source_context_);
1316 } else {
1317 source_context_ = nullptr;
1318 }
1319 syntax_ = from.syntax_;
1320 // @@protoc_insertion_point(copy_constructor:google.protobuf.Enum)
1321 }
1322
SharedCtor()1323 void Enum::SharedCtor() {
1324 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Enum_google_2fprotobuf_2ftype_2eproto.base);
1325 name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1326 ::memset(&source_context_, 0, static_cast<size_t>(
1327 reinterpret_cast<char*>(&syntax_) -
1328 reinterpret_cast<char*>(&source_context_)) + sizeof(syntax_));
1329 }
1330
~Enum()1331 Enum::~Enum() {
1332 // @@protoc_insertion_point(destructor:google.protobuf.Enum)
1333 SharedDtor();
1334 }
1335
SharedDtor()1336 void Enum::SharedDtor() {
1337 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
1338 name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1339 if (this != internal_default_instance()) delete source_context_;
1340 }
1341
ArenaDtor(void * object)1342 void Enum::ArenaDtor(void* object) {
1343 Enum* _this = reinterpret_cast< Enum* >(object);
1344 (void)_this;
1345 }
RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena *)1346 void Enum::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
1347 }
SetCachedSize(int size) const1348 void Enum::SetCachedSize(int size) const {
1349 _cached_size_.Set(size);
1350 }
default_instance()1351 const Enum& Enum::default_instance() {
1352 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Enum_google_2fprotobuf_2ftype_2eproto.base);
1353 return *internal_default_instance();
1354 }
1355
1356
Clear()1357 void Enum::Clear() {
1358 // @@protoc_insertion_point(message_clear_start:google.protobuf.Enum)
1359 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1360 // Prevent compiler warnings about cached_has_bits being unused
1361 (void) cached_has_bits;
1362
1363 enumvalue_.Clear();
1364 options_.Clear();
1365 name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1366 if (GetArenaNoVirtual() == nullptr && source_context_ != nullptr) {
1367 delete source_context_;
1368 }
1369 source_context_ = nullptr;
1370 syntax_ = 0;
1371 _internal_metadata_.Clear();
1372 }
1373
_InternalParse(const char * ptr,::PROTOBUF_NAMESPACE_ID::internal::ParseContext * ctx)1374 const char* Enum::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
1375 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1376 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
1377 while (!ctx->Done(&ptr)) {
1378 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
1379 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
1380 CHK_(ptr);
1381 switch (tag >> 3) {
1382 // string name = 1;
1383 case 1:
1384 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
1385 auto str = _internal_mutable_name();
1386 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
1387 CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "google.protobuf.Enum.name"));
1388 CHK_(ptr);
1389 } else goto handle_unusual;
1390 continue;
1391 // repeated .google.protobuf.EnumValue enumvalue = 2;
1392 case 2:
1393 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
1394 ptr -= 1;
1395 do {
1396 ptr += 1;
1397 ptr = ctx->ParseMessage(_internal_add_enumvalue(), ptr);
1398 CHK_(ptr);
1399 if (!ctx->DataAvailable(ptr)) break;
1400 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
1401 } else goto handle_unusual;
1402 continue;
1403 // repeated .google.protobuf.Option options = 3;
1404 case 3:
1405 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
1406 ptr -= 1;
1407 do {
1408 ptr += 1;
1409 ptr = ctx->ParseMessage(_internal_add_options(), ptr);
1410 CHK_(ptr);
1411 if (!ctx->DataAvailable(ptr)) break;
1412 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr));
1413 } else goto handle_unusual;
1414 continue;
1415 // .google.protobuf.SourceContext source_context = 4;
1416 case 4:
1417 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
1418 ptr = ctx->ParseMessage(_internal_mutable_source_context(), ptr);
1419 CHK_(ptr);
1420 } else goto handle_unusual;
1421 continue;
1422 // .google.protobuf.Syntax syntax = 5;
1423 case 5:
1424 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
1425 ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
1426 CHK_(ptr);
1427 _internal_set_syntax(static_cast<PROTOBUF_NAMESPACE_ID::Syntax>(val));
1428 } else goto handle_unusual;
1429 continue;
1430 default: {
1431 handle_unusual:
1432 if ((tag & 7) == 4 || tag == 0) {
1433 ctx->SetLastTag(tag);
1434 goto success;
1435 }
1436 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
1437 CHK_(ptr != nullptr);
1438 continue;
1439 }
1440 } // switch
1441 } // while
1442 success:
1443 return ptr;
1444 failure:
1445 ptr = nullptr;
1446 goto success;
1447 #undef CHK_
1448 }
1449
_InternalSerialize(::PROTOBUF_NAMESPACE_ID::uint8 * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const1450 ::PROTOBUF_NAMESPACE_ID::uint8* Enum::_InternalSerialize(
1451 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1452 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Enum)
1453 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1454 (void) cached_has_bits;
1455
1456 // string name = 1;
1457 if (this->name().size() > 0) {
1458 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1459 this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
1460 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1461 "google.protobuf.Enum.name");
1462 target = stream->WriteStringMaybeAliased(
1463 1, this->_internal_name(), target);
1464 }
1465
1466 // repeated .google.protobuf.EnumValue enumvalue = 2;
1467 for (unsigned int i = 0,
1468 n = static_cast<unsigned int>(this->_internal_enumvalue_size()); i < n; i++) {
1469 target = stream->EnsureSpace(target);
1470 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1471 InternalWriteMessage(2, this->_internal_enumvalue(i), target, stream);
1472 }
1473
1474 // repeated .google.protobuf.Option options = 3;
1475 for (unsigned int i = 0,
1476 n = static_cast<unsigned int>(this->_internal_options_size()); i < n; i++) {
1477 target = stream->EnsureSpace(target);
1478 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1479 InternalWriteMessage(3, this->_internal_options(i), target, stream);
1480 }
1481
1482 // .google.protobuf.SourceContext source_context = 4;
1483 if (this->has_source_context()) {
1484 target = stream->EnsureSpace(target);
1485 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1486 InternalWriteMessage(
1487 4, _Internal::source_context(this), target, stream);
1488 }
1489
1490 // .google.protobuf.Syntax syntax = 5;
1491 if (this->syntax() != 0) {
1492 target = stream->EnsureSpace(target);
1493 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
1494 5, this->_internal_syntax(), target);
1495 }
1496
1497 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1498 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
1499 _internal_metadata_.unknown_fields(), target, stream);
1500 }
1501 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Enum)
1502 return target;
1503 }
1504
ByteSizeLong() const1505 size_t Enum::ByteSizeLong() const {
1506 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Enum)
1507 size_t total_size = 0;
1508
1509 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1510 // Prevent compiler warnings about cached_has_bits being unused
1511 (void) cached_has_bits;
1512
1513 // repeated .google.protobuf.EnumValue enumvalue = 2;
1514 total_size += 1UL * this->_internal_enumvalue_size();
1515 for (const auto& msg : this->enumvalue_) {
1516 total_size +=
1517 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1518 }
1519
1520 // repeated .google.protobuf.Option options = 3;
1521 total_size += 1UL * this->_internal_options_size();
1522 for (const auto& msg : this->options_) {
1523 total_size +=
1524 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1525 }
1526
1527 // string name = 1;
1528 if (this->name().size() > 0) {
1529 total_size += 1 +
1530 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1531 this->_internal_name());
1532 }
1533
1534 // .google.protobuf.SourceContext source_context = 4;
1535 if (this->has_source_context()) {
1536 total_size += 1 +
1537 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
1538 *source_context_);
1539 }
1540
1541 // .google.protobuf.Syntax syntax = 5;
1542 if (this->syntax() != 0) {
1543 total_size += 1 +
1544 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_syntax());
1545 }
1546
1547 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1548 return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
1549 _internal_metadata_, total_size, &_cached_size_);
1550 }
1551 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
1552 SetCachedSize(cached_size);
1553 return total_size;
1554 }
1555
MergeFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)1556 void Enum::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1557 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Enum)
1558 GOOGLE_DCHECK_NE(&from, this);
1559 const Enum* source =
1560 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Enum>(
1561 &from);
1562 if (source == nullptr) {
1563 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.Enum)
1564 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
1565 } else {
1566 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.Enum)
1567 MergeFrom(*source);
1568 }
1569 }
1570
MergeFrom(const Enum & from)1571 void Enum::MergeFrom(const Enum& from) {
1572 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Enum)
1573 GOOGLE_DCHECK_NE(&from, this);
1574 _internal_metadata_.MergeFrom(from._internal_metadata_);
1575 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1576 (void) cached_has_bits;
1577
1578 enumvalue_.MergeFrom(from.enumvalue_);
1579 options_.MergeFrom(from.options_);
1580 if (from.name().size() > 0) {
1581 _internal_set_name(from._internal_name());
1582 }
1583 if (from.has_source_context()) {
1584 _internal_mutable_source_context()->PROTOBUF_NAMESPACE_ID::SourceContext::MergeFrom(from._internal_source_context());
1585 }
1586 if (from.syntax() != 0) {
1587 _internal_set_syntax(from._internal_syntax());
1588 }
1589 }
1590
CopyFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)1591 void Enum::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1592 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Enum)
1593 if (&from == this) return;
1594 Clear();
1595 MergeFrom(from);
1596 }
1597
CopyFrom(const Enum & from)1598 void Enum::CopyFrom(const Enum& from) {
1599 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Enum)
1600 if (&from == this) return;
1601 Clear();
1602 MergeFrom(from);
1603 }
1604
IsInitialized() const1605 bool Enum::IsInitialized() const {
1606 return true;
1607 }
1608
InternalSwap(Enum * other)1609 void Enum::InternalSwap(Enum* other) {
1610 using std::swap;
1611 _internal_metadata_.Swap(&other->_internal_metadata_);
1612 enumvalue_.InternalSwap(&other->enumvalue_);
1613 options_.InternalSwap(&other->options_);
1614 name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1615 GetArenaNoVirtual());
1616 swap(source_context_, other->source_context_);
1617 swap(syntax_, other->syntax_);
1618 }
1619
GetMetadata() const1620 ::PROTOBUF_NAMESPACE_ID::Metadata Enum::GetMetadata() const {
1621 return GetMetadataStatic();
1622 }
1623
1624
1625 // ===================================================================
1626
InitAsDefaultInstance()1627 void EnumValue::InitAsDefaultInstance() {
1628 }
1629 class EnumValue::_Internal {
1630 public:
1631 };
1632
EnumValue()1633 EnumValue::EnumValue()
1634 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
1635 SharedCtor();
1636 // @@protoc_insertion_point(constructor:google.protobuf.EnumValue)
1637 }
EnumValue(::PROTOBUF_NAMESPACE_ID::Arena * arena)1638 EnumValue::EnumValue(::PROTOBUF_NAMESPACE_ID::Arena* arena)
1639 : ::PROTOBUF_NAMESPACE_ID::Message(),
1640 _internal_metadata_(arena),
1641 options_(arena) {
1642 SharedCtor();
1643 RegisterArenaDtor(arena);
1644 // @@protoc_insertion_point(arena_constructor:google.protobuf.EnumValue)
1645 }
EnumValue(const EnumValue & from)1646 EnumValue::EnumValue(const EnumValue& from)
1647 : ::PROTOBUF_NAMESPACE_ID::Message(),
1648 _internal_metadata_(nullptr),
1649 options_(from.options_) {
1650 _internal_metadata_.MergeFrom(from._internal_metadata_);
1651 name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1652 if (!from._internal_name().empty()) {
1653 name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_name(),
1654 GetArenaNoVirtual());
1655 }
1656 number_ = from.number_;
1657 // @@protoc_insertion_point(copy_constructor:google.protobuf.EnumValue)
1658 }
1659
SharedCtor()1660 void EnumValue::SharedCtor() {
1661 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_EnumValue_google_2fprotobuf_2ftype_2eproto.base);
1662 name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1663 number_ = 0;
1664 }
1665
~EnumValue()1666 EnumValue::~EnumValue() {
1667 // @@protoc_insertion_point(destructor:google.protobuf.EnumValue)
1668 SharedDtor();
1669 }
1670
SharedDtor()1671 void EnumValue::SharedDtor() {
1672 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
1673 name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1674 }
1675
ArenaDtor(void * object)1676 void EnumValue::ArenaDtor(void* object) {
1677 EnumValue* _this = reinterpret_cast< EnumValue* >(object);
1678 (void)_this;
1679 }
RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena *)1680 void EnumValue::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
1681 }
SetCachedSize(int size) const1682 void EnumValue::SetCachedSize(int size) const {
1683 _cached_size_.Set(size);
1684 }
default_instance()1685 const EnumValue& EnumValue::default_instance() {
1686 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_EnumValue_google_2fprotobuf_2ftype_2eproto.base);
1687 return *internal_default_instance();
1688 }
1689
1690
Clear()1691 void EnumValue::Clear() {
1692 // @@protoc_insertion_point(message_clear_start:google.protobuf.EnumValue)
1693 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1694 // Prevent compiler warnings about cached_has_bits being unused
1695 (void) cached_has_bits;
1696
1697 options_.Clear();
1698 name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1699 number_ = 0;
1700 _internal_metadata_.Clear();
1701 }
1702
_InternalParse(const char * ptr,::PROTOBUF_NAMESPACE_ID::internal::ParseContext * ctx)1703 const char* EnumValue::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
1704 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1705 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
1706 while (!ctx->Done(&ptr)) {
1707 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
1708 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
1709 CHK_(ptr);
1710 switch (tag >> 3) {
1711 // string name = 1;
1712 case 1:
1713 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
1714 auto str = _internal_mutable_name();
1715 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
1716 CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "google.protobuf.EnumValue.name"));
1717 CHK_(ptr);
1718 } else goto handle_unusual;
1719 continue;
1720 // int32 number = 2;
1721 case 2:
1722 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
1723 number_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
1724 CHK_(ptr);
1725 } else goto handle_unusual;
1726 continue;
1727 // repeated .google.protobuf.Option options = 3;
1728 case 3:
1729 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
1730 ptr -= 1;
1731 do {
1732 ptr += 1;
1733 ptr = ctx->ParseMessage(_internal_add_options(), ptr);
1734 CHK_(ptr);
1735 if (!ctx->DataAvailable(ptr)) break;
1736 } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr));
1737 } else goto handle_unusual;
1738 continue;
1739 default: {
1740 handle_unusual:
1741 if ((tag & 7) == 4 || tag == 0) {
1742 ctx->SetLastTag(tag);
1743 goto success;
1744 }
1745 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
1746 CHK_(ptr != nullptr);
1747 continue;
1748 }
1749 } // switch
1750 } // while
1751 success:
1752 return ptr;
1753 failure:
1754 ptr = nullptr;
1755 goto success;
1756 #undef CHK_
1757 }
1758
_InternalSerialize(::PROTOBUF_NAMESPACE_ID::uint8 * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const1759 ::PROTOBUF_NAMESPACE_ID::uint8* EnumValue::_InternalSerialize(
1760 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1761 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.EnumValue)
1762 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1763 (void) cached_has_bits;
1764
1765 // string name = 1;
1766 if (this->name().size() > 0) {
1767 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1768 this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
1769 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1770 "google.protobuf.EnumValue.name");
1771 target = stream->WriteStringMaybeAliased(
1772 1, this->_internal_name(), target);
1773 }
1774
1775 // int32 number = 2;
1776 if (this->number() != 0) {
1777 target = stream->EnsureSpace(target);
1778 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_number(), target);
1779 }
1780
1781 // repeated .google.protobuf.Option options = 3;
1782 for (unsigned int i = 0,
1783 n = static_cast<unsigned int>(this->_internal_options_size()); i < n; i++) {
1784 target = stream->EnsureSpace(target);
1785 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1786 InternalWriteMessage(3, this->_internal_options(i), target, stream);
1787 }
1788
1789 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1790 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
1791 _internal_metadata_.unknown_fields(), target, stream);
1792 }
1793 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.EnumValue)
1794 return target;
1795 }
1796
ByteSizeLong() const1797 size_t EnumValue::ByteSizeLong() const {
1798 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.EnumValue)
1799 size_t total_size = 0;
1800
1801 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1802 // Prevent compiler warnings about cached_has_bits being unused
1803 (void) cached_has_bits;
1804
1805 // repeated .google.protobuf.Option options = 3;
1806 total_size += 1UL * this->_internal_options_size();
1807 for (const auto& msg : this->options_) {
1808 total_size +=
1809 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1810 }
1811
1812 // string name = 1;
1813 if (this->name().size() > 0) {
1814 total_size += 1 +
1815 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1816 this->_internal_name());
1817 }
1818
1819 // int32 number = 2;
1820 if (this->number() != 0) {
1821 total_size += 1 +
1822 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
1823 this->_internal_number());
1824 }
1825
1826 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1827 return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
1828 _internal_metadata_, total_size, &_cached_size_);
1829 }
1830 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
1831 SetCachedSize(cached_size);
1832 return total_size;
1833 }
1834
MergeFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)1835 void EnumValue::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1836 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.EnumValue)
1837 GOOGLE_DCHECK_NE(&from, this);
1838 const EnumValue* source =
1839 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<EnumValue>(
1840 &from);
1841 if (source == nullptr) {
1842 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.EnumValue)
1843 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
1844 } else {
1845 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.EnumValue)
1846 MergeFrom(*source);
1847 }
1848 }
1849
MergeFrom(const EnumValue & from)1850 void EnumValue::MergeFrom(const EnumValue& from) {
1851 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.EnumValue)
1852 GOOGLE_DCHECK_NE(&from, this);
1853 _internal_metadata_.MergeFrom(from._internal_metadata_);
1854 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1855 (void) cached_has_bits;
1856
1857 options_.MergeFrom(from.options_);
1858 if (from.name().size() > 0) {
1859 _internal_set_name(from._internal_name());
1860 }
1861 if (from.number() != 0) {
1862 _internal_set_number(from._internal_number());
1863 }
1864 }
1865
CopyFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)1866 void EnumValue::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1867 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.EnumValue)
1868 if (&from == this) return;
1869 Clear();
1870 MergeFrom(from);
1871 }
1872
CopyFrom(const EnumValue & from)1873 void EnumValue::CopyFrom(const EnumValue& from) {
1874 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.EnumValue)
1875 if (&from == this) return;
1876 Clear();
1877 MergeFrom(from);
1878 }
1879
IsInitialized() const1880 bool EnumValue::IsInitialized() const {
1881 return true;
1882 }
1883
InternalSwap(EnumValue * other)1884 void EnumValue::InternalSwap(EnumValue* other) {
1885 using std::swap;
1886 _internal_metadata_.Swap(&other->_internal_metadata_);
1887 options_.InternalSwap(&other->options_);
1888 name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1889 GetArenaNoVirtual());
1890 swap(number_, other->number_);
1891 }
1892
GetMetadata() const1893 ::PROTOBUF_NAMESPACE_ID::Metadata EnumValue::GetMetadata() const {
1894 return GetMetadataStatic();
1895 }
1896
1897
1898 // ===================================================================
1899
InitAsDefaultInstance()1900 void Option::InitAsDefaultInstance() {
1901 PROTOBUF_NAMESPACE_ID::_Option_default_instance_._instance.get_mutable()->value_ = const_cast< PROTOBUF_NAMESPACE_ID::Any*>(
1902 PROTOBUF_NAMESPACE_ID::Any::internal_default_instance());
1903 }
1904 class Option::_Internal {
1905 public:
1906 static const PROTOBUF_NAMESPACE_ID::Any& value(const Option* msg);
1907 };
1908
1909 const PROTOBUF_NAMESPACE_ID::Any&
value(const Option * msg)1910 Option::_Internal::value(const Option* msg) {
1911 return *msg->value_;
1912 }
unsafe_arena_set_allocated_value(PROTOBUF_NAMESPACE_ID::Any * value)1913 void Option::unsafe_arena_set_allocated_value(
1914 PROTOBUF_NAMESPACE_ID::Any* value) {
1915 if (GetArenaNoVirtual() == nullptr) {
1916 delete value_;
1917 }
1918 value_ = value;
1919 if (value) {
1920
1921 } else {
1922
1923 }
1924 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Option.value)
1925 }
clear_value()1926 void Option::clear_value() {
1927 if (GetArenaNoVirtual() == nullptr && value_ != nullptr) {
1928 delete value_;
1929 }
1930 value_ = nullptr;
1931 }
Option()1932 Option::Option()
1933 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
1934 SharedCtor();
1935 // @@protoc_insertion_point(constructor:google.protobuf.Option)
1936 }
Option(::PROTOBUF_NAMESPACE_ID::Arena * arena)1937 Option::Option(::PROTOBUF_NAMESPACE_ID::Arena* arena)
1938 : ::PROTOBUF_NAMESPACE_ID::Message(),
1939 _internal_metadata_(arena) {
1940 SharedCtor();
1941 RegisterArenaDtor(arena);
1942 // @@protoc_insertion_point(arena_constructor:google.protobuf.Option)
1943 }
Option(const Option & from)1944 Option::Option(const Option& from)
1945 : ::PROTOBUF_NAMESPACE_ID::Message(),
1946 _internal_metadata_(nullptr) {
1947 _internal_metadata_.MergeFrom(from._internal_metadata_);
1948 name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1949 if (!from._internal_name().empty()) {
1950 name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_name(),
1951 GetArenaNoVirtual());
1952 }
1953 if (from._internal_has_value()) {
1954 value_ = new PROTOBUF_NAMESPACE_ID::Any(*from.value_);
1955 } else {
1956 value_ = nullptr;
1957 }
1958 // @@protoc_insertion_point(copy_constructor:google.protobuf.Option)
1959 }
1960
SharedCtor()1961 void Option::SharedCtor() {
1962 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Option_google_2fprotobuf_2ftype_2eproto.base);
1963 name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1964 value_ = nullptr;
1965 }
1966
~Option()1967 Option::~Option() {
1968 // @@protoc_insertion_point(destructor:google.protobuf.Option)
1969 SharedDtor();
1970 }
1971
SharedDtor()1972 void Option::SharedDtor() {
1973 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
1974 name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1975 if (this != internal_default_instance()) delete value_;
1976 }
1977
ArenaDtor(void * object)1978 void Option::ArenaDtor(void* object) {
1979 Option* _this = reinterpret_cast< Option* >(object);
1980 (void)_this;
1981 }
RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena *)1982 void Option::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
1983 }
SetCachedSize(int size) const1984 void Option::SetCachedSize(int size) const {
1985 _cached_size_.Set(size);
1986 }
default_instance()1987 const Option& Option::default_instance() {
1988 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Option_google_2fprotobuf_2ftype_2eproto.base);
1989 return *internal_default_instance();
1990 }
1991
1992
Clear()1993 void Option::Clear() {
1994 // @@protoc_insertion_point(message_clear_start:google.protobuf.Option)
1995 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1996 // Prevent compiler warnings about cached_has_bits being unused
1997 (void) cached_has_bits;
1998
1999 name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
2000 if (GetArenaNoVirtual() == nullptr && value_ != nullptr) {
2001 delete value_;
2002 }
2003 value_ = nullptr;
2004 _internal_metadata_.Clear();
2005 }
2006
_InternalParse(const char * ptr,::PROTOBUF_NAMESPACE_ID::internal::ParseContext * ctx)2007 const char* Option::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
2008 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2009 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
2010 while (!ctx->Done(&ptr)) {
2011 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
2012 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
2013 CHK_(ptr);
2014 switch (tag >> 3) {
2015 // string name = 1;
2016 case 1:
2017 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
2018 auto str = _internal_mutable_name();
2019 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
2020 CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "google.protobuf.Option.name"));
2021 CHK_(ptr);
2022 } else goto handle_unusual;
2023 continue;
2024 // .google.protobuf.Any value = 2;
2025 case 2:
2026 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
2027 ptr = ctx->ParseMessage(_internal_mutable_value(), ptr);
2028 CHK_(ptr);
2029 } else goto handle_unusual;
2030 continue;
2031 default: {
2032 handle_unusual:
2033 if ((tag & 7) == 4 || tag == 0) {
2034 ctx->SetLastTag(tag);
2035 goto success;
2036 }
2037 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
2038 CHK_(ptr != nullptr);
2039 continue;
2040 }
2041 } // switch
2042 } // while
2043 success:
2044 return ptr;
2045 failure:
2046 ptr = nullptr;
2047 goto success;
2048 #undef CHK_
2049 }
2050
_InternalSerialize(::PROTOBUF_NAMESPACE_ID::uint8 * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const2051 ::PROTOBUF_NAMESPACE_ID::uint8* Option::_InternalSerialize(
2052 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
2053 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Option)
2054 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2055 (void) cached_has_bits;
2056
2057 // string name = 1;
2058 if (this->name().size() > 0) {
2059 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2060 this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
2061 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2062 "google.protobuf.Option.name");
2063 target = stream->WriteStringMaybeAliased(
2064 1, this->_internal_name(), target);
2065 }
2066
2067 // .google.protobuf.Any value = 2;
2068 if (this->has_value()) {
2069 target = stream->EnsureSpace(target);
2070 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2071 InternalWriteMessage(
2072 2, _Internal::value(this), target, stream);
2073 }
2074
2075 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2076 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
2077 _internal_metadata_.unknown_fields(), target, stream);
2078 }
2079 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Option)
2080 return target;
2081 }
2082
ByteSizeLong() const2083 size_t Option::ByteSizeLong() const {
2084 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Option)
2085 size_t total_size = 0;
2086
2087 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2088 // Prevent compiler warnings about cached_has_bits being unused
2089 (void) cached_has_bits;
2090
2091 // string name = 1;
2092 if (this->name().size() > 0) {
2093 total_size += 1 +
2094 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
2095 this->_internal_name());
2096 }
2097
2098 // .google.protobuf.Any value = 2;
2099 if (this->has_value()) {
2100 total_size += 1 +
2101 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
2102 *value_);
2103 }
2104
2105 if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
2106 return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
2107 _internal_metadata_, total_size, &_cached_size_);
2108 }
2109 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
2110 SetCachedSize(cached_size);
2111 return total_size;
2112 }
2113
MergeFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)2114 void Option::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
2115 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Option)
2116 GOOGLE_DCHECK_NE(&from, this);
2117 const Option* source =
2118 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Option>(
2119 &from);
2120 if (source == nullptr) {
2121 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.Option)
2122 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
2123 } else {
2124 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.Option)
2125 MergeFrom(*source);
2126 }
2127 }
2128
MergeFrom(const Option & from)2129 void Option::MergeFrom(const Option& from) {
2130 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Option)
2131 GOOGLE_DCHECK_NE(&from, this);
2132 _internal_metadata_.MergeFrom(from._internal_metadata_);
2133 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2134 (void) cached_has_bits;
2135
2136 if (from.name().size() > 0) {
2137 _internal_set_name(from._internal_name());
2138 }
2139 if (from.has_value()) {
2140 _internal_mutable_value()->PROTOBUF_NAMESPACE_ID::Any::MergeFrom(from._internal_value());
2141 }
2142 }
2143
CopyFrom(const::PROTOBUF_NAMESPACE_ID::Message & from)2144 void Option::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
2145 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Option)
2146 if (&from == this) return;
2147 Clear();
2148 MergeFrom(from);
2149 }
2150
CopyFrom(const Option & from)2151 void Option::CopyFrom(const Option& from) {
2152 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Option)
2153 if (&from == this) return;
2154 Clear();
2155 MergeFrom(from);
2156 }
2157
IsInitialized() const2158 bool Option::IsInitialized() const {
2159 return true;
2160 }
2161
InternalSwap(Option * other)2162 void Option::InternalSwap(Option* other) {
2163 using std::swap;
2164 _internal_metadata_.Swap(&other->_internal_metadata_);
2165 name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
2166 GetArenaNoVirtual());
2167 swap(value_, other->value_);
2168 }
2169
GetMetadata() const2170 ::PROTOBUF_NAMESPACE_ID::Metadata Option::GetMetadata() const {
2171 return GetMetadataStatic();
2172 }
2173
2174
2175 // @@protoc_insertion_point(namespace_scope)
2176 PROTOBUF_NAMESPACE_CLOSE
2177 PROTOBUF_NAMESPACE_OPEN
CreateMaybeMessage(Arena * arena)2178 template<> PROTOBUF_NOINLINE PROTOBUF_NAMESPACE_ID::Type* Arena::CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::Type >(Arena* arena) {
2179 return Arena::CreateMessageInternal< PROTOBUF_NAMESPACE_ID::Type >(arena);
2180 }
CreateMaybeMessage(Arena * arena)2181 template<> PROTOBUF_NOINLINE PROTOBUF_NAMESPACE_ID::Field* Arena::CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::Field >(Arena* arena) {
2182 return Arena::CreateMessageInternal< PROTOBUF_NAMESPACE_ID::Field >(arena);
2183 }
CreateMaybeMessage(Arena * arena)2184 template<> PROTOBUF_NOINLINE PROTOBUF_NAMESPACE_ID::Enum* Arena::CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::Enum >(Arena* arena) {
2185 return Arena::CreateMessageInternal< PROTOBUF_NAMESPACE_ID::Enum >(arena);
2186 }
CreateMaybeMessage(Arena * arena)2187 template<> PROTOBUF_NOINLINE PROTOBUF_NAMESPACE_ID::EnumValue* Arena::CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::EnumValue >(Arena* arena) {
2188 return Arena::CreateMessageInternal< PROTOBUF_NAMESPACE_ID::EnumValue >(arena);
2189 }
CreateMaybeMessage(Arena * arena)2190 template<> PROTOBUF_NOINLINE PROTOBUF_NAMESPACE_ID::Option* Arena::CreateMaybeMessage< PROTOBUF_NAMESPACE_ID::Option >(Arena* arena) {
2191 return Arena::CreateMessageInternal< PROTOBUF_NAMESPACE_ID::Option >(arena);
2192 }
2193 PROTOBUF_NAMESPACE_CLOSE
2194
2195 // @@protoc_insertion_point(global_scope)
2196 #include <google/protobuf/port_undef.inc>
2197