/Users/deen/code/yugabyte-db/build/debugcov-clang-dynamic-arm64-ninja/src/yb/util/proto_container_test.pb.h
Line | Count | Source (jump to first uncovered line) |
1 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | | // source: yb/util/proto_container_test.proto |
3 | | |
4 | | #ifndef PROTOBUF_yb_2futil_2fproto_5fcontainer_5ftest_2eproto__INCLUDED |
5 | | #define PROTOBUF_yb_2futil_2fproto_5fcontainer_5ftest_2eproto__INCLUDED |
6 | | |
7 | | #include <string> |
8 | | |
9 | | #include <google/protobuf/stubs/common.h> |
10 | | |
11 | | #if GOOGLE_PROTOBUF_VERSION < 3005000 |
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 3005001 < GOOGLE_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/io/coded_stream.h> |
23 | | #include <google/protobuf/arena.h> |
24 | | #include <google/protobuf/arenastring.h> |
25 | | #include <google/protobuf/generated_message_table_driven.h> |
26 | | #include <google/protobuf/generated_message_util.h> |
27 | | #include <google/protobuf/metadata.h> |
28 | | #include <google/protobuf/message.h> |
29 | | #include <google/protobuf/repeated_field.h> // IWYU pragma: export |
30 | | #include <google/protobuf/extension_set.h> // IWYU pragma: export |
31 | | #include <google/protobuf/generated_enum_reflection.h> |
32 | | #include <google/protobuf/unknown_field_set.h> |
33 | | // @@protoc_insertion_point(includes) |
34 | | |
35 | | namespace protobuf_yb_2futil_2fproto_5fcontainer_5ftest_2eproto { |
36 | | // Internal implementation detail -- do not use these members. |
37 | | struct TableStruct { |
38 | | static const ::google::protobuf::internal::ParseTableField entries[]; |
39 | | static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; |
40 | | static const ::google::protobuf::internal::ParseTable schema[4]; |
41 | | static const ::google::protobuf::internal::FieldMetadata field_metadata[]; |
42 | | static const ::google::protobuf::internal::SerializationTable serialization_table[]; |
43 | | static const ::google::protobuf::uint32 offsets[]; |
44 | | }; |
45 | | void AddDescriptors(); |
46 | | void InitDefaultsProtoContainerTestPBImpl(); |
47 | | void InitDefaultsProtoContainerTestPB(); |
48 | | void InitDefaultsTestStringRequiredPBImpl(); |
49 | | void InitDefaultsTestStringRequiredPB(); |
50 | | void InitDefaultsTestStringRepeatedPBImpl(); |
51 | | void InitDefaultsTestStringRepeatedPB(); |
52 | | void InitDefaultsUnsignedIntSetTestPBImpl(); |
53 | | void InitDefaultsUnsignedIntSetTestPB(); |
54 | 20 | inline void InitDefaults() { |
55 | 20 | InitDefaultsProtoContainerTestPB(); |
56 | 20 | InitDefaultsTestStringRequiredPB(); |
57 | 20 | InitDefaultsTestStringRepeatedPB(); |
58 | 20 | InitDefaultsUnsignedIntSetTestPB(); |
59 | 20 | } |
60 | | } // namespace protobuf_yb_2futil_2fproto_5fcontainer_5ftest_2eproto |
61 | | namespace yb { |
62 | | class ProtoContainerTestPB; |
63 | | class ProtoContainerTestPBDefaultTypeInternal; |
64 | | extern ProtoContainerTestPBDefaultTypeInternal _ProtoContainerTestPB_default_instance_; |
65 | | class TestStringRepeatedPB; |
66 | | class TestStringRepeatedPBDefaultTypeInternal; |
67 | | extern TestStringRepeatedPBDefaultTypeInternal _TestStringRepeatedPB_default_instance_; |
68 | | class TestStringRequiredPB; |
69 | | class TestStringRequiredPBDefaultTypeInternal; |
70 | | extern TestStringRequiredPBDefaultTypeInternal _TestStringRequiredPB_default_instance_; |
71 | | class UnsignedIntSetTestPB; |
72 | | class UnsignedIntSetTestPBDefaultTypeInternal; |
73 | | extern UnsignedIntSetTestPBDefaultTypeInternal _UnsignedIntSetTestPB_default_instance_; |
74 | | } // namespace yb |
75 | | namespace yb { |
76 | | |
77 | | enum TestPBEnum { |
78 | | FOO = 1, |
79 | | BAR = 2, |
80 | | BAZ = 3 |
81 | | }; |
82 | | bool TestPBEnum_IsValid(int value); |
83 | | const TestPBEnum TestPBEnum_MIN = FOO; |
84 | | const TestPBEnum TestPBEnum_MAX = BAZ; |
85 | | const int TestPBEnum_ARRAYSIZE = TestPBEnum_MAX + 1; |
86 | | |
87 | | const ::google::protobuf::EnumDescriptor* TestPBEnum_descriptor(); |
88 | | inline const ::std::string& TestPBEnum_Name(TestPBEnum value) { |
89 | | return ::google::protobuf::internal::NameOfEnum( |
90 | | TestPBEnum_descriptor(), value); |
91 | | } |
92 | | inline bool TestPBEnum_Parse( |
93 | 0 | const ::std::string& name, TestPBEnum* value) { |
94 | 0 | return ::google::protobuf::internal::ParseNamedEnum<TestPBEnum>( |
95 | 0 | TestPBEnum_descriptor(), name, value); |
96 | 0 | } |
97 | | // =================================================================== |
98 | | |
99 | | class ProtoContainerTestPB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.ProtoContainerTestPB) */ { |
100 | | public: |
101 | | ProtoContainerTestPB(); |
102 | | virtual ~ProtoContainerTestPB(); |
103 | | |
104 | | ProtoContainerTestPB(const ProtoContainerTestPB& from); |
105 | | |
106 | 0 | inline ProtoContainerTestPB& operator=(const ProtoContainerTestPB& from) { |
107 | 0 | CopyFrom(from); |
108 | 0 | return *this; |
109 | 0 | } |
110 | | #if LANG_CXX11 |
111 | | ProtoContainerTestPB(ProtoContainerTestPB&& from) noexcept |
112 | 0 | : ProtoContainerTestPB() { |
113 | 0 | *this = ::std::move(from); |
114 | 0 | } |
115 | | |
116 | 0 | inline ProtoContainerTestPB& operator=(ProtoContainerTestPB&& from) noexcept { |
117 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
118 | 0 | if (this != &from) InternalSwap(&from); |
119 | 0 | } else { |
120 | 0 | CopyFrom(from); |
121 | 0 | } |
122 | 0 | return *this; |
123 | 0 | } |
124 | | #endif |
125 | 0 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
126 | 0 | return _internal_metadata_.unknown_fields(); |
127 | 0 | } |
128 | 0 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
129 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
130 | 0 | } |
131 | | |
132 | | static const ::google::protobuf::Descriptor* descriptor(); |
133 | | static const ProtoContainerTestPB& default_instance(); |
134 | | |
135 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
136 | 101 | static inline const ProtoContainerTestPB* internal_default_instance() { |
137 | 101 | return reinterpret_cast<const ProtoContainerTestPB*>( |
138 | 101 | &_ProtoContainerTestPB_default_instance_); |
139 | 101 | } |
140 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
141 | | 0; |
142 | | |
143 | | void Swap(ProtoContainerTestPB* other); |
144 | 0 | friend void swap(ProtoContainerTestPB& a, ProtoContainerTestPB& b) { |
145 | 0 | a.Swap(&b); |
146 | 0 | } |
147 | | |
148 | | // implements Message ---------------------------------------------- |
149 | | |
150 | 0 | inline ProtoContainerTestPB* New() const PROTOBUF_FINAL { return New(NULL); } |
151 | | |
152 | | ProtoContainerTestPB* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; |
153 | | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
154 | | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
155 | | void CopyFrom(const ProtoContainerTestPB& from); |
156 | | void MergeFrom(const ProtoContainerTestPB& from); |
157 | | void Clear() PROTOBUF_FINAL; |
158 | | bool IsInitialized() const PROTOBUF_FINAL; |
159 | | |
160 | | size_t ByteSizeLong() const PROTOBUF_FINAL; |
161 | | bool MergePartialFromCodedStream( |
162 | | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
163 | | void SerializeWithCachedSizes( |
164 | | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
165 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
166 | | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
167 | 4 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
168 | | private: |
169 | | void SharedCtor(); |
170 | | void SharedDtor(); |
171 | | void SetCachedSize(int size) const PROTOBUF_FINAL; |
172 | | void InternalSwap(ProtoContainerTestPB* other); |
173 | | private: |
174 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
175 | 0 | return NULL; |
176 | 0 | } |
177 | 0 | inline void* MaybeArenaPtr() const { |
178 | 0 | return NULL; |
179 | 0 | } |
180 | | public: |
181 | | |
182 | | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
183 | | |
184 | | // nested types ---------------------------------------------------- |
185 | | |
186 | | // accessors ------------------------------------------------------- |
187 | | |
188 | | // required string name = 1; |
189 | | bool has_name() const; |
190 | | void clear_name(); |
191 | | static const int kNameFieldNumber = 1; |
192 | | const ::std::string& name() const; |
193 | | void set_name(const ::std::string& value); |
194 | | #if LANG_CXX11 |
195 | | void set_name(::std::string&& value); |
196 | | #endif |
197 | | void set_name(const char* value); |
198 | | void set_name(const char* value, size_t size); |
199 | | ::std::string* mutable_name(); |
200 | | ::std::string* release_name(); |
201 | | void set_allocated_name(::std::string* name); |
202 | | |
203 | | // optional string note = 3; |
204 | | bool has_note() const; |
205 | | void clear_note(); |
206 | | static const int kNoteFieldNumber = 3; |
207 | | const ::std::string& note() const; |
208 | | void set_note(const ::std::string& value); |
209 | | #if LANG_CXX11 |
210 | | void set_note(::std::string&& value); |
211 | | #endif |
212 | | void set_note(const char* value); |
213 | | void set_note(const char* value, size_t size); |
214 | | ::std::string* mutable_note(); |
215 | | ::std::string* release_note(); |
216 | | void set_allocated_note(::std::string* note); |
217 | | |
218 | | // required int32 value = 2; |
219 | | bool has_value() const; |
220 | | void clear_value(); |
221 | | static const int kValueFieldNumber = 2; |
222 | | ::google::protobuf::int32 value() const; |
223 | | void set_value(::google::protobuf::int32 value); |
224 | | |
225 | | // @@protoc_insertion_point(class_scope:yb.ProtoContainerTestPB) |
226 | | private: |
227 | | void set_has_name(); |
228 | | void clear_has_name(); |
229 | | void set_has_value(); |
230 | | void clear_has_value(); |
231 | | void set_has_note(); |
232 | | void clear_has_note(); |
233 | | |
234 | | // helper for ByteSizeLong() |
235 | | size_t RequiredFieldsByteSizeFallback() const; |
236 | | |
237 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
238 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
239 | | mutable int _cached_size_; |
240 | | ::google::protobuf::internal::ArenaStringPtr name_; |
241 | | ::google::protobuf::internal::ArenaStringPtr note_; |
242 | | ::google::protobuf::int32 value_; |
243 | | friend struct ::protobuf_yb_2futil_2fproto_5fcontainer_5ftest_2eproto::TableStruct; |
244 | | friend void ::protobuf_yb_2futil_2fproto_5fcontainer_5ftest_2eproto::InitDefaultsProtoContainerTestPBImpl(); |
245 | | }; |
246 | | // ------------------------------------------------------------------- |
247 | | |
248 | | class TestStringRequiredPB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.TestStringRequiredPB) */ { |
249 | | public: |
250 | | TestStringRequiredPB(); |
251 | | virtual ~TestStringRequiredPB(); |
252 | | |
253 | | TestStringRequiredPB(const TestStringRequiredPB& from); |
254 | | |
255 | 0 | inline TestStringRequiredPB& operator=(const TestStringRequiredPB& from) { |
256 | 0 | CopyFrom(from); |
257 | 0 | return *this; |
258 | 0 | } |
259 | | #if LANG_CXX11 |
260 | | TestStringRequiredPB(TestStringRequiredPB&& from) noexcept |
261 | 0 | : TestStringRequiredPB() { |
262 | 0 | *this = ::std::move(from); |
263 | 0 | } |
264 | | |
265 | 0 | inline TestStringRequiredPB& operator=(TestStringRequiredPB&& from) noexcept { |
266 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
267 | 0 | if (this != &from) InternalSwap(&from); |
268 | 0 | } else { |
269 | 0 | CopyFrom(from); |
270 | 0 | } |
271 | 0 | return *this; |
272 | 0 | } |
273 | | #endif |
274 | 0 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
275 | 0 | return _internal_metadata_.unknown_fields(); |
276 | 0 | } |
277 | 0 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
278 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
279 | 0 | } |
280 | | |
281 | | static const ::google::protobuf::Descriptor* descriptor(); |
282 | | static const TestStringRequiredPB& default_instance(); |
283 | | |
284 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
285 | 41 | static inline const TestStringRequiredPB* internal_default_instance() { |
286 | 41 | return reinterpret_cast<const TestStringRequiredPB*>( |
287 | 41 | &_TestStringRequiredPB_default_instance_); |
288 | 41 | } |
289 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
290 | | 1; |
291 | | |
292 | | void Swap(TestStringRequiredPB* other); |
293 | 0 | friend void swap(TestStringRequiredPB& a, TestStringRequiredPB& b) { |
294 | 0 | a.Swap(&b); |
295 | 0 | } |
296 | | |
297 | | // implements Message ---------------------------------------------- |
298 | | |
299 | 0 | inline TestStringRequiredPB* New() const PROTOBUF_FINAL { return New(NULL); } |
300 | | |
301 | | TestStringRequiredPB* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; |
302 | | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
303 | | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
304 | | void CopyFrom(const TestStringRequiredPB& from); |
305 | | void MergeFrom(const TestStringRequiredPB& from); |
306 | | void Clear() PROTOBUF_FINAL; |
307 | | bool IsInitialized() const PROTOBUF_FINAL; |
308 | | |
309 | | size_t ByteSizeLong() const PROTOBUF_FINAL; |
310 | | bool MergePartialFromCodedStream( |
311 | | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
312 | | void SerializeWithCachedSizes( |
313 | | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
314 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
315 | | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
316 | 1 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
317 | | private: |
318 | | void SharedCtor(); |
319 | | void SharedDtor(); |
320 | | void SetCachedSize(int size) const PROTOBUF_FINAL; |
321 | | void InternalSwap(TestStringRequiredPB* other); |
322 | | private: |
323 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
324 | 0 | return NULL; |
325 | 0 | } |
326 | 0 | inline void* MaybeArenaPtr() const { |
327 | 0 | return NULL; |
328 | 0 | } |
329 | | public: |
330 | | |
331 | | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
332 | | |
333 | | // nested types ---------------------------------------------------- |
334 | | |
335 | | // accessors ------------------------------------------------------- |
336 | | |
337 | | // required string text = 1; |
338 | | bool has_text() const; |
339 | | void clear_text(); |
340 | | static const int kTextFieldNumber = 1; |
341 | | const ::std::string& text() const; |
342 | | void set_text(const ::std::string& value); |
343 | | #if LANG_CXX11 |
344 | | void set_text(::std::string&& value); |
345 | | #endif |
346 | | void set_text(const char* value); |
347 | | void set_text(const char* value, size_t size); |
348 | | ::std::string* mutable_text(); |
349 | | ::std::string* release_text(); |
350 | | void set_allocated_text(::std::string* text); |
351 | | |
352 | | // @@protoc_insertion_point(class_scope:yb.TestStringRequiredPB) |
353 | | private: |
354 | | void set_has_text(); |
355 | | void clear_has_text(); |
356 | | |
357 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
358 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
359 | | mutable int _cached_size_; |
360 | | ::google::protobuf::internal::ArenaStringPtr text_; |
361 | | friend struct ::protobuf_yb_2futil_2fproto_5fcontainer_5ftest_2eproto::TableStruct; |
362 | | friend void ::protobuf_yb_2futil_2fproto_5fcontainer_5ftest_2eproto::InitDefaultsTestStringRequiredPBImpl(); |
363 | | }; |
364 | | // ------------------------------------------------------------------- |
365 | | |
366 | | class TestStringRepeatedPB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.TestStringRepeatedPB) */ { |
367 | | public: |
368 | | TestStringRepeatedPB(); |
369 | | virtual ~TestStringRepeatedPB(); |
370 | | |
371 | | TestStringRepeatedPB(const TestStringRepeatedPB& from); |
372 | | |
373 | 0 | inline TestStringRepeatedPB& operator=(const TestStringRepeatedPB& from) { |
374 | 0 | CopyFrom(from); |
375 | 0 | return *this; |
376 | 0 | } |
377 | | #if LANG_CXX11 |
378 | | TestStringRepeatedPB(TestStringRepeatedPB&& from) noexcept |
379 | 0 | : TestStringRepeatedPB() { |
380 | 0 | *this = ::std::move(from); |
381 | 0 | } |
382 | | |
383 | 0 | inline TestStringRepeatedPB& operator=(TestStringRepeatedPB&& from) noexcept { |
384 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
385 | 0 | if (this != &from) InternalSwap(&from); |
386 | 0 | } else { |
387 | 0 | CopyFrom(from); |
388 | 0 | } |
389 | 0 | return *this; |
390 | 0 | } |
391 | | #endif |
392 | 0 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
393 | 0 | return _internal_metadata_.unknown_fields(); |
394 | 0 | } |
395 | 0 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
396 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
397 | 0 | } |
398 | | |
399 | | static const ::google::protobuf::Descriptor* descriptor(); |
400 | | static const TestStringRepeatedPB& default_instance(); |
401 | | |
402 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
403 | 21 | static inline const TestStringRepeatedPB* internal_default_instance() { |
404 | 21 | return reinterpret_cast<const TestStringRepeatedPB*>( |
405 | 21 | &_TestStringRepeatedPB_default_instance_); |
406 | 21 | } |
407 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
408 | | 2; |
409 | | |
410 | | void Swap(TestStringRepeatedPB* other); |
411 | 0 | friend void swap(TestStringRepeatedPB& a, TestStringRepeatedPB& b) { |
412 | 0 | a.Swap(&b); |
413 | 0 | } |
414 | | |
415 | | // implements Message ---------------------------------------------- |
416 | | |
417 | 0 | inline TestStringRepeatedPB* New() const PROTOBUF_FINAL { return New(NULL); } |
418 | | |
419 | | TestStringRepeatedPB* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; |
420 | | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
421 | | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
422 | | void CopyFrom(const TestStringRepeatedPB& from); |
423 | | void MergeFrom(const TestStringRepeatedPB& from); |
424 | | void Clear() PROTOBUF_FINAL; |
425 | | bool IsInitialized() const PROTOBUF_FINAL; |
426 | | |
427 | | size_t ByteSizeLong() const PROTOBUF_FINAL; |
428 | | bool MergePartialFromCodedStream( |
429 | | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
430 | | void SerializeWithCachedSizes( |
431 | | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
432 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
433 | | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
434 | 0 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
435 | | private: |
436 | | void SharedCtor(); |
437 | | void SharedDtor(); |
438 | | void SetCachedSize(int size) const PROTOBUF_FINAL; |
439 | | void InternalSwap(TestStringRepeatedPB* other); |
440 | | private: |
441 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
442 | 0 | return NULL; |
443 | 0 | } |
444 | 0 | inline void* MaybeArenaPtr() const { |
445 | 0 | return NULL; |
446 | 0 | } |
447 | | public: |
448 | | |
449 | | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
450 | | |
451 | | // nested types ---------------------------------------------------- |
452 | | |
453 | | // accessors ------------------------------------------------------- |
454 | | |
455 | | // repeated string text = 1; |
456 | | int text_size() const; |
457 | | void clear_text(); |
458 | | static const int kTextFieldNumber = 1; |
459 | | const ::std::string& text(int index) const; |
460 | | ::std::string* mutable_text(int index); |
461 | | void set_text(int index, const ::std::string& value); |
462 | | #if LANG_CXX11 |
463 | | void set_text(int index, ::std::string&& value); |
464 | | #endif |
465 | | void set_text(int index, const char* value); |
466 | | void set_text(int index, const char* value, size_t size); |
467 | | ::std::string* add_text(); |
468 | | void add_text(const ::std::string& value); |
469 | | #if LANG_CXX11 |
470 | | void add_text(::std::string&& value); |
471 | | #endif |
472 | | void add_text(const char* value); |
473 | | void add_text(const char* value, size_t size); |
474 | | const ::google::protobuf::RepeatedPtrField< ::std::string>& text() const; |
475 | | ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_text(); |
476 | | |
477 | | // @@protoc_insertion_point(class_scope:yb.TestStringRepeatedPB) |
478 | | private: |
479 | | |
480 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
481 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
482 | | mutable int _cached_size_; |
483 | | ::google::protobuf::RepeatedPtrField< ::std::string> text_; |
484 | | friend struct ::protobuf_yb_2futil_2fproto_5fcontainer_5ftest_2eproto::TableStruct; |
485 | | friend void ::protobuf_yb_2futil_2fproto_5fcontainer_5ftest_2eproto::InitDefaultsTestStringRepeatedPBImpl(); |
486 | | }; |
487 | | // ------------------------------------------------------------------- |
488 | | |
489 | | class UnsignedIntSetTestPB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.UnsignedIntSetTestPB) */ { |
490 | | public: |
491 | | UnsignedIntSetTestPB(); |
492 | | virtual ~UnsignedIntSetTestPB(); |
493 | | |
494 | | UnsignedIntSetTestPB(const UnsignedIntSetTestPB& from); |
495 | | |
496 | 0 | inline UnsignedIntSetTestPB& operator=(const UnsignedIntSetTestPB& from) { |
497 | 0 | CopyFrom(from); |
498 | 0 | return *this; |
499 | 0 | } |
500 | | #if LANG_CXX11 |
501 | | UnsignedIntSetTestPB(UnsignedIntSetTestPB&& from) noexcept |
502 | 0 | : UnsignedIntSetTestPB() { |
503 | 0 | *this = ::std::move(from); |
504 | 0 | } |
505 | | |
506 | 0 | inline UnsignedIntSetTestPB& operator=(UnsignedIntSetTestPB&& from) noexcept { |
507 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
508 | 0 | if (this != &from) InternalSwap(&from); |
509 | 0 | } else { |
510 | 0 | CopyFrom(from); |
511 | 0 | } |
512 | 0 | return *this; |
513 | 0 | } |
514 | | #endif |
515 | 0 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
516 | 0 | return _internal_metadata_.unknown_fields(); |
517 | 0 | } |
518 | 0 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
519 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
520 | 0 | } |
521 | | |
522 | | static const ::google::protobuf::Descriptor* descriptor(); |
523 | | static const UnsignedIntSetTestPB& default_instance(); |
524 | | |
525 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
526 | 717 | static inline const UnsignedIntSetTestPB* internal_default_instance() { |
527 | 717 | return reinterpret_cast<const UnsignedIntSetTestPB*>( |
528 | 717 | &_UnsignedIntSetTestPB_default_instance_); |
529 | 717 | } |
530 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
531 | | 3; |
532 | | |
533 | | void Swap(UnsignedIntSetTestPB* other); |
534 | 0 | friend void swap(UnsignedIntSetTestPB& a, UnsignedIntSetTestPB& b) { |
535 | 0 | a.Swap(&b); |
536 | 0 | } |
537 | | |
538 | | // implements Message ---------------------------------------------- |
539 | | |
540 | 0 | inline UnsignedIntSetTestPB* New() const PROTOBUF_FINAL { return New(NULL); } |
541 | | |
542 | | UnsignedIntSetTestPB* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; |
543 | | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
544 | | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
545 | | void CopyFrom(const UnsignedIntSetTestPB& from); |
546 | | void MergeFrom(const UnsignedIntSetTestPB& from); |
547 | | void Clear() PROTOBUF_FINAL; |
548 | | bool IsInitialized() const PROTOBUF_FINAL; |
549 | | |
550 | | size_t ByteSizeLong() const PROTOBUF_FINAL; |
551 | | bool MergePartialFromCodedStream( |
552 | | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
553 | | void SerializeWithCachedSizes( |
554 | | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
555 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
556 | | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
557 | 0 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
558 | | private: |
559 | | void SharedCtor(); |
560 | | void SharedDtor(); |
561 | | void SetCachedSize(int size) const PROTOBUF_FINAL; |
562 | | void InternalSwap(UnsignedIntSetTestPB* other); |
563 | | private: |
564 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
565 | 0 | return NULL; |
566 | 0 | } |
567 | 0 | inline void* MaybeArenaPtr() const { |
568 | 0 | return NULL; |
569 | 0 | } |
570 | | public: |
571 | | |
572 | | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
573 | | |
574 | | // nested types ---------------------------------------------------- |
575 | | |
576 | | // accessors ------------------------------------------------------- |
577 | | |
578 | | // repeated uint32 set = 1; |
579 | | int set_size() const; |
580 | | void clear_set(); |
581 | | static const int kSetFieldNumber = 1; |
582 | | ::google::protobuf::uint32 set(int index) const; |
583 | | void set_set(int index, ::google::protobuf::uint32 value); |
584 | | void add_set(::google::protobuf::uint32 value); |
585 | | const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& |
586 | | set() const; |
587 | | ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* |
588 | | mutable_set(); |
589 | | |
590 | | // @@protoc_insertion_point(class_scope:yb.UnsignedIntSetTestPB) |
591 | | private: |
592 | | |
593 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
594 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
595 | | mutable int _cached_size_; |
596 | | ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > set_; |
597 | | friend struct ::protobuf_yb_2futil_2fproto_5fcontainer_5ftest_2eproto::TableStruct; |
598 | | friend void ::protobuf_yb_2futil_2fproto_5fcontainer_5ftest_2eproto::InitDefaultsUnsignedIntSetTestPBImpl(); |
599 | | }; |
600 | | // =================================================================== |
601 | | |
602 | | |
603 | | // =================================================================== |
604 | | |
605 | | #ifdef __GNUC__ |
606 | | #pragma GCC diagnostic push |
607 | | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
608 | | #endif // __GNUC__ |
609 | | // ProtoContainerTestPB |
610 | | |
611 | | // required string name = 1; |
612 | 0 | inline bool ProtoContainerTestPB::has_name() const { |
613 | 0 | return (_has_bits_[0] & 0x00000001u) != 0; |
614 | 0 | } |
615 | 38 | inline void ProtoContainerTestPB::set_has_name() { |
616 | 38 | _has_bits_[0] |= 0x00000001u; |
617 | 38 | } |
618 | 0 | inline void ProtoContainerTestPB::clear_has_name() { |
619 | 0 | _has_bits_[0] &= ~0x00000001u; |
620 | 0 | } |
621 | 0 | inline void ProtoContainerTestPB::clear_name() { |
622 | 0 | name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
623 | 0 | clear_has_name(); |
624 | 0 | } |
625 | 226 | inline const ::std::string& ProtoContainerTestPB::name() const { |
626 | | // @@protoc_insertion_point(field_get:yb.ProtoContainerTestPB.name) |
627 | 226 | return name_.GetNoArena(); |
628 | 226 | } |
629 | 0 | inline void ProtoContainerTestPB::set_name(const ::std::string& value) { |
630 | 0 | set_has_name(); |
631 | 0 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
632 | 0 | // @@protoc_insertion_point(field_set:yb.ProtoContainerTestPB.name) |
633 | 0 | } |
634 | | #if LANG_CXX11 |
635 | 0 | inline void ProtoContainerTestPB::set_name(::std::string&& value) { |
636 | 0 | set_has_name(); |
637 | 0 | name_.SetNoArena( |
638 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
639 | 0 | // @@protoc_insertion_point(field_set_rvalue:yb.ProtoContainerTestPB.name) |
640 | 0 | } |
641 | | #endif |
642 | | inline void ProtoContainerTestPB::set_name(const char* value) { |
643 | | GOOGLE_DCHECK(value != NULL); |
644 | | set_has_name(); |
645 | | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
646 | | // @@protoc_insertion_point(field_set_char:yb.ProtoContainerTestPB.name) |
647 | | } |
648 | 0 | inline void ProtoContainerTestPB::set_name(const char* value, size_t size) { |
649 | 0 | set_has_name(); |
650 | 0 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
651 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
652 | 0 | // @@protoc_insertion_point(field_set_pointer:yb.ProtoContainerTestPB.name) |
653 | 0 | } |
654 | 22 | inline ::std::string* ProtoContainerTestPB::mutable_name() { |
655 | 22 | set_has_name(); |
656 | | // @@protoc_insertion_point(field_mutable:yb.ProtoContainerTestPB.name) |
657 | 22 | return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
658 | 22 | } |
659 | 0 | inline ::std::string* ProtoContainerTestPB::release_name() { |
660 | 0 | // @@protoc_insertion_point(field_release:yb.ProtoContainerTestPB.name) |
661 | 0 | clear_has_name(); |
662 | 0 | return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
663 | 0 | } |
664 | 0 | inline void ProtoContainerTestPB::set_allocated_name(::std::string* name) { |
665 | 0 | if (name != NULL) { |
666 | 0 | set_has_name(); |
667 | 0 | } else { |
668 | 0 | clear_has_name(); |
669 | 0 | } |
670 | 0 | name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); |
671 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.ProtoContainerTestPB.name) |
672 | 0 | } |
673 | | |
674 | | // required int32 value = 2; |
675 | 0 | inline bool ProtoContainerTestPB::has_value() const { |
676 | 0 | return (_has_bits_[0] & 0x00000004u) != 0; |
677 | 0 | } |
678 | 58 | inline void ProtoContainerTestPB::set_has_value() { |
679 | 58 | _has_bits_[0] |= 0x00000004u; |
680 | 58 | } |
681 | 0 | inline void ProtoContainerTestPB::clear_has_value() { |
682 | 0 | _has_bits_[0] &= ~0x00000004u; |
683 | 0 | } |
684 | 0 | inline void ProtoContainerTestPB::clear_value() { |
685 | 0 | value_ = 0; |
686 | 0 | clear_has_value(); |
687 | 0 | } |
688 | 92 | inline ::google::protobuf::int32 ProtoContainerTestPB::value() const { |
689 | | // @@protoc_insertion_point(field_get:yb.ProtoContainerTestPB.value) |
690 | 92 | return value_; |
691 | 92 | } |
692 | | inline void ProtoContainerTestPB::set_value(::google::protobuf::int32 value) { |
693 | | set_has_value(); |
694 | | value_ = value; |
695 | | // @@protoc_insertion_point(field_set:yb.ProtoContainerTestPB.value) |
696 | | } |
697 | | |
698 | | // optional string note = 3; |
699 | 35 | inline bool ProtoContainerTestPB::has_note() const { |
700 | 35 | return (_has_bits_[0] & 0x00000002u) != 0; |
701 | 35 | } |
702 | 22 | inline void ProtoContainerTestPB::set_has_note() { |
703 | 22 | _has_bits_[0] |= 0x00000002u; |
704 | 22 | } |
705 | 0 | inline void ProtoContainerTestPB::clear_has_note() { |
706 | 0 | _has_bits_[0] &= ~0x00000002u; |
707 | 0 | } |
708 | 0 | inline void ProtoContainerTestPB::clear_note() { |
709 | 0 | note_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
710 | 0 | clear_has_note(); |
711 | 0 | } |
712 | 160 | inline const ::std::string& ProtoContainerTestPB::note() const { |
713 | | // @@protoc_insertion_point(field_get:yb.ProtoContainerTestPB.note) |
714 | 160 | return note_.GetNoArena(); |
715 | 160 | } |
716 | 0 | inline void ProtoContainerTestPB::set_note(const ::std::string& value) { |
717 | 0 | set_has_note(); |
718 | 0 | note_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
719 | 0 | // @@protoc_insertion_point(field_set:yb.ProtoContainerTestPB.note) |
720 | 0 | } |
721 | | #if LANG_CXX11 |
722 | 0 | inline void ProtoContainerTestPB::set_note(::std::string&& value) { |
723 | 0 | set_has_note(); |
724 | 0 | note_.SetNoArena( |
725 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
726 | 0 | // @@protoc_insertion_point(field_set_rvalue:yb.ProtoContainerTestPB.note) |
727 | 0 | } |
728 | | #endif |
729 | | inline void ProtoContainerTestPB::set_note(const char* value) { |
730 | | GOOGLE_DCHECK(value != NULL); |
731 | | set_has_note(); |
732 | | note_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
733 | | // @@protoc_insertion_point(field_set_char:yb.ProtoContainerTestPB.note) |
734 | | } |
735 | 0 | inline void ProtoContainerTestPB::set_note(const char* value, size_t size) { |
736 | 0 | set_has_note(); |
737 | 0 | note_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
738 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
739 | 0 | // @@protoc_insertion_point(field_set_pointer:yb.ProtoContainerTestPB.note) |
740 | 0 | } |
741 | 20 | inline ::std::string* ProtoContainerTestPB::mutable_note() { |
742 | 20 | set_has_note(); |
743 | | // @@protoc_insertion_point(field_mutable:yb.ProtoContainerTestPB.note) |
744 | 20 | return note_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
745 | 20 | } |
746 | 0 | inline ::std::string* ProtoContainerTestPB::release_note() { |
747 | 0 | // @@protoc_insertion_point(field_release:yb.ProtoContainerTestPB.note) |
748 | 0 | clear_has_note(); |
749 | 0 | return note_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
750 | 0 | } |
751 | 0 | inline void ProtoContainerTestPB::set_allocated_note(::std::string* note) { |
752 | 0 | if (note != NULL) { |
753 | 0 | set_has_note(); |
754 | 0 | } else { |
755 | 0 | clear_has_note(); |
756 | 0 | } |
757 | 0 | note_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), note); |
758 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.ProtoContainerTestPB.note) |
759 | 0 | } |
760 | | |
761 | | // ------------------------------------------------------------------- |
762 | | |
763 | | // TestStringRequiredPB |
764 | | |
765 | | // required string text = 1; |
766 | 1 | inline bool TestStringRequiredPB::has_text() const { |
767 | 1 | return (_has_bits_[0] & 0x00000001u) != 0; |
768 | 1 | } |
769 | 1 | inline void TestStringRequiredPB::set_has_text() { |
770 | 1 | _has_bits_[0] |= 0x00000001u; |
771 | 1 | } |
772 | 0 | inline void TestStringRequiredPB::clear_has_text() { |
773 | 0 | _has_bits_[0] &= ~0x00000001u; |
774 | 0 | } |
775 | 0 | inline void TestStringRequiredPB::clear_text() { |
776 | 0 | text_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
777 | 0 | clear_has_text(); |
778 | 0 | } |
779 | 4 | inline const ::std::string& TestStringRequiredPB::text() const { |
780 | | // @@protoc_insertion_point(field_get:yb.TestStringRequiredPB.text) |
781 | 4 | return text_.GetNoArena(); |
782 | 4 | } |
783 | | inline void TestStringRequiredPB::set_text(const ::std::string& value) { |
784 | | set_has_text(); |
785 | | text_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
786 | | // @@protoc_insertion_point(field_set:yb.TestStringRequiredPB.text) |
787 | | } |
788 | | #if LANG_CXX11 |
789 | 0 | inline void TestStringRequiredPB::set_text(::std::string&& value) { |
790 | 0 | set_has_text(); |
791 | 0 | text_.SetNoArena( |
792 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
793 | 0 | // @@protoc_insertion_point(field_set_rvalue:yb.TestStringRequiredPB.text) |
794 | 0 | } |
795 | | #endif |
796 | 0 | inline void TestStringRequiredPB::set_text(const char* value) { |
797 | 0 | GOOGLE_DCHECK(value != NULL); |
798 | 0 | set_has_text(); |
799 | 0 | text_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
800 | 0 | // @@protoc_insertion_point(field_set_char:yb.TestStringRequiredPB.text) |
801 | 0 | } |
802 | 0 | inline void TestStringRequiredPB::set_text(const char* value, size_t size) { |
803 | 0 | set_has_text(); |
804 | 0 | text_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
805 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
806 | 0 | // @@protoc_insertion_point(field_set_pointer:yb.TestStringRequiredPB.text) |
807 | 0 | } |
808 | 0 | inline ::std::string* TestStringRequiredPB::mutable_text() { |
809 | 0 | set_has_text(); |
810 | | // @@protoc_insertion_point(field_mutable:yb.TestStringRequiredPB.text) |
811 | 0 | return text_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
812 | 0 | } |
813 | 0 | inline ::std::string* TestStringRequiredPB::release_text() { |
814 | 0 | // @@protoc_insertion_point(field_release:yb.TestStringRequiredPB.text) |
815 | 0 | clear_has_text(); |
816 | 0 | return text_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
817 | 0 | } |
818 | 0 | inline void TestStringRequiredPB::set_allocated_text(::std::string* text) { |
819 | 0 | if (text != NULL) { |
820 | 0 | set_has_text(); |
821 | 0 | } else { |
822 | 0 | clear_has_text(); |
823 | 0 | } |
824 | 0 | text_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), text); |
825 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.TestStringRequiredPB.text) |
826 | 0 | } |
827 | | |
828 | | // ------------------------------------------------------------------- |
829 | | |
830 | | // TestStringRepeatedPB |
831 | | |
832 | | // repeated string text = 1; |
833 | 2 | inline int TestStringRepeatedPB::text_size() const { |
834 | 2 | return text_.size(); |
835 | 2 | } |
836 | 0 | inline void TestStringRepeatedPB::clear_text() { |
837 | 0 | text_.Clear(); |
838 | 0 | } |
839 | 2 | inline const ::std::string& TestStringRepeatedPB::text(int index) const { |
840 | | // @@protoc_insertion_point(field_get:yb.TestStringRepeatedPB.text) |
841 | 2 | return text_.Get(index); |
842 | 2 | } |
843 | 0 | inline ::std::string* TestStringRepeatedPB::mutable_text(int index) { |
844 | 0 | // @@protoc_insertion_point(field_mutable:yb.TestStringRepeatedPB.text) |
845 | 0 | return text_.Mutable(index); |
846 | 0 | } |
847 | 0 | inline void TestStringRepeatedPB::set_text(int index, const ::std::string& value) { |
848 | 0 | // @@protoc_insertion_point(field_set:yb.TestStringRepeatedPB.text) |
849 | 0 | text_.Mutable(index)->assign(value); |
850 | 0 | } |
851 | | #if LANG_CXX11 |
852 | 0 | inline void TestStringRepeatedPB::set_text(int index, ::std::string&& value) { |
853 | 0 | // @@protoc_insertion_point(field_set:yb.TestStringRepeatedPB.text) |
854 | 0 | text_.Mutable(index)->assign(std::move(value)); |
855 | 0 | } |
856 | | #endif |
857 | 0 | inline void TestStringRepeatedPB::set_text(int index, const char* value) { |
858 | 0 | GOOGLE_DCHECK(value != NULL); |
859 | 0 | text_.Mutable(index)->assign(value); |
860 | 0 | // @@protoc_insertion_point(field_set_char:yb.TestStringRepeatedPB.text) |
861 | 0 | } |
862 | 0 | inline void TestStringRepeatedPB::set_text(int index, const char* value, size_t size) { |
863 | 0 | text_.Mutable(index)->assign( |
864 | 0 | reinterpret_cast<const char*>(value), size); |
865 | 0 | // @@protoc_insertion_point(field_set_pointer:yb.TestStringRepeatedPB.text) |
866 | 0 | } |
867 | 1 | inline ::std::string* TestStringRepeatedPB::add_text() { |
868 | | // @@protoc_insertion_point(field_add_mutable:yb.TestStringRepeatedPB.text) |
869 | 1 | return text_.Add(); |
870 | 1 | } |
871 | 0 | inline void TestStringRepeatedPB::add_text(const ::std::string& value) { |
872 | 0 | text_.Add()->assign(value); |
873 | 0 | // @@protoc_insertion_point(field_add:yb.TestStringRepeatedPB.text) |
874 | 0 | } |
875 | | #if LANG_CXX11 |
876 | 0 | inline void TestStringRepeatedPB::add_text(::std::string&& value) { |
877 | 0 | text_.Add(std::move(value)); |
878 | 0 | // @@protoc_insertion_point(field_add:yb.TestStringRepeatedPB.text) |
879 | 0 | } |
880 | | #endif |
881 | 0 | inline void TestStringRepeatedPB::add_text(const char* value) { |
882 | 0 | GOOGLE_DCHECK(value != NULL); |
883 | 0 | text_.Add()->assign(value); |
884 | 0 | // @@protoc_insertion_point(field_add_char:yb.TestStringRepeatedPB.text) |
885 | 0 | } |
886 | 0 | inline void TestStringRepeatedPB::add_text(const char* value, size_t size) { |
887 | 0 | text_.Add()->assign(reinterpret_cast<const char*>(value), size); |
888 | 0 | // @@protoc_insertion_point(field_add_pointer:yb.TestStringRepeatedPB.text) |
889 | 0 | } |
890 | | inline const ::google::protobuf::RepeatedPtrField< ::std::string>& |
891 | | TestStringRepeatedPB::text() const { |
892 | | // @@protoc_insertion_point(field_list:yb.TestStringRepeatedPB.text) |
893 | | return text_; |
894 | | } |
895 | | inline ::google::protobuf::RepeatedPtrField< ::std::string>* |
896 | 0 | TestStringRepeatedPB::mutable_text() { |
897 | 0 | // @@protoc_insertion_point(field_mutable_list:yb.TestStringRepeatedPB.text) |
898 | 0 | return &text_; |
899 | 0 | } |
900 | | |
901 | | // ------------------------------------------------------------------- |
902 | | |
903 | | // UnsignedIntSetTestPB |
904 | | |
905 | | // repeated uint32 set = 1; |
906 | 0 | inline int UnsignedIntSetTestPB::set_size() const { |
907 | 0 | return set_.size(); |
908 | 0 | } |
909 | 0 | inline void UnsignedIntSetTestPB::clear_set() { |
910 | 0 | set_.Clear(); |
911 | 0 | } |
912 | 0 | inline ::google::protobuf::uint32 UnsignedIntSetTestPB::set(int index) const { |
913 | | // @@protoc_insertion_point(field_get:yb.UnsignedIntSetTestPB.set) |
914 | 0 | return set_.Get(index); |
915 | 0 | } |
916 | 0 | inline void UnsignedIntSetTestPB::set_set(int index, ::google::protobuf::uint32 value) { |
917 | 0 | set_.Set(index, value); |
918 | 0 | // @@protoc_insertion_point(field_set:yb.UnsignedIntSetTestPB.set) |
919 | 0 | } |
920 | 0 | inline void UnsignedIntSetTestPB::add_set(::google::protobuf::uint32 value) { |
921 | 0 | set_.Add(value); |
922 | 0 | // @@protoc_insertion_point(field_add:yb.UnsignedIntSetTestPB.set) |
923 | 0 | } |
924 | | inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >& |
925 | | UnsignedIntSetTestPB::set() const { |
926 | | // @@protoc_insertion_point(field_list:yb.UnsignedIntSetTestPB.set) |
927 | | return set_; |
928 | | } |
929 | | inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >* |
930 | 697 | UnsignedIntSetTestPB::mutable_set() { |
931 | | // @@protoc_insertion_point(field_mutable_list:yb.UnsignedIntSetTestPB.set) |
932 | 697 | return &set_; |
933 | 697 | } |
934 | | |
935 | | #ifdef __GNUC__ |
936 | | #pragma GCC diagnostic pop |
937 | | #endif // __GNUC__ |
938 | | // ------------------------------------------------------------------- |
939 | | |
940 | | // ------------------------------------------------------------------- |
941 | | |
942 | | // ------------------------------------------------------------------- |
943 | | |
944 | | |
945 | | // @@protoc_insertion_point(namespace_scope) |
946 | | |
947 | | } // namespace yb |
948 | | |
949 | | namespace google { |
950 | | namespace protobuf { |
951 | | |
952 | | template <> struct is_proto_enum< ::yb::TestPBEnum> : ::google::protobuf::internal::true_type {}; |
953 | | template <> |
954 | 0 | inline const EnumDescriptor* GetEnumDescriptor< ::yb::TestPBEnum>() { |
955 | 0 | return ::yb::TestPBEnum_descriptor(); |
956 | 0 | } |
957 | | |
958 | | } // namespace protobuf |
959 | | } // namespace google |
960 | | |
961 | | // @@protoc_insertion_point(global_scope) |
962 | | |
963 | | #endif // PROTOBUF_yb_2futil_2fproto_5fcontainer_5ftest_2eproto__INCLUDED |