Coverage Report

Created: 2025-06-13 06:23

/src/brpc/build/test/repeated.pb.h
Line
Count
Source (jump to first uncovered line)
1
// Generated by the protocol buffer compiler.  DO NOT EDIT!
2
// source: repeated.proto
3
4
#ifndef PROTOBUF_INCLUDED_repeated_2eproto
5
#define PROTOBUF_INCLUDED_repeated_2eproto
6
7
#include <string>
8
9
#include <google/protobuf/stubs/common.h>
10
11
#if GOOGLE_PROTOBUF_VERSION < 3006001
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 3006001 < 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/inlined_string_field.h>
28
#include <google/protobuf/metadata.h>
29
#include <google/protobuf/message.h>
30
#include <google/protobuf/repeated_field.h>  // IWYU pragma: export
31
#include <google/protobuf/extension_set.h>  // IWYU pragma: export
32
#include <google/protobuf/unknown_field_set.h>
33
// @@protoc_insertion_point(includes)
34
#define PROTOBUF_INTERNAL_EXPORT_protobuf_repeated_2eproto 
35
36
namespace protobuf_repeated_2eproto {
37
// Internal implementation detail -- do not use these members.
38
struct TableStruct {
39
  static const ::google::protobuf::internal::ParseTableField entries[];
40
  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
41
  static const ::google::protobuf::internal::ParseTable schema[2];
42
  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
43
  static const ::google::protobuf::internal::SerializationTable serialization_table[];
44
  static const ::google::protobuf::uint32 offsets[];
45
};
46
void AddDescriptors();
47
}  // namespace protobuf_repeated_2eproto
48
class Dummy;
49
class DummyDefaultTypeInternal;
50
extern DummyDefaultTypeInternal _Dummy_default_instance_;
51
class RepeatedMessage;
52
class RepeatedMessageDefaultTypeInternal;
53
extern RepeatedMessageDefaultTypeInternal _RepeatedMessage_default_instance_;
54
namespace google {
55
namespace protobuf {
56
template<> ::Dummy* Arena::CreateMaybeMessage<::Dummy>(Arena*);
57
template<> ::RepeatedMessage* Arena::CreateMaybeMessage<::RepeatedMessage>(Arena*);
58
}  // namespace protobuf
59
}  // namespace google
60
61
// ===================================================================
62
63
class Dummy : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:Dummy) */ {
64
 public:
65
  Dummy();
66
  virtual ~Dummy();
67
68
  Dummy(const Dummy& from);
69
70
0
  inline Dummy& operator=(const Dummy& from) {
71
0
    CopyFrom(from);
72
0
    return *this;
73
0
  }
74
  #if LANG_CXX11
75
  Dummy(Dummy&& from) noexcept
76
0
    : Dummy() {
77
0
    *this = ::std::move(from);
78
0
  }
79
80
0
  inline Dummy& operator=(Dummy&& from) noexcept {
81
0
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
82
0
      if (this != &from) InternalSwap(&from);
83
0
    } else {
84
0
      CopyFrom(from);
85
0
    }
86
0
    return *this;
87
0
  }
88
  #endif
89
0
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
90
0
    return _internal_metadata_.unknown_fields();
91
0
  }
92
0
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
93
0
    return _internal_metadata_.mutable_unknown_fields();
94
0
  }
95
96
  static const ::google::protobuf::Descriptor* descriptor();
97
  static const Dummy& default_instance();
98
99
  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
100
0
  static inline const Dummy* internal_default_instance() {
101
0
    return reinterpret_cast<const Dummy*>(
102
0
               &_Dummy_default_instance_);
103
0
  }
104
  static constexpr int kIndexInFileMessages =
105
    0;
106
107
  void Swap(Dummy* other);
108
0
  friend void swap(Dummy& a, Dummy& b) {
109
0
    a.Swap(&b);
110
0
  }
111
112
  // implements Message ----------------------------------------------
113
114
0
  inline Dummy* New() const final {
115
0
    return CreateMaybeMessage<Dummy>(NULL);
116
0
  }
117
118
0
  Dummy* New(::google::protobuf::Arena* arena) const final {
119
0
    return CreateMaybeMessage<Dummy>(arena);
120
0
  }
121
  void CopyFrom(const ::google::protobuf::Message& from) final;
122
  void MergeFrom(const ::google::protobuf::Message& from) final;
123
  void CopyFrom(const Dummy& from);
124
  void MergeFrom(const Dummy& from);
125
  void Clear() final;
126
  bool IsInitialized() const final;
127
128
  size_t ByteSizeLong() const final;
129
  bool MergePartialFromCodedStream(
130
      ::google::protobuf::io::CodedInputStream* input) final;
131
  void SerializeWithCachedSizes(
132
      ::google::protobuf::io::CodedOutputStream* output) const final;
133
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
134
      bool deterministic, ::google::protobuf::uint8* target) const final;
135
0
  int GetCachedSize() const final { return _cached_size_.Get(); }
136
137
  private:
138
  void SharedCtor();
139
  void SharedDtor();
140
  void SetCachedSize(int size) const final;
141
  void InternalSwap(Dummy* other);
142
  private:
143
0
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
144
0
    return NULL;
145
0
  }
146
0
  inline void* MaybeArenaPtr() const {
147
0
    return NULL;
148
0
  }
149
  public:
150
151
  ::google::protobuf::Metadata GetMetadata() const final;
152
153
  // nested types ----------------------------------------------------
154
155
  // accessors -------------------------------------------------------
156
157
  // @@protoc_insertion_point(class_scope:Dummy)
158
 private:
159
160
  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
161
  ::google::protobuf::internal::HasBits<1> _has_bits_;
162
  mutable ::google::protobuf::internal::CachedSize _cached_size_;
163
  friend struct ::protobuf_repeated_2eproto::TableStruct;
164
};
165
// -------------------------------------------------------------------
166
167
class RepeatedMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:RepeatedMessage) */ {
168
 public:
169
  RepeatedMessage();
170
  virtual ~RepeatedMessage();
171
172
  RepeatedMessage(const RepeatedMessage& from);
173
174
0
  inline RepeatedMessage& operator=(const RepeatedMessage& from) {
175
0
    CopyFrom(from);
176
0
    return *this;
177
0
  }
178
  #if LANG_CXX11
179
  RepeatedMessage(RepeatedMessage&& from) noexcept
180
0
    : RepeatedMessage() {
181
0
    *this = ::std::move(from);
182
0
  }
183
184
0
  inline RepeatedMessage& operator=(RepeatedMessage&& from) noexcept {
185
0
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
186
0
      if (this != &from) InternalSwap(&from);
187
0
    } else {
188
0
      CopyFrom(from);
189
0
    }
190
0
    return *this;
191
0
  }
192
  #endif
193
0
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
194
0
    return _internal_metadata_.unknown_fields();
195
0
  }
196
0
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
197
0
    return _internal_metadata_.mutable_unknown_fields();
198
0
  }
199
200
  static const ::google::protobuf::Descriptor* descriptor();
201
  static const RepeatedMessage& default_instance();
202
203
  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
204
0
  static inline const RepeatedMessage* internal_default_instance() {
205
0
    return reinterpret_cast<const RepeatedMessage*>(
206
0
               &_RepeatedMessage_default_instance_);
207
0
  }
208
  static constexpr int kIndexInFileMessages =
209
    1;
210
211
  void Swap(RepeatedMessage* other);
212
0
  friend void swap(RepeatedMessage& a, RepeatedMessage& b) {
213
0
    a.Swap(&b);
214
0
  }
215
216
  // implements Message ----------------------------------------------
217
218
0
  inline RepeatedMessage* New() const final {
219
0
    return CreateMaybeMessage<RepeatedMessage>(NULL);
220
0
  }
221
222
0
  RepeatedMessage* New(::google::protobuf::Arena* arena) const final {
223
0
    return CreateMaybeMessage<RepeatedMessage>(arena);
224
0
  }
225
  void CopyFrom(const ::google::protobuf::Message& from) final;
226
  void MergeFrom(const ::google::protobuf::Message& from) final;
227
  void CopyFrom(const RepeatedMessage& from);
228
  void MergeFrom(const RepeatedMessage& from);
229
  void Clear() final;
230
  bool IsInitialized() const final;
231
232
  size_t ByteSizeLong() const final;
233
  bool MergePartialFromCodedStream(
234
      ::google::protobuf::io::CodedInputStream* input) final;
235
  void SerializeWithCachedSizes(
236
      ::google::protobuf::io::CodedOutputStream* output) const final;
237
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
238
      bool deterministic, ::google::protobuf::uint8* target) const final;
239
0
  int GetCachedSize() const final { return _cached_size_.Get(); }
240
241
  private:
242
  void SharedCtor();
243
  void SharedDtor();
244
  void SetCachedSize(int size) const final;
245
  void InternalSwap(RepeatedMessage* other);
246
  private:
247
0
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
248
0
    return NULL;
249
0
  }
250
0
  inline void* MaybeArenaPtr() const {
251
0
    return NULL;
252
0
  }
253
  public:
254
255
  ::google::protobuf::Metadata GetMetadata() const final;
256
257
  // nested types ----------------------------------------------------
258
259
  // accessors -------------------------------------------------------
260
261
  // repeated int32 ints = 1;
262
  int ints_size() const;
263
  void clear_ints();
264
  static const int kIntsFieldNumber = 1;
265
  ::google::protobuf::int32 ints(int index) const;
266
  void set_ints(int index, ::google::protobuf::int32 value);
267
  void add_ints(::google::protobuf::int32 value);
268
  const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
269
      ints() const;
270
  ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
271
      mutable_ints();
272
273
  // repeated string strings = 2;
274
  int strings_size() const;
275
  void clear_strings();
276
  static const int kStringsFieldNumber = 2;
277
  const ::std::string& strings(int index) const;
278
  ::std::string* mutable_strings(int index);
279
  void set_strings(int index, const ::std::string& value);
280
  #if LANG_CXX11
281
  void set_strings(int index, ::std::string&& value);
282
  #endif
283
  void set_strings(int index, const char* value);
284
  void set_strings(int index, const char* value, size_t size);
285
  ::std::string* add_strings();
286
  void add_strings(const ::std::string& value);
287
  #if LANG_CXX11
288
  void add_strings(::std::string&& value);
289
  #endif
290
  void add_strings(const char* value);
291
  void add_strings(const char* value, size_t size);
292
  const ::google::protobuf::RepeatedPtrField< ::std::string>& strings() const;
293
  ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_strings();
294
295
  // repeated .Dummy msgs = 3;
296
  int msgs_size() const;
297
  void clear_msgs();
298
  static const int kMsgsFieldNumber = 3;
299
  ::Dummy* mutable_msgs(int index);
300
  ::google::protobuf::RepeatedPtrField< ::Dummy >*
301
      mutable_msgs();
302
  const ::Dummy& msgs(int index) const;
303
  ::Dummy* add_msgs();
304
  const ::google::protobuf::RepeatedPtrField< ::Dummy >&
305
      msgs() const;
306
307
  // @@protoc_insertion_point(class_scope:RepeatedMessage)
308
 private:
309
310
  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
311
  ::google::protobuf::internal::HasBits<1> _has_bits_;
312
  mutable ::google::protobuf::internal::CachedSize _cached_size_;
313
  ::google::protobuf::RepeatedField< ::google::protobuf::int32 > ints_;
314
  ::google::protobuf::RepeatedPtrField< ::std::string> strings_;
315
  ::google::protobuf::RepeatedPtrField< ::Dummy > msgs_;
316
  friend struct ::protobuf_repeated_2eproto::TableStruct;
317
};
318
// ===================================================================
319
320
321
// ===================================================================
322
323
#ifdef __GNUC__
324
  #pragma GCC diagnostic push
325
  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
326
#endif  // __GNUC__
327
// Dummy
328
329
// -------------------------------------------------------------------
330
331
// RepeatedMessage
332
333
// repeated int32 ints = 1;
334
0
inline int RepeatedMessage::ints_size() const {
335
0
  return ints_.size();
336
0
}
337
0
inline void RepeatedMessage::clear_ints() {
338
0
  ints_.Clear();
339
0
}
340
0
inline ::google::protobuf::int32 RepeatedMessage::ints(int index) const {
341
  // @@protoc_insertion_point(field_get:RepeatedMessage.ints)
342
0
  return ints_.Get(index);
343
0
}
344
0
inline void RepeatedMessage::set_ints(int index, ::google::protobuf::int32 value) {
345
0
  ints_.Set(index, value);
346
0
  // @@protoc_insertion_point(field_set:RepeatedMessage.ints)
347
0
}
348
0
inline void RepeatedMessage::add_ints(::google::protobuf::int32 value) {
349
0
  ints_.Add(value);
350
0
  // @@protoc_insertion_point(field_add:RepeatedMessage.ints)
351
0
}
352
inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
353
0
RepeatedMessage::ints() const {
354
0
  // @@protoc_insertion_point(field_list:RepeatedMessage.ints)
355
0
  return ints_;
356
0
}
357
inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
358
0
RepeatedMessage::mutable_ints() {
359
  // @@protoc_insertion_point(field_mutable_list:RepeatedMessage.ints)
360
0
  return &ints_;
361
0
}
362
363
// repeated string strings = 2;
364
0
inline int RepeatedMessage::strings_size() const {
365
0
  return strings_.size();
366
0
}
367
0
inline void RepeatedMessage::clear_strings() {
368
0
  strings_.Clear();
369
0
}
370
0
inline const ::std::string& RepeatedMessage::strings(int index) const {
371
  // @@protoc_insertion_point(field_get:RepeatedMessage.strings)
372
0
  return strings_.Get(index);
373
0
}
374
0
inline ::std::string* RepeatedMessage::mutable_strings(int index) {
375
0
  // @@protoc_insertion_point(field_mutable:RepeatedMessage.strings)
376
0
  return strings_.Mutable(index);
377
0
}
378
0
inline void RepeatedMessage::set_strings(int index, const ::std::string& value) {
379
0
  // @@protoc_insertion_point(field_set:RepeatedMessage.strings)
380
0
  strings_.Mutable(index)->assign(value);
381
0
}
382
#if LANG_CXX11
383
0
inline void RepeatedMessage::set_strings(int index, ::std::string&& value) {
384
0
  // @@protoc_insertion_point(field_set:RepeatedMessage.strings)
385
0
  strings_.Mutable(index)->assign(std::move(value));
386
0
}
387
#endif
388
0
inline void RepeatedMessage::set_strings(int index, const char* value) {
389
0
  GOOGLE_DCHECK(value != NULL);
390
0
  strings_.Mutable(index)->assign(value);
391
0
  // @@protoc_insertion_point(field_set_char:RepeatedMessage.strings)
392
0
}
393
0
inline void RepeatedMessage::set_strings(int index, const char* value, size_t size) {
394
0
  strings_.Mutable(index)->assign(
395
0
    reinterpret_cast<const char*>(value), size);
396
0
  // @@protoc_insertion_point(field_set_pointer:RepeatedMessage.strings)
397
0
}
398
0
inline ::std::string* RepeatedMessage::add_strings() {
399
  // @@protoc_insertion_point(field_add_mutable:RepeatedMessage.strings)
400
0
  return strings_.Add();
401
0
}
402
0
inline void RepeatedMessage::add_strings(const ::std::string& value) {
403
0
  strings_.Add()->assign(value);
404
0
  // @@protoc_insertion_point(field_add:RepeatedMessage.strings)
405
0
}
406
#if LANG_CXX11
407
0
inline void RepeatedMessage::add_strings(::std::string&& value) {
408
0
  strings_.Add(std::move(value));
409
0
  // @@protoc_insertion_point(field_add:RepeatedMessage.strings)
410
0
}
411
#endif
412
0
inline void RepeatedMessage::add_strings(const char* value) {
413
0
  GOOGLE_DCHECK(value != NULL);
414
0
  strings_.Add()->assign(value);
415
0
  // @@protoc_insertion_point(field_add_char:RepeatedMessage.strings)
416
0
}
417
0
inline void RepeatedMessage::add_strings(const char* value, size_t size) {
418
0
  strings_.Add()->assign(reinterpret_cast<const char*>(value), size);
419
0
  // @@protoc_insertion_point(field_add_pointer:RepeatedMessage.strings)
420
0
}
421
inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
422
0
RepeatedMessage::strings() const {
423
0
  // @@protoc_insertion_point(field_list:RepeatedMessage.strings)
424
0
  return strings_;
425
0
}
426
inline ::google::protobuf::RepeatedPtrField< ::std::string>*
427
0
RepeatedMessage::mutable_strings() {
428
0
  // @@protoc_insertion_point(field_mutable_list:RepeatedMessage.strings)
429
0
  return &strings_;
430
0
}
431
432
// repeated .Dummy msgs = 3;
433
0
inline int RepeatedMessage::msgs_size() const {
434
0
  return msgs_.size();
435
0
}
436
0
inline void RepeatedMessage::clear_msgs() {
437
0
  msgs_.Clear();
438
0
}
439
0
inline ::Dummy* RepeatedMessage::mutable_msgs(int index) {
440
0
  // @@protoc_insertion_point(field_mutable:RepeatedMessage.msgs)
441
0
  return msgs_.Mutable(index);
442
0
}
443
inline ::google::protobuf::RepeatedPtrField< ::Dummy >*
444
0
RepeatedMessage::mutable_msgs() {
445
0
  // @@protoc_insertion_point(field_mutable_list:RepeatedMessage.msgs)
446
0
  return &msgs_;
447
0
}
448
0
inline const ::Dummy& RepeatedMessage::msgs(int index) const {
449
  // @@protoc_insertion_point(field_get:RepeatedMessage.msgs)
450
0
  return msgs_.Get(index);
451
0
}
452
0
inline ::Dummy* RepeatedMessage::add_msgs() {
453
  // @@protoc_insertion_point(field_add:RepeatedMessage.msgs)
454
0
  return msgs_.Add();
455
0
}
456
inline const ::google::protobuf::RepeatedPtrField< ::Dummy >&
457
0
RepeatedMessage::msgs() const {
458
0
  // @@protoc_insertion_point(field_list:RepeatedMessage.msgs)
459
0
  return msgs_;
460
0
}
461
462
#ifdef __GNUC__
463
  #pragma GCC diagnostic pop
464
#endif  // __GNUC__
465
// -------------------------------------------------------------------
466
467
468
// @@protoc_insertion_point(namespace_scope)
469
470
471
// @@protoc_insertion_point(global_scope)
472
473
#endif  // PROTOBUF_INCLUDED_repeated_2eproto