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/opid.pb.h
Line
Count
Source (jump to first uncovered line)
1
// Generated by the protocol buffer compiler.  DO NOT EDIT!
2
// source: yb/util/opid.proto
3
4
#ifndef PROTOBUF_yb_2futil_2fopid_2eproto__INCLUDED
5
#define PROTOBUF_yb_2futil_2fopid_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
// @@protoc_insertion_point(includes)
33
34
namespace protobuf_yb_2futil_2fopid_2eproto {
35
// Internal implementation detail -- do not use these members.
36
struct TableStruct {
37
  static const ::google::protobuf::internal::ParseTableField entries[];
38
  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
39
  static const ::google::protobuf::internal::ParseTable schema[1];
40
  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
41
  static const ::google::protobuf::internal::SerializationTable serialization_table[];
42
  static const ::google::protobuf::uint32 offsets[];
43
};
44
void AddDescriptors();
45
void InitDefaultsOpIdPBImpl();
46
void InitDefaultsOpIdPB();
47
17.1k
inline void InitDefaults() {
48
17.1k
  InitDefaultsOpIdPB();
49
17.1k
}
50
}  // namespace protobuf_yb_2futil_2fopid_2eproto
51
namespace yb {
52
class OpIdPB;
53
class OpIdPBDefaultTypeInternal;
54
extern OpIdPBDefaultTypeInternal _OpIdPB_default_instance_;
55
}  // namespace yb
56
namespace yb {
57
58
// ===================================================================
59
60
class OpIdPB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.OpIdPB) */ {
61
 public:
62
  OpIdPB();
63
  virtual ~OpIdPB();
64
65
  OpIdPB(const OpIdPB& from);
66
67
115
  inline OpIdPB& operator=(const OpIdPB& from) {
68
115
    CopyFrom(from);
69
115
    return *this;
70
115
  }
71
  #if LANG_CXX11
72
  OpIdPB(OpIdPB&& from) noexcept
73
451
    : OpIdPB() {
74
451
    *this = ::std::move(from);
75
451
  }
Unexecuted instantiation: _ZN2yb6OpIdPBC2EOS0_
_ZN2yb6OpIdPBC1EOS0_
Line
Count
Source
73
451
    : OpIdPB() {
74
451
    *this = ::std::move(from);
75
451
  }
76
77
267k
  inline OpIdPB& operator=(OpIdPB&& from) noexcept {
78
267k
    if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
79
267k
      if (this != &from) InternalSwap(&from);
80
14
    } else {
81
14
      CopyFrom(from);
82
14
    }
83
267k
    return *this;
84
267k
  }
85
  #endif
86
0
  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
87
0
    return _internal_metadata_.unknown_fields();
88
0
  }
89
0
  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
90
0
    return _internal_metadata_.mutable_unknown_fields();
91
0
  }
92
93
  static const ::google::protobuf::Descriptor* descriptor();
94
  static const OpIdPB& default_instance();
95
96
  static void InitAsDefaultInstance();  // FOR INTERNAL USE ONLY
97
145M
  static inline const OpIdPB* internal_default_instance() {
98
145M
    return reinterpret_cast<const OpIdPB*>(
99
145M
               &_OpIdPB_default_instance_);
100
145M
  }
101
  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
102
    0;
103
104
  void Swap(OpIdPB* other);
105
0
  friend void swap(OpIdPB& a, OpIdPB& b) {
106
0
    a.Swap(&b);
107
0
  }
108
109
  // implements Message ----------------------------------------------
110
111
0
  inline OpIdPB* New() const PROTOBUF_FINAL { return New(NULL); }
112
113
  OpIdPB* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
114
  void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
115
  void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
116
  void CopyFrom(const OpIdPB& from);
117
  void MergeFrom(const OpIdPB& from);
118
  void Clear() PROTOBUF_FINAL;
119
  bool IsInitialized() const PROTOBUF_FINAL;
120
121
  size_t ByteSizeLong() const PROTOBUF_FINAL;
122
  bool MergePartialFromCodedStream(
123
      ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
124
  void SerializeWithCachedSizes(
125
      ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
126
  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
127
      bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
128
93.1M
  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
129
  private:
130
  void SharedCtor();
131
  void SharedDtor();
132
  void SetCachedSize(int size) const PROTOBUF_FINAL;
133
  void InternalSwap(OpIdPB* other);
134
  private:
135
535k
  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
136
535k
    return NULL;
137
535k
  }
138
0
  inline void* MaybeArenaPtr() const {
139
0
    return NULL;
140
0
  }
141
  public:
142
143
  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
144
145
  // nested types ----------------------------------------------------
146
147
  // accessors -------------------------------------------------------
148
149
  // required int64 term = 1;
150
  bool has_term() const;
151
  void clear_term();
152
  static const int kTermFieldNumber = 1;
153
  ::google::protobuf::int64 term() const;
154
  void set_term(::google::protobuf::int64 value);
155
156
  // required int64 index = 2;
157
  bool has_index() const;
158
  void clear_index();
159
  static const int kIndexFieldNumber = 2;
160
  ::google::protobuf::int64 index() const;
161
  void set_index(::google::protobuf::int64 value);
162
163
  // @@protoc_insertion_point(class_scope:yb.OpIdPB)
164
 private:
165
  void set_has_term();
166
  void clear_has_term();
167
  void set_has_index();
168
  void clear_has_index();
169
170
  // helper for ByteSizeLong()
171
  size_t RequiredFieldsByteSizeFallback() const;
172
173
  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
174
  ::google::protobuf::internal::HasBits<1> _has_bits_;
175
  mutable int _cached_size_;
176
  ::google::protobuf::int64 term_;
177
  ::google::protobuf::int64 index_;
178
  friend struct ::protobuf_yb_2futil_2fopid_2eproto::TableStruct;
179
  friend void ::protobuf_yb_2futil_2fopid_2eproto::InitDefaultsOpIdPBImpl();
180
};
181
// ===================================================================
182
183
184
// ===================================================================
185
186
#ifdef __GNUC__
187
  #pragma GCC diagnostic push
188
  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
189
#endif  // __GNUC__
190
// OpIdPB
191
192
// required int64 term = 1;
193
0
inline bool OpIdPB::has_term() const {
194
0
  return (_has_bits_[0] & 0x00000001u) != 0;
195
0
}
196
200M
inline void OpIdPB::set_has_term() {
197
200M
  _has_bits_[0] |= 0x00000001u;
198
200M
}
199
0
inline void OpIdPB::clear_has_term() {
200
0
  _has_bits_[0] &= ~0x00000001u;
201
0
}
202
0
inline void OpIdPB::clear_term() {
203
0
  term_ = GOOGLE_LONGLONG(0);
204
0
  clear_has_term();
205
0
}
206
545M
inline ::google::protobuf::int64 OpIdPB::term() const {
207
  // @@protoc_insertion_point(field_get:yb.OpIdPB.term)
208
545M
  return term_;
209
545M
}
210
133M
inline void OpIdPB::set_term(::google::protobuf::int64 value) {
211
133M
  set_has_term();
212
133M
  term_ = value;
213
  // @@protoc_insertion_point(field_set:yb.OpIdPB.term)
214
133M
}
215
216
// required int64 index = 2;
217
0
inline bool OpIdPB::has_index() const {
218
0
  return (_has_bits_[0] & 0x00000002u) != 0;
219
0
}
220
200M
inline void OpIdPB::set_has_index() {
221
200M
  _has_bits_[0] |= 0x00000002u;
222
200M
}
223
0
inline void OpIdPB::clear_has_index() {
224
0
  _has_bits_[0] &= ~0x00000002u;
225
0
}
226
0
inline void OpIdPB::clear_index() {
227
0
  index_ = GOOGLE_LONGLONG(0);
228
0
  clear_has_index();
229
0
}
230
714M
inline ::google::protobuf::int64 OpIdPB::index() const {
231
  // @@protoc_insertion_point(field_get:yb.OpIdPB.index)
232
714M
  return index_;
233
714M
}
234
133M
inline void OpIdPB::set_index(::google::protobuf::int64 value) {
235
133M
  set_has_index();
236
133M
  index_ = value;
237
  // @@protoc_insertion_point(field_set:yb.OpIdPB.index)
238
133M
}
239
240
#ifdef __GNUC__
241
  #pragma GCC diagnostic pop
242
#endif  // __GNUC__
243
244
// @@protoc_insertion_point(namespace_scope)
245
246
}  // namespace yb
247
248
// @@protoc_insertion_point(global_scope)
249
250
#endif  // PROTOBUF_yb_2futil_2fopid_2eproto__INCLUDED