1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | // source: 00825_protobuf_format.proto |
3 | |
4 | #include "00825_protobuf_format.pb.h" |
5 | |
6 | #include <algorithm> |
7 | |
8 | #include <google/protobuf/stubs/common.h> |
9 | #include <google/protobuf/stubs/port.h> |
10 | #include <google/protobuf/io/coded_stream.h> |
11 | #include <google/protobuf/wire_format_lite_inl.h> |
12 | #include <google/protobuf/descriptor.h> |
13 | #include <google/protobuf/generated_message_reflection.h> |
14 | #include <google/protobuf/reflection_ops.h> |
15 | #include <google/protobuf/wire_format.h> |
16 | // This is a temporary google only hack |
17 | #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS |
18 | #include "third_party/protobuf/version.h" |
19 | #endif |
20 | // @@protoc_insertion_point(includes) |
21 | |
22 | namespace protobuf_00825_5fprotobuf_5fformat_2eproto { |
23 | extern PROTOBUF_INTERNAL_EXPORT_protobuf_00825_5fprotobuf_5fformat_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_AltPerson_Dummy_Empty; |
24 | extern PROTOBUF_INTERNAL_EXPORT_protobuf_00825_5fprotobuf_5fformat_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Nestiness_SubA_SubB_SubC; |
25 | extern PROTOBUF_INTERNAL_EXPORT_protobuf_00825_5fprotobuf_5fformat_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Person_MeasureUnit; |
26 | extern PROTOBUF_INTERNAL_EXPORT_protobuf_00825_5fprotobuf_5fformat_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_StrPerson_MeasureUnits; |
27 | extern PROTOBUF_INTERNAL_EXPORT_protobuf_00825_5fprotobuf_5fformat_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_StrPerson_NestinessA_SubBC; |
28 | extern PROTOBUF_INTERNAL_EXPORT_protobuf_00825_5fprotobuf_5fformat_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_AltPerson_Dummy; |
29 | extern PROTOBUF_INTERNAL_EXPORT_protobuf_00825_5fprotobuf_5fformat_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Nestiness; |
30 | extern PROTOBUF_INTERNAL_EXPORT_protobuf_00825_5fprotobuf_5fformat_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Nestiness_SubA; |
31 | extern PROTOBUF_INTERNAL_EXPORT_protobuf_00825_5fprotobuf_5fformat_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Nestiness_SubA_SubB; |
32 | extern PROTOBUF_INTERNAL_EXPORT_protobuf_00825_5fprotobuf_5fformat_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_StrPerson_NestinessA; |
33 | } // namespace protobuf_00825_5fprotobuf_5fformat_2eproto |
34 | class Nestiness_SubA_SubB_SubCDefaultTypeInternal { |
35 | public: |
36 | ::google::protobuf::internal::ExplicitlyConstructed<Nestiness_SubA_SubB_SubC> |
37 | _instance; |
38 | } _Nestiness_SubA_SubB_SubC_default_instance_; |
39 | class Nestiness_SubA_SubBDefaultTypeInternal { |
40 | public: |
41 | ::google::protobuf::internal::ExplicitlyConstructed<Nestiness_SubA_SubB> |
42 | _instance; |
43 | } _Nestiness_SubA_SubB_default_instance_; |
44 | class Nestiness_SubADefaultTypeInternal { |
45 | public: |
46 | ::google::protobuf::internal::ExplicitlyConstructed<Nestiness_SubA> |
47 | _instance; |
48 | } _Nestiness_SubA_default_instance_; |
49 | class NestinessDefaultTypeInternal { |
50 | public: |
51 | ::google::protobuf::internal::ExplicitlyConstructed<Nestiness> |
52 | _instance; |
53 | } _Nestiness_default_instance_; |
54 | class Person_MeasureUnitDefaultTypeInternal { |
55 | public: |
56 | ::google::protobuf::internal::ExplicitlyConstructed<Person_MeasureUnit> |
57 | _instance; |
58 | } _Person_MeasureUnit_default_instance_; |
59 | class PersonDefaultTypeInternal { |
60 | public: |
61 | ::google::protobuf::internal::ExplicitlyConstructed<Person> |
62 | _instance; |
63 | } _Person_default_instance_; |
64 | class AltPerson_Dummy_EmptyDefaultTypeInternal { |
65 | public: |
66 | ::google::protobuf::internal::ExplicitlyConstructed<AltPerson_Dummy_Empty> |
67 | _instance; |
68 | } _AltPerson_Dummy_Empty_default_instance_; |
69 | class AltPerson_DummyDefaultTypeInternal { |
70 | public: |
71 | ::google::protobuf::internal::ExplicitlyConstructed<AltPerson_Dummy> |
72 | _instance; |
73 | } _AltPerson_Dummy_default_instance_; |
74 | class AltPersonDefaultTypeInternal { |
75 | public: |
76 | ::google::protobuf::internal::ExplicitlyConstructed<AltPerson> |
77 | _instance; |
78 | } _AltPerson_default_instance_; |
79 | class StrPerson_MeasureUnitsDefaultTypeInternal { |
80 | public: |
81 | ::google::protobuf::internal::ExplicitlyConstructed<StrPerson_MeasureUnits> |
82 | _instance; |
83 | } _StrPerson_MeasureUnits_default_instance_; |
84 | class StrPerson_NestinessA_SubBCDefaultTypeInternal { |
85 | public: |
86 | ::google::protobuf::internal::ExplicitlyConstructed<StrPerson_NestinessA_SubBC> |
87 | _instance; |
88 | } _StrPerson_NestinessA_SubBC_default_instance_; |
89 | class StrPerson_NestinessADefaultTypeInternal { |
90 | public: |
91 | ::google::protobuf::internal::ExplicitlyConstructed<StrPerson_NestinessA> |
92 | _instance; |
93 | } _StrPerson_NestinessA_default_instance_; |
94 | class StrPersonDefaultTypeInternal { |
95 | public: |
96 | ::google::protobuf::internal::ExplicitlyConstructed<StrPerson> |
97 | _instance; |
98 | } _StrPerson_default_instance_; |
99 | class NumberAndSquareDefaultTypeInternal { |
100 | public: |
101 | ::google::protobuf::internal::ExplicitlyConstructed<NumberAndSquare> |
102 | _instance; |
103 | } _NumberAndSquare_default_instance_; |
104 | namespace protobuf_00825_5fprotobuf_5fformat_2eproto { |
105 | static void InitDefaultsNestiness_SubA_SubB_SubC() { |
106 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
107 | |
108 | { |
109 | void* ptr = &::_Nestiness_SubA_SubB_SubC_default_instance_; |
110 | new (ptr) ::Nestiness_SubA_SubB_SubC(); |
111 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
112 | } |
113 | ::Nestiness_SubA_SubB_SubC::InitAsDefaultInstance(); |
114 | } |
115 | |
116 | ::google::protobuf::internal::SCCInfo<0> scc_info_Nestiness_SubA_SubB_SubC = |
117 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsNestiness_SubA_SubB_SubC}, {}}; |
118 | |
119 | static void InitDefaultsNestiness_SubA_SubB() { |
120 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
121 | |
122 | { |
123 | void* ptr = &::_Nestiness_SubA_SubB_default_instance_; |
124 | new (ptr) ::Nestiness_SubA_SubB(); |
125 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
126 | } |
127 | ::Nestiness_SubA_SubB::InitAsDefaultInstance(); |
128 | } |
129 | |
130 | ::google::protobuf::internal::SCCInfo<1> scc_info_Nestiness_SubA_SubB = |
131 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsNestiness_SubA_SubB}, { |
132 | &protobuf_00825_5fprotobuf_5fformat_2eproto::scc_info_Nestiness_SubA_SubB_SubC.base,}}; |
133 | |
134 | static void InitDefaultsNestiness_SubA() { |
135 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
136 | |
137 | { |
138 | void* ptr = &::_Nestiness_SubA_default_instance_; |
139 | new (ptr) ::Nestiness_SubA(); |
140 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
141 | } |
142 | ::Nestiness_SubA::InitAsDefaultInstance(); |
143 | } |
144 | |
145 | ::google::protobuf::internal::SCCInfo<1> scc_info_Nestiness_SubA = |
146 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsNestiness_SubA}, { |
147 | &protobuf_00825_5fprotobuf_5fformat_2eproto::scc_info_Nestiness_SubA_SubB.base,}}; |
148 | |
149 | static void InitDefaultsNestiness() { |
150 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
151 | |
152 | { |
153 | void* ptr = &::_Nestiness_default_instance_; |
154 | new (ptr) ::Nestiness(); |
155 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
156 | } |
157 | ::Nestiness::InitAsDefaultInstance(); |
158 | } |
159 | |
160 | ::google::protobuf::internal::SCCInfo<1> scc_info_Nestiness = |
161 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsNestiness}, { |
162 | &protobuf_00825_5fprotobuf_5fformat_2eproto::scc_info_Nestiness_SubA.base,}}; |
163 | |
164 | static void InitDefaultsPerson_MeasureUnit() { |
165 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
166 | |
167 | { |
168 | void* ptr = &::_Person_MeasureUnit_default_instance_; |
169 | new (ptr) ::Person_MeasureUnit(); |
170 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
171 | } |
172 | ::Person_MeasureUnit::InitAsDefaultInstance(); |
173 | } |
174 | |
175 | ::google::protobuf::internal::SCCInfo<0> scc_info_Person_MeasureUnit = |
176 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsPerson_MeasureUnit}, {}}; |
177 | |
178 | static void InitDefaultsPerson() { |
179 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
180 | |
181 | { |
182 | void* ptr = &::_Person_default_instance_; |
183 | new (ptr) ::Person(); |
184 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
185 | } |
186 | ::Person::InitAsDefaultInstance(); |
187 | } |
188 | |
189 | ::google::protobuf::internal::SCCInfo<2> scc_info_Person = |
190 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsPerson}, { |
191 | &protobuf_00825_5fprotobuf_5fformat_2eproto::scc_info_Person_MeasureUnit.base, |
192 | &protobuf_00825_5fprotobuf_5fformat_2eproto::scc_info_Nestiness.base,}}; |
193 | |
194 | static void InitDefaultsAltPerson_Dummy_Empty() { |
195 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
196 | |
197 | { |
198 | void* ptr = &::_AltPerson_Dummy_Empty_default_instance_; |
199 | new (ptr) ::AltPerson_Dummy_Empty(); |
200 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
201 | } |
202 | ::AltPerson_Dummy_Empty::InitAsDefaultInstance(); |
203 | } |
204 | |
205 | ::google::protobuf::internal::SCCInfo<0> scc_info_AltPerson_Dummy_Empty = |
206 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAltPerson_Dummy_Empty}, {}}; |
207 | |
208 | static void InitDefaultsAltPerson_Dummy() { |
209 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
210 | |
211 | { |
212 | void* ptr = &::_AltPerson_Dummy_default_instance_; |
213 | new (ptr) ::AltPerson_Dummy(); |
214 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
215 | } |
216 | ::AltPerson_Dummy::InitAsDefaultInstance(); |
217 | } |
218 | |
219 | ::google::protobuf::internal::SCCInfo<1> scc_info_AltPerson_Dummy = |
220 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsAltPerson_Dummy}, { |
221 | &protobuf_00825_5fprotobuf_5fformat_2eproto::scc_info_AltPerson_Dummy_Empty.base,}}; |
222 | |
223 | static void InitDefaultsAltPerson() { |
224 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
225 | |
226 | { |
227 | void* ptr = &::_AltPerson_default_instance_; |
228 | new (ptr) ::AltPerson(); |
229 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
230 | } |
231 | ::AltPerson::InitAsDefaultInstance(); |
232 | } |
233 | |
234 | ::google::protobuf::internal::SCCInfo<1> scc_info_AltPerson = |
235 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsAltPerson}, { |
236 | &protobuf_00825_5fprotobuf_5fformat_2eproto::scc_info_AltPerson_Dummy.base,}}; |
237 | |
238 | static void InitDefaultsStrPerson_MeasureUnits() { |
239 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
240 | |
241 | { |
242 | void* ptr = &::_StrPerson_MeasureUnits_default_instance_; |
243 | new (ptr) ::StrPerson_MeasureUnits(); |
244 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
245 | } |
246 | ::StrPerson_MeasureUnits::InitAsDefaultInstance(); |
247 | } |
248 | |
249 | ::google::protobuf::internal::SCCInfo<0> scc_info_StrPerson_MeasureUnits = |
250 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStrPerson_MeasureUnits}, {}}; |
251 | |
252 | static void InitDefaultsStrPerson_NestinessA_SubBC() { |
253 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
254 | |
255 | { |
256 | void* ptr = &::_StrPerson_NestinessA_SubBC_default_instance_; |
257 | new (ptr) ::StrPerson_NestinessA_SubBC(); |
258 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
259 | } |
260 | ::StrPerson_NestinessA_SubBC::InitAsDefaultInstance(); |
261 | } |
262 | |
263 | ::google::protobuf::internal::SCCInfo<0> scc_info_StrPerson_NestinessA_SubBC = |
264 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsStrPerson_NestinessA_SubBC}, {}}; |
265 | |
266 | static void InitDefaultsStrPerson_NestinessA() { |
267 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
268 | |
269 | { |
270 | void* ptr = &::_StrPerson_NestinessA_default_instance_; |
271 | new (ptr) ::StrPerson_NestinessA(); |
272 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
273 | } |
274 | ::StrPerson_NestinessA::InitAsDefaultInstance(); |
275 | } |
276 | |
277 | ::google::protobuf::internal::SCCInfo<1> scc_info_StrPerson_NestinessA = |
278 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsStrPerson_NestinessA}, { |
279 | &protobuf_00825_5fprotobuf_5fformat_2eproto::scc_info_StrPerson_NestinessA_SubBC.base,}}; |
280 | |
281 | static void InitDefaultsStrPerson() { |
282 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
283 | |
284 | { |
285 | void* ptr = &::_StrPerson_default_instance_; |
286 | new (ptr) ::StrPerson(); |
287 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
288 | } |
289 | ::StrPerson::InitAsDefaultInstance(); |
290 | } |
291 | |
292 | ::google::protobuf::internal::SCCInfo<2> scc_info_StrPerson = |
293 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsStrPerson}, { |
294 | &protobuf_00825_5fprotobuf_5fformat_2eproto::scc_info_StrPerson_MeasureUnits.base, |
295 | &protobuf_00825_5fprotobuf_5fformat_2eproto::scc_info_StrPerson_NestinessA.base,}}; |
296 | |
297 | static void InitDefaultsNumberAndSquare() { |
298 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
299 | |
300 | { |
301 | void* ptr = &::_NumberAndSquare_default_instance_; |
302 | new (ptr) ::NumberAndSquare(); |
303 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
304 | } |
305 | ::NumberAndSquare::InitAsDefaultInstance(); |
306 | } |
307 | |
308 | ::google::protobuf::internal::SCCInfo<0> scc_info_NumberAndSquare = |
309 | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsNumberAndSquare}, {}}; |
310 | |
311 | void InitDefaults() { |
312 | ::google::protobuf::internal::InitSCC(&scc_info_Nestiness_SubA_SubB_SubC.base); |
313 | ::google::protobuf::internal::InitSCC(&scc_info_Nestiness_SubA_SubB.base); |
314 | ::google::protobuf::internal::InitSCC(&scc_info_Nestiness_SubA.base); |
315 | ::google::protobuf::internal::InitSCC(&scc_info_Nestiness.base); |
316 | ::google::protobuf::internal::InitSCC(&scc_info_Person_MeasureUnit.base); |
317 | ::google::protobuf::internal::InitSCC(&scc_info_Person.base); |
318 | ::google::protobuf::internal::InitSCC(&scc_info_AltPerson_Dummy_Empty.base); |
319 | ::google::protobuf::internal::InitSCC(&scc_info_AltPerson_Dummy.base); |
320 | ::google::protobuf::internal::InitSCC(&scc_info_AltPerson.base); |
321 | ::google::protobuf::internal::InitSCC(&scc_info_StrPerson_MeasureUnits.base); |
322 | ::google::protobuf::internal::InitSCC(&scc_info_StrPerson_NestinessA_SubBC.base); |
323 | ::google::protobuf::internal::InitSCC(&scc_info_StrPerson_NestinessA.base); |
324 | ::google::protobuf::internal::InitSCC(&scc_info_StrPerson.base); |
325 | ::google::protobuf::internal::InitSCC(&scc_info_NumberAndSquare.base); |
326 | } |
327 | |
328 | ::google::protobuf::Metadata file_level_metadata[14]; |
329 | const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[4]; |
330 | |
331 | const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
332 | ~0u, // no _has_bits_ |
333 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Nestiness_SubA_SubB_SubC, _internal_metadata_), |
334 | ~0u, // no _extensions_ |
335 | ~0u, // no _oneof_case_ |
336 | ~0u, // no _weak_field_map_ |
337 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Nestiness_SubA_SubB_SubC, d_), |
338 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Nestiness_SubA_SubB_SubC, e_), |
339 | ~0u, // no _has_bits_ |
340 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Nestiness_SubA_SubB, _internal_metadata_), |
341 | ~0u, // no _extensions_ |
342 | ~0u, // no _oneof_case_ |
343 | ~0u, // no _weak_field_map_ |
344 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Nestiness_SubA_SubB, c_), |
345 | ~0u, // no _has_bits_ |
346 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Nestiness_SubA, _internal_metadata_), |
347 | ~0u, // no _extensions_ |
348 | ~0u, // no _oneof_case_ |
349 | ~0u, // no _weak_field_map_ |
350 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Nestiness_SubA, b_), |
351 | ~0u, // no _has_bits_ |
352 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Nestiness, _internal_metadata_), |
353 | ~0u, // no _extensions_ |
354 | ~0u, // no _oneof_case_ |
355 | ~0u, // no _weak_field_map_ |
356 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Nestiness, a_), |
357 | ~0u, // no _has_bits_ |
358 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Person_MeasureUnit, _internal_metadata_), |
359 | ~0u, // no _extensions_ |
360 | ~0u, // no _oneof_case_ |
361 | ~0u, // no _weak_field_map_ |
362 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Person_MeasureUnit, unit_), |
363 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Person_MeasureUnit, coef_), |
364 | ~0u, // no _has_bits_ |
365 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Person, _internal_metadata_), |
366 | ~0u, // no _extensions_ |
367 | ~0u, // no _oneof_case_ |
368 | ~0u, // no _weak_field_map_ |
369 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Person, uuid_), |
370 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Person, name_), |
371 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Person, surname_), |
372 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Person, gender_), |
373 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Person, birthdate_), |
374 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Person, photo_), |
375 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Person, phonenumber_), |
376 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Person, isonline_), |
377 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Person, visittime_), |
378 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Person, age_), |
379 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Person, zodiacsign_), |
380 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Person, songs_), |
381 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Person, color_), |
382 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Person, hometown_), |
383 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Person, location_), |
384 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Person, pi_), |
385 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Person, lotterywin_), |
386 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Person, someratio_), |
387 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Person, temperature_), |
388 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Person, randombignumber_), |
389 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Person, measureunits_), |
390 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Person, nestiness_), |
391 | ~0u, // no _has_bits_ |
392 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AltPerson_Dummy_Empty, _internal_metadata_), |
393 | ~0u, // no _extensions_ |
394 | ~0u, // no _oneof_case_ |
395 | ~0u, // no _weak_field_map_ |
396 | ~0u, // no _has_bits_ |
397 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AltPerson_Dummy, _internal_metadata_), |
398 | ~0u, // no _extensions_ |
399 | ~0u, // no _oneof_case_ |
400 | ~0u, // no _weak_field_map_ |
401 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AltPerson_Dummy, empty_), |
402 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AltPerson_Dummy, z_), |
403 | ~0u, // no _has_bits_ |
404 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AltPerson, _internal_metadata_), |
405 | ~0u, // no _extensions_ |
406 | ~0u, // no _oneof_case_ |
407 | ~0u, // no _weak_field_map_ |
408 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AltPerson, location_), |
409 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AltPerson, pi_), |
410 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AltPerson, uuid_), |
411 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AltPerson, newfieldbool_), |
412 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AltPerson, name_), |
413 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AltPerson, gender_), |
414 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AltPerson, zodiacsign_), |
415 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AltPerson, birthdate_), |
416 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AltPerson, age_), |
417 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AltPerson, isonline_), |
418 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AltPerson, someratio_), |
419 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AltPerson, visittime_), |
420 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AltPerson, newmessage_), |
421 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AltPerson, randombignumber_), |
422 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AltPerson, newfieldint_), |
423 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AltPerson, color_), |
424 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AltPerson, lotterywin_), |
425 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AltPerson, surname_), |
426 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AltPerson, phonenumber_), |
427 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AltPerson, temperature_), |
428 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AltPerson, newfieldstr_), |
429 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AltPerson, measureunits_unit_), |
430 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AltPerson, measureunits_coef_), |
431 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AltPerson, nestiness_a_b_c_d_), |
432 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AltPerson, nestiness_a_b_c_e_), |
433 | ~0u, // no _has_bits_ |
434 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::StrPerson_MeasureUnits, _internal_metadata_), |
435 | ~0u, // no _extensions_ |
436 | ~0u, // no _oneof_case_ |
437 | ~0u, // no _weak_field_map_ |
438 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::StrPerson_MeasureUnits, unit_), |
439 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::StrPerson_MeasureUnits, coef_), |
440 | ~0u, // no _has_bits_ |
441 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::StrPerson_NestinessA_SubBC, _internal_metadata_), |
442 | ~0u, // no _extensions_ |
443 | ~0u, // no _oneof_case_ |
444 | ~0u, // no _weak_field_map_ |
445 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::StrPerson_NestinessA_SubBC, d_), |
446 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::StrPerson_NestinessA_SubBC, e_), |
447 | ~0u, // no _has_bits_ |
448 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::StrPerson_NestinessA, _internal_metadata_), |
449 | ~0u, // no _extensions_ |
450 | ~0u, // no _oneof_case_ |
451 | ~0u, // no _weak_field_map_ |
452 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::StrPerson_NestinessA, b_c_), |
453 | ~0u, // no _has_bits_ |
454 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::StrPerson, _internal_metadata_), |
455 | ~0u, // no _extensions_ |
456 | ~0u, // no _oneof_case_ |
457 | ~0u, // no _weak_field_map_ |
458 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::StrPerson, uuid_), |
459 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::StrPerson, name_), |
460 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::StrPerson, surname_), |
461 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::StrPerson, gender_), |
462 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::StrPerson, birthdate_), |
463 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::StrPerson, phonenumber_), |
464 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::StrPerson, isonline_), |
465 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::StrPerson, visittime_), |
466 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::StrPerson, age_), |
467 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::StrPerson, zodiacsign_), |
468 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::StrPerson, songs_), |
469 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::StrPerson, color_), |
470 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::StrPerson, hometown_), |
471 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::StrPerson, location_), |
472 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::StrPerson, pi_), |
473 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::StrPerson, lotterywin_), |
474 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::StrPerson, someratio_), |
475 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::StrPerson, temperature_), |
476 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::StrPerson, randombignumber_), |
477 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::StrPerson, measureunits_), |
478 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::StrPerson, nestiness_a_), |
479 | ~0u, // no _has_bits_ |
480 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::NumberAndSquare, _internal_metadata_), |
481 | ~0u, // no _extensions_ |
482 | ~0u, // no _oneof_case_ |
483 | ~0u, // no _weak_field_map_ |
484 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::NumberAndSquare, number_), |
485 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::NumberAndSquare, square_), |
486 | }; |
487 | static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
488 | { 0, -1, sizeof(::Nestiness_SubA_SubB_SubC)}, |
489 | { 7, -1, sizeof(::Nestiness_SubA_SubB)}, |
490 | { 13, -1, sizeof(::Nestiness_SubA)}, |
491 | { 19, -1, sizeof(::Nestiness)}, |
492 | { 25, -1, sizeof(::Person_MeasureUnit)}, |
493 | { 32, -1, sizeof(::Person)}, |
494 | { 59, -1, sizeof(::AltPerson_Dummy_Empty)}, |
495 | { 64, -1, sizeof(::AltPerson_Dummy)}, |
496 | { 71, -1, sizeof(::AltPerson)}, |
497 | { 101, -1, sizeof(::StrPerson_MeasureUnits)}, |
498 | { 108, -1, sizeof(::StrPerson_NestinessA_SubBC)}, |
499 | { 115, -1, sizeof(::StrPerson_NestinessA)}, |
500 | { 121, -1, sizeof(::StrPerson)}, |
501 | { 147, -1, sizeof(::NumberAndSquare)}, |
502 | }; |
503 | |
504 | static ::google::protobuf::Message const * const file_default_instances[] = { |
505 | reinterpret_cast<const ::google::protobuf::Message*>(&::_Nestiness_SubA_SubB_SubC_default_instance_), |
506 | reinterpret_cast<const ::google::protobuf::Message*>(&::_Nestiness_SubA_SubB_default_instance_), |
507 | reinterpret_cast<const ::google::protobuf::Message*>(&::_Nestiness_SubA_default_instance_), |
508 | reinterpret_cast<const ::google::protobuf::Message*>(&::_Nestiness_default_instance_), |
509 | reinterpret_cast<const ::google::protobuf::Message*>(&::_Person_MeasureUnit_default_instance_), |
510 | reinterpret_cast<const ::google::protobuf::Message*>(&::_Person_default_instance_), |
511 | reinterpret_cast<const ::google::protobuf::Message*>(&::_AltPerson_Dummy_Empty_default_instance_), |
512 | reinterpret_cast<const ::google::protobuf::Message*>(&::_AltPerson_Dummy_default_instance_), |
513 | reinterpret_cast<const ::google::protobuf::Message*>(&::_AltPerson_default_instance_), |
514 | reinterpret_cast<const ::google::protobuf::Message*>(&::_StrPerson_MeasureUnits_default_instance_), |
515 | reinterpret_cast<const ::google::protobuf::Message*>(&::_StrPerson_NestinessA_SubBC_default_instance_), |
516 | reinterpret_cast<const ::google::protobuf::Message*>(&::_StrPerson_NestinessA_default_instance_), |
517 | reinterpret_cast<const ::google::protobuf::Message*>(&::_StrPerson_default_instance_), |
518 | reinterpret_cast<const ::google::protobuf::Message*>(&::_NumberAndSquare_default_instance_), |
519 | }; |
520 | |
521 | void protobuf_AssignDescriptors() { |
522 | AddDescriptors(); |
523 | AssignDescriptors( |
524 | "00825_protobuf_format.proto" , schemas, file_default_instances, TableStruct::offsets, |
525 | file_level_metadata, file_level_enum_descriptors, NULL); |
526 | } |
527 | |
528 | void protobuf_AssignDescriptorsOnce() { |
529 | static ::google::protobuf::internal::once_flag once; |
530 | ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors); |
531 | } |
532 | |
533 | void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; |
534 | void protobuf_RegisterTypes(const ::std::string&) { |
535 | protobuf_AssignDescriptorsOnce(); |
536 | ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 14); |
537 | } |
538 | |
539 | void AddDescriptorsImpl() { |
540 | InitDefaults(); |
541 | static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
542 | "\n\03300825_protobuf_format.proto\"\234\001\n\tNestin" |
543 | "ess\022\032\n\001a\030\001 \001(\0132\017.Nestiness.SubA\032s\n\004SubA\022" |
544 | "\037\n\001b\030d \001(\0132\024.Nestiness.SubA.SubB\032J\n\004SubB" |
545 | "\022$\n\001c\030\001 \001(\0132\031.Nestiness.SubA.SubB.SubC\032\034" |
546 | "\n\004SubC\022\t\n\001d\030\001 \001(\r\022\t\n\001e\030\002 \003(\r\"\360\003\n\006Person\022" |
547 | "\014\n\004uuid\030\001 \001(\t\022\014\n\004name\030\002 \001(\t\022\017\n\007surname\030\003" |
548 | " \001(\t\022\027\n\006gender\030\004 \001(\0162\007.Gender\022\021\n\tbirthDa" |
549 | "te\030\005 \001(\r\022\r\n\005photo\030\006 \001(\014\022\023\n\013phoneNumber\030\007" |
550 | " \001(\t\022\020\n\010isOnline\030\010 \001(\010\022\021\n\tvisitTime\030\t \001(" |
551 | "\007\022\013\n\003age\030\n \001(\r\022\037\n\nzodiacSign\030\013 \001(\0162\013.Zod" |
552 | "iacSign\022\r\n\005songs\030\014 \003(\t\022\r\n\005color\030\r \003(\r\022\020\n" |
553 | "\010hometown\030\016 \001(\t\022\020\n\010location\030\017 \003(\002\022\n\n\002pi\030" |
554 | "\020 \001(\001\022\022\n\nlotteryWin\030\021 \001(\001\022\021\n\tsomeRatio\030\022" |
555 | " \001(\002\022\023\n\013temperature\030\023 \001(\002\022\027\n\017randomBigNu" |
556 | "mber\030\024 \001(\022\022)\n\014measureUnits\030\025 \003(\0132\023.Perso" |
557 | "n.MeasureUnit\022\035\n\tnestiness\030\026 \001(\0132\n.Nesti" |
558 | "ness\032)\n\013MeasureUnit\022\014\n\004unit\030\001 \001(\t\022\014\n\004coe" |
559 | "f\030\002 \001(\002\"\235\005\n\tAltPerson\022\024\n\010location\030e \003(\005B" |
560 | "\002\020\000\022\n\n\002pi\030g \001(\002\022\r\n\004uuid\030\254\002 \001(\014\022\025\n\014newFie" |
561 | "ldBool\030\253\002 \001(\010\022\014\n\004name\030\002 \001(\t\022!\n\006gender\030f " |
562 | "\001(\0162\021.AltPerson.Gender\022\023\n\nzodiacSign\030\202\001 " |
563 | "\001(\005\022\022\n\tbirthDate\030\226\001 \001(\003\022\013\n\003age\030o \001(\014\022\037\n\010" |
564 | "isOnline\030\001 \001(\0162\r.OnlineStatus\022\021\n\tsomeRat" |
565 | "io\030d \001(\001\022\021\n\tvisitTime\030\017 \001(\006\022%\n\nnewMessag" |
566 | "e\030\350\007 \001(\0132\020.AltPerson.Dummy\022\030\n\017randomBigN" |
567 | "umber\030\214\001 \001(\020\022\023\n\013newFieldInt\030h \003(\005\022\r\n\005col" |
568 | "or\030\016 \003(\002\022\023\n\nlotteryWin\030\312\001 \001(\004\022\017\n\007surname" |
569 | "\030\n \001(\014\022\023\n\013phoneNumber\030\005 \001(\004\022\023\n\013temperatu" |
570 | "re\030) \001(\021\022\023\n\013newFieldStr\030\025 \001(\t\022\031\n\021measure" |
571 | "Units_unit\030c \003(\t\022\031\n\021measureUnits_coef\030X " |
572 | "\003(\002\022\032\n\021nestiness_a_b_c_d\030\204\007 \001(\r\022\032\n\021nesti" |
573 | "ness_a_b_c_e\030\205\007 \003(\r\032B\n\005Dummy\022%\n\005empty\030\001 " |
574 | "\003(\0132\026.AltPerson.Dummy.Empty\022\t\n\001z\030\002 \001(\002\032\007" |
575 | "\n\005Empty\"\036\n\006Gender\022\010\n\004male\020\000\022\n\n\006female\020\001\"" |
576 | "\267\004\n\tStrPerson\022\014\n\004uuid\030\001 \001(\t\022\014\n\004name\030\002 \001(" |
577 | "\t\022\017\n\007surname\030\003 \001(\t\022\016\n\006gender\030\004 \001(\t\022\021\n\tbi" |
578 | "rthDate\030\005 \001(\t\022\023\n\013phoneNumber\030\007 \001(\t\022\020\n\010is" |
579 | "Online\030\010 \001(\t\022\021\n\tvisitTime\030\t \001(\t\022\013\n\003age\030\n" |
580 | " \001(\t\022\022\n\nzodiacSign\030\013 \001(\t\022\r\n\005songs\030\014 \003(\t\022" |
581 | "\r\n\005color\030\r \003(\t\022\020\n\010hometown\030\016 \001(\t\022\020\n\010loca" |
582 | "tion\030\017 \003(\t\022\n\n\002pi\030\020 \001(\t\022\022\n\nlotteryWin\030\021 \001" |
583 | "(\t\022\021\n\tsomeRatio\030\022 \001(\t\022\023\n\013temperature\030\023 \001" |
584 | "(\t\022\027\n\017randomBigNumber\030\024 \001(\t\022-\n\014measureUn" |
585 | "its\030\025 \001(\0132\027.StrPerson.MeasureUnits\022*\n\013ne" |
586 | "stiness_a\030\026 \001(\0132\025.StrPerson.NestinessA\032*" |
587 | "\n\014MeasureUnits\022\014\n\004unit\030\001 \003(\t\022\014\n\004coef\030\002 \003" |
588 | "(\t\032U\n\nNestinessA\022(\n\003b_c\030\001 \001(\0132\033.StrPerso" |
589 | "n.NestinessA.SubBC\032\035\n\005SubBC\022\t\n\001d\030\001 \001(\t\022\t" |
590 | "\n\001e\030\002 \003(\t\"1\n\017NumberAndSquare\022\016\n\006number\030\001" |
591 | " \001(\r\022\016\n\006square\030\002 \001(\004*\036\n\006Gender\022\n\n\006female" |
592 | "\020\000\022\010\n\004male\020\001*\242\001\n\nZodiacSign\022\t\n\005aries\020\000\022\n" |
593 | "\n\006taurus\020\001\022\n\n\006gemini\020\002\022\n\n\006cancer\020\003\022\007\n\003le" |
594 | "o\020\004\022\t\n\005virgo\020\005\022\t\n\005libra\020\006\022\014\n\010scorpius\020\007\022" |
595 | "\017\n\013sagittarius\020\010\022\r\n\tcapricorn\020\t\022\014\n\010aquar" |
596 | "ius\020\n\022\n\n\006pisces\020\013*\'\n\014OnlineStatus\022\013\n\007off" |
597 | "line\020\000\022\n\n\006online\020\001b\006proto3" |
598 | }; |
599 | ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( |
600 | descriptor, 2226); |
601 | ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( |
602 | "00825_protobuf_format.proto" , &protobuf_RegisterTypes); |
603 | } |
604 | |
605 | void AddDescriptors() { |
606 | static ::google::protobuf::internal::once_flag once; |
607 | ::google::protobuf::internal::call_once(once, AddDescriptorsImpl); |
608 | } |
609 | // Force AddDescriptors() to be called at dynamic initialization time. |
610 | struct StaticDescriptorInitializer { |
611 | StaticDescriptorInitializer() { |
612 | AddDescriptors(); |
613 | } |
614 | } static_descriptor_initializer; |
615 | } // namespace protobuf_00825_5fprotobuf_5fformat_2eproto |
616 | const ::google::protobuf::EnumDescriptor* AltPerson_Gender_descriptor() { |
617 | protobuf_00825_5fprotobuf_5fformat_2eproto::protobuf_AssignDescriptorsOnce(); |
618 | return protobuf_00825_5fprotobuf_5fformat_2eproto::file_level_enum_descriptors[0]; |
619 | } |
620 | bool AltPerson_Gender_IsValid(int value) { |
621 | switch (value) { |
622 | case 0: |
623 | case 1: |
624 | return true; |
625 | default: |
626 | return false; |
627 | } |
628 | } |
629 | |
630 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
631 | const AltPerson_Gender AltPerson::male; |
632 | const AltPerson_Gender AltPerson::female; |
633 | const AltPerson_Gender AltPerson::Gender_MIN; |
634 | const AltPerson_Gender AltPerson::Gender_MAX; |
635 | const int AltPerson::Gender_ARRAYSIZE; |
636 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
637 | const ::google::protobuf::EnumDescriptor* Gender_descriptor() { |
638 | protobuf_00825_5fprotobuf_5fformat_2eproto::protobuf_AssignDescriptorsOnce(); |
639 | return protobuf_00825_5fprotobuf_5fformat_2eproto::file_level_enum_descriptors[1]; |
640 | } |
641 | bool Gender_IsValid(int value) { |
642 | switch (value) { |
643 | case 0: |
644 | case 1: |
645 | return true; |
646 | default: |
647 | return false; |
648 | } |
649 | } |
650 | |
651 | const ::google::protobuf::EnumDescriptor* ZodiacSign_descriptor() { |
652 | protobuf_00825_5fprotobuf_5fformat_2eproto::protobuf_AssignDescriptorsOnce(); |
653 | return protobuf_00825_5fprotobuf_5fformat_2eproto::file_level_enum_descriptors[2]; |
654 | } |
655 | bool ZodiacSign_IsValid(int value) { |
656 | switch (value) { |
657 | case 0: |
658 | case 1: |
659 | case 2: |
660 | case 3: |
661 | case 4: |
662 | case 5: |
663 | case 6: |
664 | case 7: |
665 | case 8: |
666 | case 9: |
667 | case 10: |
668 | case 11: |
669 | return true; |
670 | default: |
671 | return false; |
672 | } |
673 | } |
674 | |
675 | const ::google::protobuf::EnumDescriptor* OnlineStatus_descriptor() { |
676 | protobuf_00825_5fprotobuf_5fformat_2eproto::protobuf_AssignDescriptorsOnce(); |
677 | return protobuf_00825_5fprotobuf_5fformat_2eproto::file_level_enum_descriptors[3]; |
678 | } |
679 | bool OnlineStatus_IsValid(int value) { |
680 | switch (value) { |
681 | case 0: |
682 | case 1: |
683 | return true; |
684 | default: |
685 | return false; |
686 | } |
687 | } |
688 | |
689 | |
690 | // =================================================================== |
691 | |
692 | void Nestiness_SubA_SubB_SubC::InitAsDefaultInstance() { |
693 | } |
694 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
695 | const int Nestiness_SubA_SubB_SubC::kDFieldNumber; |
696 | const int Nestiness_SubA_SubB_SubC::kEFieldNumber; |
697 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
698 | |
699 | Nestiness_SubA_SubB_SubC::Nestiness_SubA_SubB_SubC() |
700 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
701 | ::google::protobuf::internal::InitSCC( |
702 | &protobuf_00825_5fprotobuf_5fformat_2eproto::scc_info_Nestiness_SubA_SubB_SubC.base); |
703 | SharedCtor(); |
704 | // @@protoc_insertion_point(constructor:Nestiness.SubA.SubB.SubC) |
705 | } |
706 | Nestiness_SubA_SubB_SubC::Nestiness_SubA_SubB_SubC(const Nestiness_SubA_SubB_SubC& from) |
707 | : ::google::protobuf::Message(), |
708 | _internal_metadata_(NULL), |
709 | e_(from.e_) { |
710 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
711 | d_ = from.d_; |
712 | // @@protoc_insertion_point(copy_constructor:Nestiness.SubA.SubB.SubC) |
713 | } |
714 | |
715 | void Nestiness_SubA_SubB_SubC::SharedCtor() { |
716 | d_ = 0u; |
717 | } |
718 | |
719 | Nestiness_SubA_SubB_SubC::~Nestiness_SubA_SubB_SubC() { |
720 | // @@protoc_insertion_point(destructor:Nestiness.SubA.SubB.SubC) |
721 | SharedDtor(); |
722 | } |
723 | |
724 | void Nestiness_SubA_SubB_SubC::SharedDtor() { |
725 | } |
726 | |
727 | void Nestiness_SubA_SubB_SubC::SetCachedSize(int size) const { |
728 | _cached_size_.Set(size); |
729 | } |
730 | const ::google::protobuf::Descriptor* Nestiness_SubA_SubB_SubC::descriptor() { |
731 | ::protobuf_00825_5fprotobuf_5fformat_2eproto::protobuf_AssignDescriptorsOnce(); |
732 | return ::protobuf_00825_5fprotobuf_5fformat_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
733 | } |
734 | |
735 | const Nestiness_SubA_SubB_SubC& Nestiness_SubA_SubB_SubC::default_instance() { |
736 | ::google::protobuf::internal::InitSCC(&protobuf_00825_5fprotobuf_5fformat_2eproto::scc_info_Nestiness_SubA_SubB_SubC.base); |
737 | return *internal_default_instance(); |
738 | } |
739 | |
740 | |
741 | void Nestiness_SubA_SubB_SubC::Clear() { |
742 | // @@protoc_insertion_point(message_clear_start:Nestiness.SubA.SubB.SubC) |
743 | ::google::protobuf::uint32 cached_has_bits = 0; |
744 | // Prevent compiler warnings about cached_has_bits being unused |
745 | (void) cached_has_bits; |
746 | |
747 | e_.Clear(); |
748 | d_ = 0u; |
749 | _internal_metadata_.Clear(); |
750 | } |
751 | |
752 | bool Nestiness_SubA_SubB_SubC::MergePartialFromCodedStream( |
753 | ::google::protobuf::io::CodedInputStream* input) { |
754 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
755 | ::google::protobuf::uint32 tag; |
756 | // @@protoc_insertion_point(parse_start:Nestiness.SubA.SubB.SubC) |
757 | for (;;) { |
758 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
759 | tag = p.first; |
760 | if (!p.second) goto handle_unusual; |
761 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
762 | // uint32 d = 1; |
763 | case 1: { |
764 | if (static_cast< ::google::protobuf::uint8>(tag) == |
765 | static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { |
766 | |
767 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
768 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
769 | input, &d_))); |
770 | } else { |
771 | goto handle_unusual; |
772 | } |
773 | break; |
774 | } |
775 | |
776 | // repeated uint32 e = 2; |
777 | case 2: { |
778 | if (static_cast< ::google::protobuf::uint8>(tag) == |
779 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
780 | DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< |
781 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
782 | input, this->mutable_e()))); |
783 | } else if ( |
784 | static_cast< ::google::protobuf::uint8>(tag) == |
785 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
786 | DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< |
787 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
788 | 1, 18u, input, this->mutable_e()))); |
789 | } else { |
790 | goto handle_unusual; |
791 | } |
792 | break; |
793 | } |
794 | |
795 | default: { |
796 | handle_unusual: |
797 | if (tag == 0) { |
798 | goto success; |
799 | } |
800 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
801 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
802 | break; |
803 | } |
804 | } |
805 | } |
806 | success: |
807 | // @@protoc_insertion_point(parse_success:Nestiness.SubA.SubB.SubC) |
808 | return true; |
809 | failure: |
810 | // @@protoc_insertion_point(parse_failure:Nestiness.SubA.SubB.SubC) |
811 | return false; |
812 | #undef DO_ |
813 | } |
814 | |
815 | void Nestiness_SubA_SubB_SubC::SerializeWithCachedSizes( |
816 | ::google::protobuf::io::CodedOutputStream* output) const { |
817 | // @@protoc_insertion_point(serialize_start:Nestiness.SubA.SubB.SubC) |
818 | ::google::protobuf::uint32 cached_has_bits = 0; |
819 | (void) cached_has_bits; |
820 | |
821 | // uint32 d = 1; |
822 | if (this->d() != 0) { |
823 | ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->d(), output); |
824 | } |
825 | |
826 | // repeated uint32 e = 2; |
827 | if (this->e_size() > 0) { |
828 | ::google::protobuf::internal::WireFormatLite::WriteTag(2, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
829 | output->WriteVarint32(static_cast< ::google::protobuf::uint32>( |
830 | _e_cached_byte_size_)); |
831 | } |
832 | for (int i = 0, n = this->e_size(); i < n; i++) { |
833 | ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( |
834 | this->e(i), output); |
835 | } |
836 | |
837 | if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { |
838 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
839 | (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); |
840 | } |
841 | // @@protoc_insertion_point(serialize_end:Nestiness.SubA.SubB.SubC) |
842 | } |
843 | |
844 | ::google::protobuf::uint8* Nestiness_SubA_SubB_SubC::InternalSerializeWithCachedSizesToArray( |
845 | bool deterministic, ::google::protobuf::uint8* target) const { |
846 | (void)deterministic; // Unused |
847 | // @@protoc_insertion_point(serialize_to_array_start:Nestiness.SubA.SubB.SubC) |
848 | ::google::protobuf::uint32 cached_has_bits = 0; |
849 | (void) cached_has_bits; |
850 | |
851 | // uint32 d = 1; |
852 | if (this->d() != 0) { |
853 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->d(), target); |
854 | } |
855 | |
856 | // repeated uint32 e = 2; |
857 | if (this->e_size() > 0) { |
858 | target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( |
859 | 2, |
860 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
861 | target); |
862 | target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( |
863 | static_cast< ::google::protobuf::int32>( |
864 | _e_cached_byte_size_), target); |
865 | target = ::google::protobuf::internal::WireFormatLite:: |
866 | WriteUInt32NoTagToArray(this->e_, target); |
867 | } |
868 | |
869 | if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { |
870 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
871 | (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); |
872 | } |
873 | // @@protoc_insertion_point(serialize_to_array_end:Nestiness.SubA.SubB.SubC) |
874 | return target; |
875 | } |
876 | |
877 | size_t Nestiness_SubA_SubB_SubC::ByteSizeLong() const { |
878 | // @@protoc_insertion_point(message_byte_size_start:Nestiness.SubA.SubB.SubC) |
879 | size_t total_size = 0; |
880 | |
881 | if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { |
882 | total_size += |
883 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
884 | (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); |
885 | } |
886 | // repeated uint32 e = 2; |
887 | { |
888 | size_t data_size = ::google::protobuf::internal::WireFormatLite:: |
889 | UInt32Size(this->e_); |
890 | if (data_size > 0) { |
891 | total_size += 1 + |
892 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
893 | static_cast< ::google::protobuf::int32>(data_size)); |
894 | } |
895 | int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); |
896 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
897 | _e_cached_byte_size_ = cached_size; |
898 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
899 | total_size += data_size; |
900 | } |
901 | |
902 | // uint32 d = 1; |
903 | if (this->d() != 0) { |
904 | total_size += 1 + |
905 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
906 | this->d()); |
907 | } |
908 | |
909 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
910 | SetCachedSize(cached_size); |
911 | return total_size; |
912 | } |
913 | |
914 | void Nestiness_SubA_SubB_SubC::MergeFrom(const ::google::protobuf::Message& from) { |
915 | // @@protoc_insertion_point(generalized_merge_from_start:Nestiness.SubA.SubB.SubC) |
916 | GOOGLE_DCHECK_NE(&from, this); |
917 | const Nestiness_SubA_SubB_SubC* source = |
918 | ::google::protobuf::internal::DynamicCastToGenerated<const Nestiness_SubA_SubB_SubC>( |
919 | &from); |
920 | if (source == NULL) { |
921 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:Nestiness.SubA.SubB.SubC) |
922 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
923 | } else { |
924 | // @@protoc_insertion_point(generalized_merge_from_cast_success:Nestiness.SubA.SubB.SubC) |
925 | MergeFrom(*source); |
926 | } |
927 | } |
928 | |
929 | void Nestiness_SubA_SubB_SubC::MergeFrom(const Nestiness_SubA_SubB_SubC& from) { |
930 | // @@protoc_insertion_point(class_specific_merge_from_start:Nestiness.SubA.SubB.SubC) |
931 | GOOGLE_DCHECK_NE(&from, this); |
932 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
933 | ::google::protobuf::uint32 cached_has_bits = 0; |
934 | (void) cached_has_bits; |
935 | |
936 | e_.MergeFrom(from.e_); |
937 | if (from.d() != 0) { |
938 | set_d(from.d()); |
939 | } |
940 | } |
941 | |
942 | void Nestiness_SubA_SubB_SubC::CopyFrom(const ::google::protobuf::Message& from) { |
943 | // @@protoc_insertion_point(generalized_copy_from_start:Nestiness.SubA.SubB.SubC) |
944 | if (&from == this) return; |
945 | Clear(); |
946 | MergeFrom(from); |
947 | } |
948 | |
949 | void Nestiness_SubA_SubB_SubC::CopyFrom(const Nestiness_SubA_SubB_SubC& from) { |
950 | // @@protoc_insertion_point(class_specific_copy_from_start:Nestiness.SubA.SubB.SubC) |
951 | if (&from == this) return; |
952 | Clear(); |
953 | MergeFrom(from); |
954 | } |
955 | |
956 | bool Nestiness_SubA_SubB_SubC::IsInitialized() const { |
957 | return true; |
958 | } |
959 | |
960 | void Nestiness_SubA_SubB_SubC::Swap(Nestiness_SubA_SubB_SubC* other) { |
961 | if (other == this) return; |
962 | InternalSwap(other); |
963 | } |
964 | void Nestiness_SubA_SubB_SubC::InternalSwap(Nestiness_SubA_SubB_SubC* other) { |
965 | using std::swap; |
966 | e_.InternalSwap(&other->e_); |
967 | swap(d_, other->d_); |
968 | _internal_metadata_.Swap(&other->_internal_metadata_); |
969 | } |
970 | |
971 | ::google::protobuf::Metadata Nestiness_SubA_SubB_SubC::GetMetadata() const { |
972 | protobuf_00825_5fprotobuf_5fformat_2eproto::protobuf_AssignDescriptorsOnce(); |
973 | return ::protobuf_00825_5fprotobuf_5fformat_2eproto::file_level_metadata[kIndexInFileMessages]; |
974 | } |
975 | |
976 | |
977 | // =================================================================== |
978 | |
979 | void Nestiness_SubA_SubB::InitAsDefaultInstance() { |
980 | ::_Nestiness_SubA_SubB_default_instance_._instance.get_mutable()->c_ = const_cast< ::Nestiness_SubA_SubB_SubC*>( |
981 | ::Nestiness_SubA_SubB_SubC::internal_default_instance()); |
982 | } |
983 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
984 | const int Nestiness_SubA_SubB::kCFieldNumber; |
985 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
986 | |
987 | Nestiness_SubA_SubB::Nestiness_SubA_SubB() |
988 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
989 | ::google::protobuf::internal::InitSCC( |
990 | &protobuf_00825_5fprotobuf_5fformat_2eproto::scc_info_Nestiness_SubA_SubB.base); |
991 | SharedCtor(); |
992 | // @@protoc_insertion_point(constructor:Nestiness.SubA.SubB) |
993 | } |
994 | Nestiness_SubA_SubB::Nestiness_SubA_SubB(const Nestiness_SubA_SubB& from) |
995 | : ::google::protobuf::Message(), |
996 | _internal_metadata_(NULL) { |
997 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
998 | if (from.has_c()) { |
999 | c_ = new ::Nestiness_SubA_SubB_SubC(*from.c_); |
1000 | } else { |
1001 | c_ = NULL; |
1002 | } |
1003 | // @@protoc_insertion_point(copy_constructor:Nestiness.SubA.SubB) |
1004 | } |
1005 | |
1006 | void Nestiness_SubA_SubB::SharedCtor() { |
1007 | c_ = NULL; |
1008 | } |
1009 | |
1010 | Nestiness_SubA_SubB::~Nestiness_SubA_SubB() { |
1011 | // @@protoc_insertion_point(destructor:Nestiness.SubA.SubB) |
1012 | SharedDtor(); |
1013 | } |
1014 | |
1015 | void Nestiness_SubA_SubB::SharedDtor() { |
1016 | if (this != internal_default_instance()) delete c_; |
1017 | } |
1018 | |
1019 | void Nestiness_SubA_SubB::SetCachedSize(int size) const { |
1020 | _cached_size_.Set(size); |
1021 | } |
1022 | const ::google::protobuf::Descriptor* Nestiness_SubA_SubB::descriptor() { |
1023 | ::protobuf_00825_5fprotobuf_5fformat_2eproto::protobuf_AssignDescriptorsOnce(); |
1024 | return ::protobuf_00825_5fprotobuf_5fformat_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
1025 | } |
1026 | |
1027 | const Nestiness_SubA_SubB& Nestiness_SubA_SubB::default_instance() { |
1028 | ::google::protobuf::internal::InitSCC(&protobuf_00825_5fprotobuf_5fformat_2eproto::scc_info_Nestiness_SubA_SubB.base); |
1029 | return *internal_default_instance(); |
1030 | } |
1031 | |
1032 | |
1033 | void Nestiness_SubA_SubB::Clear() { |
1034 | // @@protoc_insertion_point(message_clear_start:Nestiness.SubA.SubB) |
1035 | ::google::protobuf::uint32 cached_has_bits = 0; |
1036 | // Prevent compiler warnings about cached_has_bits being unused |
1037 | (void) cached_has_bits; |
1038 | |
1039 | if (GetArenaNoVirtual() == NULL && c_ != NULL) { |
1040 | delete c_; |
1041 | } |
1042 | c_ = NULL; |
1043 | _internal_metadata_.Clear(); |
1044 | } |
1045 | |
1046 | bool Nestiness_SubA_SubB::MergePartialFromCodedStream( |
1047 | ::google::protobuf::io::CodedInputStream* input) { |
1048 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
1049 | ::google::protobuf::uint32 tag; |
1050 | // @@protoc_insertion_point(parse_start:Nestiness.SubA.SubB) |
1051 | for (;;) { |
1052 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
1053 | tag = p.first; |
1054 | if (!p.second) goto handle_unusual; |
1055 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
1056 | // .Nestiness.SubA.SubB.SubC c = 1; |
1057 | case 1: { |
1058 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1059 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
1060 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
1061 | input, mutable_c())); |
1062 | } else { |
1063 | goto handle_unusual; |
1064 | } |
1065 | break; |
1066 | } |
1067 | |
1068 | default: { |
1069 | handle_unusual: |
1070 | if (tag == 0) { |
1071 | goto success; |
1072 | } |
1073 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
1074 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
1075 | break; |
1076 | } |
1077 | } |
1078 | } |
1079 | success: |
1080 | // @@protoc_insertion_point(parse_success:Nestiness.SubA.SubB) |
1081 | return true; |
1082 | failure: |
1083 | // @@protoc_insertion_point(parse_failure:Nestiness.SubA.SubB) |
1084 | return false; |
1085 | #undef DO_ |
1086 | } |
1087 | |
1088 | void Nestiness_SubA_SubB::SerializeWithCachedSizes( |
1089 | ::google::protobuf::io::CodedOutputStream* output) const { |
1090 | // @@protoc_insertion_point(serialize_start:Nestiness.SubA.SubB) |
1091 | ::google::protobuf::uint32 cached_has_bits = 0; |
1092 | (void) cached_has_bits; |
1093 | |
1094 | // .Nestiness.SubA.SubB.SubC c = 1; |
1095 | if (this->has_c()) { |
1096 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
1097 | 1, this->_internal_c(), output); |
1098 | } |
1099 | |
1100 | if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { |
1101 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
1102 | (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); |
1103 | } |
1104 | // @@protoc_insertion_point(serialize_end:Nestiness.SubA.SubB) |
1105 | } |
1106 | |
1107 | ::google::protobuf::uint8* Nestiness_SubA_SubB::InternalSerializeWithCachedSizesToArray( |
1108 | bool deterministic, ::google::protobuf::uint8* target) const { |
1109 | (void)deterministic; // Unused |
1110 | // @@protoc_insertion_point(serialize_to_array_start:Nestiness.SubA.SubB) |
1111 | ::google::protobuf::uint32 cached_has_bits = 0; |
1112 | (void) cached_has_bits; |
1113 | |
1114 | // .Nestiness.SubA.SubB.SubC c = 1; |
1115 | if (this->has_c()) { |
1116 | target = ::google::protobuf::internal::WireFormatLite:: |
1117 | InternalWriteMessageToArray( |
1118 | 1, this->_internal_c(), deterministic, target); |
1119 | } |
1120 | |
1121 | if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { |
1122 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
1123 | (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); |
1124 | } |
1125 | // @@protoc_insertion_point(serialize_to_array_end:Nestiness.SubA.SubB) |
1126 | return target; |
1127 | } |
1128 | |
1129 | size_t Nestiness_SubA_SubB::ByteSizeLong() const { |
1130 | // @@protoc_insertion_point(message_byte_size_start:Nestiness.SubA.SubB) |
1131 | size_t total_size = 0; |
1132 | |
1133 | if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { |
1134 | total_size += |
1135 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
1136 | (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); |
1137 | } |
1138 | // .Nestiness.SubA.SubB.SubC c = 1; |
1139 | if (this->has_c()) { |
1140 | total_size += 1 + |
1141 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
1142 | *c_); |
1143 | } |
1144 | |
1145 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
1146 | SetCachedSize(cached_size); |
1147 | return total_size; |
1148 | } |
1149 | |
1150 | void Nestiness_SubA_SubB::MergeFrom(const ::google::protobuf::Message& from) { |
1151 | // @@protoc_insertion_point(generalized_merge_from_start:Nestiness.SubA.SubB) |
1152 | GOOGLE_DCHECK_NE(&from, this); |
1153 | const Nestiness_SubA_SubB* source = |
1154 | ::google::protobuf::internal::DynamicCastToGenerated<const Nestiness_SubA_SubB>( |
1155 | &from); |
1156 | if (source == NULL) { |
1157 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:Nestiness.SubA.SubB) |
1158 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
1159 | } else { |
1160 | // @@protoc_insertion_point(generalized_merge_from_cast_success:Nestiness.SubA.SubB) |
1161 | MergeFrom(*source); |
1162 | } |
1163 | } |
1164 | |
1165 | void Nestiness_SubA_SubB::MergeFrom(const Nestiness_SubA_SubB& from) { |
1166 | // @@protoc_insertion_point(class_specific_merge_from_start:Nestiness.SubA.SubB) |
1167 | GOOGLE_DCHECK_NE(&from, this); |
1168 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1169 | ::google::protobuf::uint32 cached_has_bits = 0; |
1170 | (void) cached_has_bits; |
1171 | |
1172 | if (from.has_c()) { |
1173 | mutable_c()->::Nestiness_SubA_SubB_SubC::MergeFrom(from.c()); |
1174 | } |
1175 | } |
1176 | |
1177 | void Nestiness_SubA_SubB::CopyFrom(const ::google::protobuf::Message& from) { |
1178 | // @@protoc_insertion_point(generalized_copy_from_start:Nestiness.SubA.SubB) |
1179 | if (&from == this) return; |
1180 | Clear(); |
1181 | MergeFrom(from); |
1182 | } |
1183 | |
1184 | void Nestiness_SubA_SubB::CopyFrom(const Nestiness_SubA_SubB& from) { |
1185 | // @@protoc_insertion_point(class_specific_copy_from_start:Nestiness.SubA.SubB) |
1186 | if (&from == this) return; |
1187 | Clear(); |
1188 | MergeFrom(from); |
1189 | } |
1190 | |
1191 | bool Nestiness_SubA_SubB::IsInitialized() const { |
1192 | return true; |
1193 | } |
1194 | |
1195 | void Nestiness_SubA_SubB::Swap(Nestiness_SubA_SubB* other) { |
1196 | if (other == this) return; |
1197 | InternalSwap(other); |
1198 | } |
1199 | void Nestiness_SubA_SubB::InternalSwap(Nestiness_SubA_SubB* other) { |
1200 | using std::swap; |
1201 | swap(c_, other->c_); |
1202 | _internal_metadata_.Swap(&other->_internal_metadata_); |
1203 | } |
1204 | |
1205 | ::google::protobuf::Metadata Nestiness_SubA_SubB::GetMetadata() const { |
1206 | protobuf_00825_5fprotobuf_5fformat_2eproto::protobuf_AssignDescriptorsOnce(); |
1207 | return ::protobuf_00825_5fprotobuf_5fformat_2eproto::file_level_metadata[kIndexInFileMessages]; |
1208 | } |
1209 | |
1210 | |
1211 | // =================================================================== |
1212 | |
1213 | void Nestiness_SubA::InitAsDefaultInstance() { |
1214 | ::_Nestiness_SubA_default_instance_._instance.get_mutable()->b_ = const_cast< ::Nestiness_SubA_SubB*>( |
1215 | ::Nestiness_SubA_SubB::internal_default_instance()); |
1216 | } |
1217 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
1218 | const int Nestiness_SubA::kBFieldNumber; |
1219 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
1220 | |
1221 | Nestiness_SubA::Nestiness_SubA() |
1222 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
1223 | ::google::protobuf::internal::InitSCC( |
1224 | &protobuf_00825_5fprotobuf_5fformat_2eproto::scc_info_Nestiness_SubA.base); |
1225 | SharedCtor(); |
1226 | // @@protoc_insertion_point(constructor:Nestiness.SubA) |
1227 | } |
1228 | Nestiness_SubA::Nestiness_SubA(const Nestiness_SubA& from) |
1229 | : ::google::protobuf::Message(), |
1230 | _internal_metadata_(NULL) { |
1231 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1232 | if (from.has_b()) { |
1233 | b_ = new ::Nestiness_SubA_SubB(*from.b_); |
1234 | } else { |
1235 | b_ = NULL; |
1236 | } |
1237 | // @@protoc_insertion_point(copy_constructor:Nestiness.SubA) |
1238 | } |
1239 | |
1240 | void Nestiness_SubA::SharedCtor() { |
1241 | b_ = NULL; |
1242 | } |
1243 | |
1244 | Nestiness_SubA::~Nestiness_SubA() { |
1245 | // @@protoc_insertion_point(destructor:Nestiness.SubA) |
1246 | SharedDtor(); |
1247 | } |
1248 | |
1249 | void Nestiness_SubA::SharedDtor() { |
1250 | if (this != internal_default_instance()) delete b_; |
1251 | } |
1252 | |
1253 | void Nestiness_SubA::SetCachedSize(int size) const { |
1254 | _cached_size_.Set(size); |
1255 | } |
1256 | const ::google::protobuf::Descriptor* Nestiness_SubA::descriptor() { |
1257 | ::protobuf_00825_5fprotobuf_5fformat_2eproto::protobuf_AssignDescriptorsOnce(); |
1258 | return ::protobuf_00825_5fprotobuf_5fformat_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
1259 | } |
1260 | |
1261 | const Nestiness_SubA& Nestiness_SubA::default_instance() { |
1262 | ::google::protobuf::internal::InitSCC(&protobuf_00825_5fprotobuf_5fformat_2eproto::scc_info_Nestiness_SubA.base); |
1263 | return *internal_default_instance(); |
1264 | } |
1265 | |
1266 | |
1267 | void Nestiness_SubA::Clear() { |
1268 | // @@protoc_insertion_point(message_clear_start:Nestiness.SubA) |
1269 | ::google::protobuf::uint32 cached_has_bits = 0; |
1270 | // Prevent compiler warnings about cached_has_bits being unused |
1271 | (void) cached_has_bits; |
1272 | |
1273 | if (GetArenaNoVirtual() == NULL && b_ != NULL) { |
1274 | delete b_; |
1275 | } |
1276 | b_ = NULL; |
1277 | _internal_metadata_.Clear(); |
1278 | } |
1279 | |
1280 | bool Nestiness_SubA::MergePartialFromCodedStream( |
1281 | ::google::protobuf::io::CodedInputStream* input) { |
1282 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
1283 | ::google::protobuf::uint32 tag; |
1284 | // @@protoc_insertion_point(parse_start:Nestiness.SubA) |
1285 | for (;;) { |
1286 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); |
1287 | tag = p.first; |
1288 | if (!p.second) goto handle_unusual; |
1289 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
1290 | // .Nestiness.SubA.SubB b = 100; |
1291 | case 100: { |
1292 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1293 | static_cast< ::google::protobuf::uint8>(34u /* 802 & 0xFF */)) { |
1294 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
1295 | input, mutable_b())); |
1296 | } else { |
1297 | goto handle_unusual; |
1298 | } |
1299 | break; |
1300 | } |
1301 | |
1302 | default: { |
1303 | handle_unusual: |
1304 | if (tag == 0) { |
1305 | goto success; |
1306 | } |
1307 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
1308 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
1309 | break; |
1310 | } |
1311 | } |
1312 | } |
1313 | success: |
1314 | // @@protoc_insertion_point(parse_success:Nestiness.SubA) |
1315 | return true; |
1316 | failure: |
1317 | // @@protoc_insertion_point(parse_failure:Nestiness.SubA) |
1318 | return false; |
1319 | #undef DO_ |
1320 | } |
1321 | |
1322 | void Nestiness_SubA::SerializeWithCachedSizes( |
1323 | ::google::protobuf::io::CodedOutputStream* output) const { |
1324 | // @@protoc_insertion_point(serialize_start:Nestiness.SubA) |
1325 | ::google::protobuf::uint32 cached_has_bits = 0; |
1326 | (void) cached_has_bits; |
1327 | |
1328 | // .Nestiness.SubA.SubB b = 100; |
1329 | if (this->has_b()) { |
1330 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
1331 | 100, this->_internal_b(), output); |
1332 | } |
1333 | |
1334 | if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { |
1335 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
1336 | (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); |
1337 | } |
1338 | // @@protoc_insertion_point(serialize_end:Nestiness.SubA) |
1339 | } |
1340 | |
1341 | ::google::protobuf::uint8* Nestiness_SubA::InternalSerializeWithCachedSizesToArray( |
1342 | bool deterministic, ::google::protobuf::uint8* target) const { |
1343 | (void)deterministic; // Unused |
1344 | // @@protoc_insertion_point(serialize_to_array_start:Nestiness.SubA) |
1345 | ::google::protobuf::uint32 cached_has_bits = 0; |
1346 | (void) cached_has_bits; |
1347 | |
1348 | // .Nestiness.SubA.SubB b = 100; |
1349 | if (this->has_b()) { |
1350 | target = ::google::protobuf::internal::WireFormatLite:: |
1351 | InternalWriteMessageToArray( |
1352 | 100, this->_internal_b(), deterministic, target); |
1353 | } |
1354 | |
1355 | if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { |
1356 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
1357 | (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); |
1358 | } |
1359 | // @@protoc_insertion_point(serialize_to_array_end:Nestiness.SubA) |
1360 | return target; |
1361 | } |
1362 | |
1363 | size_t Nestiness_SubA::ByteSizeLong() const { |
1364 | // @@protoc_insertion_point(message_byte_size_start:Nestiness.SubA) |
1365 | size_t total_size = 0; |
1366 | |
1367 | if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { |
1368 | total_size += |
1369 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
1370 | (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); |
1371 | } |
1372 | // .Nestiness.SubA.SubB b = 100; |
1373 | if (this->has_b()) { |
1374 | total_size += 2 + |
1375 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
1376 | *b_); |
1377 | } |
1378 | |
1379 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
1380 | SetCachedSize(cached_size); |
1381 | return total_size; |
1382 | } |
1383 | |
1384 | void Nestiness_SubA::MergeFrom(const ::google::protobuf::Message& from) { |
1385 | // @@protoc_insertion_point(generalized_merge_from_start:Nestiness.SubA) |
1386 | GOOGLE_DCHECK_NE(&from, this); |
1387 | const Nestiness_SubA* source = |
1388 | ::google::protobuf::internal::DynamicCastToGenerated<const Nestiness_SubA>( |
1389 | &from); |
1390 | if (source == NULL) { |
1391 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:Nestiness.SubA) |
1392 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
1393 | } else { |
1394 | // @@protoc_insertion_point(generalized_merge_from_cast_success:Nestiness.SubA) |
1395 | MergeFrom(*source); |
1396 | } |
1397 | } |
1398 | |
1399 | void Nestiness_SubA::MergeFrom(const Nestiness_SubA& from) { |
1400 | // @@protoc_insertion_point(class_specific_merge_from_start:Nestiness.SubA) |
1401 | GOOGLE_DCHECK_NE(&from, this); |
1402 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1403 | ::google::protobuf::uint32 cached_has_bits = 0; |
1404 | (void) cached_has_bits; |
1405 | |
1406 | if (from.has_b()) { |
1407 | mutable_b()->::Nestiness_SubA_SubB::MergeFrom(from.b()); |
1408 | } |
1409 | } |
1410 | |
1411 | void Nestiness_SubA::CopyFrom(const ::google::protobuf::Message& from) { |
1412 | // @@protoc_insertion_point(generalized_copy_from_start:Nestiness.SubA) |
1413 | if (&from == this) return; |
1414 | Clear(); |
1415 | MergeFrom(from); |
1416 | } |
1417 | |
1418 | void Nestiness_SubA::CopyFrom(const Nestiness_SubA& from) { |
1419 | // @@protoc_insertion_point(class_specific_copy_from_start:Nestiness.SubA) |
1420 | if (&from == this) return; |
1421 | Clear(); |
1422 | MergeFrom(from); |
1423 | } |
1424 | |
1425 | bool Nestiness_SubA::IsInitialized() const { |
1426 | return true; |
1427 | } |
1428 | |
1429 | void Nestiness_SubA::Swap(Nestiness_SubA* other) { |
1430 | if (other == this) return; |
1431 | InternalSwap(other); |
1432 | } |
1433 | void Nestiness_SubA::InternalSwap(Nestiness_SubA* other) { |
1434 | using std::swap; |
1435 | swap(b_, other->b_); |
1436 | _internal_metadata_.Swap(&other->_internal_metadata_); |
1437 | } |
1438 | |
1439 | ::google::protobuf::Metadata Nestiness_SubA::GetMetadata() const { |
1440 | protobuf_00825_5fprotobuf_5fformat_2eproto::protobuf_AssignDescriptorsOnce(); |
1441 | return ::protobuf_00825_5fprotobuf_5fformat_2eproto::file_level_metadata[kIndexInFileMessages]; |
1442 | } |
1443 | |
1444 | |
1445 | // =================================================================== |
1446 | |
1447 | void Nestiness::InitAsDefaultInstance() { |
1448 | ::_Nestiness_default_instance_._instance.get_mutable()->a_ = const_cast< ::Nestiness_SubA*>( |
1449 | ::Nestiness_SubA::internal_default_instance()); |
1450 | } |
1451 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
1452 | const int Nestiness::kAFieldNumber; |
1453 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
1454 | |
1455 | Nestiness::Nestiness() |
1456 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
1457 | ::google::protobuf::internal::InitSCC( |
1458 | &protobuf_00825_5fprotobuf_5fformat_2eproto::scc_info_Nestiness.base); |
1459 | SharedCtor(); |
1460 | // @@protoc_insertion_point(constructor:Nestiness) |
1461 | } |
1462 | Nestiness::Nestiness(const Nestiness& from) |
1463 | : ::google::protobuf::Message(), |
1464 | _internal_metadata_(NULL) { |
1465 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1466 | if (from.has_a()) { |
1467 | a_ = new ::Nestiness_SubA(*from.a_); |
1468 | } else { |
1469 | a_ = NULL; |
1470 | } |
1471 | // @@protoc_insertion_point(copy_constructor:Nestiness) |
1472 | } |
1473 | |
1474 | void Nestiness::SharedCtor() { |
1475 | a_ = NULL; |
1476 | } |
1477 | |
1478 | Nestiness::~Nestiness() { |
1479 | // @@protoc_insertion_point(destructor:Nestiness) |
1480 | SharedDtor(); |
1481 | } |
1482 | |
1483 | void Nestiness::SharedDtor() { |
1484 | if (this != internal_default_instance()) delete a_; |
1485 | } |
1486 | |
1487 | void Nestiness::SetCachedSize(int size) const { |
1488 | _cached_size_.Set(size); |
1489 | } |
1490 | const ::google::protobuf::Descriptor* Nestiness::descriptor() { |
1491 | ::protobuf_00825_5fprotobuf_5fformat_2eproto::protobuf_AssignDescriptorsOnce(); |
1492 | return ::protobuf_00825_5fprotobuf_5fformat_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
1493 | } |
1494 | |
1495 | const Nestiness& Nestiness::default_instance() { |
1496 | ::google::protobuf::internal::InitSCC(&protobuf_00825_5fprotobuf_5fformat_2eproto::scc_info_Nestiness.base); |
1497 | return *internal_default_instance(); |
1498 | } |
1499 | |
1500 | |
1501 | void Nestiness::Clear() { |
1502 | // @@protoc_insertion_point(message_clear_start:Nestiness) |
1503 | ::google::protobuf::uint32 cached_has_bits = 0; |
1504 | // Prevent compiler warnings about cached_has_bits being unused |
1505 | (void) cached_has_bits; |
1506 | |
1507 | if (GetArenaNoVirtual() == NULL && a_ != NULL) { |
1508 | delete a_; |
1509 | } |
1510 | a_ = NULL; |
1511 | _internal_metadata_.Clear(); |
1512 | } |
1513 | |
1514 | bool Nestiness::MergePartialFromCodedStream( |
1515 | ::google::protobuf::io::CodedInputStream* input) { |
1516 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
1517 | ::google::protobuf::uint32 tag; |
1518 | // @@protoc_insertion_point(parse_start:Nestiness) |
1519 | for (;;) { |
1520 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
1521 | tag = p.first; |
1522 | if (!p.second) goto handle_unusual; |
1523 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
1524 | // .Nestiness.SubA a = 1; |
1525 | case 1: { |
1526 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1527 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
1528 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
1529 | input, mutable_a())); |
1530 | } else { |
1531 | goto handle_unusual; |
1532 | } |
1533 | break; |
1534 | } |
1535 | |
1536 | default: { |
1537 | handle_unusual: |
1538 | if (tag == 0) { |
1539 | goto success; |
1540 | } |
1541 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
1542 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
1543 | break; |
1544 | } |
1545 | } |
1546 | } |
1547 | success: |
1548 | // @@protoc_insertion_point(parse_success:Nestiness) |
1549 | return true; |
1550 | failure: |
1551 | // @@protoc_insertion_point(parse_failure:Nestiness) |
1552 | return false; |
1553 | #undef DO_ |
1554 | } |
1555 | |
1556 | void Nestiness::SerializeWithCachedSizes( |
1557 | ::google::protobuf::io::CodedOutputStream* output) const { |
1558 | // @@protoc_insertion_point(serialize_start:Nestiness) |
1559 | ::google::protobuf::uint32 cached_has_bits = 0; |
1560 | (void) cached_has_bits; |
1561 | |
1562 | // .Nestiness.SubA a = 1; |
1563 | if (this->has_a()) { |
1564 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
1565 | 1, this->_internal_a(), output); |
1566 | } |
1567 | |
1568 | if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { |
1569 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
1570 | (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); |
1571 | } |
1572 | // @@protoc_insertion_point(serialize_end:Nestiness) |
1573 | } |
1574 | |
1575 | ::google::protobuf::uint8* Nestiness::InternalSerializeWithCachedSizesToArray( |
1576 | bool deterministic, ::google::protobuf::uint8* target) const { |
1577 | (void)deterministic; // Unused |
1578 | // @@protoc_insertion_point(serialize_to_array_start:Nestiness) |
1579 | ::google::protobuf::uint32 cached_has_bits = 0; |
1580 | (void) cached_has_bits; |
1581 | |
1582 | // .Nestiness.SubA a = 1; |
1583 | if (this->has_a()) { |
1584 | target = ::google::protobuf::internal::WireFormatLite:: |
1585 | InternalWriteMessageToArray( |
1586 | 1, this->_internal_a(), deterministic, target); |
1587 | } |
1588 | |
1589 | if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { |
1590 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
1591 | (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); |
1592 | } |
1593 | // @@protoc_insertion_point(serialize_to_array_end:Nestiness) |
1594 | return target; |
1595 | } |
1596 | |
1597 | size_t Nestiness::ByteSizeLong() const { |
1598 | // @@protoc_insertion_point(message_byte_size_start:Nestiness) |
1599 | size_t total_size = 0; |
1600 | |
1601 | if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { |
1602 | total_size += |
1603 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
1604 | (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); |
1605 | } |
1606 | // .Nestiness.SubA a = 1; |
1607 | if (this->has_a()) { |
1608 | total_size += 1 + |
1609 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
1610 | *a_); |
1611 | } |
1612 | |
1613 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
1614 | SetCachedSize(cached_size); |
1615 | return total_size; |
1616 | } |
1617 | |
1618 | void Nestiness::MergeFrom(const ::google::protobuf::Message& from) { |
1619 | // @@protoc_insertion_point(generalized_merge_from_start:Nestiness) |
1620 | GOOGLE_DCHECK_NE(&from, this); |
1621 | const Nestiness* source = |
1622 | ::google::protobuf::internal::DynamicCastToGenerated<const Nestiness>( |
1623 | &from); |
1624 | if (source == NULL) { |
1625 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:Nestiness) |
1626 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
1627 | } else { |
1628 | // @@protoc_insertion_point(generalized_merge_from_cast_success:Nestiness) |
1629 | MergeFrom(*source); |
1630 | } |
1631 | } |
1632 | |
1633 | void Nestiness::MergeFrom(const Nestiness& from) { |
1634 | // @@protoc_insertion_point(class_specific_merge_from_start:Nestiness) |
1635 | GOOGLE_DCHECK_NE(&from, this); |
1636 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1637 | ::google::protobuf::uint32 cached_has_bits = 0; |
1638 | (void) cached_has_bits; |
1639 | |
1640 | if (from.has_a()) { |
1641 | mutable_a()->::Nestiness_SubA::MergeFrom(from.a()); |
1642 | } |
1643 | } |
1644 | |
1645 | void Nestiness::CopyFrom(const ::google::protobuf::Message& from) { |
1646 | // @@protoc_insertion_point(generalized_copy_from_start:Nestiness) |
1647 | if (&from == this) return; |
1648 | Clear(); |
1649 | MergeFrom(from); |
1650 | } |
1651 | |
1652 | void Nestiness::CopyFrom(const Nestiness& from) { |
1653 | // @@protoc_insertion_point(class_specific_copy_from_start:Nestiness) |
1654 | if (&from == this) return; |
1655 | Clear(); |
1656 | MergeFrom(from); |
1657 | } |
1658 | |
1659 | bool Nestiness::IsInitialized() const { |
1660 | return true; |
1661 | } |
1662 | |
1663 | void Nestiness::Swap(Nestiness* other) { |
1664 | if (other == this) return; |
1665 | InternalSwap(other); |
1666 | } |
1667 | void Nestiness::InternalSwap(Nestiness* other) { |
1668 | using std::swap; |
1669 | swap(a_, other->a_); |
1670 | _internal_metadata_.Swap(&other->_internal_metadata_); |
1671 | } |
1672 | |
1673 | ::google::protobuf::Metadata Nestiness::GetMetadata() const { |
1674 | protobuf_00825_5fprotobuf_5fformat_2eproto::protobuf_AssignDescriptorsOnce(); |
1675 | return ::protobuf_00825_5fprotobuf_5fformat_2eproto::file_level_metadata[kIndexInFileMessages]; |
1676 | } |
1677 | |
1678 | |
1679 | // =================================================================== |
1680 | |
1681 | void Person_MeasureUnit::InitAsDefaultInstance() { |
1682 | } |
1683 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
1684 | const int Person_MeasureUnit::kUnitFieldNumber; |
1685 | const int Person_MeasureUnit::kCoefFieldNumber; |
1686 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
1687 | |
1688 | Person_MeasureUnit::Person_MeasureUnit() |
1689 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
1690 | ::google::protobuf::internal::InitSCC( |
1691 | &protobuf_00825_5fprotobuf_5fformat_2eproto::scc_info_Person_MeasureUnit.base); |
1692 | SharedCtor(); |
1693 | // @@protoc_insertion_point(constructor:Person.MeasureUnit) |
1694 | } |
1695 | Person_MeasureUnit::Person_MeasureUnit(const Person_MeasureUnit& from) |
1696 | : ::google::protobuf::Message(), |
1697 | _internal_metadata_(NULL) { |
1698 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1699 | unit_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1700 | if (from.unit().size() > 0) { |
1701 | unit_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.unit_); |
1702 | } |
1703 | coef_ = from.coef_; |
1704 | // @@protoc_insertion_point(copy_constructor:Person.MeasureUnit) |
1705 | } |
1706 | |
1707 | void Person_MeasureUnit::SharedCtor() { |
1708 | unit_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1709 | coef_ = 0; |
1710 | } |
1711 | |
1712 | Person_MeasureUnit::~Person_MeasureUnit() { |
1713 | // @@protoc_insertion_point(destructor:Person.MeasureUnit) |
1714 | SharedDtor(); |
1715 | } |
1716 | |
1717 | void Person_MeasureUnit::SharedDtor() { |
1718 | unit_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1719 | } |
1720 | |
1721 | void Person_MeasureUnit::SetCachedSize(int size) const { |
1722 | _cached_size_.Set(size); |
1723 | } |
1724 | const ::google::protobuf::Descriptor* Person_MeasureUnit::descriptor() { |
1725 | ::protobuf_00825_5fprotobuf_5fformat_2eproto::protobuf_AssignDescriptorsOnce(); |
1726 | return ::protobuf_00825_5fprotobuf_5fformat_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
1727 | } |
1728 | |
1729 | const Person_MeasureUnit& Person_MeasureUnit::default_instance() { |
1730 | ::google::protobuf::internal::InitSCC(&protobuf_00825_5fprotobuf_5fformat_2eproto::scc_info_Person_MeasureUnit.base); |
1731 | return *internal_default_instance(); |
1732 | } |
1733 | |
1734 | |
1735 | void Person_MeasureUnit::Clear() { |
1736 | // @@protoc_insertion_point(message_clear_start:Person.MeasureUnit) |
1737 | ::google::protobuf::uint32 cached_has_bits = 0; |
1738 | // Prevent compiler warnings about cached_has_bits being unused |
1739 | (void) cached_has_bits; |
1740 | |
1741 | unit_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1742 | coef_ = 0; |
1743 | _internal_metadata_.Clear(); |
1744 | } |
1745 | |
1746 | bool Person_MeasureUnit::MergePartialFromCodedStream( |
1747 | ::google::protobuf::io::CodedInputStream* input) { |
1748 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
1749 | ::google::protobuf::uint32 tag; |
1750 | // @@protoc_insertion_point(parse_start:Person.MeasureUnit) |
1751 | for (;;) { |
1752 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
1753 | tag = p.first; |
1754 | if (!p.second) goto handle_unusual; |
1755 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
1756 | // string unit = 1; |
1757 | case 1: { |
1758 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1759 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
1760 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
1761 | input, this->mutable_unit())); |
1762 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
1763 | this->unit().data(), static_cast<int>(this->unit().length()), |
1764 | ::google::protobuf::internal::WireFormatLite::PARSE, |
1765 | "Person.MeasureUnit.unit" )); |
1766 | } else { |
1767 | goto handle_unusual; |
1768 | } |
1769 | break; |
1770 | } |
1771 | |
1772 | // float coef = 2; |
1773 | case 2: { |
1774 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1775 | static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) { |
1776 | |
1777 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
1778 | float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( |
1779 | input, &coef_))); |
1780 | } else { |
1781 | goto handle_unusual; |
1782 | } |
1783 | break; |
1784 | } |
1785 | |
1786 | default: { |
1787 | handle_unusual: |
1788 | if (tag == 0) { |
1789 | goto success; |
1790 | } |
1791 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
1792 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
1793 | break; |
1794 | } |
1795 | } |
1796 | } |
1797 | success: |
1798 | // @@protoc_insertion_point(parse_success:Person.MeasureUnit) |
1799 | return true; |
1800 | failure: |
1801 | // @@protoc_insertion_point(parse_failure:Person.MeasureUnit) |
1802 | return false; |
1803 | #undef DO_ |
1804 | } |
1805 | |
1806 | void Person_MeasureUnit::SerializeWithCachedSizes( |
1807 | ::google::protobuf::io::CodedOutputStream* output) const { |
1808 | // @@protoc_insertion_point(serialize_start:Person.MeasureUnit) |
1809 | ::google::protobuf::uint32 cached_has_bits = 0; |
1810 | (void) cached_has_bits; |
1811 | |
1812 | // string unit = 1; |
1813 | if (this->unit().size() > 0) { |
1814 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
1815 | this->unit().data(), static_cast<int>(this->unit().length()), |
1816 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
1817 | "Person.MeasureUnit.unit" ); |
1818 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
1819 | 1, this->unit(), output); |
1820 | } |
1821 | |
1822 | // float coef = 2; |
1823 | if (this->coef() != 0) { |
1824 | ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->coef(), output); |
1825 | } |
1826 | |
1827 | if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { |
1828 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
1829 | (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); |
1830 | } |
1831 | // @@protoc_insertion_point(serialize_end:Person.MeasureUnit) |
1832 | } |
1833 | |
1834 | ::google::protobuf::uint8* Person_MeasureUnit::InternalSerializeWithCachedSizesToArray( |
1835 | bool deterministic, ::google::protobuf::uint8* target) const { |
1836 | (void)deterministic; // Unused |
1837 | // @@protoc_insertion_point(serialize_to_array_start:Person.MeasureUnit) |
1838 | ::google::protobuf::uint32 cached_has_bits = 0; |
1839 | (void) cached_has_bits; |
1840 | |
1841 | // string unit = 1; |
1842 | if (this->unit().size() > 0) { |
1843 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
1844 | this->unit().data(), static_cast<int>(this->unit().length()), |
1845 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
1846 | "Person.MeasureUnit.unit" ); |
1847 | target = |
1848 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
1849 | 1, this->unit(), target); |
1850 | } |
1851 | |
1852 | // float coef = 2; |
1853 | if (this->coef() != 0) { |
1854 | target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->coef(), target); |
1855 | } |
1856 | |
1857 | if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { |
1858 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
1859 | (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); |
1860 | } |
1861 | // @@protoc_insertion_point(serialize_to_array_end:Person.MeasureUnit) |
1862 | return target; |
1863 | } |
1864 | |
1865 | size_t Person_MeasureUnit::ByteSizeLong() const { |
1866 | // @@protoc_insertion_point(message_byte_size_start:Person.MeasureUnit) |
1867 | size_t total_size = 0; |
1868 | |
1869 | if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { |
1870 | total_size += |
1871 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
1872 | (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); |
1873 | } |
1874 | // string unit = 1; |
1875 | if (this->unit().size() > 0) { |
1876 | total_size += 1 + |
1877 | ::google::protobuf::internal::WireFormatLite::StringSize( |
1878 | this->unit()); |
1879 | } |
1880 | |
1881 | // float coef = 2; |
1882 | if (this->coef() != 0) { |
1883 | total_size += 1 + 4; |
1884 | } |
1885 | |
1886 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
1887 | SetCachedSize(cached_size); |
1888 | return total_size; |
1889 | } |
1890 | |
1891 | void Person_MeasureUnit::MergeFrom(const ::google::protobuf::Message& from) { |
1892 | // @@protoc_insertion_point(generalized_merge_from_start:Person.MeasureUnit) |
1893 | GOOGLE_DCHECK_NE(&from, this); |
1894 | const Person_MeasureUnit* source = |
1895 | ::google::protobuf::internal::DynamicCastToGenerated<const Person_MeasureUnit>( |
1896 | &from); |
1897 | if (source == NULL) { |
1898 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:Person.MeasureUnit) |
1899 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
1900 | } else { |
1901 | // @@protoc_insertion_point(generalized_merge_from_cast_success:Person.MeasureUnit) |
1902 | MergeFrom(*source); |
1903 | } |
1904 | } |
1905 | |
1906 | void Person_MeasureUnit::MergeFrom(const Person_MeasureUnit& from) { |
1907 | // @@protoc_insertion_point(class_specific_merge_from_start:Person.MeasureUnit) |
1908 | GOOGLE_DCHECK_NE(&from, this); |
1909 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1910 | ::google::protobuf::uint32 cached_has_bits = 0; |
1911 | (void) cached_has_bits; |
1912 | |
1913 | if (from.unit().size() > 0) { |
1914 | |
1915 | unit_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.unit_); |
1916 | } |
1917 | if (from.coef() != 0) { |
1918 | set_coef(from.coef()); |
1919 | } |
1920 | } |
1921 | |
1922 | void Person_MeasureUnit::CopyFrom(const ::google::protobuf::Message& from) { |
1923 | // @@protoc_insertion_point(generalized_copy_from_start:Person.MeasureUnit) |
1924 | if (&from == this) return; |
1925 | Clear(); |
1926 | MergeFrom(from); |
1927 | } |
1928 | |
1929 | void Person_MeasureUnit::CopyFrom(const Person_MeasureUnit& from) { |
1930 | // @@protoc_insertion_point(class_specific_copy_from_start:Person.MeasureUnit) |
1931 | if (&from == this) return; |
1932 | Clear(); |
1933 | MergeFrom(from); |
1934 | } |
1935 | |
1936 | bool Person_MeasureUnit::IsInitialized() const { |
1937 | return true; |
1938 | } |
1939 | |
1940 | void Person_MeasureUnit::Swap(Person_MeasureUnit* other) { |
1941 | if (other == this) return; |
1942 | InternalSwap(other); |
1943 | } |
1944 | void Person_MeasureUnit::InternalSwap(Person_MeasureUnit* other) { |
1945 | using std::swap; |
1946 | unit_.Swap(&other->unit_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
1947 | GetArenaNoVirtual()); |
1948 | swap(coef_, other->coef_); |
1949 | _internal_metadata_.Swap(&other->_internal_metadata_); |
1950 | } |
1951 | |
1952 | ::google::protobuf::Metadata Person_MeasureUnit::GetMetadata() const { |
1953 | protobuf_00825_5fprotobuf_5fformat_2eproto::protobuf_AssignDescriptorsOnce(); |
1954 | return ::protobuf_00825_5fprotobuf_5fformat_2eproto::file_level_metadata[kIndexInFileMessages]; |
1955 | } |
1956 | |
1957 | |
1958 | // =================================================================== |
1959 | |
1960 | void Person::InitAsDefaultInstance() { |
1961 | ::_Person_default_instance_._instance.get_mutable()->nestiness_ = const_cast< ::Nestiness*>( |
1962 | ::Nestiness::internal_default_instance()); |
1963 | } |
1964 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
1965 | const int Person::kUuidFieldNumber; |
1966 | const int Person::kNameFieldNumber; |
1967 | const int Person::kSurnameFieldNumber; |
1968 | const int Person::kGenderFieldNumber; |
1969 | const int Person::kBirthDateFieldNumber; |
1970 | const int Person::kPhotoFieldNumber; |
1971 | const int Person::kPhoneNumberFieldNumber; |
1972 | const int Person::kIsOnlineFieldNumber; |
1973 | const int Person::kVisitTimeFieldNumber; |
1974 | const int Person::kAgeFieldNumber; |
1975 | const int Person::kZodiacSignFieldNumber; |
1976 | const int Person::kSongsFieldNumber; |
1977 | const int Person::kColorFieldNumber; |
1978 | const int Person::kHometownFieldNumber; |
1979 | const int Person::kLocationFieldNumber; |
1980 | const int Person::kPiFieldNumber; |
1981 | const int Person::kLotteryWinFieldNumber; |
1982 | const int Person::kSomeRatioFieldNumber; |
1983 | const int Person::kTemperatureFieldNumber; |
1984 | const int Person::kRandomBigNumberFieldNumber; |
1985 | const int Person::kMeasureUnitsFieldNumber; |
1986 | const int Person::kNestinessFieldNumber; |
1987 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
1988 | |
1989 | Person::Person() |
1990 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
1991 | ::google::protobuf::internal::InitSCC( |
1992 | &protobuf_00825_5fprotobuf_5fformat_2eproto::scc_info_Person.base); |
1993 | SharedCtor(); |
1994 | // @@protoc_insertion_point(constructor:Person) |
1995 | } |
1996 | Person::Person(const Person& from) |
1997 | : ::google::protobuf::Message(), |
1998 | _internal_metadata_(NULL), |
1999 | songs_(from.songs_), |
2000 | color_(from.color_), |
2001 | location_(from.location_), |
2002 | measureunits_(from.measureunits_) { |
2003 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2004 | uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2005 | if (from.uuid().size() > 0) { |
2006 | uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.uuid_); |
2007 | } |
2008 | name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2009 | if (from.name().size() > 0) { |
2010 | name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
2011 | } |
2012 | surname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2013 | if (from.surname().size() > 0) { |
2014 | surname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.surname_); |
2015 | } |
2016 | photo_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2017 | if (from.photo().size() > 0) { |
2018 | photo_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.photo_); |
2019 | } |
2020 | phonenumber_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2021 | if (from.phonenumber().size() > 0) { |
2022 | phonenumber_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.phonenumber_); |
2023 | } |
2024 | hometown_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2025 | if (from.hometown().size() > 0) { |
2026 | hometown_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.hometown_); |
2027 | } |
2028 | if (from.has_nestiness()) { |
2029 | nestiness_ = new ::Nestiness(*from.nestiness_); |
2030 | } else { |
2031 | nestiness_ = NULL; |
2032 | } |
2033 | ::memcpy(&gender_, &from.gender_, |
2034 | static_cast<size_t>(reinterpret_cast<char*>(&randombignumber_) - |
2035 | reinterpret_cast<char*>(&gender_)) + sizeof(randombignumber_)); |
2036 | // @@protoc_insertion_point(copy_constructor:Person) |
2037 | } |
2038 | |
2039 | void Person::SharedCtor() { |
2040 | uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2041 | name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2042 | surname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2043 | photo_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2044 | phonenumber_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2045 | hometown_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2046 | ::memset(&nestiness_, 0, static_cast<size_t>( |
2047 | reinterpret_cast<char*>(&randombignumber_) - |
2048 | reinterpret_cast<char*>(&nestiness_)) + sizeof(randombignumber_)); |
2049 | } |
2050 | |
2051 | Person::~Person() { |
2052 | // @@protoc_insertion_point(destructor:Person) |
2053 | SharedDtor(); |
2054 | } |
2055 | |
2056 | void Person::SharedDtor() { |
2057 | uuid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2058 | name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2059 | surname_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2060 | photo_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2061 | phonenumber_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2062 | hometown_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2063 | if (this != internal_default_instance()) delete nestiness_; |
2064 | } |
2065 | |
2066 | void Person::SetCachedSize(int size) const { |
2067 | _cached_size_.Set(size); |
2068 | } |
2069 | const ::google::protobuf::Descriptor* Person::descriptor() { |
2070 | ::protobuf_00825_5fprotobuf_5fformat_2eproto::protobuf_AssignDescriptorsOnce(); |
2071 | return ::protobuf_00825_5fprotobuf_5fformat_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
2072 | } |
2073 | |
2074 | const Person& Person::default_instance() { |
2075 | ::google::protobuf::internal::InitSCC(&protobuf_00825_5fprotobuf_5fformat_2eproto::scc_info_Person.base); |
2076 | return *internal_default_instance(); |
2077 | } |
2078 | |
2079 | |
2080 | void Person::Clear() { |
2081 | // @@protoc_insertion_point(message_clear_start:Person) |
2082 | ::google::protobuf::uint32 cached_has_bits = 0; |
2083 | // Prevent compiler warnings about cached_has_bits being unused |
2084 | (void) cached_has_bits; |
2085 | |
2086 | songs_.Clear(); |
2087 | color_.Clear(); |
2088 | location_.Clear(); |
2089 | measureunits_.Clear(); |
2090 | uuid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2091 | name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2092 | surname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2093 | photo_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2094 | phonenumber_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2095 | hometown_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2096 | if (GetArenaNoVirtual() == NULL && nestiness_ != NULL) { |
2097 | delete nestiness_; |
2098 | } |
2099 | nestiness_ = NULL; |
2100 | ::memset(&gender_, 0, static_cast<size_t>( |
2101 | reinterpret_cast<char*>(&randombignumber_) - |
2102 | reinterpret_cast<char*>(&gender_)) + sizeof(randombignumber_)); |
2103 | _internal_metadata_.Clear(); |
2104 | } |
2105 | |
2106 | bool Person::MergePartialFromCodedStream( |
2107 | ::google::protobuf::io::CodedInputStream* input) { |
2108 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
2109 | ::google::protobuf::uint32 tag; |
2110 | // @@protoc_insertion_point(parse_start:Person) |
2111 | for (;;) { |
2112 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); |
2113 | tag = p.first; |
2114 | if (!p.second) goto handle_unusual; |
2115 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
2116 | // string uuid = 1; |
2117 | case 1: { |
2118 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2119 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
2120 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
2121 | input, this->mutable_uuid())); |
2122 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
2123 | this->uuid().data(), static_cast<int>(this->uuid().length()), |
2124 | ::google::protobuf::internal::WireFormatLite::PARSE, |
2125 | "Person.uuid" )); |
2126 | } else { |
2127 | goto handle_unusual; |
2128 | } |
2129 | break; |
2130 | } |
2131 | |
2132 | // string name = 2; |
2133 | case 2: { |
2134 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2135 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
2136 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
2137 | input, this->mutable_name())); |
2138 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
2139 | this->name().data(), static_cast<int>(this->name().length()), |
2140 | ::google::protobuf::internal::WireFormatLite::PARSE, |
2141 | "Person.name" )); |
2142 | } else { |
2143 | goto handle_unusual; |
2144 | } |
2145 | break; |
2146 | } |
2147 | |
2148 | // string surname = 3; |
2149 | case 3: { |
2150 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2151 | static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { |
2152 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
2153 | input, this->mutable_surname())); |
2154 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
2155 | this->surname().data(), static_cast<int>(this->surname().length()), |
2156 | ::google::protobuf::internal::WireFormatLite::PARSE, |
2157 | "Person.surname" )); |
2158 | } else { |
2159 | goto handle_unusual; |
2160 | } |
2161 | break; |
2162 | } |
2163 | |
2164 | // .Gender gender = 4; |
2165 | case 4: { |
2166 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2167 | static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) { |
2168 | int value; |
2169 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2170 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
2171 | input, &value))); |
2172 | set_gender(static_cast< ::Gender >(value)); |
2173 | } else { |
2174 | goto handle_unusual; |
2175 | } |
2176 | break; |
2177 | } |
2178 | |
2179 | // uint32 birthDate = 5; |
2180 | case 5: { |
2181 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2182 | static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { |
2183 | |
2184 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2185 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
2186 | input, &birthdate_))); |
2187 | } else { |
2188 | goto handle_unusual; |
2189 | } |
2190 | break; |
2191 | } |
2192 | |
2193 | // bytes photo = 6; |
2194 | case 6: { |
2195 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2196 | static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) { |
2197 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
2198 | input, this->mutable_photo())); |
2199 | } else { |
2200 | goto handle_unusual; |
2201 | } |
2202 | break; |
2203 | } |
2204 | |
2205 | // string phoneNumber = 7; |
2206 | case 7: { |
2207 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2208 | static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { |
2209 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
2210 | input, this->mutable_phonenumber())); |
2211 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
2212 | this->phonenumber().data(), static_cast<int>(this->phonenumber().length()), |
2213 | ::google::protobuf::internal::WireFormatLite::PARSE, |
2214 | "Person.phoneNumber" )); |
2215 | } else { |
2216 | goto handle_unusual; |
2217 | } |
2218 | break; |
2219 | } |
2220 | |
2221 | // bool isOnline = 8; |
2222 | case 8: { |
2223 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2224 | static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) { |
2225 | |
2226 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2227 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
2228 | input, &isonline_))); |
2229 | } else { |
2230 | goto handle_unusual; |
2231 | } |
2232 | break; |
2233 | } |
2234 | |
2235 | // fixed32 visitTime = 9; |
2236 | case 9: { |
2237 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2238 | static_cast< ::google::protobuf::uint8>(77u /* 77 & 0xFF */)) { |
2239 | |
2240 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2241 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>( |
2242 | input, &visittime_))); |
2243 | } else { |
2244 | goto handle_unusual; |
2245 | } |
2246 | break; |
2247 | } |
2248 | |
2249 | // uint32 age = 10; |
2250 | case 10: { |
2251 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2252 | static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) { |
2253 | |
2254 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2255 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
2256 | input, &age_))); |
2257 | } else { |
2258 | goto handle_unusual; |
2259 | } |
2260 | break; |
2261 | } |
2262 | |
2263 | // .ZodiacSign zodiacSign = 11; |
2264 | case 11: { |
2265 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2266 | static_cast< ::google::protobuf::uint8>(88u /* 88 & 0xFF */)) { |
2267 | int value; |
2268 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2269 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
2270 | input, &value))); |
2271 | set_zodiacsign(static_cast< ::ZodiacSign >(value)); |
2272 | } else { |
2273 | goto handle_unusual; |
2274 | } |
2275 | break; |
2276 | } |
2277 | |
2278 | // repeated string songs = 12; |
2279 | case 12: { |
2280 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2281 | static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) { |
2282 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
2283 | input, this->add_songs())); |
2284 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
2285 | this->songs(this->songs_size() - 1).data(), |
2286 | static_cast<int>(this->songs(this->songs_size() - 1).length()), |
2287 | ::google::protobuf::internal::WireFormatLite::PARSE, |
2288 | "Person.songs" )); |
2289 | } else { |
2290 | goto handle_unusual; |
2291 | } |
2292 | break; |
2293 | } |
2294 | |
2295 | // repeated uint32 color = 13; |
2296 | case 13: { |
2297 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2298 | static_cast< ::google::protobuf::uint8>(106u /* 106 & 0xFF */)) { |
2299 | DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< |
2300 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
2301 | input, this->mutable_color()))); |
2302 | } else if ( |
2303 | static_cast< ::google::protobuf::uint8>(tag) == |
2304 | static_cast< ::google::protobuf::uint8>(104u /* 104 & 0xFF */)) { |
2305 | DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< |
2306 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
2307 | 1, 106u, input, this->mutable_color()))); |
2308 | } else { |
2309 | goto handle_unusual; |
2310 | } |
2311 | break; |
2312 | } |
2313 | |
2314 | // string hometown = 14; |
2315 | case 14: { |
2316 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2317 | static_cast< ::google::protobuf::uint8>(114u /* 114 & 0xFF */)) { |
2318 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
2319 | input, this->mutable_hometown())); |
2320 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
2321 | this->hometown().data(), static_cast<int>(this->hometown().length()), |
2322 | ::google::protobuf::internal::WireFormatLite::PARSE, |
2323 | "Person.hometown" )); |
2324 | } else { |
2325 | goto handle_unusual; |
2326 | } |
2327 | break; |
2328 | } |
2329 | |
2330 | // repeated float location = 15; |
2331 | case 15: { |
2332 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2333 | static_cast< ::google::protobuf::uint8>(122u /* 122 & 0xFF */)) { |
2334 | DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< |
2335 | float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( |
2336 | input, this->mutable_location()))); |
2337 | } else if ( |
2338 | static_cast< ::google::protobuf::uint8>(tag) == |
2339 | static_cast< ::google::protobuf::uint8>(125u /* 125 & 0xFF */)) { |
2340 | DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< |
2341 | float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( |
2342 | 1, 122u, input, this->mutable_location()))); |
2343 | } else { |
2344 | goto handle_unusual; |
2345 | } |
2346 | break; |
2347 | } |
2348 | |
2349 | // double pi = 16; |
2350 | case 16: { |
2351 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2352 | static_cast< ::google::protobuf::uint8>(129u /* 129 & 0xFF */)) { |
2353 | |
2354 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2355 | double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( |
2356 | input, &pi_))); |
2357 | } else { |
2358 | goto handle_unusual; |
2359 | } |
2360 | break; |
2361 | } |
2362 | |
2363 | // double lotteryWin = 17; |
2364 | case 17: { |
2365 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2366 | static_cast< ::google::protobuf::uint8>(137u /* 137 & 0xFF */)) { |
2367 | |
2368 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2369 | double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( |
2370 | input, &lotterywin_))); |
2371 | } else { |
2372 | goto handle_unusual; |
2373 | } |
2374 | break; |
2375 | } |
2376 | |
2377 | // float someRatio = 18; |
2378 | case 18: { |
2379 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2380 | static_cast< ::google::protobuf::uint8>(149u /* 149 & 0xFF */)) { |
2381 | |
2382 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2383 | float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( |
2384 | input, &someratio_))); |
2385 | } else { |
2386 | goto handle_unusual; |
2387 | } |
2388 | break; |
2389 | } |
2390 | |
2391 | // float temperature = 19; |
2392 | case 19: { |
2393 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2394 | static_cast< ::google::protobuf::uint8>(157u /* 157 & 0xFF */)) { |
2395 | |
2396 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2397 | float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( |
2398 | input, &temperature_))); |
2399 | } else { |
2400 | goto handle_unusual; |
2401 | } |
2402 | break; |
2403 | } |
2404 | |
2405 | // sint64 randomBigNumber = 20; |
2406 | case 20: { |
2407 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2408 | static_cast< ::google::protobuf::uint8>(160u /* 160 & 0xFF */)) { |
2409 | |
2410 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2411 | ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SINT64>( |
2412 | input, &randombignumber_))); |
2413 | } else { |
2414 | goto handle_unusual; |
2415 | } |
2416 | break; |
2417 | } |
2418 | |
2419 | // repeated .Person.MeasureUnit measureUnits = 21; |
2420 | case 21: { |
2421 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2422 | static_cast< ::google::protobuf::uint8>(170u /* 170 & 0xFF */)) { |
2423 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
2424 | input, add_measureunits())); |
2425 | } else { |
2426 | goto handle_unusual; |
2427 | } |
2428 | break; |
2429 | } |
2430 | |
2431 | // .Nestiness nestiness = 22; |
2432 | case 22: { |
2433 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2434 | static_cast< ::google::protobuf::uint8>(178u /* 178 & 0xFF */)) { |
2435 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
2436 | input, mutable_nestiness())); |
2437 | } else { |
2438 | goto handle_unusual; |
2439 | } |
2440 | break; |
2441 | } |
2442 | |
2443 | default: { |
2444 | handle_unusual: |
2445 | if (tag == 0) { |
2446 | goto success; |
2447 | } |
2448 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
2449 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
2450 | break; |
2451 | } |
2452 | } |
2453 | } |
2454 | success: |
2455 | // @@protoc_insertion_point(parse_success:Person) |
2456 | return true; |
2457 | failure: |
2458 | // @@protoc_insertion_point(parse_failure:Person) |
2459 | return false; |
2460 | #undef DO_ |
2461 | } |
2462 | |
2463 | void Person::SerializeWithCachedSizes( |
2464 | ::google::protobuf::io::CodedOutputStream* output) const { |
2465 | // @@protoc_insertion_point(serialize_start:Person) |
2466 | ::google::protobuf::uint32 cached_has_bits = 0; |
2467 | (void) cached_has_bits; |
2468 | |
2469 | // string uuid = 1; |
2470 | if (this->uuid().size() > 0) { |
2471 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
2472 | this->uuid().data(), static_cast<int>(this->uuid().length()), |
2473 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
2474 | "Person.uuid" ); |
2475 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
2476 | 1, this->uuid(), output); |
2477 | } |
2478 | |
2479 | // string name = 2; |
2480 | if (this->name().size() > 0) { |
2481 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
2482 | this->name().data(), static_cast<int>(this->name().length()), |
2483 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
2484 | "Person.name" ); |
2485 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
2486 | 2, this->name(), output); |
2487 | } |
2488 | |
2489 | // string surname = 3; |
2490 | if (this->surname().size() > 0) { |
2491 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
2492 | this->surname().data(), static_cast<int>(this->surname().length()), |
2493 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
2494 | "Person.surname" ); |
2495 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
2496 | 3, this->surname(), output); |
2497 | } |
2498 | |
2499 | // .Gender gender = 4; |
2500 | if (this->gender() != 0) { |
2501 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
2502 | 4, this->gender(), output); |
2503 | } |
2504 | |
2505 | // uint32 birthDate = 5; |
2506 | if (this->birthdate() != 0) { |
2507 | ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->birthdate(), output); |
2508 | } |
2509 | |
2510 | // bytes photo = 6; |
2511 | if (this->photo().size() > 0) { |
2512 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
2513 | 6, this->photo(), output); |
2514 | } |
2515 | |
2516 | // string phoneNumber = 7; |
2517 | if (this->phonenumber().size() > 0) { |
2518 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
2519 | this->phonenumber().data(), static_cast<int>(this->phonenumber().length()), |
2520 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
2521 | "Person.phoneNumber" ); |
2522 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
2523 | 7, this->phonenumber(), output); |
2524 | } |
2525 | |
2526 | // bool isOnline = 8; |
2527 | if (this->isonline() != 0) { |
2528 | ::google::protobuf::internal::WireFormatLite::WriteBool(8, this->isonline(), output); |
2529 | } |
2530 | |
2531 | // fixed32 visitTime = 9; |
2532 | if (this->visittime() != 0) { |
2533 | ::google::protobuf::internal::WireFormatLite::WriteFixed32(9, this->visittime(), output); |
2534 | } |
2535 | |
2536 | // uint32 age = 10; |
2537 | if (this->age() != 0) { |
2538 | ::google::protobuf::internal::WireFormatLite::WriteUInt32(10, this->age(), output); |
2539 | } |
2540 | |
2541 | // .ZodiacSign zodiacSign = 11; |
2542 | if (this->zodiacsign() != 0) { |
2543 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
2544 | 11, this->zodiacsign(), output); |
2545 | } |
2546 | |
2547 | // repeated string songs = 12; |
2548 | for (int i = 0, n = this->songs_size(); i < n; i++) { |
2549 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
2550 | this->songs(i).data(), static_cast<int>(this->songs(i).length()), |
2551 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
2552 | "Person.songs" ); |
2553 | ::google::protobuf::internal::WireFormatLite::WriteString( |
2554 | 12, this->songs(i), output); |
2555 | } |
2556 | |
2557 | // repeated uint32 color = 13; |
2558 | if (this->color_size() > 0) { |
2559 | ::google::protobuf::internal::WireFormatLite::WriteTag(13, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
2560 | output->WriteVarint32(static_cast< ::google::protobuf::uint32>( |
2561 | _color_cached_byte_size_)); |
2562 | } |
2563 | for (int i = 0, n = this->color_size(); i < n; i++) { |
2564 | ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( |
2565 | this->color(i), output); |
2566 | } |
2567 | |
2568 | // string hometown = 14; |
2569 | if (this->hometown().size() > 0) { |
2570 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
2571 | this->hometown().data(), static_cast<int>(this->hometown().length()), |
2572 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
2573 | "Person.hometown" ); |
2574 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
2575 | 14, this->hometown(), output); |
2576 | } |
2577 | |
2578 | // repeated float location = 15; |
2579 | if (this->location_size() > 0) { |
2580 | ::google::protobuf::internal::WireFormatLite::WriteTag(15, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
2581 | output->WriteVarint32(static_cast< ::google::protobuf::uint32>( |
2582 | _location_cached_byte_size_)); |
2583 | ::google::protobuf::internal::WireFormatLite::WriteFloatArray( |
2584 | this->location().data(), this->location_size(), output); |
2585 | } |
2586 | |
2587 | // double pi = 16; |
2588 | if (this->pi() != 0) { |
2589 | ::google::protobuf::internal::WireFormatLite::WriteDouble(16, this->pi(), output); |
2590 | } |
2591 | |
2592 | // double lotteryWin = 17; |
2593 | if (this->lotterywin() != 0) { |
2594 | ::google::protobuf::internal::WireFormatLite::WriteDouble(17, this->lotterywin(), output); |
2595 | } |
2596 | |
2597 | // float someRatio = 18; |
2598 | if (this->someratio() != 0) { |
2599 | ::google::protobuf::internal::WireFormatLite::WriteFloat(18, this->someratio(), output); |
2600 | } |
2601 | |
2602 | // float temperature = 19; |
2603 | if (this->temperature() != 0) { |
2604 | ::google::protobuf::internal::WireFormatLite::WriteFloat(19, this->temperature(), output); |
2605 | } |
2606 | |
2607 | // sint64 randomBigNumber = 20; |
2608 | if (this->randombignumber() != 0) { |
2609 | ::google::protobuf::internal::WireFormatLite::WriteSInt64(20, this->randombignumber(), output); |
2610 | } |
2611 | |
2612 | // repeated .Person.MeasureUnit measureUnits = 21; |
2613 | for (unsigned int i = 0, |
2614 | n = static_cast<unsigned int>(this->measureunits_size()); i < n; i++) { |
2615 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
2616 | 21, |
2617 | this->measureunits(static_cast<int>(i)), |
2618 | output); |
2619 | } |
2620 | |
2621 | // .Nestiness nestiness = 22; |
2622 | if (this->has_nestiness()) { |
2623 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
2624 | 22, this->_internal_nestiness(), output); |
2625 | } |
2626 | |
2627 | if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { |
2628 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
2629 | (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); |
2630 | } |
2631 | // @@protoc_insertion_point(serialize_end:Person) |
2632 | } |
2633 | |
2634 | ::google::protobuf::uint8* Person::InternalSerializeWithCachedSizesToArray( |
2635 | bool deterministic, ::google::protobuf::uint8* target) const { |
2636 | (void)deterministic; // Unused |
2637 | // @@protoc_insertion_point(serialize_to_array_start:Person) |
2638 | ::google::protobuf::uint32 cached_has_bits = 0; |
2639 | (void) cached_has_bits; |
2640 | |
2641 | // string uuid = 1; |
2642 | if (this->uuid().size() > 0) { |
2643 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
2644 | this->uuid().data(), static_cast<int>(this->uuid().length()), |
2645 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
2646 | "Person.uuid" ); |
2647 | target = |
2648 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
2649 | 1, this->uuid(), target); |
2650 | } |
2651 | |
2652 | // string name = 2; |
2653 | if (this->name().size() > 0) { |
2654 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
2655 | this->name().data(), static_cast<int>(this->name().length()), |
2656 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
2657 | "Person.name" ); |
2658 | target = |
2659 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
2660 | 2, this->name(), target); |
2661 | } |
2662 | |
2663 | // string surname = 3; |
2664 | if (this->surname().size() > 0) { |
2665 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
2666 | this->surname().data(), static_cast<int>(this->surname().length()), |
2667 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
2668 | "Person.surname" ); |
2669 | target = |
2670 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
2671 | 3, this->surname(), target); |
2672 | } |
2673 | |
2674 | // .Gender gender = 4; |
2675 | if (this->gender() != 0) { |
2676 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
2677 | 4, this->gender(), target); |
2678 | } |
2679 | |
2680 | // uint32 birthDate = 5; |
2681 | if (this->birthdate() != 0) { |
2682 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->birthdate(), target); |
2683 | } |
2684 | |
2685 | // bytes photo = 6; |
2686 | if (this->photo().size() > 0) { |
2687 | target = |
2688 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
2689 | 6, this->photo(), target); |
2690 | } |
2691 | |
2692 | // string phoneNumber = 7; |
2693 | if (this->phonenumber().size() > 0) { |
2694 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
2695 | this->phonenumber().data(), static_cast<int>(this->phonenumber().length()), |
2696 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
2697 | "Person.phoneNumber" ); |
2698 | target = |
2699 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
2700 | 7, this->phonenumber(), target); |
2701 | } |
2702 | |
2703 | // bool isOnline = 8; |
2704 | if (this->isonline() != 0) { |
2705 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(8, this->isonline(), target); |
2706 | } |
2707 | |
2708 | // fixed32 visitTime = 9; |
2709 | if (this->visittime() != 0) { |
2710 | target = ::google::protobuf::internal::WireFormatLite::WriteFixed32ToArray(9, this->visittime(), target); |
2711 | } |
2712 | |
2713 | // uint32 age = 10; |
2714 | if (this->age() != 0) { |
2715 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(10, this->age(), target); |
2716 | } |
2717 | |
2718 | // .ZodiacSign zodiacSign = 11; |
2719 | if (this->zodiacsign() != 0) { |
2720 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
2721 | 11, this->zodiacsign(), target); |
2722 | } |
2723 | |
2724 | // repeated string songs = 12; |
2725 | for (int i = 0, n = this->songs_size(); i < n; i++) { |
2726 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
2727 | this->songs(i).data(), static_cast<int>(this->songs(i).length()), |
2728 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
2729 | "Person.songs" ); |
2730 | target = ::google::protobuf::internal::WireFormatLite:: |
2731 | WriteStringToArray(12, this->songs(i), target); |
2732 | } |
2733 | |
2734 | // repeated uint32 color = 13; |
2735 | if (this->color_size() > 0) { |
2736 | target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( |
2737 | 13, |
2738 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
2739 | target); |
2740 | target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( |
2741 | static_cast< ::google::protobuf::int32>( |
2742 | _color_cached_byte_size_), target); |
2743 | target = ::google::protobuf::internal::WireFormatLite:: |
2744 | WriteUInt32NoTagToArray(this->color_, target); |
2745 | } |
2746 | |
2747 | // string hometown = 14; |
2748 | if (this->hometown().size() > 0) { |
2749 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
2750 | this->hometown().data(), static_cast<int>(this->hometown().length()), |
2751 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
2752 | "Person.hometown" ); |
2753 | target = |
2754 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
2755 | 14, this->hometown(), target); |
2756 | } |
2757 | |
2758 | // repeated float location = 15; |
2759 | if (this->location_size() > 0) { |
2760 | target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( |
2761 | 15, |
2762 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
2763 | target); |
2764 | target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( |
2765 | static_cast< ::google::protobuf::int32>( |
2766 | _location_cached_byte_size_), target); |
2767 | target = ::google::protobuf::internal::WireFormatLite:: |
2768 | WriteFloatNoTagToArray(this->location_, target); |
2769 | } |
2770 | |
2771 | // double pi = 16; |
2772 | if (this->pi() != 0) { |
2773 | target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(16, this->pi(), target); |
2774 | } |
2775 | |
2776 | // double lotteryWin = 17; |
2777 | if (this->lotterywin() != 0) { |
2778 | target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(17, this->lotterywin(), target); |
2779 | } |
2780 | |
2781 | // float someRatio = 18; |
2782 | if (this->someratio() != 0) { |
2783 | target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(18, this->someratio(), target); |
2784 | } |
2785 | |
2786 | // float temperature = 19; |
2787 | if (this->temperature() != 0) { |
2788 | target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(19, this->temperature(), target); |
2789 | } |
2790 | |
2791 | // sint64 randomBigNumber = 20; |
2792 | if (this->randombignumber() != 0) { |
2793 | target = ::google::protobuf::internal::WireFormatLite::WriteSInt64ToArray(20, this->randombignumber(), target); |
2794 | } |
2795 | |
2796 | // repeated .Person.MeasureUnit measureUnits = 21; |
2797 | for (unsigned int i = 0, |
2798 | n = static_cast<unsigned int>(this->measureunits_size()); i < n; i++) { |
2799 | target = ::google::protobuf::internal::WireFormatLite:: |
2800 | InternalWriteMessageToArray( |
2801 | 21, this->measureunits(static_cast<int>(i)), deterministic, target); |
2802 | } |
2803 | |
2804 | // .Nestiness nestiness = 22; |
2805 | if (this->has_nestiness()) { |
2806 | target = ::google::protobuf::internal::WireFormatLite:: |
2807 | InternalWriteMessageToArray( |
2808 | 22, this->_internal_nestiness(), deterministic, target); |
2809 | } |
2810 | |
2811 | if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { |
2812 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
2813 | (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); |
2814 | } |
2815 | // @@protoc_insertion_point(serialize_to_array_end:Person) |
2816 | return target; |
2817 | } |
2818 | |
2819 | size_t Person::ByteSizeLong() const { |
2820 | // @@protoc_insertion_point(message_byte_size_start:Person) |
2821 | size_t total_size = 0; |
2822 | |
2823 | if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { |
2824 | total_size += |
2825 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
2826 | (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); |
2827 | } |
2828 | // repeated string songs = 12; |
2829 | total_size += 1 * |
2830 | ::google::protobuf::internal::FromIntSize(this->songs_size()); |
2831 | for (int i = 0, n = this->songs_size(); i < n; i++) { |
2832 | total_size += ::google::protobuf::internal::WireFormatLite::StringSize( |
2833 | this->songs(i)); |
2834 | } |
2835 | |
2836 | // repeated uint32 color = 13; |
2837 | { |
2838 | size_t data_size = ::google::protobuf::internal::WireFormatLite:: |
2839 | UInt32Size(this->color_); |
2840 | if (data_size > 0) { |
2841 | total_size += 1 + |
2842 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
2843 | static_cast< ::google::protobuf::int32>(data_size)); |
2844 | } |
2845 | int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); |
2846 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
2847 | _color_cached_byte_size_ = cached_size; |
2848 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
2849 | total_size += data_size; |
2850 | } |
2851 | |
2852 | // repeated float location = 15; |
2853 | { |
2854 | unsigned int count = static_cast<unsigned int>(this->location_size()); |
2855 | size_t data_size = 4UL * count; |
2856 | if (data_size > 0) { |
2857 | total_size += 1 + |
2858 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
2859 | static_cast< ::google::protobuf::int32>(data_size)); |
2860 | } |
2861 | int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); |
2862 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
2863 | _location_cached_byte_size_ = cached_size; |
2864 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
2865 | total_size += data_size; |
2866 | } |
2867 | |
2868 | // repeated .Person.MeasureUnit measureUnits = 21; |
2869 | { |
2870 | unsigned int count = static_cast<unsigned int>(this->measureunits_size()); |
2871 | total_size += 2UL * count; |
2872 | for (unsigned int i = 0; i < count; i++) { |
2873 | total_size += |
2874 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
2875 | this->measureunits(static_cast<int>(i))); |
2876 | } |
2877 | } |
2878 | |
2879 | // string uuid = 1; |
2880 | if (this->uuid().size() > 0) { |
2881 | total_size += 1 + |
2882 | ::google::protobuf::internal::WireFormatLite::StringSize( |
2883 | this->uuid()); |
2884 | } |
2885 | |
2886 | // string name = 2; |
2887 | if (this->name().size() > 0) { |
2888 | total_size += 1 + |
2889 | ::google::protobuf::internal::WireFormatLite::StringSize( |
2890 | this->name()); |
2891 | } |
2892 | |
2893 | // string surname = 3; |
2894 | if (this->surname().size() > 0) { |
2895 | total_size += 1 + |
2896 | ::google::protobuf::internal::WireFormatLite::StringSize( |
2897 | this->surname()); |
2898 | } |
2899 | |
2900 | // bytes photo = 6; |
2901 | if (this->photo().size() > 0) { |
2902 | total_size += 1 + |
2903 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
2904 | this->photo()); |
2905 | } |
2906 | |
2907 | // string phoneNumber = 7; |
2908 | if (this->phonenumber().size() > 0) { |
2909 | total_size += 1 + |
2910 | ::google::protobuf::internal::WireFormatLite::StringSize( |
2911 | this->phonenumber()); |
2912 | } |
2913 | |
2914 | // string hometown = 14; |
2915 | if (this->hometown().size() > 0) { |
2916 | total_size += 1 + |
2917 | ::google::protobuf::internal::WireFormatLite::StringSize( |
2918 | this->hometown()); |
2919 | } |
2920 | |
2921 | // .Nestiness nestiness = 22; |
2922 | if (this->has_nestiness()) { |
2923 | total_size += 2 + |
2924 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
2925 | *nestiness_); |
2926 | } |
2927 | |
2928 | // .Gender gender = 4; |
2929 | if (this->gender() != 0) { |
2930 | total_size += 1 + |
2931 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->gender()); |
2932 | } |
2933 | |
2934 | // uint32 birthDate = 5; |
2935 | if (this->birthdate() != 0) { |
2936 | total_size += 1 + |
2937 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
2938 | this->birthdate()); |
2939 | } |
2940 | |
2941 | // bool isOnline = 8; |
2942 | if (this->isonline() != 0) { |
2943 | total_size += 1 + 1; |
2944 | } |
2945 | |
2946 | // fixed32 visitTime = 9; |
2947 | if (this->visittime() != 0) { |
2948 | total_size += 1 + 4; |
2949 | } |
2950 | |
2951 | // uint32 age = 10; |
2952 | if (this->age() != 0) { |
2953 | total_size += 1 + |
2954 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
2955 | this->age()); |
2956 | } |
2957 | |
2958 | // .ZodiacSign zodiacSign = 11; |
2959 | if (this->zodiacsign() != 0) { |
2960 | total_size += 1 + |
2961 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->zodiacsign()); |
2962 | } |
2963 | |
2964 | // double pi = 16; |
2965 | if (this->pi() != 0) { |
2966 | total_size += 2 + 8; |
2967 | } |
2968 | |
2969 | // double lotteryWin = 17; |
2970 | if (this->lotterywin() != 0) { |
2971 | total_size += 2 + 8; |
2972 | } |
2973 | |
2974 | // float someRatio = 18; |
2975 | if (this->someratio() != 0) { |
2976 | total_size += 2 + 4; |
2977 | } |
2978 | |
2979 | // float temperature = 19; |
2980 | if (this->temperature() != 0) { |
2981 | total_size += 2 + 4; |
2982 | } |
2983 | |
2984 | // sint64 randomBigNumber = 20; |
2985 | if (this->randombignumber() != 0) { |
2986 | total_size += 2 + |
2987 | ::google::protobuf::internal::WireFormatLite::SInt64Size( |
2988 | this->randombignumber()); |
2989 | } |
2990 | |
2991 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
2992 | SetCachedSize(cached_size); |
2993 | return total_size; |
2994 | } |
2995 | |
2996 | void Person::MergeFrom(const ::google::protobuf::Message& from) { |
2997 | // @@protoc_insertion_point(generalized_merge_from_start:Person) |
2998 | GOOGLE_DCHECK_NE(&from, this); |
2999 | const Person* source = |
3000 | ::google::protobuf::internal::DynamicCastToGenerated<const Person>( |
3001 | &from); |
3002 | if (source == NULL) { |
3003 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:Person) |
3004 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
3005 | } else { |
3006 | // @@protoc_insertion_point(generalized_merge_from_cast_success:Person) |
3007 | MergeFrom(*source); |
3008 | } |
3009 | } |
3010 | |
3011 | void Person::MergeFrom(const Person& from) { |
3012 | // @@protoc_insertion_point(class_specific_merge_from_start:Person) |
3013 | GOOGLE_DCHECK_NE(&from, this); |
3014 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3015 | ::google::protobuf::uint32 cached_has_bits = 0; |
3016 | (void) cached_has_bits; |
3017 | |
3018 | songs_.MergeFrom(from.songs_); |
3019 | color_.MergeFrom(from.color_); |
3020 | location_.MergeFrom(from.location_); |
3021 | measureunits_.MergeFrom(from.measureunits_); |
3022 | if (from.uuid().size() > 0) { |
3023 | |
3024 | uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.uuid_); |
3025 | } |
3026 | if (from.name().size() > 0) { |
3027 | |
3028 | name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
3029 | } |
3030 | if (from.surname().size() > 0) { |
3031 | |
3032 | surname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.surname_); |
3033 | } |
3034 | if (from.photo().size() > 0) { |
3035 | |
3036 | photo_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.photo_); |
3037 | } |
3038 | if (from.phonenumber().size() > 0) { |
3039 | |
3040 | phonenumber_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.phonenumber_); |
3041 | } |
3042 | if (from.hometown().size() > 0) { |
3043 | |
3044 | hometown_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.hometown_); |
3045 | } |
3046 | if (from.has_nestiness()) { |
3047 | mutable_nestiness()->::Nestiness::MergeFrom(from.nestiness()); |
3048 | } |
3049 | if (from.gender() != 0) { |
3050 | set_gender(from.gender()); |
3051 | } |
3052 | if (from.birthdate() != 0) { |
3053 | set_birthdate(from.birthdate()); |
3054 | } |
3055 | if (from.isonline() != 0) { |
3056 | set_isonline(from.isonline()); |
3057 | } |
3058 | if (from.visittime() != 0) { |
3059 | set_visittime(from.visittime()); |
3060 | } |
3061 | if (from.age() != 0) { |
3062 | set_age(from.age()); |
3063 | } |
3064 | if (from.zodiacsign() != 0) { |
3065 | set_zodiacsign(from.zodiacsign()); |
3066 | } |
3067 | if (from.pi() != 0) { |
3068 | set_pi(from.pi()); |
3069 | } |
3070 | if (from.lotterywin() != 0) { |
3071 | set_lotterywin(from.lotterywin()); |
3072 | } |
3073 | if (from.someratio() != 0) { |
3074 | set_someratio(from.someratio()); |
3075 | } |
3076 | if (from.temperature() != 0) { |
3077 | set_temperature(from.temperature()); |
3078 | } |
3079 | if (from.randombignumber() != 0) { |
3080 | set_randombignumber(from.randombignumber()); |
3081 | } |
3082 | } |
3083 | |
3084 | void Person::CopyFrom(const ::google::protobuf::Message& from) { |
3085 | // @@protoc_insertion_point(generalized_copy_from_start:Person) |
3086 | if (&from == this) return; |
3087 | Clear(); |
3088 | MergeFrom(from); |
3089 | } |
3090 | |
3091 | void Person::CopyFrom(const Person& from) { |
3092 | // @@protoc_insertion_point(class_specific_copy_from_start:Person) |
3093 | if (&from == this) return; |
3094 | Clear(); |
3095 | MergeFrom(from); |
3096 | } |
3097 | |
3098 | bool Person::IsInitialized() const { |
3099 | return true; |
3100 | } |
3101 | |
3102 | void Person::Swap(Person* other) { |
3103 | if (other == this) return; |
3104 | InternalSwap(other); |
3105 | } |
3106 | void Person::InternalSwap(Person* other) { |
3107 | using std::swap; |
3108 | songs_.InternalSwap(CastToBase(&other->songs_)); |
3109 | color_.InternalSwap(&other->color_); |
3110 | location_.InternalSwap(&other->location_); |
3111 | CastToBase(&measureunits_)->InternalSwap(CastToBase(&other->measureunits_)); |
3112 | uuid_.Swap(&other->uuid_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
3113 | GetArenaNoVirtual()); |
3114 | name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
3115 | GetArenaNoVirtual()); |
3116 | surname_.Swap(&other->surname_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
3117 | GetArenaNoVirtual()); |
3118 | photo_.Swap(&other->photo_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
3119 | GetArenaNoVirtual()); |
3120 | phonenumber_.Swap(&other->phonenumber_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
3121 | GetArenaNoVirtual()); |
3122 | hometown_.Swap(&other->hometown_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
3123 | GetArenaNoVirtual()); |
3124 | swap(nestiness_, other->nestiness_); |
3125 | swap(gender_, other->gender_); |
3126 | swap(birthdate_, other->birthdate_); |
3127 | swap(isonline_, other->isonline_); |
3128 | swap(visittime_, other->visittime_); |
3129 | swap(age_, other->age_); |
3130 | swap(zodiacsign_, other->zodiacsign_); |
3131 | swap(pi_, other->pi_); |
3132 | swap(lotterywin_, other->lotterywin_); |
3133 | swap(someratio_, other->someratio_); |
3134 | swap(temperature_, other->temperature_); |
3135 | swap(randombignumber_, other->randombignumber_); |
3136 | _internal_metadata_.Swap(&other->_internal_metadata_); |
3137 | } |
3138 | |
3139 | ::google::protobuf::Metadata Person::GetMetadata() const { |
3140 | protobuf_00825_5fprotobuf_5fformat_2eproto::protobuf_AssignDescriptorsOnce(); |
3141 | return ::protobuf_00825_5fprotobuf_5fformat_2eproto::file_level_metadata[kIndexInFileMessages]; |
3142 | } |
3143 | |
3144 | |
3145 | // =================================================================== |
3146 | |
3147 | void AltPerson_Dummy_Empty::InitAsDefaultInstance() { |
3148 | } |
3149 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
3150 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
3151 | |
3152 | AltPerson_Dummy_Empty::AltPerson_Dummy_Empty() |
3153 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
3154 | ::google::protobuf::internal::InitSCC( |
3155 | &protobuf_00825_5fprotobuf_5fformat_2eproto::scc_info_AltPerson_Dummy_Empty.base); |
3156 | SharedCtor(); |
3157 | // @@protoc_insertion_point(constructor:AltPerson.Dummy.Empty) |
3158 | } |
3159 | AltPerson_Dummy_Empty::AltPerson_Dummy_Empty(const AltPerson_Dummy_Empty& from) |
3160 | : ::google::protobuf::Message(), |
3161 | _internal_metadata_(NULL) { |
3162 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3163 | // @@protoc_insertion_point(copy_constructor:AltPerson.Dummy.Empty) |
3164 | } |
3165 | |
3166 | void AltPerson_Dummy_Empty::SharedCtor() { |
3167 | } |
3168 | |
3169 | AltPerson_Dummy_Empty::~AltPerson_Dummy_Empty() { |
3170 | // @@protoc_insertion_point(destructor:AltPerson.Dummy.Empty) |
3171 | SharedDtor(); |
3172 | } |
3173 | |
3174 | void AltPerson_Dummy_Empty::SharedDtor() { |
3175 | } |
3176 | |
3177 | void AltPerson_Dummy_Empty::SetCachedSize(int size) const { |
3178 | _cached_size_.Set(size); |
3179 | } |
3180 | const ::google::protobuf::Descriptor* AltPerson_Dummy_Empty::descriptor() { |
3181 | ::protobuf_00825_5fprotobuf_5fformat_2eproto::protobuf_AssignDescriptorsOnce(); |
3182 | return ::protobuf_00825_5fprotobuf_5fformat_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
3183 | } |
3184 | |
3185 | const AltPerson_Dummy_Empty& AltPerson_Dummy_Empty::default_instance() { |
3186 | ::google::protobuf::internal::InitSCC(&protobuf_00825_5fprotobuf_5fformat_2eproto::scc_info_AltPerson_Dummy_Empty.base); |
3187 | return *internal_default_instance(); |
3188 | } |
3189 | |
3190 | |
3191 | void AltPerson_Dummy_Empty::Clear() { |
3192 | // @@protoc_insertion_point(message_clear_start:AltPerson.Dummy.Empty) |
3193 | ::google::protobuf::uint32 cached_has_bits = 0; |
3194 | // Prevent compiler warnings about cached_has_bits being unused |
3195 | (void) cached_has_bits; |
3196 | |
3197 | _internal_metadata_.Clear(); |
3198 | } |
3199 | |
3200 | bool AltPerson_Dummy_Empty::MergePartialFromCodedStream( |
3201 | ::google::protobuf::io::CodedInputStream* input) { |
3202 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
3203 | ::google::protobuf::uint32 tag; |
3204 | // @@protoc_insertion_point(parse_start:AltPerson.Dummy.Empty) |
3205 | for (;;) { |
3206 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
3207 | tag = p.first; |
3208 | if (!p.second) goto handle_unusual; |
3209 | handle_unusual: |
3210 | if (tag == 0) { |
3211 | goto success; |
3212 | } |
3213 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
3214 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
3215 | } |
3216 | success: |
3217 | // @@protoc_insertion_point(parse_success:AltPerson.Dummy.Empty) |
3218 | return true; |
3219 | failure: |
3220 | // @@protoc_insertion_point(parse_failure:AltPerson.Dummy.Empty) |
3221 | return false; |
3222 | #undef DO_ |
3223 | } |
3224 | |
3225 | void AltPerson_Dummy_Empty::SerializeWithCachedSizes( |
3226 | ::google::protobuf::io::CodedOutputStream* output) const { |
3227 | // @@protoc_insertion_point(serialize_start:AltPerson.Dummy.Empty) |
3228 | ::google::protobuf::uint32 cached_has_bits = 0; |
3229 | (void) cached_has_bits; |
3230 | |
3231 | if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { |
3232 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
3233 | (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); |
3234 | } |
3235 | // @@protoc_insertion_point(serialize_end:AltPerson.Dummy.Empty) |
3236 | } |
3237 | |
3238 | ::google::protobuf::uint8* AltPerson_Dummy_Empty::InternalSerializeWithCachedSizesToArray( |
3239 | bool deterministic, ::google::protobuf::uint8* target) const { |
3240 | (void)deterministic; // Unused |
3241 | // @@protoc_insertion_point(serialize_to_array_start:AltPerson.Dummy.Empty) |
3242 | ::google::protobuf::uint32 cached_has_bits = 0; |
3243 | (void) cached_has_bits; |
3244 | |
3245 | if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { |
3246 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
3247 | (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); |
3248 | } |
3249 | // @@protoc_insertion_point(serialize_to_array_end:AltPerson.Dummy.Empty) |
3250 | return target; |
3251 | } |
3252 | |
3253 | size_t AltPerson_Dummy_Empty::ByteSizeLong() const { |
3254 | // @@protoc_insertion_point(message_byte_size_start:AltPerson.Dummy.Empty) |
3255 | size_t total_size = 0; |
3256 | |
3257 | if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { |
3258 | total_size += |
3259 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
3260 | (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); |
3261 | } |
3262 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
3263 | SetCachedSize(cached_size); |
3264 | return total_size; |
3265 | } |
3266 | |
3267 | void AltPerson_Dummy_Empty::MergeFrom(const ::google::protobuf::Message& from) { |
3268 | // @@protoc_insertion_point(generalized_merge_from_start:AltPerson.Dummy.Empty) |
3269 | GOOGLE_DCHECK_NE(&from, this); |
3270 | const AltPerson_Dummy_Empty* source = |
3271 | ::google::protobuf::internal::DynamicCastToGenerated<const AltPerson_Dummy_Empty>( |
3272 | &from); |
3273 | if (source == NULL) { |
3274 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:AltPerson.Dummy.Empty) |
3275 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
3276 | } else { |
3277 | // @@protoc_insertion_point(generalized_merge_from_cast_success:AltPerson.Dummy.Empty) |
3278 | MergeFrom(*source); |
3279 | } |
3280 | } |
3281 | |
3282 | void AltPerson_Dummy_Empty::MergeFrom(const AltPerson_Dummy_Empty& from) { |
3283 | // @@protoc_insertion_point(class_specific_merge_from_start:AltPerson.Dummy.Empty) |
3284 | GOOGLE_DCHECK_NE(&from, this); |
3285 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3286 | ::google::protobuf::uint32 cached_has_bits = 0; |
3287 | (void) cached_has_bits; |
3288 | |
3289 | } |
3290 | |
3291 | void AltPerson_Dummy_Empty::CopyFrom(const ::google::protobuf::Message& from) { |
3292 | // @@protoc_insertion_point(generalized_copy_from_start:AltPerson.Dummy.Empty) |
3293 | if (&from == this) return; |
3294 | Clear(); |
3295 | MergeFrom(from); |
3296 | } |
3297 | |
3298 | void AltPerson_Dummy_Empty::CopyFrom(const AltPerson_Dummy_Empty& from) { |
3299 | // @@protoc_insertion_point(class_specific_copy_from_start:AltPerson.Dummy.Empty) |
3300 | if (&from == this) return; |
3301 | Clear(); |
3302 | MergeFrom(from); |
3303 | } |
3304 | |
3305 | bool AltPerson_Dummy_Empty::IsInitialized() const { |
3306 | return true; |
3307 | } |
3308 | |
3309 | void AltPerson_Dummy_Empty::Swap(AltPerson_Dummy_Empty* other) { |
3310 | if (other == this) return; |
3311 | InternalSwap(other); |
3312 | } |
3313 | void AltPerson_Dummy_Empty::InternalSwap(AltPerson_Dummy_Empty* other) { |
3314 | using std::swap; |
3315 | _internal_metadata_.Swap(&other->_internal_metadata_); |
3316 | } |
3317 | |
3318 | ::google::protobuf::Metadata AltPerson_Dummy_Empty::GetMetadata() const { |
3319 | protobuf_00825_5fprotobuf_5fformat_2eproto::protobuf_AssignDescriptorsOnce(); |
3320 | return ::protobuf_00825_5fprotobuf_5fformat_2eproto::file_level_metadata[kIndexInFileMessages]; |
3321 | } |
3322 | |
3323 | |
3324 | // =================================================================== |
3325 | |
3326 | void AltPerson_Dummy::InitAsDefaultInstance() { |
3327 | } |
3328 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
3329 | const int AltPerson_Dummy::kEmptyFieldNumber; |
3330 | const int AltPerson_Dummy::kZFieldNumber; |
3331 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
3332 | |
3333 | AltPerson_Dummy::AltPerson_Dummy() |
3334 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
3335 | ::google::protobuf::internal::InitSCC( |
3336 | &protobuf_00825_5fprotobuf_5fformat_2eproto::scc_info_AltPerson_Dummy.base); |
3337 | SharedCtor(); |
3338 | // @@protoc_insertion_point(constructor:AltPerson.Dummy) |
3339 | } |
3340 | AltPerson_Dummy::AltPerson_Dummy(const AltPerson_Dummy& from) |
3341 | : ::google::protobuf::Message(), |
3342 | _internal_metadata_(NULL), |
3343 | empty_(from.empty_) { |
3344 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3345 | z_ = from.z_; |
3346 | // @@protoc_insertion_point(copy_constructor:AltPerson.Dummy) |
3347 | } |
3348 | |
3349 | void AltPerson_Dummy::SharedCtor() { |
3350 | z_ = 0; |
3351 | } |
3352 | |
3353 | AltPerson_Dummy::~AltPerson_Dummy() { |
3354 | // @@protoc_insertion_point(destructor:AltPerson.Dummy) |
3355 | SharedDtor(); |
3356 | } |
3357 | |
3358 | void AltPerson_Dummy::SharedDtor() { |
3359 | } |
3360 | |
3361 | void AltPerson_Dummy::SetCachedSize(int size) const { |
3362 | _cached_size_.Set(size); |
3363 | } |
3364 | const ::google::protobuf::Descriptor* AltPerson_Dummy::descriptor() { |
3365 | ::protobuf_00825_5fprotobuf_5fformat_2eproto::protobuf_AssignDescriptorsOnce(); |
3366 | return ::protobuf_00825_5fprotobuf_5fformat_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
3367 | } |
3368 | |
3369 | const AltPerson_Dummy& AltPerson_Dummy::default_instance() { |
3370 | ::google::protobuf::internal::InitSCC(&protobuf_00825_5fprotobuf_5fformat_2eproto::scc_info_AltPerson_Dummy.base); |
3371 | return *internal_default_instance(); |
3372 | } |
3373 | |
3374 | |
3375 | void AltPerson_Dummy::Clear() { |
3376 | // @@protoc_insertion_point(message_clear_start:AltPerson.Dummy) |
3377 | ::google::protobuf::uint32 cached_has_bits = 0; |
3378 | // Prevent compiler warnings about cached_has_bits being unused |
3379 | (void) cached_has_bits; |
3380 | |
3381 | empty_.Clear(); |
3382 | z_ = 0; |
3383 | _internal_metadata_.Clear(); |
3384 | } |
3385 | |
3386 | bool AltPerson_Dummy::MergePartialFromCodedStream( |
3387 | ::google::protobuf::io::CodedInputStream* input) { |
3388 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
3389 | ::google::protobuf::uint32 tag; |
3390 | // @@protoc_insertion_point(parse_start:AltPerson.Dummy) |
3391 | for (;;) { |
3392 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
3393 | tag = p.first; |
3394 | if (!p.second) goto handle_unusual; |
3395 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
3396 | // repeated .AltPerson.Dummy.Empty empty = 1; |
3397 | case 1: { |
3398 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3399 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
3400 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
3401 | input, add_empty())); |
3402 | } else { |
3403 | goto handle_unusual; |
3404 | } |
3405 | break; |
3406 | } |
3407 | |
3408 | // float z = 2; |
3409 | case 2: { |
3410 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3411 | static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) { |
3412 | |
3413 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
3414 | float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( |
3415 | input, &z_))); |
3416 | } else { |
3417 | goto handle_unusual; |
3418 | } |
3419 | break; |
3420 | } |
3421 | |
3422 | default: { |
3423 | handle_unusual: |
3424 | if (tag == 0) { |
3425 | goto success; |
3426 | } |
3427 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
3428 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
3429 | break; |
3430 | } |
3431 | } |
3432 | } |
3433 | success: |
3434 | // @@protoc_insertion_point(parse_success:AltPerson.Dummy) |
3435 | return true; |
3436 | failure: |
3437 | // @@protoc_insertion_point(parse_failure:AltPerson.Dummy) |
3438 | return false; |
3439 | #undef DO_ |
3440 | } |
3441 | |
3442 | void AltPerson_Dummy::SerializeWithCachedSizes( |
3443 | ::google::protobuf::io::CodedOutputStream* output) const { |
3444 | // @@protoc_insertion_point(serialize_start:AltPerson.Dummy) |
3445 | ::google::protobuf::uint32 cached_has_bits = 0; |
3446 | (void) cached_has_bits; |
3447 | |
3448 | // repeated .AltPerson.Dummy.Empty empty = 1; |
3449 | for (unsigned int i = 0, |
3450 | n = static_cast<unsigned int>(this->empty_size()); i < n; i++) { |
3451 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
3452 | 1, |
3453 | this->empty(static_cast<int>(i)), |
3454 | output); |
3455 | } |
3456 | |
3457 | // float z = 2; |
3458 | if (this->z() != 0) { |
3459 | ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->z(), output); |
3460 | } |
3461 | |
3462 | if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { |
3463 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
3464 | (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); |
3465 | } |
3466 | // @@protoc_insertion_point(serialize_end:AltPerson.Dummy) |
3467 | } |
3468 | |
3469 | ::google::protobuf::uint8* AltPerson_Dummy::InternalSerializeWithCachedSizesToArray( |
3470 | bool deterministic, ::google::protobuf::uint8* target) const { |
3471 | (void)deterministic; // Unused |
3472 | // @@protoc_insertion_point(serialize_to_array_start:AltPerson.Dummy) |
3473 | ::google::protobuf::uint32 cached_has_bits = 0; |
3474 | (void) cached_has_bits; |
3475 | |
3476 | // repeated .AltPerson.Dummy.Empty empty = 1; |
3477 | for (unsigned int i = 0, |
3478 | n = static_cast<unsigned int>(this->empty_size()); i < n; i++) { |
3479 | target = ::google::protobuf::internal::WireFormatLite:: |
3480 | InternalWriteMessageToArray( |
3481 | 1, this->empty(static_cast<int>(i)), deterministic, target); |
3482 | } |
3483 | |
3484 | // float z = 2; |
3485 | if (this->z() != 0) { |
3486 | target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->z(), target); |
3487 | } |
3488 | |
3489 | if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { |
3490 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
3491 | (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); |
3492 | } |
3493 | // @@protoc_insertion_point(serialize_to_array_end:AltPerson.Dummy) |
3494 | return target; |
3495 | } |
3496 | |
3497 | size_t AltPerson_Dummy::ByteSizeLong() const { |
3498 | // @@protoc_insertion_point(message_byte_size_start:AltPerson.Dummy) |
3499 | size_t total_size = 0; |
3500 | |
3501 | if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { |
3502 | total_size += |
3503 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
3504 | (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); |
3505 | } |
3506 | // repeated .AltPerson.Dummy.Empty empty = 1; |
3507 | { |
3508 | unsigned int count = static_cast<unsigned int>(this->empty_size()); |
3509 | total_size += 1UL * count; |
3510 | for (unsigned int i = 0; i < count; i++) { |
3511 | total_size += |
3512 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
3513 | this->empty(static_cast<int>(i))); |
3514 | } |
3515 | } |
3516 | |
3517 | // float z = 2; |
3518 | if (this->z() != 0) { |
3519 | total_size += 1 + 4; |
3520 | } |
3521 | |
3522 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
3523 | SetCachedSize(cached_size); |
3524 | return total_size; |
3525 | } |
3526 | |
3527 | void AltPerson_Dummy::MergeFrom(const ::google::protobuf::Message& from) { |
3528 | // @@protoc_insertion_point(generalized_merge_from_start:AltPerson.Dummy) |
3529 | GOOGLE_DCHECK_NE(&from, this); |
3530 | const AltPerson_Dummy* source = |
3531 | ::google::protobuf::internal::DynamicCastToGenerated<const AltPerson_Dummy>( |
3532 | &from); |
3533 | if (source == NULL) { |
3534 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:AltPerson.Dummy) |
3535 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
3536 | } else { |
3537 | // @@protoc_insertion_point(generalized_merge_from_cast_success:AltPerson.Dummy) |
3538 | MergeFrom(*source); |
3539 | } |
3540 | } |
3541 | |
3542 | void AltPerson_Dummy::MergeFrom(const AltPerson_Dummy& from) { |
3543 | // @@protoc_insertion_point(class_specific_merge_from_start:AltPerson.Dummy) |
3544 | GOOGLE_DCHECK_NE(&from, this); |
3545 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3546 | ::google::protobuf::uint32 cached_has_bits = 0; |
3547 | (void) cached_has_bits; |
3548 | |
3549 | empty_.MergeFrom(from.empty_); |
3550 | if (from.z() != 0) { |
3551 | set_z(from.z()); |
3552 | } |
3553 | } |
3554 | |
3555 | void AltPerson_Dummy::CopyFrom(const ::google::protobuf::Message& from) { |
3556 | // @@protoc_insertion_point(generalized_copy_from_start:AltPerson.Dummy) |
3557 | if (&from == this) return; |
3558 | Clear(); |
3559 | MergeFrom(from); |
3560 | } |
3561 | |
3562 | void AltPerson_Dummy::CopyFrom(const AltPerson_Dummy& from) { |
3563 | // @@protoc_insertion_point(class_specific_copy_from_start:AltPerson.Dummy) |
3564 | if (&from == this) return; |
3565 | Clear(); |
3566 | MergeFrom(from); |
3567 | } |
3568 | |
3569 | bool AltPerson_Dummy::IsInitialized() const { |
3570 | return true; |
3571 | } |
3572 | |
3573 | void AltPerson_Dummy::Swap(AltPerson_Dummy* other) { |
3574 | if (other == this) return; |
3575 | InternalSwap(other); |
3576 | } |
3577 | void AltPerson_Dummy::InternalSwap(AltPerson_Dummy* other) { |
3578 | using std::swap; |
3579 | CastToBase(&empty_)->InternalSwap(CastToBase(&other->empty_)); |
3580 | swap(z_, other->z_); |
3581 | _internal_metadata_.Swap(&other->_internal_metadata_); |
3582 | } |
3583 | |
3584 | ::google::protobuf::Metadata AltPerson_Dummy::GetMetadata() const { |
3585 | protobuf_00825_5fprotobuf_5fformat_2eproto::protobuf_AssignDescriptorsOnce(); |
3586 | return ::protobuf_00825_5fprotobuf_5fformat_2eproto::file_level_metadata[kIndexInFileMessages]; |
3587 | } |
3588 | |
3589 | |
3590 | // =================================================================== |
3591 | |
3592 | void AltPerson::InitAsDefaultInstance() { |
3593 | ::_AltPerson_default_instance_._instance.get_mutable()->newmessage_ = const_cast< ::AltPerson_Dummy*>( |
3594 | ::AltPerson_Dummy::internal_default_instance()); |
3595 | } |
3596 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
3597 | const int AltPerson::kLocationFieldNumber; |
3598 | const int AltPerson::kPiFieldNumber; |
3599 | const int AltPerson::kUuidFieldNumber; |
3600 | const int AltPerson::kNewFieldBoolFieldNumber; |
3601 | const int AltPerson::kNameFieldNumber; |
3602 | const int AltPerson::kGenderFieldNumber; |
3603 | const int AltPerson::kZodiacSignFieldNumber; |
3604 | const int AltPerson::kBirthDateFieldNumber; |
3605 | const int AltPerson::kAgeFieldNumber; |
3606 | const int AltPerson::kIsOnlineFieldNumber; |
3607 | const int AltPerson::kSomeRatioFieldNumber; |
3608 | const int AltPerson::kVisitTimeFieldNumber; |
3609 | const int AltPerson::kNewMessageFieldNumber; |
3610 | const int AltPerson::kRandomBigNumberFieldNumber; |
3611 | const int AltPerson::kNewFieldIntFieldNumber; |
3612 | const int AltPerson::kColorFieldNumber; |
3613 | const int AltPerson::kLotteryWinFieldNumber; |
3614 | const int AltPerson::kSurnameFieldNumber; |
3615 | const int AltPerson::kPhoneNumberFieldNumber; |
3616 | const int AltPerson::kTemperatureFieldNumber; |
3617 | const int AltPerson::kNewFieldStrFieldNumber; |
3618 | const int AltPerson::kMeasureUnitsUnitFieldNumber; |
3619 | const int AltPerson::kMeasureUnitsCoefFieldNumber; |
3620 | const int AltPerson::kNestinessABCDFieldNumber; |
3621 | const int AltPerson::kNestinessABCEFieldNumber; |
3622 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
3623 | |
3624 | AltPerson::AltPerson() |
3625 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
3626 | ::google::protobuf::internal::InitSCC( |
3627 | &protobuf_00825_5fprotobuf_5fformat_2eproto::scc_info_AltPerson.base); |
3628 | SharedCtor(); |
3629 | // @@protoc_insertion_point(constructor:AltPerson) |
3630 | } |
3631 | AltPerson::AltPerson(const AltPerson& from) |
3632 | : ::google::protobuf::Message(), |
3633 | _internal_metadata_(NULL), |
3634 | color_(from.color_), |
3635 | measureunits_coef_(from.measureunits_coef_), |
3636 | measureunits_unit_(from.measureunits_unit_), |
3637 | location_(from.location_), |
3638 | newfieldint_(from.newfieldint_), |
3639 | nestiness_a_b_c_e_(from.nestiness_a_b_c_e_) { |
3640 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3641 | name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3642 | if (from.name().size() > 0) { |
3643 | name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
3644 | } |
3645 | surname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3646 | if (from.surname().size() > 0) { |
3647 | surname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.surname_); |
3648 | } |
3649 | newfieldstr_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3650 | if (from.newfieldstr().size() > 0) { |
3651 | newfieldstr_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.newfieldstr_); |
3652 | } |
3653 | age_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3654 | if (from.age().size() > 0) { |
3655 | age_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.age_); |
3656 | } |
3657 | uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3658 | if (from.uuid().size() > 0) { |
3659 | uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.uuid_); |
3660 | } |
3661 | if (from.has_newmessage()) { |
3662 | newmessage_ = new ::AltPerson_Dummy(*from.newmessage_); |
3663 | } else { |
3664 | newmessage_ = NULL; |
3665 | } |
3666 | ::memcpy(&phonenumber_, &from.phonenumber_, |
3667 | static_cast<size_t>(reinterpret_cast<char*>(&newfieldbool_) - |
3668 | reinterpret_cast<char*>(&phonenumber_)) + sizeof(newfieldbool_)); |
3669 | // @@protoc_insertion_point(copy_constructor:AltPerson) |
3670 | } |
3671 | |
3672 | void AltPerson::SharedCtor() { |
3673 | name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3674 | surname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3675 | newfieldstr_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3676 | age_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3677 | uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3678 | ::memset(&newmessage_, 0, static_cast<size_t>( |
3679 | reinterpret_cast<char*>(&newfieldbool_) - |
3680 | reinterpret_cast<char*>(&newmessage_)) + sizeof(newfieldbool_)); |
3681 | } |
3682 | |
3683 | AltPerson::~AltPerson() { |
3684 | // @@protoc_insertion_point(destructor:AltPerson) |
3685 | SharedDtor(); |
3686 | } |
3687 | |
3688 | void AltPerson::SharedDtor() { |
3689 | name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3690 | surname_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3691 | newfieldstr_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3692 | age_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3693 | uuid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3694 | if (this != internal_default_instance()) delete newmessage_; |
3695 | } |
3696 | |
3697 | void AltPerson::SetCachedSize(int size) const { |
3698 | _cached_size_.Set(size); |
3699 | } |
3700 | const ::google::protobuf::Descriptor* AltPerson::descriptor() { |
3701 | ::protobuf_00825_5fprotobuf_5fformat_2eproto::protobuf_AssignDescriptorsOnce(); |
3702 | return ::protobuf_00825_5fprotobuf_5fformat_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
3703 | } |
3704 | |
3705 | const AltPerson& AltPerson::default_instance() { |
3706 | ::google::protobuf::internal::InitSCC(&protobuf_00825_5fprotobuf_5fformat_2eproto::scc_info_AltPerson.base); |
3707 | return *internal_default_instance(); |
3708 | } |
3709 | |
3710 | |
3711 | void AltPerson::Clear() { |
3712 | // @@protoc_insertion_point(message_clear_start:AltPerson) |
3713 | ::google::protobuf::uint32 cached_has_bits = 0; |
3714 | // Prevent compiler warnings about cached_has_bits being unused |
3715 | (void) cached_has_bits; |
3716 | |
3717 | color_.Clear(); |
3718 | measureunits_coef_.Clear(); |
3719 | measureunits_unit_.Clear(); |
3720 | location_.Clear(); |
3721 | newfieldint_.Clear(); |
3722 | nestiness_a_b_c_e_.Clear(); |
3723 | name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3724 | surname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3725 | newfieldstr_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3726 | age_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3727 | uuid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3728 | if (GetArenaNoVirtual() == NULL && newmessage_ != NULL) { |
3729 | delete newmessage_; |
3730 | } |
3731 | newmessage_ = NULL; |
3732 | ::memset(&phonenumber_, 0, static_cast<size_t>( |
3733 | reinterpret_cast<char*>(&newfieldbool_) - |
3734 | reinterpret_cast<char*>(&phonenumber_)) + sizeof(newfieldbool_)); |
3735 | _internal_metadata_.Clear(); |
3736 | } |
3737 | |
3738 | bool AltPerson::MergePartialFromCodedStream( |
3739 | ::google::protobuf::io::CodedInputStream* input) { |
3740 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
3741 | ::google::protobuf::uint32 tag; |
3742 | // @@protoc_insertion_point(parse_start:AltPerson) |
3743 | for (;;) { |
3744 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); |
3745 | tag = p.first; |
3746 | if (!p.second) goto handle_unusual; |
3747 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
3748 | // .OnlineStatus isOnline = 1; |
3749 | case 1: { |
3750 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3751 | static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { |
3752 | int value; |
3753 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
3754 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
3755 | input, &value))); |
3756 | set_isonline(static_cast< ::OnlineStatus >(value)); |
3757 | } else { |
3758 | goto handle_unusual; |
3759 | } |
3760 | break; |
3761 | } |
3762 | |
3763 | // string name = 2; |
3764 | case 2: { |
3765 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3766 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
3767 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
3768 | input, this->mutable_name())); |
3769 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
3770 | this->name().data(), static_cast<int>(this->name().length()), |
3771 | ::google::protobuf::internal::WireFormatLite::PARSE, |
3772 | "AltPerson.name" )); |
3773 | } else { |
3774 | goto handle_unusual; |
3775 | } |
3776 | break; |
3777 | } |
3778 | |
3779 | // uint64 phoneNumber = 5; |
3780 | case 5: { |
3781 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3782 | static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) { |
3783 | |
3784 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
3785 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
3786 | input, &phonenumber_))); |
3787 | } else { |
3788 | goto handle_unusual; |
3789 | } |
3790 | break; |
3791 | } |
3792 | |
3793 | // bytes surname = 10; |
3794 | case 10: { |
3795 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3796 | static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) { |
3797 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
3798 | input, this->mutable_surname())); |
3799 | } else { |
3800 | goto handle_unusual; |
3801 | } |
3802 | break; |
3803 | } |
3804 | |
3805 | // repeated float color = 14; |
3806 | case 14: { |
3807 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3808 | static_cast< ::google::protobuf::uint8>(114u /* 114 & 0xFF */)) { |
3809 | DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< |
3810 | float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( |
3811 | input, this->mutable_color()))); |
3812 | } else if ( |
3813 | static_cast< ::google::protobuf::uint8>(tag) == |
3814 | static_cast< ::google::protobuf::uint8>(117u /* 117 & 0xFF */)) { |
3815 | DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< |
3816 | float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( |
3817 | 1, 114u, input, this->mutable_color()))); |
3818 | } else { |
3819 | goto handle_unusual; |
3820 | } |
3821 | break; |
3822 | } |
3823 | |
3824 | // fixed64 visitTime = 15; |
3825 | case 15: { |
3826 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3827 | static_cast< ::google::protobuf::uint8>(121u /* 121 & 0xFF */)) { |
3828 | |
3829 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
3830 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED64>( |
3831 | input, &visittime_))); |
3832 | } else { |
3833 | goto handle_unusual; |
3834 | } |
3835 | break; |
3836 | } |
3837 | |
3838 | // string newFieldStr = 21; |
3839 | case 21: { |
3840 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3841 | static_cast< ::google::protobuf::uint8>(170u /* 170 & 0xFF */)) { |
3842 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
3843 | input, this->mutable_newfieldstr())); |
3844 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
3845 | this->newfieldstr().data(), static_cast<int>(this->newfieldstr().length()), |
3846 | ::google::protobuf::internal::WireFormatLite::PARSE, |
3847 | "AltPerson.newFieldStr" )); |
3848 | } else { |
3849 | goto handle_unusual; |
3850 | } |
3851 | break; |
3852 | } |
3853 | |
3854 | // sint32 temperature = 41; |
3855 | case 41: { |
3856 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3857 | static_cast< ::google::protobuf::uint8>(72u /* 328 & 0xFF */)) { |
3858 | |
3859 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
3860 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_SINT32>( |
3861 | input, &temperature_))); |
3862 | } else { |
3863 | goto handle_unusual; |
3864 | } |
3865 | break; |
3866 | } |
3867 | |
3868 | // repeated float measureUnits_coef = 88; |
3869 | case 88: { |
3870 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3871 | static_cast< ::google::protobuf::uint8>(194u /* 706 & 0xFF */)) { |
3872 | DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< |
3873 | float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( |
3874 | input, this->mutable_measureunits_coef()))); |
3875 | } else if ( |
3876 | static_cast< ::google::protobuf::uint8>(tag) == |
3877 | static_cast< ::google::protobuf::uint8>(197u /* 709 & 0xFF */)) { |
3878 | DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< |
3879 | float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( |
3880 | 2, 706u, input, this->mutable_measureunits_coef()))); |
3881 | } else { |
3882 | goto handle_unusual; |
3883 | } |
3884 | break; |
3885 | } |
3886 | |
3887 | // repeated string measureUnits_unit = 99; |
3888 | case 99: { |
3889 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3890 | static_cast< ::google::protobuf::uint8>(26u /* 794 & 0xFF */)) { |
3891 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
3892 | input, this->add_measureunits_unit())); |
3893 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
3894 | this->measureunits_unit(this->measureunits_unit_size() - 1).data(), |
3895 | static_cast<int>(this->measureunits_unit(this->measureunits_unit_size() - 1).length()), |
3896 | ::google::protobuf::internal::WireFormatLite::PARSE, |
3897 | "AltPerson.measureUnits_unit" )); |
3898 | } else { |
3899 | goto handle_unusual; |
3900 | } |
3901 | break; |
3902 | } |
3903 | |
3904 | // double someRatio = 100; |
3905 | case 100: { |
3906 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3907 | static_cast< ::google::protobuf::uint8>(33u /* 801 & 0xFF */)) { |
3908 | |
3909 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
3910 | double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>( |
3911 | input, &someratio_))); |
3912 | } else { |
3913 | goto handle_unusual; |
3914 | } |
3915 | break; |
3916 | } |
3917 | |
3918 | // repeated int32 location = 101 [packed = false]; |
3919 | case 101: { |
3920 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3921 | static_cast< ::google::protobuf::uint8>(40u /* 808 & 0xFF */)) { |
3922 | DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< |
3923 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
3924 | 2, 808u, input, this->mutable_location()))); |
3925 | } else if ( |
3926 | static_cast< ::google::protobuf::uint8>(tag) == |
3927 | static_cast< ::google::protobuf::uint8>(42u /* 810 & 0xFF */)) { |
3928 | DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< |
3929 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
3930 | input, this->mutable_location()))); |
3931 | } else { |
3932 | goto handle_unusual; |
3933 | } |
3934 | break; |
3935 | } |
3936 | |
3937 | // .AltPerson.Gender gender = 102; |
3938 | case 102: { |
3939 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3940 | static_cast< ::google::protobuf::uint8>(48u /* 816 & 0xFF */)) { |
3941 | int value; |
3942 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
3943 | int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( |
3944 | input, &value))); |
3945 | set_gender(static_cast< ::AltPerson_Gender >(value)); |
3946 | } else { |
3947 | goto handle_unusual; |
3948 | } |
3949 | break; |
3950 | } |
3951 | |
3952 | // float pi = 103; |
3953 | case 103: { |
3954 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3955 | static_cast< ::google::protobuf::uint8>(61u /* 829 & 0xFF */)) { |
3956 | |
3957 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
3958 | float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>( |
3959 | input, &pi_))); |
3960 | } else { |
3961 | goto handle_unusual; |
3962 | } |
3963 | break; |
3964 | } |
3965 | |
3966 | // repeated int32 newFieldInt = 104; |
3967 | case 104: { |
3968 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3969 | static_cast< ::google::protobuf::uint8>(66u /* 834 & 0xFF */)) { |
3970 | DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< |
3971 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
3972 | input, this->mutable_newfieldint()))); |
3973 | } else if ( |
3974 | static_cast< ::google::protobuf::uint8>(tag) == |
3975 | static_cast< ::google::protobuf::uint8>(64u /* 832 & 0xFF */)) { |
3976 | DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< |
3977 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
3978 | 2, 834u, input, this->mutable_newfieldint()))); |
3979 | } else { |
3980 | goto handle_unusual; |
3981 | } |
3982 | break; |
3983 | } |
3984 | |
3985 | // bytes age = 111; |
3986 | case 111: { |
3987 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3988 | static_cast< ::google::protobuf::uint8>(122u /* 890 & 0xFF */)) { |
3989 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
3990 | input, this->mutable_age())); |
3991 | } else { |
3992 | goto handle_unusual; |
3993 | } |
3994 | break; |
3995 | } |
3996 | |
3997 | // int32 zodiacSign = 130; |
3998 | case 130: { |
3999 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4000 | static_cast< ::google::protobuf::uint8>(16u /* 1040 & 0xFF */)) { |
4001 | |
4002 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4003 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
4004 | input, &zodiacsign_))); |
4005 | } else { |
4006 | goto handle_unusual; |
4007 | } |
4008 | break; |
4009 | } |
4010 | |
4011 | // sfixed64 randomBigNumber = 140; |
4012 | case 140: { |
4013 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4014 | static_cast< ::google::protobuf::uint8>(97u /* 1121 & 0xFF */)) { |
4015 | |
4016 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4017 | ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SFIXED64>( |
4018 | input, &randombignumber_))); |
4019 | } else { |
4020 | goto handle_unusual; |
4021 | } |
4022 | break; |
4023 | } |
4024 | |
4025 | // int64 birthDate = 150; |
4026 | case 150: { |
4027 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4028 | static_cast< ::google::protobuf::uint8>(176u /* 1200 & 0xFF */)) { |
4029 | |
4030 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4031 | ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( |
4032 | input, &birthdate_))); |
4033 | } else { |
4034 | goto handle_unusual; |
4035 | } |
4036 | break; |
4037 | } |
4038 | |
4039 | // uint64 lotteryWin = 202; |
4040 | case 202: { |
4041 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4042 | static_cast< ::google::protobuf::uint8>(80u /* 1616 & 0xFF */)) { |
4043 | |
4044 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4045 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
4046 | input, &lotterywin_))); |
4047 | } else { |
4048 | goto handle_unusual; |
4049 | } |
4050 | break; |
4051 | } |
4052 | |
4053 | // bool newFieldBool = 299; |
4054 | case 299: { |
4055 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4056 | static_cast< ::google::protobuf::uint8>(88u /* 2392 & 0xFF */)) { |
4057 | |
4058 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4059 | bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>( |
4060 | input, &newfieldbool_))); |
4061 | } else { |
4062 | goto handle_unusual; |
4063 | } |
4064 | break; |
4065 | } |
4066 | |
4067 | // bytes uuid = 300; |
4068 | case 300: { |
4069 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4070 | static_cast< ::google::protobuf::uint8>(98u /* 2402 & 0xFF */)) { |
4071 | DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
4072 | input, this->mutable_uuid())); |
4073 | } else { |
4074 | goto handle_unusual; |
4075 | } |
4076 | break; |
4077 | } |
4078 | |
4079 | // uint32 nestiness_a_b_c_d = 900; |
4080 | case 900: { |
4081 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4082 | static_cast< ::google::protobuf::uint8>(32u /* 7200 & 0xFF */)) { |
4083 | |
4084 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
4085 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
4086 | input, &nestiness_a_b_c_d_))); |
4087 | } else { |
4088 | goto handle_unusual; |
4089 | } |
4090 | break; |
4091 | } |
4092 | |
4093 | // repeated uint32 nestiness_a_b_c_e = 901; |
4094 | case 901: { |
4095 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4096 | static_cast< ::google::protobuf::uint8>(42u /* 7210 & 0xFF */)) { |
4097 | DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitive< |
4098 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
4099 | input, this->mutable_nestiness_a_b_c_e()))); |
4100 | } else if ( |
4101 | static_cast< ::google::protobuf::uint8>(tag) == |
4102 | static_cast< ::google::protobuf::uint8>(40u /* 7208 & 0xFF */)) { |
4103 | DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< |
4104 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
4105 | 2, 7210u, input, this->mutable_nestiness_a_b_c_e()))); |
4106 | } else { |
4107 | goto handle_unusual; |
4108 | } |
4109 | break; |
4110 | } |
4111 | |
4112 | // .AltPerson.Dummy newMessage = 1000; |
4113 | case 1000: { |
4114 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4115 | static_cast< ::google::protobuf::uint8>(66u /* 8002 & 0xFF */)) { |
4116 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
4117 | input, mutable_newmessage())); |
4118 | } else { |
4119 | goto handle_unusual; |
4120 | } |
4121 | break; |
4122 | } |
4123 | |
4124 | default: { |
4125 | handle_unusual: |
4126 | if (tag == 0) { |
4127 | goto success; |
4128 | } |
4129 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
4130 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
4131 | break; |
4132 | } |
4133 | } |
4134 | } |
4135 | success: |
4136 | // @@protoc_insertion_point(parse_success:AltPerson) |
4137 | return true; |
4138 | failure: |
4139 | // @@protoc_insertion_point(parse_failure:AltPerson) |
4140 | return false; |
4141 | #undef DO_ |
4142 | } |
4143 | |
4144 | void AltPerson::SerializeWithCachedSizes( |
4145 | ::google::protobuf::io::CodedOutputStream* output) const { |
4146 | // @@protoc_insertion_point(serialize_start:AltPerson) |
4147 | ::google::protobuf::uint32 cached_has_bits = 0; |
4148 | (void) cached_has_bits; |
4149 | |
4150 | // .OnlineStatus isOnline = 1; |
4151 | if (this->isonline() != 0) { |
4152 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
4153 | 1, this->isonline(), output); |
4154 | } |
4155 | |
4156 | // string name = 2; |
4157 | if (this->name().size() > 0) { |
4158 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
4159 | this->name().data(), static_cast<int>(this->name().length()), |
4160 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
4161 | "AltPerson.name" ); |
4162 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
4163 | 2, this->name(), output); |
4164 | } |
4165 | |
4166 | // uint64 phoneNumber = 5; |
4167 | if (this->phonenumber() != 0) { |
4168 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(5, this->phonenumber(), output); |
4169 | } |
4170 | |
4171 | // bytes surname = 10; |
4172 | if (this->surname().size() > 0) { |
4173 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
4174 | 10, this->surname(), output); |
4175 | } |
4176 | |
4177 | // repeated float color = 14; |
4178 | if (this->color_size() > 0) { |
4179 | ::google::protobuf::internal::WireFormatLite::WriteTag(14, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
4180 | output->WriteVarint32(static_cast< ::google::protobuf::uint32>( |
4181 | _color_cached_byte_size_)); |
4182 | ::google::protobuf::internal::WireFormatLite::WriteFloatArray( |
4183 | this->color().data(), this->color_size(), output); |
4184 | } |
4185 | |
4186 | // fixed64 visitTime = 15; |
4187 | if (this->visittime() != 0) { |
4188 | ::google::protobuf::internal::WireFormatLite::WriteFixed64(15, this->visittime(), output); |
4189 | } |
4190 | |
4191 | // string newFieldStr = 21; |
4192 | if (this->newfieldstr().size() > 0) { |
4193 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
4194 | this->newfieldstr().data(), static_cast<int>(this->newfieldstr().length()), |
4195 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
4196 | "AltPerson.newFieldStr" ); |
4197 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
4198 | 21, this->newfieldstr(), output); |
4199 | } |
4200 | |
4201 | // sint32 temperature = 41; |
4202 | if (this->temperature() != 0) { |
4203 | ::google::protobuf::internal::WireFormatLite::WriteSInt32(41, this->temperature(), output); |
4204 | } |
4205 | |
4206 | // repeated float measureUnits_coef = 88; |
4207 | if (this->measureunits_coef_size() > 0) { |
4208 | ::google::protobuf::internal::WireFormatLite::WriteTag(88, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
4209 | output->WriteVarint32(static_cast< ::google::protobuf::uint32>( |
4210 | _measureunits_coef_cached_byte_size_)); |
4211 | ::google::protobuf::internal::WireFormatLite::WriteFloatArray( |
4212 | this->measureunits_coef().data(), this->measureunits_coef_size(), output); |
4213 | } |
4214 | |
4215 | // repeated string measureUnits_unit = 99; |
4216 | for (int i = 0, n = this->measureunits_unit_size(); i < n; i++) { |
4217 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
4218 | this->measureunits_unit(i).data(), static_cast<int>(this->measureunits_unit(i).length()), |
4219 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
4220 | "AltPerson.measureUnits_unit" ); |
4221 | ::google::protobuf::internal::WireFormatLite::WriteString( |
4222 | 99, this->measureunits_unit(i), output); |
4223 | } |
4224 | |
4225 | // double someRatio = 100; |
4226 | if (this->someratio() != 0) { |
4227 | ::google::protobuf::internal::WireFormatLite::WriteDouble(100, this->someratio(), output); |
4228 | } |
4229 | |
4230 | // repeated int32 location = 101 [packed = false]; |
4231 | for (int i = 0, n = this->location_size(); i < n; i++) { |
4232 | ::google::protobuf::internal::WireFormatLite::WriteInt32( |
4233 | 101, this->location(i), output); |
4234 | } |
4235 | |
4236 | // .AltPerson.Gender gender = 102; |
4237 | if (this->gender() != 0) { |
4238 | ::google::protobuf::internal::WireFormatLite::WriteEnum( |
4239 | 102, this->gender(), output); |
4240 | } |
4241 | |
4242 | // float pi = 103; |
4243 | if (this->pi() != 0) { |
4244 | ::google::protobuf::internal::WireFormatLite::WriteFloat(103, this->pi(), output); |
4245 | } |
4246 | |
4247 | // repeated int32 newFieldInt = 104; |
4248 | if (this->newfieldint_size() > 0) { |
4249 | ::google::protobuf::internal::WireFormatLite::WriteTag(104, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
4250 | output->WriteVarint32(static_cast< ::google::protobuf::uint32>( |
4251 | _newfieldint_cached_byte_size_)); |
4252 | } |
4253 | for (int i = 0, n = this->newfieldint_size(); i < n; i++) { |
4254 | ::google::protobuf::internal::WireFormatLite::WriteInt32NoTag( |
4255 | this->newfieldint(i), output); |
4256 | } |
4257 | |
4258 | // bytes age = 111; |
4259 | if (this->age().size() > 0) { |
4260 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
4261 | 111, this->age(), output); |
4262 | } |
4263 | |
4264 | // int32 zodiacSign = 130; |
4265 | if (this->zodiacsign() != 0) { |
4266 | ::google::protobuf::internal::WireFormatLite::WriteInt32(130, this->zodiacsign(), output); |
4267 | } |
4268 | |
4269 | // sfixed64 randomBigNumber = 140; |
4270 | if (this->randombignumber() != 0) { |
4271 | ::google::protobuf::internal::WireFormatLite::WriteSFixed64(140, this->randombignumber(), output); |
4272 | } |
4273 | |
4274 | // int64 birthDate = 150; |
4275 | if (this->birthdate() != 0) { |
4276 | ::google::protobuf::internal::WireFormatLite::WriteInt64(150, this->birthdate(), output); |
4277 | } |
4278 | |
4279 | // uint64 lotteryWin = 202; |
4280 | if (this->lotterywin() != 0) { |
4281 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(202, this->lotterywin(), output); |
4282 | } |
4283 | |
4284 | // bool newFieldBool = 299; |
4285 | if (this->newfieldbool() != 0) { |
4286 | ::google::protobuf::internal::WireFormatLite::WriteBool(299, this->newfieldbool(), output); |
4287 | } |
4288 | |
4289 | // bytes uuid = 300; |
4290 | if (this->uuid().size() > 0) { |
4291 | ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
4292 | 300, this->uuid(), output); |
4293 | } |
4294 | |
4295 | // uint32 nestiness_a_b_c_d = 900; |
4296 | if (this->nestiness_a_b_c_d() != 0) { |
4297 | ::google::protobuf::internal::WireFormatLite::WriteUInt32(900, this->nestiness_a_b_c_d(), output); |
4298 | } |
4299 | |
4300 | // repeated uint32 nestiness_a_b_c_e = 901; |
4301 | if (this->nestiness_a_b_c_e_size() > 0) { |
4302 | ::google::protobuf::internal::WireFormatLite::WriteTag(901, ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
4303 | output->WriteVarint32(static_cast< ::google::protobuf::uint32>( |
4304 | _nestiness_a_b_c_e_cached_byte_size_)); |
4305 | } |
4306 | for (int i = 0, n = this->nestiness_a_b_c_e_size(); i < n; i++) { |
4307 | ::google::protobuf::internal::WireFormatLite::WriteUInt32NoTag( |
4308 | this->nestiness_a_b_c_e(i), output); |
4309 | } |
4310 | |
4311 | // .AltPerson.Dummy newMessage = 1000; |
4312 | if (this->has_newmessage()) { |
4313 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
4314 | 1000, this->_internal_newmessage(), output); |
4315 | } |
4316 | |
4317 | if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { |
4318 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
4319 | (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); |
4320 | } |
4321 | // @@protoc_insertion_point(serialize_end:AltPerson) |
4322 | } |
4323 | |
4324 | ::google::protobuf::uint8* AltPerson::InternalSerializeWithCachedSizesToArray( |
4325 | bool deterministic, ::google::protobuf::uint8* target) const { |
4326 | (void)deterministic; // Unused |
4327 | // @@protoc_insertion_point(serialize_to_array_start:AltPerson) |
4328 | ::google::protobuf::uint32 cached_has_bits = 0; |
4329 | (void) cached_has_bits; |
4330 | |
4331 | // .OnlineStatus isOnline = 1; |
4332 | if (this->isonline() != 0) { |
4333 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
4334 | 1, this->isonline(), target); |
4335 | } |
4336 | |
4337 | // string name = 2; |
4338 | if (this->name().size() > 0) { |
4339 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
4340 | this->name().data(), static_cast<int>(this->name().length()), |
4341 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
4342 | "AltPerson.name" ); |
4343 | target = |
4344 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
4345 | 2, this->name(), target); |
4346 | } |
4347 | |
4348 | // uint64 phoneNumber = 5; |
4349 | if (this->phonenumber() != 0) { |
4350 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(5, this->phonenumber(), target); |
4351 | } |
4352 | |
4353 | // bytes surname = 10; |
4354 | if (this->surname().size() > 0) { |
4355 | target = |
4356 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
4357 | 10, this->surname(), target); |
4358 | } |
4359 | |
4360 | // repeated float color = 14; |
4361 | if (this->color_size() > 0) { |
4362 | target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( |
4363 | 14, |
4364 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
4365 | target); |
4366 | target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( |
4367 | static_cast< ::google::protobuf::int32>( |
4368 | _color_cached_byte_size_), target); |
4369 | target = ::google::protobuf::internal::WireFormatLite:: |
4370 | WriteFloatNoTagToArray(this->color_, target); |
4371 | } |
4372 | |
4373 | // fixed64 visitTime = 15; |
4374 | if (this->visittime() != 0) { |
4375 | target = ::google::protobuf::internal::WireFormatLite::WriteFixed64ToArray(15, this->visittime(), target); |
4376 | } |
4377 | |
4378 | // string newFieldStr = 21; |
4379 | if (this->newfieldstr().size() > 0) { |
4380 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
4381 | this->newfieldstr().data(), static_cast<int>(this->newfieldstr().length()), |
4382 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
4383 | "AltPerson.newFieldStr" ); |
4384 | target = |
4385 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
4386 | 21, this->newfieldstr(), target); |
4387 | } |
4388 | |
4389 | // sint32 temperature = 41; |
4390 | if (this->temperature() != 0) { |
4391 | target = ::google::protobuf::internal::WireFormatLite::WriteSInt32ToArray(41, this->temperature(), target); |
4392 | } |
4393 | |
4394 | // repeated float measureUnits_coef = 88; |
4395 | if (this->measureunits_coef_size() > 0) { |
4396 | target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( |
4397 | 88, |
4398 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
4399 | target); |
4400 | target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( |
4401 | static_cast< ::google::protobuf::int32>( |
4402 | _measureunits_coef_cached_byte_size_), target); |
4403 | target = ::google::protobuf::internal::WireFormatLite:: |
4404 | WriteFloatNoTagToArray(this->measureunits_coef_, target); |
4405 | } |
4406 | |
4407 | // repeated string measureUnits_unit = 99; |
4408 | for (int i = 0, n = this->measureunits_unit_size(); i < n; i++) { |
4409 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
4410 | this->measureunits_unit(i).data(), static_cast<int>(this->measureunits_unit(i).length()), |
4411 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
4412 | "AltPerson.measureUnits_unit" ); |
4413 | target = ::google::protobuf::internal::WireFormatLite:: |
4414 | WriteStringToArray(99, this->measureunits_unit(i), target); |
4415 | } |
4416 | |
4417 | // double someRatio = 100; |
4418 | if (this->someratio() != 0) { |
4419 | target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(100, this->someratio(), target); |
4420 | } |
4421 | |
4422 | // repeated int32 location = 101 [packed = false]; |
4423 | target = ::google::protobuf::internal::WireFormatLite:: |
4424 | WriteInt32ToArray(101, this->location_, target); |
4425 | |
4426 | // .AltPerson.Gender gender = 102; |
4427 | if (this->gender() != 0) { |
4428 | target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
4429 | 102, this->gender(), target); |
4430 | } |
4431 | |
4432 | // float pi = 103; |
4433 | if (this->pi() != 0) { |
4434 | target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(103, this->pi(), target); |
4435 | } |
4436 | |
4437 | // repeated int32 newFieldInt = 104; |
4438 | if (this->newfieldint_size() > 0) { |
4439 | target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( |
4440 | 104, |
4441 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
4442 | target); |
4443 | target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( |
4444 | static_cast< ::google::protobuf::int32>( |
4445 | _newfieldint_cached_byte_size_), target); |
4446 | target = ::google::protobuf::internal::WireFormatLite:: |
4447 | WriteInt32NoTagToArray(this->newfieldint_, target); |
4448 | } |
4449 | |
4450 | // bytes age = 111; |
4451 | if (this->age().size() > 0) { |
4452 | target = |
4453 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
4454 | 111, this->age(), target); |
4455 | } |
4456 | |
4457 | // int32 zodiacSign = 130; |
4458 | if (this->zodiacsign() != 0) { |
4459 | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(130, this->zodiacsign(), target); |
4460 | } |
4461 | |
4462 | // sfixed64 randomBigNumber = 140; |
4463 | if (this->randombignumber() != 0) { |
4464 | target = ::google::protobuf::internal::WireFormatLite::WriteSFixed64ToArray(140, this->randombignumber(), target); |
4465 | } |
4466 | |
4467 | // int64 birthDate = 150; |
4468 | if (this->birthdate() != 0) { |
4469 | target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(150, this->birthdate(), target); |
4470 | } |
4471 | |
4472 | // uint64 lotteryWin = 202; |
4473 | if (this->lotterywin() != 0) { |
4474 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(202, this->lotterywin(), target); |
4475 | } |
4476 | |
4477 | // bool newFieldBool = 299; |
4478 | if (this->newfieldbool() != 0) { |
4479 | target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(299, this->newfieldbool(), target); |
4480 | } |
4481 | |
4482 | // bytes uuid = 300; |
4483 | if (this->uuid().size() > 0) { |
4484 | target = |
4485 | ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
4486 | 300, this->uuid(), target); |
4487 | } |
4488 | |
4489 | // uint32 nestiness_a_b_c_d = 900; |
4490 | if (this->nestiness_a_b_c_d() != 0) { |
4491 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(900, this->nestiness_a_b_c_d(), target); |
4492 | } |
4493 | |
4494 | // repeated uint32 nestiness_a_b_c_e = 901; |
4495 | if (this->nestiness_a_b_c_e_size() > 0) { |
4496 | target = ::google::protobuf::internal::WireFormatLite::WriteTagToArray( |
4497 | 901, |
4498 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
4499 | target); |
4500 | target = ::google::protobuf::io::CodedOutputStream::WriteVarint32ToArray( |
4501 | static_cast< ::google::protobuf::int32>( |
4502 | _nestiness_a_b_c_e_cached_byte_size_), target); |
4503 | target = ::google::protobuf::internal::WireFormatLite:: |
4504 | WriteUInt32NoTagToArray(this->nestiness_a_b_c_e_, target); |
4505 | } |
4506 | |
4507 | // .AltPerson.Dummy newMessage = 1000; |
4508 | if (this->has_newmessage()) { |
4509 | target = ::google::protobuf::internal::WireFormatLite:: |
4510 | InternalWriteMessageToArray( |
4511 | 1000, this->_internal_newmessage(), deterministic, target); |
4512 | } |
4513 | |
4514 | if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { |
4515 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
4516 | (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); |
4517 | } |
4518 | // @@protoc_insertion_point(serialize_to_array_end:AltPerson) |
4519 | return target; |
4520 | } |
4521 | |
4522 | size_t AltPerson::ByteSizeLong() const { |
4523 | // @@protoc_insertion_point(message_byte_size_start:AltPerson) |
4524 | size_t total_size = 0; |
4525 | |
4526 | if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { |
4527 | total_size += |
4528 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
4529 | (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); |
4530 | } |
4531 | // repeated float color = 14; |
4532 | { |
4533 | unsigned int count = static_cast<unsigned int>(this->color_size()); |
4534 | size_t data_size = 4UL * count; |
4535 | if (data_size > 0) { |
4536 | total_size += 1 + |
4537 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
4538 | static_cast< ::google::protobuf::int32>(data_size)); |
4539 | } |
4540 | int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); |
4541 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
4542 | _color_cached_byte_size_ = cached_size; |
4543 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
4544 | total_size += data_size; |
4545 | } |
4546 | |
4547 | // repeated float measureUnits_coef = 88; |
4548 | { |
4549 | unsigned int count = static_cast<unsigned int>(this->measureunits_coef_size()); |
4550 | size_t data_size = 4UL * count; |
4551 | if (data_size > 0) { |
4552 | total_size += 2 + |
4553 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
4554 | static_cast< ::google::protobuf::int32>(data_size)); |
4555 | } |
4556 | int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); |
4557 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
4558 | _measureunits_coef_cached_byte_size_ = cached_size; |
4559 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
4560 | total_size += data_size; |
4561 | } |
4562 | |
4563 | // repeated string measureUnits_unit = 99; |
4564 | total_size += 2 * |
4565 | ::google::protobuf::internal::FromIntSize(this->measureunits_unit_size()); |
4566 | for (int i = 0, n = this->measureunits_unit_size(); i < n; i++) { |
4567 | total_size += ::google::protobuf::internal::WireFormatLite::StringSize( |
4568 | this->measureunits_unit(i)); |
4569 | } |
4570 | |
4571 | // repeated int32 location = 101 [packed = false]; |
4572 | { |
4573 | size_t data_size = ::google::protobuf::internal::WireFormatLite:: |
4574 | Int32Size(this->location_); |
4575 | total_size += 2 * |
4576 | ::google::protobuf::internal::FromIntSize(this->location_size()); |
4577 | total_size += data_size; |
4578 | } |
4579 | |
4580 | // repeated int32 newFieldInt = 104; |
4581 | { |
4582 | size_t data_size = ::google::protobuf::internal::WireFormatLite:: |
4583 | Int32Size(this->newfieldint_); |
4584 | if (data_size > 0) { |
4585 | total_size += 2 + |
4586 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
4587 | static_cast< ::google::protobuf::int32>(data_size)); |
4588 | } |
4589 | int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); |
4590 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
4591 | _newfieldint_cached_byte_size_ = cached_size; |
4592 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
4593 | total_size += data_size; |
4594 | } |
4595 | |
4596 | // repeated uint32 nestiness_a_b_c_e = 901; |
4597 | { |
4598 | size_t data_size = ::google::protobuf::internal::WireFormatLite:: |
4599 | UInt32Size(this->nestiness_a_b_c_e_); |
4600 | if (data_size > 0) { |
4601 | total_size += 2 + |
4602 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
4603 | static_cast< ::google::protobuf::int32>(data_size)); |
4604 | } |
4605 | int cached_size = ::google::protobuf::internal::ToCachedSize(data_size); |
4606 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
4607 | _nestiness_a_b_c_e_cached_byte_size_ = cached_size; |
4608 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
4609 | total_size += data_size; |
4610 | } |
4611 | |
4612 | // string name = 2; |
4613 | if (this->name().size() > 0) { |
4614 | total_size += 1 + |
4615 | ::google::protobuf::internal::WireFormatLite::StringSize( |
4616 | this->name()); |
4617 | } |
4618 | |
4619 | // bytes surname = 10; |
4620 | if (this->surname().size() > 0) { |
4621 | total_size += 1 + |
4622 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
4623 | this->surname()); |
4624 | } |
4625 | |
4626 | // string newFieldStr = 21; |
4627 | if (this->newfieldstr().size() > 0) { |
4628 | total_size += 2 + |
4629 | ::google::protobuf::internal::WireFormatLite::StringSize( |
4630 | this->newfieldstr()); |
4631 | } |
4632 | |
4633 | // bytes age = 111; |
4634 | if (this->age().size() > 0) { |
4635 | total_size += 2 + |
4636 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
4637 | this->age()); |
4638 | } |
4639 | |
4640 | // bytes uuid = 300; |
4641 | if (this->uuid().size() > 0) { |
4642 | total_size += 2 + |
4643 | ::google::protobuf::internal::WireFormatLite::BytesSize( |
4644 | this->uuid()); |
4645 | } |
4646 | |
4647 | // .AltPerson.Dummy newMessage = 1000; |
4648 | if (this->has_newmessage()) { |
4649 | total_size += 2 + |
4650 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
4651 | *newmessage_); |
4652 | } |
4653 | |
4654 | // uint64 phoneNumber = 5; |
4655 | if (this->phonenumber() != 0) { |
4656 | total_size += 1 + |
4657 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
4658 | this->phonenumber()); |
4659 | } |
4660 | |
4661 | // fixed64 visitTime = 15; |
4662 | if (this->visittime() != 0) { |
4663 | total_size += 1 + 8; |
4664 | } |
4665 | |
4666 | // .OnlineStatus isOnline = 1; |
4667 | if (this->isonline() != 0) { |
4668 | total_size += 1 + |
4669 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->isonline()); |
4670 | } |
4671 | |
4672 | // sint32 temperature = 41; |
4673 | if (this->temperature() != 0) { |
4674 | total_size += 2 + |
4675 | ::google::protobuf::internal::WireFormatLite::SInt32Size( |
4676 | this->temperature()); |
4677 | } |
4678 | |
4679 | // uint32 nestiness_a_b_c_d = 900; |
4680 | if (this->nestiness_a_b_c_d() != 0) { |
4681 | total_size += 2 + |
4682 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
4683 | this->nestiness_a_b_c_d()); |
4684 | } |
4685 | |
4686 | // double someRatio = 100; |
4687 | if (this->someratio() != 0) { |
4688 | total_size += 2 + 8; |
4689 | } |
4690 | |
4691 | // .AltPerson.Gender gender = 102; |
4692 | if (this->gender() != 0) { |
4693 | total_size += 2 + |
4694 | ::google::protobuf::internal::WireFormatLite::EnumSize(this->gender()); |
4695 | } |
4696 | |
4697 | // float pi = 103; |
4698 | if (this->pi() != 0) { |
4699 | total_size += 2 + 4; |
4700 | } |
4701 | |
4702 | // sfixed64 randomBigNumber = 140; |
4703 | if (this->randombignumber() != 0) { |
4704 | total_size += 2 + 8; |
4705 | } |
4706 | |
4707 | // int64 birthDate = 150; |
4708 | if (this->birthdate() != 0) { |
4709 | total_size += 2 + |
4710 | ::google::protobuf::internal::WireFormatLite::Int64Size( |
4711 | this->birthdate()); |
4712 | } |
4713 | |
4714 | // uint64 lotteryWin = 202; |
4715 | if (this->lotterywin() != 0) { |
4716 | total_size += 2 + |
4717 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
4718 | this->lotterywin()); |
4719 | } |
4720 | |
4721 | // int32 zodiacSign = 130; |
4722 | if (this->zodiacsign() != 0) { |
4723 | total_size += 2 + |
4724 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
4725 | this->zodiacsign()); |
4726 | } |
4727 | |
4728 | // bool newFieldBool = 299; |
4729 | if (this->newfieldbool() != 0) { |
4730 | total_size += 2 + 1; |
4731 | } |
4732 | |
4733 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
4734 | SetCachedSize(cached_size); |
4735 | return total_size; |
4736 | } |
4737 | |
4738 | void AltPerson::MergeFrom(const ::google::protobuf::Message& from) { |
4739 | // @@protoc_insertion_point(generalized_merge_from_start:AltPerson) |
4740 | GOOGLE_DCHECK_NE(&from, this); |
4741 | const AltPerson* source = |
4742 | ::google::protobuf::internal::DynamicCastToGenerated<const AltPerson>( |
4743 | &from); |
4744 | if (source == NULL) { |
4745 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:AltPerson) |
4746 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
4747 | } else { |
4748 | // @@protoc_insertion_point(generalized_merge_from_cast_success:AltPerson) |
4749 | MergeFrom(*source); |
4750 | } |
4751 | } |
4752 | |
4753 | void AltPerson::MergeFrom(const AltPerson& from) { |
4754 | // @@protoc_insertion_point(class_specific_merge_from_start:AltPerson) |
4755 | GOOGLE_DCHECK_NE(&from, this); |
4756 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4757 | ::google::protobuf::uint32 cached_has_bits = 0; |
4758 | (void) cached_has_bits; |
4759 | |
4760 | color_.MergeFrom(from.color_); |
4761 | measureunits_coef_.MergeFrom(from.measureunits_coef_); |
4762 | measureunits_unit_.MergeFrom(from.measureunits_unit_); |
4763 | location_.MergeFrom(from.location_); |
4764 | newfieldint_.MergeFrom(from.newfieldint_); |
4765 | nestiness_a_b_c_e_.MergeFrom(from.nestiness_a_b_c_e_); |
4766 | if (from.name().size() > 0) { |
4767 | |
4768 | name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
4769 | } |
4770 | if (from.surname().size() > 0) { |
4771 | |
4772 | surname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.surname_); |
4773 | } |
4774 | if (from.newfieldstr().size() > 0) { |
4775 | |
4776 | newfieldstr_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.newfieldstr_); |
4777 | } |
4778 | if (from.age().size() > 0) { |
4779 | |
4780 | age_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.age_); |
4781 | } |
4782 | if (from.uuid().size() > 0) { |
4783 | |
4784 | uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.uuid_); |
4785 | } |
4786 | if (from.has_newmessage()) { |
4787 | mutable_newmessage()->::AltPerson_Dummy::MergeFrom(from.newmessage()); |
4788 | } |
4789 | if (from.phonenumber() != 0) { |
4790 | set_phonenumber(from.phonenumber()); |
4791 | } |
4792 | if (from.visittime() != 0) { |
4793 | set_visittime(from.visittime()); |
4794 | } |
4795 | if (from.isonline() != 0) { |
4796 | set_isonline(from.isonline()); |
4797 | } |
4798 | if (from.temperature() != 0) { |
4799 | set_temperature(from.temperature()); |
4800 | } |
4801 | if (from.nestiness_a_b_c_d() != 0) { |
4802 | set_nestiness_a_b_c_d(from.nestiness_a_b_c_d()); |
4803 | } |
4804 | if (from.someratio() != 0) { |
4805 | set_someratio(from.someratio()); |
4806 | } |
4807 | if (from.gender() != 0) { |
4808 | set_gender(from.gender()); |
4809 | } |
4810 | if (from.pi() != 0) { |
4811 | set_pi(from.pi()); |
4812 | } |
4813 | if (from.randombignumber() != 0) { |
4814 | set_randombignumber(from.randombignumber()); |
4815 | } |
4816 | if (from.birthdate() != 0) { |
4817 | set_birthdate(from.birthdate()); |
4818 | } |
4819 | if (from.lotterywin() != 0) { |
4820 | set_lotterywin(from.lotterywin()); |
4821 | } |
4822 | if (from.zodiacsign() != 0) { |
4823 | set_zodiacsign(from.zodiacsign()); |
4824 | } |
4825 | if (from.newfieldbool() != 0) { |
4826 | set_newfieldbool(from.newfieldbool()); |
4827 | } |
4828 | } |
4829 | |
4830 | void AltPerson::CopyFrom(const ::google::protobuf::Message& from) { |
4831 | // @@protoc_insertion_point(generalized_copy_from_start:AltPerson) |
4832 | if (&from == this) return; |
4833 | Clear(); |
4834 | MergeFrom(from); |
4835 | } |
4836 | |
4837 | void AltPerson::CopyFrom(const AltPerson& from) { |
4838 | // @@protoc_insertion_point(class_specific_copy_from_start:AltPerson) |
4839 | if (&from == this) return; |
4840 | Clear(); |
4841 | MergeFrom(from); |
4842 | } |
4843 | |
4844 | bool AltPerson::IsInitialized() const { |
4845 | return true; |
4846 | } |
4847 | |
4848 | void AltPerson::Swap(AltPerson* other) { |
4849 | if (other == this) return; |
4850 | InternalSwap(other); |
4851 | } |
4852 | void AltPerson::InternalSwap(AltPerson* other) { |
4853 | using std::swap; |
4854 | color_.InternalSwap(&other->color_); |
4855 | measureunits_coef_.InternalSwap(&other->measureunits_coef_); |
4856 | measureunits_unit_.InternalSwap(CastToBase(&other->measureunits_unit_)); |
4857 | location_.InternalSwap(&other->location_); |
4858 | newfieldint_.InternalSwap(&other->newfieldint_); |
4859 | nestiness_a_b_c_e_.InternalSwap(&other->nestiness_a_b_c_e_); |
4860 | name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
4861 | GetArenaNoVirtual()); |
4862 | surname_.Swap(&other->surname_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
4863 | GetArenaNoVirtual()); |
4864 | newfieldstr_.Swap(&other->newfieldstr_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
4865 | GetArenaNoVirtual()); |
4866 | age_.Swap(&other->age_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
4867 | GetArenaNoVirtual()); |
4868 | uuid_.Swap(&other->uuid_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
4869 | GetArenaNoVirtual()); |
4870 | swap(newmessage_, other->newmessage_); |
4871 | swap(phonenumber_, other->phonenumber_); |
4872 | swap(visittime_, other->visittime_); |
4873 | swap(isonline_, other->isonline_); |
4874 | swap(temperature_, other->temperature_); |
4875 | swap(nestiness_a_b_c_d_, other->nestiness_a_b_c_d_); |
4876 | swap(someratio_, other->someratio_); |
4877 | swap(gender_, other->gender_); |
4878 | swap(pi_, other->pi_); |
4879 | swap(randombignumber_, other->randombignumber_); |
4880 | swap(birthdate_, other->birthdate_); |
4881 | swap(lotterywin_, other->lotterywin_); |
4882 | swap(zodiacsign_, other->zodiacsign_); |
4883 | swap(newfieldbool_, other->newfieldbool_); |
4884 | _internal_metadata_.Swap(&other->_internal_metadata_); |
4885 | } |
4886 | |
4887 | ::google::protobuf::Metadata AltPerson::GetMetadata() const { |
4888 | protobuf_00825_5fprotobuf_5fformat_2eproto::protobuf_AssignDescriptorsOnce(); |
4889 | return ::protobuf_00825_5fprotobuf_5fformat_2eproto::file_level_metadata[kIndexInFileMessages]; |
4890 | } |
4891 | |
4892 | |
4893 | // =================================================================== |
4894 | |
4895 | void StrPerson_MeasureUnits::InitAsDefaultInstance() { |
4896 | } |
4897 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
4898 | const int StrPerson_MeasureUnits::kUnitFieldNumber; |
4899 | const int StrPerson_MeasureUnits::kCoefFieldNumber; |
4900 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
4901 | |
4902 | StrPerson_MeasureUnits::StrPerson_MeasureUnits() |
4903 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
4904 | ::google::protobuf::internal::InitSCC( |
4905 | &protobuf_00825_5fprotobuf_5fformat_2eproto::scc_info_StrPerson_MeasureUnits.base); |
4906 | SharedCtor(); |
4907 | // @@protoc_insertion_point(constructor:StrPerson.MeasureUnits) |
4908 | } |
4909 | StrPerson_MeasureUnits::StrPerson_MeasureUnits(const StrPerson_MeasureUnits& from) |
4910 | : ::google::protobuf::Message(), |
4911 | _internal_metadata_(NULL), |
4912 | unit_(from.unit_), |
4913 | coef_(from.coef_) { |
4914 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
4915 | // @@protoc_insertion_point(copy_constructor:StrPerson.MeasureUnits) |
4916 | } |
4917 | |
4918 | void StrPerson_MeasureUnits::SharedCtor() { |
4919 | } |
4920 | |
4921 | StrPerson_MeasureUnits::~StrPerson_MeasureUnits() { |
4922 | // @@protoc_insertion_point(destructor:StrPerson.MeasureUnits) |
4923 | SharedDtor(); |
4924 | } |
4925 | |
4926 | void StrPerson_MeasureUnits::SharedDtor() { |
4927 | } |
4928 | |
4929 | void StrPerson_MeasureUnits::SetCachedSize(int size) const { |
4930 | _cached_size_.Set(size); |
4931 | } |
4932 | const ::google::protobuf::Descriptor* StrPerson_MeasureUnits::descriptor() { |
4933 | ::protobuf_00825_5fprotobuf_5fformat_2eproto::protobuf_AssignDescriptorsOnce(); |
4934 | return ::protobuf_00825_5fprotobuf_5fformat_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
4935 | } |
4936 | |
4937 | const StrPerson_MeasureUnits& StrPerson_MeasureUnits::default_instance() { |
4938 | ::google::protobuf::internal::InitSCC(&protobuf_00825_5fprotobuf_5fformat_2eproto::scc_info_StrPerson_MeasureUnits.base); |
4939 | return *internal_default_instance(); |
4940 | } |
4941 | |
4942 | |
4943 | void StrPerson_MeasureUnits::Clear() { |
4944 | // @@protoc_insertion_point(message_clear_start:StrPerson.MeasureUnits) |
4945 | ::google::protobuf::uint32 cached_has_bits = 0; |
4946 | // Prevent compiler warnings about cached_has_bits being unused |
4947 | (void) cached_has_bits; |
4948 | |
4949 | unit_.Clear(); |
4950 | coef_.Clear(); |
4951 | _internal_metadata_.Clear(); |
4952 | } |
4953 | |
4954 | bool StrPerson_MeasureUnits::MergePartialFromCodedStream( |
4955 | ::google::protobuf::io::CodedInputStream* input) { |
4956 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
4957 | ::google::protobuf::uint32 tag; |
4958 | // @@protoc_insertion_point(parse_start:StrPerson.MeasureUnits) |
4959 | for (;;) { |
4960 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
4961 | tag = p.first; |
4962 | if (!p.second) goto handle_unusual; |
4963 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
4964 | // repeated string unit = 1; |
4965 | case 1: { |
4966 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4967 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
4968 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
4969 | input, this->add_unit())); |
4970 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
4971 | this->unit(this->unit_size() - 1).data(), |
4972 | static_cast<int>(this->unit(this->unit_size() - 1).length()), |
4973 | ::google::protobuf::internal::WireFormatLite::PARSE, |
4974 | "StrPerson.MeasureUnits.unit" )); |
4975 | } else { |
4976 | goto handle_unusual; |
4977 | } |
4978 | break; |
4979 | } |
4980 | |
4981 | // repeated string coef = 2; |
4982 | case 2: { |
4983 | if (static_cast< ::google::protobuf::uint8>(tag) == |
4984 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
4985 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
4986 | input, this->add_coef())); |
4987 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
4988 | this->coef(this->coef_size() - 1).data(), |
4989 | static_cast<int>(this->coef(this->coef_size() - 1).length()), |
4990 | ::google::protobuf::internal::WireFormatLite::PARSE, |
4991 | "StrPerson.MeasureUnits.coef" )); |
4992 | } else { |
4993 | goto handle_unusual; |
4994 | } |
4995 | break; |
4996 | } |
4997 | |
4998 | default: { |
4999 | handle_unusual: |
5000 | if (tag == 0) { |
5001 | goto success; |
5002 | } |
5003 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
5004 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
5005 | break; |
5006 | } |
5007 | } |
5008 | } |
5009 | success: |
5010 | // @@protoc_insertion_point(parse_success:StrPerson.MeasureUnits) |
5011 | return true; |
5012 | failure: |
5013 | // @@protoc_insertion_point(parse_failure:StrPerson.MeasureUnits) |
5014 | return false; |
5015 | #undef DO_ |
5016 | } |
5017 | |
5018 | void StrPerson_MeasureUnits::SerializeWithCachedSizes( |
5019 | ::google::protobuf::io::CodedOutputStream* output) const { |
5020 | // @@protoc_insertion_point(serialize_start:StrPerson.MeasureUnits) |
5021 | ::google::protobuf::uint32 cached_has_bits = 0; |
5022 | (void) cached_has_bits; |
5023 | |
5024 | // repeated string unit = 1; |
5025 | for (int i = 0, n = this->unit_size(); i < n; i++) { |
5026 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
5027 | this->unit(i).data(), static_cast<int>(this->unit(i).length()), |
5028 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
5029 | "StrPerson.MeasureUnits.unit" ); |
5030 | ::google::protobuf::internal::WireFormatLite::WriteString( |
5031 | 1, this->unit(i), output); |
5032 | } |
5033 | |
5034 | // repeated string coef = 2; |
5035 | for (int i = 0, n = this->coef_size(); i < n; i++) { |
5036 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
5037 | this->coef(i).data(), static_cast<int>(this->coef(i).length()), |
5038 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
5039 | "StrPerson.MeasureUnits.coef" ); |
5040 | ::google::protobuf::internal::WireFormatLite::WriteString( |
5041 | 2, this->coef(i), output); |
5042 | } |
5043 | |
5044 | if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { |
5045 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
5046 | (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); |
5047 | } |
5048 | // @@protoc_insertion_point(serialize_end:StrPerson.MeasureUnits) |
5049 | } |
5050 | |
5051 | ::google::protobuf::uint8* StrPerson_MeasureUnits::InternalSerializeWithCachedSizesToArray( |
5052 | bool deterministic, ::google::protobuf::uint8* target) const { |
5053 | (void)deterministic; // Unused |
5054 | // @@protoc_insertion_point(serialize_to_array_start:StrPerson.MeasureUnits) |
5055 | ::google::protobuf::uint32 cached_has_bits = 0; |
5056 | (void) cached_has_bits; |
5057 | |
5058 | // repeated string unit = 1; |
5059 | for (int i = 0, n = this->unit_size(); i < n; i++) { |
5060 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
5061 | this->unit(i).data(), static_cast<int>(this->unit(i).length()), |
5062 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
5063 | "StrPerson.MeasureUnits.unit" ); |
5064 | target = ::google::protobuf::internal::WireFormatLite:: |
5065 | WriteStringToArray(1, this->unit(i), target); |
5066 | } |
5067 | |
5068 | // repeated string coef = 2; |
5069 | for (int i = 0, n = this->coef_size(); i < n; i++) { |
5070 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
5071 | this->coef(i).data(), static_cast<int>(this->coef(i).length()), |
5072 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
5073 | "StrPerson.MeasureUnits.coef" ); |
5074 | target = ::google::protobuf::internal::WireFormatLite:: |
5075 | WriteStringToArray(2, this->coef(i), target); |
5076 | } |
5077 | |
5078 | if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { |
5079 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
5080 | (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); |
5081 | } |
5082 | // @@protoc_insertion_point(serialize_to_array_end:StrPerson.MeasureUnits) |
5083 | return target; |
5084 | } |
5085 | |
5086 | size_t StrPerson_MeasureUnits::ByteSizeLong() const { |
5087 | // @@protoc_insertion_point(message_byte_size_start:StrPerson.MeasureUnits) |
5088 | size_t total_size = 0; |
5089 | |
5090 | if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { |
5091 | total_size += |
5092 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
5093 | (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); |
5094 | } |
5095 | // repeated string unit = 1; |
5096 | total_size += 1 * |
5097 | ::google::protobuf::internal::FromIntSize(this->unit_size()); |
5098 | for (int i = 0, n = this->unit_size(); i < n; i++) { |
5099 | total_size += ::google::protobuf::internal::WireFormatLite::StringSize( |
5100 | this->unit(i)); |
5101 | } |
5102 | |
5103 | // repeated string coef = 2; |
5104 | total_size += 1 * |
5105 | ::google::protobuf::internal::FromIntSize(this->coef_size()); |
5106 | for (int i = 0, n = this->coef_size(); i < n; i++) { |
5107 | total_size += ::google::protobuf::internal::WireFormatLite::StringSize( |
5108 | this->coef(i)); |
5109 | } |
5110 | |
5111 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
5112 | SetCachedSize(cached_size); |
5113 | return total_size; |
5114 | } |
5115 | |
5116 | void StrPerson_MeasureUnits::MergeFrom(const ::google::protobuf::Message& from) { |
5117 | // @@protoc_insertion_point(generalized_merge_from_start:StrPerson.MeasureUnits) |
5118 | GOOGLE_DCHECK_NE(&from, this); |
5119 | const StrPerson_MeasureUnits* source = |
5120 | ::google::protobuf::internal::DynamicCastToGenerated<const StrPerson_MeasureUnits>( |
5121 | &from); |
5122 | if (source == NULL) { |
5123 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:StrPerson.MeasureUnits) |
5124 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
5125 | } else { |
5126 | // @@protoc_insertion_point(generalized_merge_from_cast_success:StrPerson.MeasureUnits) |
5127 | MergeFrom(*source); |
5128 | } |
5129 | } |
5130 | |
5131 | void StrPerson_MeasureUnits::MergeFrom(const StrPerson_MeasureUnits& from) { |
5132 | // @@protoc_insertion_point(class_specific_merge_from_start:StrPerson.MeasureUnits) |
5133 | GOOGLE_DCHECK_NE(&from, this); |
5134 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
5135 | ::google::protobuf::uint32 cached_has_bits = 0; |
5136 | (void) cached_has_bits; |
5137 | |
5138 | unit_.MergeFrom(from.unit_); |
5139 | coef_.MergeFrom(from.coef_); |
5140 | } |
5141 | |
5142 | void StrPerson_MeasureUnits::CopyFrom(const ::google::protobuf::Message& from) { |
5143 | // @@protoc_insertion_point(generalized_copy_from_start:StrPerson.MeasureUnits) |
5144 | if (&from == this) return; |
5145 | Clear(); |
5146 | MergeFrom(from); |
5147 | } |
5148 | |
5149 | void StrPerson_MeasureUnits::CopyFrom(const StrPerson_MeasureUnits& from) { |
5150 | // @@protoc_insertion_point(class_specific_copy_from_start:StrPerson.MeasureUnits) |
5151 | if (&from == this) return; |
5152 | Clear(); |
5153 | MergeFrom(from); |
5154 | } |
5155 | |
5156 | bool StrPerson_MeasureUnits::IsInitialized() const { |
5157 | return true; |
5158 | } |
5159 | |
5160 | void StrPerson_MeasureUnits::Swap(StrPerson_MeasureUnits* other) { |
5161 | if (other == this) return; |
5162 | InternalSwap(other); |
5163 | } |
5164 | void StrPerson_MeasureUnits::InternalSwap(StrPerson_MeasureUnits* other) { |
5165 | using std::swap; |
5166 | unit_.InternalSwap(CastToBase(&other->unit_)); |
5167 | coef_.InternalSwap(CastToBase(&other->coef_)); |
5168 | _internal_metadata_.Swap(&other->_internal_metadata_); |
5169 | } |
5170 | |
5171 | ::google::protobuf::Metadata StrPerson_MeasureUnits::GetMetadata() const { |
5172 | protobuf_00825_5fprotobuf_5fformat_2eproto::protobuf_AssignDescriptorsOnce(); |
5173 | return ::protobuf_00825_5fprotobuf_5fformat_2eproto::file_level_metadata[kIndexInFileMessages]; |
5174 | } |
5175 | |
5176 | |
5177 | // =================================================================== |
5178 | |
5179 | void StrPerson_NestinessA_SubBC::InitAsDefaultInstance() { |
5180 | } |
5181 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
5182 | const int StrPerson_NestinessA_SubBC::kDFieldNumber; |
5183 | const int StrPerson_NestinessA_SubBC::kEFieldNumber; |
5184 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
5185 | |
5186 | StrPerson_NestinessA_SubBC::StrPerson_NestinessA_SubBC() |
5187 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
5188 | ::google::protobuf::internal::InitSCC( |
5189 | &protobuf_00825_5fprotobuf_5fformat_2eproto::scc_info_StrPerson_NestinessA_SubBC.base); |
5190 | SharedCtor(); |
5191 | // @@protoc_insertion_point(constructor:StrPerson.NestinessA.SubBC) |
5192 | } |
5193 | StrPerson_NestinessA_SubBC::StrPerson_NestinessA_SubBC(const StrPerson_NestinessA_SubBC& from) |
5194 | : ::google::protobuf::Message(), |
5195 | _internal_metadata_(NULL), |
5196 | e_(from.e_) { |
5197 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
5198 | d_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5199 | if (from.d().size() > 0) { |
5200 | d_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.d_); |
5201 | } |
5202 | // @@protoc_insertion_point(copy_constructor:StrPerson.NestinessA.SubBC) |
5203 | } |
5204 | |
5205 | void StrPerson_NestinessA_SubBC::SharedCtor() { |
5206 | d_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5207 | } |
5208 | |
5209 | StrPerson_NestinessA_SubBC::~StrPerson_NestinessA_SubBC() { |
5210 | // @@protoc_insertion_point(destructor:StrPerson.NestinessA.SubBC) |
5211 | SharedDtor(); |
5212 | } |
5213 | |
5214 | void StrPerson_NestinessA_SubBC::SharedDtor() { |
5215 | d_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5216 | } |
5217 | |
5218 | void StrPerson_NestinessA_SubBC::SetCachedSize(int size) const { |
5219 | _cached_size_.Set(size); |
5220 | } |
5221 | const ::google::protobuf::Descriptor* StrPerson_NestinessA_SubBC::descriptor() { |
5222 | ::protobuf_00825_5fprotobuf_5fformat_2eproto::protobuf_AssignDescriptorsOnce(); |
5223 | return ::protobuf_00825_5fprotobuf_5fformat_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
5224 | } |
5225 | |
5226 | const StrPerson_NestinessA_SubBC& StrPerson_NestinessA_SubBC::default_instance() { |
5227 | ::google::protobuf::internal::InitSCC(&protobuf_00825_5fprotobuf_5fformat_2eproto::scc_info_StrPerson_NestinessA_SubBC.base); |
5228 | return *internal_default_instance(); |
5229 | } |
5230 | |
5231 | |
5232 | void StrPerson_NestinessA_SubBC::Clear() { |
5233 | // @@protoc_insertion_point(message_clear_start:StrPerson.NestinessA.SubBC) |
5234 | ::google::protobuf::uint32 cached_has_bits = 0; |
5235 | // Prevent compiler warnings about cached_has_bits being unused |
5236 | (void) cached_has_bits; |
5237 | |
5238 | e_.Clear(); |
5239 | d_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5240 | _internal_metadata_.Clear(); |
5241 | } |
5242 | |
5243 | bool StrPerson_NestinessA_SubBC::MergePartialFromCodedStream( |
5244 | ::google::protobuf::io::CodedInputStream* input) { |
5245 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
5246 | ::google::protobuf::uint32 tag; |
5247 | // @@protoc_insertion_point(parse_start:StrPerson.NestinessA.SubBC) |
5248 | for (;;) { |
5249 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
5250 | tag = p.first; |
5251 | if (!p.second) goto handle_unusual; |
5252 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
5253 | // string d = 1; |
5254 | case 1: { |
5255 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5256 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
5257 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
5258 | input, this->mutable_d())); |
5259 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
5260 | this->d().data(), static_cast<int>(this->d().length()), |
5261 | ::google::protobuf::internal::WireFormatLite::PARSE, |
5262 | "StrPerson.NestinessA.SubBC.d" )); |
5263 | } else { |
5264 | goto handle_unusual; |
5265 | } |
5266 | break; |
5267 | } |
5268 | |
5269 | // repeated string e = 2; |
5270 | case 2: { |
5271 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5272 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
5273 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
5274 | input, this->add_e())); |
5275 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
5276 | this->e(this->e_size() - 1).data(), |
5277 | static_cast<int>(this->e(this->e_size() - 1).length()), |
5278 | ::google::protobuf::internal::WireFormatLite::PARSE, |
5279 | "StrPerson.NestinessA.SubBC.e" )); |
5280 | } else { |
5281 | goto handle_unusual; |
5282 | } |
5283 | break; |
5284 | } |
5285 | |
5286 | default: { |
5287 | handle_unusual: |
5288 | if (tag == 0) { |
5289 | goto success; |
5290 | } |
5291 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
5292 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
5293 | break; |
5294 | } |
5295 | } |
5296 | } |
5297 | success: |
5298 | // @@protoc_insertion_point(parse_success:StrPerson.NestinessA.SubBC) |
5299 | return true; |
5300 | failure: |
5301 | // @@protoc_insertion_point(parse_failure:StrPerson.NestinessA.SubBC) |
5302 | return false; |
5303 | #undef DO_ |
5304 | } |
5305 | |
5306 | void StrPerson_NestinessA_SubBC::SerializeWithCachedSizes( |
5307 | ::google::protobuf::io::CodedOutputStream* output) const { |
5308 | // @@protoc_insertion_point(serialize_start:StrPerson.NestinessA.SubBC) |
5309 | ::google::protobuf::uint32 cached_has_bits = 0; |
5310 | (void) cached_has_bits; |
5311 | |
5312 | // string d = 1; |
5313 | if (this->d().size() > 0) { |
5314 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
5315 | this->d().data(), static_cast<int>(this->d().length()), |
5316 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
5317 | "StrPerson.NestinessA.SubBC.d" ); |
5318 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
5319 | 1, this->d(), output); |
5320 | } |
5321 | |
5322 | // repeated string e = 2; |
5323 | for (int i = 0, n = this->e_size(); i < n; i++) { |
5324 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
5325 | this->e(i).data(), static_cast<int>(this->e(i).length()), |
5326 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
5327 | "StrPerson.NestinessA.SubBC.e" ); |
5328 | ::google::protobuf::internal::WireFormatLite::WriteString( |
5329 | 2, this->e(i), output); |
5330 | } |
5331 | |
5332 | if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { |
5333 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
5334 | (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); |
5335 | } |
5336 | // @@protoc_insertion_point(serialize_end:StrPerson.NestinessA.SubBC) |
5337 | } |
5338 | |
5339 | ::google::protobuf::uint8* StrPerson_NestinessA_SubBC::InternalSerializeWithCachedSizesToArray( |
5340 | bool deterministic, ::google::protobuf::uint8* target) const { |
5341 | (void)deterministic; // Unused |
5342 | // @@protoc_insertion_point(serialize_to_array_start:StrPerson.NestinessA.SubBC) |
5343 | ::google::protobuf::uint32 cached_has_bits = 0; |
5344 | (void) cached_has_bits; |
5345 | |
5346 | // string d = 1; |
5347 | if (this->d().size() > 0) { |
5348 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
5349 | this->d().data(), static_cast<int>(this->d().length()), |
5350 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
5351 | "StrPerson.NestinessA.SubBC.d" ); |
5352 | target = |
5353 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
5354 | 1, this->d(), target); |
5355 | } |
5356 | |
5357 | // repeated string e = 2; |
5358 | for (int i = 0, n = this->e_size(); i < n; i++) { |
5359 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
5360 | this->e(i).data(), static_cast<int>(this->e(i).length()), |
5361 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
5362 | "StrPerson.NestinessA.SubBC.e" ); |
5363 | target = ::google::protobuf::internal::WireFormatLite:: |
5364 | WriteStringToArray(2, this->e(i), target); |
5365 | } |
5366 | |
5367 | if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { |
5368 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
5369 | (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); |
5370 | } |
5371 | // @@protoc_insertion_point(serialize_to_array_end:StrPerson.NestinessA.SubBC) |
5372 | return target; |
5373 | } |
5374 | |
5375 | size_t StrPerson_NestinessA_SubBC::ByteSizeLong() const { |
5376 | // @@protoc_insertion_point(message_byte_size_start:StrPerson.NestinessA.SubBC) |
5377 | size_t total_size = 0; |
5378 | |
5379 | if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { |
5380 | total_size += |
5381 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
5382 | (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); |
5383 | } |
5384 | // repeated string e = 2; |
5385 | total_size += 1 * |
5386 | ::google::protobuf::internal::FromIntSize(this->e_size()); |
5387 | for (int i = 0, n = this->e_size(); i < n; i++) { |
5388 | total_size += ::google::protobuf::internal::WireFormatLite::StringSize( |
5389 | this->e(i)); |
5390 | } |
5391 | |
5392 | // string d = 1; |
5393 | if (this->d().size() > 0) { |
5394 | total_size += 1 + |
5395 | ::google::protobuf::internal::WireFormatLite::StringSize( |
5396 | this->d()); |
5397 | } |
5398 | |
5399 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
5400 | SetCachedSize(cached_size); |
5401 | return total_size; |
5402 | } |
5403 | |
5404 | void StrPerson_NestinessA_SubBC::MergeFrom(const ::google::protobuf::Message& from) { |
5405 | // @@protoc_insertion_point(generalized_merge_from_start:StrPerson.NestinessA.SubBC) |
5406 | GOOGLE_DCHECK_NE(&from, this); |
5407 | const StrPerson_NestinessA_SubBC* source = |
5408 | ::google::protobuf::internal::DynamicCastToGenerated<const StrPerson_NestinessA_SubBC>( |
5409 | &from); |
5410 | if (source == NULL) { |
5411 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:StrPerson.NestinessA.SubBC) |
5412 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
5413 | } else { |
5414 | // @@protoc_insertion_point(generalized_merge_from_cast_success:StrPerson.NestinessA.SubBC) |
5415 | MergeFrom(*source); |
5416 | } |
5417 | } |
5418 | |
5419 | void StrPerson_NestinessA_SubBC::MergeFrom(const StrPerson_NestinessA_SubBC& from) { |
5420 | // @@protoc_insertion_point(class_specific_merge_from_start:StrPerson.NestinessA.SubBC) |
5421 | GOOGLE_DCHECK_NE(&from, this); |
5422 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
5423 | ::google::protobuf::uint32 cached_has_bits = 0; |
5424 | (void) cached_has_bits; |
5425 | |
5426 | e_.MergeFrom(from.e_); |
5427 | if (from.d().size() > 0) { |
5428 | |
5429 | d_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.d_); |
5430 | } |
5431 | } |
5432 | |
5433 | void StrPerson_NestinessA_SubBC::CopyFrom(const ::google::protobuf::Message& from) { |
5434 | // @@protoc_insertion_point(generalized_copy_from_start:StrPerson.NestinessA.SubBC) |
5435 | if (&from == this) return; |
5436 | Clear(); |
5437 | MergeFrom(from); |
5438 | } |
5439 | |
5440 | void StrPerson_NestinessA_SubBC::CopyFrom(const StrPerson_NestinessA_SubBC& from) { |
5441 | // @@protoc_insertion_point(class_specific_copy_from_start:StrPerson.NestinessA.SubBC) |
5442 | if (&from == this) return; |
5443 | Clear(); |
5444 | MergeFrom(from); |
5445 | } |
5446 | |
5447 | bool StrPerson_NestinessA_SubBC::IsInitialized() const { |
5448 | return true; |
5449 | } |
5450 | |
5451 | void StrPerson_NestinessA_SubBC::Swap(StrPerson_NestinessA_SubBC* other) { |
5452 | if (other == this) return; |
5453 | InternalSwap(other); |
5454 | } |
5455 | void StrPerson_NestinessA_SubBC::InternalSwap(StrPerson_NestinessA_SubBC* other) { |
5456 | using std::swap; |
5457 | e_.InternalSwap(CastToBase(&other->e_)); |
5458 | d_.Swap(&other->d_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
5459 | GetArenaNoVirtual()); |
5460 | _internal_metadata_.Swap(&other->_internal_metadata_); |
5461 | } |
5462 | |
5463 | ::google::protobuf::Metadata StrPerson_NestinessA_SubBC::GetMetadata() const { |
5464 | protobuf_00825_5fprotobuf_5fformat_2eproto::protobuf_AssignDescriptorsOnce(); |
5465 | return ::protobuf_00825_5fprotobuf_5fformat_2eproto::file_level_metadata[kIndexInFileMessages]; |
5466 | } |
5467 | |
5468 | |
5469 | // =================================================================== |
5470 | |
5471 | void StrPerson_NestinessA::InitAsDefaultInstance() { |
5472 | ::_StrPerson_NestinessA_default_instance_._instance.get_mutable()->b_c_ = const_cast< ::StrPerson_NestinessA_SubBC*>( |
5473 | ::StrPerson_NestinessA_SubBC::internal_default_instance()); |
5474 | } |
5475 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
5476 | const int StrPerson_NestinessA::kBCFieldNumber; |
5477 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
5478 | |
5479 | StrPerson_NestinessA::StrPerson_NestinessA() |
5480 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
5481 | ::google::protobuf::internal::InitSCC( |
5482 | &protobuf_00825_5fprotobuf_5fformat_2eproto::scc_info_StrPerson_NestinessA.base); |
5483 | SharedCtor(); |
5484 | // @@protoc_insertion_point(constructor:StrPerson.NestinessA) |
5485 | } |
5486 | StrPerson_NestinessA::StrPerson_NestinessA(const StrPerson_NestinessA& from) |
5487 | : ::google::protobuf::Message(), |
5488 | _internal_metadata_(NULL) { |
5489 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
5490 | if (from.has_b_c()) { |
5491 | b_c_ = new ::StrPerson_NestinessA_SubBC(*from.b_c_); |
5492 | } else { |
5493 | b_c_ = NULL; |
5494 | } |
5495 | // @@protoc_insertion_point(copy_constructor:StrPerson.NestinessA) |
5496 | } |
5497 | |
5498 | void StrPerson_NestinessA::SharedCtor() { |
5499 | b_c_ = NULL; |
5500 | } |
5501 | |
5502 | StrPerson_NestinessA::~StrPerson_NestinessA() { |
5503 | // @@protoc_insertion_point(destructor:StrPerson.NestinessA) |
5504 | SharedDtor(); |
5505 | } |
5506 | |
5507 | void StrPerson_NestinessA::SharedDtor() { |
5508 | if (this != internal_default_instance()) delete b_c_; |
5509 | } |
5510 | |
5511 | void StrPerson_NestinessA::SetCachedSize(int size) const { |
5512 | _cached_size_.Set(size); |
5513 | } |
5514 | const ::google::protobuf::Descriptor* StrPerson_NestinessA::descriptor() { |
5515 | ::protobuf_00825_5fprotobuf_5fformat_2eproto::protobuf_AssignDescriptorsOnce(); |
5516 | return ::protobuf_00825_5fprotobuf_5fformat_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
5517 | } |
5518 | |
5519 | const StrPerson_NestinessA& StrPerson_NestinessA::default_instance() { |
5520 | ::google::protobuf::internal::InitSCC(&protobuf_00825_5fprotobuf_5fformat_2eproto::scc_info_StrPerson_NestinessA.base); |
5521 | return *internal_default_instance(); |
5522 | } |
5523 | |
5524 | |
5525 | void StrPerson_NestinessA::Clear() { |
5526 | // @@protoc_insertion_point(message_clear_start:StrPerson.NestinessA) |
5527 | ::google::protobuf::uint32 cached_has_bits = 0; |
5528 | // Prevent compiler warnings about cached_has_bits being unused |
5529 | (void) cached_has_bits; |
5530 | |
5531 | if (GetArenaNoVirtual() == NULL && b_c_ != NULL) { |
5532 | delete b_c_; |
5533 | } |
5534 | b_c_ = NULL; |
5535 | _internal_metadata_.Clear(); |
5536 | } |
5537 | |
5538 | bool StrPerson_NestinessA::MergePartialFromCodedStream( |
5539 | ::google::protobuf::io::CodedInputStream* input) { |
5540 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
5541 | ::google::protobuf::uint32 tag; |
5542 | // @@protoc_insertion_point(parse_start:StrPerson.NestinessA) |
5543 | for (;;) { |
5544 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
5545 | tag = p.first; |
5546 | if (!p.second) goto handle_unusual; |
5547 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
5548 | // .StrPerson.NestinessA.SubBC b_c = 1; |
5549 | case 1: { |
5550 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5551 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
5552 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
5553 | input, mutable_b_c())); |
5554 | } else { |
5555 | goto handle_unusual; |
5556 | } |
5557 | break; |
5558 | } |
5559 | |
5560 | default: { |
5561 | handle_unusual: |
5562 | if (tag == 0) { |
5563 | goto success; |
5564 | } |
5565 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
5566 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
5567 | break; |
5568 | } |
5569 | } |
5570 | } |
5571 | success: |
5572 | // @@protoc_insertion_point(parse_success:StrPerson.NestinessA) |
5573 | return true; |
5574 | failure: |
5575 | // @@protoc_insertion_point(parse_failure:StrPerson.NestinessA) |
5576 | return false; |
5577 | #undef DO_ |
5578 | } |
5579 | |
5580 | void StrPerson_NestinessA::SerializeWithCachedSizes( |
5581 | ::google::protobuf::io::CodedOutputStream* output) const { |
5582 | // @@protoc_insertion_point(serialize_start:StrPerson.NestinessA) |
5583 | ::google::protobuf::uint32 cached_has_bits = 0; |
5584 | (void) cached_has_bits; |
5585 | |
5586 | // .StrPerson.NestinessA.SubBC b_c = 1; |
5587 | if (this->has_b_c()) { |
5588 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
5589 | 1, this->_internal_b_c(), output); |
5590 | } |
5591 | |
5592 | if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { |
5593 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
5594 | (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); |
5595 | } |
5596 | // @@protoc_insertion_point(serialize_end:StrPerson.NestinessA) |
5597 | } |
5598 | |
5599 | ::google::protobuf::uint8* StrPerson_NestinessA::InternalSerializeWithCachedSizesToArray( |
5600 | bool deterministic, ::google::protobuf::uint8* target) const { |
5601 | (void)deterministic; // Unused |
5602 | // @@protoc_insertion_point(serialize_to_array_start:StrPerson.NestinessA) |
5603 | ::google::protobuf::uint32 cached_has_bits = 0; |
5604 | (void) cached_has_bits; |
5605 | |
5606 | // .StrPerson.NestinessA.SubBC b_c = 1; |
5607 | if (this->has_b_c()) { |
5608 | target = ::google::protobuf::internal::WireFormatLite:: |
5609 | InternalWriteMessageToArray( |
5610 | 1, this->_internal_b_c(), deterministic, target); |
5611 | } |
5612 | |
5613 | if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { |
5614 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
5615 | (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); |
5616 | } |
5617 | // @@protoc_insertion_point(serialize_to_array_end:StrPerson.NestinessA) |
5618 | return target; |
5619 | } |
5620 | |
5621 | size_t StrPerson_NestinessA::ByteSizeLong() const { |
5622 | // @@protoc_insertion_point(message_byte_size_start:StrPerson.NestinessA) |
5623 | size_t total_size = 0; |
5624 | |
5625 | if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { |
5626 | total_size += |
5627 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
5628 | (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); |
5629 | } |
5630 | // .StrPerson.NestinessA.SubBC b_c = 1; |
5631 | if (this->has_b_c()) { |
5632 | total_size += 1 + |
5633 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
5634 | *b_c_); |
5635 | } |
5636 | |
5637 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
5638 | SetCachedSize(cached_size); |
5639 | return total_size; |
5640 | } |
5641 | |
5642 | void StrPerson_NestinessA::MergeFrom(const ::google::protobuf::Message& from) { |
5643 | // @@protoc_insertion_point(generalized_merge_from_start:StrPerson.NestinessA) |
5644 | GOOGLE_DCHECK_NE(&from, this); |
5645 | const StrPerson_NestinessA* source = |
5646 | ::google::protobuf::internal::DynamicCastToGenerated<const StrPerson_NestinessA>( |
5647 | &from); |
5648 | if (source == NULL) { |
5649 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:StrPerson.NestinessA) |
5650 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
5651 | } else { |
5652 | // @@protoc_insertion_point(generalized_merge_from_cast_success:StrPerson.NestinessA) |
5653 | MergeFrom(*source); |
5654 | } |
5655 | } |
5656 | |
5657 | void StrPerson_NestinessA::MergeFrom(const StrPerson_NestinessA& from) { |
5658 | // @@protoc_insertion_point(class_specific_merge_from_start:StrPerson.NestinessA) |
5659 | GOOGLE_DCHECK_NE(&from, this); |
5660 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
5661 | ::google::protobuf::uint32 cached_has_bits = 0; |
5662 | (void) cached_has_bits; |
5663 | |
5664 | if (from.has_b_c()) { |
5665 | mutable_b_c()->::StrPerson_NestinessA_SubBC::MergeFrom(from.b_c()); |
5666 | } |
5667 | } |
5668 | |
5669 | void StrPerson_NestinessA::CopyFrom(const ::google::protobuf::Message& from) { |
5670 | // @@protoc_insertion_point(generalized_copy_from_start:StrPerson.NestinessA) |
5671 | if (&from == this) return; |
5672 | Clear(); |
5673 | MergeFrom(from); |
5674 | } |
5675 | |
5676 | void StrPerson_NestinessA::CopyFrom(const StrPerson_NestinessA& from) { |
5677 | // @@protoc_insertion_point(class_specific_copy_from_start:StrPerson.NestinessA) |
5678 | if (&from == this) return; |
5679 | Clear(); |
5680 | MergeFrom(from); |
5681 | } |
5682 | |
5683 | bool StrPerson_NestinessA::IsInitialized() const { |
5684 | return true; |
5685 | } |
5686 | |
5687 | void StrPerson_NestinessA::Swap(StrPerson_NestinessA* other) { |
5688 | if (other == this) return; |
5689 | InternalSwap(other); |
5690 | } |
5691 | void StrPerson_NestinessA::InternalSwap(StrPerson_NestinessA* other) { |
5692 | using std::swap; |
5693 | swap(b_c_, other->b_c_); |
5694 | _internal_metadata_.Swap(&other->_internal_metadata_); |
5695 | } |
5696 | |
5697 | ::google::protobuf::Metadata StrPerson_NestinessA::GetMetadata() const { |
5698 | protobuf_00825_5fprotobuf_5fformat_2eproto::protobuf_AssignDescriptorsOnce(); |
5699 | return ::protobuf_00825_5fprotobuf_5fformat_2eproto::file_level_metadata[kIndexInFileMessages]; |
5700 | } |
5701 | |
5702 | |
5703 | // =================================================================== |
5704 | |
5705 | void StrPerson::InitAsDefaultInstance() { |
5706 | ::_StrPerson_default_instance_._instance.get_mutable()->measureunits_ = const_cast< ::StrPerson_MeasureUnits*>( |
5707 | ::StrPerson_MeasureUnits::internal_default_instance()); |
5708 | ::_StrPerson_default_instance_._instance.get_mutable()->nestiness_a_ = const_cast< ::StrPerson_NestinessA*>( |
5709 | ::StrPerson_NestinessA::internal_default_instance()); |
5710 | } |
5711 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
5712 | const int StrPerson::kUuidFieldNumber; |
5713 | const int StrPerson::kNameFieldNumber; |
5714 | const int StrPerson::kSurnameFieldNumber; |
5715 | const int StrPerson::kGenderFieldNumber; |
5716 | const int StrPerson::kBirthDateFieldNumber; |
5717 | const int StrPerson::kPhoneNumberFieldNumber; |
5718 | const int StrPerson::kIsOnlineFieldNumber; |
5719 | const int StrPerson::kVisitTimeFieldNumber; |
5720 | const int StrPerson::kAgeFieldNumber; |
5721 | const int StrPerson::kZodiacSignFieldNumber; |
5722 | const int StrPerson::kSongsFieldNumber; |
5723 | const int StrPerson::kColorFieldNumber; |
5724 | const int StrPerson::kHometownFieldNumber; |
5725 | const int StrPerson::kLocationFieldNumber; |
5726 | const int StrPerson::kPiFieldNumber; |
5727 | const int StrPerson::kLotteryWinFieldNumber; |
5728 | const int StrPerson::kSomeRatioFieldNumber; |
5729 | const int StrPerson::kTemperatureFieldNumber; |
5730 | const int StrPerson::kRandomBigNumberFieldNumber; |
5731 | const int StrPerson::kMeasureUnitsFieldNumber; |
5732 | const int StrPerson::kNestinessAFieldNumber; |
5733 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
5734 | |
5735 | StrPerson::StrPerson() |
5736 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
5737 | ::google::protobuf::internal::InitSCC( |
5738 | &protobuf_00825_5fprotobuf_5fformat_2eproto::scc_info_StrPerson.base); |
5739 | SharedCtor(); |
5740 | // @@protoc_insertion_point(constructor:StrPerson) |
5741 | } |
5742 | StrPerson::StrPerson(const StrPerson& from) |
5743 | : ::google::protobuf::Message(), |
5744 | _internal_metadata_(NULL), |
5745 | songs_(from.songs_), |
5746 | color_(from.color_), |
5747 | location_(from.location_) { |
5748 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
5749 | uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5750 | if (from.uuid().size() > 0) { |
5751 | uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.uuid_); |
5752 | } |
5753 | name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5754 | if (from.name().size() > 0) { |
5755 | name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
5756 | } |
5757 | surname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5758 | if (from.surname().size() > 0) { |
5759 | surname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.surname_); |
5760 | } |
5761 | gender_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5762 | if (from.gender().size() > 0) { |
5763 | gender_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.gender_); |
5764 | } |
5765 | birthdate_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5766 | if (from.birthdate().size() > 0) { |
5767 | birthdate_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.birthdate_); |
5768 | } |
5769 | phonenumber_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5770 | if (from.phonenumber().size() > 0) { |
5771 | phonenumber_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.phonenumber_); |
5772 | } |
5773 | isonline_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5774 | if (from.isonline().size() > 0) { |
5775 | isonline_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.isonline_); |
5776 | } |
5777 | visittime_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5778 | if (from.visittime().size() > 0) { |
5779 | visittime_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.visittime_); |
5780 | } |
5781 | age_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5782 | if (from.age().size() > 0) { |
5783 | age_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.age_); |
5784 | } |
5785 | zodiacsign_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5786 | if (from.zodiacsign().size() > 0) { |
5787 | zodiacsign_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.zodiacsign_); |
5788 | } |
5789 | hometown_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5790 | if (from.hometown().size() > 0) { |
5791 | hometown_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.hometown_); |
5792 | } |
5793 | pi_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5794 | if (from.pi().size() > 0) { |
5795 | pi_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.pi_); |
5796 | } |
5797 | lotterywin_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5798 | if (from.lotterywin().size() > 0) { |
5799 | lotterywin_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.lotterywin_); |
5800 | } |
5801 | someratio_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5802 | if (from.someratio().size() > 0) { |
5803 | someratio_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.someratio_); |
5804 | } |
5805 | temperature_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5806 | if (from.temperature().size() > 0) { |
5807 | temperature_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.temperature_); |
5808 | } |
5809 | randombignumber_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5810 | if (from.randombignumber().size() > 0) { |
5811 | randombignumber_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.randombignumber_); |
5812 | } |
5813 | if (from.has_measureunits()) { |
5814 | measureunits_ = new ::StrPerson_MeasureUnits(*from.measureunits_); |
5815 | } else { |
5816 | measureunits_ = NULL; |
5817 | } |
5818 | if (from.has_nestiness_a()) { |
5819 | nestiness_a_ = new ::StrPerson_NestinessA(*from.nestiness_a_); |
5820 | } else { |
5821 | nestiness_a_ = NULL; |
5822 | } |
5823 | // @@protoc_insertion_point(copy_constructor:StrPerson) |
5824 | } |
5825 | |
5826 | void StrPerson::SharedCtor() { |
5827 | uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5828 | name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5829 | surname_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5830 | gender_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5831 | birthdate_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5832 | phonenumber_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5833 | isonline_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5834 | visittime_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5835 | age_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5836 | zodiacsign_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5837 | hometown_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5838 | pi_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5839 | lotterywin_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5840 | someratio_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5841 | temperature_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5842 | randombignumber_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5843 | ::memset(&measureunits_, 0, static_cast<size_t>( |
5844 | reinterpret_cast<char*>(&nestiness_a_) - |
5845 | reinterpret_cast<char*>(&measureunits_)) + sizeof(nestiness_a_)); |
5846 | } |
5847 | |
5848 | StrPerson::~StrPerson() { |
5849 | // @@protoc_insertion_point(destructor:StrPerson) |
5850 | SharedDtor(); |
5851 | } |
5852 | |
5853 | void StrPerson::SharedDtor() { |
5854 | uuid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5855 | name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5856 | surname_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5857 | gender_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5858 | birthdate_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5859 | phonenumber_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5860 | isonline_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5861 | visittime_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5862 | age_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5863 | zodiacsign_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5864 | hometown_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5865 | pi_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5866 | lotterywin_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5867 | someratio_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5868 | temperature_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5869 | randombignumber_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5870 | if (this != internal_default_instance()) delete measureunits_; |
5871 | if (this != internal_default_instance()) delete nestiness_a_; |
5872 | } |
5873 | |
5874 | void StrPerson::SetCachedSize(int size) const { |
5875 | _cached_size_.Set(size); |
5876 | } |
5877 | const ::google::protobuf::Descriptor* StrPerson::descriptor() { |
5878 | ::protobuf_00825_5fprotobuf_5fformat_2eproto::protobuf_AssignDescriptorsOnce(); |
5879 | return ::protobuf_00825_5fprotobuf_5fformat_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
5880 | } |
5881 | |
5882 | const StrPerson& StrPerson::default_instance() { |
5883 | ::google::protobuf::internal::InitSCC(&protobuf_00825_5fprotobuf_5fformat_2eproto::scc_info_StrPerson.base); |
5884 | return *internal_default_instance(); |
5885 | } |
5886 | |
5887 | |
5888 | void StrPerson::Clear() { |
5889 | // @@protoc_insertion_point(message_clear_start:StrPerson) |
5890 | ::google::protobuf::uint32 cached_has_bits = 0; |
5891 | // Prevent compiler warnings about cached_has_bits being unused |
5892 | (void) cached_has_bits; |
5893 | |
5894 | songs_.Clear(); |
5895 | color_.Clear(); |
5896 | location_.Clear(); |
5897 | uuid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5898 | name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5899 | surname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5900 | gender_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5901 | birthdate_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5902 | phonenumber_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5903 | isonline_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5904 | visittime_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5905 | age_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5906 | zodiacsign_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5907 | hometown_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5908 | pi_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5909 | lotterywin_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5910 | someratio_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5911 | temperature_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5912 | randombignumber_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
5913 | if (GetArenaNoVirtual() == NULL && measureunits_ != NULL) { |
5914 | delete measureunits_; |
5915 | } |
5916 | measureunits_ = NULL; |
5917 | if (GetArenaNoVirtual() == NULL && nestiness_a_ != NULL) { |
5918 | delete nestiness_a_; |
5919 | } |
5920 | nestiness_a_ = NULL; |
5921 | _internal_metadata_.Clear(); |
5922 | } |
5923 | |
5924 | bool StrPerson::MergePartialFromCodedStream( |
5925 | ::google::protobuf::io::CodedInputStream* input) { |
5926 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
5927 | ::google::protobuf::uint32 tag; |
5928 | // @@protoc_insertion_point(parse_start:StrPerson) |
5929 | for (;;) { |
5930 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); |
5931 | tag = p.first; |
5932 | if (!p.second) goto handle_unusual; |
5933 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
5934 | // string uuid = 1; |
5935 | case 1: { |
5936 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5937 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
5938 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
5939 | input, this->mutable_uuid())); |
5940 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
5941 | this->uuid().data(), static_cast<int>(this->uuid().length()), |
5942 | ::google::protobuf::internal::WireFormatLite::PARSE, |
5943 | "StrPerson.uuid" )); |
5944 | } else { |
5945 | goto handle_unusual; |
5946 | } |
5947 | break; |
5948 | } |
5949 | |
5950 | // string name = 2; |
5951 | case 2: { |
5952 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5953 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
5954 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
5955 | input, this->mutable_name())); |
5956 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
5957 | this->name().data(), static_cast<int>(this->name().length()), |
5958 | ::google::protobuf::internal::WireFormatLite::PARSE, |
5959 | "StrPerson.name" )); |
5960 | } else { |
5961 | goto handle_unusual; |
5962 | } |
5963 | break; |
5964 | } |
5965 | |
5966 | // string surname = 3; |
5967 | case 3: { |
5968 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5969 | static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) { |
5970 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
5971 | input, this->mutable_surname())); |
5972 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
5973 | this->surname().data(), static_cast<int>(this->surname().length()), |
5974 | ::google::protobuf::internal::WireFormatLite::PARSE, |
5975 | "StrPerson.surname" )); |
5976 | } else { |
5977 | goto handle_unusual; |
5978 | } |
5979 | break; |
5980 | } |
5981 | |
5982 | // string gender = 4; |
5983 | case 4: { |
5984 | if (static_cast< ::google::protobuf::uint8>(tag) == |
5985 | static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) { |
5986 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
5987 | input, this->mutable_gender())); |
5988 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
5989 | this->gender().data(), static_cast<int>(this->gender().length()), |
5990 | ::google::protobuf::internal::WireFormatLite::PARSE, |
5991 | "StrPerson.gender" )); |
5992 | } else { |
5993 | goto handle_unusual; |
5994 | } |
5995 | break; |
5996 | } |
5997 | |
5998 | // string birthDate = 5; |
5999 | case 5: { |
6000 | if (static_cast< ::google::protobuf::uint8>(tag) == |
6001 | static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) { |
6002 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
6003 | input, this->mutable_birthdate())); |
6004 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
6005 | this->birthdate().data(), static_cast<int>(this->birthdate().length()), |
6006 | ::google::protobuf::internal::WireFormatLite::PARSE, |
6007 | "StrPerson.birthDate" )); |
6008 | } else { |
6009 | goto handle_unusual; |
6010 | } |
6011 | break; |
6012 | } |
6013 | |
6014 | // string phoneNumber = 7; |
6015 | case 7: { |
6016 | if (static_cast< ::google::protobuf::uint8>(tag) == |
6017 | static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) { |
6018 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
6019 | input, this->mutable_phonenumber())); |
6020 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
6021 | this->phonenumber().data(), static_cast<int>(this->phonenumber().length()), |
6022 | ::google::protobuf::internal::WireFormatLite::PARSE, |
6023 | "StrPerson.phoneNumber" )); |
6024 | } else { |
6025 | goto handle_unusual; |
6026 | } |
6027 | break; |
6028 | } |
6029 | |
6030 | // string isOnline = 8; |
6031 | case 8: { |
6032 | if (static_cast< ::google::protobuf::uint8>(tag) == |
6033 | static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) { |
6034 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
6035 | input, this->mutable_isonline())); |
6036 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
6037 | this->isonline().data(), static_cast<int>(this->isonline().length()), |
6038 | ::google::protobuf::internal::WireFormatLite::PARSE, |
6039 | "StrPerson.isOnline" )); |
6040 | } else { |
6041 | goto handle_unusual; |
6042 | } |
6043 | break; |
6044 | } |
6045 | |
6046 | // string visitTime = 9; |
6047 | case 9: { |
6048 | if (static_cast< ::google::protobuf::uint8>(tag) == |
6049 | static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) { |
6050 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
6051 | input, this->mutable_visittime())); |
6052 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
6053 | this->visittime().data(), static_cast<int>(this->visittime().length()), |
6054 | ::google::protobuf::internal::WireFormatLite::PARSE, |
6055 | "StrPerson.visitTime" )); |
6056 | } else { |
6057 | goto handle_unusual; |
6058 | } |
6059 | break; |
6060 | } |
6061 | |
6062 | // string age = 10; |
6063 | case 10: { |
6064 | if (static_cast< ::google::protobuf::uint8>(tag) == |
6065 | static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) { |
6066 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
6067 | input, this->mutable_age())); |
6068 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
6069 | this->age().data(), static_cast<int>(this->age().length()), |
6070 | ::google::protobuf::internal::WireFormatLite::PARSE, |
6071 | "StrPerson.age" )); |
6072 | } else { |
6073 | goto handle_unusual; |
6074 | } |
6075 | break; |
6076 | } |
6077 | |
6078 | // string zodiacSign = 11; |
6079 | case 11: { |
6080 | if (static_cast< ::google::protobuf::uint8>(tag) == |
6081 | static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) { |
6082 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
6083 | input, this->mutable_zodiacsign())); |
6084 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
6085 | this->zodiacsign().data(), static_cast<int>(this->zodiacsign().length()), |
6086 | ::google::protobuf::internal::WireFormatLite::PARSE, |
6087 | "StrPerson.zodiacSign" )); |
6088 | } else { |
6089 | goto handle_unusual; |
6090 | } |
6091 | break; |
6092 | } |
6093 | |
6094 | // repeated string songs = 12; |
6095 | case 12: { |
6096 | if (static_cast< ::google::protobuf::uint8>(tag) == |
6097 | static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) { |
6098 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
6099 | input, this->add_songs())); |
6100 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
6101 | this->songs(this->songs_size() - 1).data(), |
6102 | static_cast<int>(this->songs(this->songs_size() - 1).length()), |
6103 | ::google::protobuf::internal::WireFormatLite::PARSE, |
6104 | "StrPerson.songs" )); |
6105 | } else { |
6106 | goto handle_unusual; |
6107 | } |
6108 | break; |
6109 | } |
6110 | |
6111 | // repeated string color = 13; |
6112 | case 13: { |
6113 | if (static_cast< ::google::protobuf::uint8>(tag) == |
6114 | static_cast< ::google::protobuf::uint8>(106u /* 106 & 0xFF */)) { |
6115 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
6116 | input, this->add_color())); |
6117 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
6118 | this->color(this->color_size() - 1).data(), |
6119 | static_cast<int>(this->color(this->color_size() - 1).length()), |
6120 | ::google::protobuf::internal::WireFormatLite::PARSE, |
6121 | "StrPerson.color" )); |
6122 | } else { |
6123 | goto handle_unusual; |
6124 | } |
6125 | break; |
6126 | } |
6127 | |
6128 | // string hometown = 14; |
6129 | case 14: { |
6130 | if (static_cast< ::google::protobuf::uint8>(tag) == |
6131 | static_cast< ::google::protobuf::uint8>(114u /* 114 & 0xFF */)) { |
6132 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
6133 | input, this->mutable_hometown())); |
6134 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
6135 | this->hometown().data(), static_cast<int>(this->hometown().length()), |
6136 | ::google::protobuf::internal::WireFormatLite::PARSE, |
6137 | "StrPerson.hometown" )); |
6138 | } else { |
6139 | goto handle_unusual; |
6140 | } |
6141 | break; |
6142 | } |
6143 | |
6144 | // repeated string location = 15; |
6145 | case 15: { |
6146 | if (static_cast< ::google::protobuf::uint8>(tag) == |
6147 | static_cast< ::google::protobuf::uint8>(122u /* 122 & 0xFF */)) { |
6148 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
6149 | input, this->add_location())); |
6150 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
6151 | this->location(this->location_size() - 1).data(), |
6152 | static_cast<int>(this->location(this->location_size() - 1).length()), |
6153 | ::google::protobuf::internal::WireFormatLite::PARSE, |
6154 | "StrPerson.location" )); |
6155 | } else { |
6156 | goto handle_unusual; |
6157 | } |
6158 | break; |
6159 | } |
6160 | |
6161 | // string pi = 16; |
6162 | case 16: { |
6163 | if (static_cast< ::google::protobuf::uint8>(tag) == |
6164 | static_cast< ::google::protobuf::uint8>(130u /* 130 & 0xFF */)) { |
6165 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
6166 | input, this->mutable_pi())); |
6167 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
6168 | this->pi().data(), static_cast<int>(this->pi().length()), |
6169 | ::google::protobuf::internal::WireFormatLite::PARSE, |
6170 | "StrPerson.pi" )); |
6171 | } else { |
6172 | goto handle_unusual; |
6173 | } |
6174 | break; |
6175 | } |
6176 | |
6177 | // string lotteryWin = 17; |
6178 | case 17: { |
6179 | if (static_cast< ::google::protobuf::uint8>(tag) == |
6180 | static_cast< ::google::protobuf::uint8>(138u /* 138 & 0xFF */)) { |
6181 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
6182 | input, this->mutable_lotterywin())); |
6183 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
6184 | this->lotterywin().data(), static_cast<int>(this->lotterywin().length()), |
6185 | ::google::protobuf::internal::WireFormatLite::PARSE, |
6186 | "StrPerson.lotteryWin" )); |
6187 | } else { |
6188 | goto handle_unusual; |
6189 | } |
6190 | break; |
6191 | } |
6192 | |
6193 | // string someRatio = 18; |
6194 | case 18: { |
6195 | if (static_cast< ::google::protobuf::uint8>(tag) == |
6196 | static_cast< ::google::protobuf::uint8>(146u /* 146 & 0xFF */)) { |
6197 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
6198 | input, this->mutable_someratio())); |
6199 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
6200 | this->someratio().data(), static_cast<int>(this->someratio().length()), |
6201 | ::google::protobuf::internal::WireFormatLite::PARSE, |
6202 | "StrPerson.someRatio" )); |
6203 | } else { |
6204 | goto handle_unusual; |
6205 | } |
6206 | break; |
6207 | } |
6208 | |
6209 | // string temperature = 19; |
6210 | case 19: { |
6211 | if (static_cast< ::google::protobuf::uint8>(tag) == |
6212 | static_cast< ::google::protobuf::uint8>(154u /* 154 & 0xFF */)) { |
6213 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
6214 | input, this->mutable_temperature())); |
6215 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
6216 | this->temperature().data(), static_cast<int>(this->temperature().length()), |
6217 | ::google::protobuf::internal::WireFormatLite::PARSE, |
6218 | "StrPerson.temperature" )); |
6219 | } else { |
6220 | goto handle_unusual; |
6221 | } |
6222 | break; |
6223 | } |
6224 | |
6225 | // string randomBigNumber = 20; |
6226 | case 20: { |
6227 | if (static_cast< ::google::protobuf::uint8>(tag) == |
6228 | static_cast< ::google::protobuf::uint8>(162u /* 162 & 0xFF */)) { |
6229 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
6230 | input, this->mutable_randombignumber())); |
6231 | DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
6232 | this->randombignumber().data(), static_cast<int>(this->randombignumber().length()), |
6233 | ::google::protobuf::internal::WireFormatLite::PARSE, |
6234 | "StrPerson.randomBigNumber" )); |
6235 | } else { |
6236 | goto handle_unusual; |
6237 | } |
6238 | break; |
6239 | } |
6240 | |
6241 | // .StrPerson.MeasureUnits measureUnits = 21; |
6242 | case 21: { |
6243 | if (static_cast< ::google::protobuf::uint8>(tag) == |
6244 | static_cast< ::google::protobuf::uint8>(170u /* 170 & 0xFF */)) { |
6245 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
6246 | input, mutable_measureunits())); |
6247 | } else { |
6248 | goto handle_unusual; |
6249 | } |
6250 | break; |
6251 | } |
6252 | |
6253 | // .StrPerson.NestinessA nestiness_a = 22; |
6254 | case 22: { |
6255 | if (static_cast< ::google::protobuf::uint8>(tag) == |
6256 | static_cast< ::google::protobuf::uint8>(178u /* 178 & 0xFF */)) { |
6257 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
6258 | input, mutable_nestiness_a())); |
6259 | } else { |
6260 | goto handle_unusual; |
6261 | } |
6262 | break; |
6263 | } |
6264 | |
6265 | default: { |
6266 | handle_unusual: |
6267 | if (tag == 0) { |
6268 | goto success; |
6269 | } |
6270 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
6271 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
6272 | break; |
6273 | } |
6274 | } |
6275 | } |
6276 | success: |
6277 | // @@protoc_insertion_point(parse_success:StrPerson) |
6278 | return true; |
6279 | failure: |
6280 | // @@protoc_insertion_point(parse_failure:StrPerson) |
6281 | return false; |
6282 | #undef DO_ |
6283 | } |
6284 | |
6285 | void StrPerson::SerializeWithCachedSizes( |
6286 | ::google::protobuf::io::CodedOutputStream* output) const { |
6287 | // @@protoc_insertion_point(serialize_start:StrPerson) |
6288 | ::google::protobuf::uint32 cached_has_bits = 0; |
6289 | (void) cached_has_bits; |
6290 | |
6291 | // string uuid = 1; |
6292 | if (this->uuid().size() > 0) { |
6293 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
6294 | this->uuid().data(), static_cast<int>(this->uuid().length()), |
6295 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
6296 | "StrPerson.uuid" ); |
6297 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
6298 | 1, this->uuid(), output); |
6299 | } |
6300 | |
6301 | // string name = 2; |
6302 | if (this->name().size() > 0) { |
6303 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
6304 | this->name().data(), static_cast<int>(this->name().length()), |
6305 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
6306 | "StrPerson.name" ); |
6307 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
6308 | 2, this->name(), output); |
6309 | } |
6310 | |
6311 | // string surname = 3; |
6312 | if (this->surname().size() > 0) { |
6313 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
6314 | this->surname().data(), static_cast<int>(this->surname().length()), |
6315 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
6316 | "StrPerson.surname" ); |
6317 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
6318 | 3, this->surname(), output); |
6319 | } |
6320 | |
6321 | // string gender = 4; |
6322 | if (this->gender().size() > 0) { |
6323 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
6324 | this->gender().data(), static_cast<int>(this->gender().length()), |
6325 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
6326 | "StrPerson.gender" ); |
6327 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
6328 | 4, this->gender(), output); |
6329 | } |
6330 | |
6331 | // string birthDate = 5; |
6332 | if (this->birthdate().size() > 0) { |
6333 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
6334 | this->birthdate().data(), static_cast<int>(this->birthdate().length()), |
6335 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
6336 | "StrPerson.birthDate" ); |
6337 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
6338 | 5, this->birthdate(), output); |
6339 | } |
6340 | |
6341 | // string phoneNumber = 7; |
6342 | if (this->phonenumber().size() > 0) { |
6343 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
6344 | this->phonenumber().data(), static_cast<int>(this->phonenumber().length()), |
6345 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
6346 | "StrPerson.phoneNumber" ); |
6347 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
6348 | 7, this->phonenumber(), output); |
6349 | } |
6350 | |
6351 | // string isOnline = 8; |
6352 | if (this->isonline().size() > 0) { |
6353 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
6354 | this->isonline().data(), static_cast<int>(this->isonline().length()), |
6355 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
6356 | "StrPerson.isOnline" ); |
6357 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
6358 | 8, this->isonline(), output); |
6359 | } |
6360 | |
6361 | // string visitTime = 9; |
6362 | if (this->visittime().size() > 0) { |
6363 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
6364 | this->visittime().data(), static_cast<int>(this->visittime().length()), |
6365 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
6366 | "StrPerson.visitTime" ); |
6367 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
6368 | 9, this->visittime(), output); |
6369 | } |
6370 | |
6371 | // string age = 10; |
6372 | if (this->age().size() > 0) { |
6373 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
6374 | this->age().data(), static_cast<int>(this->age().length()), |
6375 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
6376 | "StrPerson.age" ); |
6377 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
6378 | 10, this->age(), output); |
6379 | } |
6380 | |
6381 | // string zodiacSign = 11; |
6382 | if (this->zodiacsign().size() > 0) { |
6383 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
6384 | this->zodiacsign().data(), static_cast<int>(this->zodiacsign().length()), |
6385 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
6386 | "StrPerson.zodiacSign" ); |
6387 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
6388 | 11, this->zodiacsign(), output); |
6389 | } |
6390 | |
6391 | // repeated string songs = 12; |
6392 | for (int i = 0, n = this->songs_size(); i < n; i++) { |
6393 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
6394 | this->songs(i).data(), static_cast<int>(this->songs(i).length()), |
6395 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
6396 | "StrPerson.songs" ); |
6397 | ::google::protobuf::internal::WireFormatLite::WriteString( |
6398 | 12, this->songs(i), output); |
6399 | } |
6400 | |
6401 | // repeated string color = 13; |
6402 | for (int i = 0, n = this->color_size(); i < n; i++) { |
6403 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
6404 | this->color(i).data(), static_cast<int>(this->color(i).length()), |
6405 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
6406 | "StrPerson.color" ); |
6407 | ::google::protobuf::internal::WireFormatLite::WriteString( |
6408 | 13, this->color(i), output); |
6409 | } |
6410 | |
6411 | // string hometown = 14; |
6412 | if (this->hometown().size() > 0) { |
6413 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
6414 | this->hometown().data(), static_cast<int>(this->hometown().length()), |
6415 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
6416 | "StrPerson.hometown" ); |
6417 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
6418 | 14, this->hometown(), output); |
6419 | } |
6420 | |
6421 | // repeated string location = 15; |
6422 | for (int i = 0, n = this->location_size(); i < n; i++) { |
6423 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
6424 | this->location(i).data(), static_cast<int>(this->location(i).length()), |
6425 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
6426 | "StrPerson.location" ); |
6427 | ::google::protobuf::internal::WireFormatLite::WriteString( |
6428 | 15, this->location(i), output); |
6429 | } |
6430 | |
6431 | // string pi = 16; |
6432 | if (this->pi().size() > 0) { |
6433 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
6434 | this->pi().data(), static_cast<int>(this->pi().length()), |
6435 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
6436 | "StrPerson.pi" ); |
6437 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
6438 | 16, this->pi(), output); |
6439 | } |
6440 | |
6441 | // string lotteryWin = 17; |
6442 | if (this->lotterywin().size() > 0) { |
6443 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
6444 | this->lotterywin().data(), static_cast<int>(this->lotterywin().length()), |
6445 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
6446 | "StrPerson.lotteryWin" ); |
6447 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
6448 | 17, this->lotterywin(), output); |
6449 | } |
6450 | |
6451 | // string someRatio = 18; |
6452 | if (this->someratio().size() > 0) { |
6453 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
6454 | this->someratio().data(), static_cast<int>(this->someratio().length()), |
6455 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
6456 | "StrPerson.someRatio" ); |
6457 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
6458 | 18, this->someratio(), output); |
6459 | } |
6460 | |
6461 | // string temperature = 19; |
6462 | if (this->temperature().size() > 0) { |
6463 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
6464 | this->temperature().data(), static_cast<int>(this->temperature().length()), |
6465 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
6466 | "StrPerson.temperature" ); |
6467 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
6468 | 19, this->temperature(), output); |
6469 | } |
6470 | |
6471 | // string randomBigNumber = 20; |
6472 | if (this->randombignumber().size() > 0) { |
6473 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
6474 | this->randombignumber().data(), static_cast<int>(this->randombignumber().length()), |
6475 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
6476 | "StrPerson.randomBigNumber" ); |
6477 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
6478 | 20, this->randombignumber(), output); |
6479 | } |
6480 | |
6481 | // .StrPerson.MeasureUnits measureUnits = 21; |
6482 | if (this->has_measureunits()) { |
6483 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
6484 | 21, this->_internal_measureunits(), output); |
6485 | } |
6486 | |
6487 | // .StrPerson.NestinessA nestiness_a = 22; |
6488 | if (this->has_nestiness_a()) { |
6489 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
6490 | 22, this->_internal_nestiness_a(), output); |
6491 | } |
6492 | |
6493 | if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { |
6494 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
6495 | (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); |
6496 | } |
6497 | // @@protoc_insertion_point(serialize_end:StrPerson) |
6498 | } |
6499 | |
6500 | ::google::protobuf::uint8* StrPerson::InternalSerializeWithCachedSizesToArray( |
6501 | bool deterministic, ::google::protobuf::uint8* target) const { |
6502 | (void)deterministic; // Unused |
6503 | // @@protoc_insertion_point(serialize_to_array_start:StrPerson) |
6504 | ::google::protobuf::uint32 cached_has_bits = 0; |
6505 | (void) cached_has_bits; |
6506 | |
6507 | // string uuid = 1; |
6508 | if (this->uuid().size() > 0) { |
6509 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
6510 | this->uuid().data(), static_cast<int>(this->uuid().length()), |
6511 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
6512 | "StrPerson.uuid" ); |
6513 | target = |
6514 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
6515 | 1, this->uuid(), target); |
6516 | } |
6517 | |
6518 | // string name = 2; |
6519 | if (this->name().size() > 0) { |
6520 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
6521 | this->name().data(), static_cast<int>(this->name().length()), |
6522 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
6523 | "StrPerson.name" ); |
6524 | target = |
6525 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
6526 | 2, this->name(), target); |
6527 | } |
6528 | |
6529 | // string surname = 3; |
6530 | if (this->surname().size() > 0) { |
6531 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
6532 | this->surname().data(), static_cast<int>(this->surname().length()), |
6533 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
6534 | "StrPerson.surname" ); |
6535 | target = |
6536 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
6537 | 3, this->surname(), target); |
6538 | } |
6539 | |
6540 | // string gender = 4; |
6541 | if (this->gender().size() > 0) { |
6542 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
6543 | this->gender().data(), static_cast<int>(this->gender().length()), |
6544 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
6545 | "StrPerson.gender" ); |
6546 | target = |
6547 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
6548 | 4, this->gender(), target); |
6549 | } |
6550 | |
6551 | // string birthDate = 5; |
6552 | if (this->birthdate().size() > 0) { |
6553 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
6554 | this->birthdate().data(), static_cast<int>(this->birthdate().length()), |
6555 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
6556 | "StrPerson.birthDate" ); |
6557 | target = |
6558 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
6559 | 5, this->birthdate(), target); |
6560 | } |
6561 | |
6562 | // string phoneNumber = 7; |
6563 | if (this->phonenumber().size() > 0) { |
6564 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
6565 | this->phonenumber().data(), static_cast<int>(this->phonenumber().length()), |
6566 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
6567 | "StrPerson.phoneNumber" ); |
6568 | target = |
6569 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
6570 | 7, this->phonenumber(), target); |
6571 | } |
6572 | |
6573 | // string isOnline = 8; |
6574 | if (this->isonline().size() > 0) { |
6575 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
6576 | this->isonline().data(), static_cast<int>(this->isonline().length()), |
6577 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
6578 | "StrPerson.isOnline" ); |
6579 | target = |
6580 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
6581 | 8, this->isonline(), target); |
6582 | } |
6583 | |
6584 | // string visitTime = 9; |
6585 | if (this->visittime().size() > 0) { |
6586 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
6587 | this->visittime().data(), static_cast<int>(this->visittime().length()), |
6588 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
6589 | "StrPerson.visitTime" ); |
6590 | target = |
6591 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
6592 | 9, this->visittime(), target); |
6593 | } |
6594 | |
6595 | // string age = 10; |
6596 | if (this->age().size() > 0) { |
6597 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
6598 | this->age().data(), static_cast<int>(this->age().length()), |
6599 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
6600 | "StrPerson.age" ); |
6601 | target = |
6602 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
6603 | 10, this->age(), target); |
6604 | } |
6605 | |
6606 | // string zodiacSign = 11; |
6607 | if (this->zodiacsign().size() > 0) { |
6608 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
6609 | this->zodiacsign().data(), static_cast<int>(this->zodiacsign().length()), |
6610 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
6611 | "StrPerson.zodiacSign" ); |
6612 | target = |
6613 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
6614 | 11, this->zodiacsign(), target); |
6615 | } |
6616 | |
6617 | // repeated string songs = 12; |
6618 | for (int i = 0, n = this->songs_size(); i < n; i++) { |
6619 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
6620 | this->songs(i).data(), static_cast<int>(this->songs(i).length()), |
6621 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
6622 | "StrPerson.songs" ); |
6623 | target = ::google::protobuf::internal::WireFormatLite:: |
6624 | WriteStringToArray(12, this->songs(i), target); |
6625 | } |
6626 | |
6627 | // repeated string color = 13; |
6628 | for (int i = 0, n = this->color_size(); i < n; i++) { |
6629 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
6630 | this->color(i).data(), static_cast<int>(this->color(i).length()), |
6631 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
6632 | "StrPerson.color" ); |
6633 | target = ::google::protobuf::internal::WireFormatLite:: |
6634 | WriteStringToArray(13, this->color(i), target); |
6635 | } |
6636 | |
6637 | // string hometown = 14; |
6638 | if (this->hometown().size() > 0) { |
6639 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
6640 | this->hometown().data(), static_cast<int>(this->hometown().length()), |
6641 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
6642 | "StrPerson.hometown" ); |
6643 | target = |
6644 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
6645 | 14, this->hometown(), target); |
6646 | } |
6647 | |
6648 | // repeated string location = 15; |
6649 | for (int i = 0, n = this->location_size(); i < n; i++) { |
6650 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
6651 | this->location(i).data(), static_cast<int>(this->location(i).length()), |
6652 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
6653 | "StrPerson.location" ); |
6654 | target = ::google::protobuf::internal::WireFormatLite:: |
6655 | WriteStringToArray(15, this->location(i), target); |
6656 | } |
6657 | |
6658 | // string pi = 16; |
6659 | if (this->pi().size() > 0) { |
6660 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
6661 | this->pi().data(), static_cast<int>(this->pi().length()), |
6662 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
6663 | "StrPerson.pi" ); |
6664 | target = |
6665 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
6666 | 16, this->pi(), target); |
6667 | } |
6668 | |
6669 | // string lotteryWin = 17; |
6670 | if (this->lotterywin().size() > 0) { |
6671 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
6672 | this->lotterywin().data(), static_cast<int>(this->lotterywin().length()), |
6673 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
6674 | "StrPerson.lotteryWin" ); |
6675 | target = |
6676 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
6677 | 17, this->lotterywin(), target); |
6678 | } |
6679 | |
6680 | // string someRatio = 18; |
6681 | if (this->someratio().size() > 0) { |
6682 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
6683 | this->someratio().data(), static_cast<int>(this->someratio().length()), |
6684 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
6685 | "StrPerson.someRatio" ); |
6686 | target = |
6687 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
6688 | 18, this->someratio(), target); |
6689 | } |
6690 | |
6691 | // string temperature = 19; |
6692 | if (this->temperature().size() > 0) { |
6693 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
6694 | this->temperature().data(), static_cast<int>(this->temperature().length()), |
6695 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
6696 | "StrPerson.temperature" ); |
6697 | target = |
6698 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
6699 | 19, this->temperature(), target); |
6700 | } |
6701 | |
6702 | // string randomBigNumber = 20; |
6703 | if (this->randombignumber().size() > 0) { |
6704 | ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
6705 | this->randombignumber().data(), static_cast<int>(this->randombignumber().length()), |
6706 | ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
6707 | "StrPerson.randomBigNumber" ); |
6708 | target = |
6709 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
6710 | 20, this->randombignumber(), target); |
6711 | } |
6712 | |
6713 | // .StrPerson.MeasureUnits measureUnits = 21; |
6714 | if (this->has_measureunits()) { |
6715 | target = ::google::protobuf::internal::WireFormatLite:: |
6716 | InternalWriteMessageToArray( |
6717 | 21, this->_internal_measureunits(), deterministic, target); |
6718 | } |
6719 | |
6720 | // .StrPerson.NestinessA nestiness_a = 22; |
6721 | if (this->has_nestiness_a()) { |
6722 | target = ::google::protobuf::internal::WireFormatLite:: |
6723 | InternalWriteMessageToArray( |
6724 | 22, this->_internal_nestiness_a(), deterministic, target); |
6725 | } |
6726 | |
6727 | if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { |
6728 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
6729 | (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); |
6730 | } |
6731 | // @@protoc_insertion_point(serialize_to_array_end:StrPerson) |
6732 | return target; |
6733 | } |
6734 | |
6735 | size_t StrPerson::ByteSizeLong() const { |
6736 | // @@protoc_insertion_point(message_byte_size_start:StrPerson) |
6737 | size_t total_size = 0; |
6738 | |
6739 | if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { |
6740 | total_size += |
6741 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
6742 | (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); |
6743 | } |
6744 | // repeated string songs = 12; |
6745 | total_size += 1 * |
6746 | ::google::protobuf::internal::FromIntSize(this->songs_size()); |
6747 | for (int i = 0, n = this->songs_size(); i < n; i++) { |
6748 | total_size += ::google::protobuf::internal::WireFormatLite::StringSize( |
6749 | this->songs(i)); |
6750 | } |
6751 | |
6752 | // repeated string color = 13; |
6753 | total_size += 1 * |
6754 | ::google::protobuf::internal::FromIntSize(this->color_size()); |
6755 | for (int i = 0, n = this->color_size(); i < n; i++) { |
6756 | total_size += ::google::protobuf::internal::WireFormatLite::StringSize( |
6757 | this->color(i)); |
6758 | } |
6759 | |
6760 | // repeated string location = 15; |
6761 | total_size += 1 * |
6762 | ::google::protobuf::internal::FromIntSize(this->location_size()); |
6763 | for (int i = 0, n = this->location_size(); i < n; i++) { |
6764 | total_size += ::google::protobuf::internal::WireFormatLite::StringSize( |
6765 | this->location(i)); |
6766 | } |
6767 | |
6768 | // string uuid = 1; |
6769 | if (this->uuid().size() > 0) { |
6770 | total_size += 1 + |
6771 | ::google::protobuf::internal::WireFormatLite::StringSize( |
6772 | this->uuid()); |
6773 | } |
6774 | |
6775 | // string name = 2; |
6776 | if (this->name().size() > 0) { |
6777 | total_size += 1 + |
6778 | ::google::protobuf::internal::WireFormatLite::StringSize( |
6779 | this->name()); |
6780 | } |
6781 | |
6782 | // string surname = 3; |
6783 | if (this->surname().size() > 0) { |
6784 | total_size += 1 + |
6785 | ::google::protobuf::internal::WireFormatLite::StringSize( |
6786 | this->surname()); |
6787 | } |
6788 | |
6789 | // string gender = 4; |
6790 | if (this->gender().size() > 0) { |
6791 | total_size += 1 + |
6792 | ::google::protobuf::internal::WireFormatLite::StringSize( |
6793 | this->gender()); |
6794 | } |
6795 | |
6796 | // string birthDate = 5; |
6797 | if (this->birthdate().size() > 0) { |
6798 | total_size += 1 + |
6799 | ::google::protobuf::internal::WireFormatLite::StringSize( |
6800 | this->birthdate()); |
6801 | } |
6802 | |
6803 | // string phoneNumber = 7; |
6804 | if (this->phonenumber().size() > 0) { |
6805 | total_size += 1 + |
6806 | ::google::protobuf::internal::WireFormatLite::StringSize( |
6807 | this->phonenumber()); |
6808 | } |
6809 | |
6810 | // string isOnline = 8; |
6811 | if (this->isonline().size() > 0) { |
6812 | total_size += 1 + |
6813 | ::google::protobuf::internal::WireFormatLite::StringSize( |
6814 | this->isonline()); |
6815 | } |
6816 | |
6817 | // string visitTime = 9; |
6818 | if (this->visittime().size() > 0) { |
6819 | total_size += 1 + |
6820 | ::google::protobuf::internal::WireFormatLite::StringSize( |
6821 | this->visittime()); |
6822 | } |
6823 | |
6824 | // string age = 10; |
6825 | if (this->age().size() > 0) { |
6826 | total_size += 1 + |
6827 | ::google::protobuf::internal::WireFormatLite::StringSize( |
6828 | this->age()); |
6829 | } |
6830 | |
6831 | // string zodiacSign = 11; |
6832 | if (this->zodiacsign().size() > 0) { |
6833 | total_size += 1 + |
6834 | ::google::protobuf::internal::WireFormatLite::StringSize( |
6835 | this->zodiacsign()); |
6836 | } |
6837 | |
6838 | // string hometown = 14; |
6839 | if (this->hometown().size() > 0) { |
6840 | total_size += 1 + |
6841 | ::google::protobuf::internal::WireFormatLite::StringSize( |
6842 | this->hometown()); |
6843 | } |
6844 | |
6845 | // string pi = 16; |
6846 | if (this->pi().size() > 0) { |
6847 | total_size += 2 + |
6848 | ::google::protobuf::internal::WireFormatLite::StringSize( |
6849 | this->pi()); |
6850 | } |
6851 | |
6852 | // string lotteryWin = 17; |
6853 | if (this->lotterywin().size() > 0) { |
6854 | total_size += 2 + |
6855 | ::google::protobuf::internal::WireFormatLite::StringSize( |
6856 | this->lotterywin()); |
6857 | } |
6858 | |
6859 | // string someRatio = 18; |
6860 | if (this->someratio().size() > 0) { |
6861 | total_size += 2 + |
6862 | ::google::protobuf::internal::WireFormatLite::StringSize( |
6863 | this->someratio()); |
6864 | } |
6865 | |
6866 | // string temperature = 19; |
6867 | if (this->temperature().size() > 0) { |
6868 | total_size += 2 + |
6869 | ::google::protobuf::internal::WireFormatLite::StringSize( |
6870 | this->temperature()); |
6871 | } |
6872 | |
6873 | // string randomBigNumber = 20; |
6874 | if (this->randombignumber().size() > 0) { |
6875 | total_size += 2 + |
6876 | ::google::protobuf::internal::WireFormatLite::StringSize( |
6877 | this->randombignumber()); |
6878 | } |
6879 | |
6880 | // .StrPerson.MeasureUnits measureUnits = 21; |
6881 | if (this->has_measureunits()) { |
6882 | total_size += 2 + |
6883 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
6884 | *measureunits_); |
6885 | } |
6886 | |
6887 | // .StrPerson.NestinessA nestiness_a = 22; |
6888 | if (this->has_nestiness_a()) { |
6889 | total_size += 2 + |
6890 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
6891 | *nestiness_a_); |
6892 | } |
6893 | |
6894 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
6895 | SetCachedSize(cached_size); |
6896 | return total_size; |
6897 | } |
6898 | |
6899 | void StrPerson::MergeFrom(const ::google::protobuf::Message& from) { |
6900 | // @@protoc_insertion_point(generalized_merge_from_start:StrPerson) |
6901 | GOOGLE_DCHECK_NE(&from, this); |
6902 | const StrPerson* source = |
6903 | ::google::protobuf::internal::DynamicCastToGenerated<const StrPerson>( |
6904 | &from); |
6905 | if (source == NULL) { |
6906 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:StrPerson) |
6907 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
6908 | } else { |
6909 | // @@protoc_insertion_point(generalized_merge_from_cast_success:StrPerson) |
6910 | MergeFrom(*source); |
6911 | } |
6912 | } |
6913 | |
6914 | void StrPerson::MergeFrom(const StrPerson& from) { |
6915 | // @@protoc_insertion_point(class_specific_merge_from_start:StrPerson) |
6916 | GOOGLE_DCHECK_NE(&from, this); |
6917 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
6918 | ::google::protobuf::uint32 cached_has_bits = 0; |
6919 | (void) cached_has_bits; |
6920 | |
6921 | songs_.MergeFrom(from.songs_); |
6922 | color_.MergeFrom(from.color_); |
6923 | location_.MergeFrom(from.location_); |
6924 | if (from.uuid().size() > 0) { |
6925 | |
6926 | uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.uuid_); |
6927 | } |
6928 | if (from.name().size() > 0) { |
6929 | |
6930 | name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_); |
6931 | } |
6932 | if (from.surname().size() > 0) { |
6933 | |
6934 | surname_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.surname_); |
6935 | } |
6936 | if (from.gender().size() > 0) { |
6937 | |
6938 | gender_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.gender_); |
6939 | } |
6940 | if (from.birthdate().size() > 0) { |
6941 | |
6942 | birthdate_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.birthdate_); |
6943 | } |
6944 | if (from.phonenumber().size() > 0) { |
6945 | |
6946 | phonenumber_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.phonenumber_); |
6947 | } |
6948 | if (from.isonline().size() > 0) { |
6949 | |
6950 | isonline_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.isonline_); |
6951 | } |
6952 | if (from.visittime().size() > 0) { |
6953 | |
6954 | visittime_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.visittime_); |
6955 | } |
6956 | if (from.age().size() > 0) { |
6957 | |
6958 | age_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.age_); |
6959 | } |
6960 | if (from.zodiacsign().size() > 0) { |
6961 | |
6962 | zodiacsign_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.zodiacsign_); |
6963 | } |
6964 | if (from.hometown().size() > 0) { |
6965 | |
6966 | hometown_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.hometown_); |
6967 | } |
6968 | if (from.pi().size() > 0) { |
6969 | |
6970 | pi_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.pi_); |
6971 | } |
6972 | if (from.lotterywin().size() > 0) { |
6973 | |
6974 | lotterywin_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.lotterywin_); |
6975 | } |
6976 | if (from.someratio().size() > 0) { |
6977 | |
6978 | someratio_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.someratio_); |
6979 | } |
6980 | if (from.temperature().size() > 0) { |
6981 | |
6982 | temperature_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.temperature_); |
6983 | } |
6984 | if (from.randombignumber().size() > 0) { |
6985 | |
6986 | randombignumber_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.randombignumber_); |
6987 | } |
6988 | if (from.has_measureunits()) { |
6989 | mutable_measureunits()->::StrPerson_MeasureUnits::MergeFrom(from.measureunits()); |
6990 | } |
6991 | if (from.has_nestiness_a()) { |
6992 | mutable_nestiness_a()->::StrPerson_NestinessA::MergeFrom(from.nestiness_a()); |
6993 | } |
6994 | } |
6995 | |
6996 | void StrPerson::CopyFrom(const ::google::protobuf::Message& from) { |
6997 | // @@protoc_insertion_point(generalized_copy_from_start:StrPerson) |
6998 | if (&from == this) return; |
6999 | Clear(); |
7000 | MergeFrom(from); |
7001 | } |
7002 | |
7003 | void StrPerson::CopyFrom(const StrPerson& from) { |
7004 | // @@protoc_insertion_point(class_specific_copy_from_start:StrPerson) |
7005 | if (&from == this) return; |
7006 | Clear(); |
7007 | MergeFrom(from); |
7008 | } |
7009 | |
7010 | bool StrPerson::IsInitialized() const { |
7011 | return true; |
7012 | } |
7013 | |
7014 | void StrPerson::Swap(StrPerson* other) { |
7015 | if (other == this) return; |
7016 | InternalSwap(other); |
7017 | } |
7018 | void StrPerson::InternalSwap(StrPerson* other) { |
7019 | using std::swap; |
7020 | songs_.InternalSwap(CastToBase(&other->songs_)); |
7021 | color_.InternalSwap(CastToBase(&other->color_)); |
7022 | location_.InternalSwap(CastToBase(&other->location_)); |
7023 | uuid_.Swap(&other->uuid_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
7024 | GetArenaNoVirtual()); |
7025 | name_.Swap(&other->name_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
7026 | GetArenaNoVirtual()); |
7027 | surname_.Swap(&other->surname_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
7028 | GetArenaNoVirtual()); |
7029 | gender_.Swap(&other->gender_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
7030 | GetArenaNoVirtual()); |
7031 | birthdate_.Swap(&other->birthdate_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
7032 | GetArenaNoVirtual()); |
7033 | phonenumber_.Swap(&other->phonenumber_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
7034 | GetArenaNoVirtual()); |
7035 | isonline_.Swap(&other->isonline_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
7036 | GetArenaNoVirtual()); |
7037 | visittime_.Swap(&other->visittime_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
7038 | GetArenaNoVirtual()); |
7039 | age_.Swap(&other->age_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
7040 | GetArenaNoVirtual()); |
7041 | zodiacsign_.Swap(&other->zodiacsign_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
7042 | GetArenaNoVirtual()); |
7043 | hometown_.Swap(&other->hometown_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
7044 | GetArenaNoVirtual()); |
7045 | pi_.Swap(&other->pi_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
7046 | GetArenaNoVirtual()); |
7047 | lotterywin_.Swap(&other->lotterywin_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
7048 | GetArenaNoVirtual()); |
7049 | someratio_.Swap(&other->someratio_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
7050 | GetArenaNoVirtual()); |
7051 | temperature_.Swap(&other->temperature_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
7052 | GetArenaNoVirtual()); |
7053 | randombignumber_.Swap(&other->randombignumber_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
7054 | GetArenaNoVirtual()); |
7055 | swap(measureunits_, other->measureunits_); |
7056 | swap(nestiness_a_, other->nestiness_a_); |
7057 | _internal_metadata_.Swap(&other->_internal_metadata_); |
7058 | } |
7059 | |
7060 | ::google::protobuf::Metadata StrPerson::GetMetadata() const { |
7061 | protobuf_00825_5fprotobuf_5fformat_2eproto::protobuf_AssignDescriptorsOnce(); |
7062 | return ::protobuf_00825_5fprotobuf_5fformat_2eproto::file_level_metadata[kIndexInFileMessages]; |
7063 | } |
7064 | |
7065 | |
7066 | // =================================================================== |
7067 | |
7068 | void NumberAndSquare::InitAsDefaultInstance() { |
7069 | } |
7070 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
7071 | const int NumberAndSquare::kNumberFieldNumber; |
7072 | const int NumberAndSquare::kSquareFieldNumber; |
7073 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
7074 | |
7075 | NumberAndSquare::NumberAndSquare() |
7076 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
7077 | ::google::protobuf::internal::InitSCC( |
7078 | &protobuf_00825_5fprotobuf_5fformat_2eproto::scc_info_NumberAndSquare.base); |
7079 | SharedCtor(); |
7080 | // @@protoc_insertion_point(constructor:NumberAndSquare) |
7081 | } |
7082 | NumberAndSquare::NumberAndSquare(const NumberAndSquare& from) |
7083 | : ::google::protobuf::Message(), |
7084 | _internal_metadata_(NULL) { |
7085 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
7086 | ::memcpy(&square_, &from.square_, |
7087 | static_cast<size_t>(reinterpret_cast<char*>(&number_) - |
7088 | reinterpret_cast<char*>(&square_)) + sizeof(number_)); |
7089 | // @@protoc_insertion_point(copy_constructor:NumberAndSquare) |
7090 | } |
7091 | |
7092 | void NumberAndSquare::SharedCtor() { |
7093 | ::memset(&square_, 0, static_cast<size_t>( |
7094 | reinterpret_cast<char*>(&number_) - |
7095 | reinterpret_cast<char*>(&square_)) + sizeof(number_)); |
7096 | } |
7097 | |
7098 | NumberAndSquare::~NumberAndSquare() { |
7099 | // @@protoc_insertion_point(destructor:NumberAndSquare) |
7100 | SharedDtor(); |
7101 | } |
7102 | |
7103 | void NumberAndSquare::SharedDtor() { |
7104 | } |
7105 | |
7106 | void NumberAndSquare::SetCachedSize(int size) const { |
7107 | _cached_size_.Set(size); |
7108 | } |
7109 | const ::google::protobuf::Descriptor* NumberAndSquare::descriptor() { |
7110 | ::protobuf_00825_5fprotobuf_5fformat_2eproto::protobuf_AssignDescriptorsOnce(); |
7111 | return ::protobuf_00825_5fprotobuf_5fformat_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
7112 | } |
7113 | |
7114 | const NumberAndSquare& NumberAndSquare::default_instance() { |
7115 | ::google::protobuf::internal::InitSCC(&protobuf_00825_5fprotobuf_5fformat_2eproto::scc_info_NumberAndSquare.base); |
7116 | return *internal_default_instance(); |
7117 | } |
7118 | |
7119 | |
7120 | void NumberAndSquare::Clear() { |
7121 | // @@protoc_insertion_point(message_clear_start:NumberAndSquare) |
7122 | ::google::protobuf::uint32 cached_has_bits = 0; |
7123 | // Prevent compiler warnings about cached_has_bits being unused |
7124 | (void) cached_has_bits; |
7125 | |
7126 | ::memset(&square_, 0, static_cast<size_t>( |
7127 | reinterpret_cast<char*>(&number_) - |
7128 | reinterpret_cast<char*>(&square_)) + sizeof(number_)); |
7129 | _internal_metadata_.Clear(); |
7130 | } |
7131 | |
7132 | bool NumberAndSquare::MergePartialFromCodedStream( |
7133 | ::google::protobuf::io::CodedInputStream* input) { |
7134 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
7135 | ::google::protobuf::uint32 tag; |
7136 | // @@protoc_insertion_point(parse_start:NumberAndSquare) |
7137 | for (;;) { |
7138 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
7139 | tag = p.first; |
7140 | if (!p.second) goto handle_unusual; |
7141 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
7142 | // uint32 number = 1; |
7143 | case 1: { |
7144 | if (static_cast< ::google::protobuf::uint8>(tag) == |
7145 | static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { |
7146 | |
7147 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
7148 | ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( |
7149 | input, &number_))); |
7150 | } else { |
7151 | goto handle_unusual; |
7152 | } |
7153 | break; |
7154 | } |
7155 | |
7156 | // uint64 square = 2; |
7157 | case 2: { |
7158 | if (static_cast< ::google::protobuf::uint8>(tag) == |
7159 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
7160 | |
7161 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
7162 | ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( |
7163 | input, &square_))); |
7164 | } else { |
7165 | goto handle_unusual; |
7166 | } |
7167 | break; |
7168 | } |
7169 | |
7170 | default: { |
7171 | handle_unusual: |
7172 | if (tag == 0) { |
7173 | goto success; |
7174 | } |
7175 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
7176 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
7177 | break; |
7178 | } |
7179 | } |
7180 | } |
7181 | success: |
7182 | // @@protoc_insertion_point(parse_success:NumberAndSquare) |
7183 | return true; |
7184 | failure: |
7185 | // @@protoc_insertion_point(parse_failure:NumberAndSquare) |
7186 | return false; |
7187 | #undef DO_ |
7188 | } |
7189 | |
7190 | void NumberAndSquare::SerializeWithCachedSizes( |
7191 | ::google::protobuf::io::CodedOutputStream* output) const { |
7192 | // @@protoc_insertion_point(serialize_start:NumberAndSquare) |
7193 | ::google::protobuf::uint32 cached_has_bits = 0; |
7194 | (void) cached_has_bits; |
7195 | |
7196 | // uint32 number = 1; |
7197 | if (this->number() != 0) { |
7198 | ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->number(), output); |
7199 | } |
7200 | |
7201 | // uint64 square = 2; |
7202 | if (this->square() != 0) { |
7203 | ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->square(), output); |
7204 | } |
7205 | |
7206 | if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { |
7207 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
7208 | (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output); |
7209 | } |
7210 | // @@protoc_insertion_point(serialize_end:NumberAndSquare) |
7211 | } |
7212 | |
7213 | ::google::protobuf::uint8* NumberAndSquare::InternalSerializeWithCachedSizesToArray( |
7214 | bool deterministic, ::google::protobuf::uint8* target) const { |
7215 | (void)deterministic; // Unused |
7216 | // @@protoc_insertion_point(serialize_to_array_start:NumberAndSquare) |
7217 | ::google::protobuf::uint32 cached_has_bits = 0; |
7218 | (void) cached_has_bits; |
7219 | |
7220 | // uint32 number = 1; |
7221 | if (this->number() != 0) { |
7222 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->number(), target); |
7223 | } |
7224 | |
7225 | // uint64 square = 2; |
7226 | if (this->square() != 0) { |
7227 | target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->square(), target); |
7228 | } |
7229 | |
7230 | if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { |
7231 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
7232 | (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target); |
7233 | } |
7234 | // @@protoc_insertion_point(serialize_to_array_end:NumberAndSquare) |
7235 | return target; |
7236 | } |
7237 | |
7238 | size_t NumberAndSquare::ByteSizeLong() const { |
7239 | // @@protoc_insertion_point(message_byte_size_start:NumberAndSquare) |
7240 | size_t total_size = 0; |
7241 | |
7242 | if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) { |
7243 | total_size += |
7244 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
7245 | (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance())); |
7246 | } |
7247 | // uint64 square = 2; |
7248 | if (this->square() != 0) { |
7249 | total_size += 1 + |
7250 | ::google::protobuf::internal::WireFormatLite::UInt64Size( |
7251 | this->square()); |
7252 | } |
7253 | |
7254 | // uint32 number = 1; |
7255 | if (this->number() != 0) { |
7256 | total_size += 1 + |
7257 | ::google::protobuf::internal::WireFormatLite::UInt32Size( |
7258 | this->number()); |
7259 | } |
7260 | |
7261 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
7262 | SetCachedSize(cached_size); |
7263 | return total_size; |
7264 | } |
7265 | |
7266 | void NumberAndSquare::MergeFrom(const ::google::protobuf::Message& from) { |
7267 | // @@protoc_insertion_point(generalized_merge_from_start:NumberAndSquare) |
7268 | GOOGLE_DCHECK_NE(&from, this); |
7269 | const NumberAndSquare* source = |
7270 | ::google::protobuf::internal::DynamicCastToGenerated<const NumberAndSquare>( |
7271 | &from); |
7272 | if (source == NULL) { |
7273 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:NumberAndSquare) |
7274 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
7275 | } else { |
7276 | // @@protoc_insertion_point(generalized_merge_from_cast_success:NumberAndSquare) |
7277 | MergeFrom(*source); |
7278 | } |
7279 | } |
7280 | |
7281 | void NumberAndSquare::MergeFrom(const NumberAndSquare& from) { |
7282 | // @@protoc_insertion_point(class_specific_merge_from_start:NumberAndSquare) |
7283 | GOOGLE_DCHECK_NE(&from, this); |
7284 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
7285 | ::google::protobuf::uint32 cached_has_bits = 0; |
7286 | (void) cached_has_bits; |
7287 | |
7288 | if (from.square() != 0) { |
7289 | set_square(from.square()); |
7290 | } |
7291 | if (from.number() != 0) { |
7292 | set_number(from.number()); |
7293 | } |
7294 | } |
7295 | |
7296 | void NumberAndSquare::CopyFrom(const ::google::protobuf::Message& from) { |
7297 | // @@protoc_insertion_point(generalized_copy_from_start:NumberAndSquare) |
7298 | if (&from == this) return; |
7299 | Clear(); |
7300 | MergeFrom(from); |
7301 | } |
7302 | |
7303 | void NumberAndSquare::CopyFrom(const NumberAndSquare& from) { |
7304 | // @@protoc_insertion_point(class_specific_copy_from_start:NumberAndSquare) |
7305 | if (&from == this) return; |
7306 | Clear(); |
7307 | MergeFrom(from); |
7308 | } |
7309 | |
7310 | bool NumberAndSquare::IsInitialized() const { |
7311 | return true; |
7312 | } |
7313 | |
7314 | void NumberAndSquare::Swap(NumberAndSquare* other) { |
7315 | if (other == this) return; |
7316 | InternalSwap(other); |
7317 | } |
7318 | void NumberAndSquare::InternalSwap(NumberAndSquare* other) { |
7319 | using std::swap; |
7320 | swap(square_, other->square_); |
7321 | swap(number_, other->number_); |
7322 | _internal_metadata_.Swap(&other->_internal_metadata_); |
7323 | } |
7324 | |
7325 | ::google::protobuf::Metadata NumberAndSquare::GetMetadata() const { |
7326 | protobuf_00825_5fprotobuf_5fformat_2eproto::protobuf_AssignDescriptorsOnce(); |
7327 | return ::protobuf_00825_5fprotobuf_5fformat_2eproto::file_level_metadata[kIndexInFileMessages]; |
7328 | } |
7329 | |
7330 | |
7331 | // @@protoc_insertion_point(namespace_scope) |
7332 | namespace google { |
7333 | namespace protobuf { |
7334 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Nestiness_SubA_SubB_SubC* Arena::CreateMaybeMessage< ::Nestiness_SubA_SubB_SubC >(Arena* arena) { |
7335 | return Arena::CreateInternal< ::Nestiness_SubA_SubB_SubC >(arena); |
7336 | } |
7337 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Nestiness_SubA_SubB* Arena::CreateMaybeMessage< ::Nestiness_SubA_SubB >(Arena* arena) { |
7338 | return Arena::CreateInternal< ::Nestiness_SubA_SubB >(arena); |
7339 | } |
7340 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Nestiness_SubA* Arena::CreateMaybeMessage< ::Nestiness_SubA >(Arena* arena) { |
7341 | return Arena::CreateInternal< ::Nestiness_SubA >(arena); |
7342 | } |
7343 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Nestiness* Arena::CreateMaybeMessage< ::Nestiness >(Arena* arena) { |
7344 | return Arena::CreateInternal< ::Nestiness >(arena); |
7345 | } |
7346 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Person_MeasureUnit* Arena::CreateMaybeMessage< ::Person_MeasureUnit >(Arena* arena) { |
7347 | return Arena::CreateInternal< ::Person_MeasureUnit >(arena); |
7348 | } |
7349 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::Person* Arena::CreateMaybeMessage< ::Person >(Arena* arena) { |
7350 | return Arena::CreateInternal< ::Person >(arena); |
7351 | } |
7352 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::AltPerson_Dummy_Empty* Arena::CreateMaybeMessage< ::AltPerson_Dummy_Empty >(Arena* arena) { |
7353 | return Arena::CreateInternal< ::AltPerson_Dummy_Empty >(arena); |
7354 | } |
7355 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::AltPerson_Dummy* Arena::CreateMaybeMessage< ::AltPerson_Dummy >(Arena* arena) { |
7356 | return Arena::CreateInternal< ::AltPerson_Dummy >(arena); |
7357 | } |
7358 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::AltPerson* Arena::CreateMaybeMessage< ::AltPerson >(Arena* arena) { |
7359 | return Arena::CreateInternal< ::AltPerson >(arena); |
7360 | } |
7361 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::StrPerson_MeasureUnits* Arena::CreateMaybeMessage< ::StrPerson_MeasureUnits >(Arena* arena) { |
7362 | return Arena::CreateInternal< ::StrPerson_MeasureUnits >(arena); |
7363 | } |
7364 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::StrPerson_NestinessA_SubBC* Arena::CreateMaybeMessage< ::StrPerson_NestinessA_SubBC >(Arena* arena) { |
7365 | return Arena::CreateInternal< ::StrPerson_NestinessA_SubBC >(arena); |
7366 | } |
7367 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::StrPerson_NestinessA* Arena::CreateMaybeMessage< ::StrPerson_NestinessA >(Arena* arena) { |
7368 | return Arena::CreateInternal< ::StrPerson_NestinessA >(arena); |
7369 | } |
7370 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::StrPerson* Arena::CreateMaybeMessage< ::StrPerson >(Arena* arena) { |
7371 | return Arena::CreateInternal< ::StrPerson >(arena); |
7372 | } |
7373 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::NumberAndSquare* Arena::CreateMaybeMessage< ::NumberAndSquare >(Arena* arena) { |
7374 | return Arena::CreateInternal< ::NumberAndSquare >(arena); |
7375 | } |
7376 | } // namespace protobuf |
7377 | } // namespace google |
7378 | |
7379 | // @@protoc_insertion_point(global_scope) |
7380 | |