YugabyteDB (2.13.0.0-b42, bfc6a6643e7399ac8a0e81d06a3ee6d6571b33ab)

Coverage Report

Created: 2022-03-09 17:30

/Users/deen/code/yugabyte-db/build/debugcov-clang-dynamic-arm64-ninja/src/yb/util/proto_container_test3.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_test3.proto
3
4
#ifndef PROTOBUF_yb_2futil_2fproto_5fcontainer_5ftest3_2eproto__INCLUDED
5
#define PROTOBUF_yb_2futil_2fproto_5fcontainer_5ftest3_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
#include "yb/util/proto_container_test2.pb.h"
34
// @@protoc_insertion_point(includes)
35
36
namespace protobuf_yb_2futil_2fproto_5fcontainer_5ftest3_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[1];
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
void InitDefaultsProtoContainerTest3PBImpl();
48
void InitDefaultsProtoContainerTest3PB();
49
20
inline void InitDefaults() {
50
20
  InitDefaultsProtoContainerTest3PB();
51
20
}
52
}  // namespace protobuf_yb_2futil_2fproto_5fcontainer_5ftest3_2eproto
53
namespace yb {
54
class ProtoContainerTest3PB;
55
class ProtoContainerTest3PBDefaultTypeInternal;
56
extern ProtoContainerTest3PBDefaultTypeInternal _ProtoContainerTest3PB_default_instance_;
57
}  // namespace yb
58
namespace yb {
59
60
// ===================================================================
61
62
class ProtoContainerTest3PB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.ProtoContainerTest3PB) */ {
63
 public:
64
  ProtoContainerTest3PB();
65
  virtual ~ProtoContainerTest3PB();
66
67
  ProtoContainerTest3PB(const ProtoContainerTest3PB& from);
68
69
0
  inline ProtoContainerTest3PB& operator=(const ProtoContainerTest3PB& from) {
70
0
    CopyFrom(from);
71
0
    return *this;
72
0
  }
73
  #if LANG_CXX11
74
  ProtoContainerTest3PB(ProtoContainerTest3PB&& from) noexcept
75
0
    : ProtoContainerTest3PB() {
76
0
    *this = ::std::move(from);
77
0
  }
78
79
0
  inline ProtoContainerTest3PB& operator=(ProtoContainerTest3PB&& from) noexcept {
80
0
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
81
0
      if (this != &from) InternalSwap(&from);
82
0
    } else {
83
0
      CopyFrom(from);
84
0
    }
85
0
    return *this;
86
0
  }
87
  #endif
88
0
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
89
0
    return _internal_metadata_.unknown_fields();
90
0
  }
91
0
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
92
0
    return _internal_metadata_.mutable_unknown_fields();
93
0
  }
94
95
  static const ::google::protobuf::Descriptor* descriptor();
96
  static const ProtoContainerTest3PB& default_instance();
97
98
  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
99
26
  static inline const ProtoContainerTest3PB* internal_default_instance() {
100
26
    return reinterpret_cast<const ProtoContainerTest3PB*>(
101
26
               &_ProtoContainerTest3PB_default_instance_);
102
26
  }
103
  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
104
    0;
105
106
  void Swap(ProtoContainerTest3PB* other);
107
0
  friend void swap(ProtoContainerTest3PB& a, ProtoContainerTest3PB& b) {
108
0
    a.Swap(&b);
109
0
  }
110
111
  // implements Message ----------------------------------------------
112
113
0
  inline ProtoContainerTest3PB* New() const PROTOBUF_FINAL { return New(NULL); }
114
115
  ProtoContainerTest3PB* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
116
  void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
117
  void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
118
  void CopyFrom(const ProtoContainerTest3PB& from);
119
  void MergeFrom(const ProtoContainerTest3PB& from);
120
  void Clear() PROTOBUF_FINAL;
121
  bool IsInitialized() const PROTOBUF_FINAL;
122
123
  size_t ByteSizeLong() const PROTOBUF_FINAL;
124
  bool MergePartialFromCodedStream(
125
      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
126
  void SerializeWithCachedSizes(
127
      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
128
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
129
      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
130
0
  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
131
  private:
132
  void SharedCtor();
133
  void SharedDtor();
134
  void SetCachedSize(int size) const PROTOBUF_FINAL;
135
  void InternalSwap(ProtoContainerTest3PB* other);
136
  private:
137
0
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
138
0
    return NULL;
139
0
  }
140
0
  inline void* MaybeArenaPtr() const {
141
0
    return NULL;
142
0
  }
143
  public:
144
145
  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
146
147
  // nested types ----------------------------------------------------
148
149
  // accessors -------------------------------------------------------
150
151
  // required .yb.ProtoContainerTestPB record_one = 1;
152
  bool has_record_one() const;
153
  void clear_record_one();
154
  static const int kRecordOneFieldNumber = 1;
155
  const ::yb::ProtoContainerTestPB& record_one() const;
156
  ::yb::ProtoContainerTestPB* release_record_one();
157
  ::yb::ProtoContainerTestPB* mutable_record_one();
158
  void set_allocated_record_one(::yb::ProtoContainerTestPB* record_one);
159
160
  // required .yb.ProtoContainerTest2PB record_two = 2;
161
  bool has_record_two() const;
162
  void clear_record_two();
163
  static const int kRecordTwoFieldNumber = 2;
164
  const ::yb::ProtoContainerTest2PB& record_two() const;
165
  ::yb::ProtoContainerTest2PB* release_record_two();
166
  ::yb::ProtoContainerTest2PB* mutable_record_two();
167
  void set_allocated_record_two(::yb::ProtoContainerTest2PB* record_two);
168
169
  // @@protoc_insertion_point(class_scope:yb.ProtoContainerTest3PB)
170
 private:
171
  void set_has_record_one();
172
  void clear_has_record_one();
173
  void set_has_record_two();
174
  void clear_has_record_two();
175
176
  // helper for ByteSizeLong()
177
  size_t RequiredFieldsByteSizeFallback() const;
178
179
  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
180
  ::google::protobuf::internal::HasBits<1> _has_bits_;
181
  mutable int _cached_size_;
182
  ::yb::ProtoContainerTestPB* record_one_;
183
  ::yb::ProtoContainerTest2PB* record_two_;
184
  friend struct ::protobuf_yb_2futil_2fproto_5fcontainer_5ftest3_2eproto::TableStruct;
185
  friend void ::protobuf_yb_2futil_2fproto_5fcontainer_5ftest3_2eproto::InitDefaultsProtoContainerTest3PBImpl();
186
};
187
// ===================================================================
188
189
190
// ===================================================================
191
192
#ifdef __GNUC__
193
  #pragma GCC diagnostic push
194
  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
195
#endif  // __GNUC__
196
// ProtoContainerTest3PB
197
198
// required .yb.ProtoContainerTestPB record_one = 1;
199
2
inline bool ProtoContainerTest3PB::has_record_one() const {
200
2
  return (_has_bits_[0] & 0x00000001u) != 0;
201
2
}
202
3
inline void ProtoContainerTest3PB::set_has_record_one() {
203
3
  _has_bits_[0] |= 0x00000001u;
204
3
}
205
0
inline void ProtoContainerTest3PB::clear_has_record_one() {
206
0
  _has_bits_[0] &= ~0x00000001u;
207
0
}
208
0
inline const ::yb::ProtoContainerTestPB& ProtoContainerTest3PB::record_one() const {
209
0
  const ::yb::ProtoContainerTestPB* p = record_one_;
210
0
  // @@protoc_insertion_point(field_get:yb.ProtoContainerTest3PB.record_one)
211
0
  return p != NULL ? *p : *reinterpret_cast<const ::yb::ProtoContainerTestPB*>(
212
0
      &::yb::_ProtoContainerTestPB_default_instance_);
213
0
}
214
0
inline ::yb::ProtoContainerTestPB* ProtoContainerTest3PB::release_record_one() {
215
0
  // @@protoc_insertion_point(field_release:yb.ProtoContainerTest3PB.record_one)
216
0
  clear_has_record_one();
217
0
  ::yb::ProtoContainerTestPB* temp = record_one_;
218
0
  record_one_ = NULL;
219
0
  return temp;
220
0
}
221
3
inline ::yb::ProtoContainerTestPB* ProtoContainerTest3PB::mutable_record_one() {
222
3
  set_has_record_one();
223
3
  if (record_one_ == NULL) {
224
1
    record_one_ = new ::yb::ProtoContainerTestPB;
225
1
  }
226
  // @@protoc_insertion_point(field_mutable:yb.ProtoContainerTest3PB.record_one)
227
3
  return record_one_;
228
3
}
229
0
inline void ProtoContainerTest3PB::set_allocated_record_one(::yb::ProtoContainerTestPB* record_one) {
230
0
  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
231
0
  if (message_arena == NULL) {
232
0
    delete reinterpret_cast< ::google::protobuf::MessageLite*>(record_one_);
233
0
  }
234
0
  if (record_one) {
235
0
    ::google::protobuf::Arena* submessage_arena = NULL;
236
0
    if (message_arena != submessage_arena) {
237
0
      record_one = ::google::protobuf::internal::GetOwnedMessage(
238
0
          message_arena, record_one, submessage_arena);
239
0
    }
240
0
    set_has_record_one();
241
0
  } else {
242
0
    clear_has_record_one();
243
0
  }
244
0
  record_one_ = record_one;
245
0
  // @@protoc_insertion_point(field_set_allocated:yb.ProtoContainerTest3PB.record_one)
246
0
}
247
248
// required .yb.ProtoContainerTest2PB record_two = 2;
249
2
inline bool ProtoContainerTest3PB::has_record_two() const {
250
2
  return (_has_bits_[0] & 0x00000002u) != 0;
251
2
}
252
3
inline void ProtoContainerTest3PB::set_has_record_two() {
253
3
  _has_bits_[0] |= 0x00000002u;
254
3
}
255
0
inline void ProtoContainerTest3PB::clear_has_record_two() {
256
0
  _has_bits_[0] &= ~0x00000002u;
257
0
}
258
0
inline const ::yb::ProtoContainerTest2PB& ProtoContainerTest3PB::record_two() const {
259
0
  const ::yb::ProtoContainerTest2PB* p = record_two_;
260
0
  // @@protoc_insertion_point(field_get:yb.ProtoContainerTest3PB.record_two)
261
0
  return p != NULL ? *p : *reinterpret_cast<const ::yb::ProtoContainerTest2PB*>(
262
0
      &::yb::_ProtoContainerTest2PB_default_instance_);
263
0
}
264
0
inline ::yb::ProtoContainerTest2PB* ProtoContainerTest3PB::release_record_two() {
265
0
  // @@protoc_insertion_point(field_release:yb.ProtoContainerTest3PB.record_two)
266
0
  clear_has_record_two();
267
0
  ::yb::ProtoContainerTest2PB* temp = record_two_;
268
0
  record_two_ = NULL;
269
0
  return temp;
270
0
}
271
3
inline ::yb::ProtoContainerTest2PB* ProtoContainerTest3PB::mutable_record_two() {
272
3
  set_has_record_two();
273
3
  if (record_two_ == NULL) {
274
1
    record_two_ = new ::yb::ProtoContainerTest2PB;
275
1
  }
276
  // @@protoc_insertion_point(field_mutable:yb.ProtoContainerTest3PB.record_two)
277
3
  return record_two_;
278
3
}
279
0
inline void ProtoContainerTest3PB::set_allocated_record_two(::yb::ProtoContainerTest2PB* record_two) {
280
0
  ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
281
0
  if (message_arena == NULL) {
282
0
    delete reinterpret_cast< ::google::protobuf::MessageLite*>(record_two_);
283
0
  }
284
0
  if (record_two) {
285
0
    ::google::protobuf::Arena* submessage_arena = NULL;
286
0
    if (message_arena != submessage_arena) {
287
0
      record_two = ::google::protobuf::internal::GetOwnedMessage(
288
0
          message_arena, record_two, submessage_arena);
289
0
    }
290
0
    set_has_record_two();
291
0
  } else {
292
0
    clear_has_record_two();
293
0
  }
294
0
  record_two_ = record_two;
295
0
  // @@protoc_insertion_point(field_set_allocated:yb.ProtoContainerTest3PB.record_two)
296
0
}
297
298
#ifdef __GNUC__
299
  #pragma GCC diagnostic pop
300
#endif  // __GNUC__
301
302
// @@protoc_insertion_point(namespace_scope)
303
304
}  // namespace yb
305
306
// @@protoc_insertion_point(global_scope)
307
308
#endif  // PROTOBUF_yb_2futil_2fproto_5fcontainer_5ftest3_2eproto__INCLUDED