/src/brpc/build/test/addressbook_encode_decode.pb.h
Line | Count | Source |
1 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | | // source: addressbook_encode_decode.proto |
3 | | |
4 | | #ifndef GOOGLE_PROTOBUF_INCLUDED_addressbook_5fencode_5fdecode_2eproto |
5 | | #define GOOGLE_PROTOBUF_INCLUDED_addressbook_5fencode_5fdecode_2eproto |
6 | | |
7 | | #include <limits> |
8 | | #include <string> |
9 | | |
10 | | #include <google/protobuf/port_def.inc> |
11 | | #if PROTOBUF_VERSION < 3021000 |
12 | | #error This file was generated by a newer version of protoc which is |
13 | | #error incompatible with your Protocol Buffer headers. Please update |
14 | | #error your headers. |
15 | | #endif |
16 | | #if 3021012 < PROTOBUF_MIN_PROTOC_VERSION |
17 | | #error This file was generated by an older version of protoc which is |
18 | | #error incompatible with your Protocol Buffer headers. Please |
19 | | #error regenerate this file with a newer version of protoc. |
20 | | #endif |
21 | | |
22 | | #include <google/protobuf/port_undef.inc> |
23 | | #include <google/protobuf/io/coded_stream.h> |
24 | | #include <google/protobuf/arena.h> |
25 | | #include <google/protobuf/arenastring.h> |
26 | | #include <google/protobuf/generated_message_util.h> |
27 | | #include <google/protobuf/metadata_lite.h> |
28 | | #include <google/protobuf/generated_message_reflection.h> |
29 | | #include <google/protobuf/message.h> |
30 | | #include <google/protobuf/repeated_field.h> // IWYU pragma: export |
31 | | #include <google/protobuf/extension_set.h> // IWYU pragma: export |
32 | | #include <google/protobuf/generated_enum_reflection.h> |
33 | | #include <google/protobuf/unknown_field_set.h> |
34 | | // @@protoc_insertion_point(includes) |
35 | | #include <google/protobuf/port_def.inc> |
36 | | #define PROTOBUF_INTERNAL_EXPORT_addressbook_5fencode_5fdecode_2eproto |
37 | | PROTOBUF_NAMESPACE_OPEN |
38 | | namespace internal { |
39 | | class AnyMetadata; |
40 | | } // namespace internal |
41 | | PROTOBUF_NAMESPACE_CLOSE |
42 | | |
43 | | // Internal implementation detail -- do not use these members. |
44 | | struct TableStruct_addressbook_5fencode_5fdecode_2eproto { |
45 | | static const uint32_t offsets[]; |
46 | | }; |
47 | | extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_addressbook_5fencode_5fdecode_2eproto; |
48 | | class AddressBookEncDec; |
49 | | struct AddressBookEncDecDefaultTypeInternal; |
50 | | extern AddressBookEncDecDefaultTypeInternal _AddressBookEncDec_default_instance_; |
51 | | class ContentEncDec; |
52 | | struct ContentEncDecDefaultTypeInternal; |
53 | | extern ContentEncDecDefaultTypeInternal _ContentEncDec_default_instance_; |
54 | | class ExtEncDec; |
55 | | struct ExtEncDecDefaultTypeInternal; |
56 | | extern ExtEncDecDefaultTypeInternal _ExtEncDec_default_instance_; |
57 | | class JsonContextBodyEncDec; |
58 | | struct JsonContextBodyEncDecDefaultTypeInternal; |
59 | | extern JsonContextBodyEncDecDefaultTypeInternal _JsonContextBodyEncDec_default_instance_; |
60 | | class PersonEncDec; |
61 | | struct PersonEncDecDefaultTypeInternal; |
62 | | extern PersonEncDecDefaultTypeInternal _PersonEncDec_default_instance_; |
63 | | PROTOBUF_NAMESPACE_OPEN |
64 | | template<> ::AddressBookEncDec* Arena::CreateMaybeMessage<::AddressBookEncDec>(Arena*); |
65 | | template<> ::ContentEncDec* Arena::CreateMaybeMessage<::ContentEncDec>(Arena*); |
66 | | template<> ::ExtEncDec* Arena::CreateMaybeMessage<::ExtEncDec>(Arena*); |
67 | | template<> ::JsonContextBodyEncDec* Arena::CreateMaybeMessage<::JsonContextBodyEncDec>(Arena*); |
68 | | template<> ::PersonEncDec* Arena::CreateMaybeMessage<::PersonEncDec>(Arena*); |
69 | | PROTOBUF_NAMESPACE_CLOSE |
70 | | |
71 | | enum ExtEncDec_PhoneTypeEncDec : int { |
72 | | ExtEncDec_PhoneTypeEncDec_MOBILE = 0, |
73 | | ExtEncDec_PhoneTypeEncDec_HOME = 1, |
74 | | ExtEncDec_PhoneTypeEncDec_WORK = 2 |
75 | | }; |
76 | | bool ExtEncDec_PhoneTypeEncDec_IsValid(int value); |
77 | | constexpr ExtEncDec_PhoneTypeEncDec ExtEncDec_PhoneTypeEncDec_PhoneTypeEncDec_MIN = ExtEncDec_PhoneTypeEncDec_MOBILE; |
78 | | constexpr ExtEncDec_PhoneTypeEncDec ExtEncDec_PhoneTypeEncDec_PhoneTypeEncDec_MAX = ExtEncDec_PhoneTypeEncDec_WORK; |
79 | | constexpr int ExtEncDec_PhoneTypeEncDec_PhoneTypeEncDec_ARRAYSIZE = ExtEncDec_PhoneTypeEncDec_PhoneTypeEncDec_MAX + 1; |
80 | | |
81 | | const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ExtEncDec_PhoneTypeEncDec_descriptor(); |
82 | | template<typename T> |
83 | | inline const std::string& ExtEncDec_PhoneTypeEncDec_Name(T enum_t_value) { |
84 | | static_assert(::std::is_same<T, ExtEncDec_PhoneTypeEncDec>::value || |
85 | | ::std::is_integral<T>::value, |
86 | | "Incorrect type passed to function ExtEncDec_PhoneTypeEncDec_Name."); |
87 | | return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( |
88 | | ExtEncDec_PhoneTypeEncDec_descriptor(), enum_t_value); |
89 | | } |
90 | | inline bool ExtEncDec_PhoneTypeEncDec_Parse( |
91 | 0 | ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ExtEncDec_PhoneTypeEncDec* value) { |
92 | 0 | return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<ExtEncDec_PhoneTypeEncDec>( |
93 | 0 | ExtEncDec_PhoneTypeEncDec_descriptor(), name, value); |
94 | 0 | } |
95 | | // =================================================================== |
96 | | |
97 | | class ExtEncDec final : |
98 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:ExtEncDec) */ { |
99 | | public: |
100 | 0 | inline ExtEncDec() : ExtEncDec(nullptr) {} |
101 | | ~ExtEncDec() override; |
102 | | explicit PROTOBUF_CONSTEXPR ExtEncDec(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
103 | | |
104 | | ExtEncDec(const ExtEncDec& from); |
105 | | ExtEncDec(ExtEncDec&& from) noexcept |
106 | 0 | : ExtEncDec() { |
107 | 0 | *this = ::std::move(from); |
108 | 0 | } |
109 | | |
110 | 0 | inline ExtEncDec& operator=(const ExtEncDec& from) { |
111 | 0 | CopyFrom(from); |
112 | 0 | return *this; |
113 | 0 | } |
114 | 0 | inline ExtEncDec& operator=(ExtEncDec&& from) noexcept { |
115 | 0 | if (this == &from) return *this; |
116 | 0 | if (GetOwningArena() == from.GetOwningArena() |
117 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
118 | 0 | && GetOwningArena() != nullptr |
119 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
120 | 0 | ) { |
121 | 0 | InternalSwap(&from); |
122 | 0 | } else { |
123 | 0 | CopyFrom(from); |
124 | 0 | } |
125 | 0 | return *this; |
126 | 0 | } |
127 | | |
128 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
129 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
130 | 0 | } |
131 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
132 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
133 | 0 | } |
134 | | |
135 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
136 | 0 | return GetDescriptor(); |
137 | 0 | } |
138 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
139 | 0 | return default_instance().GetMetadata().descriptor; |
140 | 0 | } |
141 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
142 | 0 | return default_instance().GetMetadata().reflection; |
143 | 0 | } |
144 | 0 | static const ExtEncDec& default_instance() { |
145 | 0 | return *internal_default_instance(); |
146 | 0 | } |
147 | 0 | static inline const ExtEncDec* internal_default_instance() { |
148 | 0 | return reinterpret_cast<const ExtEncDec*>( |
149 | 0 | &_ExtEncDec_default_instance_); |
150 | 0 | } |
151 | | static constexpr int kIndexInFileMessages = |
152 | | 0; |
153 | | |
154 | 0 | friend void swap(ExtEncDec& a, ExtEncDec& b) { |
155 | 0 | a.Swap(&b); |
156 | 0 | } |
157 | 0 | inline void Swap(ExtEncDec* other) { |
158 | 0 | if (other == this) return; |
159 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
160 | 0 | if (GetOwningArena() != nullptr && |
161 | 0 | GetOwningArena() == other->GetOwningArena()) { |
162 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
163 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
164 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
165 | 0 | InternalSwap(other); |
166 | 0 | } else { |
167 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
168 | 0 | } |
169 | 0 | } |
170 | 0 | void UnsafeArenaSwap(ExtEncDec* other) { |
171 | 0 | if (other == this) return; |
172 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
173 | 0 | InternalSwap(other); |
174 | 0 | } |
175 | | |
176 | | // implements Message ---------------------------------------------- |
177 | | |
178 | 0 | ExtEncDec* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
179 | 0 | return CreateMaybeMessage<ExtEncDec>(arena); |
180 | 0 | } |
181 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
182 | | void CopyFrom(const ExtEncDec& from); |
183 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
184 | 0 | void MergeFrom( const ExtEncDec& from) { |
185 | 0 | ExtEncDec::MergeImpl(*this, from); |
186 | 0 | } |
187 | | private: |
188 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
189 | | public: |
190 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
191 | | bool IsInitialized() const final; |
192 | | |
193 | | size_t ByteSizeLong() const final; |
194 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
195 | | uint8_t* _InternalSerialize( |
196 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
197 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
198 | | |
199 | | private: |
200 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
201 | | void SharedDtor(); |
202 | | void SetCachedSize(int size) const final; |
203 | | void InternalSwap(ExtEncDec* other); |
204 | | |
205 | | private: |
206 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
207 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
208 | 0 | return "ExtEncDec"; |
209 | 0 | } |
210 | | protected: |
211 | | explicit ExtEncDec(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
212 | | bool is_message_owned = false); |
213 | | public: |
214 | | |
215 | | static const ClassData _class_data_; |
216 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
217 | | |
218 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
219 | | |
220 | | // nested types ---------------------------------------------------- |
221 | | |
222 | | typedef ExtEncDec_PhoneTypeEncDec PhoneTypeEncDec; |
223 | | static constexpr PhoneTypeEncDec MOBILE = |
224 | | ExtEncDec_PhoneTypeEncDec_MOBILE; |
225 | | static constexpr PhoneTypeEncDec HOME = |
226 | | ExtEncDec_PhoneTypeEncDec_HOME; |
227 | | static constexpr PhoneTypeEncDec WORK = |
228 | | ExtEncDec_PhoneTypeEncDec_WORK; |
229 | 0 | static inline bool PhoneTypeEncDec_IsValid(int value) { |
230 | 0 | return ExtEncDec_PhoneTypeEncDec_IsValid(value); |
231 | 0 | } |
232 | | static constexpr PhoneTypeEncDec PhoneTypeEncDec_MIN = |
233 | | ExtEncDec_PhoneTypeEncDec_PhoneTypeEncDec_MIN; |
234 | | static constexpr PhoneTypeEncDec PhoneTypeEncDec_MAX = |
235 | | ExtEncDec_PhoneTypeEncDec_PhoneTypeEncDec_MAX; |
236 | | static constexpr int PhoneTypeEncDec_ARRAYSIZE = |
237 | | ExtEncDec_PhoneTypeEncDec_PhoneTypeEncDec_ARRAYSIZE; |
238 | | static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* |
239 | 0 | PhoneTypeEncDec_descriptor() { |
240 | 0 | return ExtEncDec_PhoneTypeEncDec_descriptor(); |
241 | 0 | } |
242 | | template<typename T> |
243 | | static inline const std::string& PhoneTypeEncDec_Name(T enum_t_value) { |
244 | | static_assert(::std::is_same<T, PhoneTypeEncDec>::value || |
245 | | ::std::is_integral<T>::value, |
246 | | "Incorrect type passed to function PhoneTypeEncDec_Name."); |
247 | | return ExtEncDec_PhoneTypeEncDec_Name(enum_t_value); |
248 | | } |
249 | | static inline bool PhoneTypeEncDec_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name, |
250 | 0 | PhoneTypeEncDec* value) { |
251 | 0 | return ExtEncDec_PhoneTypeEncDec_Parse(name, value); |
252 | 0 | } |
253 | | |
254 | | // accessors ------------------------------------------------------- |
255 | | |
256 | | enum : int { |
257 | | kDatabyteZ040StdZ058Z058StringZ041FieldNumber = 3, |
258 | | kAaGeZ040FieldNumber = 2, |
259 | | kEnumZ045Z045TypeFieldNumber = 4, |
260 | | }; |
261 | | // optional bytes databyte_Z040_std_Z058__Z058_string_Z041_ = 3; |
262 | | bool has_databyte_z040_std_z058__z058_string_z041_() const; |
263 | | private: |
264 | | bool _internal_has_databyte_z040_std_z058__z058_string_z041_() const; |
265 | | public: |
266 | | void clear_databyte_z040_std_z058__z058_string_z041_(); |
267 | | const std::string& databyte_z040_std_z058__z058_string_z041_() const; |
268 | | template <typename ArgT0 = const std::string&, typename... ArgT> |
269 | | void set_databyte_z040_std_z058__z058_string_z041_(ArgT0&& arg0, ArgT... args); |
270 | | std::string* mutable_databyte_z040_std_z058__z058_string_z041_(); |
271 | | PROTOBUF_NODISCARD std::string* release_databyte_z040_std_z058__z058_string_z041_(); |
272 | | void set_allocated_databyte_z040_std_z058__z058_string_z041_(std::string* databyte_z040_std_z058__z058_string_z041_); |
273 | | private: |
274 | | const std::string& _internal_databyte_z040_std_z058__z058_string_z041_() const; |
275 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_databyte_z040_std_z058__z058_string_z041_(const std::string& value); |
276 | | std::string* _internal_mutable_databyte_z040_std_z058__z058_string_z041_(); |
277 | | public: |
278 | | |
279 | | // optional fixed32 Aa_ge_Z040_ = 2; |
280 | | bool has_aa_ge_z040_() const; |
281 | | private: |
282 | | bool _internal_has_aa_ge_z040_() const; |
283 | | public: |
284 | | void clear_aa_ge_z040_(); |
285 | | uint32_t aa_ge_z040_() const; |
286 | | void set_aa_ge_z040_(uint32_t value); |
287 | | private: |
288 | | uint32_t _internal_aa_ge_z040_() const; |
289 | | void _internal_set_aa_ge_z040_(uint32_t value); |
290 | | public: |
291 | | |
292 | | // optional .ExtEncDec.PhoneTypeEncDec enum_Z045__Z045_type = 4 [default = HOME]; |
293 | | bool has_enum_z045__z045_type() const; |
294 | | private: |
295 | | bool _internal_has_enum_z045__z045_type() const; |
296 | | public: |
297 | | void clear_enum_z045__z045_type(); |
298 | | ::ExtEncDec_PhoneTypeEncDec enum_z045__z045_type() const; |
299 | | void set_enum_z045__z045_type(::ExtEncDec_PhoneTypeEncDec value); |
300 | | private: |
301 | | ::ExtEncDec_PhoneTypeEncDec _internal_enum_z045__z045_type() const; |
302 | | void _internal_set_enum_z045__z045_type(::ExtEncDec_PhoneTypeEncDec value); |
303 | | public: |
304 | | |
305 | | // @@protoc_insertion_point(class_scope:ExtEncDec) |
306 | | private: |
307 | | class _Internal; |
308 | | |
309 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
310 | | typedef void InternalArenaConstructable_; |
311 | | typedef void DestructorSkippable_; |
312 | | struct Impl_ { |
313 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
314 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
315 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr databyte_z040_std_z058__z058_string_z041__; |
316 | | uint32_t aa_ge_z040__; |
317 | | int enum_z045__z045_type_; |
318 | | }; |
319 | | union { Impl_ _impl_; }; |
320 | | friend struct ::TableStruct_addressbook_5fencode_5fdecode_2eproto; |
321 | | }; |
322 | | // ------------------------------------------------------------------- |
323 | | |
324 | | class ContentEncDec final : |
325 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:ContentEncDec) */ { |
326 | | public: |
327 | 0 | inline ContentEncDec() : ContentEncDec(nullptr) {} |
328 | | ~ContentEncDec() override; |
329 | | explicit PROTOBUF_CONSTEXPR ContentEncDec(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
330 | | |
331 | | ContentEncDec(const ContentEncDec& from); |
332 | | ContentEncDec(ContentEncDec&& from) noexcept |
333 | 0 | : ContentEncDec() { |
334 | 0 | *this = ::std::move(from); |
335 | 0 | } |
336 | | |
337 | 0 | inline ContentEncDec& operator=(const ContentEncDec& from) { |
338 | 0 | CopyFrom(from); |
339 | 0 | return *this; |
340 | 0 | } |
341 | 0 | inline ContentEncDec& operator=(ContentEncDec&& from) noexcept { |
342 | 0 | if (this == &from) return *this; |
343 | 0 | if (GetOwningArena() == from.GetOwningArena() |
344 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
345 | 0 | && GetOwningArena() != nullptr |
346 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
347 | 0 | ) { |
348 | 0 | InternalSwap(&from); |
349 | 0 | } else { |
350 | 0 | CopyFrom(from); |
351 | 0 | } |
352 | 0 | return *this; |
353 | 0 | } |
354 | | |
355 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
356 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
357 | 0 | } |
358 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
359 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
360 | 0 | } |
361 | | |
362 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
363 | 0 | return GetDescriptor(); |
364 | 0 | } |
365 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
366 | 0 | return default_instance().GetMetadata().descriptor; |
367 | 0 | } |
368 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
369 | 0 | return default_instance().GetMetadata().reflection; |
370 | 0 | } |
371 | 0 | static const ContentEncDec& default_instance() { |
372 | 0 | return *internal_default_instance(); |
373 | 0 | } |
374 | 0 | static inline const ContentEncDec* internal_default_instance() { |
375 | 0 | return reinterpret_cast<const ContentEncDec*>( |
376 | 0 | &_ContentEncDec_default_instance_); |
377 | 0 | } |
378 | | static constexpr int kIndexInFileMessages = |
379 | | 1; |
380 | | |
381 | 0 | friend void swap(ContentEncDec& a, ContentEncDec& b) { |
382 | 0 | a.Swap(&b); |
383 | 0 | } |
384 | 0 | inline void Swap(ContentEncDec* other) { |
385 | 0 | if (other == this) return; |
386 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
387 | 0 | if (GetOwningArena() != nullptr && |
388 | 0 | GetOwningArena() == other->GetOwningArena()) { |
389 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
390 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
391 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
392 | 0 | InternalSwap(other); |
393 | 0 | } else { |
394 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
395 | 0 | } |
396 | 0 | } |
397 | 0 | void UnsafeArenaSwap(ContentEncDec* other) { |
398 | 0 | if (other == this) return; |
399 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
400 | 0 | InternalSwap(other); |
401 | 0 | } |
402 | | |
403 | | // implements Message ---------------------------------------------- |
404 | | |
405 | 0 | ContentEncDec* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
406 | 0 | return CreateMaybeMessage<ContentEncDec>(arena); |
407 | 0 | } |
408 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
409 | | void CopyFrom(const ContentEncDec& from); |
410 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
411 | 0 | void MergeFrom( const ContentEncDec& from) { |
412 | 0 | ContentEncDec::MergeImpl(*this, from); |
413 | 0 | } |
414 | | private: |
415 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
416 | | public: |
417 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
418 | | bool IsInitialized() const final; |
419 | | |
420 | | size_t ByteSizeLong() const final; |
421 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
422 | | uint8_t* _InternalSerialize( |
423 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
424 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
425 | | |
426 | | private: |
427 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
428 | | void SharedDtor(); |
429 | | void SetCachedSize(int size) const final; |
430 | | void InternalSwap(ContentEncDec* other); |
431 | | |
432 | | private: |
433 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
434 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
435 | 0 | return "ContentEncDec"; |
436 | 0 | } |
437 | | protected: |
438 | | explicit ContentEncDec(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
439 | | bool is_message_owned = false); |
440 | | public: |
441 | | |
442 | | static const ClassData _class_data_; |
443 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
444 | | |
445 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
446 | | |
447 | | // nested types ---------------------------------------------------- |
448 | | |
449 | | // accessors ------------------------------------------------------- |
450 | | |
451 | | enum : int { |
452 | | kUidZ042FieldNumber = 1, |
453 | | kExtZ037TFieldNumber = 17, |
454 | | kDistanceInfoFieldNumber = 16, |
455 | | }; |
456 | | // optional string uid_Z042_ = 1; |
457 | | bool has_uid_z042_() const; |
458 | | private: |
459 | | bool _internal_has_uid_z042_() const; |
460 | | public: |
461 | | void clear_uid_z042_(); |
462 | | const std::string& uid_z042_() const; |
463 | | template <typename ArgT0 = const std::string&, typename... ArgT> |
464 | | void set_uid_z042_(ArgT0&& arg0, ArgT... args); |
465 | | std::string* mutable_uid_z042_(); |
466 | | PROTOBUF_NODISCARD std::string* release_uid_z042_(); |
467 | | void set_allocated_uid_z042_(std::string* uid_z042_); |
468 | | private: |
469 | | const std::string& _internal_uid_z042_() const; |
470 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_uid_z042_(const std::string& value); |
471 | | std::string* _internal_mutable_uid_z042_(); |
472 | | public: |
473 | | |
474 | | // optional .ExtEncDec _ext_Z037_T_ = 17; |
475 | | bool has__ext_z037_t_() const; |
476 | | private: |
477 | | bool _internal_has__ext_z037_t_() const; |
478 | | public: |
479 | | void clear__ext_z037_t_(); |
480 | | const ::ExtEncDec& _ext_z037_t_() const; |
481 | | PROTOBUF_NODISCARD ::ExtEncDec* release__ext_z037_t_(); |
482 | | ::ExtEncDec* mutable__ext_z037_t_(); |
483 | | void set_allocated__ext_z037_t_(::ExtEncDec* _ext_z037_t_); |
484 | | private: |
485 | | const ::ExtEncDec& _internal__ext_z037_t_() const; |
486 | | ::ExtEncDec* _internal_mutable__ext_z037_t_(); |
487 | | public: |
488 | | void unsafe_arena_set_allocated__ext_z037_t_( |
489 | | ::ExtEncDec* _ext_z037_t_); |
490 | | ::ExtEncDec* unsafe_arena_release__ext_z037_t_(); |
491 | | |
492 | | // required float Distance_info_ = 16; |
493 | | bool has_distance_info_() const; |
494 | | private: |
495 | | bool _internal_has_distance_info_() const; |
496 | | public: |
497 | | void clear_distance_info_(); |
498 | | float distance_info_() const; |
499 | | void set_distance_info_(float value); |
500 | | private: |
501 | | float _internal_distance_info_() const; |
502 | | void _internal_set_distance_info_(float value); |
503 | | public: |
504 | | |
505 | | // @@protoc_insertion_point(class_scope:ContentEncDec) |
506 | | private: |
507 | | class _Internal; |
508 | | |
509 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
510 | | typedef void InternalArenaConstructable_; |
511 | | typedef void DestructorSkippable_; |
512 | | struct Impl_ { |
513 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
514 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
515 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr uid_z042__; |
516 | | ::ExtEncDec* _ext_z037_t__; |
517 | | float distance_info__; |
518 | | }; |
519 | | union { Impl_ _impl_; }; |
520 | | friend struct ::TableStruct_addressbook_5fencode_5fdecode_2eproto; |
521 | | }; |
522 | | // ------------------------------------------------------------------- |
523 | | |
524 | | class JsonContextBodyEncDec final : |
525 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:JsonContextBodyEncDec) */ { |
526 | | public: |
527 | 0 | inline JsonContextBodyEncDec() : JsonContextBodyEncDec(nullptr) {} |
528 | | ~JsonContextBodyEncDec() override; |
529 | | explicit PROTOBUF_CONSTEXPR JsonContextBodyEncDec(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
530 | | |
531 | | JsonContextBodyEncDec(const JsonContextBodyEncDec& from); |
532 | | JsonContextBodyEncDec(JsonContextBodyEncDec&& from) noexcept |
533 | 0 | : JsonContextBodyEncDec() { |
534 | 0 | *this = ::std::move(from); |
535 | 0 | } |
536 | | |
537 | 0 | inline JsonContextBodyEncDec& operator=(const JsonContextBodyEncDec& from) { |
538 | 0 | CopyFrom(from); |
539 | 0 | return *this; |
540 | 0 | } |
541 | 0 | inline JsonContextBodyEncDec& operator=(JsonContextBodyEncDec&& from) noexcept { |
542 | 0 | if (this == &from) return *this; |
543 | 0 | if (GetOwningArena() == from.GetOwningArena() |
544 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
545 | 0 | && GetOwningArena() != nullptr |
546 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
547 | 0 | ) { |
548 | 0 | InternalSwap(&from); |
549 | 0 | } else { |
550 | 0 | CopyFrom(from); |
551 | 0 | } |
552 | 0 | return *this; |
553 | 0 | } |
554 | | |
555 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
556 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
557 | 0 | } |
558 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
559 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
560 | 0 | } |
561 | | |
562 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
563 | 0 | return GetDescriptor(); |
564 | 0 | } |
565 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
566 | 0 | return default_instance().GetMetadata().descriptor; |
567 | 0 | } |
568 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
569 | 0 | return default_instance().GetMetadata().reflection; |
570 | 0 | } |
571 | 0 | static const JsonContextBodyEncDec& default_instance() { |
572 | 0 | return *internal_default_instance(); |
573 | 0 | } |
574 | 0 | static inline const JsonContextBodyEncDec* internal_default_instance() { |
575 | 0 | return reinterpret_cast<const JsonContextBodyEncDec*>( |
576 | 0 | &_JsonContextBodyEncDec_default_instance_); |
577 | 0 | } |
578 | | static constexpr int kIndexInFileMessages = |
579 | | 2; |
580 | | |
581 | 0 | friend void swap(JsonContextBodyEncDec& a, JsonContextBodyEncDec& b) { |
582 | 0 | a.Swap(&b); |
583 | 0 | } |
584 | 0 | inline void Swap(JsonContextBodyEncDec* other) { |
585 | 0 | if (other == this) return; |
586 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
587 | 0 | if (GetOwningArena() != nullptr && |
588 | 0 | GetOwningArena() == other->GetOwningArena()) { |
589 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
590 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
591 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
592 | 0 | InternalSwap(other); |
593 | 0 | } else { |
594 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
595 | 0 | } |
596 | 0 | } |
597 | 0 | void UnsafeArenaSwap(JsonContextBodyEncDec* other) { |
598 | 0 | if (other == this) return; |
599 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
600 | 0 | InternalSwap(other); |
601 | 0 | } |
602 | | |
603 | | // implements Message ---------------------------------------------- |
604 | | |
605 | 0 | JsonContextBodyEncDec* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
606 | 0 | return CreateMaybeMessage<JsonContextBodyEncDec>(arena); |
607 | 0 | } |
608 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
609 | | void CopyFrom(const JsonContextBodyEncDec& from); |
610 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
611 | 0 | void MergeFrom( const JsonContextBodyEncDec& from) { |
612 | 0 | JsonContextBodyEncDec::MergeImpl(*this, from); |
613 | 0 | } |
614 | | private: |
615 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
616 | | public: |
617 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
618 | | bool IsInitialized() const final; |
619 | | |
620 | | size_t ByteSizeLong() const final; |
621 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
622 | | uint8_t* _InternalSerialize( |
623 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
624 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
625 | | |
626 | | private: |
627 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
628 | | void SharedDtor(); |
629 | | void SetCachedSize(int size) const final; |
630 | | void InternalSwap(JsonContextBodyEncDec* other); |
631 | | |
632 | | private: |
633 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
634 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
635 | 0 | return "JsonContextBodyEncDec"; |
636 | 0 | } |
637 | | protected: |
638 | | explicit JsonContextBodyEncDec(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
639 | | bool is_message_owned = false); |
640 | | public: |
641 | | |
642 | | static const ClassData _class_data_; |
643 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
644 | | |
645 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
646 | | |
647 | | // nested types ---------------------------------------------------- |
648 | | |
649 | | // accessors ------------------------------------------------------- |
650 | | |
651 | | enum : int { |
652 | | kZ064ContentTestZ037Z064FieldNumber = 4, |
653 | | kDataZ058ArrayFieldNumber = 5, |
654 | | kInfoFieldNumber = 6, |
655 | | kTypeFieldNumber = 1, |
656 | | kSpurFieldNumber = 3, |
657 | | kJudgeFieldNumber = 2, |
658 | | }; |
659 | | // repeated .ContentEncDec _Z064_Content_Test_Z037__Z064_ = 4; |
660 | | int _z064_content_test_z037__z064__size() const; |
661 | | private: |
662 | | int _internal__z064_content_test_z037__z064__size() const; |
663 | | public: |
664 | | void clear__z064_content_test_z037__z064_(); |
665 | | ::ContentEncDec* mutable__z064_content_test_z037__z064_(int index); |
666 | | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ContentEncDec >* |
667 | | mutable__z064_content_test_z037__z064_(); |
668 | | private: |
669 | | const ::ContentEncDec& _internal__z064_content_test_z037__z064_(int index) const; |
670 | | ::ContentEncDec* _internal_add__z064_content_test_z037__z064_(); |
671 | | public: |
672 | | const ::ContentEncDec& _z064_content_test_z037__z064_(int index) const; |
673 | | ::ContentEncDec* add__z064_content_test_z037__z064_(); |
674 | | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ContentEncDec >& |
675 | | _z064_content_test_z037__z064_() const; |
676 | | |
677 | | // repeated int32 data_Z058_array = 5; |
678 | | int data_z058_array_size() const; |
679 | | private: |
680 | | int _internal_data_z058_array_size() const; |
681 | | public: |
682 | | void clear_data_z058_array(); |
683 | | private: |
684 | | int32_t _internal_data_z058_array(int index) const; |
685 | | const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& |
686 | | _internal_data_z058_array() const; |
687 | | void _internal_add_data_z058_array(int32_t value); |
688 | | ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* |
689 | | _internal_mutable_data_z058_array(); |
690 | | public: |
691 | | int32_t data_z058_array(int index) const; |
692 | | void set_data_z058_array(int index, int32_t value); |
693 | | void add_data_z058_array(int32_t value); |
694 | | const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& |
695 | | data_z058_array() const; |
696 | | ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* |
697 | | mutable_data_z058_array(); |
698 | | |
699 | | // repeated string info = 6; |
700 | | int info_size() const; |
701 | | private: |
702 | | int _internal_info_size() const; |
703 | | public: |
704 | | void clear_info(); |
705 | | const std::string& info(int index) const; |
706 | | std::string* mutable_info(int index); |
707 | | void set_info(int index, const std::string& value); |
708 | | void set_info(int index, std::string&& value); |
709 | | void set_info(int index, const char* value); |
710 | | void set_info(int index, const char* value, size_t size); |
711 | | std::string* add_info(); |
712 | | void add_info(const std::string& value); |
713 | | void add_info(std::string&& value); |
714 | | void add_info(const char* value); |
715 | | void add_info(const char* value, size_t size); |
716 | | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& info() const; |
717 | | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_info(); |
718 | | private: |
719 | | const std::string& _internal_info(int index) const; |
720 | | std::string* _internal_add_info(); |
721 | | public: |
722 | | |
723 | | // optional int64 type = 1; |
724 | | bool has_type() const; |
725 | | private: |
726 | | bool _internal_has_type() const; |
727 | | public: |
728 | | void clear_type(); |
729 | | int64_t type() const; |
730 | | void set_type(int64_t value); |
731 | | private: |
732 | | int64_t _internal_type() const; |
733 | | void _internal_set_type(int64_t value); |
734 | | public: |
735 | | |
736 | | // optional double spur = 3; |
737 | | bool has_spur() const; |
738 | | private: |
739 | | bool _internal_has_spur() const; |
740 | | public: |
741 | | void clear_spur(); |
742 | | double spur() const; |
743 | | void set_spur(double value); |
744 | | private: |
745 | | double _internal_spur() const; |
746 | | void _internal_set_spur(double value); |
747 | | public: |
748 | | |
749 | | // required bool judge = 2; |
750 | | bool has_judge() const; |
751 | | private: |
752 | | bool _internal_has_judge() const; |
753 | | public: |
754 | | void clear_judge(); |
755 | | bool judge() const; |
756 | | void set_judge(bool value); |
757 | | private: |
758 | | bool _internal_judge() const; |
759 | | void _internal_set_judge(bool value); |
760 | | public: |
761 | | |
762 | | // @@protoc_insertion_point(class_scope:JsonContextBodyEncDec) |
763 | | private: |
764 | | class _Internal; |
765 | | |
766 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
767 | | typedef void InternalArenaConstructable_; |
768 | | typedef void DestructorSkippable_; |
769 | | struct Impl_ { |
770 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
771 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
772 | | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ContentEncDec > _z064_content_test_z037__z064__; |
773 | | ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > data_z058_array_; |
774 | | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> info_; |
775 | | int64_t type_; |
776 | | double spur_; |
777 | | bool judge_; |
778 | | }; |
779 | | union { Impl_ _impl_; }; |
780 | | friend struct ::TableStruct_addressbook_5fencode_5fdecode_2eproto; |
781 | | }; |
782 | | // ------------------------------------------------------------------- |
783 | | |
784 | | class PersonEncDec final : |
785 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:PersonEncDec) */ { |
786 | | public: |
787 | 0 | inline PersonEncDec() : PersonEncDec(nullptr) {} |
788 | | ~PersonEncDec() override; |
789 | | explicit PROTOBUF_CONSTEXPR PersonEncDec(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
790 | | |
791 | | PersonEncDec(const PersonEncDec& from); |
792 | | PersonEncDec(PersonEncDec&& from) noexcept |
793 | 0 | : PersonEncDec() { |
794 | 0 | *this = ::std::move(from); |
795 | 0 | } |
796 | | |
797 | 0 | inline PersonEncDec& operator=(const PersonEncDec& from) { |
798 | 0 | CopyFrom(from); |
799 | 0 | return *this; |
800 | 0 | } |
801 | 0 | inline PersonEncDec& operator=(PersonEncDec&& from) noexcept { |
802 | 0 | if (this == &from) return *this; |
803 | 0 | if (GetOwningArena() == from.GetOwningArena() |
804 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
805 | 0 | && GetOwningArena() != nullptr |
806 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
807 | 0 | ) { |
808 | 0 | InternalSwap(&from); |
809 | 0 | } else { |
810 | 0 | CopyFrom(from); |
811 | 0 | } |
812 | 0 | return *this; |
813 | 0 | } |
814 | | |
815 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
816 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
817 | 0 | } |
818 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
819 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
820 | 0 | } |
821 | | |
822 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
823 | 0 | return GetDescriptor(); |
824 | 0 | } |
825 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
826 | 0 | return default_instance().GetMetadata().descriptor; |
827 | 0 | } |
828 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
829 | 0 | return default_instance().GetMetadata().reflection; |
830 | 0 | } |
831 | 0 | static const PersonEncDec& default_instance() { |
832 | 0 | return *internal_default_instance(); |
833 | 0 | } |
834 | 0 | static inline const PersonEncDec* internal_default_instance() { |
835 | 0 | return reinterpret_cast<const PersonEncDec*>( |
836 | 0 | &_PersonEncDec_default_instance_); |
837 | 0 | } |
838 | | static constexpr int kIndexInFileMessages = |
839 | | 3; |
840 | | |
841 | 0 | friend void swap(PersonEncDec& a, PersonEncDec& b) { |
842 | 0 | a.Swap(&b); |
843 | 0 | } |
844 | 0 | inline void Swap(PersonEncDec* other) { |
845 | 0 | if (other == this) return; |
846 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
847 | 0 | if (GetOwningArena() != nullptr && |
848 | 0 | GetOwningArena() == other->GetOwningArena()) { |
849 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
850 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
851 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
852 | 0 | InternalSwap(other); |
853 | 0 | } else { |
854 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
855 | 0 | } |
856 | 0 | } |
857 | 0 | void UnsafeArenaSwap(PersonEncDec* other) { |
858 | 0 | if (other == this) return; |
859 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
860 | 0 | InternalSwap(other); |
861 | 0 | } |
862 | | |
863 | | // implements Message ---------------------------------------------- |
864 | | |
865 | 0 | PersonEncDec* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
866 | 0 | return CreateMaybeMessage<PersonEncDec>(arena); |
867 | 0 | } |
868 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
869 | | void CopyFrom(const PersonEncDec& from); |
870 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
871 | 0 | void MergeFrom( const PersonEncDec& from) { |
872 | 0 | PersonEncDec::MergeImpl(*this, from); |
873 | 0 | } |
874 | | private: |
875 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
876 | | public: |
877 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
878 | | bool IsInitialized() const final; |
879 | | |
880 | | size_t ByteSizeLong() const final; |
881 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
882 | | uint8_t* _InternalSerialize( |
883 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
884 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
885 | | |
886 | | private: |
887 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
888 | | void SharedDtor(); |
889 | | void SetCachedSize(int size) const final; |
890 | | void InternalSwap(PersonEncDec* other); |
891 | | |
892 | | private: |
893 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
894 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
895 | 0 | return "PersonEncDec"; |
896 | 0 | } |
897 | | protected: |
898 | | explicit PersonEncDec(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
899 | | bool is_message_owned = false); |
900 | | public: |
901 | | |
902 | | static const ClassData _class_data_; |
903 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
904 | | |
905 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
906 | | |
907 | | // nested types ---------------------------------------------------- |
908 | | |
909 | | // accessors ------------------------------------------------------- |
910 | | |
911 | | enum : int { |
912 | | kNameFieldNumber = 1, |
913 | | kJsonBodyFieldNumber = 18, |
914 | | kIdFieldNumber = 2, |
915 | | }; |
916 | | // optional string name = 1; |
917 | | bool has_name() const; |
918 | | private: |
919 | | bool _internal_has_name() const; |
920 | | public: |
921 | | void clear_name(); |
922 | | const std::string& name() const; |
923 | | template <typename ArgT0 = const std::string&, typename... ArgT> |
924 | | void set_name(ArgT0&& arg0, ArgT... args); |
925 | | std::string* mutable_name(); |
926 | | PROTOBUF_NODISCARD std::string* release_name(); |
927 | | void set_allocated_name(std::string* name); |
928 | | private: |
929 | | const std::string& _internal_name() const; |
930 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value); |
931 | | std::string* _internal_mutable_name(); |
932 | | public: |
933 | | |
934 | | // optional .JsonContextBodyEncDec json_body = 18; |
935 | | bool has_json_body() const; |
936 | | private: |
937 | | bool _internal_has_json_body() const; |
938 | | public: |
939 | | void clear_json_body(); |
940 | | const ::JsonContextBodyEncDec& json_body() const; |
941 | | PROTOBUF_NODISCARD ::JsonContextBodyEncDec* release_json_body(); |
942 | | ::JsonContextBodyEncDec* mutable_json_body(); |
943 | | void set_allocated_json_body(::JsonContextBodyEncDec* json_body); |
944 | | private: |
945 | | const ::JsonContextBodyEncDec& _internal_json_body() const; |
946 | | ::JsonContextBodyEncDec* _internal_mutable_json_body(); |
947 | | public: |
948 | | void unsafe_arena_set_allocated_json_body( |
949 | | ::JsonContextBodyEncDec* json_body); |
950 | | ::JsonContextBodyEncDec* unsafe_arena_release_json_body(); |
951 | | |
952 | | // optional int32 id = 2; |
953 | | bool has_id() const; |
954 | | private: |
955 | | bool _internal_has_id() const; |
956 | | public: |
957 | | void clear_id(); |
958 | | int32_t id() const; |
959 | | void set_id(int32_t value); |
960 | | private: |
961 | | int32_t _internal_id() const; |
962 | | void _internal_set_id(int32_t value); |
963 | | public: |
964 | | |
965 | | // @@protoc_insertion_point(class_scope:PersonEncDec) |
966 | | private: |
967 | | class _Internal; |
968 | | |
969 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
970 | | typedef void InternalArenaConstructable_; |
971 | | typedef void DestructorSkippable_; |
972 | | struct Impl_ { |
973 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
974 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
975 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; |
976 | | ::JsonContextBodyEncDec* json_body_; |
977 | | int32_t id_; |
978 | | }; |
979 | | union { Impl_ _impl_; }; |
980 | | friend struct ::TableStruct_addressbook_5fencode_5fdecode_2eproto; |
981 | | }; |
982 | | // ------------------------------------------------------------------- |
983 | | |
984 | | class AddressBookEncDec final : |
985 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:AddressBookEncDec) */ { |
986 | | public: |
987 | 0 | inline AddressBookEncDec() : AddressBookEncDec(nullptr) {} |
988 | | ~AddressBookEncDec() override; |
989 | | explicit PROTOBUF_CONSTEXPR AddressBookEncDec(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
990 | | |
991 | | AddressBookEncDec(const AddressBookEncDec& from); |
992 | | AddressBookEncDec(AddressBookEncDec&& from) noexcept |
993 | 0 | : AddressBookEncDec() { |
994 | 0 | *this = ::std::move(from); |
995 | 0 | } |
996 | | |
997 | 0 | inline AddressBookEncDec& operator=(const AddressBookEncDec& from) { |
998 | 0 | CopyFrom(from); |
999 | 0 | return *this; |
1000 | 0 | } |
1001 | 0 | inline AddressBookEncDec& operator=(AddressBookEncDec&& from) noexcept { |
1002 | 0 | if (this == &from) return *this; |
1003 | 0 | if (GetOwningArena() == from.GetOwningArena() |
1004 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
1005 | 0 | && GetOwningArena() != nullptr |
1006 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
1007 | 0 | ) { |
1008 | 0 | InternalSwap(&from); |
1009 | 0 | } else { |
1010 | 0 | CopyFrom(from); |
1011 | 0 | } |
1012 | 0 | return *this; |
1013 | 0 | } |
1014 | | |
1015 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
1016 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
1017 | 0 | } |
1018 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
1019 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
1020 | 0 | } |
1021 | | |
1022 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
1023 | 0 | return GetDescriptor(); |
1024 | 0 | } |
1025 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
1026 | 0 | return default_instance().GetMetadata().descriptor; |
1027 | 0 | } |
1028 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
1029 | 0 | return default_instance().GetMetadata().reflection; |
1030 | 0 | } |
1031 | 0 | static const AddressBookEncDec& default_instance() { |
1032 | 0 | return *internal_default_instance(); |
1033 | 0 | } |
1034 | 0 | static inline const AddressBookEncDec* internal_default_instance() { |
1035 | 0 | return reinterpret_cast<const AddressBookEncDec*>( |
1036 | 0 | &_AddressBookEncDec_default_instance_); |
1037 | 0 | } |
1038 | | static constexpr int kIndexInFileMessages = |
1039 | | 4; |
1040 | | |
1041 | 0 | friend void swap(AddressBookEncDec& a, AddressBookEncDec& b) { |
1042 | 0 | a.Swap(&b); |
1043 | 0 | } |
1044 | 0 | inline void Swap(AddressBookEncDec* other) { |
1045 | 0 | if (other == this) return; |
1046 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
1047 | 0 | if (GetOwningArena() != nullptr && |
1048 | 0 | GetOwningArena() == other->GetOwningArena()) { |
1049 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
1050 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
1051 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
1052 | 0 | InternalSwap(other); |
1053 | 0 | } else { |
1054 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
1055 | 0 | } |
1056 | 0 | } |
1057 | 0 | void UnsafeArenaSwap(AddressBookEncDec* other) { |
1058 | 0 | if (other == this) return; |
1059 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
1060 | 0 | InternalSwap(other); |
1061 | 0 | } |
1062 | | |
1063 | | // implements Message ---------------------------------------------- |
1064 | | |
1065 | 0 | AddressBookEncDec* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
1066 | 0 | return CreateMaybeMessage<AddressBookEncDec>(arena); |
1067 | 0 | } |
1068 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
1069 | | void CopyFrom(const AddressBookEncDec& from); |
1070 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
1071 | 0 | void MergeFrom( const AddressBookEncDec& from) { |
1072 | 0 | AddressBookEncDec::MergeImpl(*this, from); |
1073 | 0 | } |
1074 | | private: |
1075 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
1076 | | public: |
1077 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
1078 | | bool IsInitialized() const final; |
1079 | | |
1080 | | size_t ByteSizeLong() const final; |
1081 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
1082 | | uint8_t* _InternalSerialize( |
1083 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
1084 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
1085 | | |
1086 | | private: |
1087 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
1088 | | void SharedDtor(); |
1089 | | void SetCachedSize(int size) const final; |
1090 | | void InternalSwap(AddressBookEncDec* other); |
1091 | | |
1092 | | private: |
1093 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
1094 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
1095 | 0 | return "AddressBookEncDec"; |
1096 | 0 | } |
1097 | | protected: |
1098 | | explicit AddressBookEncDec(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
1099 | | bool is_message_owned = false); |
1100 | | public: |
1101 | | |
1102 | | static const ClassData _class_data_; |
1103 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
1104 | | |
1105 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
1106 | | |
1107 | | // nested types ---------------------------------------------------- |
1108 | | |
1109 | | // accessors ------------------------------------------------------- |
1110 | | |
1111 | | enum : int { |
1112 | | kPersonFieldNumber = 1, |
1113 | | }; |
1114 | | // repeated .PersonEncDec person = 1; |
1115 | | int person_size() const; |
1116 | | private: |
1117 | | int _internal_person_size() const; |
1118 | | public: |
1119 | | void clear_person(); |
1120 | | ::PersonEncDec* mutable_person(int index); |
1121 | | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PersonEncDec >* |
1122 | | mutable_person(); |
1123 | | private: |
1124 | | const ::PersonEncDec& _internal_person(int index) const; |
1125 | | ::PersonEncDec* _internal_add_person(); |
1126 | | public: |
1127 | | const ::PersonEncDec& person(int index) const; |
1128 | | ::PersonEncDec* add_person(); |
1129 | | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PersonEncDec >& |
1130 | | person() const; |
1131 | | |
1132 | | // @@protoc_insertion_point(class_scope:AddressBookEncDec) |
1133 | | private: |
1134 | | class _Internal; |
1135 | | |
1136 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
1137 | | typedef void InternalArenaConstructable_; |
1138 | | typedef void DestructorSkippable_; |
1139 | | struct Impl_ { |
1140 | | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PersonEncDec > person_; |
1141 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
1142 | | }; |
1143 | | union { Impl_ _impl_; }; |
1144 | | friend struct ::TableStruct_addressbook_5fencode_5fdecode_2eproto; |
1145 | | }; |
1146 | | // =================================================================== |
1147 | | |
1148 | | |
1149 | | // =================================================================== |
1150 | | |
1151 | | #ifdef __GNUC__ |
1152 | | #pragma GCC diagnostic push |
1153 | | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
1154 | | #endif // __GNUC__ |
1155 | | // ExtEncDec |
1156 | | |
1157 | | // optional fixed32 Aa_ge_Z040_ = 2; |
1158 | 0 | inline bool ExtEncDec::_internal_has_aa_ge_z040_() const { |
1159 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
1160 | 0 | return value; |
1161 | 0 | } |
1162 | 0 | inline bool ExtEncDec::has_aa_ge_z040_() const { |
1163 | 0 | return _internal_has_aa_ge_z040_(); |
1164 | 0 | } |
1165 | 0 | inline void ExtEncDec::clear_aa_ge_z040_() { |
1166 | 0 | _impl_.aa_ge_z040__ = 0u; |
1167 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
1168 | 0 | } |
1169 | 0 | inline uint32_t ExtEncDec::_internal_aa_ge_z040_() const { |
1170 | 0 | return _impl_.aa_ge_z040__; |
1171 | 0 | } |
1172 | 0 | inline uint32_t ExtEncDec::aa_ge_z040_() const { |
1173 | 0 | // @@protoc_insertion_point(field_get:ExtEncDec.Aa_ge_Z040_) |
1174 | 0 | return _internal_aa_ge_z040_(); |
1175 | 0 | } |
1176 | 0 | inline void ExtEncDec::_internal_set_aa_ge_z040_(uint32_t value) { |
1177 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
1178 | 0 | _impl_.aa_ge_z040__ = value; |
1179 | 0 | } |
1180 | 0 | inline void ExtEncDec::set_aa_ge_z040_(uint32_t value) { |
1181 | 0 | _internal_set_aa_ge_z040_(value); |
1182 | 0 | // @@protoc_insertion_point(field_set:ExtEncDec.Aa_ge_Z040_) |
1183 | 0 | } |
1184 | | |
1185 | | // optional bytes databyte_Z040_std_Z058__Z058_string_Z041_ = 3; |
1186 | 0 | inline bool ExtEncDec::_internal_has_databyte_z040_std_z058__z058_string_z041_() const { |
1187 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
1188 | 0 | return value; |
1189 | 0 | } |
1190 | 0 | inline bool ExtEncDec::has_databyte_z040_std_z058__z058_string_z041_() const { |
1191 | 0 | return _internal_has_databyte_z040_std_z058__z058_string_z041_(); |
1192 | 0 | } |
1193 | 0 | inline void ExtEncDec::clear_databyte_z040_std_z058__z058_string_z041_() { |
1194 | 0 | _impl_.databyte_z040_std_z058__z058_string_z041__.ClearToEmpty(); |
1195 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
1196 | 0 | } |
1197 | 0 | inline const std::string& ExtEncDec::databyte_z040_std_z058__z058_string_z041_() const { |
1198 | 0 | // @@protoc_insertion_point(field_get:ExtEncDec.databyte_Z040_std_Z058__Z058_string_Z041_) |
1199 | 0 | return _internal_databyte_z040_std_z058__z058_string_z041_(); |
1200 | 0 | } |
1201 | | template <typename ArgT0, typename... ArgT> |
1202 | | inline PROTOBUF_ALWAYS_INLINE |
1203 | | void ExtEncDec::set_databyte_z040_std_z058__z058_string_z041_(ArgT0&& arg0, ArgT... args) { |
1204 | | _impl_._has_bits_[0] |= 0x00000001u; |
1205 | | _impl_.databyte_z040_std_z058__z058_string_z041__.SetBytes(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
1206 | | // @@protoc_insertion_point(field_set:ExtEncDec.databyte_Z040_std_Z058__Z058_string_Z041_) |
1207 | | } |
1208 | 0 | inline std::string* ExtEncDec::mutable_databyte_z040_std_z058__z058_string_z041_() { |
1209 | 0 | std::string* _s = _internal_mutable_databyte_z040_std_z058__z058_string_z041_(); |
1210 | 0 | // @@protoc_insertion_point(field_mutable:ExtEncDec.databyte_Z040_std_Z058__Z058_string_Z041_) |
1211 | 0 | return _s; |
1212 | 0 | } |
1213 | 0 | inline const std::string& ExtEncDec::_internal_databyte_z040_std_z058__z058_string_z041_() const { |
1214 | 0 | return _impl_.databyte_z040_std_z058__z058_string_z041__.Get(); |
1215 | 0 | } |
1216 | 0 | inline void ExtEncDec::_internal_set_databyte_z040_std_z058__z058_string_z041_(const std::string& value) { |
1217 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
1218 | 0 | _impl_.databyte_z040_std_z058__z058_string_z041__.Set(value, GetArenaForAllocation()); |
1219 | 0 | } |
1220 | 0 | inline std::string* ExtEncDec::_internal_mutable_databyte_z040_std_z058__z058_string_z041_() { |
1221 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
1222 | 0 | return _impl_.databyte_z040_std_z058__z058_string_z041__.Mutable(GetArenaForAllocation()); |
1223 | 0 | } |
1224 | 0 | inline std::string* ExtEncDec::release_databyte_z040_std_z058__z058_string_z041_() { |
1225 | 0 | // @@protoc_insertion_point(field_release:ExtEncDec.databyte_Z040_std_Z058__Z058_string_Z041_) |
1226 | 0 | if (!_internal_has_databyte_z040_std_z058__z058_string_z041_()) { |
1227 | 0 | return nullptr; |
1228 | 0 | } |
1229 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
1230 | 0 | auto* p = _impl_.databyte_z040_std_z058__z058_string_z041__.Release(); |
1231 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
1232 | 0 | if (_impl_.databyte_z040_std_z058__z058_string_z041__.IsDefault()) { |
1233 | 0 | _impl_.databyte_z040_std_z058__z058_string_z041__.Set("", GetArenaForAllocation()); |
1234 | 0 | } |
1235 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
1236 | 0 | return p; |
1237 | 0 | } |
1238 | 0 | inline void ExtEncDec::set_allocated_databyte_z040_std_z058__z058_string_z041_(std::string* databyte_z040_std_z058__z058_string_z041_) { |
1239 | 0 | if (databyte_z040_std_z058__z058_string_z041_ != nullptr) { |
1240 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
1241 | 0 | } else { |
1242 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
1243 | 0 | } |
1244 | 0 | _impl_.databyte_z040_std_z058__z058_string_z041__.SetAllocated(databyte_z040_std_z058__z058_string_z041_, GetArenaForAllocation()); |
1245 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
1246 | 0 | if (_impl_.databyte_z040_std_z058__z058_string_z041__.IsDefault()) { |
1247 | 0 | _impl_.databyte_z040_std_z058__z058_string_z041__.Set("", GetArenaForAllocation()); |
1248 | 0 | } |
1249 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
1250 | 0 | // @@protoc_insertion_point(field_set_allocated:ExtEncDec.databyte_Z040_std_Z058__Z058_string_Z041_) |
1251 | 0 | } |
1252 | | |
1253 | | // optional .ExtEncDec.PhoneTypeEncDec enum_Z045__Z045_type = 4 [default = HOME]; |
1254 | 0 | inline bool ExtEncDec::_internal_has_enum_z045__z045_type() const { |
1255 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; |
1256 | 0 | return value; |
1257 | 0 | } |
1258 | 0 | inline bool ExtEncDec::has_enum_z045__z045_type() const { |
1259 | 0 | return _internal_has_enum_z045__z045_type(); |
1260 | 0 | } |
1261 | 0 | inline void ExtEncDec::clear_enum_z045__z045_type() { |
1262 | 0 | _impl_.enum_z045__z045_type_ = 1; |
1263 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
1264 | 0 | } |
1265 | 0 | inline ::ExtEncDec_PhoneTypeEncDec ExtEncDec::_internal_enum_z045__z045_type() const { |
1266 | 0 | return static_cast< ::ExtEncDec_PhoneTypeEncDec >(_impl_.enum_z045__z045_type_); |
1267 | 0 | } |
1268 | 0 | inline ::ExtEncDec_PhoneTypeEncDec ExtEncDec::enum_z045__z045_type() const { |
1269 | 0 | // @@protoc_insertion_point(field_get:ExtEncDec.enum_Z045__Z045_type) |
1270 | 0 | return _internal_enum_z045__z045_type(); |
1271 | 0 | } |
1272 | 0 | inline void ExtEncDec::_internal_set_enum_z045__z045_type(::ExtEncDec_PhoneTypeEncDec value) { |
1273 | 0 | assert(::ExtEncDec_PhoneTypeEncDec_IsValid(value)); |
1274 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
1275 | 0 | _impl_.enum_z045__z045_type_ = value; |
1276 | 0 | } |
1277 | 0 | inline void ExtEncDec::set_enum_z045__z045_type(::ExtEncDec_PhoneTypeEncDec value) { |
1278 | 0 | _internal_set_enum_z045__z045_type(value); |
1279 | 0 | // @@protoc_insertion_point(field_set:ExtEncDec.enum_Z045__Z045_type) |
1280 | 0 | } |
1281 | | |
1282 | | // ------------------------------------------------------------------- |
1283 | | |
1284 | | // ContentEncDec |
1285 | | |
1286 | | // optional string uid_Z042_ = 1; |
1287 | 0 | inline bool ContentEncDec::_internal_has_uid_z042_() const { |
1288 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
1289 | 0 | return value; |
1290 | 0 | } |
1291 | 0 | inline bool ContentEncDec::has_uid_z042_() const { |
1292 | 0 | return _internal_has_uid_z042_(); |
1293 | 0 | } |
1294 | 0 | inline void ContentEncDec::clear_uid_z042_() { |
1295 | 0 | _impl_.uid_z042__.ClearToEmpty(); |
1296 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
1297 | 0 | } |
1298 | 0 | inline const std::string& ContentEncDec::uid_z042_() const { |
1299 | 0 | // @@protoc_insertion_point(field_get:ContentEncDec.uid_Z042_) |
1300 | 0 | return _internal_uid_z042_(); |
1301 | 0 | } |
1302 | | template <typename ArgT0, typename... ArgT> |
1303 | | inline PROTOBUF_ALWAYS_INLINE |
1304 | | void ContentEncDec::set_uid_z042_(ArgT0&& arg0, ArgT... args) { |
1305 | | _impl_._has_bits_[0] |= 0x00000001u; |
1306 | | _impl_.uid_z042__.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
1307 | | // @@protoc_insertion_point(field_set:ContentEncDec.uid_Z042_) |
1308 | | } |
1309 | 0 | inline std::string* ContentEncDec::mutable_uid_z042_() { |
1310 | 0 | std::string* _s = _internal_mutable_uid_z042_(); |
1311 | 0 | // @@protoc_insertion_point(field_mutable:ContentEncDec.uid_Z042_) |
1312 | 0 | return _s; |
1313 | 0 | } |
1314 | 0 | inline const std::string& ContentEncDec::_internal_uid_z042_() const { |
1315 | 0 | return _impl_.uid_z042__.Get(); |
1316 | 0 | } |
1317 | 0 | inline void ContentEncDec::_internal_set_uid_z042_(const std::string& value) { |
1318 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
1319 | 0 | _impl_.uid_z042__.Set(value, GetArenaForAllocation()); |
1320 | 0 | } |
1321 | 0 | inline std::string* ContentEncDec::_internal_mutable_uid_z042_() { |
1322 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
1323 | 0 | return _impl_.uid_z042__.Mutable(GetArenaForAllocation()); |
1324 | 0 | } |
1325 | 0 | inline std::string* ContentEncDec::release_uid_z042_() { |
1326 | 0 | // @@protoc_insertion_point(field_release:ContentEncDec.uid_Z042_) |
1327 | 0 | if (!_internal_has_uid_z042_()) { |
1328 | 0 | return nullptr; |
1329 | 0 | } |
1330 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
1331 | 0 | auto* p = _impl_.uid_z042__.Release(); |
1332 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
1333 | 0 | if (_impl_.uid_z042__.IsDefault()) { |
1334 | 0 | _impl_.uid_z042__.Set("", GetArenaForAllocation()); |
1335 | 0 | } |
1336 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
1337 | 0 | return p; |
1338 | 0 | } |
1339 | 0 | inline void ContentEncDec::set_allocated_uid_z042_(std::string* uid_z042_) { |
1340 | 0 | if (uid_z042_ != nullptr) { |
1341 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
1342 | 0 | } else { |
1343 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
1344 | 0 | } |
1345 | 0 | _impl_.uid_z042__.SetAllocated(uid_z042_, GetArenaForAllocation()); |
1346 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
1347 | 0 | if (_impl_.uid_z042__.IsDefault()) { |
1348 | 0 | _impl_.uid_z042__.Set("", GetArenaForAllocation()); |
1349 | 0 | } |
1350 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
1351 | 0 | // @@protoc_insertion_point(field_set_allocated:ContentEncDec.uid_Z042_) |
1352 | 0 | } |
1353 | | |
1354 | | // required float Distance_info_ = 16; |
1355 | 0 | inline bool ContentEncDec::_internal_has_distance_info_() const { |
1356 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; |
1357 | 0 | return value; |
1358 | 0 | } |
1359 | 0 | inline bool ContentEncDec::has_distance_info_() const { |
1360 | 0 | return _internal_has_distance_info_(); |
1361 | 0 | } |
1362 | 0 | inline void ContentEncDec::clear_distance_info_() { |
1363 | 0 | _impl_.distance_info__ = 0; |
1364 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
1365 | 0 | } |
1366 | 0 | inline float ContentEncDec::_internal_distance_info_() const { |
1367 | 0 | return _impl_.distance_info__; |
1368 | 0 | } |
1369 | 0 | inline float ContentEncDec::distance_info_() const { |
1370 | 0 | // @@protoc_insertion_point(field_get:ContentEncDec.Distance_info_) |
1371 | 0 | return _internal_distance_info_(); |
1372 | 0 | } |
1373 | 0 | inline void ContentEncDec::_internal_set_distance_info_(float value) { |
1374 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
1375 | 0 | _impl_.distance_info__ = value; |
1376 | 0 | } |
1377 | 0 | inline void ContentEncDec::set_distance_info_(float value) { |
1378 | 0 | _internal_set_distance_info_(value); |
1379 | 0 | // @@protoc_insertion_point(field_set:ContentEncDec.Distance_info_) |
1380 | 0 | } |
1381 | | |
1382 | | // optional .ExtEncDec _ext_Z037_T_ = 17; |
1383 | 0 | inline bool ContentEncDec::_internal_has__ext_z037_t_() const { |
1384 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
1385 | 0 | PROTOBUF_ASSUME(!value || _impl_._ext_z037_t__ != nullptr); |
1386 | 0 | return value; |
1387 | 0 | } |
1388 | 0 | inline bool ContentEncDec::has__ext_z037_t_() const { |
1389 | 0 | return _internal_has__ext_z037_t_(); |
1390 | 0 | } |
1391 | 0 | inline void ContentEncDec::clear__ext_z037_t_() { |
1392 | 0 | if (_impl_._ext_z037_t__ != nullptr) _impl_._ext_z037_t__->Clear(); |
1393 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
1394 | 0 | } |
1395 | 0 | inline const ::ExtEncDec& ContentEncDec::_internal__ext_z037_t_() const { |
1396 | 0 | const ::ExtEncDec* p = _impl_._ext_z037_t__; |
1397 | 0 | return p != nullptr ? *p : reinterpret_cast<const ::ExtEncDec&>( |
1398 | 0 | ::_ExtEncDec_default_instance_); |
1399 | 0 | } |
1400 | 0 | inline const ::ExtEncDec& ContentEncDec::_ext_z037_t_() const { |
1401 | 0 | // @@protoc_insertion_point(field_get:ContentEncDec._ext_Z037_T_) |
1402 | 0 | return _internal__ext_z037_t_(); |
1403 | 0 | } |
1404 | | inline void ContentEncDec::unsafe_arena_set_allocated__ext_z037_t_( |
1405 | 0 | ::ExtEncDec* _ext_z037_t_) { |
1406 | 0 | if (GetArenaForAllocation() == nullptr) { |
1407 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_._ext_z037_t__); |
1408 | 0 | } |
1409 | 0 | _impl_._ext_z037_t__ = _ext_z037_t_; |
1410 | 0 | if (_ext_z037_t_) { |
1411 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
1412 | 0 | } else { |
1413 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
1414 | 0 | } |
1415 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:ContentEncDec._ext_Z037_T_) |
1416 | 0 | } |
1417 | 0 | inline ::ExtEncDec* ContentEncDec::release__ext_z037_t_() { |
1418 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
1419 | 0 | ::ExtEncDec* temp = _impl_._ext_z037_t__; |
1420 | 0 | _impl_._ext_z037_t__ = nullptr; |
1421 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
1422 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
1423 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
1424 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
1425 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
1426 | 0 | if (GetArenaForAllocation() != nullptr) { |
1427 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
1428 | 0 | } |
1429 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
1430 | 0 | return temp; |
1431 | 0 | } |
1432 | 0 | inline ::ExtEncDec* ContentEncDec::unsafe_arena_release__ext_z037_t_() { |
1433 | 0 | // @@protoc_insertion_point(field_release:ContentEncDec._ext_Z037_T_) |
1434 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
1435 | 0 | ::ExtEncDec* temp = _impl_._ext_z037_t__; |
1436 | 0 | _impl_._ext_z037_t__ = nullptr; |
1437 | 0 | return temp; |
1438 | 0 | } |
1439 | 0 | inline ::ExtEncDec* ContentEncDec::_internal_mutable__ext_z037_t_() { |
1440 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
1441 | 0 | if (_impl_._ext_z037_t__ == nullptr) { |
1442 | 0 | auto* p = CreateMaybeMessage<::ExtEncDec>(GetArenaForAllocation()); |
1443 | 0 | _impl_._ext_z037_t__ = p; |
1444 | 0 | } |
1445 | 0 | return _impl_._ext_z037_t__; |
1446 | 0 | } |
1447 | 0 | inline ::ExtEncDec* ContentEncDec::mutable__ext_z037_t_() { |
1448 | 0 | ::ExtEncDec* _msg = _internal_mutable__ext_z037_t_(); |
1449 | 0 | // @@protoc_insertion_point(field_mutable:ContentEncDec._ext_Z037_T_) |
1450 | 0 | return _msg; |
1451 | 0 | } |
1452 | 0 | inline void ContentEncDec::set_allocated__ext_z037_t_(::ExtEncDec* _ext_z037_t_) { |
1453 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
1454 | 0 | if (message_arena == nullptr) { |
1455 | 0 | delete _impl_._ext_z037_t__; |
1456 | 0 | } |
1457 | 0 | if (_ext_z037_t_) { |
1458 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
1459 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(_ext_z037_t_); |
1460 | 0 | if (message_arena != submessage_arena) { |
1461 | 0 | _ext_z037_t_ = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
1462 | 0 | message_arena, _ext_z037_t_, submessage_arena); |
1463 | 0 | } |
1464 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
1465 | 0 | } else { |
1466 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
1467 | 0 | } |
1468 | 0 | _impl_._ext_z037_t__ = _ext_z037_t_; |
1469 | 0 | // @@protoc_insertion_point(field_set_allocated:ContentEncDec._ext_Z037_T_) |
1470 | 0 | } |
1471 | | |
1472 | | // ------------------------------------------------------------------- |
1473 | | |
1474 | | // JsonContextBodyEncDec |
1475 | | |
1476 | | // repeated string info = 6; |
1477 | 0 | inline int JsonContextBodyEncDec::_internal_info_size() const { |
1478 | 0 | return _impl_.info_.size(); |
1479 | 0 | } |
1480 | 0 | inline int JsonContextBodyEncDec::info_size() const { |
1481 | 0 | return _internal_info_size(); |
1482 | 0 | } |
1483 | 0 | inline void JsonContextBodyEncDec::clear_info() { |
1484 | 0 | _impl_.info_.Clear(); |
1485 | 0 | } |
1486 | 0 | inline std::string* JsonContextBodyEncDec::add_info() { |
1487 | 0 | std::string* _s = _internal_add_info(); |
1488 | 0 | // @@protoc_insertion_point(field_add_mutable:JsonContextBodyEncDec.info) |
1489 | 0 | return _s; |
1490 | 0 | } |
1491 | 0 | inline const std::string& JsonContextBodyEncDec::_internal_info(int index) const { |
1492 | 0 | return _impl_.info_.Get(index); |
1493 | 0 | } |
1494 | 0 | inline const std::string& JsonContextBodyEncDec::info(int index) const { |
1495 | 0 | // @@protoc_insertion_point(field_get:JsonContextBodyEncDec.info) |
1496 | 0 | return _internal_info(index); |
1497 | 0 | } |
1498 | 0 | inline std::string* JsonContextBodyEncDec::mutable_info(int index) { |
1499 | 0 | // @@protoc_insertion_point(field_mutable:JsonContextBodyEncDec.info) |
1500 | 0 | return _impl_.info_.Mutable(index); |
1501 | 0 | } |
1502 | 0 | inline void JsonContextBodyEncDec::set_info(int index, const std::string& value) { |
1503 | 0 | _impl_.info_.Mutable(index)->assign(value); |
1504 | 0 | // @@protoc_insertion_point(field_set:JsonContextBodyEncDec.info) |
1505 | 0 | } |
1506 | 0 | inline void JsonContextBodyEncDec::set_info(int index, std::string&& value) { |
1507 | 0 | _impl_.info_.Mutable(index)->assign(std::move(value)); |
1508 | 0 | // @@protoc_insertion_point(field_set:JsonContextBodyEncDec.info) |
1509 | 0 | } |
1510 | 0 | inline void JsonContextBodyEncDec::set_info(int index, const char* value) { |
1511 | 0 | GOOGLE_DCHECK(value != nullptr); |
1512 | 0 | _impl_.info_.Mutable(index)->assign(value); |
1513 | 0 | // @@protoc_insertion_point(field_set_char:JsonContextBodyEncDec.info) |
1514 | 0 | } |
1515 | 0 | inline void JsonContextBodyEncDec::set_info(int index, const char* value, size_t size) { |
1516 | 0 | _impl_.info_.Mutable(index)->assign( |
1517 | 0 | reinterpret_cast<const char*>(value), size); |
1518 | 0 | // @@protoc_insertion_point(field_set_pointer:JsonContextBodyEncDec.info) |
1519 | 0 | } |
1520 | 0 | inline std::string* JsonContextBodyEncDec::_internal_add_info() { |
1521 | 0 | return _impl_.info_.Add(); |
1522 | 0 | } |
1523 | 0 | inline void JsonContextBodyEncDec::add_info(const std::string& value) { |
1524 | 0 | _impl_.info_.Add()->assign(value); |
1525 | 0 | // @@protoc_insertion_point(field_add:JsonContextBodyEncDec.info) |
1526 | 0 | } |
1527 | 0 | inline void JsonContextBodyEncDec::add_info(std::string&& value) { |
1528 | 0 | _impl_.info_.Add(std::move(value)); |
1529 | 0 | // @@protoc_insertion_point(field_add:JsonContextBodyEncDec.info) |
1530 | 0 | } |
1531 | 0 | inline void JsonContextBodyEncDec::add_info(const char* value) { |
1532 | 0 | GOOGLE_DCHECK(value != nullptr); |
1533 | 0 | _impl_.info_.Add()->assign(value); |
1534 | 0 | // @@protoc_insertion_point(field_add_char:JsonContextBodyEncDec.info) |
1535 | 0 | } |
1536 | 0 | inline void JsonContextBodyEncDec::add_info(const char* value, size_t size) { |
1537 | 0 | _impl_.info_.Add()->assign(reinterpret_cast<const char*>(value), size); |
1538 | 0 | // @@protoc_insertion_point(field_add_pointer:JsonContextBodyEncDec.info) |
1539 | 0 | } |
1540 | | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& |
1541 | 0 | JsonContextBodyEncDec::info() const { |
1542 | 0 | // @@protoc_insertion_point(field_list:JsonContextBodyEncDec.info) |
1543 | 0 | return _impl_.info_; |
1544 | 0 | } |
1545 | | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* |
1546 | 0 | JsonContextBodyEncDec::mutable_info() { |
1547 | 0 | // @@protoc_insertion_point(field_mutable_list:JsonContextBodyEncDec.info) |
1548 | 0 | return &_impl_.info_; |
1549 | 0 | } |
1550 | | |
1551 | | // optional int64 type = 1; |
1552 | 0 | inline bool JsonContextBodyEncDec::_internal_has_type() const { |
1553 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
1554 | 0 | return value; |
1555 | 0 | } |
1556 | 0 | inline bool JsonContextBodyEncDec::has_type() const { |
1557 | 0 | return _internal_has_type(); |
1558 | 0 | } |
1559 | 0 | inline void JsonContextBodyEncDec::clear_type() { |
1560 | 0 | _impl_.type_ = int64_t{0}; |
1561 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
1562 | 0 | } |
1563 | 0 | inline int64_t JsonContextBodyEncDec::_internal_type() const { |
1564 | 0 | return _impl_.type_; |
1565 | 0 | } |
1566 | 0 | inline int64_t JsonContextBodyEncDec::type() const { |
1567 | 0 | // @@protoc_insertion_point(field_get:JsonContextBodyEncDec.type) |
1568 | 0 | return _internal_type(); |
1569 | 0 | } |
1570 | 0 | inline void JsonContextBodyEncDec::_internal_set_type(int64_t value) { |
1571 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
1572 | 0 | _impl_.type_ = value; |
1573 | 0 | } |
1574 | 0 | inline void JsonContextBodyEncDec::set_type(int64_t value) { |
1575 | 0 | _internal_set_type(value); |
1576 | 0 | // @@protoc_insertion_point(field_set:JsonContextBodyEncDec.type) |
1577 | 0 | } |
1578 | | |
1579 | | // repeated int32 data_Z058_array = 5; |
1580 | 0 | inline int JsonContextBodyEncDec::_internal_data_z058_array_size() const { |
1581 | 0 | return _impl_.data_z058_array_.size(); |
1582 | 0 | } |
1583 | 0 | inline int JsonContextBodyEncDec::data_z058_array_size() const { |
1584 | 0 | return _internal_data_z058_array_size(); |
1585 | 0 | } |
1586 | 0 | inline void JsonContextBodyEncDec::clear_data_z058_array() { |
1587 | 0 | _impl_.data_z058_array_.Clear(); |
1588 | 0 | } |
1589 | 0 | inline int32_t JsonContextBodyEncDec::_internal_data_z058_array(int index) const { |
1590 | 0 | return _impl_.data_z058_array_.Get(index); |
1591 | 0 | } |
1592 | 0 | inline int32_t JsonContextBodyEncDec::data_z058_array(int index) const { |
1593 | 0 | // @@protoc_insertion_point(field_get:JsonContextBodyEncDec.data_Z058_array) |
1594 | 0 | return _internal_data_z058_array(index); |
1595 | 0 | } |
1596 | 0 | inline void JsonContextBodyEncDec::set_data_z058_array(int index, int32_t value) { |
1597 | 0 | _impl_.data_z058_array_.Set(index, value); |
1598 | 0 | // @@protoc_insertion_point(field_set:JsonContextBodyEncDec.data_Z058_array) |
1599 | 0 | } |
1600 | 0 | inline void JsonContextBodyEncDec::_internal_add_data_z058_array(int32_t value) { |
1601 | 0 | _impl_.data_z058_array_.Add(value); |
1602 | 0 | } |
1603 | 0 | inline void JsonContextBodyEncDec::add_data_z058_array(int32_t value) { |
1604 | 0 | _internal_add_data_z058_array(value); |
1605 | 0 | // @@protoc_insertion_point(field_add:JsonContextBodyEncDec.data_Z058_array) |
1606 | 0 | } |
1607 | | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& |
1608 | 0 | JsonContextBodyEncDec::_internal_data_z058_array() const { |
1609 | 0 | return _impl_.data_z058_array_; |
1610 | 0 | } |
1611 | | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& |
1612 | 0 | JsonContextBodyEncDec::data_z058_array() const { |
1613 | 0 | // @@protoc_insertion_point(field_list:JsonContextBodyEncDec.data_Z058_array) |
1614 | 0 | return _internal_data_z058_array(); |
1615 | 0 | } |
1616 | | inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* |
1617 | 0 | JsonContextBodyEncDec::_internal_mutable_data_z058_array() { |
1618 | 0 | return &_impl_.data_z058_array_; |
1619 | 0 | } |
1620 | | inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* |
1621 | 0 | JsonContextBodyEncDec::mutable_data_z058_array() { |
1622 | 0 | // @@protoc_insertion_point(field_mutable_list:JsonContextBodyEncDec.data_Z058_array) |
1623 | 0 | return _internal_mutable_data_z058_array(); |
1624 | 0 | } |
1625 | | |
1626 | | // required bool judge = 2; |
1627 | 0 | inline bool JsonContextBodyEncDec::_internal_has_judge() const { |
1628 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; |
1629 | 0 | return value; |
1630 | 0 | } |
1631 | 0 | inline bool JsonContextBodyEncDec::has_judge() const { |
1632 | 0 | return _internal_has_judge(); |
1633 | 0 | } |
1634 | 0 | inline void JsonContextBodyEncDec::clear_judge() { |
1635 | 0 | _impl_.judge_ = false; |
1636 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
1637 | 0 | } |
1638 | 0 | inline bool JsonContextBodyEncDec::_internal_judge() const { |
1639 | 0 | return _impl_.judge_; |
1640 | 0 | } |
1641 | 0 | inline bool JsonContextBodyEncDec::judge() const { |
1642 | 0 | // @@protoc_insertion_point(field_get:JsonContextBodyEncDec.judge) |
1643 | 0 | return _internal_judge(); |
1644 | 0 | } |
1645 | 0 | inline void JsonContextBodyEncDec::_internal_set_judge(bool value) { |
1646 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
1647 | 0 | _impl_.judge_ = value; |
1648 | 0 | } |
1649 | 0 | inline void JsonContextBodyEncDec::set_judge(bool value) { |
1650 | 0 | _internal_set_judge(value); |
1651 | 0 | // @@protoc_insertion_point(field_set:JsonContextBodyEncDec.judge) |
1652 | 0 | } |
1653 | | |
1654 | | // optional double spur = 3; |
1655 | 0 | inline bool JsonContextBodyEncDec::_internal_has_spur() const { |
1656 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
1657 | 0 | return value; |
1658 | 0 | } |
1659 | 0 | inline bool JsonContextBodyEncDec::has_spur() const { |
1660 | 0 | return _internal_has_spur(); |
1661 | 0 | } |
1662 | 0 | inline void JsonContextBodyEncDec::clear_spur() { |
1663 | 0 | _impl_.spur_ = 0; |
1664 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
1665 | 0 | } |
1666 | 0 | inline double JsonContextBodyEncDec::_internal_spur() const { |
1667 | 0 | return _impl_.spur_; |
1668 | 0 | } |
1669 | 0 | inline double JsonContextBodyEncDec::spur() const { |
1670 | 0 | // @@protoc_insertion_point(field_get:JsonContextBodyEncDec.spur) |
1671 | 0 | return _internal_spur(); |
1672 | 0 | } |
1673 | 0 | inline void JsonContextBodyEncDec::_internal_set_spur(double value) { |
1674 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
1675 | 0 | _impl_.spur_ = value; |
1676 | 0 | } |
1677 | 0 | inline void JsonContextBodyEncDec::set_spur(double value) { |
1678 | 0 | _internal_set_spur(value); |
1679 | 0 | // @@protoc_insertion_point(field_set:JsonContextBodyEncDec.spur) |
1680 | 0 | } |
1681 | | |
1682 | | // repeated .ContentEncDec _Z064_Content_Test_Z037__Z064_ = 4; |
1683 | 0 | inline int JsonContextBodyEncDec::_internal__z064_content_test_z037__z064__size() const { |
1684 | 0 | return _impl_._z064_content_test_z037__z064__.size(); |
1685 | 0 | } |
1686 | 0 | inline int JsonContextBodyEncDec::_z064_content_test_z037__z064__size() const { |
1687 | 0 | return _internal__z064_content_test_z037__z064__size(); |
1688 | 0 | } |
1689 | 0 | inline void JsonContextBodyEncDec::clear__z064_content_test_z037__z064_() { |
1690 | 0 | _impl_._z064_content_test_z037__z064__.Clear(); |
1691 | 0 | } |
1692 | 0 | inline ::ContentEncDec* JsonContextBodyEncDec::mutable__z064_content_test_z037__z064_(int index) { |
1693 | 0 | // @@protoc_insertion_point(field_mutable:JsonContextBodyEncDec._Z064_Content_Test_Z037__Z064_) |
1694 | 0 | return _impl_._z064_content_test_z037__z064__.Mutable(index); |
1695 | 0 | } |
1696 | | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ContentEncDec >* |
1697 | 0 | JsonContextBodyEncDec::mutable__z064_content_test_z037__z064_() { |
1698 | 0 | // @@protoc_insertion_point(field_mutable_list:JsonContextBodyEncDec._Z064_Content_Test_Z037__Z064_) |
1699 | 0 | return &_impl_._z064_content_test_z037__z064__; |
1700 | 0 | } |
1701 | 0 | inline const ::ContentEncDec& JsonContextBodyEncDec::_internal__z064_content_test_z037__z064_(int index) const { |
1702 | 0 | return _impl_._z064_content_test_z037__z064__.Get(index); |
1703 | 0 | } |
1704 | 0 | inline const ::ContentEncDec& JsonContextBodyEncDec::_z064_content_test_z037__z064_(int index) const { |
1705 | 0 | // @@protoc_insertion_point(field_get:JsonContextBodyEncDec._Z064_Content_Test_Z037__Z064_) |
1706 | 0 | return _internal__z064_content_test_z037__z064_(index); |
1707 | 0 | } |
1708 | 0 | inline ::ContentEncDec* JsonContextBodyEncDec::_internal_add__z064_content_test_z037__z064_() { |
1709 | 0 | return _impl_._z064_content_test_z037__z064__.Add(); |
1710 | 0 | } |
1711 | 0 | inline ::ContentEncDec* JsonContextBodyEncDec::add__z064_content_test_z037__z064_() { |
1712 | 0 | ::ContentEncDec* _add = _internal_add__z064_content_test_z037__z064_(); |
1713 | 0 | // @@protoc_insertion_point(field_add:JsonContextBodyEncDec._Z064_Content_Test_Z037__Z064_) |
1714 | 0 | return _add; |
1715 | 0 | } |
1716 | | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::ContentEncDec >& |
1717 | 0 | JsonContextBodyEncDec::_z064_content_test_z037__z064_() const { |
1718 | 0 | // @@protoc_insertion_point(field_list:JsonContextBodyEncDec._Z064_Content_Test_Z037__Z064_) |
1719 | 0 | return _impl_._z064_content_test_z037__z064__; |
1720 | 0 | } |
1721 | | |
1722 | | // ------------------------------------------------------------------- |
1723 | | |
1724 | | // PersonEncDec |
1725 | | |
1726 | | // optional string name = 1; |
1727 | 0 | inline bool PersonEncDec::_internal_has_name() const { |
1728 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
1729 | 0 | return value; |
1730 | 0 | } |
1731 | 0 | inline bool PersonEncDec::has_name() const { |
1732 | 0 | return _internal_has_name(); |
1733 | 0 | } |
1734 | 0 | inline void PersonEncDec::clear_name() { |
1735 | 0 | _impl_.name_.ClearToEmpty(); |
1736 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
1737 | 0 | } |
1738 | 0 | inline const std::string& PersonEncDec::name() const { |
1739 | 0 | // @@protoc_insertion_point(field_get:PersonEncDec.name) |
1740 | 0 | return _internal_name(); |
1741 | 0 | } |
1742 | | template <typename ArgT0, typename... ArgT> |
1743 | | inline PROTOBUF_ALWAYS_INLINE |
1744 | | void PersonEncDec::set_name(ArgT0&& arg0, ArgT... args) { |
1745 | | _impl_._has_bits_[0] |= 0x00000001u; |
1746 | | _impl_.name_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
1747 | | // @@protoc_insertion_point(field_set:PersonEncDec.name) |
1748 | | } |
1749 | 0 | inline std::string* PersonEncDec::mutable_name() { |
1750 | 0 | std::string* _s = _internal_mutable_name(); |
1751 | 0 | // @@protoc_insertion_point(field_mutable:PersonEncDec.name) |
1752 | 0 | return _s; |
1753 | 0 | } |
1754 | 0 | inline const std::string& PersonEncDec::_internal_name() const { |
1755 | 0 | return _impl_.name_.Get(); |
1756 | 0 | } |
1757 | 0 | inline void PersonEncDec::_internal_set_name(const std::string& value) { |
1758 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
1759 | 0 | _impl_.name_.Set(value, GetArenaForAllocation()); |
1760 | 0 | } |
1761 | 0 | inline std::string* PersonEncDec::_internal_mutable_name() { |
1762 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
1763 | 0 | return _impl_.name_.Mutable(GetArenaForAllocation()); |
1764 | 0 | } |
1765 | 0 | inline std::string* PersonEncDec::release_name() { |
1766 | 0 | // @@protoc_insertion_point(field_release:PersonEncDec.name) |
1767 | 0 | if (!_internal_has_name()) { |
1768 | 0 | return nullptr; |
1769 | 0 | } |
1770 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
1771 | 0 | auto* p = _impl_.name_.Release(); |
1772 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
1773 | 0 | if (_impl_.name_.IsDefault()) { |
1774 | 0 | _impl_.name_.Set("", GetArenaForAllocation()); |
1775 | 0 | } |
1776 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
1777 | 0 | return p; |
1778 | 0 | } |
1779 | 0 | inline void PersonEncDec::set_allocated_name(std::string* name) { |
1780 | 0 | if (name != nullptr) { |
1781 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
1782 | 0 | } else { |
1783 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
1784 | 0 | } |
1785 | 0 | _impl_.name_.SetAllocated(name, GetArenaForAllocation()); |
1786 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
1787 | 0 | if (_impl_.name_.IsDefault()) { |
1788 | 0 | _impl_.name_.Set("", GetArenaForAllocation()); |
1789 | 0 | } |
1790 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
1791 | 0 | // @@protoc_insertion_point(field_set_allocated:PersonEncDec.name) |
1792 | 0 | } |
1793 | | |
1794 | | // optional int32 id = 2; |
1795 | 0 | inline bool PersonEncDec::_internal_has_id() const { |
1796 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; |
1797 | 0 | return value; |
1798 | 0 | } |
1799 | 0 | inline bool PersonEncDec::has_id() const { |
1800 | 0 | return _internal_has_id(); |
1801 | 0 | } |
1802 | 0 | inline void PersonEncDec::clear_id() { |
1803 | 0 | _impl_.id_ = 0; |
1804 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
1805 | 0 | } |
1806 | 0 | inline int32_t PersonEncDec::_internal_id() const { |
1807 | 0 | return _impl_.id_; |
1808 | 0 | } |
1809 | 0 | inline int32_t PersonEncDec::id() const { |
1810 | 0 | // @@protoc_insertion_point(field_get:PersonEncDec.id) |
1811 | 0 | return _internal_id(); |
1812 | 0 | } |
1813 | 0 | inline void PersonEncDec::_internal_set_id(int32_t value) { |
1814 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
1815 | 0 | _impl_.id_ = value; |
1816 | 0 | } |
1817 | 0 | inline void PersonEncDec::set_id(int32_t value) { |
1818 | 0 | _internal_set_id(value); |
1819 | 0 | // @@protoc_insertion_point(field_set:PersonEncDec.id) |
1820 | 0 | } |
1821 | | |
1822 | | // optional .JsonContextBodyEncDec json_body = 18; |
1823 | 0 | inline bool PersonEncDec::_internal_has_json_body() const { |
1824 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
1825 | 0 | PROTOBUF_ASSUME(!value || _impl_.json_body_ != nullptr); |
1826 | 0 | return value; |
1827 | 0 | } |
1828 | 0 | inline bool PersonEncDec::has_json_body() const { |
1829 | 0 | return _internal_has_json_body(); |
1830 | 0 | } |
1831 | 0 | inline void PersonEncDec::clear_json_body() { |
1832 | 0 | if (_impl_.json_body_ != nullptr) _impl_.json_body_->Clear(); |
1833 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
1834 | 0 | } |
1835 | 0 | inline const ::JsonContextBodyEncDec& PersonEncDec::_internal_json_body() const { |
1836 | 0 | const ::JsonContextBodyEncDec* p = _impl_.json_body_; |
1837 | 0 | return p != nullptr ? *p : reinterpret_cast<const ::JsonContextBodyEncDec&>( |
1838 | 0 | ::_JsonContextBodyEncDec_default_instance_); |
1839 | 0 | } |
1840 | 0 | inline const ::JsonContextBodyEncDec& PersonEncDec::json_body() const { |
1841 | 0 | // @@protoc_insertion_point(field_get:PersonEncDec.json_body) |
1842 | 0 | return _internal_json_body(); |
1843 | 0 | } |
1844 | | inline void PersonEncDec::unsafe_arena_set_allocated_json_body( |
1845 | 0 | ::JsonContextBodyEncDec* json_body) { |
1846 | 0 | if (GetArenaForAllocation() == nullptr) { |
1847 | 0 | delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.json_body_); |
1848 | 0 | } |
1849 | 0 | _impl_.json_body_ = json_body; |
1850 | 0 | if (json_body) { |
1851 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
1852 | 0 | } else { |
1853 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
1854 | 0 | } |
1855 | 0 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:PersonEncDec.json_body) |
1856 | 0 | } |
1857 | 0 | inline ::JsonContextBodyEncDec* PersonEncDec::release_json_body() { |
1858 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
1859 | 0 | ::JsonContextBodyEncDec* temp = _impl_.json_body_; |
1860 | 0 | _impl_.json_body_ = nullptr; |
1861 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE |
1862 | 0 | auto* old = reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp); |
1863 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
1864 | 0 | if (GetArenaForAllocation() == nullptr) { delete old; } |
1865 | 0 | #else // PROTOBUF_FORCE_COPY_IN_RELEASE |
1866 | 0 | if (GetArenaForAllocation() != nullptr) { |
1867 | 0 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
1868 | 0 | } |
1869 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_RELEASE |
1870 | 0 | return temp; |
1871 | 0 | } |
1872 | 0 | inline ::JsonContextBodyEncDec* PersonEncDec::unsafe_arena_release_json_body() { |
1873 | 0 | // @@protoc_insertion_point(field_release:PersonEncDec.json_body) |
1874 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
1875 | 0 | ::JsonContextBodyEncDec* temp = _impl_.json_body_; |
1876 | 0 | _impl_.json_body_ = nullptr; |
1877 | 0 | return temp; |
1878 | 0 | } |
1879 | 0 | inline ::JsonContextBodyEncDec* PersonEncDec::_internal_mutable_json_body() { |
1880 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
1881 | 0 | if (_impl_.json_body_ == nullptr) { |
1882 | 0 | auto* p = CreateMaybeMessage<::JsonContextBodyEncDec>(GetArenaForAllocation()); |
1883 | 0 | _impl_.json_body_ = p; |
1884 | 0 | } |
1885 | 0 | return _impl_.json_body_; |
1886 | 0 | } |
1887 | 0 | inline ::JsonContextBodyEncDec* PersonEncDec::mutable_json_body() { |
1888 | 0 | ::JsonContextBodyEncDec* _msg = _internal_mutable_json_body(); |
1889 | 0 | // @@protoc_insertion_point(field_mutable:PersonEncDec.json_body) |
1890 | 0 | return _msg; |
1891 | 0 | } |
1892 | 0 | inline void PersonEncDec::set_allocated_json_body(::JsonContextBodyEncDec* json_body) { |
1893 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation(); |
1894 | 0 | if (message_arena == nullptr) { |
1895 | 0 | delete _impl_.json_body_; |
1896 | 0 | } |
1897 | 0 | if (json_body) { |
1898 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
1899 | 0 | ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(json_body); |
1900 | 0 | if (message_arena != submessage_arena) { |
1901 | 0 | json_body = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
1902 | 0 | message_arena, json_body, submessage_arena); |
1903 | 0 | } |
1904 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
1905 | 0 | } else { |
1906 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
1907 | 0 | } |
1908 | 0 | _impl_.json_body_ = json_body; |
1909 | 0 | // @@protoc_insertion_point(field_set_allocated:PersonEncDec.json_body) |
1910 | 0 | } |
1911 | | |
1912 | | // ------------------------------------------------------------------- |
1913 | | |
1914 | | // AddressBookEncDec |
1915 | | |
1916 | | // repeated .PersonEncDec person = 1; |
1917 | 0 | inline int AddressBookEncDec::_internal_person_size() const { |
1918 | 0 | return _impl_.person_.size(); |
1919 | 0 | } |
1920 | 0 | inline int AddressBookEncDec::person_size() const { |
1921 | 0 | return _internal_person_size(); |
1922 | 0 | } |
1923 | 0 | inline void AddressBookEncDec::clear_person() { |
1924 | 0 | _impl_.person_.Clear(); |
1925 | 0 | } |
1926 | 0 | inline ::PersonEncDec* AddressBookEncDec::mutable_person(int index) { |
1927 | 0 | // @@protoc_insertion_point(field_mutable:AddressBookEncDec.person) |
1928 | 0 | return _impl_.person_.Mutable(index); |
1929 | 0 | } |
1930 | | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PersonEncDec >* |
1931 | 0 | AddressBookEncDec::mutable_person() { |
1932 | 0 | // @@protoc_insertion_point(field_mutable_list:AddressBookEncDec.person) |
1933 | 0 | return &_impl_.person_; |
1934 | 0 | } |
1935 | 0 | inline const ::PersonEncDec& AddressBookEncDec::_internal_person(int index) const { |
1936 | 0 | return _impl_.person_.Get(index); |
1937 | 0 | } |
1938 | 0 | inline const ::PersonEncDec& AddressBookEncDec::person(int index) const { |
1939 | 0 | // @@protoc_insertion_point(field_get:AddressBookEncDec.person) |
1940 | 0 | return _internal_person(index); |
1941 | 0 | } |
1942 | 0 | inline ::PersonEncDec* AddressBookEncDec::_internal_add_person() { |
1943 | 0 | return _impl_.person_.Add(); |
1944 | 0 | } |
1945 | 0 | inline ::PersonEncDec* AddressBookEncDec::add_person() { |
1946 | 0 | ::PersonEncDec* _add = _internal_add_person(); |
1947 | 0 | // @@protoc_insertion_point(field_add:AddressBookEncDec.person) |
1948 | 0 | return _add; |
1949 | 0 | } |
1950 | | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::PersonEncDec >& |
1951 | 0 | AddressBookEncDec::person() const { |
1952 | 0 | // @@protoc_insertion_point(field_list:AddressBookEncDec.person) |
1953 | 0 | return _impl_.person_; |
1954 | 0 | } |
1955 | | |
1956 | | #ifdef __GNUC__ |
1957 | | #pragma GCC diagnostic pop |
1958 | | #endif // __GNUC__ |
1959 | | // ------------------------------------------------------------------- |
1960 | | |
1961 | | // ------------------------------------------------------------------- |
1962 | | |
1963 | | // ------------------------------------------------------------------- |
1964 | | |
1965 | | // ------------------------------------------------------------------- |
1966 | | |
1967 | | |
1968 | | // @@protoc_insertion_point(namespace_scope) |
1969 | | |
1970 | | |
1971 | | PROTOBUF_NAMESPACE_OPEN |
1972 | | |
1973 | | template <> struct is_proto_enum< ::ExtEncDec_PhoneTypeEncDec> : ::std::true_type {}; |
1974 | | template <> |
1975 | 0 | inline const EnumDescriptor* GetEnumDescriptor< ::ExtEncDec_PhoneTypeEncDec>() { |
1976 | 0 | return ::ExtEncDec_PhoneTypeEncDec_descriptor(); |
1977 | 0 | } |
1978 | | |
1979 | | PROTOBUF_NAMESPACE_CLOSE |
1980 | | |
1981 | | // @@protoc_insertion_point(global_scope) |
1982 | | |
1983 | | #include <google/protobuf/port_undef.inc> |
1984 | | #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_addressbook_5fencode_5fdecode_2eproto |