/Users/deen/code/yugabyte-db/build/debugcov-clang-dynamic-arm64-ninja/src/yb/util/proto_container_test2.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_test2.proto |
3 | | |
4 | | #ifndef PROTOBUF_yb_2futil_2fproto_5fcontainer_5ftest2_2eproto__INCLUDED |
5 | | #define PROTOBUF_yb_2futil_2fproto_5fcontainer_5ftest2_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/unknown_field_set.h> |
32 | | #include "yb/util/proto_container_test.pb.h" |
33 | | // @@protoc_insertion_point(includes) |
34 | | |
35 | | namespace protobuf_yb_2futil_2fproto_5fcontainer_5ftest2_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[3]; |
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 InitDefaultsProtoContainerTest2PBImpl(); |
47 | | void InitDefaultsProtoContainerTest2PB(); |
48 | | void InitDefaultsTestObjectRequiredPBImpl(); |
49 | | void InitDefaultsTestObjectRequiredPB(); |
50 | | void InitDefaultsTestObjectRepeatedPBImpl(); |
51 | | void InitDefaultsTestObjectRepeatedPB(); |
52 | 20 | inline void InitDefaults() { |
53 | 20 | InitDefaultsProtoContainerTest2PB(); |
54 | 20 | InitDefaultsTestObjectRequiredPB(); |
55 | 20 | InitDefaultsTestObjectRepeatedPB(); |
56 | 20 | } |
57 | | } // namespace protobuf_yb_2futil_2fproto_5fcontainer_5ftest2_2eproto |
58 | | namespace yb { |
59 | | class ProtoContainerTest2PB; |
60 | | class ProtoContainerTest2PBDefaultTypeInternal; |
61 | | extern ProtoContainerTest2PBDefaultTypeInternal _ProtoContainerTest2PB_default_instance_; |
62 | | class TestObjectRepeatedPB; |
63 | | class TestObjectRepeatedPBDefaultTypeInternal; |
64 | | extern TestObjectRepeatedPBDefaultTypeInternal _TestObjectRepeatedPB_default_instance_; |
65 | | class TestObjectRequiredPB; |
66 | | class TestObjectRequiredPBDefaultTypeInternal; |
67 | | extern TestObjectRequiredPBDefaultTypeInternal _TestObjectRequiredPB_default_instance_; |
68 | | } // namespace yb |
69 | | namespace yb { |
70 | | |
71 | | // =================================================================== |
72 | | |
73 | | class ProtoContainerTest2PB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.ProtoContainerTest2PB) */ { |
74 | | public: |
75 | | ProtoContainerTest2PB(); |
76 | | virtual ~ProtoContainerTest2PB(); |
77 | | |
78 | | ProtoContainerTest2PB(const ProtoContainerTest2PB& from); |
79 | | |
80 | 0 | inline ProtoContainerTest2PB& operator=(const ProtoContainerTest2PB& from) { |
81 | 0 | CopyFrom(from); |
82 | 0 | return *this; |
83 | 0 | } |
84 | | #if LANG_CXX11 |
85 | | ProtoContainerTest2PB(ProtoContainerTest2PB&& from) noexcept |
86 | 0 | : ProtoContainerTest2PB() { |
87 | 0 | *this = ::std::move(from); |
88 | 0 | } |
89 | | |
90 | 0 | inline ProtoContainerTest2PB& operator=(ProtoContainerTest2PB&& from) noexcept { |
91 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
92 | 0 | if (this != &from) InternalSwap(&from); |
93 | 0 | } else { |
94 | 0 | CopyFrom(from); |
95 | 0 | } |
96 | 0 | return *this; |
97 | 0 | } |
98 | | #endif |
99 | 0 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
100 | 0 | return _internal_metadata_.unknown_fields(); |
101 | 0 | } |
102 | 0 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
103 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
104 | 0 | } |
105 | | |
106 | | static const ::google::protobuf::Descriptor* descriptor(); |
107 | | static const ProtoContainerTest2PB& default_instance(); |
108 | | |
109 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
110 | 44 | static inline const ProtoContainerTest2PB* internal_default_instance() { |
111 | 44 | return reinterpret_cast<const ProtoContainerTest2PB*>( |
112 | 44 | &_ProtoContainerTest2PB_default_instance_); |
113 | 44 | } |
114 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
115 | | 0; |
116 | | |
117 | | void Swap(ProtoContainerTest2PB* other); |
118 | 0 | friend void swap(ProtoContainerTest2PB& a, ProtoContainerTest2PB& b) { |
119 | 0 | a.Swap(&b); |
120 | 0 | } |
121 | | |
122 | | // implements Message ---------------------------------------------- |
123 | | |
124 | 0 | inline ProtoContainerTest2PB* New() const PROTOBUF_FINAL { return New(NULL); } |
125 | | |
126 | | ProtoContainerTest2PB* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; |
127 | | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
128 | | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
129 | | void CopyFrom(const ProtoContainerTest2PB& from); |
130 | | void MergeFrom(const ProtoContainerTest2PB& from); |
131 | | void Clear() PROTOBUF_FINAL; |
132 | | bool IsInitialized() const PROTOBUF_FINAL; |
133 | | |
134 | | size_t ByteSizeLong() const PROTOBUF_FINAL; |
135 | | bool MergePartialFromCodedStream( |
136 | | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
137 | | void SerializeWithCachedSizes( |
138 | | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
139 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
140 | | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
141 | 2 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
142 | | private: |
143 | | void SharedCtor(); |
144 | | void SharedDtor(); |
145 | | void SetCachedSize(int size) const PROTOBUF_FINAL; |
146 | | void InternalSwap(ProtoContainerTest2PB* other); |
147 | | private: |
148 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
149 | 0 | return NULL; |
150 | 0 | } |
151 | 0 | inline void* MaybeArenaPtr() const { |
152 | 0 | return NULL; |
153 | 0 | } |
154 | | public: |
155 | | |
156 | | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
157 | | |
158 | | // nested types ---------------------------------------------------- |
159 | | |
160 | | // accessors ------------------------------------------------------- |
161 | | |
162 | | // required .yb.ProtoContainerTestPB record = 1; |
163 | | bool has_record() const; |
164 | | void clear_record(); |
165 | | static const int kRecordFieldNumber = 1; |
166 | | const ::yb::ProtoContainerTestPB& record() const; |
167 | | ::yb::ProtoContainerTestPB* release_record(); |
168 | | ::yb::ProtoContainerTestPB* mutable_record(); |
169 | | void set_allocated_record(::yb::ProtoContainerTestPB* record); |
170 | | |
171 | | // @@protoc_insertion_point(class_scope:yb.ProtoContainerTest2PB) |
172 | | private: |
173 | | void set_has_record(); |
174 | | void clear_has_record(); |
175 | | |
176 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
177 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
178 | | mutable int _cached_size_; |
179 | | ::yb::ProtoContainerTestPB* record_; |
180 | | friend struct ::protobuf_yb_2futil_2fproto_5fcontainer_5ftest2_2eproto::TableStruct; |
181 | | friend void ::protobuf_yb_2futil_2fproto_5fcontainer_5ftest2_2eproto::InitDefaultsProtoContainerTest2PBImpl(); |
182 | | }; |
183 | | // ------------------------------------------------------------------- |
184 | | |
185 | | class TestObjectRequiredPB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.TestObjectRequiredPB) */ { |
186 | | public: |
187 | | TestObjectRequiredPB(); |
188 | | virtual ~TestObjectRequiredPB(); |
189 | | |
190 | | TestObjectRequiredPB(const TestObjectRequiredPB& from); |
191 | | |
192 | 0 | inline TestObjectRequiredPB& operator=(const TestObjectRequiredPB& from) { |
193 | 0 | CopyFrom(from); |
194 | 0 | return *this; |
195 | 0 | } |
196 | | #if LANG_CXX11 |
197 | | TestObjectRequiredPB(TestObjectRequiredPB&& from) noexcept |
198 | 0 | : TestObjectRequiredPB() { |
199 | 0 | *this = ::std::move(from); |
200 | 0 | } |
201 | | |
202 | 0 | inline TestObjectRequiredPB& operator=(TestObjectRequiredPB&& from) noexcept { |
203 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
204 | 0 | if (this != &from) InternalSwap(&from); |
205 | 0 | } else { |
206 | 0 | CopyFrom(from); |
207 | 0 | } |
208 | 0 | return *this; |
209 | 0 | } |
210 | | #endif |
211 | 0 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
212 | 0 | return _internal_metadata_.unknown_fields(); |
213 | 0 | } |
214 | 0 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
215 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
216 | 0 | } |
217 | | |
218 | | static const ::google::protobuf::Descriptor* descriptor(); |
219 | | static const TestObjectRequiredPB& default_instance(); |
220 | | |
221 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
222 | 22 | static inline const TestObjectRequiredPB* internal_default_instance() { |
223 | 22 | return reinterpret_cast<const TestObjectRequiredPB*>( |
224 | 22 | &_TestObjectRequiredPB_default_instance_); |
225 | 22 | } |
226 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
227 | | 1; |
228 | | |
229 | | void Swap(TestObjectRequiredPB* other); |
230 | 0 | friend void swap(TestObjectRequiredPB& a, TestObjectRequiredPB& b) { |
231 | 0 | a.Swap(&b); |
232 | 0 | } |
233 | | |
234 | | // implements Message ---------------------------------------------- |
235 | | |
236 | 0 | inline TestObjectRequiredPB* New() const PROTOBUF_FINAL { return New(NULL); } |
237 | | |
238 | | TestObjectRequiredPB* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; |
239 | | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
240 | | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
241 | | void CopyFrom(const TestObjectRequiredPB& from); |
242 | | void MergeFrom(const TestObjectRequiredPB& from); |
243 | | void Clear() PROTOBUF_FINAL; |
244 | | bool IsInitialized() const PROTOBUF_FINAL; |
245 | | |
246 | | size_t ByteSizeLong() const PROTOBUF_FINAL; |
247 | | bool MergePartialFromCodedStream( |
248 | | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
249 | | void SerializeWithCachedSizes( |
250 | | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
251 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
252 | | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
253 | 0 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
254 | | private: |
255 | | void SharedCtor(); |
256 | | void SharedDtor(); |
257 | | void SetCachedSize(int size) const PROTOBUF_FINAL; |
258 | | void InternalSwap(TestObjectRequiredPB* other); |
259 | | private: |
260 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
261 | 0 | return NULL; |
262 | 0 | } |
263 | 0 | inline void* MaybeArenaPtr() const { |
264 | 0 | return NULL; |
265 | 0 | } |
266 | | public: |
267 | | |
268 | | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
269 | | |
270 | | // nested types ---------------------------------------------------- |
271 | | |
272 | | // accessors ------------------------------------------------------- |
273 | | |
274 | | // required string string1 = 1; |
275 | | bool has_string1() const; |
276 | | void clear_string1(); |
277 | | static const int kString1FieldNumber = 1; |
278 | | const ::std::string& string1() const; |
279 | | void set_string1(const ::std::string& value); |
280 | | #if LANG_CXX11 |
281 | | void set_string1(::std::string&& value); |
282 | | #endif |
283 | | void set_string1(const char* value); |
284 | | void set_string1(const char* value, size_t size); |
285 | | ::std::string* mutable_string1(); |
286 | | ::std::string* release_string1(); |
287 | | void set_allocated_string1(::std::string* string1); |
288 | | |
289 | | // required string string2 = 3; |
290 | | bool has_string2() const; |
291 | | void clear_string2(); |
292 | | static const int kString2FieldNumber = 3; |
293 | | const ::std::string& string2() const; |
294 | | void set_string2(const ::std::string& value); |
295 | | #if LANG_CXX11 |
296 | | void set_string2(::std::string&& value); |
297 | | #endif |
298 | | void set_string2(const char* value); |
299 | | void set_string2(const char* value, size_t size); |
300 | | ::std::string* mutable_string2(); |
301 | | ::std::string* release_string2(); |
302 | | void set_allocated_string2(::std::string* string2); |
303 | | |
304 | | // required .yb.TestStringRequiredPB record = 2; |
305 | | bool has_record() const; |
306 | | void clear_record(); |
307 | | static const int kRecordFieldNumber = 2; |
308 | | const ::yb::TestStringRequiredPB& record() const; |
309 | | ::yb::TestStringRequiredPB* release_record(); |
310 | | ::yb::TestStringRequiredPB* mutable_record(); |
311 | | void set_allocated_record(::yb::TestStringRequiredPB* record); |
312 | | |
313 | | // @@protoc_insertion_point(class_scope:yb.TestObjectRequiredPB) |
314 | | private: |
315 | | void set_has_string1(); |
316 | | void clear_has_string1(); |
317 | | void set_has_record(); |
318 | | void clear_has_record(); |
319 | | void set_has_string2(); |
320 | | void clear_has_string2(); |
321 | | |
322 | | // helper for ByteSizeLong() |
323 | | size_t RequiredFieldsByteSizeFallback() const; |
324 | | |
325 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
326 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
327 | | mutable int _cached_size_; |
328 | | ::google::protobuf::internal::ArenaStringPtr string1_; |
329 | | ::google::protobuf::internal::ArenaStringPtr string2_; |
330 | | ::yb::TestStringRequiredPB* record_; |
331 | | friend struct ::protobuf_yb_2futil_2fproto_5fcontainer_5ftest2_2eproto::TableStruct; |
332 | | friend void ::protobuf_yb_2futil_2fproto_5fcontainer_5ftest2_2eproto::InitDefaultsTestObjectRequiredPBImpl(); |
333 | | }; |
334 | | // ------------------------------------------------------------------- |
335 | | |
336 | | class TestObjectRepeatedPB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.TestObjectRepeatedPB) */ { |
337 | | public: |
338 | | TestObjectRepeatedPB(); |
339 | | virtual ~TestObjectRepeatedPB(); |
340 | | |
341 | | TestObjectRepeatedPB(const TestObjectRepeatedPB& from); |
342 | | |
343 | 0 | inline TestObjectRepeatedPB& operator=(const TestObjectRepeatedPB& from) { |
344 | 0 | CopyFrom(from); |
345 | 0 | return *this; |
346 | 0 | } |
347 | | #if LANG_CXX11 |
348 | | TestObjectRepeatedPB(TestObjectRepeatedPB&& from) noexcept |
349 | 0 | : TestObjectRepeatedPB() { |
350 | 0 | *this = ::std::move(from); |
351 | 0 | } |
352 | | |
353 | 0 | inline TestObjectRepeatedPB& operator=(TestObjectRepeatedPB&& from) noexcept { |
354 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
355 | 0 | if (this != &from) InternalSwap(&from); |
356 | 0 | } else { |
357 | 0 | CopyFrom(from); |
358 | 0 | } |
359 | 0 | return *this; |
360 | 0 | } |
361 | | #endif |
362 | 0 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
363 | 0 | return _internal_metadata_.unknown_fields(); |
364 | 0 | } |
365 | 0 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
366 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
367 | 0 | } |
368 | | |
369 | | static const ::google::protobuf::Descriptor* descriptor(); |
370 | | static const TestObjectRepeatedPB& default_instance(); |
371 | | |
372 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
373 | 21 | static inline const TestObjectRepeatedPB* internal_default_instance() { |
374 | 21 | return reinterpret_cast<const TestObjectRepeatedPB*>( |
375 | 21 | &_TestObjectRepeatedPB_default_instance_); |
376 | 21 | } |
377 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
378 | | 2; |
379 | | |
380 | | void Swap(TestObjectRepeatedPB* other); |
381 | 0 | friend void swap(TestObjectRepeatedPB& a, TestObjectRepeatedPB& b) { |
382 | 0 | a.Swap(&b); |
383 | 0 | } |
384 | | |
385 | | // implements Message ---------------------------------------------- |
386 | | |
387 | 0 | inline TestObjectRepeatedPB* New() const PROTOBUF_FINAL { return New(NULL); } |
388 | | |
389 | | TestObjectRepeatedPB* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; |
390 | | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
391 | | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
392 | | void CopyFrom(const TestObjectRepeatedPB& from); |
393 | | void MergeFrom(const TestObjectRepeatedPB& from); |
394 | | void Clear() PROTOBUF_FINAL; |
395 | | bool IsInitialized() const PROTOBUF_FINAL; |
396 | | |
397 | | size_t ByteSizeLong() const PROTOBUF_FINAL; |
398 | | bool MergePartialFromCodedStream( |
399 | | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
400 | | void SerializeWithCachedSizes( |
401 | | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
402 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
403 | | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
404 | 0 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
405 | | private: |
406 | | void SharedCtor(); |
407 | | void SharedDtor(); |
408 | | void SetCachedSize(int size) const PROTOBUF_FINAL; |
409 | | void InternalSwap(TestObjectRepeatedPB* other); |
410 | | private: |
411 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
412 | 0 | return NULL; |
413 | 0 | } |
414 | 0 | inline void* MaybeArenaPtr() const { |
415 | 0 | return NULL; |
416 | 0 | } |
417 | | public: |
418 | | |
419 | | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
420 | | |
421 | | // nested types ---------------------------------------------------- |
422 | | |
423 | | // accessors ------------------------------------------------------- |
424 | | |
425 | | // repeated string string1 = 1; |
426 | | int string1_size() const; |
427 | | void clear_string1(); |
428 | | static const int kString1FieldNumber = 1; |
429 | | const ::std::string& string1(int index) const; |
430 | | ::std::string* mutable_string1(int index); |
431 | | void set_string1(int index, const ::std::string& value); |
432 | | #if LANG_CXX11 |
433 | | void set_string1(int index, ::std::string&& value); |
434 | | #endif |
435 | | void set_string1(int index, const char* value); |
436 | | void set_string1(int index, const char* value, size_t size); |
437 | | ::std::string* add_string1(); |
438 | | void add_string1(const ::std::string& value); |
439 | | #if LANG_CXX11 |
440 | | void add_string1(::std::string&& value); |
441 | | #endif |
442 | | void add_string1(const char* value); |
443 | | void add_string1(const char* value, size_t size); |
444 | | const ::google::protobuf::RepeatedPtrField< ::std::string>& string1() const; |
445 | | ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_string1(); |
446 | | |
447 | | // repeated .yb.TestStringRepeatedPB record = 2; |
448 | | int record_size() const; |
449 | | void clear_record(); |
450 | | static const int kRecordFieldNumber = 2; |
451 | | const ::yb::TestStringRepeatedPB& record(int index) const; |
452 | | ::yb::TestStringRepeatedPB* mutable_record(int index); |
453 | | ::yb::TestStringRepeatedPB* add_record(); |
454 | | ::google::protobuf::RepeatedPtrField< ::yb::TestStringRepeatedPB >* |
455 | | mutable_record(); |
456 | | const ::google::protobuf::RepeatedPtrField< ::yb::TestStringRepeatedPB >& |
457 | | record() const; |
458 | | |
459 | | // repeated string string2 = 3; |
460 | | int string2_size() const; |
461 | | void clear_string2(); |
462 | | static const int kString2FieldNumber = 3; |
463 | | const ::std::string& string2(int index) const; |
464 | | ::std::string* mutable_string2(int index); |
465 | | void set_string2(int index, const ::std::string& value); |
466 | | #if LANG_CXX11 |
467 | | void set_string2(int index, ::std::string&& value); |
468 | | #endif |
469 | | void set_string2(int index, const char* value); |
470 | | void set_string2(int index, const char* value, size_t size); |
471 | | ::std::string* add_string2(); |
472 | | void add_string2(const ::std::string& value); |
473 | | #if LANG_CXX11 |
474 | | void add_string2(::std::string&& value); |
475 | | #endif |
476 | | void add_string2(const char* value); |
477 | | void add_string2(const char* value, size_t size); |
478 | | const ::google::protobuf::RepeatedPtrField< ::std::string>& string2() const; |
479 | | ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_string2(); |
480 | | |
481 | | // @@protoc_insertion_point(class_scope:yb.TestObjectRepeatedPB) |
482 | | private: |
483 | | |
484 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
485 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
486 | | mutable int _cached_size_; |
487 | | ::google::protobuf::RepeatedPtrField< ::std::string> string1_; |
488 | | ::google::protobuf::RepeatedPtrField< ::yb::TestStringRepeatedPB > record_; |
489 | | ::google::protobuf::RepeatedPtrField< ::std::string> string2_; |
490 | | friend struct ::protobuf_yb_2futil_2fproto_5fcontainer_5ftest2_2eproto::TableStruct; |
491 | | friend void ::protobuf_yb_2futil_2fproto_5fcontainer_5ftest2_2eproto::InitDefaultsTestObjectRepeatedPBImpl(); |
492 | | }; |
493 | | // =================================================================== |
494 | | |
495 | | |
496 | | // =================================================================== |
497 | | |
498 | | #ifdef __GNUC__ |
499 | | #pragma GCC diagnostic push |
500 | | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
501 | | #endif // __GNUC__ |
502 | | // ProtoContainerTest2PB |
503 | | |
504 | | // required .yb.ProtoContainerTestPB record = 1; |
505 | 4 | inline bool ProtoContainerTest2PB::has_record() const { |
506 | 4 | return (_has_bits_[0] & 0x00000001u) != 0; |
507 | 4 | } |
508 | 3 | inline void ProtoContainerTest2PB::set_has_record() { |
509 | 3 | _has_bits_[0] |= 0x00000001u; |
510 | 3 | } |
511 | 0 | inline void ProtoContainerTest2PB::clear_has_record() { |
512 | 0 | _has_bits_[0] &= ~0x00000001u; |
513 | 0 | } |
514 | 0 | inline const ::yb::ProtoContainerTestPB& ProtoContainerTest2PB::record() const { |
515 | 0 | const ::yb::ProtoContainerTestPB* p = record_; |
516 | | // @@protoc_insertion_point(field_get:yb.ProtoContainerTest2PB.record) |
517 | 0 | return p != NULL ? *p : *reinterpret_cast<const ::yb::ProtoContainerTestPB*>( |
518 | 0 | &::yb::_ProtoContainerTestPB_default_instance_); |
519 | 0 | } |
520 | 0 | inline ::yb::ProtoContainerTestPB* ProtoContainerTest2PB::release_record() { |
521 | 0 | // @@protoc_insertion_point(field_release:yb.ProtoContainerTest2PB.record) |
522 | 0 | clear_has_record(); |
523 | 0 | ::yb::ProtoContainerTestPB* temp = record_; |
524 | 0 | record_ = NULL; |
525 | 0 | return temp; |
526 | 0 | } |
527 | 3 | inline ::yb::ProtoContainerTestPB* ProtoContainerTest2PB::mutable_record() { |
528 | 3 | set_has_record(); |
529 | 3 | if (record_ == NULL) { |
530 | 1 | record_ = new ::yb::ProtoContainerTestPB; |
531 | 1 | } |
532 | | // @@protoc_insertion_point(field_mutable:yb.ProtoContainerTest2PB.record) |
533 | 3 | return record_; |
534 | 3 | } |
535 | 0 | inline void ProtoContainerTest2PB::set_allocated_record(::yb::ProtoContainerTestPB* record) { |
536 | 0 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
537 | 0 | if (message_arena == NULL) { |
538 | 0 | delete reinterpret_cast< ::google::protobuf::MessageLite*>(record_); |
539 | 0 | } |
540 | 0 | if (record) { |
541 | 0 | ::google::protobuf::Arena* submessage_arena = NULL; |
542 | 0 | if (message_arena != submessage_arena) { |
543 | 0 | record = ::google::protobuf::internal::GetOwnedMessage( |
544 | 0 | message_arena, record, submessage_arena); |
545 | 0 | } |
546 | 0 | set_has_record(); |
547 | 0 | } else { |
548 | 0 | clear_has_record(); |
549 | 0 | } |
550 | 0 | record_ = record; |
551 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.ProtoContainerTest2PB.record) |
552 | 0 | } |
553 | | |
554 | | // ------------------------------------------------------------------- |
555 | | |
556 | | // TestObjectRequiredPB |
557 | | |
558 | | // required string string1 = 1; |
559 | 0 | inline bool TestObjectRequiredPB::has_string1() const { |
560 | 0 | return (_has_bits_[0] & 0x00000001u) != 0; |
561 | 0 | } |
562 | 1 | inline void TestObjectRequiredPB::set_has_string1() { |
563 | 1 | _has_bits_[0] |= 0x00000001u; |
564 | 1 | } |
565 | 0 | inline void TestObjectRequiredPB::clear_has_string1() { |
566 | 0 | _has_bits_[0] &= ~0x00000001u; |
567 | 0 | } |
568 | 0 | inline void TestObjectRequiredPB::clear_string1() { |
569 | 0 | string1_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
570 | 0 | clear_has_string1(); |
571 | 0 | } |
572 | 4 | inline const ::std::string& TestObjectRequiredPB::string1() const { |
573 | | // @@protoc_insertion_point(field_get:yb.TestObjectRequiredPB.string1) |
574 | 4 | return string1_.GetNoArena(); |
575 | 4 | } |
576 | 0 | inline void TestObjectRequiredPB::set_string1(const ::std::string& value) { |
577 | 0 | set_has_string1(); |
578 | 0 | string1_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
579 | 0 | // @@protoc_insertion_point(field_set:yb.TestObjectRequiredPB.string1) |
580 | 0 | } |
581 | | #if LANG_CXX11 |
582 | | inline void TestObjectRequiredPB::set_string1(::std::string&& value) { |
583 | | set_has_string1(); |
584 | | string1_.SetNoArena( |
585 | | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
586 | | // @@protoc_insertion_point(field_set_rvalue:yb.TestObjectRequiredPB.string1) |
587 | | } |
588 | | #endif |
589 | 0 | inline void TestObjectRequiredPB::set_string1(const char* value) { |
590 | 0 | GOOGLE_DCHECK(value != NULL); |
591 | 0 | set_has_string1(); |
592 | 0 | string1_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
593 | 0 | // @@protoc_insertion_point(field_set_char:yb.TestObjectRequiredPB.string1) |
594 | 0 | } |
595 | 0 | inline void TestObjectRequiredPB::set_string1(const char* value, size_t size) { |
596 | 0 | set_has_string1(); |
597 | 0 | string1_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
598 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
599 | 0 | // @@protoc_insertion_point(field_set_pointer:yb.TestObjectRequiredPB.string1) |
600 | 0 | } |
601 | 0 | inline ::std::string* TestObjectRequiredPB::mutable_string1() { |
602 | 0 | set_has_string1(); |
603 | | // @@protoc_insertion_point(field_mutable:yb.TestObjectRequiredPB.string1) |
604 | 0 | return string1_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
605 | 0 | } |
606 | 0 | inline ::std::string* TestObjectRequiredPB::release_string1() { |
607 | 0 | // @@protoc_insertion_point(field_release:yb.TestObjectRequiredPB.string1) |
608 | 0 | clear_has_string1(); |
609 | 0 | return string1_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
610 | 0 | } |
611 | 0 | inline void TestObjectRequiredPB::set_allocated_string1(::std::string* string1) { |
612 | 0 | if (string1 != NULL) { |
613 | 0 | set_has_string1(); |
614 | 0 | } else { |
615 | 0 | clear_has_string1(); |
616 | 0 | } |
617 | 0 | string1_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), string1); |
618 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.TestObjectRequiredPB.string1) |
619 | 0 | } |
620 | | |
621 | | // required .yb.TestStringRequiredPB record = 2; |
622 | 1 | inline bool TestObjectRequiredPB::has_record() const { |
623 | 1 | return (_has_bits_[0] & 0x00000004u) != 0; |
624 | 1 | } |
625 | 1 | inline void TestObjectRequiredPB::set_has_record() { |
626 | 1 | _has_bits_[0] |= 0x00000004u; |
627 | 1 | } |
628 | 0 | inline void TestObjectRequiredPB::clear_has_record() { |
629 | 0 | _has_bits_[0] &= ~0x00000004u; |
630 | 0 | } |
631 | 0 | inline const ::yb::TestStringRequiredPB& TestObjectRequiredPB::record() const { |
632 | 0 | const ::yb::TestStringRequiredPB* p = record_; |
633 | | // @@protoc_insertion_point(field_get:yb.TestObjectRequiredPB.record) |
634 | 0 | return p != NULL ? *p : *reinterpret_cast<const ::yb::TestStringRequiredPB*>( |
635 | 0 | &::yb::_TestStringRequiredPB_default_instance_); |
636 | 0 | } |
637 | 0 | inline ::yb::TestStringRequiredPB* TestObjectRequiredPB::release_record() { |
638 | 0 | // @@protoc_insertion_point(field_release:yb.TestObjectRequiredPB.record) |
639 | 0 | clear_has_record(); |
640 | 0 | ::yb::TestStringRequiredPB* temp = record_; |
641 | 0 | record_ = NULL; |
642 | 0 | return temp; |
643 | 0 | } |
644 | 1 | inline ::yb::TestStringRequiredPB* TestObjectRequiredPB::mutable_record() { |
645 | 1 | set_has_record(); |
646 | 1 | if (record_ == NULL) { |
647 | 1 | record_ = new ::yb::TestStringRequiredPB; |
648 | 1 | } |
649 | | // @@protoc_insertion_point(field_mutable:yb.TestObjectRequiredPB.record) |
650 | 1 | return record_; |
651 | 1 | } |
652 | 0 | inline void TestObjectRequiredPB::set_allocated_record(::yb::TestStringRequiredPB* record) { |
653 | 0 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
654 | 0 | if (message_arena == NULL) { |
655 | 0 | delete reinterpret_cast< ::google::protobuf::MessageLite*>(record_); |
656 | 0 | } |
657 | 0 | if (record) { |
658 | 0 | ::google::protobuf::Arena* submessage_arena = NULL; |
659 | 0 | if (message_arena != submessage_arena) { |
660 | 0 | record = ::google::protobuf::internal::GetOwnedMessage( |
661 | 0 | message_arena, record, submessage_arena); |
662 | 0 | } |
663 | 0 | set_has_record(); |
664 | 0 | } else { |
665 | 0 | clear_has_record(); |
666 | 0 | } |
667 | 0 | record_ = record; |
668 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.TestObjectRequiredPB.record) |
669 | 0 | } |
670 | | |
671 | | // required string string2 = 3; |
672 | 0 | inline bool TestObjectRequiredPB::has_string2() const { |
673 | 0 | return (_has_bits_[0] & 0x00000002u) != 0; |
674 | 0 | } |
675 | 1 | inline void TestObjectRequiredPB::set_has_string2() { |
676 | 1 | _has_bits_[0] |= 0x00000002u; |
677 | 1 | } |
678 | 0 | inline void TestObjectRequiredPB::clear_has_string2() { |
679 | 0 | _has_bits_[0] &= ~0x00000002u; |
680 | 0 | } |
681 | 0 | inline void TestObjectRequiredPB::clear_string2() { |
682 | 0 | string2_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
683 | 0 | clear_has_string2(); |
684 | 0 | } |
685 | 4 | inline const ::std::string& TestObjectRequiredPB::string2() const { |
686 | | // @@protoc_insertion_point(field_get:yb.TestObjectRequiredPB.string2) |
687 | 4 | return string2_.GetNoArena(); |
688 | 4 | } |
689 | 0 | inline void TestObjectRequiredPB::set_string2(const ::std::string& value) { |
690 | 0 | set_has_string2(); |
691 | 0 | string2_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
692 | 0 | // @@protoc_insertion_point(field_set:yb.TestObjectRequiredPB.string2) |
693 | 0 | } |
694 | | #if LANG_CXX11 |
695 | | inline void TestObjectRequiredPB::set_string2(::std::string&& value) { |
696 | | set_has_string2(); |
697 | | string2_.SetNoArena( |
698 | | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
699 | | // @@protoc_insertion_point(field_set_rvalue:yb.TestObjectRequiredPB.string2) |
700 | | } |
701 | | #endif |
702 | 0 | inline void TestObjectRequiredPB::set_string2(const char* value) { |
703 | 0 | GOOGLE_DCHECK(value != NULL); |
704 | 0 | set_has_string2(); |
705 | 0 | string2_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
706 | 0 | // @@protoc_insertion_point(field_set_char:yb.TestObjectRequiredPB.string2) |
707 | 0 | } |
708 | 0 | inline void TestObjectRequiredPB::set_string2(const char* value, size_t size) { |
709 | 0 | set_has_string2(); |
710 | 0 | string2_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
711 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
712 | 0 | // @@protoc_insertion_point(field_set_pointer:yb.TestObjectRequiredPB.string2) |
713 | 0 | } |
714 | 0 | inline ::std::string* TestObjectRequiredPB::mutable_string2() { |
715 | 0 | set_has_string2(); |
716 | | // @@protoc_insertion_point(field_mutable:yb.TestObjectRequiredPB.string2) |
717 | 0 | return string2_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
718 | 0 | } |
719 | 0 | inline ::std::string* TestObjectRequiredPB::release_string2() { |
720 | 0 | // @@protoc_insertion_point(field_release:yb.TestObjectRequiredPB.string2) |
721 | 0 | clear_has_string2(); |
722 | 0 | return string2_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
723 | 0 | } |
724 | 0 | inline void TestObjectRequiredPB::set_allocated_string2(::std::string* string2) { |
725 | 0 | if (string2 != NULL) { |
726 | 0 | set_has_string2(); |
727 | 0 | } else { |
728 | 0 | clear_has_string2(); |
729 | 0 | } |
730 | 0 | string2_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), string2); |
731 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.TestObjectRequiredPB.string2) |
732 | 0 | } |
733 | | |
734 | | // ------------------------------------------------------------------- |
735 | | |
736 | | // TestObjectRepeatedPB |
737 | | |
738 | | // repeated string string1 = 1; |
739 | 3 | inline int TestObjectRepeatedPB::string1_size() const { |
740 | 3 | return string1_.size(); |
741 | 3 | } |
742 | 0 | inline void TestObjectRepeatedPB::clear_string1() { |
743 | 0 | string1_.Clear(); |
744 | 0 | } |
745 | 2 | inline const ::std::string& TestObjectRepeatedPB::string1(int index) const { |
746 | | // @@protoc_insertion_point(field_get:yb.TestObjectRepeatedPB.string1) |
747 | 2 | return string1_.Get(index); |
748 | 2 | } |
749 | 0 | inline ::std::string* TestObjectRepeatedPB::mutable_string1(int index) { |
750 | 0 | // @@protoc_insertion_point(field_mutable:yb.TestObjectRepeatedPB.string1) |
751 | 0 | return string1_.Mutable(index); |
752 | 0 | } |
753 | 0 | inline void TestObjectRepeatedPB::set_string1(int index, const ::std::string& value) { |
754 | 0 | // @@protoc_insertion_point(field_set:yb.TestObjectRepeatedPB.string1) |
755 | 0 | string1_.Mutable(index)->assign(value); |
756 | 0 | } |
757 | | #if LANG_CXX11 |
758 | 0 | inline void TestObjectRepeatedPB::set_string1(int index, ::std::string&& value) { |
759 | 0 | // @@protoc_insertion_point(field_set:yb.TestObjectRepeatedPB.string1) |
760 | 0 | string1_.Mutable(index)->assign(std::move(value)); |
761 | 0 | } |
762 | | #endif |
763 | 0 | inline void TestObjectRepeatedPB::set_string1(int index, const char* value) { |
764 | 0 | GOOGLE_DCHECK(value != NULL); |
765 | 0 | string1_.Mutable(index)->assign(value); |
766 | 0 | // @@protoc_insertion_point(field_set_char:yb.TestObjectRepeatedPB.string1) |
767 | 0 | } |
768 | 0 | inline void TestObjectRepeatedPB::set_string1(int index, const char* value, size_t size) { |
769 | 0 | string1_.Mutable(index)->assign( |
770 | 0 | reinterpret_cast<const char*>(value), size); |
771 | 0 | // @@protoc_insertion_point(field_set_pointer:yb.TestObjectRepeatedPB.string1) |
772 | 0 | } |
773 | 1 | inline ::std::string* TestObjectRepeatedPB::add_string1() { |
774 | | // @@protoc_insertion_point(field_add_mutable:yb.TestObjectRepeatedPB.string1) |
775 | 1 | return string1_.Add(); |
776 | 1 | } |
777 | 0 | inline void TestObjectRepeatedPB::add_string1(const ::std::string& value) { |
778 | 0 | string1_.Add()->assign(value); |
779 | 0 | // @@protoc_insertion_point(field_add:yb.TestObjectRepeatedPB.string1) |
780 | 0 | } |
781 | | #if LANG_CXX11 |
782 | 0 | inline void TestObjectRepeatedPB::add_string1(::std::string&& value) { |
783 | 0 | string1_.Add(std::move(value)); |
784 | 0 | // @@protoc_insertion_point(field_add:yb.TestObjectRepeatedPB.string1) |
785 | 0 | } |
786 | | #endif |
787 | 0 | inline void TestObjectRepeatedPB::add_string1(const char* value) { |
788 | 0 | GOOGLE_DCHECK(value != NULL); |
789 | 0 | string1_.Add()->assign(value); |
790 | 0 | // @@protoc_insertion_point(field_add_char:yb.TestObjectRepeatedPB.string1) |
791 | 0 | } |
792 | 0 | inline void TestObjectRepeatedPB::add_string1(const char* value, size_t size) { |
793 | 0 | string1_.Add()->assign(reinterpret_cast<const char*>(value), size); |
794 | 0 | // @@protoc_insertion_point(field_add_pointer:yb.TestObjectRepeatedPB.string1) |
795 | 0 | } |
796 | | inline const ::google::protobuf::RepeatedPtrField< ::std::string>& |
797 | | TestObjectRepeatedPB::string1() const { |
798 | | // @@protoc_insertion_point(field_list:yb.TestObjectRepeatedPB.string1) |
799 | | return string1_; |
800 | | } |
801 | | inline ::google::protobuf::RepeatedPtrField< ::std::string>* |
802 | 0 | TestObjectRepeatedPB::mutable_string1() { |
803 | 0 | // @@protoc_insertion_point(field_mutable_list:yb.TestObjectRepeatedPB.string1) |
804 | 0 | return &string1_; |
805 | 0 | } |
806 | | |
807 | | // repeated .yb.TestStringRepeatedPB record = 2; |
808 | 1 | inline int TestObjectRepeatedPB::record_size() const { |
809 | 1 | return record_.size(); |
810 | 1 | } |
811 | 0 | inline const ::yb::TestStringRepeatedPB& TestObjectRepeatedPB::record(int index) const { |
812 | | // @@protoc_insertion_point(field_get:yb.TestObjectRepeatedPB.record) |
813 | 0 | return record_.Get(index); |
814 | 0 | } |
815 | 0 | inline ::yb::TestStringRepeatedPB* TestObjectRepeatedPB::mutable_record(int index) { |
816 | 0 | // @@protoc_insertion_point(field_mutable:yb.TestObjectRepeatedPB.record) |
817 | 0 | return record_.Mutable(index); |
818 | 0 | } |
819 | 1 | inline ::yb::TestStringRepeatedPB* TestObjectRepeatedPB::add_record() { |
820 | | // @@protoc_insertion_point(field_add:yb.TestObjectRepeatedPB.record) |
821 | 1 | return record_.Add(); |
822 | 1 | } |
823 | | inline ::google::protobuf::RepeatedPtrField< ::yb::TestStringRepeatedPB >* |
824 | 0 | TestObjectRepeatedPB::mutable_record() { |
825 | 0 | // @@protoc_insertion_point(field_mutable_list:yb.TestObjectRepeatedPB.record) |
826 | 0 | return &record_; |
827 | 0 | } |
828 | | inline const ::google::protobuf::RepeatedPtrField< ::yb::TestStringRepeatedPB >& |
829 | | TestObjectRepeatedPB::record() const { |
830 | | // @@protoc_insertion_point(field_list:yb.TestObjectRepeatedPB.record) |
831 | | return record_; |
832 | | } |
833 | | |
834 | | // repeated string string2 = 3; |
835 | 3 | inline int TestObjectRepeatedPB::string2_size() const { |
836 | 3 | return string2_.size(); |
837 | 3 | } |
838 | 0 | inline void TestObjectRepeatedPB::clear_string2() { |
839 | 0 | string2_.Clear(); |
840 | 0 | } |
841 | 2 | inline const ::std::string& TestObjectRepeatedPB::string2(int index) const { |
842 | | // @@protoc_insertion_point(field_get:yb.TestObjectRepeatedPB.string2) |
843 | 2 | return string2_.Get(index); |
844 | 2 | } |
845 | 0 | inline ::std::string* TestObjectRepeatedPB::mutable_string2(int index) { |
846 | 0 | // @@protoc_insertion_point(field_mutable:yb.TestObjectRepeatedPB.string2) |
847 | 0 | return string2_.Mutable(index); |
848 | 0 | } |
849 | 0 | inline void TestObjectRepeatedPB::set_string2(int index, const ::std::string& value) { |
850 | 0 | // @@protoc_insertion_point(field_set:yb.TestObjectRepeatedPB.string2) |
851 | 0 | string2_.Mutable(index)->assign(value); |
852 | 0 | } |
853 | | #if LANG_CXX11 |
854 | 0 | inline void TestObjectRepeatedPB::set_string2(int index, ::std::string&& value) { |
855 | 0 | // @@protoc_insertion_point(field_set:yb.TestObjectRepeatedPB.string2) |
856 | 0 | string2_.Mutable(index)->assign(std::move(value)); |
857 | 0 | } |
858 | | #endif |
859 | 0 | inline void TestObjectRepeatedPB::set_string2(int index, const char* value) { |
860 | 0 | GOOGLE_DCHECK(value != NULL); |
861 | 0 | string2_.Mutable(index)->assign(value); |
862 | 0 | // @@protoc_insertion_point(field_set_char:yb.TestObjectRepeatedPB.string2) |
863 | 0 | } |
864 | 0 | inline void TestObjectRepeatedPB::set_string2(int index, const char* value, size_t size) { |
865 | 0 | string2_.Mutable(index)->assign( |
866 | 0 | reinterpret_cast<const char*>(value), size); |
867 | 0 | // @@protoc_insertion_point(field_set_pointer:yb.TestObjectRepeatedPB.string2) |
868 | 0 | } |
869 | 1 | inline ::std::string* TestObjectRepeatedPB::add_string2() { |
870 | | // @@protoc_insertion_point(field_add_mutable:yb.TestObjectRepeatedPB.string2) |
871 | 1 | return string2_.Add(); |
872 | 1 | } |
873 | 0 | inline void TestObjectRepeatedPB::add_string2(const ::std::string& value) { |
874 | 0 | string2_.Add()->assign(value); |
875 | 0 | // @@protoc_insertion_point(field_add:yb.TestObjectRepeatedPB.string2) |
876 | 0 | } |
877 | | #if LANG_CXX11 |
878 | 0 | inline void TestObjectRepeatedPB::add_string2(::std::string&& value) { |
879 | 0 | string2_.Add(std::move(value)); |
880 | 0 | // @@protoc_insertion_point(field_add:yb.TestObjectRepeatedPB.string2) |
881 | 0 | } |
882 | | #endif |
883 | 0 | inline void TestObjectRepeatedPB::add_string2(const char* value) { |
884 | 0 | GOOGLE_DCHECK(value != NULL); |
885 | 0 | string2_.Add()->assign(value); |
886 | 0 | // @@protoc_insertion_point(field_add_char:yb.TestObjectRepeatedPB.string2) |
887 | 0 | } |
888 | 0 | inline void TestObjectRepeatedPB::add_string2(const char* value, size_t size) { |
889 | 0 | string2_.Add()->assign(reinterpret_cast<const char*>(value), size); |
890 | 0 | // @@protoc_insertion_point(field_add_pointer:yb.TestObjectRepeatedPB.string2) |
891 | 0 | } |
892 | | inline const ::google::protobuf::RepeatedPtrField< ::std::string>& |
893 | | TestObjectRepeatedPB::string2() const { |
894 | | // @@protoc_insertion_point(field_list:yb.TestObjectRepeatedPB.string2) |
895 | | return string2_; |
896 | | } |
897 | | inline ::google::protobuf::RepeatedPtrField< ::std::string>* |
898 | 0 | TestObjectRepeatedPB::mutable_string2() { |
899 | 0 | // @@protoc_insertion_point(field_mutable_list:yb.TestObjectRepeatedPB.string2) |
900 | 0 | return &string2_; |
901 | 0 | } |
902 | | |
903 | | #ifdef __GNUC__ |
904 | | #pragma GCC diagnostic pop |
905 | | #endif // __GNUC__ |
906 | | // ------------------------------------------------------------------- |
907 | | |
908 | | // ------------------------------------------------------------------- |
909 | | |
910 | | |
911 | | // @@protoc_insertion_point(namespace_scope) |
912 | | |
913 | | } // namespace yb |
914 | | |
915 | | // @@protoc_insertion_point(global_scope) |
916 | | |
917 | | #endif // PROTOBUF_yb_2futil_2fproto_5fcontainer_5ftest2_2eproto__INCLUDED |