/src/brpc/build/test/addressbook_map.pb.cc
Line | Count | Source (jump to first uncovered line) |
1 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | | // source: addressbook_map.proto |
3 | | |
4 | | #include "addressbook_map.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_addressbook_5fmap_2eproto { |
23 | | extern PROTOBUF_INTERNAL_EXPORT_protobuf_addressbook_5fmap_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_AddressComplex_FriendEntry_Education; |
24 | | extern PROTOBUF_INTERNAL_EXPORT_protobuf_addressbook_5fmap_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_AddressIntMapStd_NumbersEntry_DoNotUse; |
25 | | extern PROTOBUF_INTERNAL_EXPORT_protobuf_addressbook_5fmap_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_AddressIntMap_MapFieldEntry; |
26 | | extern PROTOBUF_INTERNAL_EXPORT_protobuf_addressbook_5fmap_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_AddressStringMapStd_ContactsEntry_DoNotUse; |
27 | | extern PROTOBUF_INTERNAL_EXPORT_protobuf_addressbook_5fmap_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_AddressStringMap_MapFieldEntry; |
28 | | extern PROTOBUF_INTERNAL_EXPORT_protobuf_addressbook_5fmap_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_AddressComplex_FriendEntry; |
29 | | } // namespace protobuf_addressbook_5fmap_2eproto |
30 | | class AddressNoMapDefaultTypeInternal { |
31 | | public: |
32 | | ::google::protobuf::internal::ExplicitlyConstructed<AddressNoMap> |
33 | | _instance; |
34 | | } _AddressNoMap_default_instance_; |
35 | | class AddressIntMap_MapFieldEntryDefaultTypeInternal { |
36 | | public: |
37 | | ::google::protobuf::internal::ExplicitlyConstructed<AddressIntMap_MapFieldEntry> |
38 | | _instance; |
39 | | } _AddressIntMap_MapFieldEntry_default_instance_; |
40 | | class AddressIntMapDefaultTypeInternal { |
41 | | public: |
42 | | ::google::protobuf::internal::ExplicitlyConstructed<AddressIntMap> |
43 | | _instance; |
44 | | } _AddressIntMap_default_instance_; |
45 | | class AddressStringMap_MapFieldEntryDefaultTypeInternal { |
46 | | public: |
47 | | ::google::protobuf::internal::ExplicitlyConstructed<AddressStringMap_MapFieldEntry> |
48 | | _instance; |
49 | | } _AddressStringMap_MapFieldEntry_default_instance_; |
50 | | class AddressStringMapDefaultTypeInternal { |
51 | | public: |
52 | | ::google::protobuf::internal::ExplicitlyConstructed<AddressStringMap> |
53 | | _instance; |
54 | | } _AddressStringMap_default_instance_; |
55 | | class AddressComplex_FriendEntry_EducationDefaultTypeInternal { |
56 | | public: |
57 | | ::google::protobuf::internal::ExplicitlyConstructed<AddressComplex_FriendEntry_Education> |
58 | | _instance; |
59 | | } _AddressComplex_FriendEntry_Education_default_instance_; |
60 | | class AddressComplex_FriendEntryDefaultTypeInternal { |
61 | | public: |
62 | | ::google::protobuf::internal::ExplicitlyConstructed<AddressComplex_FriendEntry> |
63 | | _instance; |
64 | | } _AddressComplex_FriendEntry_default_instance_; |
65 | | class AddressComplexDefaultTypeInternal { |
66 | | public: |
67 | | ::google::protobuf::internal::ExplicitlyConstructed<AddressComplex> |
68 | | _instance; |
69 | | } _AddressComplex_default_instance_; |
70 | | class AddressIntMapStd_NumbersEntry_DoNotUseDefaultTypeInternal { |
71 | | public: |
72 | | ::google::protobuf::internal::ExplicitlyConstructed<AddressIntMapStd_NumbersEntry_DoNotUse> |
73 | | _instance; |
74 | | } _AddressIntMapStd_NumbersEntry_DoNotUse_default_instance_; |
75 | | class AddressIntMapStdDefaultTypeInternal { |
76 | | public: |
77 | | ::google::protobuf::internal::ExplicitlyConstructed<AddressIntMapStd> |
78 | | _instance; |
79 | | } _AddressIntMapStd_default_instance_; |
80 | | class AddressStringMapStd_ContactsEntry_DoNotUseDefaultTypeInternal { |
81 | | public: |
82 | | ::google::protobuf::internal::ExplicitlyConstructed<AddressStringMapStd_ContactsEntry_DoNotUse> |
83 | | _instance; |
84 | | } _AddressStringMapStd_ContactsEntry_DoNotUse_default_instance_; |
85 | | class AddressStringMapStdDefaultTypeInternal { |
86 | | public: |
87 | | ::google::protobuf::internal::ExplicitlyConstructed<AddressStringMapStd> |
88 | | _instance; |
89 | | } _AddressStringMapStd_default_instance_; |
90 | | class hahaDefaultTypeInternal { |
91 | | public: |
92 | | ::google::protobuf::internal::ExplicitlyConstructed<haha> |
93 | | _instance; |
94 | | } _haha_default_instance_; |
95 | | namespace protobuf_addressbook_5fmap_2eproto { |
96 | 2 | static void InitDefaultsAddressNoMap() { |
97 | 2 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
98 | | |
99 | 2 | { |
100 | 2 | void* ptr = &::_AddressNoMap_default_instance_; |
101 | 2 | new (ptr) ::AddressNoMap(); |
102 | 2 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
103 | 2 | } |
104 | 2 | ::AddressNoMap::InitAsDefaultInstance(); |
105 | 2 | } |
106 | | |
107 | | ::google::protobuf::internal::SCCInfo<0> scc_info_AddressNoMap = |
108 | | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAddressNoMap}, {}}; |
109 | | |
110 | 2 | static void InitDefaultsAddressIntMap_MapFieldEntry() { |
111 | 2 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
112 | | |
113 | 2 | { |
114 | 2 | void* ptr = &::_AddressIntMap_MapFieldEntry_default_instance_; |
115 | 2 | new (ptr) ::AddressIntMap_MapFieldEntry(); |
116 | 2 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
117 | 2 | } |
118 | 2 | ::AddressIntMap_MapFieldEntry::InitAsDefaultInstance(); |
119 | 2 | } |
120 | | |
121 | | ::google::protobuf::internal::SCCInfo<0> scc_info_AddressIntMap_MapFieldEntry = |
122 | | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAddressIntMap_MapFieldEntry}, {}}; |
123 | | |
124 | 2 | static void InitDefaultsAddressIntMap() { |
125 | 2 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
126 | | |
127 | 2 | { |
128 | 2 | void* ptr = &::_AddressIntMap_default_instance_; |
129 | 2 | new (ptr) ::AddressIntMap(); |
130 | 2 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
131 | 2 | } |
132 | 2 | ::AddressIntMap::InitAsDefaultInstance(); |
133 | 2 | } |
134 | | |
135 | | ::google::protobuf::internal::SCCInfo<1> scc_info_AddressIntMap = |
136 | | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsAddressIntMap}, { |
137 | | &protobuf_addressbook_5fmap_2eproto::scc_info_AddressIntMap_MapFieldEntry.base,}}; |
138 | | |
139 | 2 | static void InitDefaultsAddressStringMap_MapFieldEntry() { |
140 | 2 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
141 | | |
142 | 2 | { |
143 | 2 | void* ptr = &::_AddressStringMap_MapFieldEntry_default_instance_; |
144 | 2 | new (ptr) ::AddressStringMap_MapFieldEntry(); |
145 | 2 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
146 | 2 | } |
147 | 2 | ::AddressStringMap_MapFieldEntry::InitAsDefaultInstance(); |
148 | 2 | } |
149 | | |
150 | | ::google::protobuf::internal::SCCInfo<0> scc_info_AddressStringMap_MapFieldEntry = |
151 | | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAddressStringMap_MapFieldEntry}, {}}; |
152 | | |
153 | 2 | static void InitDefaultsAddressStringMap() { |
154 | 2 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
155 | | |
156 | 2 | { |
157 | 2 | void* ptr = &::_AddressStringMap_default_instance_; |
158 | 2 | new (ptr) ::AddressStringMap(); |
159 | 2 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
160 | 2 | } |
161 | 2 | ::AddressStringMap::InitAsDefaultInstance(); |
162 | 2 | } |
163 | | |
164 | | ::google::protobuf::internal::SCCInfo<1> scc_info_AddressStringMap = |
165 | | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsAddressStringMap}, { |
166 | | &protobuf_addressbook_5fmap_2eproto::scc_info_AddressStringMap_MapFieldEntry.base,}}; |
167 | | |
168 | 2 | static void InitDefaultsAddressComplex_FriendEntry_Education() { |
169 | 2 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
170 | | |
171 | 2 | { |
172 | 2 | void* ptr = &::_AddressComplex_FriendEntry_Education_default_instance_; |
173 | 2 | new (ptr) ::AddressComplex_FriendEntry_Education(); |
174 | 2 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
175 | 2 | } |
176 | 2 | ::AddressComplex_FriendEntry_Education::InitAsDefaultInstance(); |
177 | 2 | } |
178 | | |
179 | | ::google::protobuf::internal::SCCInfo<0> scc_info_AddressComplex_FriendEntry_Education = |
180 | | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAddressComplex_FriendEntry_Education}, {}}; |
181 | | |
182 | 2 | static void InitDefaultsAddressComplex_FriendEntry() { |
183 | 2 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
184 | | |
185 | 2 | { |
186 | 2 | void* ptr = &::_AddressComplex_FriendEntry_default_instance_; |
187 | 2 | new (ptr) ::AddressComplex_FriendEntry(); |
188 | 2 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
189 | 2 | } |
190 | 2 | ::AddressComplex_FriendEntry::InitAsDefaultInstance(); |
191 | 2 | } |
192 | | |
193 | | ::google::protobuf::internal::SCCInfo<1> scc_info_AddressComplex_FriendEntry = |
194 | | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsAddressComplex_FriendEntry}, { |
195 | | &protobuf_addressbook_5fmap_2eproto::scc_info_AddressComplex_FriendEntry_Education.base,}}; |
196 | | |
197 | 2 | static void InitDefaultsAddressComplex() { |
198 | 2 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
199 | | |
200 | 2 | { |
201 | 2 | void* ptr = &::_AddressComplex_default_instance_; |
202 | 2 | new (ptr) ::AddressComplex(); |
203 | 2 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
204 | 2 | } |
205 | 2 | ::AddressComplex::InitAsDefaultInstance(); |
206 | 2 | } |
207 | | |
208 | | ::google::protobuf::internal::SCCInfo<1> scc_info_AddressComplex = |
209 | | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsAddressComplex}, { |
210 | | &protobuf_addressbook_5fmap_2eproto::scc_info_AddressComplex_FriendEntry.base,}}; |
211 | | |
212 | 2 | static void InitDefaultsAddressIntMapStd_NumbersEntry_DoNotUse() { |
213 | 2 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
214 | | |
215 | 2 | { |
216 | 2 | void* ptr = &::_AddressIntMapStd_NumbersEntry_DoNotUse_default_instance_; |
217 | 2 | new (ptr) ::AddressIntMapStd_NumbersEntry_DoNotUse(); |
218 | 2 | } |
219 | 2 | ::AddressIntMapStd_NumbersEntry_DoNotUse::InitAsDefaultInstance(); |
220 | 2 | } |
221 | | |
222 | | ::google::protobuf::internal::SCCInfo<0> scc_info_AddressIntMapStd_NumbersEntry_DoNotUse = |
223 | | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAddressIntMapStd_NumbersEntry_DoNotUse}, {}}; |
224 | | |
225 | 2 | static void InitDefaultsAddressIntMapStd() { |
226 | 2 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
227 | | |
228 | 2 | { |
229 | 2 | void* ptr = &::_AddressIntMapStd_default_instance_; |
230 | 2 | new (ptr) ::AddressIntMapStd(); |
231 | 2 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
232 | 2 | } |
233 | 2 | ::AddressIntMapStd::InitAsDefaultInstance(); |
234 | 2 | } |
235 | | |
236 | | ::google::protobuf::internal::SCCInfo<1> scc_info_AddressIntMapStd = |
237 | | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsAddressIntMapStd}, { |
238 | | &protobuf_addressbook_5fmap_2eproto::scc_info_AddressIntMapStd_NumbersEntry_DoNotUse.base,}}; |
239 | | |
240 | 2 | static void InitDefaultsAddressStringMapStd_ContactsEntry_DoNotUse() { |
241 | 2 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
242 | | |
243 | 2 | { |
244 | 2 | void* ptr = &::_AddressStringMapStd_ContactsEntry_DoNotUse_default_instance_; |
245 | 2 | new (ptr) ::AddressStringMapStd_ContactsEntry_DoNotUse(); |
246 | 2 | } |
247 | 2 | ::AddressStringMapStd_ContactsEntry_DoNotUse::InitAsDefaultInstance(); |
248 | 2 | } |
249 | | |
250 | | ::google::protobuf::internal::SCCInfo<0> scc_info_AddressStringMapStd_ContactsEntry_DoNotUse = |
251 | | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsAddressStringMapStd_ContactsEntry_DoNotUse}, {}}; |
252 | | |
253 | 2 | static void InitDefaultsAddressStringMapStd() { |
254 | 2 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
255 | | |
256 | 2 | { |
257 | 2 | void* ptr = &::_AddressStringMapStd_default_instance_; |
258 | 2 | new (ptr) ::AddressStringMapStd(); |
259 | 2 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
260 | 2 | } |
261 | 2 | ::AddressStringMapStd::InitAsDefaultInstance(); |
262 | 2 | } |
263 | | |
264 | | ::google::protobuf::internal::SCCInfo<1> scc_info_AddressStringMapStd = |
265 | | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsAddressStringMapStd}, { |
266 | | &protobuf_addressbook_5fmap_2eproto::scc_info_AddressStringMapStd_ContactsEntry_DoNotUse.base,}}; |
267 | | |
268 | 2 | static void InitDefaultshaha() { |
269 | 2 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
270 | | |
271 | 2 | { |
272 | 2 | void* ptr = &::_haha_default_instance_; |
273 | 2 | new (ptr) ::haha(); |
274 | 2 | ::google::protobuf::internal::OnShutdownDestroyMessage(ptr); |
275 | 2 | } |
276 | 2 | ::haha::InitAsDefaultInstance(); |
277 | 2 | } |
278 | | |
279 | | ::google::protobuf::internal::SCCInfo<0> scc_info_haha = |
280 | | {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultshaha}, {}}; |
281 | | |
282 | 2 | void InitDefaults() { |
283 | 2 | ::google::protobuf::internal::InitSCC(&scc_info_AddressNoMap.base); |
284 | 2 | ::google::protobuf::internal::InitSCC(&scc_info_AddressIntMap_MapFieldEntry.base); |
285 | 2 | ::google::protobuf::internal::InitSCC(&scc_info_AddressIntMap.base); |
286 | 2 | ::google::protobuf::internal::InitSCC(&scc_info_AddressStringMap_MapFieldEntry.base); |
287 | 2 | ::google::protobuf::internal::InitSCC(&scc_info_AddressStringMap.base); |
288 | 2 | ::google::protobuf::internal::InitSCC(&scc_info_AddressComplex_FriendEntry_Education.base); |
289 | 2 | ::google::protobuf::internal::InitSCC(&scc_info_AddressComplex_FriendEntry.base); |
290 | 2 | ::google::protobuf::internal::InitSCC(&scc_info_AddressComplex.base); |
291 | 2 | ::google::protobuf::internal::InitSCC(&scc_info_AddressIntMapStd_NumbersEntry_DoNotUse.base); |
292 | 2 | ::google::protobuf::internal::InitSCC(&scc_info_AddressIntMapStd.base); |
293 | 2 | ::google::protobuf::internal::InitSCC(&scc_info_AddressStringMapStd_ContactsEntry_DoNotUse.base); |
294 | 2 | ::google::protobuf::internal::InitSCC(&scc_info_AddressStringMapStd.base); |
295 | 2 | ::google::protobuf::internal::InitSCC(&scc_info_haha.base); |
296 | 2 | } |
297 | | |
298 | | ::google::protobuf::Metadata file_level_metadata[13]; |
299 | | |
300 | | const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
301 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AddressNoMap, _has_bits_), |
302 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AddressNoMap, _internal_metadata_), |
303 | | ~0u, // no _extensions_ |
304 | | ~0u, // no _oneof_case_ |
305 | | ~0u, // no _weak_field_map_ |
306 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AddressNoMap, addr_), |
307 | | 0, |
308 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AddressIntMap_MapFieldEntry, _has_bits_), |
309 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AddressIntMap_MapFieldEntry, _internal_metadata_), |
310 | | ~0u, // no _extensions_ |
311 | | ~0u, // no _oneof_case_ |
312 | | ~0u, // no _weak_field_map_ |
313 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AddressIntMap_MapFieldEntry, key_), |
314 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AddressIntMap_MapFieldEntry, value_), |
315 | | 0, |
316 | | 1, |
317 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AddressIntMap, _has_bits_), |
318 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AddressIntMap, _internal_metadata_), |
319 | | ~0u, // no _extensions_ |
320 | | ~0u, // no _oneof_case_ |
321 | | ~0u, // no _weak_field_map_ |
322 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AddressIntMap, addr_), |
323 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AddressIntMap, numbers_), |
324 | | 0, |
325 | | ~0u, |
326 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AddressStringMap_MapFieldEntry, _has_bits_), |
327 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AddressStringMap_MapFieldEntry, _internal_metadata_), |
328 | | ~0u, // no _extensions_ |
329 | | ~0u, // no _oneof_case_ |
330 | | ~0u, // no _weak_field_map_ |
331 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AddressStringMap_MapFieldEntry, key_), |
332 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AddressStringMap_MapFieldEntry, value_), |
333 | | 0, |
334 | | 1, |
335 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AddressStringMap, _has_bits_), |
336 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AddressStringMap, _internal_metadata_), |
337 | | ~0u, // no _extensions_ |
338 | | ~0u, // no _oneof_case_ |
339 | | ~0u, // no _weak_field_map_ |
340 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AddressStringMap, addr_), |
341 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AddressStringMap, contacts_), |
342 | | 0, |
343 | | ~0u, |
344 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AddressComplex_FriendEntry_Education, _has_bits_), |
345 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AddressComplex_FriendEntry_Education, _internal_metadata_), |
346 | | ~0u, // no _extensions_ |
347 | | ~0u, // no _oneof_case_ |
348 | | ~0u, // no _weak_field_map_ |
349 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AddressComplex_FriendEntry_Education, school_), |
350 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AddressComplex_FriendEntry_Education, year_), |
351 | | 0, |
352 | | 1, |
353 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AddressComplex_FriendEntry, _has_bits_), |
354 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AddressComplex_FriendEntry, _internal_metadata_), |
355 | | ~0u, // no _extensions_ |
356 | | ~0u, // no _oneof_case_ |
357 | | ~0u, // no _weak_field_map_ |
358 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AddressComplex_FriendEntry, key_), |
359 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AddressComplex_FriendEntry, value_), |
360 | | 0, |
361 | | ~0u, |
362 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AddressComplex, _has_bits_), |
363 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AddressComplex, _internal_metadata_), |
364 | | ~0u, // no _extensions_ |
365 | | ~0u, // no _oneof_case_ |
366 | | ~0u, // no _weak_field_map_ |
367 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AddressComplex, addr_), |
368 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AddressComplex, friends_), |
369 | | 0, |
370 | | ~0u, |
371 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AddressIntMapStd_NumbersEntry_DoNotUse, _has_bits_), |
372 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AddressIntMapStd_NumbersEntry_DoNotUse, _internal_metadata_), |
373 | | ~0u, // no _extensions_ |
374 | | ~0u, // no _oneof_case_ |
375 | | ~0u, // no _weak_field_map_ |
376 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AddressIntMapStd_NumbersEntry_DoNotUse, key_), |
377 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AddressIntMapStd_NumbersEntry_DoNotUse, value_), |
378 | | 0, |
379 | | 1, |
380 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AddressIntMapStd, _has_bits_), |
381 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AddressIntMapStd, _internal_metadata_), |
382 | | ~0u, // no _extensions_ |
383 | | ~0u, // no _oneof_case_ |
384 | | ~0u, // no _weak_field_map_ |
385 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AddressIntMapStd, addr_), |
386 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AddressIntMapStd, numbers_), |
387 | | 0, |
388 | | ~0u, |
389 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AddressStringMapStd_ContactsEntry_DoNotUse, _has_bits_), |
390 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AddressStringMapStd_ContactsEntry_DoNotUse, _internal_metadata_), |
391 | | ~0u, // no _extensions_ |
392 | | ~0u, // no _oneof_case_ |
393 | | ~0u, // no _weak_field_map_ |
394 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AddressStringMapStd_ContactsEntry_DoNotUse, key_), |
395 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AddressStringMapStd_ContactsEntry_DoNotUse, value_), |
396 | | 0, |
397 | | 1, |
398 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AddressStringMapStd, _has_bits_), |
399 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AddressStringMapStd, _internal_metadata_), |
400 | | ~0u, // no _extensions_ |
401 | | ~0u, // no _oneof_case_ |
402 | | ~0u, // no _weak_field_map_ |
403 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AddressStringMapStd, addr_), |
404 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::AddressStringMapStd, contacts_), |
405 | | 0, |
406 | | ~0u, |
407 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::haha, _has_bits_), |
408 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::haha, _internal_metadata_), |
409 | | ~0u, // no _extensions_ |
410 | | ~0u, // no _oneof_case_ |
411 | | ~0u, // no _weak_field_map_ |
412 | | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::haha, a_), |
413 | | ~0u, |
414 | | }; |
415 | | static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
416 | | { 0, 6, sizeof(::AddressNoMap)}, |
417 | | { 7, 14, sizeof(::AddressIntMap_MapFieldEntry)}, |
418 | | { 16, 23, sizeof(::AddressIntMap)}, |
419 | | { 25, 32, sizeof(::AddressStringMap_MapFieldEntry)}, |
420 | | { 34, 41, sizeof(::AddressStringMap)}, |
421 | | { 43, 50, sizeof(::AddressComplex_FriendEntry_Education)}, |
422 | | { 52, 59, sizeof(::AddressComplex_FriendEntry)}, |
423 | | { 61, 68, sizeof(::AddressComplex)}, |
424 | | { 70, 77, sizeof(::AddressIntMapStd_NumbersEntry_DoNotUse)}, |
425 | | { 79, 86, sizeof(::AddressIntMapStd)}, |
426 | | { 88, 95, sizeof(::AddressStringMapStd_ContactsEntry_DoNotUse)}, |
427 | | { 97, 104, sizeof(::AddressStringMapStd)}, |
428 | | { 106, 112, sizeof(::haha)}, |
429 | | }; |
430 | | |
431 | | static ::google::protobuf::Message const * const file_default_instances[] = { |
432 | | reinterpret_cast<const ::google::protobuf::Message*>(&::_AddressNoMap_default_instance_), |
433 | | reinterpret_cast<const ::google::protobuf::Message*>(&::_AddressIntMap_MapFieldEntry_default_instance_), |
434 | | reinterpret_cast<const ::google::protobuf::Message*>(&::_AddressIntMap_default_instance_), |
435 | | reinterpret_cast<const ::google::protobuf::Message*>(&::_AddressStringMap_MapFieldEntry_default_instance_), |
436 | | reinterpret_cast<const ::google::protobuf::Message*>(&::_AddressStringMap_default_instance_), |
437 | | reinterpret_cast<const ::google::protobuf::Message*>(&::_AddressComplex_FriendEntry_Education_default_instance_), |
438 | | reinterpret_cast<const ::google::protobuf::Message*>(&::_AddressComplex_FriendEntry_default_instance_), |
439 | | reinterpret_cast<const ::google::protobuf::Message*>(&::_AddressComplex_default_instance_), |
440 | | reinterpret_cast<const ::google::protobuf::Message*>(&::_AddressIntMapStd_NumbersEntry_DoNotUse_default_instance_), |
441 | | reinterpret_cast<const ::google::protobuf::Message*>(&::_AddressIntMapStd_default_instance_), |
442 | | reinterpret_cast<const ::google::protobuf::Message*>(&::_AddressStringMapStd_ContactsEntry_DoNotUse_default_instance_), |
443 | | reinterpret_cast<const ::google::protobuf::Message*>(&::_AddressStringMapStd_default_instance_), |
444 | | reinterpret_cast<const ::google::protobuf::Message*>(&::_haha_default_instance_), |
445 | | }; |
446 | | |
447 | 0 | void protobuf_AssignDescriptors() { |
448 | 0 | AddDescriptors(); |
449 | 0 | AssignDescriptors( |
450 | 0 | "addressbook_map.proto", schemas, file_default_instances, TableStruct::offsets, |
451 | 0 | file_level_metadata, NULL, NULL); |
452 | 0 | } |
453 | | |
454 | 0 | void protobuf_AssignDescriptorsOnce() { |
455 | 0 | static ::google::protobuf::internal::once_flag once; |
456 | 0 | ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors); |
457 | 0 | } |
458 | | |
459 | | void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD; |
460 | 0 | void protobuf_RegisterTypes(const ::std::string&) { |
461 | 0 | protobuf_AssignDescriptorsOnce(); |
462 | 0 | ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 13); |
463 | 0 | } |
464 | | |
465 | 2 | void AddDescriptorsImpl() { |
466 | 2 | InitDefaults(); |
467 | 2 | static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = { |
468 | 2 | "\n\025addressbook_map.proto\"\034\n\014AddressNoMap\022" |
469 | 2 | "\014\n\004addr\030\001 \002(\t\"y\n\rAddressIntMap\022\014\n\004addr\030\001" |
470 | 2 | " \002(\t\022-\n\007numbers\030\002 \003(\0132\034.AddressIntMap.Ma" |
471 | 2 | "pFieldEntry\032+\n\rMapFieldEntry\022\013\n\003key\030\001 \002(" |
472 | 2 | "\t\022\r\n\005value\030\002 \002(\005\"\200\001\n\020AddressStringMap\022\014\n" |
473 | 2 | "\004addr\030\001 \002(\t\0221\n\010contacts\030\002 \003(\0132\037.AddressS" |
474 | 2 | "tringMap.MapFieldEntry\032+\n\rMapFieldEntry\022" |
475 | 2 | "\013\n\003key\030\001 \002(\t\022\r\n\005value\030\002 \002(\t\"\311\001\n\016AddressC" |
476 | 2 | "omplex\022\014\n\004addr\030\001 \002(\t\022,\n\007friends\030\002 \003(\0132\033." |
477 | 2 | "AddressComplex.FriendEntry\032{\n\013FriendEntr" |
478 | 2 | "y\022\013\n\003key\030\001 \002(\t\0224\n\005value\030\002 \003(\0132%.AddressC" |
479 | 2 | "omplex.FriendEntry.Education\032)\n\tEducatio" |
480 | 2 | "n\022\016\n\006school\030\001 \002(\t\022\014\n\004year\030\002 \002(\005\"\201\001\n\020Addr" |
481 | 2 | "essIntMapStd\022\014\n\004addr\030\001 \002(\t\022/\n\007numbers\030\002 " |
482 | 2 | "\003(\0132\036.AddressIntMapStd.NumbersEntry\032.\n\014N" |
483 | 2 | "umbersEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\005:" |
484 | 2 | "\0028\001\"\212\001\n\023AddressStringMapStd\022\014\n\004addr\030\001 \002(" |
485 | 2 | "\t\0224\n\010contacts\030\002 \003(\0132\".AddressStringMapSt" |
486 | 2 | "d.ContactsEntry\032/\n\rContactsEntry\022\013\n\003key\030" |
487 | 2 | "\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\021\n\004haha\022\t\n\001a\030\001 " |
488 | 2 | "\003(\005" |
489 | 2 | }; |
490 | 2 | ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( |
491 | 2 | descriptor, 803); |
492 | 2 | ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( |
493 | 2 | "addressbook_map.proto", &protobuf_RegisterTypes); |
494 | 2 | } |
495 | | |
496 | 2 | void AddDescriptors() { |
497 | 2 | static ::google::protobuf::internal::once_flag once; |
498 | 2 | ::google::protobuf::internal::call_once(once, AddDescriptorsImpl); |
499 | 2 | } |
500 | | // Force AddDescriptors() to be called at dynamic initialization time. |
501 | | struct StaticDescriptorInitializer { |
502 | 2 | StaticDescriptorInitializer() { |
503 | 2 | AddDescriptors(); |
504 | 2 | } |
505 | | } static_descriptor_initializer; |
506 | | } // namespace protobuf_addressbook_5fmap_2eproto |
507 | | |
508 | | // =================================================================== |
509 | | |
510 | 2 | void AddressNoMap::InitAsDefaultInstance() { |
511 | 2 | } |
512 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
513 | | const int AddressNoMap::kAddrFieldNumber; |
514 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
515 | | |
516 | | AddressNoMap::AddressNoMap() |
517 | 2 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
518 | 2 | ::google::protobuf::internal::InitSCC( |
519 | 2 | &protobuf_addressbook_5fmap_2eproto::scc_info_AddressNoMap.base); |
520 | 2 | SharedCtor(); |
521 | | // @@protoc_insertion_point(constructor:AddressNoMap) |
522 | 2 | } |
523 | | AddressNoMap::AddressNoMap(const AddressNoMap& from) |
524 | 0 | : ::google::protobuf::Message(), |
525 | 0 | _internal_metadata_(NULL), |
526 | 0 | _has_bits_(from._has_bits_) { |
527 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
528 | 0 | addr_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
529 | 0 | if (from.has_addr()) { |
530 | 0 | addr_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.addr_); |
531 | 0 | } |
532 | | // @@protoc_insertion_point(copy_constructor:AddressNoMap) |
533 | 0 | } |
534 | | |
535 | 2 | void AddressNoMap::SharedCtor() { |
536 | 2 | addr_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
537 | 2 | } |
538 | | |
539 | 0 | AddressNoMap::~AddressNoMap() { |
540 | | // @@protoc_insertion_point(destructor:AddressNoMap) |
541 | 0 | SharedDtor(); |
542 | 0 | } |
543 | | |
544 | 0 | void AddressNoMap::SharedDtor() { |
545 | 0 | addr_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
546 | 0 | } |
547 | | |
548 | 0 | void AddressNoMap::SetCachedSize(int size) const { |
549 | 0 | _cached_size_.Set(size); |
550 | 0 | } |
551 | 0 | const ::google::protobuf::Descriptor* AddressNoMap::descriptor() { |
552 | 0 | ::protobuf_addressbook_5fmap_2eproto::protobuf_AssignDescriptorsOnce(); |
553 | 0 | return ::protobuf_addressbook_5fmap_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
554 | 0 | } |
555 | | |
556 | 0 | const AddressNoMap& AddressNoMap::default_instance() { |
557 | 0 | ::google::protobuf::internal::InitSCC(&protobuf_addressbook_5fmap_2eproto::scc_info_AddressNoMap.base); |
558 | 0 | return *internal_default_instance(); |
559 | 0 | } |
560 | | |
561 | | |
562 | 0 | void AddressNoMap::Clear() { |
563 | | // @@protoc_insertion_point(message_clear_start:AddressNoMap) |
564 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
565 | | // Prevent compiler warnings about cached_has_bits being unused |
566 | 0 | (void) cached_has_bits; |
567 | |
|
568 | 0 | cached_has_bits = _has_bits_[0]; |
569 | 0 | if (cached_has_bits & 0x00000001u) { |
570 | 0 | addr_.ClearNonDefaultToEmptyNoArena(); |
571 | 0 | } |
572 | 0 | _has_bits_.Clear(); |
573 | 0 | _internal_metadata_.Clear(); |
574 | 0 | } |
575 | | |
576 | | bool AddressNoMap::MergePartialFromCodedStream( |
577 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
578 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
579 | 0 | ::google::protobuf::uint32 tag; |
580 | | // @@protoc_insertion_point(parse_start:AddressNoMap) |
581 | 0 | for (;;) { |
582 | 0 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
583 | 0 | tag = p.first; |
584 | 0 | if (!p.second) goto handle_unusual; |
585 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
586 | | // required string addr = 1; |
587 | 0 | case 1: { |
588 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
589 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
590 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
591 | 0 | input, this->mutable_addr())); |
592 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
593 | 0 | this->addr().data(), static_cast<int>(this->addr().length()), |
594 | 0 | ::google::protobuf::internal::WireFormat::PARSE, |
595 | 0 | "AddressNoMap.addr"); |
596 | 0 | } else { |
597 | 0 | goto handle_unusual; |
598 | 0 | } |
599 | 0 | break; |
600 | 0 | } |
601 | | |
602 | 0 | default: { |
603 | 0 | handle_unusual: |
604 | 0 | if (tag == 0) { |
605 | 0 | goto success; |
606 | 0 | } |
607 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
608 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
609 | 0 | break; |
610 | 0 | } |
611 | 0 | } |
612 | 0 | } |
613 | 0 | success: |
614 | | // @@protoc_insertion_point(parse_success:AddressNoMap) |
615 | 0 | return true; |
616 | 0 | failure: |
617 | | // @@protoc_insertion_point(parse_failure:AddressNoMap) |
618 | 0 | return false; |
619 | 0 | #undef DO_ |
620 | 0 | } |
621 | | |
622 | | void AddressNoMap::SerializeWithCachedSizes( |
623 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
624 | | // @@protoc_insertion_point(serialize_start:AddressNoMap) |
625 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
626 | 0 | (void) cached_has_bits; |
627 | |
|
628 | 0 | cached_has_bits = _has_bits_[0]; |
629 | | // required string addr = 1; |
630 | 0 | if (cached_has_bits & 0x00000001u) { |
631 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
632 | 0 | this->addr().data(), static_cast<int>(this->addr().length()), |
633 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
634 | 0 | "AddressNoMap.addr"); |
635 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
636 | 0 | 1, this->addr(), output); |
637 | 0 | } |
638 | |
|
639 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
640 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
641 | 0 | _internal_metadata_.unknown_fields(), output); |
642 | 0 | } |
643 | | // @@protoc_insertion_point(serialize_end:AddressNoMap) |
644 | 0 | } |
645 | | |
646 | | ::google::protobuf::uint8* AddressNoMap::InternalSerializeWithCachedSizesToArray( |
647 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
648 | 0 | (void)deterministic; // Unused |
649 | | // @@protoc_insertion_point(serialize_to_array_start:AddressNoMap) |
650 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
651 | 0 | (void) cached_has_bits; |
652 | |
|
653 | 0 | cached_has_bits = _has_bits_[0]; |
654 | | // required string addr = 1; |
655 | 0 | if (cached_has_bits & 0x00000001u) { |
656 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
657 | 0 | this->addr().data(), static_cast<int>(this->addr().length()), |
658 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
659 | 0 | "AddressNoMap.addr"); |
660 | 0 | target = |
661 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
662 | 0 | 1, this->addr(), target); |
663 | 0 | } |
664 | |
|
665 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
666 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
667 | 0 | _internal_metadata_.unknown_fields(), target); |
668 | 0 | } |
669 | | // @@protoc_insertion_point(serialize_to_array_end:AddressNoMap) |
670 | 0 | return target; |
671 | 0 | } |
672 | | |
673 | 0 | size_t AddressNoMap::ByteSizeLong() const { |
674 | | // @@protoc_insertion_point(message_byte_size_start:AddressNoMap) |
675 | 0 | size_t total_size = 0; |
676 | |
|
677 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
678 | 0 | total_size += |
679 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
680 | 0 | _internal_metadata_.unknown_fields()); |
681 | 0 | } |
682 | | // required string addr = 1; |
683 | 0 | if (has_addr()) { |
684 | 0 | total_size += 1 + |
685 | 0 | ::google::protobuf::internal::WireFormatLite::StringSize( |
686 | 0 | this->addr()); |
687 | 0 | } |
688 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
689 | 0 | SetCachedSize(cached_size); |
690 | 0 | return total_size; |
691 | 0 | } |
692 | | |
693 | 0 | void AddressNoMap::MergeFrom(const ::google::protobuf::Message& from) { |
694 | | // @@protoc_insertion_point(generalized_merge_from_start:AddressNoMap) |
695 | 0 | GOOGLE_DCHECK_NE(&from, this); |
696 | 0 | const AddressNoMap* source = |
697 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const AddressNoMap>( |
698 | 0 | &from); |
699 | 0 | if (source == NULL) { |
700 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:AddressNoMap) |
701 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
702 | 0 | } else { |
703 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:AddressNoMap) |
704 | 0 | MergeFrom(*source); |
705 | 0 | } |
706 | 0 | } |
707 | | |
708 | 0 | void AddressNoMap::MergeFrom(const AddressNoMap& from) { |
709 | | // @@protoc_insertion_point(class_specific_merge_from_start:AddressNoMap) |
710 | 0 | GOOGLE_DCHECK_NE(&from, this); |
711 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
712 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
713 | 0 | (void) cached_has_bits; |
714 | |
|
715 | 0 | if (from.has_addr()) { |
716 | 0 | set_has_addr(); |
717 | 0 | addr_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.addr_); |
718 | 0 | } |
719 | 0 | } |
720 | | |
721 | 0 | void AddressNoMap::CopyFrom(const ::google::protobuf::Message& from) { |
722 | | // @@protoc_insertion_point(generalized_copy_from_start:AddressNoMap) |
723 | 0 | if (&from == this) return; |
724 | 0 | Clear(); |
725 | 0 | MergeFrom(from); |
726 | 0 | } |
727 | | |
728 | 0 | void AddressNoMap::CopyFrom(const AddressNoMap& from) { |
729 | | // @@protoc_insertion_point(class_specific_copy_from_start:AddressNoMap) |
730 | 0 | if (&from == this) return; |
731 | 0 | Clear(); |
732 | 0 | MergeFrom(from); |
733 | 0 | } |
734 | | |
735 | 0 | bool AddressNoMap::IsInitialized() const { |
736 | 0 | if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; |
737 | 0 | return true; |
738 | 0 | } |
739 | | |
740 | 0 | void AddressNoMap::Swap(AddressNoMap* other) { |
741 | 0 | if (other == this) return; |
742 | 0 | InternalSwap(other); |
743 | 0 | } |
744 | 0 | void AddressNoMap::InternalSwap(AddressNoMap* other) { |
745 | 0 | using std::swap; |
746 | 0 | addr_.Swap(&other->addr_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
747 | 0 | GetArenaNoVirtual()); |
748 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
749 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
750 | 0 | } |
751 | | |
752 | 0 | ::google::protobuf::Metadata AddressNoMap::GetMetadata() const { |
753 | 0 | protobuf_addressbook_5fmap_2eproto::protobuf_AssignDescriptorsOnce(); |
754 | 0 | return ::protobuf_addressbook_5fmap_2eproto::file_level_metadata[kIndexInFileMessages]; |
755 | 0 | } |
756 | | |
757 | | |
758 | | // =================================================================== |
759 | | |
760 | 2 | void AddressIntMap_MapFieldEntry::InitAsDefaultInstance() { |
761 | 2 | } |
762 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
763 | | const int AddressIntMap_MapFieldEntry::kKeyFieldNumber; |
764 | | const int AddressIntMap_MapFieldEntry::kValueFieldNumber; |
765 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
766 | | |
767 | | AddressIntMap_MapFieldEntry::AddressIntMap_MapFieldEntry() |
768 | 2 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
769 | 2 | ::google::protobuf::internal::InitSCC( |
770 | 2 | &protobuf_addressbook_5fmap_2eproto::scc_info_AddressIntMap_MapFieldEntry.base); |
771 | 2 | SharedCtor(); |
772 | | // @@protoc_insertion_point(constructor:AddressIntMap.MapFieldEntry) |
773 | 2 | } |
774 | | AddressIntMap_MapFieldEntry::AddressIntMap_MapFieldEntry(const AddressIntMap_MapFieldEntry& from) |
775 | 0 | : ::google::protobuf::Message(), |
776 | 0 | _internal_metadata_(NULL), |
777 | 0 | _has_bits_(from._has_bits_) { |
778 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
779 | 0 | key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
780 | 0 | if (from.has_key()) { |
781 | 0 | key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); |
782 | 0 | } |
783 | 0 | value_ = from.value_; |
784 | | // @@protoc_insertion_point(copy_constructor:AddressIntMap.MapFieldEntry) |
785 | 0 | } |
786 | | |
787 | 2 | void AddressIntMap_MapFieldEntry::SharedCtor() { |
788 | 2 | key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
789 | 2 | value_ = 0; |
790 | 2 | } |
791 | | |
792 | 0 | AddressIntMap_MapFieldEntry::~AddressIntMap_MapFieldEntry() { |
793 | | // @@protoc_insertion_point(destructor:AddressIntMap.MapFieldEntry) |
794 | 0 | SharedDtor(); |
795 | 0 | } |
796 | | |
797 | 0 | void AddressIntMap_MapFieldEntry::SharedDtor() { |
798 | 0 | key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
799 | 0 | } |
800 | | |
801 | 0 | void AddressIntMap_MapFieldEntry::SetCachedSize(int size) const { |
802 | 0 | _cached_size_.Set(size); |
803 | 0 | } |
804 | 0 | const ::google::protobuf::Descriptor* AddressIntMap_MapFieldEntry::descriptor() { |
805 | 0 | ::protobuf_addressbook_5fmap_2eproto::protobuf_AssignDescriptorsOnce(); |
806 | 0 | return ::protobuf_addressbook_5fmap_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
807 | 0 | } |
808 | | |
809 | 0 | const AddressIntMap_MapFieldEntry& AddressIntMap_MapFieldEntry::default_instance() { |
810 | 0 | ::google::protobuf::internal::InitSCC(&protobuf_addressbook_5fmap_2eproto::scc_info_AddressIntMap_MapFieldEntry.base); |
811 | 0 | return *internal_default_instance(); |
812 | 0 | } |
813 | | |
814 | | |
815 | 0 | void AddressIntMap_MapFieldEntry::Clear() { |
816 | | // @@protoc_insertion_point(message_clear_start:AddressIntMap.MapFieldEntry) |
817 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
818 | | // Prevent compiler warnings about cached_has_bits being unused |
819 | 0 | (void) cached_has_bits; |
820 | |
|
821 | 0 | cached_has_bits = _has_bits_[0]; |
822 | 0 | if (cached_has_bits & 0x00000001u) { |
823 | 0 | key_.ClearNonDefaultToEmptyNoArena(); |
824 | 0 | } |
825 | 0 | value_ = 0; |
826 | 0 | _has_bits_.Clear(); |
827 | 0 | _internal_metadata_.Clear(); |
828 | 0 | } |
829 | | |
830 | | bool AddressIntMap_MapFieldEntry::MergePartialFromCodedStream( |
831 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
832 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
833 | 0 | ::google::protobuf::uint32 tag; |
834 | | // @@protoc_insertion_point(parse_start:AddressIntMap.MapFieldEntry) |
835 | 0 | for (;;) { |
836 | 0 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
837 | 0 | tag = p.first; |
838 | 0 | if (!p.second) goto handle_unusual; |
839 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
840 | | // required string key = 1; |
841 | 0 | case 1: { |
842 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
843 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
844 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
845 | 0 | input, this->mutable_key())); |
846 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
847 | 0 | this->key().data(), static_cast<int>(this->key().length()), |
848 | 0 | ::google::protobuf::internal::WireFormat::PARSE, |
849 | 0 | "AddressIntMap.MapFieldEntry.key"); |
850 | 0 | } else { |
851 | 0 | goto handle_unusual; |
852 | 0 | } |
853 | 0 | break; |
854 | 0 | } |
855 | | |
856 | | // required int32 value = 2; |
857 | 0 | case 2: { |
858 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
859 | 0 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
860 | 0 | set_has_value(); |
861 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
862 | 0 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
863 | 0 | input, &value_))); |
864 | 0 | } else { |
865 | 0 | goto handle_unusual; |
866 | 0 | } |
867 | 0 | break; |
868 | 0 | } |
869 | | |
870 | 0 | default: { |
871 | 0 | handle_unusual: |
872 | 0 | if (tag == 0) { |
873 | 0 | goto success; |
874 | 0 | } |
875 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
876 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
877 | 0 | break; |
878 | 0 | } |
879 | 0 | } |
880 | 0 | } |
881 | 0 | success: |
882 | | // @@protoc_insertion_point(parse_success:AddressIntMap.MapFieldEntry) |
883 | 0 | return true; |
884 | 0 | failure: |
885 | | // @@protoc_insertion_point(parse_failure:AddressIntMap.MapFieldEntry) |
886 | 0 | return false; |
887 | 0 | #undef DO_ |
888 | 0 | } |
889 | | |
890 | | void AddressIntMap_MapFieldEntry::SerializeWithCachedSizes( |
891 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
892 | | // @@protoc_insertion_point(serialize_start:AddressIntMap.MapFieldEntry) |
893 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
894 | 0 | (void) cached_has_bits; |
895 | |
|
896 | 0 | cached_has_bits = _has_bits_[0]; |
897 | | // required string key = 1; |
898 | 0 | if (cached_has_bits & 0x00000001u) { |
899 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
900 | 0 | this->key().data(), static_cast<int>(this->key().length()), |
901 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
902 | 0 | "AddressIntMap.MapFieldEntry.key"); |
903 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
904 | 0 | 1, this->key(), output); |
905 | 0 | } |
906 | | |
907 | | // required int32 value = 2; |
908 | 0 | if (cached_has_bits & 0x00000002u) { |
909 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->value(), output); |
910 | 0 | } |
911 | |
|
912 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
913 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
914 | 0 | _internal_metadata_.unknown_fields(), output); |
915 | 0 | } |
916 | | // @@protoc_insertion_point(serialize_end:AddressIntMap.MapFieldEntry) |
917 | 0 | } |
918 | | |
919 | | ::google::protobuf::uint8* AddressIntMap_MapFieldEntry::InternalSerializeWithCachedSizesToArray( |
920 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
921 | 0 | (void)deterministic; // Unused |
922 | | // @@protoc_insertion_point(serialize_to_array_start:AddressIntMap.MapFieldEntry) |
923 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
924 | 0 | (void) cached_has_bits; |
925 | |
|
926 | 0 | cached_has_bits = _has_bits_[0]; |
927 | | // required string key = 1; |
928 | 0 | if (cached_has_bits & 0x00000001u) { |
929 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
930 | 0 | this->key().data(), static_cast<int>(this->key().length()), |
931 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
932 | 0 | "AddressIntMap.MapFieldEntry.key"); |
933 | 0 | target = |
934 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
935 | 0 | 1, this->key(), target); |
936 | 0 | } |
937 | | |
938 | | // required int32 value = 2; |
939 | 0 | if (cached_has_bits & 0x00000002u) { |
940 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->value(), target); |
941 | 0 | } |
942 | |
|
943 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
944 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
945 | 0 | _internal_metadata_.unknown_fields(), target); |
946 | 0 | } |
947 | | // @@protoc_insertion_point(serialize_to_array_end:AddressIntMap.MapFieldEntry) |
948 | 0 | return target; |
949 | 0 | } |
950 | | |
951 | 0 | size_t AddressIntMap_MapFieldEntry::RequiredFieldsByteSizeFallback() const { |
952 | | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:AddressIntMap.MapFieldEntry) |
953 | 0 | size_t total_size = 0; |
954 | |
|
955 | 0 | if (has_key()) { |
956 | | // required string key = 1; |
957 | 0 | total_size += 1 + |
958 | 0 | ::google::protobuf::internal::WireFormatLite::StringSize( |
959 | 0 | this->key()); |
960 | 0 | } |
961 | |
|
962 | 0 | if (has_value()) { |
963 | | // required int32 value = 2; |
964 | 0 | total_size += 1 + |
965 | 0 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
966 | 0 | this->value()); |
967 | 0 | } |
968 | |
|
969 | 0 | return total_size; |
970 | 0 | } |
971 | 0 | size_t AddressIntMap_MapFieldEntry::ByteSizeLong() const { |
972 | | // @@protoc_insertion_point(message_byte_size_start:AddressIntMap.MapFieldEntry) |
973 | 0 | size_t total_size = 0; |
974 | |
|
975 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
976 | 0 | total_size += |
977 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
978 | 0 | _internal_metadata_.unknown_fields()); |
979 | 0 | } |
980 | 0 | if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. |
981 | | // required string key = 1; |
982 | 0 | total_size += 1 + |
983 | 0 | ::google::protobuf::internal::WireFormatLite::StringSize( |
984 | 0 | this->key()); |
985 | | |
986 | | // required int32 value = 2; |
987 | 0 | total_size += 1 + |
988 | 0 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
989 | 0 | this->value()); |
990 | |
|
991 | 0 | } else { |
992 | 0 | total_size += RequiredFieldsByteSizeFallback(); |
993 | 0 | } |
994 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
995 | 0 | SetCachedSize(cached_size); |
996 | 0 | return total_size; |
997 | 0 | } |
998 | | |
999 | 0 | void AddressIntMap_MapFieldEntry::MergeFrom(const ::google::protobuf::Message& from) { |
1000 | | // @@protoc_insertion_point(generalized_merge_from_start:AddressIntMap.MapFieldEntry) |
1001 | 0 | GOOGLE_DCHECK_NE(&from, this); |
1002 | 0 | const AddressIntMap_MapFieldEntry* source = |
1003 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const AddressIntMap_MapFieldEntry>( |
1004 | 0 | &from); |
1005 | 0 | if (source == NULL) { |
1006 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:AddressIntMap.MapFieldEntry) |
1007 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
1008 | 0 | } else { |
1009 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:AddressIntMap.MapFieldEntry) |
1010 | 0 | MergeFrom(*source); |
1011 | 0 | } |
1012 | 0 | } |
1013 | | |
1014 | 0 | void AddressIntMap_MapFieldEntry::MergeFrom(const AddressIntMap_MapFieldEntry& from) { |
1015 | | // @@protoc_insertion_point(class_specific_merge_from_start:AddressIntMap.MapFieldEntry) |
1016 | 0 | GOOGLE_DCHECK_NE(&from, this); |
1017 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1018 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
1019 | 0 | (void) cached_has_bits; |
1020 | |
|
1021 | 0 | cached_has_bits = from._has_bits_[0]; |
1022 | 0 | if (cached_has_bits & 3u) { |
1023 | 0 | if (cached_has_bits & 0x00000001u) { |
1024 | 0 | set_has_key(); |
1025 | 0 | key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); |
1026 | 0 | } |
1027 | 0 | if (cached_has_bits & 0x00000002u) { |
1028 | 0 | value_ = from.value_; |
1029 | 0 | } |
1030 | 0 | _has_bits_[0] |= cached_has_bits; |
1031 | 0 | } |
1032 | 0 | } |
1033 | | |
1034 | 0 | void AddressIntMap_MapFieldEntry::CopyFrom(const ::google::protobuf::Message& from) { |
1035 | | // @@protoc_insertion_point(generalized_copy_from_start:AddressIntMap.MapFieldEntry) |
1036 | 0 | if (&from == this) return; |
1037 | 0 | Clear(); |
1038 | 0 | MergeFrom(from); |
1039 | 0 | } |
1040 | | |
1041 | 0 | void AddressIntMap_MapFieldEntry::CopyFrom(const AddressIntMap_MapFieldEntry& from) { |
1042 | | // @@protoc_insertion_point(class_specific_copy_from_start:AddressIntMap.MapFieldEntry) |
1043 | 0 | if (&from == this) return; |
1044 | 0 | Clear(); |
1045 | 0 | MergeFrom(from); |
1046 | 0 | } |
1047 | | |
1048 | 0 | bool AddressIntMap_MapFieldEntry::IsInitialized() const { |
1049 | 0 | if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; |
1050 | 0 | return true; |
1051 | 0 | } |
1052 | | |
1053 | 0 | void AddressIntMap_MapFieldEntry::Swap(AddressIntMap_MapFieldEntry* other) { |
1054 | 0 | if (other == this) return; |
1055 | 0 | InternalSwap(other); |
1056 | 0 | } |
1057 | 0 | void AddressIntMap_MapFieldEntry::InternalSwap(AddressIntMap_MapFieldEntry* other) { |
1058 | 0 | using std::swap; |
1059 | 0 | key_.Swap(&other->key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
1060 | 0 | GetArenaNoVirtual()); |
1061 | 0 | swap(value_, other->value_); |
1062 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
1063 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
1064 | 0 | } |
1065 | | |
1066 | 0 | ::google::protobuf::Metadata AddressIntMap_MapFieldEntry::GetMetadata() const { |
1067 | 0 | protobuf_addressbook_5fmap_2eproto::protobuf_AssignDescriptorsOnce(); |
1068 | 0 | return ::protobuf_addressbook_5fmap_2eproto::file_level_metadata[kIndexInFileMessages]; |
1069 | 0 | } |
1070 | | |
1071 | | |
1072 | | // =================================================================== |
1073 | | |
1074 | 2 | void AddressIntMap::InitAsDefaultInstance() { |
1075 | 2 | } |
1076 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
1077 | | const int AddressIntMap::kAddrFieldNumber; |
1078 | | const int AddressIntMap::kNumbersFieldNumber; |
1079 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
1080 | | |
1081 | | AddressIntMap::AddressIntMap() |
1082 | 2 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
1083 | 2 | ::google::protobuf::internal::InitSCC( |
1084 | 2 | &protobuf_addressbook_5fmap_2eproto::scc_info_AddressIntMap.base); |
1085 | 2 | SharedCtor(); |
1086 | | // @@protoc_insertion_point(constructor:AddressIntMap) |
1087 | 2 | } |
1088 | | AddressIntMap::AddressIntMap(const AddressIntMap& from) |
1089 | 0 | : ::google::protobuf::Message(), |
1090 | 0 | _internal_metadata_(NULL), |
1091 | 0 | _has_bits_(from._has_bits_), |
1092 | 0 | numbers_(from.numbers_) { |
1093 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1094 | 0 | addr_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1095 | 0 | if (from.has_addr()) { |
1096 | 0 | addr_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.addr_); |
1097 | 0 | } |
1098 | | // @@protoc_insertion_point(copy_constructor:AddressIntMap) |
1099 | 0 | } |
1100 | | |
1101 | 2 | void AddressIntMap::SharedCtor() { |
1102 | 2 | addr_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1103 | 2 | } |
1104 | | |
1105 | 0 | AddressIntMap::~AddressIntMap() { |
1106 | | // @@protoc_insertion_point(destructor:AddressIntMap) |
1107 | 0 | SharedDtor(); |
1108 | 0 | } |
1109 | | |
1110 | 0 | void AddressIntMap::SharedDtor() { |
1111 | 0 | addr_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1112 | 0 | } |
1113 | | |
1114 | 0 | void AddressIntMap::SetCachedSize(int size) const { |
1115 | 0 | _cached_size_.Set(size); |
1116 | 0 | } |
1117 | 0 | const ::google::protobuf::Descriptor* AddressIntMap::descriptor() { |
1118 | 0 | ::protobuf_addressbook_5fmap_2eproto::protobuf_AssignDescriptorsOnce(); |
1119 | 0 | return ::protobuf_addressbook_5fmap_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
1120 | 0 | } |
1121 | | |
1122 | 0 | const AddressIntMap& AddressIntMap::default_instance() { |
1123 | 0 | ::google::protobuf::internal::InitSCC(&protobuf_addressbook_5fmap_2eproto::scc_info_AddressIntMap.base); |
1124 | 0 | return *internal_default_instance(); |
1125 | 0 | } |
1126 | | |
1127 | | |
1128 | 0 | void AddressIntMap::Clear() { |
1129 | | // @@protoc_insertion_point(message_clear_start:AddressIntMap) |
1130 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
1131 | | // Prevent compiler warnings about cached_has_bits being unused |
1132 | 0 | (void) cached_has_bits; |
1133 | |
|
1134 | 0 | numbers_.Clear(); |
1135 | 0 | cached_has_bits = _has_bits_[0]; |
1136 | 0 | if (cached_has_bits & 0x00000001u) { |
1137 | 0 | addr_.ClearNonDefaultToEmptyNoArena(); |
1138 | 0 | } |
1139 | 0 | _has_bits_.Clear(); |
1140 | 0 | _internal_metadata_.Clear(); |
1141 | 0 | } |
1142 | | |
1143 | | bool AddressIntMap::MergePartialFromCodedStream( |
1144 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
1145 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
1146 | 0 | ::google::protobuf::uint32 tag; |
1147 | | // @@protoc_insertion_point(parse_start:AddressIntMap) |
1148 | 0 | for (;;) { |
1149 | 0 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
1150 | 0 | tag = p.first; |
1151 | 0 | if (!p.second) goto handle_unusual; |
1152 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
1153 | | // required string addr = 1; |
1154 | 0 | case 1: { |
1155 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1156 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
1157 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
1158 | 0 | input, this->mutable_addr())); |
1159 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
1160 | 0 | this->addr().data(), static_cast<int>(this->addr().length()), |
1161 | 0 | ::google::protobuf::internal::WireFormat::PARSE, |
1162 | 0 | "AddressIntMap.addr"); |
1163 | 0 | } else { |
1164 | 0 | goto handle_unusual; |
1165 | 0 | } |
1166 | 0 | break; |
1167 | 0 | } |
1168 | | |
1169 | | // repeated .AddressIntMap.MapFieldEntry numbers = 2; |
1170 | 0 | case 2: { |
1171 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1172 | 0 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
1173 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
1174 | 0 | input, add_numbers())); |
1175 | 0 | } else { |
1176 | 0 | goto handle_unusual; |
1177 | 0 | } |
1178 | 0 | break; |
1179 | 0 | } |
1180 | | |
1181 | 0 | default: { |
1182 | 0 | handle_unusual: |
1183 | 0 | if (tag == 0) { |
1184 | 0 | goto success; |
1185 | 0 | } |
1186 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
1187 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
1188 | 0 | break; |
1189 | 0 | } |
1190 | 0 | } |
1191 | 0 | } |
1192 | 0 | success: |
1193 | | // @@protoc_insertion_point(parse_success:AddressIntMap) |
1194 | 0 | return true; |
1195 | 0 | failure: |
1196 | | // @@protoc_insertion_point(parse_failure:AddressIntMap) |
1197 | 0 | return false; |
1198 | 0 | #undef DO_ |
1199 | 0 | } |
1200 | | |
1201 | | void AddressIntMap::SerializeWithCachedSizes( |
1202 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
1203 | | // @@protoc_insertion_point(serialize_start:AddressIntMap) |
1204 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
1205 | 0 | (void) cached_has_bits; |
1206 | |
|
1207 | 0 | cached_has_bits = _has_bits_[0]; |
1208 | | // required string addr = 1; |
1209 | 0 | if (cached_has_bits & 0x00000001u) { |
1210 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
1211 | 0 | this->addr().data(), static_cast<int>(this->addr().length()), |
1212 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
1213 | 0 | "AddressIntMap.addr"); |
1214 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
1215 | 0 | 1, this->addr(), output); |
1216 | 0 | } |
1217 | | |
1218 | | // repeated .AddressIntMap.MapFieldEntry numbers = 2; |
1219 | 0 | for (unsigned int i = 0, |
1220 | 0 | n = static_cast<unsigned int>(this->numbers_size()); i < n; i++) { |
1221 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
1222 | 0 | 2, |
1223 | 0 | this->numbers(static_cast<int>(i)), |
1224 | 0 | output); |
1225 | 0 | } |
1226 | |
|
1227 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
1228 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
1229 | 0 | _internal_metadata_.unknown_fields(), output); |
1230 | 0 | } |
1231 | | // @@protoc_insertion_point(serialize_end:AddressIntMap) |
1232 | 0 | } |
1233 | | |
1234 | | ::google::protobuf::uint8* AddressIntMap::InternalSerializeWithCachedSizesToArray( |
1235 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
1236 | 0 | (void)deterministic; // Unused |
1237 | | // @@protoc_insertion_point(serialize_to_array_start:AddressIntMap) |
1238 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
1239 | 0 | (void) cached_has_bits; |
1240 | |
|
1241 | 0 | cached_has_bits = _has_bits_[0]; |
1242 | | // required string addr = 1; |
1243 | 0 | if (cached_has_bits & 0x00000001u) { |
1244 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
1245 | 0 | this->addr().data(), static_cast<int>(this->addr().length()), |
1246 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
1247 | 0 | "AddressIntMap.addr"); |
1248 | 0 | target = |
1249 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
1250 | 0 | 1, this->addr(), target); |
1251 | 0 | } |
1252 | | |
1253 | | // repeated .AddressIntMap.MapFieldEntry numbers = 2; |
1254 | 0 | for (unsigned int i = 0, |
1255 | 0 | n = static_cast<unsigned int>(this->numbers_size()); i < n; i++) { |
1256 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
1257 | 0 | InternalWriteMessageToArray( |
1258 | 0 | 2, this->numbers(static_cast<int>(i)), deterministic, target); |
1259 | 0 | } |
1260 | |
|
1261 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
1262 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
1263 | 0 | _internal_metadata_.unknown_fields(), target); |
1264 | 0 | } |
1265 | | // @@protoc_insertion_point(serialize_to_array_end:AddressIntMap) |
1266 | 0 | return target; |
1267 | 0 | } |
1268 | | |
1269 | 0 | size_t AddressIntMap::ByteSizeLong() const { |
1270 | | // @@protoc_insertion_point(message_byte_size_start:AddressIntMap) |
1271 | 0 | size_t total_size = 0; |
1272 | |
|
1273 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
1274 | 0 | total_size += |
1275 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
1276 | 0 | _internal_metadata_.unknown_fields()); |
1277 | 0 | } |
1278 | | // required string addr = 1; |
1279 | 0 | if (has_addr()) { |
1280 | 0 | total_size += 1 + |
1281 | 0 | ::google::protobuf::internal::WireFormatLite::StringSize( |
1282 | 0 | this->addr()); |
1283 | 0 | } |
1284 | | // repeated .AddressIntMap.MapFieldEntry numbers = 2; |
1285 | 0 | { |
1286 | 0 | unsigned int count = static_cast<unsigned int>(this->numbers_size()); |
1287 | 0 | total_size += 1UL * count; |
1288 | 0 | for (unsigned int i = 0; i < count; i++) { |
1289 | 0 | total_size += |
1290 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
1291 | 0 | this->numbers(static_cast<int>(i))); |
1292 | 0 | } |
1293 | 0 | } |
1294 | |
|
1295 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
1296 | 0 | SetCachedSize(cached_size); |
1297 | 0 | return total_size; |
1298 | 0 | } |
1299 | | |
1300 | 0 | void AddressIntMap::MergeFrom(const ::google::protobuf::Message& from) { |
1301 | | // @@protoc_insertion_point(generalized_merge_from_start:AddressIntMap) |
1302 | 0 | GOOGLE_DCHECK_NE(&from, this); |
1303 | 0 | const AddressIntMap* source = |
1304 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const AddressIntMap>( |
1305 | 0 | &from); |
1306 | 0 | if (source == NULL) { |
1307 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:AddressIntMap) |
1308 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
1309 | 0 | } else { |
1310 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:AddressIntMap) |
1311 | 0 | MergeFrom(*source); |
1312 | 0 | } |
1313 | 0 | } |
1314 | | |
1315 | 0 | void AddressIntMap::MergeFrom(const AddressIntMap& from) { |
1316 | | // @@protoc_insertion_point(class_specific_merge_from_start:AddressIntMap) |
1317 | 0 | GOOGLE_DCHECK_NE(&from, this); |
1318 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1319 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
1320 | 0 | (void) cached_has_bits; |
1321 | |
|
1322 | 0 | numbers_.MergeFrom(from.numbers_); |
1323 | 0 | if (from.has_addr()) { |
1324 | 0 | set_has_addr(); |
1325 | 0 | addr_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.addr_); |
1326 | 0 | } |
1327 | 0 | } |
1328 | | |
1329 | 0 | void AddressIntMap::CopyFrom(const ::google::protobuf::Message& from) { |
1330 | | // @@protoc_insertion_point(generalized_copy_from_start:AddressIntMap) |
1331 | 0 | if (&from == this) return; |
1332 | 0 | Clear(); |
1333 | 0 | MergeFrom(from); |
1334 | 0 | } |
1335 | | |
1336 | 0 | void AddressIntMap::CopyFrom(const AddressIntMap& from) { |
1337 | | // @@protoc_insertion_point(class_specific_copy_from_start:AddressIntMap) |
1338 | 0 | if (&from == this) return; |
1339 | 0 | Clear(); |
1340 | 0 | MergeFrom(from); |
1341 | 0 | } |
1342 | | |
1343 | 0 | bool AddressIntMap::IsInitialized() const { |
1344 | 0 | if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; |
1345 | 0 | if (!::google::protobuf::internal::AllAreInitialized(this->numbers())) return false; |
1346 | 0 | return true; |
1347 | 0 | } |
1348 | | |
1349 | 0 | void AddressIntMap::Swap(AddressIntMap* other) { |
1350 | 0 | if (other == this) return; |
1351 | 0 | InternalSwap(other); |
1352 | 0 | } |
1353 | 0 | void AddressIntMap::InternalSwap(AddressIntMap* other) { |
1354 | 0 | using std::swap; |
1355 | 0 | CastToBase(&numbers_)->InternalSwap(CastToBase(&other->numbers_)); |
1356 | 0 | addr_.Swap(&other->addr_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
1357 | 0 | GetArenaNoVirtual()); |
1358 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
1359 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
1360 | 0 | } |
1361 | | |
1362 | 0 | ::google::protobuf::Metadata AddressIntMap::GetMetadata() const { |
1363 | 0 | protobuf_addressbook_5fmap_2eproto::protobuf_AssignDescriptorsOnce(); |
1364 | 0 | return ::protobuf_addressbook_5fmap_2eproto::file_level_metadata[kIndexInFileMessages]; |
1365 | 0 | } |
1366 | | |
1367 | | |
1368 | | // =================================================================== |
1369 | | |
1370 | 2 | void AddressStringMap_MapFieldEntry::InitAsDefaultInstance() { |
1371 | 2 | } |
1372 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
1373 | | const int AddressStringMap_MapFieldEntry::kKeyFieldNumber; |
1374 | | const int AddressStringMap_MapFieldEntry::kValueFieldNumber; |
1375 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
1376 | | |
1377 | | AddressStringMap_MapFieldEntry::AddressStringMap_MapFieldEntry() |
1378 | 2 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
1379 | 2 | ::google::protobuf::internal::InitSCC( |
1380 | 2 | &protobuf_addressbook_5fmap_2eproto::scc_info_AddressStringMap_MapFieldEntry.base); |
1381 | 2 | SharedCtor(); |
1382 | | // @@protoc_insertion_point(constructor:AddressStringMap.MapFieldEntry) |
1383 | 2 | } |
1384 | | AddressStringMap_MapFieldEntry::AddressStringMap_MapFieldEntry(const AddressStringMap_MapFieldEntry& from) |
1385 | 0 | : ::google::protobuf::Message(), |
1386 | 0 | _internal_metadata_(NULL), |
1387 | 0 | _has_bits_(from._has_bits_) { |
1388 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1389 | 0 | key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1390 | 0 | if (from.has_key()) { |
1391 | 0 | key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); |
1392 | 0 | } |
1393 | 0 | value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1394 | 0 | if (from.has_value()) { |
1395 | 0 | value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_); |
1396 | 0 | } |
1397 | | // @@protoc_insertion_point(copy_constructor:AddressStringMap.MapFieldEntry) |
1398 | 0 | } |
1399 | | |
1400 | 2 | void AddressStringMap_MapFieldEntry::SharedCtor() { |
1401 | 2 | key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1402 | 2 | value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1403 | 2 | } |
1404 | | |
1405 | 0 | AddressStringMap_MapFieldEntry::~AddressStringMap_MapFieldEntry() { |
1406 | | // @@protoc_insertion_point(destructor:AddressStringMap.MapFieldEntry) |
1407 | 0 | SharedDtor(); |
1408 | 0 | } |
1409 | | |
1410 | 0 | void AddressStringMap_MapFieldEntry::SharedDtor() { |
1411 | 0 | key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1412 | 0 | value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1413 | 0 | } |
1414 | | |
1415 | 0 | void AddressStringMap_MapFieldEntry::SetCachedSize(int size) const { |
1416 | 0 | _cached_size_.Set(size); |
1417 | 0 | } |
1418 | 0 | const ::google::protobuf::Descriptor* AddressStringMap_MapFieldEntry::descriptor() { |
1419 | 0 | ::protobuf_addressbook_5fmap_2eproto::protobuf_AssignDescriptorsOnce(); |
1420 | 0 | return ::protobuf_addressbook_5fmap_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
1421 | 0 | } |
1422 | | |
1423 | 0 | const AddressStringMap_MapFieldEntry& AddressStringMap_MapFieldEntry::default_instance() { |
1424 | 0 | ::google::protobuf::internal::InitSCC(&protobuf_addressbook_5fmap_2eproto::scc_info_AddressStringMap_MapFieldEntry.base); |
1425 | 0 | return *internal_default_instance(); |
1426 | 0 | } |
1427 | | |
1428 | | |
1429 | 0 | void AddressStringMap_MapFieldEntry::Clear() { |
1430 | | // @@protoc_insertion_point(message_clear_start:AddressStringMap.MapFieldEntry) |
1431 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
1432 | | // Prevent compiler warnings about cached_has_bits being unused |
1433 | 0 | (void) cached_has_bits; |
1434 | |
|
1435 | 0 | cached_has_bits = _has_bits_[0]; |
1436 | 0 | if (cached_has_bits & 3u) { |
1437 | 0 | if (cached_has_bits & 0x00000001u) { |
1438 | 0 | key_.ClearNonDefaultToEmptyNoArena(); |
1439 | 0 | } |
1440 | 0 | if (cached_has_bits & 0x00000002u) { |
1441 | 0 | value_.ClearNonDefaultToEmptyNoArena(); |
1442 | 0 | } |
1443 | 0 | } |
1444 | 0 | _has_bits_.Clear(); |
1445 | 0 | _internal_metadata_.Clear(); |
1446 | 0 | } |
1447 | | |
1448 | | bool AddressStringMap_MapFieldEntry::MergePartialFromCodedStream( |
1449 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
1450 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
1451 | 0 | ::google::protobuf::uint32 tag; |
1452 | | // @@protoc_insertion_point(parse_start:AddressStringMap.MapFieldEntry) |
1453 | 0 | for (;;) { |
1454 | 0 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
1455 | 0 | tag = p.first; |
1456 | 0 | if (!p.second) goto handle_unusual; |
1457 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
1458 | | // required string key = 1; |
1459 | 0 | case 1: { |
1460 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1461 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
1462 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
1463 | 0 | input, this->mutable_key())); |
1464 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
1465 | 0 | this->key().data(), static_cast<int>(this->key().length()), |
1466 | 0 | ::google::protobuf::internal::WireFormat::PARSE, |
1467 | 0 | "AddressStringMap.MapFieldEntry.key"); |
1468 | 0 | } else { |
1469 | 0 | goto handle_unusual; |
1470 | 0 | } |
1471 | 0 | break; |
1472 | 0 | } |
1473 | | |
1474 | | // required string value = 2; |
1475 | 0 | case 2: { |
1476 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1477 | 0 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
1478 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
1479 | 0 | input, this->mutable_value())); |
1480 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
1481 | 0 | this->value().data(), static_cast<int>(this->value().length()), |
1482 | 0 | ::google::protobuf::internal::WireFormat::PARSE, |
1483 | 0 | "AddressStringMap.MapFieldEntry.value"); |
1484 | 0 | } else { |
1485 | 0 | goto handle_unusual; |
1486 | 0 | } |
1487 | 0 | break; |
1488 | 0 | } |
1489 | | |
1490 | 0 | default: { |
1491 | 0 | handle_unusual: |
1492 | 0 | if (tag == 0) { |
1493 | 0 | goto success; |
1494 | 0 | } |
1495 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
1496 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
1497 | 0 | break; |
1498 | 0 | } |
1499 | 0 | } |
1500 | 0 | } |
1501 | 0 | success: |
1502 | | // @@protoc_insertion_point(parse_success:AddressStringMap.MapFieldEntry) |
1503 | 0 | return true; |
1504 | 0 | failure: |
1505 | | // @@protoc_insertion_point(parse_failure:AddressStringMap.MapFieldEntry) |
1506 | 0 | return false; |
1507 | 0 | #undef DO_ |
1508 | 0 | } |
1509 | | |
1510 | | void AddressStringMap_MapFieldEntry::SerializeWithCachedSizes( |
1511 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
1512 | | // @@protoc_insertion_point(serialize_start:AddressStringMap.MapFieldEntry) |
1513 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
1514 | 0 | (void) cached_has_bits; |
1515 | |
|
1516 | 0 | cached_has_bits = _has_bits_[0]; |
1517 | | // required string key = 1; |
1518 | 0 | if (cached_has_bits & 0x00000001u) { |
1519 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
1520 | 0 | this->key().data(), static_cast<int>(this->key().length()), |
1521 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
1522 | 0 | "AddressStringMap.MapFieldEntry.key"); |
1523 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
1524 | 0 | 1, this->key(), output); |
1525 | 0 | } |
1526 | | |
1527 | | // required string value = 2; |
1528 | 0 | if (cached_has_bits & 0x00000002u) { |
1529 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
1530 | 0 | this->value().data(), static_cast<int>(this->value().length()), |
1531 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
1532 | 0 | "AddressStringMap.MapFieldEntry.value"); |
1533 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
1534 | 0 | 2, this->value(), output); |
1535 | 0 | } |
1536 | |
|
1537 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
1538 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
1539 | 0 | _internal_metadata_.unknown_fields(), output); |
1540 | 0 | } |
1541 | | // @@protoc_insertion_point(serialize_end:AddressStringMap.MapFieldEntry) |
1542 | 0 | } |
1543 | | |
1544 | | ::google::protobuf::uint8* AddressStringMap_MapFieldEntry::InternalSerializeWithCachedSizesToArray( |
1545 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
1546 | 0 | (void)deterministic; // Unused |
1547 | | // @@protoc_insertion_point(serialize_to_array_start:AddressStringMap.MapFieldEntry) |
1548 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
1549 | 0 | (void) cached_has_bits; |
1550 | |
|
1551 | 0 | cached_has_bits = _has_bits_[0]; |
1552 | | // required string key = 1; |
1553 | 0 | if (cached_has_bits & 0x00000001u) { |
1554 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
1555 | 0 | this->key().data(), static_cast<int>(this->key().length()), |
1556 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
1557 | 0 | "AddressStringMap.MapFieldEntry.key"); |
1558 | 0 | target = |
1559 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
1560 | 0 | 1, this->key(), target); |
1561 | 0 | } |
1562 | | |
1563 | | // required string value = 2; |
1564 | 0 | if (cached_has_bits & 0x00000002u) { |
1565 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
1566 | 0 | this->value().data(), static_cast<int>(this->value().length()), |
1567 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
1568 | 0 | "AddressStringMap.MapFieldEntry.value"); |
1569 | 0 | target = |
1570 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
1571 | 0 | 2, this->value(), target); |
1572 | 0 | } |
1573 | |
|
1574 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
1575 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
1576 | 0 | _internal_metadata_.unknown_fields(), target); |
1577 | 0 | } |
1578 | | // @@protoc_insertion_point(serialize_to_array_end:AddressStringMap.MapFieldEntry) |
1579 | 0 | return target; |
1580 | 0 | } |
1581 | | |
1582 | 0 | size_t AddressStringMap_MapFieldEntry::RequiredFieldsByteSizeFallback() const { |
1583 | | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:AddressStringMap.MapFieldEntry) |
1584 | 0 | size_t total_size = 0; |
1585 | |
|
1586 | 0 | if (has_key()) { |
1587 | | // required string key = 1; |
1588 | 0 | total_size += 1 + |
1589 | 0 | ::google::protobuf::internal::WireFormatLite::StringSize( |
1590 | 0 | this->key()); |
1591 | 0 | } |
1592 | |
|
1593 | 0 | if (has_value()) { |
1594 | | // required string value = 2; |
1595 | 0 | total_size += 1 + |
1596 | 0 | ::google::protobuf::internal::WireFormatLite::StringSize( |
1597 | 0 | this->value()); |
1598 | 0 | } |
1599 | |
|
1600 | 0 | return total_size; |
1601 | 0 | } |
1602 | 0 | size_t AddressStringMap_MapFieldEntry::ByteSizeLong() const { |
1603 | | // @@protoc_insertion_point(message_byte_size_start:AddressStringMap.MapFieldEntry) |
1604 | 0 | size_t total_size = 0; |
1605 | |
|
1606 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
1607 | 0 | total_size += |
1608 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
1609 | 0 | _internal_metadata_.unknown_fields()); |
1610 | 0 | } |
1611 | 0 | if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. |
1612 | | // required string key = 1; |
1613 | 0 | total_size += 1 + |
1614 | 0 | ::google::protobuf::internal::WireFormatLite::StringSize( |
1615 | 0 | this->key()); |
1616 | | |
1617 | | // required string value = 2; |
1618 | 0 | total_size += 1 + |
1619 | 0 | ::google::protobuf::internal::WireFormatLite::StringSize( |
1620 | 0 | this->value()); |
1621 | |
|
1622 | 0 | } else { |
1623 | 0 | total_size += RequiredFieldsByteSizeFallback(); |
1624 | 0 | } |
1625 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
1626 | 0 | SetCachedSize(cached_size); |
1627 | 0 | return total_size; |
1628 | 0 | } |
1629 | | |
1630 | 0 | void AddressStringMap_MapFieldEntry::MergeFrom(const ::google::protobuf::Message& from) { |
1631 | | // @@protoc_insertion_point(generalized_merge_from_start:AddressStringMap.MapFieldEntry) |
1632 | 0 | GOOGLE_DCHECK_NE(&from, this); |
1633 | 0 | const AddressStringMap_MapFieldEntry* source = |
1634 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const AddressStringMap_MapFieldEntry>( |
1635 | 0 | &from); |
1636 | 0 | if (source == NULL) { |
1637 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:AddressStringMap.MapFieldEntry) |
1638 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
1639 | 0 | } else { |
1640 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:AddressStringMap.MapFieldEntry) |
1641 | 0 | MergeFrom(*source); |
1642 | 0 | } |
1643 | 0 | } |
1644 | | |
1645 | 0 | void AddressStringMap_MapFieldEntry::MergeFrom(const AddressStringMap_MapFieldEntry& from) { |
1646 | | // @@protoc_insertion_point(class_specific_merge_from_start:AddressStringMap.MapFieldEntry) |
1647 | 0 | GOOGLE_DCHECK_NE(&from, this); |
1648 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1649 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
1650 | 0 | (void) cached_has_bits; |
1651 | |
|
1652 | 0 | cached_has_bits = from._has_bits_[0]; |
1653 | 0 | if (cached_has_bits & 3u) { |
1654 | 0 | if (cached_has_bits & 0x00000001u) { |
1655 | 0 | set_has_key(); |
1656 | 0 | key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); |
1657 | 0 | } |
1658 | 0 | if (cached_has_bits & 0x00000002u) { |
1659 | 0 | set_has_value(); |
1660 | 0 | value_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.value_); |
1661 | 0 | } |
1662 | 0 | } |
1663 | 0 | } |
1664 | | |
1665 | 0 | void AddressStringMap_MapFieldEntry::CopyFrom(const ::google::protobuf::Message& from) { |
1666 | | // @@protoc_insertion_point(generalized_copy_from_start:AddressStringMap.MapFieldEntry) |
1667 | 0 | if (&from == this) return; |
1668 | 0 | Clear(); |
1669 | 0 | MergeFrom(from); |
1670 | 0 | } |
1671 | | |
1672 | 0 | void AddressStringMap_MapFieldEntry::CopyFrom(const AddressStringMap_MapFieldEntry& from) { |
1673 | | // @@protoc_insertion_point(class_specific_copy_from_start:AddressStringMap.MapFieldEntry) |
1674 | 0 | if (&from == this) return; |
1675 | 0 | Clear(); |
1676 | 0 | MergeFrom(from); |
1677 | 0 | } |
1678 | | |
1679 | 0 | bool AddressStringMap_MapFieldEntry::IsInitialized() const { |
1680 | 0 | if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; |
1681 | 0 | return true; |
1682 | 0 | } |
1683 | | |
1684 | 0 | void AddressStringMap_MapFieldEntry::Swap(AddressStringMap_MapFieldEntry* other) { |
1685 | 0 | if (other == this) return; |
1686 | 0 | InternalSwap(other); |
1687 | 0 | } |
1688 | 0 | void AddressStringMap_MapFieldEntry::InternalSwap(AddressStringMap_MapFieldEntry* other) { |
1689 | 0 | using std::swap; |
1690 | 0 | key_.Swap(&other->key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
1691 | 0 | GetArenaNoVirtual()); |
1692 | 0 | value_.Swap(&other->value_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
1693 | 0 | GetArenaNoVirtual()); |
1694 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
1695 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
1696 | 0 | } |
1697 | | |
1698 | 0 | ::google::protobuf::Metadata AddressStringMap_MapFieldEntry::GetMetadata() const { |
1699 | 0 | protobuf_addressbook_5fmap_2eproto::protobuf_AssignDescriptorsOnce(); |
1700 | 0 | return ::protobuf_addressbook_5fmap_2eproto::file_level_metadata[kIndexInFileMessages]; |
1701 | 0 | } |
1702 | | |
1703 | | |
1704 | | // =================================================================== |
1705 | | |
1706 | 2 | void AddressStringMap::InitAsDefaultInstance() { |
1707 | 2 | } |
1708 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
1709 | | const int AddressStringMap::kAddrFieldNumber; |
1710 | | const int AddressStringMap::kContactsFieldNumber; |
1711 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
1712 | | |
1713 | | AddressStringMap::AddressStringMap() |
1714 | 2 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
1715 | 2 | ::google::protobuf::internal::InitSCC( |
1716 | 2 | &protobuf_addressbook_5fmap_2eproto::scc_info_AddressStringMap.base); |
1717 | 2 | SharedCtor(); |
1718 | | // @@protoc_insertion_point(constructor:AddressStringMap) |
1719 | 2 | } |
1720 | | AddressStringMap::AddressStringMap(const AddressStringMap& from) |
1721 | 0 | : ::google::protobuf::Message(), |
1722 | 0 | _internal_metadata_(NULL), |
1723 | 0 | _has_bits_(from._has_bits_), |
1724 | 0 | contacts_(from.contacts_) { |
1725 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1726 | 0 | addr_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1727 | 0 | if (from.has_addr()) { |
1728 | 0 | addr_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.addr_); |
1729 | 0 | } |
1730 | | // @@protoc_insertion_point(copy_constructor:AddressStringMap) |
1731 | 0 | } |
1732 | | |
1733 | 2 | void AddressStringMap::SharedCtor() { |
1734 | 2 | addr_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1735 | 2 | } |
1736 | | |
1737 | 0 | AddressStringMap::~AddressStringMap() { |
1738 | | // @@protoc_insertion_point(destructor:AddressStringMap) |
1739 | 0 | SharedDtor(); |
1740 | 0 | } |
1741 | | |
1742 | 0 | void AddressStringMap::SharedDtor() { |
1743 | 0 | addr_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1744 | 0 | } |
1745 | | |
1746 | 0 | void AddressStringMap::SetCachedSize(int size) const { |
1747 | 0 | _cached_size_.Set(size); |
1748 | 0 | } |
1749 | 0 | const ::google::protobuf::Descriptor* AddressStringMap::descriptor() { |
1750 | 0 | ::protobuf_addressbook_5fmap_2eproto::protobuf_AssignDescriptorsOnce(); |
1751 | 0 | return ::protobuf_addressbook_5fmap_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
1752 | 0 | } |
1753 | | |
1754 | 0 | const AddressStringMap& AddressStringMap::default_instance() { |
1755 | 0 | ::google::protobuf::internal::InitSCC(&protobuf_addressbook_5fmap_2eproto::scc_info_AddressStringMap.base); |
1756 | 0 | return *internal_default_instance(); |
1757 | 0 | } |
1758 | | |
1759 | | |
1760 | 0 | void AddressStringMap::Clear() { |
1761 | | // @@protoc_insertion_point(message_clear_start:AddressStringMap) |
1762 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
1763 | | // Prevent compiler warnings about cached_has_bits being unused |
1764 | 0 | (void) cached_has_bits; |
1765 | |
|
1766 | 0 | contacts_.Clear(); |
1767 | 0 | cached_has_bits = _has_bits_[0]; |
1768 | 0 | if (cached_has_bits & 0x00000001u) { |
1769 | 0 | addr_.ClearNonDefaultToEmptyNoArena(); |
1770 | 0 | } |
1771 | 0 | _has_bits_.Clear(); |
1772 | 0 | _internal_metadata_.Clear(); |
1773 | 0 | } |
1774 | | |
1775 | | bool AddressStringMap::MergePartialFromCodedStream( |
1776 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
1777 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
1778 | 0 | ::google::protobuf::uint32 tag; |
1779 | | // @@protoc_insertion_point(parse_start:AddressStringMap) |
1780 | 0 | for (;;) { |
1781 | 0 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
1782 | 0 | tag = p.first; |
1783 | 0 | if (!p.second) goto handle_unusual; |
1784 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
1785 | | // required string addr = 1; |
1786 | 0 | case 1: { |
1787 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1788 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
1789 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
1790 | 0 | input, this->mutable_addr())); |
1791 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
1792 | 0 | this->addr().data(), static_cast<int>(this->addr().length()), |
1793 | 0 | ::google::protobuf::internal::WireFormat::PARSE, |
1794 | 0 | "AddressStringMap.addr"); |
1795 | 0 | } else { |
1796 | 0 | goto handle_unusual; |
1797 | 0 | } |
1798 | 0 | break; |
1799 | 0 | } |
1800 | | |
1801 | | // repeated .AddressStringMap.MapFieldEntry contacts = 2; |
1802 | 0 | case 2: { |
1803 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
1804 | 0 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
1805 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
1806 | 0 | input, add_contacts())); |
1807 | 0 | } else { |
1808 | 0 | goto handle_unusual; |
1809 | 0 | } |
1810 | 0 | break; |
1811 | 0 | } |
1812 | | |
1813 | 0 | default: { |
1814 | 0 | handle_unusual: |
1815 | 0 | if (tag == 0) { |
1816 | 0 | goto success; |
1817 | 0 | } |
1818 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
1819 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
1820 | 0 | break; |
1821 | 0 | } |
1822 | 0 | } |
1823 | 0 | } |
1824 | 0 | success: |
1825 | | // @@protoc_insertion_point(parse_success:AddressStringMap) |
1826 | 0 | return true; |
1827 | 0 | failure: |
1828 | | // @@protoc_insertion_point(parse_failure:AddressStringMap) |
1829 | 0 | return false; |
1830 | 0 | #undef DO_ |
1831 | 0 | } |
1832 | | |
1833 | | void AddressStringMap::SerializeWithCachedSizes( |
1834 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
1835 | | // @@protoc_insertion_point(serialize_start:AddressStringMap) |
1836 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
1837 | 0 | (void) cached_has_bits; |
1838 | |
|
1839 | 0 | cached_has_bits = _has_bits_[0]; |
1840 | | // required string addr = 1; |
1841 | 0 | if (cached_has_bits & 0x00000001u) { |
1842 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
1843 | 0 | this->addr().data(), static_cast<int>(this->addr().length()), |
1844 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
1845 | 0 | "AddressStringMap.addr"); |
1846 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
1847 | 0 | 1, this->addr(), output); |
1848 | 0 | } |
1849 | | |
1850 | | // repeated .AddressStringMap.MapFieldEntry contacts = 2; |
1851 | 0 | for (unsigned int i = 0, |
1852 | 0 | n = static_cast<unsigned int>(this->contacts_size()); i < n; i++) { |
1853 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
1854 | 0 | 2, |
1855 | 0 | this->contacts(static_cast<int>(i)), |
1856 | 0 | output); |
1857 | 0 | } |
1858 | |
|
1859 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
1860 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
1861 | 0 | _internal_metadata_.unknown_fields(), output); |
1862 | 0 | } |
1863 | | // @@protoc_insertion_point(serialize_end:AddressStringMap) |
1864 | 0 | } |
1865 | | |
1866 | | ::google::protobuf::uint8* AddressStringMap::InternalSerializeWithCachedSizesToArray( |
1867 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
1868 | 0 | (void)deterministic; // Unused |
1869 | | // @@protoc_insertion_point(serialize_to_array_start:AddressStringMap) |
1870 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
1871 | 0 | (void) cached_has_bits; |
1872 | |
|
1873 | 0 | cached_has_bits = _has_bits_[0]; |
1874 | | // required string addr = 1; |
1875 | 0 | if (cached_has_bits & 0x00000001u) { |
1876 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
1877 | 0 | this->addr().data(), static_cast<int>(this->addr().length()), |
1878 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
1879 | 0 | "AddressStringMap.addr"); |
1880 | 0 | target = |
1881 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
1882 | 0 | 1, this->addr(), target); |
1883 | 0 | } |
1884 | | |
1885 | | // repeated .AddressStringMap.MapFieldEntry contacts = 2; |
1886 | 0 | for (unsigned int i = 0, |
1887 | 0 | n = static_cast<unsigned int>(this->contacts_size()); i < n; i++) { |
1888 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
1889 | 0 | InternalWriteMessageToArray( |
1890 | 0 | 2, this->contacts(static_cast<int>(i)), deterministic, target); |
1891 | 0 | } |
1892 | |
|
1893 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
1894 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
1895 | 0 | _internal_metadata_.unknown_fields(), target); |
1896 | 0 | } |
1897 | | // @@protoc_insertion_point(serialize_to_array_end:AddressStringMap) |
1898 | 0 | return target; |
1899 | 0 | } |
1900 | | |
1901 | 0 | size_t AddressStringMap::ByteSizeLong() const { |
1902 | | // @@protoc_insertion_point(message_byte_size_start:AddressStringMap) |
1903 | 0 | size_t total_size = 0; |
1904 | |
|
1905 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
1906 | 0 | total_size += |
1907 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
1908 | 0 | _internal_metadata_.unknown_fields()); |
1909 | 0 | } |
1910 | | // required string addr = 1; |
1911 | 0 | if (has_addr()) { |
1912 | 0 | total_size += 1 + |
1913 | 0 | ::google::protobuf::internal::WireFormatLite::StringSize( |
1914 | 0 | this->addr()); |
1915 | 0 | } |
1916 | | // repeated .AddressStringMap.MapFieldEntry contacts = 2; |
1917 | 0 | { |
1918 | 0 | unsigned int count = static_cast<unsigned int>(this->contacts_size()); |
1919 | 0 | total_size += 1UL * count; |
1920 | 0 | for (unsigned int i = 0; i < count; i++) { |
1921 | 0 | total_size += |
1922 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
1923 | 0 | this->contacts(static_cast<int>(i))); |
1924 | 0 | } |
1925 | 0 | } |
1926 | |
|
1927 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
1928 | 0 | SetCachedSize(cached_size); |
1929 | 0 | return total_size; |
1930 | 0 | } |
1931 | | |
1932 | 0 | void AddressStringMap::MergeFrom(const ::google::protobuf::Message& from) { |
1933 | | // @@protoc_insertion_point(generalized_merge_from_start:AddressStringMap) |
1934 | 0 | GOOGLE_DCHECK_NE(&from, this); |
1935 | 0 | const AddressStringMap* source = |
1936 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const AddressStringMap>( |
1937 | 0 | &from); |
1938 | 0 | if (source == NULL) { |
1939 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:AddressStringMap) |
1940 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
1941 | 0 | } else { |
1942 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:AddressStringMap) |
1943 | 0 | MergeFrom(*source); |
1944 | 0 | } |
1945 | 0 | } |
1946 | | |
1947 | 0 | void AddressStringMap::MergeFrom(const AddressStringMap& from) { |
1948 | | // @@protoc_insertion_point(class_specific_merge_from_start:AddressStringMap) |
1949 | 0 | GOOGLE_DCHECK_NE(&from, this); |
1950 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1951 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
1952 | 0 | (void) cached_has_bits; |
1953 | |
|
1954 | 0 | contacts_.MergeFrom(from.contacts_); |
1955 | 0 | if (from.has_addr()) { |
1956 | 0 | set_has_addr(); |
1957 | 0 | addr_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.addr_); |
1958 | 0 | } |
1959 | 0 | } |
1960 | | |
1961 | 0 | void AddressStringMap::CopyFrom(const ::google::protobuf::Message& from) { |
1962 | | // @@protoc_insertion_point(generalized_copy_from_start:AddressStringMap) |
1963 | 0 | if (&from == this) return; |
1964 | 0 | Clear(); |
1965 | 0 | MergeFrom(from); |
1966 | 0 | } |
1967 | | |
1968 | 0 | void AddressStringMap::CopyFrom(const AddressStringMap& from) { |
1969 | | // @@protoc_insertion_point(class_specific_copy_from_start:AddressStringMap) |
1970 | 0 | if (&from == this) return; |
1971 | 0 | Clear(); |
1972 | 0 | MergeFrom(from); |
1973 | 0 | } |
1974 | | |
1975 | 0 | bool AddressStringMap::IsInitialized() const { |
1976 | 0 | if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; |
1977 | 0 | if (!::google::protobuf::internal::AllAreInitialized(this->contacts())) return false; |
1978 | 0 | return true; |
1979 | 0 | } |
1980 | | |
1981 | 0 | void AddressStringMap::Swap(AddressStringMap* other) { |
1982 | 0 | if (other == this) return; |
1983 | 0 | InternalSwap(other); |
1984 | 0 | } |
1985 | 0 | void AddressStringMap::InternalSwap(AddressStringMap* other) { |
1986 | 0 | using std::swap; |
1987 | 0 | CastToBase(&contacts_)->InternalSwap(CastToBase(&other->contacts_)); |
1988 | 0 | addr_.Swap(&other->addr_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
1989 | 0 | GetArenaNoVirtual()); |
1990 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
1991 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
1992 | 0 | } |
1993 | | |
1994 | 0 | ::google::protobuf::Metadata AddressStringMap::GetMetadata() const { |
1995 | 0 | protobuf_addressbook_5fmap_2eproto::protobuf_AssignDescriptorsOnce(); |
1996 | 0 | return ::protobuf_addressbook_5fmap_2eproto::file_level_metadata[kIndexInFileMessages]; |
1997 | 0 | } |
1998 | | |
1999 | | |
2000 | | // =================================================================== |
2001 | | |
2002 | 2 | void AddressComplex_FriendEntry_Education::InitAsDefaultInstance() { |
2003 | 2 | } |
2004 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
2005 | | const int AddressComplex_FriendEntry_Education::kSchoolFieldNumber; |
2006 | | const int AddressComplex_FriendEntry_Education::kYearFieldNumber; |
2007 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
2008 | | |
2009 | | AddressComplex_FriendEntry_Education::AddressComplex_FriendEntry_Education() |
2010 | 2 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
2011 | 2 | ::google::protobuf::internal::InitSCC( |
2012 | 2 | &protobuf_addressbook_5fmap_2eproto::scc_info_AddressComplex_FriendEntry_Education.base); |
2013 | 2 | SharedCtor(); |
2014 | | // @@protoc_insertion_point(constructor:AddressComplex.FriendEntry.Education) |
2015 | 2 | } |
2016 | | AddressComplex_FriendEntry_Education::AddressComplex_FriendEntry_Education(const AddressComplex_FriendEntry_Education& from) |
2017 | 0 | : ::google::protobuf::Message(), |
2018 | 0 | _internal_metadata_(NULL), |
2019 | 0 | _has_bits_(from._has_bits_) { |
2020 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2021 | 0 | school_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2022 | 0 | if (from.has_school()) { |
2023 | 0 | school_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.school_); |
2024 | 0 | } |
2025 | 0 | year_ = from.year_; |
2026 | | // @@protoc_insertion_point(copy_constructor:AddressComplex.FriendEntry.Education) |
2027 | 0 | } |
2028 | | |
2029 | 2 | void AddressComplex_FriendEntry_Education::SharedCtor() { |
2030 | 2 | school_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2031 | 2 | year_ = 0; |
2032 | 2 | } |
2033 | | |
2034 | 0 | AddressComplex_FriendEntry_Education::~AddressComplex_FriendEntry_Education() { |
2035 | | // @@protoc_insertion_point(destructor:AddressComplex.FriendEntry.Education) |
2036 | 0 | SharedDtor(); |
2037 | 0 | } |
2038 | | |
2039 | 0 | void AddressComplex_FriendEntry_Education::SharedDtor() { |
2040 | 0 | school_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2041 | 0 | } |
2042 | | |
2043 | 0 | void AddressComplex_FriendEntry_Education::SetCachedSize(int size) const { |
2044 | 0 | _cached_size_.Set(size); |
2045 | 0 | } |
2046 | 0 | const ::google::protobuf::Descriptor* AddressComplex_FriendEntry_Education::descriptor() { |
2047 | 0 | ::protobuf_addressbook_5fmap_2eproto::protobuf_AssignDescriptorsOnce(); |
2048 | 0 | return ::protobuf_addressbook_5fmap_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
2049 | 0 | } |
2050 | | |
2051 | 0 | const AddressComplex_FriendEntry_Education& AddressComplex_FriendEntry_Education::default_instance() { |
2052 | 0 | ::google::protobuf::internal::InitSCC(&protobuf_addressbook_5fmap_2eproto::scc_info_AddressComplex_FriendEntry_Education.base); |
2053 | 0 | return *internal_default_instance(); |
2054 | 0 | } |
2055 | | |
2056 | | |
2057 | 0 | void AddressComplex_FriendEntry_Education::Clear() { |
2058 | | // @@protoc_insertion_point(message_clear_start:AddressComplex.FriendEntry.Education) |
2059 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2060 | | // Prevent compiler warnings about cached_has_bits being unused |
2061 | 0 | (void) cached_has_bits; |
2062 | |
|
2063 | 0 | cached_has_bits = _has_bits_[0]; |
2064 | 0 | if (cached_has_bits & 0x00000001u) { |
2065 | 0 | school_.ClearNonDefaultToEmptyNoArena(); |
2066 | 0 | } |
2067 | 0 | year_ = 0; |
2068 | 0 | _has_bits_.Clear(); |
2069 | 0 | _internal_metadata_.Clear(); |
2070 | 0 | } |
2071 | | |
2072 | | bool AddressComplex_FriendEntry_Education::MergePartialFromCodedStream( |
2073 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
2074 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
2075 | 0 | ::google::protobuf::uint32 tag; |
2076 | | // @@protoc_insertion_point(parse_start:AddressComplex.FriendEntry.Education) |
2077 | 0 | for (;;) { |
2078 | 0 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
2079 | 0 | tag = p.first; |
2080 | 0 | if (!p.second) goto handle_unusual; |
2081 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
2082 | | // required string school = 1; |
2083 | 0 | case 1: { |
2084 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2085 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
2086 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
2087 | 0 | input, this->mutable_school())); |
2088 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
2089 | 0 | this->school().data(), static_cast<int>(this->school().length()), |
2090 | 0 | ::google::protobuf::internal::WireFormat::PARSE, |
2091 | 0 | "AddressComplex.FriendEntry.Education.school"); |
2092 | 0 | } else { |
2093 | 0 | goto handle_unusual; |
2094 | 0 | } |
2095 | 0 | break; |
2096 | 0 | } |
2097 | | |
2098 | | // required int32 year = 2; |
2099 | 0 | case 2: { |
2100 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2101 | 0 | static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) { |
2102 | 0 | set_has_year(); |
2103 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
2104 | 0 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
2105 | 0 | input, &year_))); |
2106 | 0 | } else { |
2107 | 0 | goto handle_unusual; |
2108 | 0 | } |
2109 | 0 | break; |
2110 | 0 | } |
2111 | | |
2112 | 0 | default: { |
2113 | 0 | handle_unusual: |
2114 | 0 | if (tag == 0) { |
2115 | 0 | goto success; |
2116 | 0 | } |
2117 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
2118 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
2119 | 0 | break; |
2120 | 0 | } |
2121 | 0 | } |
2122 | 0 | } |
2123 | 0 | success: |
2124 | | // @@protoc_insertion_point(parse_success:AddressComplex.FriendEntry.Education) |
2125 | 0 | return true; |
2126 | 0 | failure: |
2127 | | // @@protoc_insertion_point(parse_failure:AddressComplex.FriendEntry.Education) |
2128 | 0 | return false; |
2129 | 0 | #undef DO_ |
2130 | 0 | } |
2131 | | |
2132 | | void AddressComplex_FriendEntry_Education::SerializeWithCachedSizes( |
2133 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
2134 | | // @@protoc_insertion_point(serialize_start:AddressComplex.FriendEntry.Education) |
2135 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2136 | 0 | (void) cached_has_bits; |
2137 | |
|
2138 | 0 | cached_has_bits = _has_bits_[0]; |
2139 | | // required string school = 1; |
2140 | 0 | if (cached_has_bits & 0x00000001u) { |
2141 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
2142 | 0 | this->school().data(), static_cast<int>(this->school().length()), |
2143 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
2144 | 0 | "AddressComplex.FriendEntry.Education.school"); |
2145 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
2146 | 0 | 1, this->school(), output); |
2147 | 0 | } |
2148 | | |
2149 | | // required int32 year = 2; |
2150 | 0 | if (cached_has_bits & 0x00000002u) { |
2151 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->year(), output); |
2152 | 0 | } |
2153 | |
|
2154 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
2155 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
2156 | 0 | _internal_metadata_.unknown_fields(), output); |
2157 | 0 | } |
2158 | | // @@protoc_insertion_point(serialize_end:AddressComplex.FriendEntry.Education) |
2159 | 0 | } |
2160 | | |
2161 | | ::google::protobuf::uint8* AddressComplex_FriendEntry_Education::InternalSerializeWithCachedSizesToArray( |
2162 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
2163 | 0 | (void)deterministic; // Unused |
2164 | | // @@protoc_insertion_point(serialize_to_array_start:AddressComplex.FriendEntry.Education) |
2165 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2166 | 0 | (void) cached_has_bits; |
2167 | |
|
2168 | 0 | cached_has_bits = _has_bits_[0]; |
2169 | | // required string school = 1; |
2170 | 0 | if (cached_has_bits & 0x00000001u) { |
2171 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
2172 | 0 | this->school().data(), static_cast<int>(this->school().length()), |
2173 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
2174 | 0 | "AddressComplex.FriendEntry.Education.school"); |
2175 | 0 | target = |
2176 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
2177 | 0 | 1, this->school(), target); |
2178 | 0 | } |
2179 | | |
2180 | | // required int32 year = 2; |
2181 | 0 | if (cached_has_bits & 0x00000002u) { |
2182 | 0 | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->year(), target); |
2183 | 0 | } |
2184 | |
|
2185 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
2186 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
2187 | 0 | _internal_metadata_.unknown_fields(), target); |
2188 | 0 | } |
2189 | | // @@protoc_insertion_point(serialize_to_array_end:AddressComplex.FriendEntry.Education) |
2190 | 0 | return target; |
2191 | 0 | } |
2192 | | |
2193 | 0 | size_t AddressComplex_FriendEntry_Education::RequiredFieldsByteSizeFallback() const { |
2194 | | // @@protoc_insertion_point(required_fields_byte_size_fallback_start:AddressComplex.FriendEntry.Education) |
2195 | 0 | size_t total_size = 0; |
2196 | |
|
2197 | 0 | if (has_school()) { |
2198 | | // required string school = 1; |
2199 | 0 | total_size += 1 + |
2200 | 0 | ::google::protobuf::internal::WireFormatLite::StringSize( |
2201 | 0 | this->school()); |
2202 | 0 | } |
2203 | |
|
2204 | 0 | if (has_year()) { |
2205 | | // required int32 year = 2; |
2206 | 0 | total_size += 1 + |
2207 | 0 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
2208 | 0 | this->year()); |
2209 | 0 | } |
2210 | |
|
2211 | 0 | return total_size; |
2212 | 0 | } |
2213 | 0 | size_t AddressComplex_FriendEntry_Education::ByteSizeLong() const { |
2214 | | // @@protoc_insertion_point(message_byte_size_start:AddressComplex.FriendEntry.Education) |
2215 | 0 | size_t total_size = 0; |
2216 | |
|
2217 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
2218 | 0 | total_size += |
2219 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
2220 | 0 | _internal_metadata_.unknown_fields()); |
2221 | 0 | } |
2222 | 0 | if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) { // All required fields are present. |
2223 | | // required string school = 1; |
2224 | 0 | total_size += 1 + |
2225 | 0 | ::google::protobuf::internal::WireFormatLite::StringSize( |
2226 | 0 | this->school()); |
2227 | | |
2228 | | // required int32 year = 2; |
2229 | 0 | total_size += 1 + |
2230 | 0 | ::google::protobuf::internal::WireFormatLite::Int32Size( |
2231 | 0 | this->year()); |
2232 | |
|
2233 | 0 | } else { |
2234 | 0 | total_size += RequiredFieldsByteSizeFallback(); |
2235 | 0 | } |
2236 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
2237 | 0 | SetCachedSize(cached_size); |
2238 | 0 | return total_size; |
2239 | 0 | } |
2240 | | |
2241 | 0 | void AddressComplex_FriendEntry_Education::MergeFrom(const ::google::protobuf::Message& from) { |
2242 | | // @@protoc_insertion_point(generalized_merge_from_start:AddressComplex.FriendEntry.Education) |
2243 | 0 | GOOGLE_DCHECK_NE(&from, this); |
2244 | 0 | const AddressComplex_FriendEntry_Education* source = |
2245 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const AddressComplex_FriendEntry_Education>( |
2246 | 0 | &from); |
2247 | 0 | if (source == NULL) { |
2248 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:AddressComplex.FriendEntry.Education) |
2249 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
2250 | 0 | } else { |
2251 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:AddressComplex.FriendEntry.Education) |
2252 | 0 | MergeFrom(*source); |
2253 | 0 | } |
2254 | 0 | } |
2255 | | |
2256 | 0 | void AddressComplex_FriendEntry_Education::MergeFrom(const AddressComplex_FriendEntry_Education& from) { |
2257 | | // @@protoc_insertion_point(class_specific_merge_from_start:AddressComplex.FriendEntry.Education) |
2258 | 0 | GOOGLE_DCHECK_NE(&from, this); |
2259 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2260 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2261 | 0 | (void) cached_has_bits; |
2262 | |
|
2263 | 0 | cached_has_bits = from._has_bits_[0]; |
2264 | 0 | if (cached_has_bits & 3u) { |
2265 | 0 | if (cached_has_bits & 0x00000001u) { |
2266 | 0 | set_has_school(); |
2267 | 0 | school_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.school_); |
2268 | 0 | } |
2269 | 0 | if (cached_has_bits & 0x00000002u) { |
2270 | 0 | year_ = from.year_; |
2271 | 0 | } |
2272 | 0 | _has_bits_[0] |= cached_has_bits; |
2273 | 0 | } |
2274 | 0 | } |
2275 | | |
2276 | 0 | void AddressComplex_FriendEntry_Education::CopyFrom(const ::google::protobuf::Message& from) { |
2277 | | // @@protoc_insertion_point(generalized_copy_from_start:AddressComplex.FriendEntry.Education) |
2278 | 0 | if (&from == this) return; |
2279 | 0 | Clear(); |
2280 | 0 | MergeFrom(from); |
2281 | 0 | } |
2282 | | |
2283 | 0 | void AddressComplex_FriendEntry_Education::CopyFrom(const AddressComplex_FriendEntry_Education& from) { |
2284 | | // @@protoc_insertion_point(class_specific_copy_from_start:AddressComplex.FriendEntry.Education) |
2285 | 0 | if (&from == this) return; |
2286 | 0 | Clear(); |
2287 | 0 | MergeFrom(from); |
2288 | 0 | } |
2289 | | |
2290 | 0 | bool AddressComplex_FriendEntry_Education::IsInitialized() const { |
2291 | 0 | if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; |
2292 | 0 | return true; |
2293 | 0 | } |
2294 | | |
2295 | 0 | void AddressComplex_FriendEntry_Education::Swap(AddressComplex_FriendEntry_Education* other) { |
2296 | 0 | if (other == this) return; |
2297 | 0 | InternalSwap(other); |
2298 | 0 | } |
2299 | 0 | void AddressComplex_FriendEntry_Education::InternalSwap(AddressComplex_FriendEntry_Education* other) { |
2300 | 0 | using std::swap; |
2301 | 0 | school_.Swap(&other->school_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
2302 | 0 | GetArenaNoVirtual()); |
2303 | 0 | swap(year_, other->year_); |
2304 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
2305 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
2306 | 0 | } |
2307 | | |
2308 | 0 | ::google::protobuf::Metadata AddressComplex_FriendEntry_Education::GetMetadata() const { |
2309 | 0 | protobuf_addressbook_5fmap_2eproto::protobuf_AssignDescriptorsOnce(); |
2310 | 0 | return ::protobuf_addressbook_5fmap_2eproto::file_level_metadata[kIndexInFileMessages]; |
2311 | 0 | } |
2312 | | |
2313 | | |
2314 | | // =================================================================== |
2315 | | |
2316 | 2 | void AddressComplex_FriendEntry::InitAsDefaultInstance() { |
2317 | 2 | } |
2318 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
2319 | | const int AddressComplex_FriendEntry::kKeyFieldNumber; |
2320 | | const int AddressComplex_FriendEntry::kValueFieldNumber; |
2321 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
2322 | | |
2323 | | AddressComplex_FriendEntry::AddressComplex_FriendEntry() |
2324 | 2 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
2325 | 2 | ::google::protobuf::internal::InitSCC( |
2326 | 2 | &protobuf_addressbook_5fmap_2eproto::scc_info_AddressComplex_FriendEntry.base); |
2327 | 2 | SharedCtor(); |
2328 | | // @@protoc_insertion_point(constructor:AddressComplex.FriendEntry) |
2329 | 2 | } |
2330 | | AddressComplex_FriendEntry::AddressComplex_FriendEntry(const AddressComplex_FriendEntry& from) |
2331 | 0 | : ::google::protobuf::Message(), |
2332 | 0 | _internal_metadata_(NULL), |
2333 | 0 | _has_bits_(from._has_bits_), |
2334 | 0 | value_(from.value_) { |
2335 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2336 | 0 | key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2337 | 0 | if (from.has_key()) { |
2338 | 0 | key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); |
2339 | 0 | } |
2340 | | // @@protoc_insertion_point(copy_constructor:AddressComplex.FriendEntry) |
2341 | 0 | } |
2342 | | |
2343 | 2 | void AddressComplex_FriendEntry::SharedCtor() { |
2344 | 2 | key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2345 | 2 | } |
2346 | | |
2347 | 0 | AddressComplex_FriendEntry::~AddressComplex_FriendEntry() { |
2348 | | // @@protoc_insertion_point(destructor:AddressComplex.FriendEntry) |
2349 | 0 | SharedDtor(); |
2350 | 0 | } |
2351 | | |
2352 | 0 | void AddressComplex_FriendEntry::SharedDtor() { |
2353 | 0 | key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2354 | 0 | } |
2355 | | |
2356 | 0 | void AddressComplex_FriendEntry::SetCachedSize(int size) const { |
2357 | 0 | _cached_size_.Set(size); |
2358 | 0 | } |
2359 | 0 | const ::google::protobuf::Descriptor* AddressComplex_FriendEntry::descriptor() { |
2360 | 0 | ::protobuf_addressbook_5fmap_2eproto::protobuf_AssignDescriptorsOnce(); |
2361 | 0 | return ::protobuf_addressbook_5fmap_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
2362 | 0 | } |
2363 | | |
2364 | 0 | const AddressComplex_FriendEntry& AddressComplex_FriendEntry::default_instance() { |
2365 | 0 | ::google::protobuf::internal::InitSCC(&protobuf_addressbook_5fmap_2eproto::scc_info_AddressComplex_FriendEntry.base); |
2366 | 0 | return *internal_default_instance(); |
2367 | 0 | } |
2368 | | |
2369 | | |
2370 | 0 | void AddressComplex_FriendEntry::Clear() { |
2371 | | // @@protoc_insertion_point(message_clear_start:AddressComplex.FriendEntry) |
2372 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2373 | | // Prevent compiler warnings about cached_has_bits being unused |
2374 | 0 | (void) cached_has_bits; |
2375 | |
|
2376 | 0 | value_.Clear(); |
2377 | 0 | cached_has_bits = _has_bits_[0]; |
2378 | 0 | if (cached_has_bits & 0x00000001u) { |
2379 | 0 | key_.ClearNonDefaultToEmptyNoArena(); |
2380 | 0 | } |
2381 | 0 | _has_bits_.Clear(); |
2382 | 0 | _internal_metadata_.Clear(); |
2383 | 0 | } |
2384 | | |
2385 | | bool AddressComplex_FriendEntry::MergePartialFromCodedStream( |
2386 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
2387 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
2388 | 0 | ::google::protobuf::uint32 tag; |
2389 | | // @@protoc_insertion_point(parse_start:AddressComplex.FriendEntry) |
2390 | 0 | for (;;) { |
2391 | 0 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
2392 | 0 | tag = p.first; |
2393 | 0 | if (!p.second) goto handle_unusual; |
2394 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
2395 | | // required string key = 1; |
2396 | 0 | case 1: { |
2397 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2398 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
2399 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
2400 | 0 | input, this->mutable_key())); |
2401 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
2402 | 0 | this->key().data(), static_cast<int>(this->key().length()), |
2403 | 0 | ::google::protobuf::internal::WireFormat::PARSE, |
2404 | 0 | "AddressComplex.FriendEntry.key"); |
2405 | 0 | } else { |
2406 | 0 | goto handle_unusual; |
2407 | 0 | } |
2408 | 0 | break; |
2409 | 0 | } |
2410 | | |
2411 | | // repeated .AddressComplex.FriendEntry.Education value = 2; |
2412 | 0 | case 2: { |
2413 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2414 | 0 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
2415 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
2416 | 0 | input, add_value())); |
2417 | 0 | } else { |
2418 | 0 | goto handle_unusual; |
2419 | 0 | } |
2420 | 0 | break; |
2421 | 0 | } |
2422 | | |
2423 | 0 | default: { |
2424 | 0 | handle_unusual: |
2425 | 0 | if (tag == 0) { |
2426 | 0 | goto success; |
2427 | 0 | } |
2428 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
2429 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
2430 | 0 | break; |
2431 | 0 | } |
2432 | 0 | } |
2433 | 0 | } |
2434 | 0 | success: |
2435 | | // @@protoc_insertion_point(parse_success:AddressComplex.FriendEntry) |
2436 | 0 | return true; |
2437 | 0 | failure: |
2438 | | // @@protoc_insertion_point(parse_failure:AddressComplex.FriendEntry) |
2439 | 0 | return false; |
2440 | 0 | #undef DO_ |
2441 | 0 | } |
2442 | | |
2443 | | void AddressComplex_FriendEntry::SerializeWithCachedSizes( |
2444 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
2445 | | // @@protoc_insertion_point(serialize_start:AddressComplex.FriendEntry) |
2446 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2447 | 0 | (void) cached_has_bits; |
2448 | |
|
2449 | 0 | cached_has_bits = _has_bits_[0]; |
2450 | | // required string key = 1; |
2451 | 0 | if (cached_has_bits & 0x00000001u) { |
2452 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
2453 | 0 | this->key().data(), static_cast<int>(this->key().length()), |
2454 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
2455 | 0 | "AddressComplex.FriendEntry.key"); |
2456 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
2457 | 0 | 1, this->key(), output); |
2458 | 0 | } |
2459 | | |
2460 | | // repeated .AddressComplex.FriendEntry.Education value = 2; |
2461 | 0 | for (unsigned int i = 0, |
2462 | 0 | n = static_cast<unsigned int>(this->value_size()); i < n; i++) { |
2463 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
2464 | 0 | 2, |
2465 | 0 | this->value(static_cast<int>(i)), |
2466 | 0 | output); |
2467 | 0 | } |
2468 | |
|
2469 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
2470 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
2471 | 0 | _internal_metadata_.unknown_fields(), output); |
2472 | 0 | } |
2473 | | // @@protoc_insertion_point(serialize_end:AddressComplex.FriendEntry) |
2474 | 0 | } |
2475 | | |
2476 | | ::google::protobuf::uint8* AddressComplex_FriendEntry::InternalSerializeWithCachedSizesToArray( |
2477 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
2478 | 0 | (void)deterministic; // Unused |
2479 | | // @@protoc_insertion_point(serialize_to_array_start:AddressComplex.FriendEntry) |
2480 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2481 | 0 | (void) cached_has_bits; |
2482 | |
|
2483 | 0 | cached_has_bits = _has_bits_[0]; |
2484 | | // required string key = 1; |
2485 | 0 | if (cached_has_bits & 0x00000001u) { |
2486 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
2487 | 0 | this->key().data(), static_cast<int>(this->key().length()), |
2488 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
2489 | 0 | "AddressComplex.FriendEntry.key"); |
2490 | 0 | target = |
2491 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
2492 | 0 | 1, this->key(), target); |
2493 | 0 | } |
2494 | | |
2495 | | // repeated .AddressComplex.FriendEntry.Education value = 2; |
2496 | 0 | for (unsigned int i = 0, |
2497 | 0 | n = static_cast<unsigned int>(this->value_size()); i < n; i++) { |
2498 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
2499 | 0 | InternalWriteMessageToArray( |
2500 | 0 | 2, this->value(static_cast<int>(i)), deterministic, target); |
2501 | 0 | } |
2502 | |
|
2503 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
2504 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
2505 | 0 | _internal_metadata_.unknown_fields(), target); |
2506 | 0 | } |
2507 | | // @@protoc_insertion_point(serialize_to_array_end:AddressComplex.FriendEntry) |
2508 | 0 | return target; |
2509 | 0 | } |
2510 | | |
2511 | 0 | size_t AddressComplex_FriendEntry::ByteSizeLong() const { |
2512 | | // @@protoc_insertion_point(message_byte_size_start:AddressComplex.FriendEntry) |
2513 | 0 | size_t total_size = 0; |
2514 | |
|
2515 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
2516 | 0 | total_size += |
2517 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
2518 | 0 | _internal_metadata_.unknown_fields()); |
2519 | 0 | } |
2520 | | // required string key = 1; |
2521 | 0 | if (has_key()) { |
2522 | 0 | total_size += 1 + |
2523 | 0 | ::google::protobuf::internal::WireFormatLite::StringSize( |
2524 | 0 | this->key()); |
2525 | 0 | } |
2526 | | // repeated .AddressComplex.FriendEntry.Education value = 2; |
2527 | 0 | { |
2528 | 0 | unsigned int count = static_cast<unsigned int>(this->value_size()); |
2529 | 0 | total_size += 1UL * count; |
2530 | 0 | for (unsigned int i = 0; i < count; i++) { |
2531 | 0 | total_size += |
2532 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
2533 | 0 | this->value(static_cast<int>(i))); |
2534 | 0 | } |
2535 | 0 | } |
2536 | |
|
2537 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
2538 | 0 | SetCachedSize(cached_size); |
2539 | 0 | return total_size; |
2540 | 0 | } |
2541 | | |
2542 | 0 | void AddressComplex_FriendEntry::MergeFrom(const ::google::protobuf::Message& from) { |
2543 | | // @@protoc_insertion_point(generalized_merge_from_start:AddressComplex.FriendEntry) |
2544 | 0 | GOOGLE_DCHECK_NE(&from, this); |
2545 | 0 | const AddressComplex_FriendEntry* source = |
2546 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const AddressComplex_FriendEntry>( |
2547 | 0 | &from); |
2548 | 0 | if (source == NULL) { |
2549 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:AddressComplex.FriendEntry) |
2550 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
2551 | 0 | } else { |
2552 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:AddressComplex.FriendEntry) |
2553 | 0 | MergeFrom(*source); |
2554 | 0 | } |
2555 | 0 | } |
2556 | | |
2557 | 0 | void AddressComplex_FriendEntry::MergeFrom(const AddressComplex_FriendEntry& from) { |
2558 | | // @@protoc_insertion_point(class_specific_merge_from_start:AddressComplex.FriendEntry) |
2559 | 0 | GOOGLE_DCHECK_NE(&from, this); |
2560 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2561 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2562 | 0 | (void) cached_has_bits; |
2563 | |
|
2564 | 0 | value_.MergeFrom(from.value_); |
2565 | 0 | if (from.has_key()) { |
2566 | 0 | set_has_key(); |
2567 | 0 | key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_); |
2568 | 0 | } |
2569 | 0 | } |
2570 | | |
2571 | 0 | void AddressComplex_FriendEntry::CopyFrom(const ::google::protobuf::Message& from) { |
2572 | | // @@protoc_insertion_point(generalized_copy_from_start:AddressComplex.FriendEntry) |
2573 | 0 | if (&from == this) return; |
2574 | 0 | Clear(); |
2575 | 0 | MergeFrom(from); |
2576 | 0 | } |
2577 | | |
2578 | 0 | void AddressComplex_FriendEntry::CopyFrom(const AddressComplex_FriendEntry& from) { |
2579 | | // @@protoc_insertion_point(class_specific_copy_from_start:AddressComplex.FriendEntry) |
2580 | 0 | if (&from == this) return; |
2581 | 0 | Clear(); |
2582 | 0 | MergeFrom(from); |
2583 | 0 | } |
2584 | | |
2585 | 0 | bool AddressComplex_FriendEntry::IsInitialized() const { |
2586 | 0 | if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; |
2587 | 0 | if (!::google::protobuf::internal::AllAreInitialized(this->value())) return false; |
2588 | 0 | return true; |
2589 | 0 | } |
2590 | | |
2591 | 0 | void AddressComplex_FriendEntry::Swap(AddressComplex_FriendEntry* other) { |
2592 | 0 | if (other == this) return; |
2593 | 0 | InternalSwap(other); |
2594 | 0 | } |
2595 | 0 | void AddressComplex_FriendEntry::InternalSwap(AddressComplex_FriendEntry* other) { |
2596 | 0 | using std::swap; |
2597 | 0 | CastToBase(&value_)->InternalSwap(CastToBase(&other->value_)); |
2598 | 0 | key_.Swap(&other->key_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
2599 | 0 | GetArenaNoVirtual()); |
2600 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
2601 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
2602 | 0 | } |
2603 | | |
2604 | 0 | ::google::protobuf::Metadata AddressComplex_FriendEntry::GetMetadata() const { |
2605 | 0 | protobuf_addressbook_5fmap_2eproto::protobuf_AssignDescriptorsOnce(); |
2606 | 0 | return ::protobuf_addressbook_5fmap_2eproto::file_level_metadata[kIndexInFileMessages]; |
2607 | 0 | } |
2608 | | |
2609 | | |
2610 | | // =================================================================== |
2611 | | |
2612 | 2 | void AddressComplex::InitAsDefaultInstance() { |
2613 | 2 | } |
2614 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
2615 | | const int AddressComplex::kAddrFieldNumber; |
2616 | | const int AddressComplex::kFriendsFieldNumber; |
2617 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
2618 | | |
2619 | | AddressComplex::AddressComplex() |
2620 | 2 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
2621 | 2 | ::google::protobuf::internal::InitSCC( |
2622 | 2 | &protobuf_addressbook_5fmap_2eproto::scc_info_AddressComplex.base); |
2623 | 2 | SharedCtor(); |
2624 | | // @@protoc_insertion_point(constructor:AddressComplex) |
2625 | 2 | } |
2626 | | AddressComplex::AddressComplex(const AddressComplex& from) |
2627 | 0 | : ::google::protobuf::Message(), |
2628 | 0 | _internal_metadata_(NULL), |
2629 | 0 | _has_bits_(from._has_bits_), |
2630 | 0 | friends_(from.friends_) { |
2631 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2632 | 0 | addr_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2633 | 0 | if (from.has_addr()) { |
2634 | 0 | addr_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.addr_); |
2635 | 0 | } |
2636 | | // @@protoc_insertion_point(copy_constructor:AddressComplex) |
2637 | 0 | } |
2638 | | |
2639 | 2 | void AddressComplex::SharedCtor() { |
2640 | 2 | addr_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2641 | 2 | } |
2642 | | |
2643 | 0 | AddressComplex::~AddressComplex() { |
2644 | | // @@protoc_insertion_point(destructor:AddressComplex) |
2645 | 0 | SharedDtor(); |
2646 | 0 | } |
2647 | | |
2648 | 0 | void AddressComplex::SharedDtor() { |
2649 | 0 | addr_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2650 | 0 | } |
2651 | | |
2652 | 0 | void AddressComplex::SetCachedSize(int size) const { |
2653 | 0 | _cached_size_.Set(size); |
2654 | 0 | } |
2655 | 0 | const ::google::protobuf::Descriptor* AddressComplex::descriptor() { |
2656 | 0 | ::protobuf_addressbook_5fmap_2eproto::protobuf_AssignDescriptorsOnce(); |
2657 | 0 | return ::protobuf_addressbook_5fmap_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
2658 | 0 | } |
2659 | | |
2660 | 0 | const AddressComplex& AddressComplex::default_instance() { |
2661 | 0 | ::google::protobuf::internal::InitSCC(&protobuf_addressbook_5fmap_2eproto::scc_info_AddressComplex.base); |
2662 | 0 | return *internal_default_instance(); |
2663 | 0 | } |
2664 | | |
2665 | | |
2666 | 0 | void AddressComplex::Clear() { |
2667 | | // @@protoc_insertion_point(message_clear_start:AddressComplex) |
2668 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2669 | | // Prevent compiler warnings about cached_has_bits being unused |
2670 | 0 | (void) cached_has_bits; |
2671 | |
|
2672 | 0 | friends_.Clear(); |
2673 | 0 | cached_has_bits = _has_bits_[0]; |
2674 | 0 | if (cached_has_bits & 0x00000001u) { |
2675 | 0 | addr_.ClearNonDefaultToEmptyNoArena(); |
2676 | 0 | } |
2677 | 0 | _has_bits_.Clear(); |
2678 | 0 | _internal_metadata_.Clear(); |
2679 | 0 | } |
2680 | | |
2681 | | bool AddressComplex::MergePartialFromCodedStream( |
2682 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
2683 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
2684 | 0 | ::google::protobuf::uint32 tag; |
2685 | | // @@protoc_insertion_point(parse_start:AddressComplex) |
2686 | 0 | for (;;) { |
2687 | 0 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
2688 | 0 | tag = p.first; |
2689 | 0 | if (!p.second) goto handle_unusual; |
2690 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
2691 | | // required string addr = 1; |
2692 | 0 | case 1: { |
2693 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2694 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
2695 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
2696 | 0 | input, this->mutable_addr())); |
2697 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
2698 | 0 | this->addr().data(), static_cast<int>(this->addr().length()), |
2699 | 0 | ::google::protobuf::internal::WireFormat::PARSE, |
2700 | 0 | "AddressComplex.addr"); |
2701 | 0 | } else { |
2702 | 0 | goto handle_unusual; |
2703 | 0 | } |
2704 | 0 | break; |
2705 | 0 | } |
2706 | | |
2707 | | // repeated .AddressComplex.FriendEntry friends = 2; |
2708 | 0 | case 2: { |
2709 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
2710 | 0 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
2711 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessage( |
2712 | 0 | input, add_friends())); |
2713 | 0 | } else { |
2714 | 0 | goto handle_unusual; |
2715 | 0 | } |
2716 | 0 | break; |
2717 | 0 | } |
2718 | | |
2719 | 0 | default: { |
2720 | 0 | handle_unusual: |
2721 | 0 | if (tag == 0) { |
2722 | 0 | goto success; |
2723 | 0 | } |
2724 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
2725 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
2726 | 0 | break; |
2727 | 0 | } |
2728 | 0 | } |
2729 | 0 | } |
2730 | 0 | success: |
2731 | | // @@protoc_insertion_point(parse_success:AddressComplex) |
2732 | 0 | return true; |
2733 | 0 | failure: |
2734 | | // @@protoc_insertion_point(parse_failure:AddressComplex) |
2735 | 0 | return false; |
2736 | 0 | #undef DO_ |
2737 | 0 | } |
2738 | | |
2739 | | void AddressComplex::SerializeWithCachedSizes( |
2740 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
2741 | | // @@protoc_insertion_point(serialize_start:AddressComplex) |
2742 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2743 | 0 | (void) cached_has_bits; |
2744 | |
|
2745 | 0 | cached_has_bits = _has_bits_[0]; |
2746 | | // required string addr = 1; |
2747 | 0 | if (cached_has_bits & 0x00000001u) { |
2748 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
2749 | 0 | this->addr().data(), static_cast<int>(this->addr().length()), |
2750 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
2751 | 0 | "AddressComplex.addr"); |
2752 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
2753 | 0 | 1, this->addr(), output); |
2754 | 0 | } |
2755 | | |
2756 | | // repeated .AddressComplex.FriendEntry friends = 2; |
2757 | 0 | for (unsigned int i = 0, |
2758 | 0 | n = static_cast<unsigned int>(this->friends_size()); i < n; i++) { |
2759 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
2760 | 0 | 2, |
2761 | 0 | this->friends(static_cast<int>(i)), |
2762 | 0 | output); |
2763 | 0 | } |
2764 | |
|
2765 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
2766 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
2767 | 0 | _internal_metadata_.unknown_fields(), output); |
2768 | 0 | } |
2769 | | // @@protoc_insertion_point(serialize_end:AddressComplex) |
2770 | 0 | } |
2771 | | |
2772 | | ::google::protobuf::uint8* AddressComplex::InternalSerializeWithCachedSizesToArray( |
2773 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
2774 | 0 | (void)deterministic; // Unused |
2775 | | // @@protoc_insertion_point(serialize_to_array_start:AddressComplex) |
2776 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2777 | 0 | (void) cached_has_bits; |
2778 | |
|
2779 | 0 | cached_has_bits = _has_bits_[0]; |
2780 | | // required string addr = 1; |
2781 | 0 | if (cached_has_bits & 0x00000001u) { |
2782 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
2783 | 0 | this->addr().data(), static_cast<int>(this->addr().length()), |
2784 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
2785 | 0 | "AddressComplex.addr"); |
2786 | 0 | target = |
2787 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
2788 | 0 | 1, this->addr(), target); |
2789 | 0 | } |
2790 | | |
2791 | | // repeated .AddressComplex.FriendEntry friends = 2; |
2792 | 0 | for (unsigned int i = 0, |
2793 | 0 | n = static_cast<unsigned int>(this->friends_size()); i < n; i++) { |
2794 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
2795 | 0 | InternalWriteMessageToArray( |
2796 | 0 | 2, this->friends(static_cast<int>(i)), deterministic, target); |
2797 | 0 | } |
2798 | |
|
2799 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
2800 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
2801 | 0 | _internal_metadata_.unknown_fields(), target); |
2802 | 0 | } |
2803 | | // @@protoc_insertion_point(serialize_to_array_end:AddressComplex) |
2804 | 0 | return target; |
2805 | 0 | } |
2806 | | |
2807 | 0 | size_t AddressComplex::ByteSizeLong() const { |
2808 | | // @@protoc_insertion_point(message_byte_size_start:AddressComplex) |
2809 | 0 | size_t total_size = 0; |
2810 | |
|
2811 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
2812 | 0 | total_size += |
2813 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
2814 | 0 | _internal_metadata_.unknown_fields()); |
2815 | 0 | } |
2816 | | // required string addr = 1; |
2817 | 0 | if (has_addr()) { |
2818 | 0 | total_size += 1 + |
2819 | 0 | ::google::protobuf::internal::WireFormatLite::StringSize( |
2820 | 0 | this->addr()); |
2821 | 0 | } |
2822 | | // repeated .AddressComplex.FriendEntry friends = 2; |
2823 | 0 | { |
2824 | 0 | unsigned int count = static_cast<unsigned int>(this->friends_size()); |
2825 | 0 | total_size += 1UL * count; |
2826 | 0 | for (unsigned int i = 0; i < count; i++) { |
2827 | 0 | total_size += |
2828 | 0 | ::google::protobuf::internal::WireFormatLite::MessageSize( |
2829 | 0 | this->friends(static_cast<int>(i))); |
2830 | 0 | } |
2831 | 0 | } |
2832 | |
|
2833 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
2834 | 0 | SetCachedSize(cached_size); |
2835 | 0 | return total_size; |
2836 | 0 | } |
2837 | | |
2838 | 0 | void AddressComplex::MergeFrom(const ::google::protobuf::Message& from) { |
2839 | | // @@protoc_insertion_point(generalized_merge_from_start:AddressComplex) |
2840 | 0 | GOOGLE_DCHECK_NE(&from, this); |
2841 | 0 | const AddressComplex* source = |
2842 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const AddressComplex>( |
2843 | 0 | &from); |
2844 | 0 | if (source == NULL) { |
2845 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:AddressComplex) |
2846 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
2847 | 0 | } else { |
2848 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:AddressComplex) |
2849 | 0 | MergeFrom(*source); |
2850 | 0 | } |
2851 | 0 | } |
2852 | | |
2853 | 0 | void AddressComplex::MergeFrom(const AddressComplex& from) { |
2854 | | // @@protoc_insertion_point(class_specific_merge_from_start:AddressComplex) |
2855 | 0 | GOOGLE_DCHECK_NE(&from, this); |
2856 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2857 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2858 | 0 | (void) cached_has_bits; |
2859 | |
|
2860 | 0 | friends_.MergeFrom(from.friends_); |
2861 | 0 | if (from.has_addr()) { |
2862 | 0 | set_has_addr(); |
2863 | 0 | addr_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.addr_); |
2864 | 0 | } |
2865 | 0 | } |
2866 | | |
2867 | 0 | void AddressComplex::CopyFrom(const ::google::protobuf::Message& from) { |
2868 | | // @@protoc_insertion_point(generalized_copy_from_start:AddressComplex) |
2869 | 0 | if (&from == this) return; |
2870 | 0 | Clear(); |
2871 | 0 | MergeFrom(from); |
2872 | 0 | } |
2873 | | |
2874 | 0 | void AddressComplex::CopyFrom(const AddressComplex& from) { |
2875 | | // @@protoc_insertion_point(class_specific_copy_from_start:AddressComplex) |
2876 | 0 | if (&from == this) return; |
2877 | 0 | Clear(); |
2878 | 0 | MergeFrom(from); |
2879 | 0 | } |
2880 | | |
2881 | 0 | bool AddressComplex::IsInitialized() const { |
2882 | 0 | if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; |
2883 | 0 | if (!::google::protobuf::internal::AllAreInitialized(this->friends())) return false; |
2884 | 0 | return true; |
2885 | 0 | } |
2886 | | |
2887 | 0 | void AddressComplex::Swap(AddressComplex* other) { |
2888 | 0 | if (other == this) return; |
2889 | 0 | InternalSwap(other); |
2890 | 0 | } |
2891 | 0 | void AddressComplex::InternalSwap(AddressComplex* other) { |
2892 | 0 | using std::swap; |
2893 | 0 | CastToBase(&friends_)->InternalSwap(CastToBase(&other->friends_)); |
2894 | 0 | addr_.Swap(&other->addr_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
2895 | 0 | GetArenaNoVirtual()); |
2896 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
2897 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
2898 | 0 | } |
2899 | | |
2900 | 0 | ::google::protobuf::Metadata AddressComplex::GetMetadata() const { |
2901 | 0 | protobuf_addressbook_5fmap_2eproto::protobuf_AssignDescriptorsOnce(); |
2902 | 0 | return ::protobuf_addressbook_5fmap_2eproto::file_level_metadata[kIndexInFileMessages]; |
2903 | 0 | } |
2904 | | |
2905 | | |
2906 | | // =================================================================== |
2907 | | |
2908 | 2 | AddressIntMapStd_NumbersEntry_DoNotUse::AddressIntMapStd_NumbersEntry_DoNotUse() {} |
2909 | 0 | AddressIntMapStd_NumbersEntry_DoNotUse::AddressIntMapStd_NumbersEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} |
2910 | 0 | void AddressIntMapStd_NumbersEntry_DoNotUse::MergeFrom(const AddressIntMapStd_NumbersEntry_DoNotUse& other) { |
2911 | 0 | MergeFromInternal(other); |
2912 | 0 | } |
2913 | 0 | ::google::protobuf::Metadata AddressIntMapStd_NumbersEntry_DoNotUse::GetMetadata() const { |
2914 | 0 | ::protobuf_addressbook_5fmap_2eproto::protobuf_AssignDescriptorsOnce(); |
2915 | 0 | return ::protobuf_addressbook_5fmap_2eproto::file_level_metadata[8]; |
2916 | 0 | } |
2917 | | void AddressIntMapStd_NumbersEntry_DoNotUse::MergeFrom( |
2918 | 0 | const ::google::protobuf::Message& other) { |
2919 | 0 | ::google::protobuf::Message::MergeFrom(other); |
2920 | 0 | } |
2921 | | |
2922 | | |
2923 | | // =================================================================== |
2924 | | |
2925 | 2 | void AddressIntMapStd::InitAsDefaultInstance() { |
2926 | 2 | } |
2927 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
2928 | | const int AddressIntMapStd::kAddrFieldNumber; |
2929 | | const int AddressIntMapStd::kNumbersFieldNumber; |
2930 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
2931 | | |
2932 | | AddressIntMapStd::AddressIntMapStd() |
2933 | 2 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
2934 | 2 | ::google::protobuf::internal::InitSCC( |
2935 | 2 | &protobuf_addressbook_5fmap_2eproto::scc_info_AddressIntMapStd.base); |
2936 | 2 | SharedCtor(); |
2937 | | // @@protoc_insertion_point(constructor:AddressIntMapStd) |
2938 | 2 | } |
2939 | | AddressIntMapStd::AddressIntMapStd(const AddressIntMapStd& from) |
2940 | 0 | : ::google::protobuf::Message(), |
2941 | 0 | _internal_metadata_(NULL), |
2942 | 0 | _has_bits_(from._has_bits_) { |
2943 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
2944 | 0 | numbers_.MergeFrom(from.numbers_); |
2945 | 0 | addr_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2946 | 0 | if (from.has_addr()) { |
2947 | 0 | addr_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.addr_); |
2948 | 0 | } |
2949 | | // @@protoc_insertion_point(copy_constructor:AddressIntMapStd) |
2950 | 0 | } |
2951 | | |
2952 | 2 | void AddressIntMapStd::SharedCtor() { |
2953 | 2 | addr_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2954 | 2 | } |
2955 | | |
2956 | 0 | AddressIntMapStd::~AddressIntMapStd() { |
2957 | | // @@protoc_insertion_point(destructor:AddressIntMapStd) |
2958 | 0 | SharedDtor(); |
2959 | 0 | } |
2960 | | |
2961 | 0 | void AddressIntMapStd::SharedDtor() { |
2962 | 0 | addr_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2963 | 0 | } |
2964 | | |
2965 | 0 | void AddressIntMapStd::SetCachedSize(int size) const { |
2966 | 0 | _cached_size_.Set(size); |
2967 | 0 | } |
2968 | 0 | const ::google::protobuf::Descriptor* AddressIntMapStd::descriptor() { |
2969 | 0 | ::protobuf_addressbook_5fmap_2eproto::protobuf_AssignDescriptorsOnce(); |
2970 | 0 | return ::protobuf_addressbook_5fmap_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
2971 | 0 | } |
2972 | | |
2973 | 0 | const AddressIntMapStd& AddressIntMapStd::default_instance() { |
2974 | 0 | ::google::protobuf::internal::InitSCC(&protobuf_addressbook_5fmap_2eproto::scc_info_AddressIntMapStd.base); |
2975 | 0 | return *internal_default_instance(); |
2976 | 0 | } |
2977 | | |
2978 | | |
2979 | 0 | void AddressIntMapStd::Clear() { |
2980 | | // @@protoc_insertion_point(message_clear_start:AddressIntMapStd) |
2981 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
2982 | | // Prevent compiler warnings about cached_has_bits being unused |
2983 | 0 | (void) cached_has_bits; |
2984 | |
|
2985 | 0 | numbers_.Clear(); |
2986 | 0 | cached_has_bits = _has_bits_[0]; |
2987 | 0 | if (cached_has_bits & 0x00000001u) { |
2988 | 0 | addr_.ClearNonDefaultToEmptyNoArena(); |
2989 | 0 | } |
2990 | 0 | _has_bits_.Clear(); |
2991 | 0 | _internal_metadata_.Clear(); |
2992 | 0 | } |
2993 | | |
2994 | | bool AddressIntMapStd::MergePartialFromCodedStream( |
2995 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
2996 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
2997 | 0 | ::google::protobuf::uint32 tag; |
2998 | | // @@protoc_insertion_point(parse_start:AddressIntMapStd) |
2999 | 0 | for (;;) { |
3000 | 0 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
3001 | 0 | tag = p.first; |
3002 | 0 | if (!p.second) goto handle_unusual; |
3003 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
3004 | | // required string addr = 1; |
3005 | 0 | case 1: { |
3006 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3007 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
3008 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
3009 | 0 | input, this->mutable_addr())); |
3010 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
3011 | 0 | this->addr().data(), static_cast<int>(this->addr().length()), |
3012 | 0 | ::google::protobuf::internal::WireFormat::PARSE, |
3013 | 0 | "AddressIntMapStd.addr"); |
3014 | 0 | } else { |
3015 | 0 | goto handle_unusual; |
3016 | 0 | } |
3017 | 0 | break; |
3018 | 0 | } |
3019 | | |
3020 | | // map<string, int32> numbers = 2; |
3021 | 0 | case 2: { |
3022 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3023 | 0 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
3024 | 0 | AddressIntMapStd_NumbersEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< |
3025 | 0 | AddressIntMapStd_NumbersEntry_DoNotUse, |
3026 | 0 | ::std::string, ::google::protobuf::int32, |
3027 | 0 | ::google::protobuf::internal::WireFormatLite::TYPE_STRING, |
3028 | 0 | ::google::protobuf::internal::WireFormatLite::TYPE_INT32, |
3029 | 0 | 0 >, |
3030 | 0 | ::google::protobuf::Map< ::std::string, ::google::protobuf::int32 > > parser(&numbers_); |
3031 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
3032 | 0 | input, &parser)); |
3033 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
3034 | 0 | parser.key().data(), static_cast<int>(parser.key().length()), |
3035 | 0 | ::google::protobuf::internal::WireFormat::PARSE, |
3036 | 0 | "AddressIntMapStd.NumbersEntry.key"); |
3037 | 0 | } else { |
3038 | 0 | goto handle_unusual; |
3039 | 0 | } |
3040 | 0 | break; |
3041 | 0 | } |
3042 | | |
3043 | 0 | default: { |
3044 | 0 | handle_unusual: |
3045 | 0 | if (tag == 0) { |
3046 | 0 | goto success; |
3047 | 0 | } |
3048 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
3049 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
3050 | 0 | break; |
3051 | 0 | } |
3052 | 0 | } |
3053 | 0 | } |
3054 | 0 | success: |
3055 | | // @@protoc_insertion_point(parse_success:AddressIntMapStd) |
3056 | 0 | return true; |
3057 | 0 | failure: |
3058 | | // @@protoc_insertion_point(parse_failure:AddressIntMapStd) |
3059 | 0 | return false; |
3060 | 0 | #undef DO_ |
3061 | 0 | } |
3062 | | |
3063 | | void AddressIntMapStd::SerializeWithCachedSizes( |
3064 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
3065 | | // @@protoc_insertion_point(serialize_start:AddressIntMapStd) |
3066 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3067 | 0 | (void) cached_has_bits; |
3068 | |
|
3069 | 0 | cached_has_bits = _has_bits_[0]; |
3070 | | // required string addr = 1; |
3071 | 0 | if (cached_has_bits & 0x00000001u) { |
3072 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
3073 | 0 | this->addr().data(), static_cast<int>(this->addr().length()), |
3074 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
3075 | 0 | "AddressIntMapStd.addr"); |
3076 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
3077 | 0 | 1, this->addr(), output); |
3078 | 0 | } |
3079 | | |
3080 | | // map<string, int32> numbers = 2; |
3081 | 0 | if (!this->numbers().empty()) { |
3082 | 0 | typedef ::google::protobuf::Map< ::std::string, ::google::protobuf::int32 >::const_pointer |
3083 | 0 | ConstPtr; |
3084 | 0 | typedef ConstPtr SortItem; |
3085 | 0 | typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less; |
3086 | 0 | struct Utf8Check { |
3087 | 0 | static void Check(ConstPtr p) { |
3088 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
3089 | 0 | p->first.data(), static_cast<int>(p->first.length()), |
3090 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
3091 | 0 | "AddressIntMapStd.NumbersEntry.key"); |
3092 | 0 | } |
3093 | 0 | }; |
3094 | |
|
3095 | 0 | if (output->IsSerializationDeterministic() && |
3096 | 0 | this->numbers().size() > 1) { |
3097 | 0 | ::std::unique_ptr<SortItem[]> items( |
3098 | 0 | new SortItem[this->numbers().size()]); |
3099 | 0 | typedef ::google::protobuf::Map< ::std::string, ::google::protobuf::int32 >::size_type size_type; |
3100 | 0 | size_type n = 0; |
3101 | 0 | for (::google::protobuf::Map< ::std::string, ::google::protobuf::int32 >::const_iterator |
3102 | 0 | it = this->numbers().begin(); |
3103 | 0 | it != this->numbers().end(); ++it, ++n) { |
3104 | 0 | items[static_cast<ptrdiff_t>(n)] = SortItem(&*it); |
3105 | 0 | } |
3106 | 0 | ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less()); |
3107 | 0 | ::std::unique_ptr<AddressIntMapStd_NumbersEntry_DoNotUse> entry; |
3108 | 0 | for (size_type i = 0; i < n; i++) { |
3109 | 0 | entry.reset(numbers_.NewEntryWrapper( |
3110 | 0 | items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second)); |
3111 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
3112 | 0 | 2, *entry, output); |
3113 | 0 | Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]); |
3114 | 0 | } |
3115 | 0 | } else { |
3116 | 0 | ::std::unique_ptr<AddressIntMapStd_NumbersEntry_DoNotUse> entry; |
3117 | 0 | for (::google::protobuf::Map< ::std::string, ::google::protobuf::int32 >::const_iterator |
3118 | 0 | it = this->numbers().begin(); |
3119 | 0 | it != this->numbers().end(); ++it) { |
3120 | 0 | entry.reset(numbers_.NewEntryWrapper( |
3121 | 0 | it->first, it->second)); |
3122 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
3123 | 0 | 2, *entry, output); |
3124 | 0 | Utf8Check::Check(&*it); |
3125 | 0 | } |
3126 | 0 | } |
3127 | 0 | } |
3128 | |
|
3129 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
3130 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
3131 | 0 | _internal_metadata_.unknown_fields(), output); |
3132 | 0 | } |
3133 | | // @@protoc_insertion_point(serialize_end:AddressIntMapStd) |
3134 | 0 | } |
3135 | | |
3136 | | ::google::protobuf::uint8* AddressIntMapStd::InternalSerializeWithCachedSizesToArray( |
3137 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
3138 | 0 | (void)deterministic; // Unused |
3139 | | // @@protoc_insertion_point(serialize_to_array_start:AddressIntMapStd) |
3140 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3141 | 0 | (void) cached_has_bits; |
3142 | |
|
3143 | 0 | cached_has_bits = _has_bits_[0]; |
3144 | | // required string addr = 1; |
3145 | 0 | if (cached_has_bits & 0x00000001u) { |
3146 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
3147 | 0 | this->addr().data(), static_cast<int>(this->addr().length()), |
3148 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
3149 | 0 | "AddressIntMapStd.addr"); |
3150 | 0 | target = |
3151 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
3152 | 0 | 1, this->addr(), target); |
3153 | 0 | } |
3154 | | |
3155 | | // map<string, int32> numbers = 2; |
3156 | 0 | if (!this->numbers().empty()) { |
3157 | 0 | typedef ::google::protobuf::Map< ::std::string, ::google::protobuf::int32 >::const_pointer |
3158 | 0 | ConstPtr; |
3159 | 0 | typedef ConstPtr SortItem; |
3160 | 0 | typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less; |
3161 | 0 | struct Utf8Check { |
3162 | 0 | static void Check(ConstPtr p) { |
3163 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
3164 | 0 | p->first.data(), static_cast<int>(p->first.length()), |
3165 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
3166 | 0 | "AddressIntMapStd.NumbersEntry.key"); |
3167 | 0 | } |
3168 | 0 | }; |
3169 | |
|
3170 | 0 | if (deterministic && |
3171 | 0 | this->numbers().size() > 1) { |
3172 | 0 | ::std::unique_ptr<SortItem[]> items( |
3173 | 0 | new SortItem[this->numbers().size()]); |
3174 | 0 | typedef ::google::protobuf::Map< ::std::string, ::google::protobuf::int32 >::size_type size_type; |
3175 | 0 | size_type n = 0; |
3176 | 0 | for (::google::protobuf::Map< ::std::string, ::google::protobuf::int32 >::const_iterator |
3177 | 0 | it = this->numbers().begin(); |
3178 | 0 | it != this->numbers().end(); ++it, ++n) { |
3179 | 0 | items[static_cast<ptrdiff_t>(n)] = SortItem(&*it); |
3180 | 0 | } |
3181 | 0 | ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less()); |
3182 | 0 | ::std::unique_ptr<AddressIntMapStd_NumbersEntry_DoNotUse> entry; |
3183 | 0 | for (size_type i = 0; i < n; i++) { |
3184 | 0 | entry.reset(numbers_.NewEntryWrapper( |
3185 | 0 | items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second)); |
3186 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
3187 | 0 | InternalWriteMessageNoVirtualToArray( |
3188 | 0 | 2, *entry, deterministic, target); |
3189 | 0 | ; |
3190 | 0 | Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]); |
3191 | 0 | } |
3192 | 0 | } else { |
3193 | 0 | ::std::unique_ptr<AddressIntMapStd_NumbersEntry_DoNotUse> entry; |
3194 | 0 | for (::google::protobuf::Map< ::std::string, ::google::protobuf::int32 >::const_iterator |
3195 | 0 | it = this->numbers().begin(); |
3196 | 0 | it != this->numbers().end(); ++it) { |
3197 | 0 | entry.reset(numbers_.NewEntryWrapper( |
3198 | 0 | it->first, it->second)); |
3199 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
3200 | 0 | InternalWriteMessageNoVirtualToArray( |
3201 | 0 | 2, *entry, deterministic, target); |
3202 | 0 | ; |
3203 | 0 | Utf8Check::Check(&*it); |
3204 | 0 | } |
3205 | 0 | } |
3206 | 0 | } |
3207 | |
|
3208 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
3209 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
3210 | 0 | _internal_metadata_.unknown_fields(), target); |
3211 | 0 | } |
3212 | | // @@protoc_insertion_point(serialize_to_array_end:AddressIntMapStd) |
3213 | 0 | return target; |
3214 | 0 | } |
3215 | | |
3216 | 0 | size_t AddressIntMapStd::ByteSizeLong() const { |
3217 | | // @@protoc_insertion_point(message_byte_size_start:AddressIntMapStd) |
3218 | 0 | size_t total_size = 0; |
3219 | |
|
3220 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
3221 | 0 | total_size += |
3222 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
3223 | 0 | _internal_metadata_.unknown_fields()); |
3224 | 0 | } |
3225 | | // required string addr = 1; |
3226 | 0 | if (has_addr()) { |
3227 | 0 | total_size += 1 + |
3228 | 0 | ::google::protobuf::internal::WireFormatLite::StringSize( |
3229 | 0 | this->addr()); |
3230 | 0 | } |
3231 | | // map<string, int32> numbers = 2; |
3232 | 0 | total_size += 1 * |
3233 | 0 | ::google::protobuf::internal::FromIntSize(this->numbers_size()); |
3234 | 0 | { |
3235 | 0 | ::std::unique_ptr<AddressIntMapStd_NumbersEntry_DoNotUse> entry; |
3236 | 0 | for (::google::protobuf::Map< ::std::string, ::google::protobuf::int32 >::const_iterator |
3237 | 0 | it = this->numbers().begin(); |
3238 | 0 | it != this->numbers().end(); ++it) { |
3239 | 0 | entry.reset(numbers_.NewEntryWrapper(it->first, it->second)); |
3240 | 0 | total_size += ::google::protobuf::internal::WireFormatLite:: |
3241 | 0 | MessageSizeNoVirtual(*entry); |
3242 | 0 | } |
3243 | 0 | } |
3244 | |
|
3245 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
3246 | 0 | SetCachedSize(cached_size); |
3247 | 0 | return total_size; |
3248 | 0 | } |
3249 | | |
3250 | 0 | void AddressIntMapStd::MergeFrom(const ::google::protobuf::Message& from) { |
3251 | | // @@protoc_insertion_point(generalized_merge_from_start:AddressIntMapStd) |
3252 | 0 | GOOGLE_DCHECK_NE(&from, this); |
3253 | 0 | const AddressIntMapStd* source = |
3254 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const AddressIntMapStd>( |
3255 | 0 | &from); |
3256 | 0 | if (source == NULL) { |
3257 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:AddressIntMapStd) |
3258 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
3259 | 0 | } else { |
3260 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:AddressIntMapStd) |
3261 | 0 | MergeFrom(*source); |
3262 | 0 | } |
3263 | 0 | } |
3264 | | |
3265 | 0 | void AddressIntMapStd::MergeFrom(const AddressIntMapStd& from) { |
3266 | | // @@protoc_insertion_point(class_specific_merge_from_start:AddressIntMapStd) |
3267 | 0 | GOOGLE_DCHECK_NE(&from, this); |
3268 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3269 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3270 | 0 | (void) cached_has_bits; |
3271 | |
|
3272 | 0 | numbers_.MergeFrom(from.numbers_); |
3273 | 0 | if (from.has_addr()) { |
3274 | 0 | set_has_addr(); |
3275 | 0 | addr_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.addr_); |
3276 | 0 | } |
3277 | 0 | } |
3278 | | |
3279 | 0 | void AddressIntMapStd::CopyFrom(const ::google::protobuf::Message& from) { |
3280 | | // @@protoc_insertion_point(generalized_copy_from_start:AddressIntMapStd) |
3281 | 0 | if (&from == this) return; |
3282 | 0 | Clear(); |
3283 | 0 | MergeFrom(from); |
3284 | 0 | } |
3285 | | |
3286 | 0 | void AddressIntMapStd::CopyFrom(const AddressIntMapStd& from) { |
3287 | | // @@protoc_insertion_point(class_specific_copy_from_start:AddressIntMapStd) |
3288 | 0 | if (&from == this) return; |
3289 | 0 | Clear(); |
3290 | 0 | MergeFrom(from); |
3291 | 0 | } |
3292 | | |
3293 | 0 | bool AddressIntMapStd::IsInitialized() const { |
3294 | 0 | if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; |
3295 | 0 | return true; |
3296 | 0 | } |
3297 | | |
3298 | 0 | void AddressIntMapStd::Swap(AddressIntMapStd* other) { |
3299 | 0 | if (other == this) return; |
3300 | 0 | InternalSwap(other); |
3301 | 0 | } |
3302 | 0 | void AddressIntMapStd::InternalSwap(AddressIntMapStd* other) { |
3303 | 0 | using std::swap; |
3304 | 0 | numbers_.Swap(&other->numbers_); |
3305 | 0 | addr_.Swap(&other->addr_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
3306 | 0 | GetArenaNoVirtual()); |
3307 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
3308 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
3309 | 0 | } |
3310 | | |
3311 | 0 | ::google::protobuf::Metadata AddressIntMapStd::GetMetadata() const { |
3312 | 0 | protobuf_addressbook_5fmap_2eproto::protobuf_AssignDescriptorsOnce(); |
3313 | 0 | return ::protobuf_addressbook_5fmap_2eproto::file_level_metadata[kIndexInFileMessages]; |
3314 | 0 | } |
3315 | | |
3316 | | |
3317 | | // =================================================================== |
3318 | | |
3319 | 2 | AddressStringMapStd_ContactsEntry_DoNotUse::AddressStringMapStd_ContactsEntry_DoNotUse() {} |
3320 | 0 | AddressStringMapStd_ContactsEntry_DoNotUse::AddressStringMapStd_ContactsEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {} |
3321 | 0 | void AddressStringMapStd_ContactsEntry_DoNotUse::MergeFrom(const AddressStringMapStd_ContactsEntry_DoNotUse& other) { |
3322 | 0 | MergeFromInternal(other); |
3323 | 0 | } |
3324 | 0 | ::google::protobuf::Metadata AddressStringMapStd_ContactsEntry_DoNotUse::GetMetadata() const { |
3325 | 0 | ::protobuf_addressbook_5fmap_2eproto::protobuf_AssignDescriptorsOnce(); |
3326 | 0 | return ::protobuf_addressbook_5fmap_2eproto::file_level_metadata[10]; |
3327 | 0 | } |
3328 | | void AddressStringMapStd_ContactsEntry_DoNotUse::MergeFrom( |
3329 | 0 | const ::google::protobuf::Message& other) { |
3330 | 0 | ::google::protobuf::Message::MergeFrom(other); |
3331 | 0 | } |
3332 | | |
3333 | | |
3334 | | // =================================================================== |
3335 | | |
3336 | 2 | void AddressStringMapStd::InitAsDefaultInstance() { |
3337 | 2 | } |
3338 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
3339 | | const int AddressStringMapStd::kAddrFieldNumber; |
3340 | | const int AddressStringMapStd::kContactsFieldNumber; |
3341 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
3342 | | |
3343 | | AddressStringMapStd::AddressStringMapStd() |
3344 | 2 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
3345 | 2 | ::google::protobuf::internal::InitSCC( |
3346 | 2 | &protobuf_addressbook_5fmap_2eproto::scc_info_AddressStringMapStd.base); |
3347 | 2 | SharedCtor(); |
3348 | | // @@protoc_insertion_point(constructor:AddressStringMapStd) |
3349 | 2 | } |
3350 | | AddressStringMapStd::AddressStringMapStd(const AddressStringMapStd& from) |
3351 | 0 | : ::google::protobuf::Message(), |
3352 | 0 | _internal_metadata_(NULL), |
3353 | 0 | _has_bits_(from._has_bits_) { |
3354 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3355 | 0 | contacts_.MergeFrom(from.contacts_); |
3356 | 0 | addr_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3357 | 0 | if (from.has_addr()) { |
3358 | 0 | addr_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.addr_); |
3359 | 0 | } |
3360 | | // @@protoc_insertion_point(copy_constructor:AddressStringMapStd) |
3361 | 0 | } |
3362 | | |
3363 | 2 | void AddressStringMapStd::SharedCtor() { |
3364 | 2 | addr_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3365 | 2 | } |
3366 | | |
3367 | 0 | AddressStringMapStd::~AddressStringMapStd() { |
3368 | | // @@protoc_insertion_point(destructor:AddressStringMapStd) |
3369 | 0 | SharedDtor(); |
3370 | 0 | } |
3371 | | |
3372 | 0 | void AddressStringMapStd::SharedDtor() { |
3373 | 0 | addr_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3374 | 0 | } |
3375 | | |
3376 | 0 | void AddressStringMapStd::SetCachedSize(int size) const { |
3377 | 0 | _cached_size_.Set(size); |
3378 | 0 | } |
3379 | 0 | const ::google::protobuf::Descriptor* AddressStringMapStd::descriptor() { |
3380 | 0 | ::protobuf_addressbook_5fmap_2eproto::protobuf_AssignDescriptorsOnce(); |
3381 | 0 | return ::protobuf_addressbook_5fmap_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
3382 | 0 | } |
3383 | | |
3384 | 0 | const AddressStringMapStd& AddressStringMapStd::default_instance() { |
3385 | 0 | ::google::protobuf::internal::InitSCC(&protobuf_addressbook_5fmap_2eproto::scc_info_AddressStringMapStd.base); |
3386 | 0 | return *internal_default_instance(); |
3387 | 0 | } |
3388 | | |
3389 | | |
3390 | 0 | void AddressStringMapStd::Clear() { |
3391 | | // @@protoc_insertion_point(message_clear_start:AddressStringMapStd) |
3392 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3393 | | // Prevent compiler warnings about cached_has_bits being unused |
3394 | 0 | (void) cached_has_bits; |
3395 | |
|
3396 | 0 | contacts_.Clear(); |
3397 | 0 | cached_has_bits = _has_bits_[0]; |
3398 | 0 | if (cached_has_bits & 0x00000001u) { |
3399 | 0 | addr_.ClearNonDefaultToEmptyNoArena(); |
3400 | 0 | } |
3401 | 0 | _has_bits_.Clear(); |
3402 | 0 | _internal_metadata_.Clear(); |
3403 | 0 | } |
3404 | | |
3405 | | bool AddressStringMapStd::MergePartialFromCodedStream( |
3406 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
3407 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
3408 | 0 | ::google::protobuf::uint32 tag; |
3409 | | // @@protoc_insertion_point(parse_start:AddressStringMapStd) |
3410 | 0 | for (;;) { |
3411 | 0 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
3412 | 0 | tag = p.first; |
3413 | 0 | if (!p.second) goto handle_unusual; |
3414 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
3415 | | // required string addr = 1; |
3416 | 0 | case 1: { |
3417 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3418 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
3419 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
3420 | 0 | input, this->mutable_addr())); |
3421 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
3422 | 0 | this->addr().data(), static_cast<int>(this->addr().length()), |
3423 | 0 | ::google::protobuf::internal::WireFormat::PARSE, |
3424 | 0 | "AddressStringMapStd.addr"); |
3425 | 0 | } else { |
3426 | 0 | goto handle_unusual; |
3427 | 0 | } |
3428 | 0 | break; |
3429 | 0 | } |
3430 | | |
3431 | | // map<string, string> contacts = 2; |
3432 | 0 | case 2: { |
3433 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3434 | 0 | static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) { |
3435 | 0 | AddressStringMapStd_ContactsEntry_DoNotUse::Parser< ::google::protobuf::internal::MapField< |
3436 | 0 | AddressStringMapStd_ContactsEntry_DoNotUse, |
3437 | 0 | ::std::string, ::std::string, |
3438 | 0 | ::google::protobuf::internal::WireFormatLite::TYPE_STRING, |
3439 | 0 | ::google::protobuf::internal::WireFormatLite::TYPE_STRING, |
3440 | 0 | 0 >, |
3441 | 0 | ::google::protobuf::Map< ::std::string, ::std::string > > parser(&contacts_); |
3442 | 0 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( |
3443 | 0 | input, &parser)); |
3444 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
3445 | 0 | parser.key().data(), static_cast<int>(parser.key().length()), |
3446 | 0 | ::google::protobuf::internal::WireFormat::PARSE, |
3447 | 0 | "AddressStringMapStd.ContactsEntry.key"); |
3448 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
3449 | 0 | parser.value().data(), static_cast<int>(parser.value().length()), |
3450 | 0 | ::google::protobuf::internal::WireFormat::PARSE, |
3451 | 0 | "AddressStringMapStd.ContactsEntry.value"); |
3452 | 0 | } else { |
3453 | 0 | goto handle_unusual; |
3454 | 0 | } |
3455 | 0 | break; |
3456 | 0 | } |
3457 | | |
3458 | 0 | default: { |
3459 | 0 | handle_unusual: |
3460 | 0 | if (tag == 0) { |
3461 | 0 | goto success; |
3462 | 0 | } |
3463 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
3464 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
3465 | 0 | break; |
3466 | 0 | } |
3467 | 0 | } |
3468 | 0 | } |
3469 | 0 | success: |
3470 | | // @@protoc_insertion_point(parse_success:AddressStringMapStd) |
3471 | 0 | return true; |
3472 | 0 | failure: |
3473 | | // @@protoc_insertion_point(parse_failure:AddressStringMapStd) |
3474 | 0 | return false; |
3475 | 0 | #undef DO_ |
3476 | 0 | } |
3477 | | |
3478 | | void AddressStringMapStd::SerializeWithCachedSizes( |
3479 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
3480 | | // @@protoc_insertion_point(serialize_start:AddressStringMapStd) |
3481 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3482 | 0 | (void) cached_has_bits; |
3483 | |
|
3484 | 0 | cached_has_bits = _has_bits_[0]; |
3485 | | // required string addr = 1; |
3486 | 0 | if (cached_has_bits & 0x00000001u) { |
3487 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
3488 | 0 | this->addr().data(), static_cast<int>(this->addr().length()), |
3489 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
3490 | 0 | "AddressStringMapStd.addr"); |
3491 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
3492 | 0 | 1, this->addr(), output); |
3493 | 0 | } |
3494 | | |
3495 | | // map<string, string> contacts = 2; |
3496 | 0 | if (!this->contacts().empty()) { |
3497 | 0 | typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer |
3498 | 0 | ConstPtr; |
3499 | 0 | typedef ConstPtr SortItem; |
3500 | 0 | typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less; |
3501 | 0 | struct Utf8Check { |
3502 | 0 | static void Check(ConstPtr p) { |
3503 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
3504 | 0 | p->first.data(), static_cast<int>(p->first.length()), |
3505 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
3506 | 0 | "AddressStringMapStd.ContactsEntry.key"); |
3507 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
3508 | 0 | p->second.data(), static_cast<int>(p->second.length()), |
3509 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
3510 | 0 | "AddressStringMapStd.ContactsEntry.value"); |
3511 | 0 | } |
3512 | 0 | }; |
3513 | |
|
3514 | 0 | if (output->IsSerializationDeterministic() && |
3515 | 0 | this->contacts().size() > 1) { |
3516 | 0 | ::std::unique_ptr<SortItem[]> items( |
3517 | 0 | new SortItem[this->contacts().size()]); |
3518 | 0 | typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; |
3519 | 0 | size_type n = 0; |
3520 | 0 | for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator |
3521 | 0 | it = this->contacts().begin(); |
3522 | 0 | it != this->contacts().end(); ++it, ++n) { |
3523 | 0 | items[static_cast<ptrdiff_t>(n)] = SortItem(&*it); |
3524 | 0 | } |
3525 | 0 | ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less()); |
3526 | 0 | ::std::unique_ptr<AddressStringMapStd_ContactsEntry_DoNotUse> entry; |
3527 | 0 | for (size_type i = 0; i < n; i++) { |
3528 | 0 | entry.reset(contacts_.NewEntryWrapper( |
3529 | 0 | items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second)); |
3530 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
3531 | 0 | 2, *entry, output); |
3532 | 0 | Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]); |
3533 | 0 | } |
3534 | 0 | } else { |
3535 | 0 | ::std::unique_ptr<AddressStringMapStd_ContactsEntry_DoNotUse> entry; |
3536 | 0 | for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator |
3537 | 0 | it = this->contacts().begin(); |
3538 | 0 | it != this->contacts().end(); ++it) { |
3539 | 0 | entry.reset(contacts_.NewEntryWrapper( |
3540 | 0 | it->first, it->second)); |
3541 | 0 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
3542 | 0 | 2, *entry, output); |
3543 | 0 | Utf8Check::Check(&*it); |
3544 | 0 | } |
3545 | 0 | } |
3546 | 0 | } |
3547 | |
|
3548 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
3549 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
3550 | 0 | _internal_metadata_.unknown_fields(), output); |
3551 | 0 | } |
3552 | | // @@protoc_insertion_point(serialize_end:AddressStringMapStd) |
3553 | 0 | } |
3554 | | |
3555 | | ::google::protobuf::uint8* AddressStringMapStd::InternalSerializeWithCachedSizesToArray( |
3556 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
3557 | 0 | (void)deterministic; // Unused |
3558 | | // @@protoc_insertion_point(serialize_to_array_start:AddressStringMapStd) |
3559 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3560 | 0 | (void) cached_has_bits; |
3561 | |
|
3562 | 0 | cached_has_bits = _has_bits_[0]; |
3563 | | // required string addr = 1; |
3564 | 0 | if (cached_has_bits & 0x00000001u) { |
3565 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
3566 | 0 | this->addr().data(), static_cast<int>(this->addr().length()), |
3567 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
3568 | 0 | "AddressStringMapStd.addr"); |
3569 | 0 | target = |
3570 | 0 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
3571 | 0 | 1, this->addr(), target); |
3572 | 0 | } |
3573 | | |
3574 | | // map<string, string> contacts = 2; |
3575 | 0 | if (!this->contacts().empty()) { |
3576 | 0 | typedef ::google::protobuf::Map< ::std::string, ::std::string >::const_pointer |
3577 | 0 | ConstPtr; |
3578 | 0 | typedef ConstPtr SortItem; |
3579 | 0 | typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less; |
3580 | 0 | struct Utf8Check { |
3581 | 0 | static void Check(ConstPtr p) { |
3582 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
3583 | 0 | p->first.data(), static_cast<int>(p->first.length()), |
3584 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
3585 | 0 | "AddressStringMapStd.ContactsEntry.key"); |
3586 | 0 | ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( |
3587 | 0 | p->second.data(), static_cast<int>(p->second.length()), |
3588 | 0 | ::google::protobuf::internal::WireFormat::SERIALIZE, |
3589 | 0 | "AddressStringMapStd.ContactsEntry.value"); |
3590 | 0 | } |
3591 | 0 | }; |
3592 | |
|
3593 | 0 | if (deterministic && |
3594 | 0 | this->contacts().size() > 1) { |
3595 | 0 | ::std::unique_ptr<SortItem[]> items( |
3596 | 0 | new SortItem[this->contacts().size()]); |
3597 | 0 | typedef ::google::protobuf::Map< ::std::string, ::std::string >::size_type size_type; |
3598 | 0 | size_type n = 0; |
3599 | 0 | for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator |
3600 | 0 | it = this->contacts().begin(); |
3601 | 0 | it != this->contacts().end(); ++it, ++n) { |
3602 | 0 | items[static_cast<ptrdiff_t>(n)] = SortItem(&*it); |
3603 | 0 | } |
3604 | 0 | ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less()); |
3605 | 0 | ::std::unique_ptr<AddressStringMapStd_ContactsEntry_DoNotUse> entry; |
3606 | 0 | for (size_type i = 0; i < n; i++) { |
3607 | 0 | entry.reset(contacts_.NewEntryWrapper( |
3608 | 0 | items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second)); |
3609 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
3610 | 0 | InternalWriteMessageNoVirtualToArray( |
3611 | 0 | 2, *entry, deterministic, target); |
3612 | 0 | ; |
3613 | 0 | Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]); |
3614 | 0 | } |
3615 | 0 | } else { |
3616 | 0 | ::std::unique_ptr<AddressStringMapStd_ContactsEntry_DoNotUse> entry; |
3617 | 0 | for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator |
3618 | 0 | it = this->contacts().begin(); |
3619 | 0 | it != this->contacts().end(); ++it) { |
3620 | 0 | entry.reset(contacts_.NewEntryWrapper( |
3621 | 0 | it->first, it->second)); |
3622 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
3623 | 0 | InternalWriteMessageNoVirtualToArray( |
3624 | 0 | 2, *entry, deterministic, target); |
3625 | 0 | ; |
3626 | 0 | Utf8Check::Check(&*it); |
3627 | 0 | } |
3628 | 0 | } |
3629 | 0 | } |
3630 | |
|
3631 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
3632 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
3633 | 0 | _internal_metadata_.unknown_fields(), target); |
3634 | 0 | } |
3635 | | // @@protoc_insertion_point(serialize_to_array_end:AddressStringMapStd) |
3636 | 0 | return target; |
3637 | 0 | } |
3638 | | |
3639 | 0 | size_t AddressStringMapStd::ByteSizeLong() const { |
3640 | | // @@protoc_insertion_point(message_byte_size_start:AddressStringMapStd) |
3641 | 0 | size_t total_size = 0; |
3642 | |
|
3643 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
3644 | 0 | total_size += |
3645 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
3646 | 0 | _internal_metadata_.unknown_fields()); |
3647 | 0 | } |
3648 | | // required string addr = 1; |
3649 | 0 | if (has_addr()) { |
3650 | 0 | total_size += 1 + |
3651 | 0 | ::google::protobuf::internal::WireFormatLite::StringSize( |
3652 | 0 | this->addr()); |
3653 | 0 | } |
3654 | | // map<string, string> contacts = 2; |
3655 | 0 | total_size += 1 * |
3656 | 0 | ::google::protobuf::internal::FromIntSize(this->contacts_size()); |
3657 | 0 | { |
3658 | 0 | ::std::unique_ptr<AddressStringMapStd_ContactsEntry_DoNotUse> entry; |
3659 | 0 | for (::google::protobuf::Map< ::std::string, ::std::string >::const_iterator |
3660 | 0 | it = this->contacts().begin(); |
3661 | 0 | it != this->contacts().end(); ++it) { |
3662 | 0 | entry.reset(contacts_.NewEntryWrapper(it->first, it->second)); |
3663 | 0 | total_size += ::google::protobuf::internal::WireFormatLite:: |
3664 | 0 | MessageSizeNoVirtual(*entry); |
3665 | 0 | } |
3666 | 0 | } |
3667 | |
|
3668 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
3669 | 0 | SetCachedSize(cached_size); |
3670 | 0 | return total_size; |
3671 | 0 | } |
3672 | | |
3673 | 0 | void AddressStringMapStd::MergeFrom(const ::google::protobuf::Message& from) { |
3674 | | // @@protoc_insertion_point(generalized_merge_from_start:AddressStringMapStd) |
3675 | 0 | GOOGLE_DCHECK_NE(&from, this); |
3676 | 0 | const AddressStringMapStd* source = |
3677 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const AddressStringMapStd>( |
3678 | 0 | &from); |
3679 | 0 | if (source == NULL) { |
3680 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:AddressStringMapStd) |
3681 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
3682 | 0 | } else { |
3683 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:AddressStringMapStd) |
3684 | 0 | MergeFrom(*source); |
3685 | 0 | } |
3686 | 0 | } |
3687 | | |
3688 | 0 | void AddressStringMapStd::MergeFrom(const AddressStringMapStd& from) { |
3689 | | // @@protoc_insertion_point(class_specific_merge_from_start:AddressStringMapStd) |
3690 | 0 | GOOGLE_DCHECK_NE(&from, this); |
3691 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3692 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3693 | 0 | (void) cached_has_bits; |
3694 | |
|
3695 | 0 | contacts_.MergeFrom(from.contacts_); |
3696 | 0 | if (from.has_addr()) { |
3697 | 0 | set_has_addr(); |
3698 | 0 | addr_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.addr_); |
3699 | 0 | } |
3700 | 0 | } |
3701 | | |
3702 | 0 | void AddressStringMapStd::CopyFrom(const ::google::protobuf::Message& from) { |
3703 | | // @@protoc_insertion_point(generalized_copy_from_start:AddressStringMapStd) |
3704 | 0 | if (&from == this) return; |
3705 | 0 | Clear(); |
3706 | 0 | MergeFrom(from); |
3707 | 0 | } |
3708 | | |
3709 | 0 | void AddressStringMapStd::CopyFrom(const AddressStringMapStd& from) { |
3710 | | // @@protoc_insertion_point(class_specific_copy_from_start:AddressStringMapStd) |
3711 | 0 | if (&from == this) return; |
3712 | 0 | Clear(); |
3713 | 0 | MergeFrom(from); |
3714 | 0 | } |
3715 | | |
3716 | 0 | bool AddressStringMapStd::IsInitialized() const { |
3717 | 0 | if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; |
3718 | 0 | return true; |
3719 | 0 | } |
3720 | | |
3721 | 0 | void AddressStringMapStd::Swap(AddressStringMapStd* other) { |
3722 | 0 | if (other == this) return; |
3723 | 0 | InternalSwap(other); |
3724 | 0 | } |
3725 | 0 | void AddressStringMapStd::InternalSwap(AddressStringMapStd* other) { |
3726 | 0 | using std::swap; |
3727 | 0 | contacts_.Swap(&other->contacts_); |
3728 | 0 | addr_.Swap(&other->addr_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
3729 | 0 | GetArenaNoVirtual()); |
3730 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
3731 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
3732 | 0 | } |
3733 | | |
3734 | 0 | ::google::protobuf::Metadata AddressStringMapStd::GetMetadata() const { |
3735 | 0 | protobuf_addressbook_5fmap_2eproto::protobuf_AssignDescriptorsOnce(); |
3736 | 0 | return ::protobuf_addressbook_5fmap_2eproto::file_level_metadata[kIndexInFileMessages]; |
3737 | 0 | } |
3738 | | |
3739 | | |
3740 | | // =================================================================== |
3741 | | |
3742 | 2 | void haha::InitAsDefaultInstance() { |
3743 | 2 | } |
3744 | | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
3745 | | const int haha::kAFieldNumber; |
3746 | | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
3747 | | |
3748 | | haha::haha() |
3749 | 2 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
3750 | 2 | ::google::protobuf::internal::InitSCC( |
3751 | 2 | &protobuf_addressbook_5fmap_2eproto::scc_info_haha.base); |
3752 | 2 | SharedCtor(); |
3753 | | // @@protoc_insertion_point(constructor:haha) |
3754 | 2 | } |
3755 | | haha::haha(const haha& from) |
3756 | 0 | : ::google::protobuf::Message(), |
3757 | 0 | _internal_metadata_(NULL), |
3758 | 0 | _has_bits_(from._has_bits_), |
3759 | 0 | a_(from.a_) { |
3760 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3761 | | // @@protoc_insertion_point(copy_constructor:haha) |
3762 | 0 | } |
3763 | | |
3764 | 2 | void haha::SharedCtor() { |
3765 | 2 | } |
3766 | | |
3767 | 0 | haha::~haha() { |
3768 | | // @@protoc_insertion_point(destructor:haha) |
3769 | 0 | SharedDtor(); |
3770 | 0 | } |
3771 | | |
3772 | 0 | void haha::SharedDtor() { |
3773 | 0 | } |
3774 | | |
3775 | 0 | void haha::SetCachedSize(int size) const { |
3776 | 0 | _cached_size_.Set(size); |
3777 | 0 | } |
3778 | 0 | const ::google::protobuf::Descriptor* haha::descriptor() { |
3779 | 0 | ::protobuf_addressbook_5fmap_2eproto::protobuf_AssignDescriptorsOnce(); |
3780 | 0 | return ::protobuf_addressbook_5fmap_2eproto::file_level_metadata[kIndexInFileMessages].descriptor; |
3781 | 0 | } |
3782 | | |
3783 | 0 | const haha& haha::default_instance() { |
3784 | 0 | ::google::protobuf::internal::InitSCC(&protobuf_addressbook_5fmap_2eproto::scc_info_haha.base); |
3785 | 0 | return *internal_default_instance(); |
3786 | 0 | } |
3787 | | |
3788 | | |
3789 | 0 | void haha::Clear() { |
3790 | | // @@protoc_insertion_point(message_clear_start:haha) |
3791 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3792 | | // Prevent compiler warnings about cached_has_bits being unused |
3793 | 0 | (void) cached_has_bits; |
3794 | |
|
3795 | 0 | a_.Clear(); |
3796 | 0 | _has_bits_.Clear(); |
3797 | 0 | _internal_metadata_.Clear(); |
3798 | 0 | } |
3799 | | |
3800 | | bool haha::MergePartialFromCodedStream( |
3801 | 0 | ::google::protobuf::io::CodedInputStream* input) { |
3802 | 0 | #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
3803 | 0 | ::google::protobuf::uint32 tag; |
3804 | | // @@protoc_insertion_point(parse_start:haha) |
3805 | 0 | for (;;) { |
3806 | 0 | ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
3807 | 0 | tag = p.first; |
3808 | 0 | if (!p.second) goto handle_unusual; |
3809 | 0 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
3810 | | // repeated int32 a = 1; |
3811 | 0 | case 1: { |
3812 | 0 | if (static_cast< ::google::protobuf::uint8>(tag) == |
3813 | 0 | static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) { |
3814 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< |
3815 | 0 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
3816 | 0 | 1, 8u, input, this->mutable_a()))); |
3817 | 0 | } else if ( |
3818 | 0 | static_cast< ::google::protobuf::uint8>(tag) == |
3819 | 0 | static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) { |
3820 | 0 | DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< |
3821 | 0 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>( |
3822 | 0 | input, this->mutable_a()))); |
3823 | 0 | } else { |
3824 | 0 | goto handle_unusual; |
3825 | 0 | } |
3826 | 0 | break; |
3827 | 0 | } |
3828 | | |
3829 | 0 | default: { |
3830 | 0 | handle_unusual: |
3831 | 0 | if (tag == 0) { |
3832 | 0 | goto success; |
3833 | 0 | } |
3834 | 0 | DO_(::google::protobuf::internal::WireFormat::SkipField( |
3835 | 0 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
3836 | 0 | break; |
3837 | 0 | } |
3838 | 0 | } |
3839 | 0 | } |
3840 | 0 | success: |
3841 | | // @@protoc_insertion_point(parse_success:haha) |
3842 | 0 | return true; |
3843 | 0 | failure: |
3844 | | // @@protoc_insertion_point(parse_failure:haha) |
3845 | 0 | return false; |
3846 | 0 | #undef DO_ |
3847 | 0 | } |
3848 | | |
3849 | | void haha::SerializeWithCachedSizes( |
3850 | 0 | ::google::protobuf::io::CodedOutputStream* output) const { |
3851 | | // @@protoc_insertion_point(serialize_start:haha) |
3852 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3853 | 0 | (void) cached_has_bits; |
3854 | | |
3855 | | // repeated int32 a = 1; |
3856 | 0 | for (int i = 0, n = this->a_size(); i < n; i++) { |
3857 | 0 | ::google::protobuf::internal::WireFormatLite::WriteInt32( |
3858 | 0 | 1, this->a(i), output); |
3859 | 0 | } |
3860 | |
|
3861 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
3862 | 0 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields( |
3863 | 0 | _internal_metadata_.unknown_fields(), output); |
3864 | 0 | } |
3865 | | // @@protoc_insertion_point(serialize_end:haha) |
3866 | 0 | } |
3867 | | |
3868 | | ::google::protobuf::uint8* haha::InternalSerializeWithCachedSizesToArray( |
3869 | 0 | bool deterministic, ::google::protobuf::uint8* target) const { |
3870 | 0 | (void)deterministic; // Unused |
3871 | | // @@protoc_insertion_point(serialize_to_array_start:haha) |
3872 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3873 | 0 | (void) cached_has_bits; |
3874 | | |
3875 | | // repeated int32 a = 1; |
3876 | 0 | target = ::google::protobuf::internal::WireFormatLite:: |
3877 | 0 | WriteInt32ToArray(1, this->a_, target); |
3878 | |
|
3879 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
3880 | 0 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( |
3881 | 0 | _internal_metadata_.unknown_fields(), target); |
3882 | 0 | } |
3883 | | // @@protoc_insertion_point(serialize_to_array_end:haha) |
3884 | 0 | return target; |
3885 | 0 | } |
3886 | | |
3887 | 0 | size_t haha::ByteSizeLong() const { |
3888 | | // @@protoc_insertion_point(message_byte_size_start:haha) |
3889 | 0 | size_t total_size = 0; |
3890 | |
|
3891 | 0 | if (_internal_metadata_.have_unknown_fields()) { |
3892 | 0 | total_size += |
3893 | 0 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( |
3894 | 0 | _internal_metadata_.unknown_fields()); |
3895 | 0 | } |
3896 | | // repeated int32 a = 1; |
3897 | 0 | { |
3898 | 0 | size_t data_size = ::google::protobuf::internal::WireFormatLite:: |
3899 | 0 | Int32Size(this->a_); |
3900 | 0 | total_size += 1 * |
3901 | 0 | ::google::protobuf::internal::FromIntSize(this->a_size()); |
3902 | 0 | total_size += data_size; |
3903 | 0 | } |
3904 | |
|
3905 | 0 | int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); |
3906 | 0 | SetCachedSize(cached_size); |
3907 | 0 | return total_size; |
3908 | 0 | } |
3909 | | |
3910 | 0 | void haha::MergeFrom(const ::google::protobuf::Message& from) { |
3911 | | // @@protoc_insertion_point(generalized_merge_from_start:haha) |
3912 | 0 | GOOGLE_DCHECK_NE(&from, this); |
3913 | 0 | const haha* source = |
3914 | 0 | ::google::protobuf::internal::DynamicCastToGenerated<const haha>( |
3915 | 0 | &from); |
3916 | 0 | if (source == NULL) { |
3917 | | // @@protoc_insertion_point(generalized_merge_from_cast_fail:haha) |
3918 | 0 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
3919 | 0 | } else { |
3920 | | // @@protoc_insertion_point(generalized_merge_from_cast_success:haha) |
3921 | 0 | MergeFrom(*source); |
3922 | 0 | } |
3923 | 0 | } |
3924 | | |
3925 | 0 | void haha::MergeFrom(const haha& from) { |
3926 | | // @@protoc_insertion_point(class_specific_merge_from_start:haha) |
3927 | 0 | GOOGLE_DCHECK_NE(&from, this); |
3928 | 0 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
3929 | 0 | ::google::protobuf::uint32 cached_has_bits = 0; |
3930 | 0 | (void) cached_has_bits; |
3931 | |
|
3932 | 0 | a_.MergeFrom(from.a_); |
3933 | 0 | } |
3934 | | |
3935 | 0 | void haha::CopyFrom(const ::google::protobuf::Message& from) { |
3936 | | // @@protoc_insertion_point(generalized_copy_from_start:haha) |
3937 | 0 | if (&from == this) return; |
3938 | 0 | Clear(); |
3939 | 0 | MergeFrom(from); |
3940 | 0 | } |
3941 | | |
3942 | 0 | void haha::CopyFrom(const haha& from) { |
3943 | | // @@protoc_insertion_point(class_specific_copy_from_start:haha) |
3944 | 0 | if (&from == this) return; |
3945 | 0 | Clear(); |
3946 | 0 | MergeFrom(from); |
3947 | 0 | } |
3948 | | |
3949 | 0 | bool haha::IsInitialized() const { |
3950 | 0 | return true; |
3951 | 0 | } |
3952 | | |
3953 | 0 | void haha::Swap(haha* other) { |
3954 | 0 | if (other == this) return; |
3955 | 0 | InternalSwap(other); |
3956 | 0 | } |
3957 | 0 | void haha::InternalSwap(haha* other) { |
3958 | 0 | using std::swap; |
3959 | 0 | a_.InternalSwap(&other->a_); |
3960 | 0 | swap(_has_bits_[0], other->_has_bits_[0]); |
3961 | 0 | _internal_metadata_.Swap(&other->_internal_metadata_); |
3962 | 0 | } |
3963 | | |
3964 | 0 | ::google::protobuf::Metadata haha::GetMetadata() const { |
3965 | 0 | protobuf_addressbook_5fmap_2eproto::protobuf_AssignDescriptorsOnce(); |
3966 | 0 | return ::protobuf_addressbook_5fmap_2eproto::file_level_metadata[kIndexInFileMessages]; |
3967 | 0 | } |
3968 | | |
3969 | | |
3970 | | // @@protoc_insertion_point(namespace_scope) |
3971 | | namespace google { |
3972 | | namespace protobuf { |
3973 | 0 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::AddressNoMap* Arena::CreateMaybeMessage< ::AddressNoMap >(Arena* arena) { |
3974 | 0 | return Arena::CreateInternal< ::AddressNoMap >(arena); |
3975 | 0 | } |
3976 | 0 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::AddressIntMap_MapFieldEntry* Arena::CreateMaybeMessage< ::AddressIntMap_MapFieldEntry >(Arena* arena) { |
3977 | 0 | return Arena::CreateInternal< ::AddressIntMap_MapFieldEntry >(arena); |
3978 | 0 | } |
3979 | 0 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::AddressIntMap* Arena::CreateMaybeMessage< ::AddressIntMap >(Arena* arena) { |
3980 | 0 | return Arena::CreateInternal< ::AddressIntMap >(arena); |
3981 | 0 | } |
3982 | 0 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::AddressStringMap_MapFieldEntry* Arena::CreateMaybeMessage< ::AddressStringMap_MapFieldEntry >(Arena* arena) { |
3983 | 0 | return Arena::CreateInternal< ::AddressStringMap_MapFieldEntry >(arena); |
3984 | 0 | } |
3985 | 0 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::AddressStringMap* Arena::CreateMaybeMessage< ::AddressStringMap >(Arena* arena) { |
3986 | 0 | return Arena::CreateInternal< ::AddressStringMap >(arena); |
3987 | 0 | } |
3988 | 0 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::AddressComplex_FriendEntry_Education* Arena::CreateMaybeMessage< ::AddressComplex_FriendEntry_Education >(Arena* arena) { |
3989 | 0 | return Arena::CreateInternal< ::AddressComplex_FriendEntry_Education >(arena); |
3990 | 0 | } |
3991 | 0 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::AddressComplex_FriendEntry* Arena::CreateMaybeMessage< ::AddressComplex_FriendEntry >(Arena* arena) { |
3992 | 0 | return Arena::CreateInternal< ::AddressComplex_FriendEntry >(arena); |
3993 | 0 | } |
3994 | 0 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::AddressComplex* Arena::CreateMaybeMessage< ::AddressComplex >(Arena* arena) { |
3995 | 0 | return Arena::CreateInternal< ::AddressComplex >(arena); |
3996 | 0 | } |
3997 | 0 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::AddressIntMapStd_NumbersEntry_DoNotUse* Arena::CreateMaybeMessage< ::AddressIntMapStd_NumbersEntry_DoNotUse >(Arena* arena) { |
3998 | 0 | return Arena::CreateInternal< ::AddressIntMapStd_NumbersEntry_DoNotUse >(arena); |
3999 | 0 | } |
4000 | 0 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::AddressIntMapStd* Arena::CreateMaybeMessage< ::AddressIntMapStd >(Arena* arena) { |
4001 | 0 | return Arena::CreateInternal< ::AddressIntMapStd >(arena); |
4002 | 0 | } |
4003 | 0 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::AddressStringMapStd_ContactsEntry_DoNotUse* Arena::CreateMaybeMessage< ::AddressStringMapStd_ContactsEntry_DoNotUse >(Arena* arena) { |
4004 | 0 | return Arena::CreateInternal< ::AddressStringMapStd_ContactsEntry_DoNotUse >(arena); |
4005 | 0 | } |
4006 | 0 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::AddressStringMapStd* Arena::CreateMaybeMessage< ::AddressStringMapStd >(Arena* arena) { |
4007 | 0 | return Arena::CreateInternal< ::AddressStringMapStd >(arena); |
4008 | 0 | } |
4009 | 0 | template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::haha* Arena::CreateMaybeMessage< ::haha >(Arena* arena) { |
4010 | 0 | return Arena::CreateInternal< ::haha >(arena); |
4011 | 0 | } |
4012 | | } // namespace protobuf |
4013 | | } // namespace google |
4014 | | |
4015 | | // @@protoc_insertion_point(global_scope) |