/src/brpc/build/test/repeated.pb.h
Line | Count | Source |
1 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | | // source: repeated.proto |
3 | | |
4 | | #ifndef GOOGLE_PROTOBUF_INCLUDED_repeated_2eproto |
5 | | #define GOOGLE_PROTOBUF_INCLUDED_repeated_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_bases.h> |
27 | | #include <google/protobuf/generated_message_util.h> |
28 | | #include <google/protobuf/metadata_lite.h> |
29 | | #include <google/protobuf/generated_message_reflection.h> |
30 | | #include <google/protobuf/message.h> |
31 | | #include <google/protobuf/repeated_field.h> // IWYU pragma: export |
32 | | #include <google/protobuf/extension_set.h> // IWYU pragma: export |
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_repeated_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_repeated_2eproto { |
45 | | static const uint32_t offsets[]; |
46 | | }; |
47 | | extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_repeated_2eproto; |
48 | | class Dummy; |
49 | | struct DummyDefaultTypeInternal; |
50 | | extern DummyDefaultTypeInternal _Dummy_default_instance_; |
51 | | class RepeatedMessage; |
52 | | struct RepeatedMessageDefaultTypeInternal; |
53 | | extern RepeatedMessageDefaultTypeInternal _RepeatedMessage_default_instance_; |
54 | | PROTOBUF_NAMESPACE_OPEN |
55 | | template<> ::Dummy* Arena::CreateMaybeMessage<::Dummy>(Arena*); |
56 | | template<> ::RepeatedMessage* Arena::CreateMaybeMessage<::RepeatedMessage>(Arena*); |
57 | | PROTOBUF_NAMESPACE_CLOSE |
58 | | |
59 | | // =================================================================== |
60 | | |
61 | | class Dummy final : |
62 | | public ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase /* @@protoc_insertion_point(class_definition:Dummy) */ { |
63 | | public: |
64 | 0 | inline Dummy() : Dummy(nullptr) {} |
65 | | explicit PROTOBUF_CONSTEXPR Dummy(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
66 | | |
67 | | Dummy(const Dummy& from); |
68 | | Dummy(Dummy&& from) noexcept |
69 | 0 | : Dummy() { |
70 | 0 | *this = ::std::move(from); |
71 | 0 | } |
72 | | |
73 | 0 | inline Dummy& operator=(const Dummy& from) { |
74 | 0 | CopyFrom(from); |
75 | 0 | return *this; |
76 | 0 | } |
77 | 0 | inline Dummy& operator=(Dummy&& from) noexcept { |
78 | 0 | if (this == &from) return *this; |
79 | 0 | if (GetOwningArena() == from.GetOwningArena() |
80 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
81 | 0 | && GetOwningArena() != nullptr |
82 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
83 | 0 | ) { |
84 | 0 | InternalSwap(&from); |
85 | 0 | } else { |
86 | 0 | CopyFrom(from); |
87 | 0 | } |
88 | 0 | return *this; |
89 | 0 | } |
90 | | |
91 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
92 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
93 | 0 | } |
94 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
95 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
96 | 0 | } |
97 | | |
98 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
99 | 0 | return GetDescriptor(); |
100 | 0 | } |
101 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
102 | 0 | return default_instance().GetMetadata().descriptor; |
103 | 0 | } |
104 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
105 | 0 | return default_instance().GetMetadata().reflection; |
106 | 0 | } |
107 | 0 | static const Dummy& default_instance() { |
108 | 0 | return *internal_default_instance(); |
109 | 0 | } |
110 | 0 | static inline const Dummy* internal_default_instance() { |
111 | 0 | return reinterpret_cast<const Dummy*>( |
112 | 0 | &_Dummy_default_instance_); |
113 | 0 | } |
114 | | static constexpr int kIndexInFileMessages = |
115 | | 0; |
116 | | |
117 | 0 | friend void swap(Dummy& a, Dummy& b) { |
118 | 0 | a.Swap(&b); |
119 | 0 | } |
120 | 0 | inline void Swap(Dummy* other) { |
121 | 0 | if (other == this) return; |
122 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
123 | 0 | if (GetOwningArena() != nullptr && |
124 | 0 | GetOwningArena() == other->GetOwningArena()) { |
125 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
126 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
127 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
128 | 0 | InternalSwap(other); |
129 | 0 | } else { |
130 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
131 | 0 | } |
132 | 0 | } |
133 | 0 | void UnsafeArenaSwap(Dummy* other) { |
134 | 0 | if (other == this) return; |
135 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
136 | 0 | InternalSwap(other); |
137 | 0 | } |
138 | | |
139 | | // implements Message ---------------------------------------------- |
140 | | |
141 | 0 | Dummy* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
142 | 0 | return CreateMaybeMessage<Dummy>(arena); |
143 | 0 | } |
144 | | using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyFrom; |
145 | 0 | inline void CopyFrom(const Dummy& from) { |
146 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::CopyImpl(*this, from); |
147 | 0 | } |
148 | | using ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeFrom; |
149 | 0 | void MergeFrom(const Dummy& from) { |
150 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::ZeroFieldsBase::MergeImpl(*this, from); |
151 | 0 | } |
152 | | public: |
153 | | |
154 | | private: |
155 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
156 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
157 | 0 | return "Dummy"; |
158 | 0 | } |
159 | | protected: |
160 | | explicit Dummy(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
161 | | bool is_message_owned = false); |
162 | | public: |
163 | | |
164 | | static const ClassData _class_data_; |
165 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
166 | | |
167 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
168 | | |
169 | | // nested types ---------------------------------------------------- |
170 | | |
171 | | // accessors ------------------------------------------------------- |
172 | | |
173 | | // @@protoc_insertion_point(class_scope:Dummy) |
174 | | private: |
175 | | class _Internal; |
176 | | |
177 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
178 | | typedef void InternalArenaConstructable_; |
179 | | typedef void DestructorSkippable_; |
180 | | struct Impl_ { |
181 | | }; |
182 | | friend struct ::TableStruct_repeated_2eproto; |
183 | | }; |
184 | | // ------------------------------------------------------------------- |
185 | | |
186 | | class RepeatedMessage final : |
187 | | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:RepeatedMessage) */ { |
188 | | public: |
189 | 0 | inline RepeatedMessage() : RepeatedMessage(nullptr) {} |
190 | | ~RepeatedMessage() override; |
191 | | explicit PROTOBUF_CONSTEXPR RepeatedMessage(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized); |
192 | | |
193 | | RepeatedMessage(const RepeatedMessage& from); |
194 | | RepeatedMessage(RepeatedMessage&& from) noexcept |
195 | 0 | : RepeatedMessage() { |
196 | 0 | *this = ::std::move(from); |
197 | 0 | } |
198 | | |
199 | 0 | inline RepeatedMessage& operator=(const RepeatedMessage& from) { |
200 | 0 | CopyFrom(from); |
201 | 0 | return *this; |
202 | 0 | } |
203 | 0 | inline RepeatedMessage& operator=(RepeatedMessage&& from) noexcept { |
204 | 0 | if (this == &from) return *this; |
205 | 0 | if (GetOwningArena() == from.GetOwningArena() |
206 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_MOVE |
207 | 0 | && GetOwningArena() != nullptr |
208 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_MOVE |
209 | 0 | ) { |
210 | 0 | InternalSwap(&from); |
211 | 0 | } else { |
212 | 0 | CopyFrom(from); |
213 | 0 | } |
214 | 0 | return *this; |
215 | 0 | } |
216 | | |
217 | 0 | inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const { |
218 | 0 | return _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance); |
219 | 0 | } |
220 | 0 | inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() { |
221 | 0 | return _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(); |
222 | 0 | } |
223 | | |
224 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
225 | 0 | return GetDescriptor(); |
226 | 0 | } |
227 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
228 | 0 | return default_instance().GetMetadata().descriptor; |
229 | 0 | } |
230 | 0 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
231 | 0 | return default_instance().GetMetadata().reflection; |
232 | 0 | } |
233 | 0 | static const RepeatedMessage& default_instance() { |
234 | 0 | return *internal_default_instance(); |
235 | 0 | } |
236 | 0 | static inline const RepeatedMessage* internal_default_instance() { |
237 | 0 | return reinterpret_cast<const RepeatedMessage*>( |
238 | 0 | &_RepeatedMessage_default_instance_); |
239 | 0 | } |
240 | | static constexpr int kIndexInFileMessages = |
241 | | 1; |
242 | | |
243 | 0 | friend void swap(RepeatedMessage& a, RepeatedMessage& b) { |
244 | 0 | a.Swap(&b); |
245 | 0 | } |
246 | 0 | inline void Swap(RepeatedMessage* other) { |
247 | 0 | if (other == this) return; |
248 | 0 | #ifdef PROTOBUF_FORCE_COPY_IN_SWAP |
249 | 0 | if (GetOwningArena() != nullptr && |
250 | 0 | GetOwningArena() == other->GetOwningArena()) { |
251 | 0 | #else // PROTOBUF_FORCE_COPY_IN_SWAP |
252 | 0 | if (GetOwningArena() == other->GetOwningArena()) { |
253 | 0 | #endif // !PROTOBUF_FORCE_COPY_IN_SWAP |
254 | 0 | InternalSwap(other); |
255 | 0 | } else { |
256 | 0 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
257 | 0 | } |
258 | 0 | } |
259 | 0 | void UnsafeArenaSwap(RepeatedMessage* other) { |
260 | 0 | if (other == this) return; |
261 | 0 | GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena()); |
262 | 0 | InternalSwap(other); |
263 | 0 | } |
264 | | |
265 | | // implements Message ---------------------------------------------- |
266 | | |
267 | 0 | RepeatedMessage* New(::PROTOBUF_NAMESPACE_ID::Arena* arena = nullptr) const final { |
268 | 0 | return CreateMaybeMessage<RepeatedMessage>(arena); |
269 | 0 | } |
270 | | using ::PROTOBUF_NAMESPACE_ID::Message::CopyFrom; |
271 | | void CopyFrom(const RepeatedMessage& from); |
272 | | using ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom; |
273 | 0 | void MergeFrom( const RepeatedMessage& from) { |
274 | 0 | RepeatedMessage::MergeImpl(*this, from); |
275 | 0 | } |
276 | | private: |
277 | | static void MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg); |
278 | | public: |
279 | | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
280 | | bool IsInitialized() const final; |
281 | | |
282 | | size_t ByteSizeLong() const final; |
283 | | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
284 | | uint8_t* _InternalSerialize( |
285 | | uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final; |
286 | 0 | int GetCachedSize() const final { return _impl_._cached_size_.Get(); } |
287 | | |
288 | | private: |
289 | | void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned); |
290 | | void SharedDtor(); |
291 | | void SetCachedSize(int size) const final; |
292 | | void InternalSwap(RepeatedMessage* other); |
293 | | |
294 | | private: |
295 | | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
296 | 0 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
297 | 0 | return "RepeatedMessage"; |
298 | 0 | } |
299 | | protected: |
300 | | explicit RepeatedMessage(::PROTOBUF_NAMESPACE_ID::Arena* arena, |
301 | | bool is_message_owned = false); |
302 | | public: |
303 | | |
304 | | static const ClassData _class_data_; |
305 | | const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GetClassData() const final; |
306 | | |
307 | | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
308 | | |
309 | | // nested types ---------------------------------------------------- |
310 | | |
311 | | // accessors ------------------------------------------------------- |
312 | | |
313 | | enum : int { |
314 | | kIntsFieldNumber = 1, |
315 | | kStringsFieldNumber = 2, |
316 | | kMsgsFieldNumber = 3, |
317 | | }; |
318 | | // repeated int32 ints = 1; |
319 | | int ints_size() const; |
320 | | private: |
321 | | int _internal_ints_size() const; |
322 | | public: |
323 | | void clear_ints(); |
324 | | private: |
325 | | int32_t _internal_ints(int index) const; |
326 | | const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& |
327 | | _internal_ints() const; |
328 | | void _internal_add_ints(int32_t value); |
329 | | ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* |
330 | | _internal_mutable_ints(); |
331 | | public: |
332 | | int32_t ints(int index) const; |
333 | | void set_ints(int index, int32_t value); |
334 | | void add_ints(int32_t value); |
335 | | const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& |
336 | | ints() const; |
337 | | ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* |
338 | | mutable_ints(); |
339 | | |
340 | | // repeated string strings = 2; |
341 | | int strings_size() const; |
342 | | private: |
343 | | int _internal_strings_size() const; |
344 | | public: |
345 | | void clear_strings(); |
346 | | const std::string& strings(int index) const; |
347 | | std::string* mutable_strings(int index); |
348 | | void set_strings(int index, const std::string& value); |
349 | | void set_strings(int index, std::string&& value); |
350 | | void set_strings(int index, const char* value); |
351 | | void set_strings(int index, const char* value, size_t size); |
352 | | std::string* add_strings(); |
353 | | void add_strings(const std::string& value); |
354 | | void add_strings(std::string&& value); |
355 | | void add_strings(const char* value); |
356 | | void add_strings(const char* value, size_t size); |
357 | | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& strings() const; |
358 | | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_strings(); |
359 | | private: |
360 | | const std::string& _internal_strings(int index) const; |
361 | | std::string* _internal_add_strings(); |
362 | | public: |
363 | | |
364 | | // repeated .Dummy msgs = 3; |
365 | | int msgs_size() const; |
366 | | private: |
367 | | int _internal_msgs_size() const; |
368 | | public: |
369 | | void clear_msgs(); |
370 | | ::Dummy* mutable_msgs(int index); |
371 | | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Dummy >* |
372 | | mutable_msgs(); |
373 | | private: |
374 | | const ::Dummy& _internal_msgs(int index) const; |
375 | | ::Dummy* _internal_add_msgs(); |
376 | | public: |
377 | | const ::Dummy& msgs(int index) const; |
378 | | ::Dummy* add_msgs(); |
379 | | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Dummy >& |
380 | | msgs() const; |
381 | | |
382 | | // @@protoc_insertion_point(class_scope:RepeatedMessage) |
383 | | private: |
384 | | class _Internal; |
385 | | |
386 | | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
387 | | typedef void InternalArenaConstructable_; |
388 | | typedef void DestructorSkippable_; |
389 | | struct Impl_ { |
390 | | ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t > ints_; |
391 | | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> strings_; |
392 | | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Dummy > msgs_; |
393 | | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
394 | | }; |
395 | | union { Impl_ _impl_; }; |
396 | | friend struct ::TableStruct_repeated_2eproto; |
397 | | }; |
398 | | // =================================================================== |
399 | | |
400 | | |
401 | | // =================================================================== |
402 | | |
403 | | #ifdef __GNUC__ |
404 | | #pragma GCC diagnostic push |
405 | | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
406 | | #endif // __GNUC__ |
407 | | // Dummy |
408 | | |
409 | | // ------------------------------------------------------------------- |
410 | | |
411 | | // RepeatedMessage |
412 | | |
413 | | // repeated int32 ints = 1; |
414 | 0 | inline int RepeatedMessage::_internal_ints_size() const { |
415 | 0 | return _impl_.ints_.size(); |
416 | 0 | } |
417 | 0 | inline int RepeatedMessage::ints_size() const { |
418 | 0 | return _internal_ints_size(); |
419 | 0 | } |
420 | 0 | inline void RepeatedMessage::clear_ints() { |
421 | 0 | _impl_.ints_.Clear(); |
422 | 0 | } |
423 | 0 | inline int32_t RepeatedMessage::_internal_ints(int index) const { |
424 | 0 | return _impl_.ints_.Get(index); |
425 | 0 | } |
426 | 0 | inline int32_t RepeatedMessage::ints(int index) const { |
427 | 0 | // @@protoc_insertion_point(field_get:RepeatedMessage.ints) |
428 | 0 | return _internal_ints(index); |
429 | 0 | } |
430 | 0 | inline void RepeatedMessage::set_ints(int index, int32_t value) { |
431 | 0 | _impl_.ints_.Set(index, value); |
432 | 0 | // @@protoc_insertion_point(field_set:RepeatedMessage.ints) |
433 | 0 | } |
434 | 0 | inline void RepeatedMessage::_internal_add_ints(int32_t value) { |
435 | 0 | _impl_.ints_.Add(value); |
436 | 0 | } |
437 | 0 | inline void RepeatedMessage::add_ints(int32_t value) { |
438 | 0 | _internal_add_ints(value); |
439 | 0 | // @@protoc_insertion_point(field_add:RepeatedMessage.ints) |
440 | 0 | } |
441 | | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& |
442 | 0 | RepeatedMessage::_internal_ints() const { |
443 | 0 | return _impl_.ints_; |
444 | 0 | } |
445 | | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >& |
446 | 0 | RepeatedMessage::ints() const { |
447 | 0 | // @@protoc_insertion_point(field_list:RepeatedMessage.ints) |
448 | 0 | return _internal_ints(); |
449 | 0 | } |
450 | | inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* |
451 | 0 | RepeatedMessage::_internal_mutable_ints() { |
452 | 0 | return &_impl_.ints_; |
453 | 0 | } |
454 | | inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< int32_t >* |
455 | 0 | RepeatedMessage::mutable_ints() { |
456 | 0 | // @@protoc_insertion_point(field_mutable_list:RepeatedMessage.ints) |
457 | 0 | return _internal_mutable_ints(); |
458 | 0 | } |
459 | | |
460 | | // repeated string strings = 2; |
461 | 0 | inline int RepeatedMessage::_internal_strings_size() const { |
462 | 0 | return _impl_.strings_.size(); |
463 | 0 | } |
464 | 0 | inline int RepeatedMessage::strings_size() const { |
465 | 0 | return _internal_strings_size(); |
466 | 0 | } |
467 | 0 | inline void RepeatedMessage::clear_strings() { |
468 | 0 | _impl_.strings_.Clear(); |
469 | 0 | } |
470 | 0 | inline std::string* RepeatedMessage::add_strings() { |
471 | 0 | std::string* _s = _internal_add_strings(); |
472 | 0 | // @@protoc_insertion_point(field_add_mutable:RepeatedMessage.strings) |
473 | 0 | return _s; |
474 | 0 | } |
475 | 0 | inline const std::string& RepeatedMessage::_internal_strings(int index) const { |
476 | 0 | return _impl_.strings_.Get(index); |
477 | 0 | } |
478 | 0 | inline const std::string& RepeatedMessage::strings(int index) const { |
479 | 0 | // @@protoc_insertion_point(field_get:RepeatedMessage.strings) |
480 | 0 | return _internal_strings(index); |
481 | 0 | } |
482 | 0 | inline std::string* RepeatedMessage::mutable_strings(int index) { |
483 | 0 | // @@protoc_insertion_point(field_mutable:RepeatedMessage.strings) |
484 | 0 | return _impl_.strings_.Mutable(index); |
485 | 0 | } |
486 | 0 | inline void RepeatedMessage::set_strings(int index, const std::string& value) { |
487 | 0 | _impl_.strings_.Mutable(index)->assign(value); |
488 | 0 | // @@protoc_insertion_point(field_set:RepeatedMessage.strings) |
489 | 0 | } |
490 | 0 | inline void RepeatedMessage::set_strings(int index, std::string&& value) { |
491 | 0 | _impl_.strings_.Mutable(index)->assign(std::move(value)); |
492 | 0 | // @@protoc_insertion_point(field_set:RepeatedMessage.strings) |
493 | 0 | } |
494 | 0 | inline void RepeatedMessage::set_strings(int index, const char* value) { |
495 | 0 | GOOGLE_DCHECK(value != nullptr); |
496 | 0 | _impl_.strings_.Mutable(index)->assign(value); |
497 | 0 | // @@protoc_insertion_point(field_set_char:RepeatedMessage.strings) |
498 | 0 | } |
499 | 0 | inline void RepeatedMessage::set_strings(int index, const char* value, size_t size) { |
500 | 0 | _impl_.strings_.Mutable(index)->assign( |
501 | 0 | reinterpret_cast<const char*>(value), size); |
502 | 0 | // @@protoc_insertion_point(field_set_pointer:RepeatedMessage.strings) |
503 | 0 | } |
504 | 0 | inline std::string* RepeatedMessage::_internal_add_strings() { |
505 | 0 | return _impl_.strings_.Add(); |
506 | 0 | } |
507 | 0 | inline void RepeatedMessage::add_strings(const std::string& value) { |
508 | 0 | _impl_.strings_.Add()->assign(value); |
509 | 0 | // @@protoc_insertion_point(field_add:RepeatedMessage.strings) |
510 | 0 | } |
511 | 0 | inline void RepeatedMessage::add_strings(std::string&& value) { |
512 | 0 | _impl_.strings_.Add(std::move(value)); |
513 | 0 | // @@protoc_insertion_point(field_add:RepeatedMessage.strings) |
514 | 0 | } |
515 | 0 | inline void RepeatedMessage::add_strings(const char* value) { |
516 | 0 | GOOGLE_DCHECK(value != nullptr); |
517 | 0 | _impl_.strings_.Add()->assign(value); |
518 | 0 | // @@protoc_insertion_point(field_add_char:RepeatedMessage.strings) |
519 | 0 | } |
520 | 0 | inline void RepeatedMessage::add_strings(const char* value, size_t size) { |
521 | 0 | _impl_.strings_.Add()->assign(reinterpret_cast<const char*>(value), size); |
522 | 0 | // @@protoc_insertion_point(field_add_pointer:RepeatedMessage.strings) |
523 | 0 | } |
524 | | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& |
525 | 0 | RepeatedMessage::strings() const { |
526 | 0 | // @@protoc_insertion_point(field_list:RepeatedMessage.strings) |
527 | 0 | return _impl_.strings_; |
528 | 0 | } |
529 | | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* |
530 | 0 | RepeatedMessage::mutable_strings() { |
531 | 0 | // @@protoc_insertion_point(field_mutable_list:RepeatedMessage.strings) |
532 | 0 | return &_impl_.strings_; |
533 | 0 | } |
534 | | |
535 | | // repeated .Dummy msgs = 3; |
536 | 0 | inline int RepeatedMessage::_internal_msgs_size() const { |
537 | 0 | return _impl_.msgs_.size(); |
538 | 0 | } |
539 | 0 | inline int RepeatedMessage::msgs_size() const { |
540 | 0 | return _internal_msgs_size(); |
541 | 0 | } |
542 | 0 | inline void RepeatedMessage::clear_msgs() { |
543 | 0 | _impl_.msgs_.Clear(); |
544 | 0 | } |
545 | 0 | inline ::Dummy* RepeatedMessage::mutable_msgs(int index) { |
546 | 0 | // @@protoc_insertion_point(field_mutable:RepeatedMessage.msgs) |
547 | 0 | return _impl_.msgs_.Mutable(index); |
548 | 0 | } |
549 | | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Dummy >* |
550 | 0 | RepeatedMessage::mutable_msgs() { |
551 | 0 | // @@protoc_insertion_point(field_mutable_list:RepeatedMessage.msgs) |
552 | 0 | return &_impl_.msgs_; |
553 | 0 | } |
554 | 0 | inline const ::Dummy& RepeatedMessage::_internal_msgs(int index) const { |
555 | 0 | return _impl_.msgs_.Get(index); |
556 | 0 | } |
557 | 0 | inline const ::Dummy& RepeatedMessage::msgs(int index) const { |
558 | 0 | // @@protoc_insertion_point(field_get:RepeatedMessage.msgs) |
559 | 0 | return _internal_msgs(index); |
560 | 0 | } |
561 | 0 | inline ::Dummy* RepeatedMessage::_internal_add_msgs() { |
562 | 0 | return _impl_.msgs_.Add(); |
563 | 0 | } |
564 | 0 | inline ::Dummy* RepeatedMessage::add_msgs() { |
565 | 0 | ::Dummy* _add = _internal_add_msgs(); |
566 | 0 | // @@protoc_insertion_point(field_add:RepeatedMessage.msgs) |
567 | 0 | return _add; |
568 | 0 | } |
569 | | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::Dummy >& |
570 | 0 | RepeatedMessage::msgs() const { |
571 | 0 | // @@protoc_insertion_point(field_list:RepeatedMessage.msgs) |
572 | 0 | return _impl_.msgs_; |
573 | 0 | } |
574 | | |
575 | | #ifdef __GNUC__ |
576 | | #pragma GCC diagnostic pop |
577 | | #endif // __GNUC__ |
578 | | // ------------------------------------------------------------------- |
579 | | |
580 | | |
581 | | // @@protoc_insertion_point(namespace_scope) |
582 | | |
583 | | |
584 | | // @@protoc_insertion_point(global_scope) |
585 | | |
586 | | #include <google/protobuf/port_undef.inc> |
587 | | #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_repeated_2eproto |