/src/brpc/build/test/iobuf.pb.h
Line | Count | Source |
1 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | | // source: iobuf.proto |
3 | | |
4 | | #ifndef GOOGLE_PROTOBUF_INCLUDED_iobuf_2eproto |
5 | | #define GOOGLE_PROTOBUF_INCLUDED_iobuf_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_iobuf_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_iobuf_2eproto { |
45 | | static const uint32_t offsets[]; |
46 | | }; |
47 | | extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_iobuf_2eproto; |
48 | | namespace proto { |
49 | | class Misc; |
50 | | struct MiscDefaultTypeInternal; |
51 | | extern MiscDefaultTypeInternal _Misc_default_instance_; |
52 | | } // namespace proto |
53 | | PROTOBUF_NAMESPACE_OPEN |
54 | | template<> ::proto::Misc* Arena::CreateMaybeMessage<::proto::Misc>(Arena*); |
55 | | PROTOBUF_NAMESPACE_CLOSE |
56 | | namespace proto { |
57 | | |
58 | | enum CompressType : int { |
59 | | CompressTypeNone = 0, |
60 | | CompressTypeGzip = 1, |
61 | | CompressTypeZlib = 2, |
62 | | CompressTypeSnappy = 3, |
63 | | CompressTypeLZ4 = 4 |
64 | | }; |
65 | | bool CompressType_IsValid(int value); |
66 | | constexpr CompressType CompressType_MIN = CompressTypeNone; |
67 | | constexpr CompressType CompressType_MAX = CompressTypeLZ4; |
68 | | constexpr int CompressType_ARRAYSIZE = CompressType_MAX + 1; |
69 | | |
70 | | const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* CompressType_descriptor(); |
71 | | template<typename T> |
72 | | inline const std::string& CompressType_Name(T enum_t_value) { |
73 | | static_assert(::std::is_same<T, CompressType>::value || |
74 | | ::std::is_integral<T>::value, |
75 | | "Incorrect type passed to function CompressType_Name."); |
76 | | return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( |
77 | | CompressType_descriptor(), enum_t_value); |
78 | | } |
79 | | inline bool CompressType_Parse( |
80 | 0 | ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, CompressType* value) { |
81 | 0 | return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<CompressType>( |
82 | 0 | CompressType_descriptor(), name, value); |
83 | 0 | } |
84 | | // =================================================================== |
85 | | |
86 | | class Misc final : |
87 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:proto.Misc) */ { |
88 | | public: |
89 | 0 | inline Misc() : Misc(nullptr) {} |
90 | | ~Misc() override; |
91 | | explicit PROTOBUF_CONSTEXPR Misc(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
92 | | |
93 | | Misc(const Misc& from); |
94 | | Misc(Misc&& from) noexcept |
95 | 0 | : Misc() { |
96 | 0 | *this = ::std::move(from); |
97 | 0 | } |
98 | | |
99 | 0 | inline Misc& operator=(const Misc& from) { |
100 | 0 | CopyFrom(from); |
101 | 0 | return *this; |
102 | 0 | } |
103 | 0 | inline Misc& operator=(Misc&& from) noexcept { |
104 | 0 | if (this == &from) return *this; |
105 | 0 | if (GetOwningArena() == from.GetOwningArena() |
106 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
107 | 0 | && GetOwningArena() != nullptr |
108 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
109 | 0 | ) { |
110 | 0 | InternalSwap(&from); |
111 | 0 | } else { |
112 | 0 | CopyFrom(from); |
113 | 0 | } |
114 | 0 | return *this; |
115 | 0 | } |
116 | | |
117 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
118 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
119 | 0 | } |
120 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
121 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
122 | 0 | } |
123 | | |
124 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
125 | 0 | return GetDescriptor(); |
126 | 0 | } |
127 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
128 | 0 | return default_instance().GetMetadata().descriptor; |
129 | 0 | } |
130 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
131 | 0 | return default_instance().GetMetadata().reflection; |
132 | 0 | } |
133 | 0 | static const Misc& default_instance() { |
134 | 0 | return *internal_default_instance(); |
135 | 0 | } |
136 | 0 | static inline const Misc* internal_default_instance() { |
137 | 0 | return reinterpret_cast<const Misc*>( |
138 | 0 | &_Misc_default_instance_); |
139 | 0 | } |
140 | | static constexpr int kIndexInFileMessages = |
141 | | 0; |
142 | | |
143 | 0 | friend void swap(Misc& a, Misc& b) { |
144 | 0 | a.Swap(&b); |
145 | 0 | } |
146 | 0 | inline void Swap(Misc* other) { |
147 | 0 | if (other == this) return; |
148 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
149 | 0 | if (GetOwningArena() != nullptr && |
150 | 0 | GetOwningArena() == other->GetOwningArena()) { |
151 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
152 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
153 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
154 | 0 | InternalSwap(other); |
155 | 0 | } else { |
156 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
157 | 0 | } |
158 | 0 | } |
159 | 0 | void UnsafeArenaSwap(Misc* other) { |
160 | 0 | if (other == this) return; |
161 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
162 | 0 | InternalSwap(other); |
163 | 0 | } |
164 | | |
165 | | // implements Message ---------------------------------------------- |
166 | | |
167 | 0 | Misc* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
168 | 0 | return CreateMaybeMessage<Misc>(arena); |
169 | 0 | } |
170 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
171 | | void CopyFrom(const Misc& from); |
172 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
173 | 0 | void MergeFrom( const Misc& from) { |
174 | 0 | Misc::MergeImpl(*this, from); |
175 | 0 | } |
176 | | private: |
177 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
178 | | public: |
179 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
180 | | bool IsInitialized() const final; |
181 | | |
182 | | size_t ByteSizeLong() const final; |
183 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
184 | | uint8_t* _InternalSerialize( |
185 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
186 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
187 | | |
188 | | private: |
189 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
190 | | void SharedDtor(); |
191 | | void SetCachedSize(int size) const final; |
192 | | void InternalSwap(Misc* other); |
193 | | |
194 | | private: |
195 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
196 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
197 | 0 | return "proto.Misc"; |
198 | 0 | } |
199 | | protected: |
200 | | explicit Misc(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
201 | | bool is_message_owned = false); |
202 | | public: |
203 | | |
204 | | static const ClassData _class_data_; |
205 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
206 | | |
207 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
208 | | |
209 | | // nested types ---------------------------------------------------- |
210 | | |
211 | | // accessors ------------------------------------------------------- |
212 | | |
213 | | enum : int { |
214 | | kRepeatedEnumFieldNumber = 3, |
215 | | kRepeatedUint64FieldNumber = 6, |
216 | | kRepeatedStringFieldNumber = 9, |
217 | | kRepeatedBoolFieldNumber = 12, |
218 | | kRepeatedInt32FieldNumber = 15, |
219 | | kRequiredStringFieldNumber = 7, |
220 | | kOptionalStringFieldNumber = 8, |
221 | | kRequiredEnumFieldNumber = 1, |
222 | | kOptionalEnumFieldNumber = 2, |
223 | | kRequiredUint64FieldNumber = 4, |
224 | | kOptionalUint64FieldNumber = 5, |
225 | | kRequiredBoolFieldNumber = 10, |
226 | | kOptionalBoolFieldNumber = 11, |
227 | | kRequiredInt32FieldNumber = 13, |
228 | | kOptionalInt32FieldNumber = 14, |
229 | | }; |
230 | | // repeated .proto.CompressType repeated_enum = 3; |
231 | | int repeated_enum_size() const; |
232 | | private: |
233 | | int _internal_repeated_enum_size() const; |
234 | | public: |
235 | | void clear_repeated_enum(); |
236 | | private: |
237 | | ::proto::CompressType _internal_repeated_enum(int index) const; |
238 | | void _internal_add_repeated_enum(::proto::CompressType value); |
239 | | ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>* _internal_mutable_repeated_enum(); |
240 | | public: |
241 | | ::proto::CompressType repeated_enum(int index) const; |
242 | | void set_repeated_enum(int index, ::proto::CompressType value); |
243 | | void add_repeated_enum(::proto::CompressType value); |
244 | | const ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>& repeated_enum() const; |
245 | | ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>* mutable_repeated_enum(); |
246 | | |
247 | | // repeated uint64 repeated_uint64 = 6; |
248 | | int repeated_uint64_size() const; |
249 | | private: |
250 | | int _internal_repeated_uint64_size() const; |
251 | | public: |
252 | | void clear_repeated_uint64(); |
253 | | private: |
254 | | uint64_t _internal_repeated_uint64(int index) const; |
255 | | const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >& |
256 | | _internal_repeated_uint64() const; |
257 | | void _internal_add_repeated_uint64(uint64_t value); |
258 | | ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >* |
259 | | _internal_mutable_repeated_uint64(); |
260 | | public: |
261 | | uint64_t repeated_uint64(int index) const; |
262 | | void set_repeated_uint64(int index, uint64_t value); |
263 | | void add_repeated_uint64(uint64_t value); |
264 | | const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >& |
265 | | repeated_uint64() const; |
266 | | ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >* |
267 | | mutable_repeated_uint64(); |
268 | | |
269 | | // repeated string repeated_string = 9; |
270 | | int repeated_string_size() const; |
271 | | private: |
272 | | int _internal_repeated_string_size() const; |
273 | | public: |
274 | | void clear_repeated_string(); |
275 | | const std::string& repeated_string(int index) const; |
276 | | std::string* mutable_repeated_string(int index); |
277 | | void set_repeated_string(int index, const std::string& value); |
278 | | void set_repeated_string(int index, std::string&& value); |
279 | | void set_repeated_string(int index, const char* value); |
280 | | void set_repeated_string(int index, const char* value, size_t size); |
281 | | std::string* add_repeated_string(); |
282 | | void add_repeated_string(const std::string& value); |
283 | | void add_repeated_string(std::string&& value); |
284 | | void add_repeated_string(const char* value); |
285 | | void add_repeated_string(const char* value, size_t size); |
286 | | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& repeated_string() const; |
287 | | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_repeated_string(); |
288 | | private: |
289 | | const std::string& _internal_repeated_string(int index) const; |
290 | | std::string* _internal_add_repeated_string(); |
291 | | public: |
292 | | |
293 | | // repeated bool repeated_bool = 12; |
294 | | int repeated_bool_size() const; |
295 | | private: |
296 | | int _internal_repeated_bool_size() const; |
297 | | public: |
298 | | void clear_repeated_bool(); |
299 | | private: |
300 | | bool _internal_repeated_bool(int index) const; |
301 | | const ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >& |
302 | | _internal_repeated_bool() const; |
303 | | void _internal_add_repeated_bool(bool value); |
304 | | ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >* |
305 | | _internal_mutable_repeated_bool(); |
306 | | public: |
307 | | bool repeated_bool(int index) const; |
308 | | void set_repeated_bool(int index, bool value); |
309 | | void add_repeated_bool(bool value); |
310 | | const ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >& |
311 | | repeated_bool() const; |
312 | | ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >* |
313 | | mutable_repeated_bool(); |
314 | | |
315 | | // repeated int32 repeated_int32 = 15; |
316 | | int repeated_int32_size() const; |
317 | | private: |
318 | | int _internal_repeated_int32_size() const; |
319 | | public: |
320 | | void clear_repeated_int32(); |
321 | | private: |
322 | | int32_t _internal_repeated_int32(int index) const; |
323 | | const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& |
324 | | _internal_repeated_int32() const; |
325 | | void _internal_add_repeated_int32(int32_t value); |
326 | | ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* |
327 | | _internal_mutable_repeated_int32(); |
328 | | public: |
329 | | int32_t repeated_int32(int index) const; |
330 | | void set_repeated_int32(int index, int32_t value); |
331 | | void add_repeated_int32(int32_t value); |
332 | | const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& |
333 | | repeated_int32() const; |
334 | | ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* |
335 | | mutable_repeated_int32(); |
336 | | |
337 | | // required string required_string = 7; |
338 | | bool has_required_string() const; |
339 | | private: |
340 | | bool _internal_has_required_string() const; |
341 | | public: |
342 | | void clear_required_string(); |
343 | | const std::string& required_string() const; |
344 | | template <typename ArgT0 = const std::string&, typename... ArgT> |
345 | | void set_required_string(ArgT0&& arg0, ArgT... args); |
346 | | std::string* mutable_required_string(); |
347 | | PROTOBUF_NODISCARD std::string* release_required_string(); |
348 | | void set_allocated_required_string(std::string* required_string); |
349 | | private: |
350 | | const std::string& _internal_required_string() const; |
351 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_required_string(const std::string& value); |
352 | | std::string* _internal_mutable_required_string(); |
353 | | public: |
354 | | |
355 | | // optional string optional_string = 8; |
356 | | bool has_optional_string() const; |
357 | | private: |
358 | | bool _internal_has_optional_string() const; |
359 | | public: |
360 | | void clear_optional_string(); |
361 | | const std::string& optional_string() const; |
362 | | template <typename ArgT0 = const std::string&, typename... ArgT> |
363 | | void set_optional_string(ArgT0&& arg0, ArgT... args); |
364 | | std::string* mutable_optional_string(); |
365 | | PROTOBUF_NODISCARD std::string* release_optional_string(); |
366 | | void set_allocated_optional_string(std::string* optional_string); |
367 | | private: |
368 | | const std::string& _internal_optional_string() const; |
369 | | inline PROTOBUF_ALWAYS_INLINE void _internal_set_optional_string(const std::string& value); |
370 | | std::string* _internal_mutable_optional_string(); |
371 | | public: |
372 | | |
373 | | // required .proto.CompressType required_enum = 1; |
374 | | bool has_required_enum() const; |
375 | | private: |
376 | | bool _internal_has_required_enum() const; |
377 | | public: |
378 | | void clear_required_enum(); |
379 | | ::proto::CompressType required_enum() const; |
380 | | void set_required_enum(::proto::CompressType value); |
381 | | private: |
382 | | ::proto::CompressType _internal_required_enum() const; |
383 | | void _internal_set_required_enum(::proto::CompressType value); |
384 | | public: |
385 | | |
386 | | // optional .proto.CompressType optional_enum = 2; |
387 | | bool has_optional_enum() const; |
388 | | private: |
389 | | bool _internal_has_optional_enum() const; |
390 | | public: |
391 | | void clear_optional_enum(); |
392 | | ::proto::CompressType optional_enum() const; |
393 | | void set_optional_enum(::proto::CompressType value); |
394 | | private: |
395 | | ::proto::CompressType _internal_optional_enum() const; |
396 | | void _internal_set_optional_enum(::proto::CompressType value); |
397 | | public: |
398 | | |
399 | | // required uint64 required_uint64 = 4; |
400 | | bool has_required_uint64() const; |
401 | | private: |
402 | | bool _internal_has_required_uint64() const; |
403 | | public: |
404 | | void clear_required_uint64(); |
405 | | uint64_t required_uint64() const; |
406 | | void set_required_uint64(uint64_t value); |
407 | | private: |
408 | | uint64_t _internal_required_uint64() const; |
409 | | void _internal_set_required_uint64(uint64_t value); |
410 | | public: |
411 | | |
412 | | // optional uint64 optional_uint64 = 5; |
413 | | bool has_optional_uint64() const; |
414 | | private: |
415 | | bool _internal_has_optional_uint64() const; |
416 | | public: |
417 | | void clear_optional_uint64(); |
418 | | uint64_t optional_uint64() const; |
419 | | void set_optional_uint64(uint64_t value); |
420 | | private: |
421 | | uint64_t _internal_optional_uint64() const; |
422 | | void _internal_set_optional_uint64(uint64_t value); |
423 | | public: |
424 | | |
425 | | // required bool required_bool = 10; |
426 | | bool has_required_bool() const; |
427 | | private: |
428 | | bool _internal_has_required_bool() const; |
429 | | public: |
430 | | void clear_required_bool(); |
431 | | bool required_bool() const; |
432 | | void set_required_bool(bool value); |
433 | | private: |
434 | | bool _internal_required_bool() const; |
435 | | void _internal_set_required_bool(bool value); |
436 | | public: |
437 | | |
438 | | // optional bool optional_bool = 11; |
439 | | bool has_optional_bool() const; |
440 | | private: |
441 | | bool _internal_has_optional_bool() const; |
442 | | public: |
443 | | void clear_optional_bool(); |
444 | | bool optional_bool() const; |
445 | | void set_optional_bool(bool value); |
446 | | private: |
447 | | bool _internal_optional_bool() const; |
448 | | void _internal_set_optional_bool(bool value); |
449 | | public: |
450 | | |
451 | | // required int32 required_int32 = 13; |
452 | | bool has_required_int32() const; |
453 | | private: |
454 | | bool _internal_has_required_int32() const; |
455 | | public: |
456 | | void clear_required_int32(); |
457 | | int32_t required_int32() const; |
458 | | void set_required_int32(int32_t value); |
459 | | private: |
460 | | int32_t _internal_required_int32() const; |
461 | | void _internal_set_required_int32(int32_t value); |
462 | | public: |
463 | | |
464 | | // optional int32 optional_int32 = 14; |
465 | | bool has_optional_int32() const; |
466 | | private: |
467 | | bool _internal_has_optional_int32() const; |
468 | | public: |
469 | | void clear_optional_int32(); |
470 | | int32_t optional_int32() const; |
471 | | void set_optional_int32(int32_t value); |
472 | | private: |
473 | | int32_t _internal_optional_int32() const; |
474 | | void _internal_set_optional_int32(int32_t value); |
475 | | public: |
476 | | |
477 | | // @@protoc_insertion_point(class_scope:proto.Misc) |
478 | | private: |
479 | | class _Internal; |
480 | | |
481 | | // helper for ByteSizeLong() |
482 | | size_t RequiredFieldsByteSizeFallback() const; |
483 | | |
484 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
485 | | typedef void InternalArenaConstructable_; |
486 | | typedef void DestructorSkippable_; |
487 | | struct Impl_ { |
488 | | ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_; |
489 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
490 | | ::PROTOBUF_NAMESPACE_ID::RepeatedField<int> repeated_enum_; |
491 | | ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t > repeated_uint64_; |
492 | | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> repeated_string_; |
493 | | ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool > repeated_bool_; |
494 | | ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > repeated_int32_; |
495 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr required_string_; |
496 | | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr optional_string_; |
497 | | int required_enum_; |
498 | | int optional_enum_; |
499 | | uint64_t required_uint64_; |
500 | | uint64_t optional_uint64_; |
501 | | bool required_bool_; |
502 | | bool optional_bool_; |
503 | | int32_t required_int32_; |
504 | | int32_t optional_int32_; |
505 | | }; |
506 | | union { Impl_ _impl_; }; |
507 | | friend struct ::TableStruct_iobuf_2eproto; |
508 | | }; |
509 | | // =================================================================== |
510 | | |
511 | | |
512 | | // =================================================================== |
513 | | |
514 | | #ifdef __GNUC__ |
515 | | #pragma GCC diagnostic push |
516 | | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
517 | | #endif // __GNUC__ |
518 | | // Misc |
519 | | |
520 | | // required .proto.CompressType required_enum = 1; |
521 | 0 | inline bool Misc::_internal_has_required_enum() const { |
522 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000004u) != 0; |
523 | 0 | return value; |
524 | 0 | } |
525 | 0 | inline bool Misc::has_required_enum() const { |
526 | 0 | return _internal_has_required_enum(); |
527 | 0 | } |
528 | 0 | inline void Misc::clear_required_enum() { |
529 | 0 | _impl_.required_enum_ = 0; |
530 | 0 | _impl_._has_bits_[0] &= ~0x00000004u; |
531 | 0 | } |
532 | 0 | inline ::proto::CompressType Misc::_internal_required_enum() const { |
533 | 0 | return static_cast< ::proto::CompressType >(_impl_.required_enum_); |
534 | 0 | } |
535 | 0 | inline ::proto::CompressType Misc::required_enum() const { |
536 | 0 | // @@protoc_insertion_point(field_get:proto.Misc.required_enum) |
537 | 0 | return _internal_required_enum(); |
538 | 0 | } |
539 | 0 | inline void Misc::_internal_set_required_enum(::proto::CompressType value) { |
540 | 0 | assert(::proto::CompressType_IsValid(value)); |
541 | 0 | _impl_._has_bits_[0] |= 0x00000004u; |
542 | 0 | _impl_.required_enum_ = value; |
543 | 0 | } |
544 | 0 | inline void Misc::set_required_enum(::proto::CompressType value) { |
545 | 0 | _internal_set_required_enum(value); |
546 | 0 | // @@protoc_insertion_point(field_set:proto.Misc.required_enum) |
547 | 0 | } |
548 | | |
549 | | // optional .proto.CompressType optional_enum = 2; |
550 | 0 | inline bool Misc::_internal_has_optional_enum() const { |
551 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000008u) != 0; |
552 | 0 | return value; |
553 | 0 | } |
554 | 0 | inline bool Misc::has_optional_enum() const { |
555 | 0 | return _internal_has_optional_enum(); |
556 | 0 | } |
557 | 0 | inline void Misc::clear_optional_enum() { |
558 | 0 | _impl_.optional_enum_ = 0; |
559 | 0 | _impl_._has_bits_[0] &= ~0x00000008u; |
560 | 0 | } |
561 | 0 | inline ::proto::CompressType Misc::_internal_optional_enum() const { |
562 | 0 | return static_cast< ::proto::CompressType >(_impl_.optional_enum_); |
563 | 0 | } |
564 | 0 | inline ::proto::CompressType Misc::optional_enum() const { |
565 | 0 | // @@protoc_insertion_point(field_get:proto.Misc.optional_enum) |
566 | 0 | return _internal_optional_enum(); |
567 | 0 | } |
568 | 0 | inline void Misc::_internal_set_optional_enum(::proto::CompressType value) { |
569 | 0 | assert(::proto::CompressType_IsValid(value)); |
570 | 0 | _impl_._has_bits_[0] |= 0x00000008u; |
571 | 0 | _impl_.optional_enum_ = value; |
572 | 0 | } |
573 | 0 | inline void Misc::set_optional_enum(::proto::CompressType value) { |
574 | 0 | _internal_set_optional_enum(value); |
575 | 0 | // @@protoc_insertion_point(field_set:proto.Misc.optional_enum) |
576 | 0 | } |
577 | | |
578 | | // repeated .proto.CompressType repeated_enum = 3; |
579 | 0 | inline int Misc::_internal_repeated_enum_size() const { |
580 | 0 | return _impl_.repeated_enum_.size(); |
581 | 0 | } |
582 | 0 | inline int Misc::repeated_enum_size() const { |
583 | 0 | return _internal_repeated_enum_size(); |
584 | 0 | } |
585 | 0 | inline void Misc::clear_repeated_enum() { |
586 | 0 | _impl_.repeated_enum_.Clear(); |
587 | 0 | } |
588 | 0 | inline ::proto::CompressType Misc::_internal_repeated_enum(int index) const { |
589 | 0 | return static_cast< ::proto::CompressType >(_impl_.repeated_enum_.Get(index)); |
590 | 0 | } |
591 | 0 | inline ::proto::CompressType Misc::repeated_enum(int index) const { |
592 | 0 | // @@protoc_insertion_point(field_get:proto.Misc.repeated_enum) |
593 | 0 | return _internal_repeated_enum(index); |
594 | 0 | } |
595 | 0 | inline void Misc::set_repeated_enum(int index, ::proto::CompressType value) { |
596 | 0 | assert(::proto::CompressType_IsValid(value)); |
597 | 0 | _impl_.repeated_enum_.Set(index, value); |
598 | 0 | // @@protoc_insertion_point(field_set:proto.Misc.repeated_enum) |
599 | 0 | } |
600 | 0 | inline void Misc::_internal_add_repeated_enum(::proto::CompressType value) { |
601 | 0 | assert(::proto::CompressType_IsValid(value)); |
602 | 0 | _impl_.repeated_enum_.Add(value); |
603 | 0 | } |
604 | 0 | inline void Misc::add_repeated_enum(::proto::CompressType value) { |
605 | 0 | _internal_add_repeated_enum(value); |
606 | 0 | // @@protoc_insertion_point(field_add:proto.Misc.repeated_enum) |
607 | 0 | } |
608 | | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>& |
609 | 0 | Misc::repeated_enum() const { |
610 | 0 | // @@protoc_insertion_point(field_list:proto.Misc.repeated_enum) |
611 | 0 | return _impl_.repeated_enum_; |
612 | 0 | } |
613 | | inline ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>* |
614 | 0 | Misc::_internal_mutable_repeated_enum() { |
615 | 0 | return &_impl_.repeated_enum_; |
616 | 0 | } |
617 | | inline ::PROTOBUF_NAMESPACE_ID::RepeatedField<int>* |
618 | 0 | Misc::mutable_repeated_enum() { |
619 | 0 | // @@protoc_insertion_point(field_mutable_list:proto.Misc.repeated_enum) |
620 | 0 | return _internal_mutable_repeated_enum(); |
621 | 0 | } |
622 | | |
623 | | // required uint64 required_uint64 = 4; |
624 | 0 | inline bool Misc::_internal_has_required_uint64() const { |
625 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000010u) != 0; |
626 | 0 | return value; |
627 | 0 | } |
628 | 0 | inline bool Misc::has_required_uint64() const { |
629 | 0 | return _internal_has_required_uint64(); |
630 | 0 | } |
631 | 0 | inline void Misc::clear_required_uint64() { |
632 | 0 | _impl_.required_uint64_ = uint64_t{0u}; |
633 | 0 | _impl_._has_bits_[0] &= ~0x00000010u; |
634 | 0 | } |
635 | 0 | inline uint64_t Misc::_internal_required_uint64() const { |
636 | 0 | return _impl_.required_uint64_; |
637 | 0 | } |
638 | 0 | inline uint64_t Misc::required_uint64() const { |
639 | 0 | // @@protoc_insertion_point(field_get:proto.Misc.required_uint64) |
640 | 0 | return _internal_required_uint64(); |
641 | 0 | } |
642 | 0 | inline void Misc::_internal_set_required_uint64(uint64_t value) { |
643 | 0 | _impl_._has_bits_[0] |= 0x00000010u; |
644 | 0 | _impl_.required_uint64_ = value; |
645 | 0 | } |
646 | 0 | inline void Misc::set_required_uint64(uint64_t value) { |
647 | 0 | _internal_set_required_uint64(value); |
648 | 0 | // @@protoc_insertion_point(field_set:proto.Misc.required_uint64) |
649 | 0 | } |
650 | | |
651 | | // optional uint64 optional_uint64 = 5; |
652 | 0 | inline bool Misc::_internal_has_optional_uint64() const { |
653 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000020u) != 0; |
654 | 0 | return value; |
655 | 0 | } |
656 | 0 | inline bool Misc::has_optional_uint64() const { |
657 | 0 | return _internal_has_optional_uint64(); |
658 | 0 | } |
659 | 0 | inline void Misc::clear_optional_uint64() { |
660 | 0 | _impl_.optional_uint64_ = uint64_t{0u}; |
661 | 0 | _impl_._has_bits_[0] &= ~0x00000020u; |
662 | 0 | } |
663 | 0 | inline uint64_t Misc::_internal_optional_uint64() const { |
664 | 0 | return _impl_.optional_uint64_; |
665 | 0 | } |
666 | 0 | inline uint64_t Misc::optional_uint64() const { |
667 | 0 | // @@protoc_insertion_point(field_get:proto.Misc.optional_uint64) |
668 | 0 | return _internal_optional_uint64(); |
669 | 0 | } |
670 | 0 | inline void Misc::_internal_set_optional_uint64(uint64_t value) { |
671 | 0 | _impl_._has_bits_[0] |= 0x00000020u; |
672 | 0 | _impl_.optional_uint64_ = value; |
673 | 0 | } |
674 | 0 | inline void Misc::set_optional_uint64(uint64_t value) { |
675 | 0 | _internal_set_optional_uint64(value); |
676 | 0 | // @@protoc_insertion_point(field_set:proto.Misc.optional_uint64) |
677 | 0 | } |
678 | | |
679 | | // repeated uint64 repeated_uint64 = 6; |
680 | 0 | inline int Misc::_internal_repeated_uint64_size() const { |
681 | 0 | return _impl_.repeated_uint64_.size(); |
682 | 0 | } |
683 | 0 | inline int Misc::repeated_uint64_size() const { |
684 | 0 | return _internal_repeated_uint64_size(); |
685 | 0 | } |
686 | 0 | inline void Misc::clear_repeated_uint64() { |
687 | 0 | _impl_.repeated_uint64_.Clear(); |
688 | 0 | } |
689 | 0 | inline uint64_t Misc::_internal_repeated_uint64(int index) const { |
690 | 0 | return _impl_.repeated_uint64_.Get(index); |
691 | 0 | } |
692 | 0 | inline uint64_t Misc::repeated_uint64(int index) const { |
693 | 0 | // @@protoc_insertion_point(field_get:proto.Misc.repeated_uint64) |
694 | 0 | return _internal_repeated_uint64(index); |
695 | 0 | } |
696 | 0 | inline void Misc::set_repeated_uint64(int index, uint64_t value) { |
697 | 0 | _impl_.repeated_uint64_.Set(index, value); |
698 | 0 | // @@protoc_insertion_point(field_set:proto.Misc.repeated_uint64) |
699 | 0 | } |
700 | 0 | inline void Misc::_internal_add_repeated_uint64(uint64_t value) { |
701 | 0 | _impl_.repeated_uint64_.Add(value); |
702 | 0 | } |
703 | 0 | inline void Misc::add_repeated_uint64(uint64_t value) { |
704 | 0 | _internal_add_repeated_uint64(value); |
705 | 0 | // @@protoc_insertion_point(field_add:proto.Misc.repeated_uint64) |
706 | 0 | } |
707 | | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >& |
708 | 0 | Misc::_internal_repeated_uint64() const { |
709 | 0 | return _impl_.repeated_uint64_; |
710 | 0 | } |
711 | | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >& |
712 | 0 | Misc::repeated_uint64() const { |
713 | 0 | // @@protoc_insertion_point(field_list:proto.Misc.repeated_uint64) |
714 | 0 | return _internal_repeated_uint64(); |
715 | 0 | } |
716 | | inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >* |
717 | 0 | Misc::_internal_mutable_repeated_uint64() { |
718 | 0 | return &_impl_.repeated_uint64_; |
719 | 0 | } |
720 | | inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< uint64_t >* |
721 | 0 | Misc::mutable_repeated_uint64() { |
722 | 0 | // @@protoc_insertion_point(field_mutable_list:proto.Misc.repeated_uint64) |
723 | 0 | return _internal_mutable_repeated_uint64(); |
724 | 0 | } |
725 | | |
726 | | // required string required_string = 7; |
727 | 0 | inline bool Misc::_internal_has_required_string() const { |
728 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000001u) != 0; |
729 | 0 | return value; |
730 | 0 | } |
731 | 0 | inline bool Misc::has_required_string() const { |
732 | 0 | return _internal_has_required_string(); |
733 | 0 | } |
734 | 0 | inline void Misc::clear_required_string() { |
735 | 0 | _impl_.required_string_.ClearToEmpty(); |
736 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
737 | 0 | } |
738 | 0 | inline const std::string& Misc::required_string() const { |
739 | 0 | // @@protoc_insertion_point(field_get:proto.Misc.required_string) |
740 | 0 | return _internal_required_string(); |
741 | 0 | } |
742 | | template <typename ArgT0, typename... ArgT> |
743 | | inline PROTOBUF_ALWAYS_INLINE |
744 | | void Misc::set_required_string(ArgT0&& arg0, ArgT... args) { |
745 | | _impl_._has_bits_[0] |= 0x00000001u; |
746 | | _impl_.required_string_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
747 | | // @@protoc_insertion_point(field_set:proto.Misc.required_string) |
748 | | } |
749 | 0 | inline std::string* Misc::mutable_required_string() { |
750 | 0 | std::string* _s = _internal_mutable_required_string(); |
751 | 0 | // @@protoc_insertion_point(field_mutable:proto.Misc.required_string) |
752 | 0 | return _s; |
753 | 0 | } |
754 | 0 | inline const std::string& Misc::_internal_required_string() const { |
755 | 0 | return _impl_.required_string_.Get(); |
756 | 0 | } |
757 | 0 | inline void Misc::_internal_set_required_string(const std::string& value) { |
758 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
759 | 0 | _impl_.required_string_.Set(value, GetArenaForAllocation()); |
760 | 0 | } |
761 | 0 | inline std::string* Misc::_internal_mutable_required_string() { |
762 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
763 | 0 | return _impl_.required_string_.Mutable(GetArenaForAllocation()); |
764 | 0 | } |
765 | 0 | inline std::string* Misc::release_required_string() { |
766 | 0 | // @@protoc_insertion_point(field_release:proto.Misc.required_string) |
767 | 0 | if (!_internal_has_required_string()) { |
768 | 0 | return nullptr; |
769 | 0 | } |
770 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
771 | 0 | auto* p = _impl_.required_string_.Release(); |
772 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
773 | 0 | if (_impl_.required_string_.IsDefault()) { |
774 | 0 | _impl_.required_string_.Set("", GetArenaForAllocation()); |
775 | 0 | } |
776 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
777 | 0 | return p; |
778 | 0 | } |
779 | 0 | inline void Misc::set_allocated_required_string(std::string* required_string) { |
780 | 0 | if (required_string != nullptr) { |
781 | 0 | _impl_._has_bits_[0] |= 0x00000001u; |
782 | 0 | } else { |
783 | 0 | _impl_._has_bits_[0] &= ~0x00000001u; |
784 | 0 | } |
785 | 0 | _impl_.required_string_.SetAllocated(required_string, GetArenaForAllocation()); |
786 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
787 | 0 | if (_impl_.required_string_.IsDefault()) { |
788 | 0 | _impl_.required_string_.Set("", GetArenaForAllocation()); |
789 | 0 | } |
790 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
791 | 0 | // @@protoc_insertion_point(field_set_allocated:proto.Misc.required_string) |
792 | 0 | } |
793 | | |
794 | | // optional string optional_string = 8; |
795 | 0 | inline bool Misc::_internal_has_optional_string() const { |
796 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000002u) != 0; |
797 | 0 | return value; |
798 | 0 | } |
799 | 0 | inline bool Misc::has_optional_string() const { |
800 | 0 | return _internal_has_optional_string(); |
801 | 0 | } |
802 | 0 | inline void Misc::clear_optional_string() { |
803 | 0 | _impl_.optional_string_.ClearToEmpty(); |
804 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
805 | 0 | } |
806 | 0 | inline const std::string& Misc::optional_string() const { |
807 | 0 | // @@protoc_insertion_point(field_get:proto.Misc.optional_string) |
808 | 0 | return _internal_optional_string(); |
809 | 0 | } |
810 | | template <typename ArgT0, typename... ArgT> |
811 | | inline PROTOBUF_ALWAYS_INLINE |
812 | | void Misc::set_optional_string(ArgT0&& arg0, ArgT... args) { |
813 | | _impl_._has_bits_[0] |= 0x00000002u; |
814 | | _impl_.optional_string_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation()); |
815 | | // @@protoc_insertion_point(field_set:proto.Misc.optional_string) |
816 | | } |
817 | 0 | inline std::string* Misc::mutable_optional_string() { |
818 | 0 | std::string* _s = _internal_mutable_optional_string(); |
819 | 0 | // @@protoc_insertion_point(field_mutable:proto.Misc.optional_string) |
820 | 0 | return _s; |
821 | 0 | } |
822 | 0 | inline const std::string& Misc::_internal_optional_string() const { |
823 | 0 | return _impl_.optional_string_.Get(); |
824 | 0 | } |
825 | 0 | inline void Misc::_internal_set_optional_string(const std::string& value) { |
826 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
827 | 0 | _impl_.optional_string_.Set(value, GetArenaForAllocation()); |
828 | 0 | } |
829 | 0 | inline std::string* Misc::_internal_mutable_optional_string() { |
830 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
831 | 0 | return _impl_.optional_string_.Mutable(GetArenaForAllocation()); |
832 | 0 | } |
833 | 0 | inline std::string* Misc::release_optional_string() { |
834 | 0 | // @@protoc_insertion_point(field_release:proto.Misc.optional_string) |
835 | 0 | if (!_internal_has_optional_string()) { |
836 | 0 | return nullptr; |
837 | 0 | } |
838 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
839 | 0 | auto* p = _impl_.optional_string_.Release(); |
840 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
841 | 0 | if (_impl_.optional_string_.IsDefault()) { |
842 | 0 | _impl_.optional_string_.Set("", GetArenaForAllocation()); |
843 | 0 | } |
844 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
845 | 0 | return p; |
846 | 0 | } |
847 | 0 | inline void Misc::set_allocated_optional_string(std::string* optional_string) { |
848 | 0 | if (optional_string != nullptr) { |
849 | 0 | _impl_._has_bits_[0] |= 0x00000002u; |
850 | 0 | } else { |
851 | 0 | _impl_._has_bits_[0] &= ~0x00000002u; |
852 | 0 | } |
853 | 0 | _impl_.optional_string_.SetAllocated(optional_string, GetArenaForAllocation()); |
854 | 0 | #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING |
855 | 0 | if (_impl_.optional_string_.IsDefault()) { |
856 | 0 | _impl_.optional_string_.Set("", GetArenaForAllocation()); |
857 | 0 | } |
858 | 0 | #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING |
859 | 0 | // @@protoc_insertion_point(field_set_allocated:proto.Misc.optional_string) |
860 | 0 | } |
861 | | |
862 | | // repeated string repeated_string = 9; |
863 | 0 | inline int Misc::_internal_repeated_string_size() const { |
864 | 0 | return _impl_.repeated_string_.size(); |
865 | 0 | } |
866 | 0 | inline int Misc::repeated_string_size() const { |
867 | 0 | return _internal_repeated_string_size(); |
868 | 0 | } |
869 | 0 | inline void Misc::clear_repeated_string() { |
870 | 0 | _impl_.repeated_string_.Clear(); |
871 | 0 | } |
872 | 0 | inline std::string* Misc::add_repeated_string() { |
873 | 0 | std::string* _s = _internal_add_repeated_string(); |
874 | 0 | // @@protoc_insertion_point(field_add_mutable:proto.Misc.repeated_string) |
875 | 0 | return _s; |
876 | 0 | } |
877 | 0 | inline const std::string& Misc::_internal_repeated_string(int index) const { |
878 | 0 | return _impl_.repeated_string_.Get(index); |
879 | 0 | } |
880 | 0 | inline const std::string& Misc::repeated_string(int index) const { |
881 | 0 | // @@protoc_insertion_point(field_get:proto.Misc.repeated_string) |
882 | 0 | return _internal_repeated_string(index); |
883 | 0 | } |
884 | 0 | inline std::string* Misc::mutable_repeated_string(int index) { |
885 | 0 | // @@protoc_insertion_point(field_mutable:proto.Misc.repeated_string) |
886 | 0 | return _impl_.repeated_string_.Mutable(index); |
887 | 0 | } |
888 | 0 | inline void Misc::set_repeated_string(int index, const std::string& value) { |
889 | 0 | _impl_.repeated_string_.Mutable(index)->assign(value); |
890 | 0 | // @@protoc_insertion_point(field_set:proto.Misc.repeated_string) |
891 | 0 | } |
892 | 0 | inline void Misc::set_repeated_string(int index, std::string&& value) { |
893 | 0 | _impl_.repeated_string_.Mutable(index)->assign(std::move(value)); |
894 | 0 | // @@protoc_insertion_point(field_set:proto.Misc.repeated_string) |
895 | 0 | } |
896 | 0 | inline void Misc::set_repeated_string(int index, const char* value) { |
897 | 0 | GOOGLE_DCHECK(value != nullptr); |
898 | 0 | _impl_.repeated_string_.Mutable(index)->assign(value); |
899 | 0 | // @@protoc_insertion_point(field_set_char:proto.Misc.repeated_string) |
900 | 0 | } |
901 | 0 | inline void Misc::set_repeated_string(int index, const char* value, size_t size) { |
902 | 0 | _impl_.repeated_string_.Mutable(index)->assign( |
903 | 0 | reinterpret_cast<const char*>(value), size); |
904 | 0 | // @@protoc_insertion_point(field_set_pointer:proto.Misc.repeated_string) |
905 | 0 | } |
906 | 0 | inline std::string* Misc::_internal_add_repeated_string() { |
907 | 0 | return _impl_.repeated_string_.Add(); |
908 | 0 | } |
909 | 0 | inline void Misc::add_repeated_string(const std::string& value) { |
910 | 0 | _impl_.repeated_string_.Add()->assign(value); |
911 | 0 | // @@protoc_insertion_point(field_add:proto.Misc.repeated_string) |
912 | 0 | } |
913 | 0 | inline void Misc::add_repeated_string(std::string&& value) { |
914 | 0 | _impl_.repeated_string_.Add(std::move(value)); |
915 | 0 | // @@protoc_insertion_point(field_add:proto.Misc.repeated_string) |
916 | 0 | } |
917 | 0 | inline void Misc::add_repeated_string(const char* value) { |
918 | 0 | GOOGLE_DCHECK(value != nullptr); |
919 | 0 | _impl_.repeated_string_.Add()->assign(value); |
920 | 0 | // @@protoc_insertion_point(field_add_char:proto.Misc.repeated_string) |
921 | 0 | } |
922 | 0 | inline void Misc::add_repeated_string(const char* value, size_t size) { |
923 | 0 | _impl_.repeated_string_.Add()->assign(reinterpret_cast<const char*>(value), size); |
924 | 0 | // @@protoc_insertion_point(field_add_pointer:proto.Misc.repeated_string) |
925 | 0 | } |
926 | | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& |
927 | 0 | Misc::repeated_string() const { |
928 | 0 | // @@protoc_insertion_point(field_list:proto.Misc.repeated_string) |
929 | 0 | return _impl_.repeated_string_; |
930 | 0 | } |
931 | | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* |
932 | 0 | Misc::mutable_repeated_string() { |
933 | 0 | // @@protoc_insertion_point(field_mutable_list:proto.Misc.repeated_string) |
934 | 0 | return &_impl_.repeated_string_; |
935 | 0 | } |
936 | | |
937 | | // required bool required_bool = 10; |
938 | 0 | inline bool Misc::_internal_has_required_bool() const { |
939 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000040u) != 0; |
940 | 0 | return value; |
941 | 0 | } |
942 | 0 | inline bool Misc::has_required_bool() const { |
943 | 0 | return _internal_has_required_bool(); |
944 | 0 | } |
945 | 0 | inline void Misc::clear_required_bool() { |
946 | 0 | _impl_.required_bool_ = false; |
947 | 0 | _impl_._has_bits_[0] &= ~0x00000040u; |
948 | 0 | } |
949 | 0 | inline bool Misc::_internal_required_bool() const { |
950 | 0 | return _impl_.required_bool_; |
951 | 0 | } |
952 | 0 | inline bool Misc::required_bool() const { |
953 | 0 | // @@protoc_insertion_point(field_get:proto.Misc.required_bool) |
954 | 0 | return _internal_required_bool(); |
955 | 0 | } |
956 | 0 | inline void Misc::_internal_set_required_bool(bool value) { |
957 | 0 | _impl_._has_bits_[0] |= 0x00000040u; |
958 | 0 | _impl_.required_bool_ = value; |
959 | 0 | } |
960 | 0 | inline void Misc::set_required_bool(bool value) { |
961 | 0 | _internal_set_required_bool(value); |
962 | 0 | // @@protoc_insertion_point(field_set:proto.Misc.required_bool) |
963 | 0 | } |
964 | | |
965 | | // optional bool optional_bool = 11; |
966 | 0 | inline bool Misc::_internal_has_optional_bool() const { |
967 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000080u) != 0; |
968 | 0 | return value; |
969 | 0 | } |
970 | 0 | inline bool Misc::has_optional_bool() const { |
971 | 0 | return _internal_has_optional_bool(); |
972 | 0 | } |
973 | 0 | inline void Misc::clear_optional_bool() { |
974 | 0 | _impl_.optional_bool_ = false; |
975 | 0 | _impl_._has_bits_[0] &= ~0x00000080u; |
976 | 0 | } |
977 | 0 | inline bool Misc::_internal_optional_bool() const { |
978 | 0 | return _impl_.optional_bool_; |
979 | 0 | } |
980 | 0 | inline bool Misc::optional_bool() const { |
981 | 0 | // @@protoc_insertion_point(field_get:proto.Misc.optional_bool) |
982 | 0 | return _internal_optional_bool(); |
983 | 0 | } |
984 | 0 | inline void Misc::_internal_set_optional_bool(bool value) { |
985 | 0 | _impl_._has_bits_[0] |= 0x00000080u; |
986 | 0 | _impl_.optional_bool_ = value; |
987 | 0 | } |
988 | 0 | inline void Misc::set_optional_bool(bool value) { |
989 | 0 | _internal_set_optional_bool(value); |
990 | 0 | // @@protoc_insertion_point(field_set:proto.Misc.optional_bool) |
991 | 0 | } |
992 | | |
993 | | // repeated bool repeated_bool = 12; |
994 | 0 | inline int Misc::_internal_repeated_bool_size() const { |
995 | 0 | return _impl_.repeated_bool_.size(); |
996 | 0 | } |
997 | 0 | inline int Misc::repeated_bool_size() const { |
998 | 0 | return _internal_repeated_bool_size(); |
999 | 0 | } |
1000 | 0 | inline void Misc::clear_repeated_bool() { |
1001 | 0 | _impl_.repeated_bool_.Clear(); |
1002 | 0 | } |
1003 | 0 | inline bool Misc::_internal_repeated_bool(int index) const { |
1004 | 0 | return _impl_.repeated_bool_.Get(index); |
1005 | 0 | } |
1006 | 0 | inline bool Misc::repeated_bool(int index) const { |
1007 | 0 | // @@protoc_insertion_point(field_get:proto.Misc.repeated_bool) |
1008 | 0 | return _internal_repeated_bool(index); |
1009 | 0 | } |
1010 | 0 | inline void Misc::set_repeated_bool(int index, bool value) { |
1011 | 0 | _impl_.repeated_bool_.Set(index, value); |
1012 | 0 | // @@protoc_insertion_point(field_set:proto.Misc.repeated_bool) |
1013 | 0 | } |
1014 | 0 | inline void Misc::_internal_add_repeated_bool(bool value) { |
1015 | 0 | _impl_.repeated_bool_.Add(value); |
1016 | 0 | } |
1017 | 0 | inline void Misc::add_repeated_bool(bool value) { |
1018 | 0 | _internal_add_repeated_bool(value); |
1019 | 0 | // @@protoc_insertion_point(field_add:proto.Misc.repeated_bool) |
1020 | 0 | } |
1021 | | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >& |
1022 | 0 | Misc::_internal_repeated_bool() const { |
1023 | 0 | return _impl_.repeated_bool_; |
1024 | 0 | } |
1025 | | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >& |
1026 | 0 | Misc::repeated_bool() const { |
1027 | 0 | // @@protoc_insertion_point(field_list:proto.Misc.repeated_bool) |
1028 | 0 | return _internal_repeated_bool(); |
1029 | 0 | } |
1030 | | inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >* |
1031 | 0 | Misc::_internal_mutable_repeated_bool() { |
1032 | 0 | return &_impl_.repeated_bool_; |
1033 | 0 | } |
1034 | | inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< bool >* |
1035 | 0 | Misc::mutable_repeated_bool() { |
1036 | 0 | // @@protoc_insertion_point(field_mutable_list:proto.Misc.repeated_bool) |
1037 | 0 | return _internal_mutable_repeated_bool(); |
1038 | 0 | } |
1039 | | |
1040 | | // required int32 required_int32 = 13; |
1041 | 0 | inline bool Misc::_internal_has_required_int32() const { |
1042 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000100u) != 0; |
1043 | 0 | return value; |
1044 | 0 | } |
1045 | 0 | inline bool Misc::has_required_int32() const { |
1046 | 0 | return _internal_has_required_int32(); |
1047 | 0 | } |
1048 | 0 | inline void Misc::clear_required_int32() { |
1049 | 0 | _impl_.required_int32_ = 0; |
1050 | 0 | _impl_._has_bits_[0] &= ~0x00000100u; |
1051 | 0 | } |
1052 | 0 | inline int32_t Misc::_internal_required_int32() const { |
1053 | 0 | return _impl_.required_int32_; |
1054 | 0 | } |
1055 | 0 | inline int32_t Misc::required_int32() const { |
1056 | 0 | // @@protoc_insertion_point(field_get:proto.Misc.required_int32) |
1057 | 0 | return _internal_required_int32(); |
1058 | 0 | } |
1059 | 0 | inline void Misc::_internal_set_required_int32(int32_t value) { |
1060 | 0 | _impl_._has_bits_[0] |= 0x00000100u; |
1061 | 0 | _impl_.required_int32_ = value; |
1062 | 0 | } |
1063 | 0 | inline void Misc::set_required_int32(int32_t value) { |
1064 | 0 | _internal_set_required_int32(value); |
1065 | 0 | // @@protoc_insertion_point(field_set:proto.Misc.required_int32) |
1066 | 0 | } |
1067 | | |
1068 | | // optional int32 optional_int32 = 14; |
1069 | 0 | inline bool Misc::_internal_has_optional_int32() const { |
1070 | 0 | bool value = (_impl_._has_bits_[0] & 0x00000200u) != 0; |
1071 | 0 | return value; |
1072 | 0 | } |
1073 | 0 | inline bool Misc::has_optional_int32() const { |
1074 | 0 | return _internal_has_optional_int32(); |
1075 | 0 | } |
1076 | 0 | inline void Misc::clear_optional_int32() { |
1077 | 0 | _impl_.optional_int32_ = 0; |
1078 | 0 | _impl_._has_bits_[0] &= ~0x00000200u; |
1079 | 0 | } |
1080 | 0 | inline int32_t Misc::_internal_optional_int32() const { |
1081 | 0 | return _impl_.optional_int32_; |
1082 | 0 | } |
1083 | 0 | inline int32_t Misc::optional_int32() const { |
1084 | 0 | // @@protoc_insertion_point(field_get:proto.Misc.optional_int32) |
1085 | 0 | return _internal_optional_int32(); |
1086 | 0 | } |
1087 | 0 | inline void Misc::_internal_set_optional_int32(int32_t value) { |
1088 | 0 | _impl_._has_bits_[0] |= 0x00000200u; |
1089 | 0 | _impl_.optional_int32_ = value; |
1090 | 0 | } |
1091 | 0 | inline void Misc::set_optional_int32(int32_t value) { |
1092 | 0 | _internal_set_optional_int32(value); |
1093 | 0 | // @@protoc_insertion_point(field_set:proto.Misc.optional_int32) |
1094 | 0 | } |
1095 | | |
1096 | | // repeated int32 repeated_int32 = 15; |
1097 | 0 | inline int Misc::_internal_repeated_int32_size() const { |
1098 | 0 | return _impl_.repeated_int32_.size(); |
1099 | 0 | } |
1100 | 0 | inline int Misc::repeated_int32_size() const { |
1101 | 0 | return _internal_repeated_int32_size(); |
1102 | 0 | } |
1103 | 0 | inline void Misc::clear_repeated_int32() { |
1104 | 0 | _impl_.repeated_int32_.Clear(); |
1105 | 0 | } |
1106 | 0 | inline int32_t Misc::_internal_repeated_int32(int index) const { |
1107 | 0 | return _impl_.repeated_int32_.Get(index); |
1108 | 0 | } |
1109 | 0 | inline int32_t Misc::repeated_int32(int index) const { |
1110 | 0 | // @@protoc_insertion_point(field_get:proto.Misc.repeated_int32) |
1111 | 0 | return _internal_repeated_int32(index); |
1112 | 0 | } |
1113 | 0 | inline void Misc::set_repeated_int32(int index, int32_t value) { |
1114 | 0 | _impl_.repeated_int32_.Set(index, value); |
1115 | 0 | // @@protoc_insertion_point(field_set:proto.Misc.repeated_int32) |
1116 | 0 | } |
1117 | 0 | inline void Misc::_internal_add_repeated_int32(int32_t value) { |
1118 | 0 | _impl_.repeated_int32_.Add(value); |
1119 | 0 | } |
1120 | 0 | inline void Misc::add_repeated_int32(int32_t value) { |
1121 | 0 | _internal_add_repeated_int32(value); |
1122 | 0 | // @@protoc_insertion_point(field_add:proto.Misc.repeated_int32) |
1123 | 0 | } |
1124 | | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& |
1125 | 0 | Misc::_internal_repeated_int32() const { |
1126 | 0 | return _impl_.repeated_int32_; |
1127 | 0 | } |
1128 | | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& |
1129 | 0 | Misc::repeated_int32() const { |
1130 | 0 | // @@protoc_insertion_point(field_list:proto.Misc.repeated_int32) |
1131 | 0 | return _internal_repeated_int32(); |
1132 | 0 | } |
1133 | | inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* |
1134 | 0 | Misc::_internal_mutable_repeated_int32() { |
1135 | 0 | return &_impl_.repeated_int32_; |
1136 | 0 | } |
1137 | | inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* |
1138 | 0 | Misc::mutable_repeated_int32() { |
1139 | 0 | // @@protoc_insertion_point(field_mutable_list:proto.Misc.repeated_int32) |
1140 | 0 | return _internal_mutable_repeated_int32(); |
1141 | 0 | } |
1142 | | |
1143 | | #ifdef __GNUC__ |
1144 | | #pragma GCC diagnostic pop |
1145 | | #endif // __GNUC__ |
1146 | | |
1147 | | // @@protoc_insertion_point(namespace_scope) |
1148 | | |
1149 | | } // namespace proto |
1150 | | |
1151 | | PROTOBUF_NAMESPACE_OPEN |
1152 | | |
1153 | | template <> struct is_proto_enum< ::proto::CompressType> : ::std::true_type {}; |
1154 | | template <> |
1155 | 0 | inline const EnumDescriptor* GetEnumDescriptor< ::proto::CompressType>() { |
1156 | 0 | return ::proto::CompressType_descriptor(); |
1157 | 0 | } |
1158 | | |
1159 | | PROTOBUF_NAMESPACE_CLOSE |
1160 | | |
1161 | | // @@protoc_insertion_point(global_scope) |
1162 | | |
1163 | | #include <google/protobuf/port_undef.inc> |
1164 | | #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_iobuf_2eproto |