/Users/deen/code/yugabyte-db/build/debugcov-clang-dynamic-arm64-ninja/src/yb/consensus/metadata.pb.h
Line | Count | Source (jump to first uncovered line) |
1 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | | // source: yb/consensus/metadata.proto |
3 | | |
4 | | #ifndef PROTOBUF_yb_2fconsensus_2fmetadata_2eproto__INCLUDED |
5 | | #define PROTOBUF_yb_2fconsensus_2fmetadata_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/generated_enum_reflection.h> |
32 | | #include <google/protobuf/unknown_field_set.h> |
33 | | #include "yb/common/common_net.pb.h" |
34 | | // @@protoc_insertion_point(includes) |
35 | | |
36 | | namespace protobuf_yb_2fconsensus_2fmetadata_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[4]; |
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 InitDefaultsRaftPeerPBImpl(); |
48 | | void InitDefaultsRaftPeerPB(); |
49 | | void InitDefaultsRaftConfigPBImpl(); |
50 | | void InitDefaultsRaftConfigPB(); |
51 | | void InitDefaultsConsensusStatePBImpl(); |
52 | | void InitDefaultsConsensusStatePB(); |
53 | | void InitDefaultsConsensusMetadataPBImpl(); |
54 | | void InitDefaultsConsensusMetadataPB(); |
55 | 17.1k | inline void InitDefaults() { |
56 | 17.1k | InitDefaultsRaftPeerPB(); |
57 | 17.1k | InitDefaultsRaftConfigPB(); |
58 | 17.1k | InitDefaultsConsensusStatePB(); |
59 | 17.1k | InitDefaultsConsensusMetadataPB(); |
60 | 17.1k | } |
61 | | } // namespace protobuf_yb_2fconsensus_2fmetadata_2eproto |
62 | | namespace yb { |
63 | | namespace consensus { |
64 | | class ConsensusMetadataPB; |
65 | | class ConsensusMetadataPBDefaultTypeInternal; |
66 | | extern ConsensusMetadataPBDefaultTypeInternal _ConsensusMetadataPB_default_instance_; |
67 | | class ConsensusStatePB; |
68 | | class ConsensusStatePBDefaultTypeInternal; |
69 | | extern ConsensusStatePBDefaultTypeInternal _ConsensusStatePB_default_instance_; |
70 | | class RaftConfigPB; |
71 | | class RaftConfigPBDefaultTypeInternal; |
72 | | extern RaftConfigPBDefaultTypeInternal _RaftConfigPB_default_instance_; |
73 | | class RaftPeerPB; |
74 | | class RaftPeerPBDefaultTypeInternal; |
75 | | extern RaftPeerPBDefaultTypeInternal _RaftPeerPB_default_instance_; |
76 | | } // namespace consensus |
77 | | } // namespace yb |
78 | | namespace yb { |
79 | | namespace consensus { |
80 | | |
81 | | enum PeerMemberType { |
82 | | UNKNOWN_MEMBER_TYPE = 999, |
83 | | PRE_VOTER = 0, |
84 | | VOTER = 1, |
85 | | PRE_OBSERVER = 2, |
86 | | OBSERVER = 3 |
87 | | }; |
88 | | bool PeerMemberType_IsValid(int value); |
89 | | const PeerMemberType PeerMemberType_MIN = PRE_VOTER; |
90 | | const PeerMemberType PeerMemberType_MAX = UNKNOWN_MEMBER_TYPE; |
91 | | const int PeerMemberType_ARRAYSIZE = PeerMemberType_MAX + 1; |
92 | | |
93 | | const ::google::protobuf::EnumDescriptor* PeerMemberType_descriptor(); |
94 | 394k | inline const ::std::string& PeerMemberType_Name(PeerMemberType value) { |
95 | 394k | return ::google::protobuf::internal::NameOfEnum( |
96 | 394k | PeerMemberType_descriptor(), value); |
97 | 394k | } |
98 | | inline bool PeerMemberType_Parse( |
99 | 0 | const ::std::string& name, PeerMemberType* value) { |
100 | 0 | return ::google::protobuf::internal::ParseNamedEnum<PeerMemberType>( |
101 | 0 | PeerMemberType_descriptor(), name, value); |
102 | 0 | } |
103 | | enum ConsensusConfigType { |
104 | | CONSENSUS_CONFIG_UNKNOWN = 999, |
105 | | CONSENSUS_CONFIG_COMMITTED = 1, |
106 | | CONSENSUS_CONFIG_ACTIVE = 2 |
107 | | }; |
108 | | bool ConsensusConfigType_IsValid(int value); |
109 | | const ConsensusConfigType ConsensusConfigType_MIN = CONSENSUS_CONFIG_COMMITTED; |
110 | | const ConsensusConfigType ConsensusConfigType_MAX = CONSENSUS_CONFIG_UNKNOWN; |
111 | | const int ConsensusConfigType_ARRAYSIZE = ConsensusConfigType_MAX + 1; |
112 | | |
113 | | const ::google::protobuf::EnumDescriptor* ConsensusConfigType_descriptor(); |
114 | 0 | inline const ::std::string& ConsensusConfigType_Name(ConsensusConfigType value) { |
115 | 0 | return ::google::protobuf::internal::NameOfEnum( |
116 | 0 | ConsensusConfigType_descriptor(), value); |
117 | 0 | } |
118 | | inline bool ConsensusConfigType_Parse( |
119 | 0 | const ::std::string& name, ConsensusConfigType* value) { |
120 | 0 | return ::google::protobuf::internal::ParseNamedEnum<ConsensusConfigType>( |
121 | 0 | ConsensusConfigType_descriptor(), name, value); |
122 | 0 | } |
123 | | // =================================================================== |
124 | | |
125 | | class RaftPeerPB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.consensus.RaftPeerPB) */ { |
126 | | public: |
127 | | RaftPeerPB(); |
128 | | virtual ~RaftPeerPB(); |
129 | | |
130 | | RaftPeerPB(const RaftPeerPB& from); |
131 | | |
132 | 15.2M | inline RaftPeerPB& operator=(const RaftPeerPB& from) { |
133 | 15.2M | CopyFrom(from); |
134 | 15.2M | return *this; |
135 | 15.2M | } |
136 | | #if LANG_CXX11 |
137 | | RaftPeerPB(RaftPeerPB&& from) noexcept |
138 | 13.7k | : RaftPeerPB() { |
139 | 13.7k | *this = ::std::move(from); |
140 | 13.7k | } Unexecuted instantiation: _ZN2yb9consensus10RaftPeerPBC2EOS1_ _ZN2yb9consensus10RaftPeerPBC1EOS1_ Line | Count | Source | 138 | 13.7k | : RaftPeerPB() { | 139 | 13.7k | *this = ::std::move(from); | 140 | 13.7k | } |
|
141 | | |
142 | 13.7k | inline RaftPeerPB& operator=(RaftPeerPB&& from) noexcept { |
143 | 13.7k | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
144 | 13.7k | if (this != &from) InternalSwap(&from); |
145 | 0 | } else { |
146 | 0 | CopyFrom(from); |
147 | 0 | } |
148 | 13.7k | return *this; |
149 | 13.7k | } |
150 | | #endif |
151 | 0 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
152 | 0 | return _internal_metadata_.unknown_fields(); |
153 | 0 | } |
154 | 0 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
155 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
156 | 0 | } |
157 | | |
158 | | static const ::google::protobuf::Descriptor* descriptor(); |
159 | | static const RaftPeerPB& default_instance(); |
160 | | |
161 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
162 | 370M | static inline const RaftPeerPB* internal_default_instance() { |
163 | 370M | return reinterpret_cast<const RaftPeerPB*>( |
164 | 370M | &_RaftPeerPB_default_instance_); |
165 | 370M | } |
166 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
167 | | 0; |
168 | | |
169 | | void Swap(RaftPeerPB* other); |
170 | 0 | friend void swap(RaftPeerPB& a, RaftPeerPB& b) { |
171 | 0 | a.Swap(&b); |
172 | 0 | } |
173 | | |
174 | | // implements Message ---------------------------------------------- |
175 | | |
176 | 0 | inline RaftPeerPB* New() const PROTOBUF_FINAL { return New(NULL); } |
177 | | |
178 | | RaftPeerPB* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; |
179 | | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
180 | | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
181 | | void CopyFrom(const RaftPeerPB& from); |
182 | | void MergeFrom(const RaftPeerPB& from); |
183 | | void Clear() PROTOBUF_FINAL; |
184 | | bool IsInitialized() const PROTOBUF_FINAL; |
185 | | |
186 | | size_t ByteSizeLong() const PROTOBUF_FINAL; |
187 | | bool MergePartialFromCodedStream( |
188 | | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
189 | | void SerializeWithCachedSizes( |
190 | | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
191 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
192 | | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
193 | 2.45M | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
194 | | private: |
195 | | void SharedCtor(); |
196 | | void SharedDtor(); |
197 | | void SetCachedSize(int size) const PROTOBUF_FINAL; |
198 | | void InternalSwap(RaftPeerPB* other); |
199 | | private: |
200 | 27.5k | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
201 | 27.5k | return NULL; |
202 | 27.5k | } |
203 | 0 | inline void* MaybeArenaPtr() const { |
204 | 0 | return NULL; |
205 | 0 | } |
206 | | public: |
207 | | |
208 | | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
209 | | |
210 | | // nested types ---------------------------------------------------- |
211 | | |
212 | | // accessors ------------------------------------------------------- |
213 | | |
214 | | // repeated .yb.HostPortPB last_known_private_addr = 3; |
215 | | int last_known_private_addr_size() const; |
216 | | void clear_last_known_private_addr(); |
217 | | static const int kLastKnownPrivateAddrFieldNumber = 3; |
218 | | const ::yb::HostPortPB& last_known_private_addr(int index) const; |
219 | | ::yb::HostPortPB* mutable_last_known_private_addr(int index); |
220 | | ::yb::HostPortPB* add_last_known_private_addr(); |
221 | | ::google::protobuf::RepeatedPtrField< ::yb::HostPortPB >* |
222 | | mutable_last_known_private_addr(); |
223 | | const ::google::protobuf::RepeatedPtrField< ::yb::HostPortPB >& |
224 | | last_known_private_addr() const; |
225 | | |
226 | | // repeated .yb.HostPortPB last_known_broadcast_addr = 4; |
227 | | int last_known_broadcast_addr_size() const; |
228 | | void clear_last_known_broadcast_addr(); |
229 | | static const int kLastKnownBroadcastAddrFieldNumber = 4; |
230 | | const ::yb::HostPortPB& last_known_broadcast_addr(int index) const; |
231 | | ::yb::HostPortPB* mutable_last_known_broadcast_addr(int index); |
232 | | ::yb::HostPortPB* add_last_known_broadcast_addr(); |
233 | | ::google::protobuf::RepeatedPtrField< ::yb::HostPortPB >* |
234 | | mutable_last_known_broadcast_addr(); |
235 | | const ::google::protobuf::RepeatedPtrField< ::yb::HostPortPB >& |
236 | | last_known_broadcast_addr() const; |
237 | | |
238 | | // optional bytes permanent_uuid = 1; |
239 | | bool has_permanent_uuid() const; |
240 | | void clear_permanent_uuid(); |
241 | | static const int kPermanentUuidFieldNumber = 1; |
242 | | const ::std::string& permanent_uuid() const; |
243 | | void set_permanent_uuid(const ::std::string& value); |
244 | | #if LANG_CXX11 |
245 | | void set_permanent_uuid(::std::string&& value); |
246 | | #endif |
247 | | void set_permanent_uuid(const char* value); |
248 | | void set_permanent_uuid(const void* value, size_t size); |
249 | | ::std::string* mutable_permanent_uuid(); |
250 | | ::std::string* release_permanent_uuid(); |
251 | | void set_allocated_permanent_uuid(::std::string* permanent_uuid); |
252 | | |
253 | | // optional .yb.CloudInfoPB cloud_info = 5; |
254 | | bool has_cloud_info() const; |
255 | | void clear_cloud_info(); |
256 | | static const int kCloudInfoFieldNumber = 5; |
257 | | const ::yb::CloudInfoPB& cloud_info() const; |
258 | | ::yb::CloudInfoPB* release_cloud_info(); |
259 | | ::yb::CloudInfoPB* mutable_cloud_info(); |
260 | | void set_allocated_cloud_info(::yb::CloudInfoPB* cloud_info); |
261 | | |
262 | | // optional .yb.consensus.PeerMemberType member_type = 2; |
263 | | bool has_member_type() const; |
264 | | void clear_member_type(); |
265 | | static const int kMemberTypeFieldNumber = 2; |
266 | | ::yb::consensus::PeerMemberType member_type() const; |
267 | | void set_member_type(::yb::consensus::PeerMemberType value); |
268 | | |
269 | | // @@protoc_insertion_point(class_scope:yb.consensus.RaftPeerPB) |
270 | | private: |
271 | | void set_has_permanent_uuid(); |
272 | | void clear_has_permanent_uuid(); |
273 | | void set_has_member_type(); |
274 | | void clear_has_member_type(); |
275 | | void set_has_cloud_info(); |
276 | | void clear_has_cloud_info(); |
277 | | |
278 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
279 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
280 | | mutable int _cached_size_; |
281 | | ::google::protobuf::RepeatedPtrField< ::yb::HostPortPB > last_known_private_addr_; |
282 | | ::google::protobuf::RepeatedPtrField< ::yb::HostPortPB > last_known_broadcast_addr_; |
283 | | ::google::protobuf::internal::ArenaStringPtr permanent_uuid_; |
284 | | ::yb::CloudInfoPB* cloud_info_; |
285 | | int member_type_; |
286 | | friend struct ::protobuf_yb_2fconsensus_2fmetadata_2eproto::TableStruct; |
287 | | friend void ::protobuf_yb_2fconsensus_2fmetadata_2eproto::InitDefaultsRaftPeerPBImpl(); |
288 | | }; |
289 | | // ------------------------------------------------------------------- |
290 | | |
291 | | class RaftConfigPB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.consensus.RaftConfigPB) */ { |
292 | | public: |
293 | | RaftConfigPB(); |
294 | | virtual ~RaftConfigPB(); |
295 | | |
296 | | RaftConfigPB(const RaftConfigPB& from); |
297 | | |
298 | 8.07M | inline RaftConfigPB& operator=(const RaftConfigPB& from) { |
299 | 8.07M | CopyFrom(from); |
300 | 8.07M | return *this; |
301 | 8.07M | } |
302 | | #if LANG_CXX11 |
303 | | RaftConfigPB(RaftConfigPB&& from) noexcept |
304 | 160 | : RaftConfigPB() { |
305 | 160 | *this = ::std::move(from); |
306 | 160 | } Unexecuted instantiation: _ZN2yb9consensus12RaftConfigPBC2EOS1_ _ZN2yb9consensus12RaftConfigPBC1EOS1_ Line | Count | Source | 304 | 160 | : RaftConfigPB() { | 305 | 160 | *this = ::std::move(from); | 306 | 160 | } |
|
307 | | |
308 | 50.5M | inline RaftConfigPB& operator=(RaftConfigPB&& from) noexcept { |
309 | 50.5M | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
310 | 50.5M | if (this != &from) InternalSwap(&from); |
311 | 10 | } else { |
312 | 10 | CopyFrom(from); |
313 | 10 | } |
314 | 50.5M | return *this; |
315 | 50.5M | } |
316 | | #endif |
317 | 0 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
318 | 0 | return _internal_metadata_.unknown_fields(); |
319 | 0 | } |
320 | 0 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
321 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
322 | 0 | } |
323 | | |
324 | | static const ::google::protobuf::Descriptor* descriptor(); |
325 | | static const RaftConfigPB& default_instance(); |
326 | | |
327 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
328 | 9.12M | static inline const RaftConfigPB* internal_default_instance() { |
329 | 9.12M | return reinterpret_cast<const RaftConfigPB*>( |
330 | 9.12M | &_RaftConfigPB_default_instance_); |
331 | 9.12M | } |
332 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
333 | | 1; |
334 | | |
335 | | void Swap(RaftConfigPB* other); |
336 | 0 | friend void swap(RaftConfigPB& a, RaftConfigPB& b) { |
337 | 0 | a.Swap(&b); |
338 | 0 | } |
339 | | |
340 | | // implements Message ---------------------------------------------- |
341 | | |
342 | 0 | inline RaftConfigPB* New() const PROTOBUF_FINAL { return New(NULL); } |
343 | | |
344 | | RaftConfigPB* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; |
345 | | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
346 | | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
347 | | void CopyFrom(const RaftConfigPB& from); |
348 | | void MergeFrom(const RaftConfigPB& from); |
349 | | void Clear() PROTOBUF_FINAL; |
350 | | bool IsInitialized() const PROTOBUF_FINAL; |
351 | | |
352 | | size_t ByteSizeLong() const PROTOBUF_FINAL; |
353 | | bool MergePartialFromCodedStream( |
354 | | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
355 | | void SerializeWithCachedSizes( |
356 | | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
357 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
358 | | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
359 | 765k | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
360 | | private: |
361 | | void SharedCtor(); |
362 | | void SharedDtor(); |
363 | | void SetCachedSize(int size) const PROTOBUF_FINAL; |
364 | | void InternalSwap(RaftConfigPB* other); |
365 | | private: |
366 | 101M | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
367 | 101M | return NULL; |
368 | 101M | } |
369 | 0 | inline void* MaybeArenaPtr() const { |
370 | 0 | return NULL; |
371 | 0 | } |
372 | | public: |
373 | | |
374 | | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
375 | | |
376 | | // nested types ---------------------------------------------------- |
377 | | |
378 | | // accessors ------------------------------------------------------- |
379 | | |
380 | | // repeated .yb.consensus.RaftPeerPB peers = 2; |
381 | | int peers_size() const; |
382 | | void clear_peers(); |
383 | | static const int kPeersFieldNumber = 2; |
384 | | const ::yb::consensus::RaftPeerPB& peers(int index) const; |
385 | | ::yb::consensus::RaftPeerPB* mutable_peers(int index); |
386 | | ::yb::consensus::RaftPeerPB* add_peers(); |
387 | | ::google::protobuf::RepeatedPtrField< ::yb::consensus::RaftPeerPB >* |
388 | | mutable_peers(); |
389 | | const ::google::protobuf::RepeatedPtrField< ::yb::consensus::RaftPeerPB >& |
390 | | peers() const; |
391 | | |
392 | | // optional int64 opid_index = 1; |
393 | | bool has_opid_index() const; |
394 | | void clear_opid_index(); |
395 | | static const int kOpidIndexFieldNumber = 1; |
396 | | ::google::protobuf::int64 opid_index() const; |
397 | | void set_opid_index(::google::protobuf::int64 value); |
398 | | |
399 | | // optional bool unsafe_config_change = 4 [default = false]; |
400 | | bool has_unsafe_config_change() const; |
401 | | void clear_unsafe_config_change(); |
402 | | static const int kUnsafeConfigChangeFieldNumber = 4; |
403 | | bool unsafe_config_change() const; |
404 | | void set_unsafe_config_change(bool value); |
405 | | |
406 | | // @@protoc_insertion_point(class_scope:yb.consensus.RaftConfigPB) |
407 | | private: |
408 | | void set_has_opid_index(); |
409 | | void clear_has_opid_index(); |
410 | | void set_has_unsafe_config_change(); |
411 | | void clear_has_unsafe_config_change(); |
412 | | |
413 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
414 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
415 | | mutable int _cached_size_; |
416 | | ::google::protobuf::RepeatedPtrField< ::yb::consensus::RaftPeerPB > peers_; |
417 | | ::google::protobuf::int64 opid_index_; |
418 | | bool unsafe_config_change_; |
419 | | friend struct ::protobuf_yb_2fconsensus_2fmetadata_2eproto::TableStruct; |
420 | | friend void ::protobuf_yb_2fconsensus_2fmetadata_2eproto::InitDefaultsRaftConfigPBImpl(); |
421 | | }; |
422 | | // ------------------------------------------------------------------- |
423 | | |
424 | | class ConsensusStatePB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.consensus.ConsensusStatePB) */ { |
425 | | public: |
426 | | ConsensusStatePB(); |
427 | | virtual ~ConsensusStatePB(); |
428 | | |
429 | | ConsensusStatePB(const ConsensusStatePB& from); |
430 | | |
431 | 39.2k | inline ConsensusStatePB& operator=(const ConsensusStatePB& from) { |
432 | 39.2k | CopyFrom(from); |
433 | 39.2k | return *this; |
434 | 39.2k | } |
435 | | #if LANG_CXX11 |
436 | | ConsensusStatePB(ConsensusStatePB&& from) noexcept |
437 | 0 | : ConsensusStatePB() { |
438 | 0 | *this = ::std::move(from); |
439 | 0 | } |
440 | | |
441 | 822k | inline ConsensusStatePB& operator=(ConsensusStatePB&& from) noexcept { |
442 | 822k | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
443 | 822k | if (this != &from) InternalSwap(&from); |
444 | 4 | } else { |
445 | 4 | CopyFrom(from); |
446 | 4 | } |
447 | 822k | return *this; |
448 | 822k | } |
449 | | #endif |
450 | 0 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
451 | 0 | return _internal_metadata_.unknown_fields(); |
452 | 0 | } |
453 | 0 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
454 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
455 | 0 | } |
456 | | |
457 | | static const ::google::protobuf::Descriptor* descriptor(); |
458 | | static const ConsensusStatePB& default_instance(); |
459 | | |
460 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
461 | 19.2M | static inline const ConsensusStatePB* internal_default_instance() { |
462 | 19.2M | return reinterpret_cast<const ConsensusStatePB*>( |
463 | 19.2M | &_ConsensusStatePB_default_instance_); |
464 | 19.2M | } |
465 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
466 | | 2; |
467 | | |
468 | | void Swap(ConsensusStatePB* other); |
469 | 0 | friend void swap(ConsensusStatePB& a, ConsensusStatePB& b) { |
470 | 0 | a.Swap(&b); |
471 | 0 | } |
472 | | |
473 | | // implements Message ---------------------------------------------- |
474 | | |
475 | 0 | inline ConsensusStatePB* New() const PROTOBUF_FINAL { return New(NULL); } |
476 | | |
477 | | ConsensusStatePB* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; |
478 | | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
479 | | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
480 | | void CopyFrom(const ConsensusStatePB& from); |
481 | | void MergeFrom(const ConsensusStatePB& from); |
482 | | void Clear() PROTOBUF_FINAL; |
483 | | bool IsInitialized() const PROTOBUF_FINAL; |
484 | | |
485 | | size_t ByteSizeLong() const PROTOBUF_FINAL; |
486 | | bool MergePartialFromCodedStream( |
487 | | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
488 | | void SerializeWithCachedSizes( |
489 | | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
490 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
491 | | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
492 | 350k | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
493 | | private: |
494 | | void SharedCtor(); |
495 | | void SharedDtor(); |
496 | | void SetCachedSize(int size) const PROTOBUF_FINAL; |
497 | | void InternalSwap(ConsensusStatePB* other); |
498 | | private: |
499 | 1.64M | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
500 | 1.64M | return NULL; |
501 | 1.64M | } |
502 | 0 | inline void* MaybeArenaPtr() const { |
503 | 0 | return NULL; |
504 | 0 | } |
505 | | public: |
506 | | |
507 | | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
508 | | |
509 | | // nested types ---------------------------------------------------- |
510 | | |
511 | | // accessors ------------------------------------------------------- |
512 | | |
513 | | // optional string leader_uuid = 2; |
514 | | bool has_leader_uuid() const; |
515 | | void clear_leader_uuid(); |
516 | | static const int kLeaderUuidFieldNumber = 2; |
517 | | const ::std::string& leader_uuid() const; |
518 | | void set_leader_uuid(const ::std::string& value); |
519 | | #if LANG_CXX11 |
520 | | void set_leader_uuid(::std::string&& value); |
521 | | #endif |
522 | | void set_leader_uuid(const char* value); |
523 | | void set_leader_uuid(const char* value, size_t size); |
524 | | ::std::string* mutable_leader_uuid(); |
525 | | ::std::string* release_leader_uuid(); |
526 | | void set_allocated_leader_uuid(::std::string* leader_uuid); |
527 | | |
528 | | // required .yb.consensus.RaftConfigPB config = 3; |
529 | | bool has_config() const; |
530 | | void clear_config(); |
531 | | static const int kConfigFieldNumber = 3; |
532 | | const ::yb::consensus::RaftConfigPB& config() const; |
533 | | ::yb::consensus::RaftConfigPB* release_config(); |
534 | | ::yb::consensus::RaftConfigPB* mutable_config(); |
535 | | void set_allocated_config(::yb::consensus::RaftConfigPB* config); |
536 | | |
537 | | // required int64 current_term = 1; |
538 | | bool has_current_term() const; |
539 | | void clear_current_term(); |
540 | | static const int kCurrentTermFieldNumber = 1; |
541 | | ::google::protobuf::int64 current_term() const; |
542 | | void set_current_term(::google::protobuf::int64 value); |
543 | | |
544 | | // @@protoc_insertion_point(class_scope:yb.consensus.ConsensusStatePB) |
545 | | private: |
546 | | void set_has_current_term(); |
547 | | void clear_has_current_term(); |
548 | | void set_has_leader_uuid(); |
549 | | void clear_has_leader_uuid(); |
550 | | void set_has_config(); |
551 | | void clear_has_config(); |
552 | | |
553 | | // helper for ByteSizeLong() |
554 | | size_t RequiredFieldsByteSizeFallback() const; |
555 | | |
556 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
557 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
558 | | mutable int _cached_size_; |
559 | | ::google::protobuf::internal::ArenaStringPtr leader_uuid_; |
560 | | ::yb::consensus::RaftConfigPB* config_; |
561 | | ::google::protobuf::int64 current_term_; |
562 | | friend struct ::protobuf_yb_2fconsensus_2fmetadata_2eproto::TableStruct; |
563 | | friend void ::protobuf_yb_2fconsensus_2fmetadata_2eproto::InitDefaultsConsensusStatePBImpl(); |
564 | | }; |
565 | | // ------------------------------------------------------------------- |
566 | | |
567 | | class ConsensusMetadataPB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.consensus.ConsensusMetadataPB) */ { |
568 | | public: |
569 | | ConsensusMetadataPB(); |
570 | | virtual ~ConsensusMetadataPB(); |
571 | | |
572 | | ConsensusMetadataPB(const ConsensusMetadataPB& from); |
573 | | |
574 | 0 | inline ConsensusMetadataPB& operator=(const ConsensusMetadataPB& from) { |
575 | 0 | CopyFrom(from); |
576 | 0 | return *this; |
577 | 0 | } |
578 | | #if LANG_CXX11 |
579 | | ConsensusMetadataPB(ConsensusMetadataPB&& from) noexcept |
580 | 0 | : ConsensusMetadataPB() { |
581 | 0 | *this = ::std::move(from); |
582 | 0 | } |
583 | | |
584 | 0 | inline ConsensusMetadataPB& operator=(ConsensusMetadataPB&& from) noexcept { |
585 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
586 | 0 | if (this != &from) InternalSwap(&from); |
587 | 0 | } else { |
588 | 0 | CopyFrom(from); |
589 | 0 | } |
590 | 0 | return *this; |
591 | 0 | } |
592 | | #endif |
593 | 0 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
594 | 0 | return _internal_metadata_.unknown_fields(); |
595 | 0 | } |
596 | 0 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
597 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
598 | 0 | } |
599 | | |
600 | | static const ::google::protobuf::Descriptor* descriptor(); |
601 | | static const ConsensusMetadataPB& default_instance(); |
602 | | |
603 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
604 | 509k | static inline const ConsensusMetadataPB* internal_default_instance() { |
605 | 509k | return reinterpret_cast<const ConsensusMetadataPB*>( |
606 | 509k | &_ConsensusMetadataPB_default_instance_); |
607 | 509k | } |
608 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
609 | | 3; |
610 | | |
611 | | void Swap(ConsensusMetadataPB* other); |
612 | 0 | friend void swap(ConsensusMetadataPB& a, ConsensusMetadataPB& b) { |
613 | 0 | a.Swap(&b); |
614 | 0 | } |
615 | | |
616 | | // implements Message ---------------------------------------------- |
617 | | |
618 | 0 | inline ConsensusMetadataPB* New() const PROTOBUF_FINAL { return New(NULL); } |
619 | | |
620 | | ConsensusMetadataPB* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; |
621 | | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
622 | | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
623 | | void CopyFrom(const ConsensusMetadataPB& from); |
624 | | void MergeFrom(const ConsensusMetadataPB& from); |
625 | | void Clear() PROTOBUF_FINAL; |
626 | | bool IsInitialized() const PROTOBUF_FINAL; |
627 | | |
628 | | size_t ByteSizeLong() const PROTOBUF_FINAL; |
629 | | bool MergePartialFromCodedStream( |
630 | | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
631 | | void SerializeWithCachedSizes( |
632 | | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
633 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
634 | | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
635 | 0 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
636 | | private: |
637 | | void SharedCtor(); |
638 | | void SharedDtor(); |
639 | | void SetCachedSize(int size) const PROTOBUF_FINAL; |
640 | | void InternalSwap(ConsensusMetadataPB* other); |
641 | | private: |
642 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
643 | 0 | return NULL; |
644 | 0 | } |
645 | 0 | inline void* MaybeArenaPtr() const { |
646 | 0 | return NULL; |
647 | 0 | } |
648 | | public: |
649 | | |
650 | | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
651 | | |
652 | | // nested types ---------------------------------------------------- |
653 | | |
654 | | // accessors ------------------------------------------------------- |
655 | | |
656 | | // optional string voted_for = 3; |
657 | | bool has_voted_for() const; |
658 | | void clear_voted_for(); |
659 | | static const int kVotedForFieldNumber = 3; |
660 | | const ::std::string& voted_for() const; |
661 | | void set_voted_for(const ::std::string& value); |
662 | | #if LANG_CXX11 |
663 | | void set_voted_for(::std::string&& value); |
664 | | #endif |
665 | | void set_voted_for(const char* value); |
666 | | void set_voted_for(const char* value, size_t size); |
667 | | ::std::string* mutable_voted_for(); |
668 | | ::std::string* release_voted_for(); |
669 | | void set_allocated_voted_for(::std::string* voted_for); |
670 | | |
671 | | // optional bytes split_parent_tablet_id = 4; |
672 | | bool has_split_parent_tablet_id() const; |
673 | | void clear_split_parent_tablet_id(); |
674 | | static const int kSplitParentTabletIdFieldNumber = 4; |
675 | | const ::std::string& split_parent_tablet_id() const; |
676 | | void set_split_parent_tablet_id(const ::std::string& value); |
677 | | #if LANG_CXX11 |
678 | | void set_split_parent_tablet_id(::std::string&& value); |
679 | | #endif |
680 | | void set_split_parent_tablet_id(const char* value); |
681 | | void set_split_parent_tablet_id(const void* value, size_t size); |
682 | | ::std::string* mutable_split_parent_tablet_id(); |
683 | | ::std::string* release_split_parent_tablet_id(); |
684 | | void set_allocated_split_parent_tablet_id(::std::string* split_parent_tablet_id); |
685 | | |
686 | | // required .yb.consensus.RaftConfigPB committed_config = 1; |
687 | | bool has_committed_config() const; |
688 | | void clear_committed_config(); |
689 | | static const int kCommittedConfigFieldNumber = 1; |
690 | | const ::yb::consensus::RaftConfigPB& committed_config() const; |
691 | | ::yb::consensus::RaftConfigPB* release_committed_config(); |
692 | | ::yb::consensus::RaftConfigPB* mutable_committed_config(); |
693 | | void set_allocated_committed_config(::yb::consensus::RaftConfigPB* committed_config); |
694 | | |
695 | | // required int64 current_term = 2; |
696 | | bool has_current_term() const; |
697 | | void clear_current_term(); |
698 | | static const int kCurrentTermFieldNumber = 2; |
699 | | ::google::protobuf::int64 current_term() const; |
700 | | void set_current_term(::google::protobuf::int64 value); |
701 | | |
702 | | // @@protoc_insertion_point(class_scope:yb.consensus.ConsensusMetadataPB) |
703 | | private: |
704 | | void set_has_committed_config(); |
705 | | void clear_has_committed_config(); |
706 | | void set_has_current_term(); |
707 | | void clear_has_current_term(); |
708 | | void set_has_voted_for(); |
709 | | void clear_has_voted_for(); |
710 | | void set_has_split_parent_tablet_id(); |
711 | | void clear_has_split_parent_tablet_id(); |
712 | | |
713 | | // helper for ByteSizeLong() |
714 | | size_t RequiredFieldsByteSizeFallback() const; |
715 | | |
716 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
717 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
718 | | mutable int _cached_size_; |
719 | | ::google::protobuf::internal::ArenaStringPtr voted_for_; |
720 | | ::google::protobuf::internal::ArenaStringPtr split_parent_tablet_id_; |
721 | | ::yb::consensus::RaftConfigPB* committed_config_; |
722 | | ::google::protobuf::int64 current_term_; |
723 | | friend struct ::protobuf_yb_2fconsensus_2fmetadata_2eproto::TableStruct; |
724 | | friend void ::protobuf_yb_2fconsensus_2fmetadata_2eproto::InitDefaultsConsensusMetadataPBImpl(); |
725 | | }; |
726 | | // =================================================================== |
727 | | |
728 | | |
729 | | // =================================================================== |
730 | | |
731 | | #ifdef __GNUC__ |
732 | | #pragma GCC diagnostic push |
733 | | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
734 | | #endif // __GNUC__ |
735 | | // RaftPeerPB |
736 | | |
737 | | // optional bytes permanent_uuid = 1; |
738 | 12.2M | inline bool RaftPeerPB::has_permanent_uuid() const { |
739 | 12.2M | return (_has_bits_[0] & 0x00000001u) != 0; |
740 | 12.2M | } |
741 | 185M | inline void RaftPeerPB::set_has_permanent_uuid() { |
742 | 185M | _has_bits_[0] |= 0x00000001u; |
743 | 185M | } |
744 | 0 | inline void RaftPeerPB::clear_has_permanent_uuid() { |
745 | 0 | _has_bits_[0] &= ~0x00000001u; |
746 | 0 | } |
747 | 0 | inline void RaftPeerPB::clear_permanent_uuid() { |
748 | 0 | permanent_uuid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
749 | 0 | clear_has_permanent_uuid(); |
750 | 0 | } |
751 | 548M | inline const ::std::string& RaftPeerPB::permanent_uuid() const { |
752 | | // @@protoc_insertion_point(field_get:yb.consensus.RaftPeerPB.permanent_uuid) |
753 | 548M | return permanent_uuid_.GetNoArena(); |
754 | 548M | } |
755 | 3.15M | inline void RaftPeerPB::set_permanent_uuid(const ::std::string& value) { |
756 | 3.15M | set_has_permanent_uuid(); |
757 | 3.15M | permanent_uuid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
758 | | // @@protoc_insertion_point(field_set:yb.consensus.RaftPeerPB.permanent_uuid) |
759 | 3.15M | } |
760 | | #if LANG_CXX11 |
761 | 73 | inline void RaftPeerPB::set_permanent_uuid(::std::string&& value) { |
762 | 73 | set_has_permanent_uuid(); |
763 | 73 | permanent_uuid_.SetNoArena( |
764 | 73 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
765 | | // @@protoc_insertion_point(field_set_rvalue:yb.consensus.RaftPeerPB.permanent_uuid) |
766 | 73 | } |
767 | | #endif |
768 | 0 | inline void RaftPeerPB::set_permanent_uuid(const char* value) { |
769 | 0 | GOOGLE_DCHECK(value != NULL); |
770 | 0 | set_has_permanent_uuid(); |
771 | 0 | permanent_uuid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
772 | 0 | // @@protoc_insertion_point(field_set_char:yb.consensus.RaftPeerPB.permanent_uuid) |
773 | 0 | } |
774 | 0 | inline void RaftPeerPB::set_permanent_uuid(const void* value, size_t size) { |
775 | 0 | set_has_permanent_uuid(); |
776 | 0 | permanent_uuid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
777 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
778 | 0 | // @@protoc_insertion_point(field_set_pointer:yb.consensus.RaftPeerPB.permanent_uuid) |
779 | 0 | } |
780 | 1.71M | inline ::std::string* RaftPeerPB::mutable_permanent_uuid() { |
781 | 1.71M | set_has_permanent_uuid(); |
782 | | // @@protoc_insertion_point(field_mutable:yb.consensus.RaftPeerPB.permanent_uuid) |
783 | 1.71M | return permanent_uuid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
784 | 1.71M | } |
785 | 0 | inline ::std::string* RaftPeerPB::release_permanent_uuid() { |
786 | 0 | // @@protoc_insertion_point(field_release:yb.consensus.RaftPeerPB.permanent_uuid) |
787 | 0 | clear_has_permanent_uuid(); |
788 | 0 | return permanent_uuid_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
789 | 0 | } |
790 | 0 | inline void RaftPeerPB::set_allocated_permanent_uuid(::std::string* permanent_uuid) { |
791 | 0 | if (permanent_uuid != NULL) { |
792 | 0 | set_has_permanent_uuid(); |
793 | 0 | } else { |
794 | 0 | clear_has_permanent_uuid(); |
795 | 0 | } |
796 | 0 | permanent_uuid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), permanent_uuid); |
797 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.consensus.RaftPeerPB.permanent_uuid) |
798 | 0 | } |
799 | | |
800 | | // optional .yb.consensus.PeerMemberType member_type = 2; |
801 | 5.39M | inline bool RaftPeerPB::has_member_type() const { |
802 | 5.39M | return (_has_bits_[0] & 0x00000004u) != 0; |
803 | 5.39M | } |
804 | 1.81M | inline void RaftPeerPB::set_has_member_type() { |
805 | 1.81M | _has_bits_[0] |= 0x00000004u; |
806 | 1.81M | } |
807 | 0 | inline void RaftPeerPB::clear_has_member_type() { |
808 | 0 | _has_bits_[0] &= ~0x00000004u; |
809 | 0 | } |
810 | 0 | inline void RaftPeerPB::clear_member_type() { |
811 | 0 | member_type_ = 999; |
812 | 0 | clear_has_member_type(); |
813 | 0 | } |
814 | 181M | inline ::yb::consensus::PeerMemberType RaftPeerPB::member_type() const { |
815 | | // @@protoc_insertion_point(field_get:yb.consensus.RaftPeerPB.member_type) |
816 | 181M | return static_cast< ::yb::consensus::PeerMemberType >(member_type_); |
817 | 181M | } |
818 | 1.81M | inline void RaftPeerPB::set_member_type(::yb::consensus::PeerMemberType value) { |
819 | 1.81M | assert(::yb::consensus::PeerMemberType_IsValid(value)); |
820 | 1.81M | set_has_member_type(); |
821 | 1.81M | member_type_ = value; |
822 | | // @@protoc_insertion_point(field_set:yb.consensus.RaftPeerPB.member_type) |
823 | 1.81M | } |
824 | | |
825 | | // repeated .yb.HostPortPB last_known_private_addr = 3; |
826 | 6.17M | inline int RaftPeerPB::last_known_private_addr_size() const { |
827 | 6.17M | return last_known_private_addr_.size(); |
828 | 6.17M | } |
829 | 6.15M | inline const ::yb::HostPortPB& RaftPeerPB::last_known_private_addr(int index) const { |
830 | | // @@protoc_insertion_point(field_get:yb.consensus.RaftPeerPB.last_known_private_addr) |
831 | 6.15M | return last_known_private_addr_.Get(index); |
832 | 6.15M | } |
833 | 0 | inline ::yb::HostPortPB* RaftPeerPB::mutable_last_known_private_addr(int index) { |
834 | 0 | // @@protoc_insertion_point(field_mutable:yb.consensus.RaftPeerPB.last_known_private_addr) |
835 | 0 | return last_known_private_addr_.Mutable(index); |
836 | 0 | } |
837 | 1.71M | inline ::yb::HostPortPB* RaftPeerPB::add_last_known_private_addr() { |
838 | | // @@protoc_insertion_point(field_add:yb.consensus.RaftPeerPB.last_known_private_addr) |
839 | 1.71M | return last_known_private_addr_.Add(); |
840 | 1.71M | } |
841 | | inline ::google::protobuf::RepeatedPtrField< ::yb::HostPortPB >* |
842 | 109k | RaftPeerPB::mutable_last_known_private_addr() { |
843 | | // @@protoc_insertion_point(field_mutable_list:yb.consensus.RaftPeerPB.last_known_private_addr) |
844 | 109k | return &last_known_private_addr_; |
845 | 109k | } |
846 | | inline const ::google::protobuf::RepeatedPtrField< ::yb::HostPortPB >& |
847 | 6.21M | RaftPeerPB::last_known_private_addr() const { |
848 | | // @@protoc_insertion_point(field_list:yb.consensus.RaftPeerPB.last_known_private_addr) |
849 | 6.21M | return last_known_private_addr_; |
850 | 6.21M | } |
851 | | |
852 | | // repeated .yb.HostPortPB last_known_broadcast_addr = 4; |
853 | 6.16M | inline int RaftPeerPB::last_known_broadcast_addr_size() const { |
854 | 6.16M | return last_known_broadcast_addr_.size(); |
855 | 6.16M | } |
856 | 1.54k | inline const ::yb::HostPortPB& RaftPeerPB::last_known_broadcast_addr(int index) const { |
857 | | // @@protoc_insertion_point(field_get:yb.consensus.RaftPeerPB.last_known_broadcast_addr) |
858 | 1.54k | return last_known_broadcast_addr_.Get(index); |
859 | 1.54k | } |
860 | 0 | inline ::yb::HostPortPB* RaftPeerPB::mutable_last_known_broadcast_addr(int index) { |
861 | 0 | // @@protoc_insertion_point(field_mutable:yb.consensus.RaftPeerPB.last_known_broadcast_addr) |
862 | 0 | return last_known_broadcast_addr_.Mutable(index); |
863 | 0 | } |
864 | 860 | inline ::yb::HostPortPB* RaftPeerPB::add_last_known_broadcast_addr() { |
865 | | // @@protoc_insertion_point(field_add:yb.consensus.RaftPeerPB.last_known_broadcast_addr) |
866 | 860 | return last_known_broadcast_addr_.Add(); |
867 | 860 | } |
868 | | inline ::google::protobuf::RepeatedPtrField< ::yb::HostPortPB >* |
869 | 109k | RaftPeerPB::mutable_last_known_broadcast_addr() { |
870 | | // @@protoc_insertion_point(field_mutable_list:yb.consensus.RaftPeerPB.last_known_broadcast_addr) |
871 | 109k | return &last_known_broadcast_addr_; |
872 | 109k | } |
873 | | inline const ::google::protobuf::RepeatedPtrField< ::yb::HostPortPB >& |
874 | 5.11M | RaftPeerPB::last_known_broadcast_addr() const { |
875 | | // @@protoc_insertion_point(field_list:yb.consensus.RaftPeerPB.last_known_broadcast_addr) |
876 | 5.11M | return last_known_broadcast_addr_; |
877 | 5.11M | } |
878 | | |
879 | | // optional .yb.CloudInfoPB cloud_info = 5; |
880 | 4.22M | inline bool RaftPeerPB::has_cloud_info() const { |
881 | 4.22M | return (_has_bits_[0] & 0x00000002u) != 0; |
882 | 4.22M | } |
883 | 182M | inline void RaftPeerPB::set_has_cloud_info() { |
884 | 182M | _has_bits_[0] |= 0x00000002u; |
885 | 182M | } |
886 | 0 | inline void RaftPeerPB::clear_has_cloud_info() { |
887 | 0 | _has_bits_[0] &= ~0x00000002u; |
888 | 0 | } |
889 | 181M | inline const ::yb::CloudInfoPB& RaftPeerPB::cloud_info() const { |
890 | 181M | const ::yb::CloudInfoPB* p = cloud_info_; |
891 | | // @@protoc_insertion_point(field_get:yb.consensus.RaftPeerPB.cloud_info) |
892 | 181M | return p != NULL ? *p : *reinterpret_cast<const ::yb::CloudInfoPB*>( |
893 | 1.64k | &::yb::_CloudInfoPB_default_instance_); |
894 | 181M | } |
895 | 0 | inline ::yb::CloudInfoPB* RaftPeerPB::release_cloud_info() { |
896 | 0 | // @@protoc_insertion_point(field_release:yb.consensus.RaftPeerPB.cloud_info) |
897 | 0 | clear_has_cloud_info(); |
898 | 0 | ::yb::CloudInfoPB* temp = cloud_info_; |
899 | 0 | cloud_info_ = NULL; |
900 | 0 | return temp; |
901 | 0 | } |
902 | 182M | inline ::yb::CloudInfoPB* RaftPeerPB::mutable_cloud_info() { |
903 | 182M | set_has_cloud_info(); |
904 | 182M | if (cloud_info_ == NULL) { |
905 | 181M | cloud_info_ = new ::yb::CloudInfoPB; |
906 | 181M | } |
907 | | // @@protoc_insertion_point(field_mutable:yb.consensus.RaftPeerPB.cloud_info) |
908 | 182M | return cloud_info_; |
909 | 182M | } |
910 | 0 | inline void RaftPeerPB::set_allocated_cloud_info(::yb::CloudInfoPB* cloud_info) { |
911 | 0 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
912 | 0 | if (message_arena == NULL) { |
913 | 0 | delete reinterpret_cast< ::google::protobuf::MessageLite*>(cloud_info_); |
914 | 0 | } |
915 | 0 | if (cloud_info) { |
916 | 0 | ::google::protobuf::Arena* submessage_arena = NULL; |
917 | 0 | if (message_arena != submessage_arena) { |
918 | 0 | cloud_info = ::google::protobuf::internal::GetOwnedMessage( |
919 | 0 | message_arena, cloud_info, submessage_arena); |
920 | 0 | } |
921 | 0 | set_has_cloud_info(); |
922 | 0 | } else { |
923 | 0 | clear_has_cloud_info(); |
924 | 0 | } |
925 | 0 | cloud_info_ = cloud_info; |
926 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.consensus.RaftPeerPB.cloud_info) |
927 | 0 | } |
928 | | |
929 | | // ------------------------------------------------------------------- |
930 | | |
931 | | // RaftConfigPB |
932 | | |
933 | | // optional int64 opid_index = 1; |
934 | 7.20M | inline bool RaftConfigPB::has_opid_index() const { |
935 | 7.20M | return (_has_bits_[0] & 0x00000001u) != 0; |
936 | 7.20M | } |
937 | 2.55M | inline void RaftConfigPB::set_has_opid_index() { |
938 | 2.55M | _has_bits_[0] |= 0x00000001u; |
939 | 2.55M | } |
940 | 13.0k | inline void RaftConfigPB::clear_has_opid_index() { |
941 | 13.0k | _has_bits_[0] &= ~0x00000001u; |
942 | 13.0k | } |
943 | 13.0k | inline void RaftConfigPB::clear_opid_index() { |
944 | 13.0k | opid_index_ = GOOGLE_LONGLONG(0); |
945 | 13.0k | clear_has_opid_index(); |
946 | 13.0k | } |
947 | 5.92M | inline ::google::protobuf::int64 RaftConfigPB::opid_index() const { |
948 | | // @@protoc_insertion_point(field_get:yb.consensus.RaftConfigPB.opid_index) |
949 | 5.92M | return opid_index_; |
950 | 5.92M | } |
951 | 2.01M | inline void RaftConfigPB::set_opid_index(::google::protobuf::int64 value) { |
952 | 2.01M | set_has_opid_index(); |
953 | 2.01M | opid_index_ = value; |
954 | | // @@protoc_insertion_point(field_set:yb.consensus.RaftConfigPB.opid_index) |
955 | 2.01M | } |
956 | | |
957 | | // optional bool unsafe_config_change = 4 [default = false]; |
958 | 1.04M | inline bool RaftConfigPB::has_unsafe_config_change() const { |
959 | 1.04M | return (_has_bits_[0] & 0x00000002u) != 0; |
960 | 1.04M | } |
961 | 0 | inline void RaftConfigPB::set_has_unsafe_config_change() { |
962 | 0 | _has_bits_[0] |= 0x00000002u; |
963 | 0 | } |
964 | 0 | inline void RaftConfigPB::clear_has_unsafe_config_change() { |
965 | 0 | _has_bits_[0] &= ~0x00000002u; |
966 | 0 | } |
967 | 0 | inline void RaftConfigPB::clear_unsafe_config_change() { |
968 | 0 | unsafe_config_change_ = false; |
969 | 0 | clear_has_unsafe_config_change(); |
970 | 0 | } |
971 | 16.8k | inline bool RaftConfigPB::unsafe_config_change() const { |
972 | | // @@protoc_insertion_point(field_get:yb.consensus.RaftConfigPB.unsafe_config_change) |
973 | 16.8k | return unsafe_config_change_; |
974 | 16.8k | } |
975 | 0 | inline void RaftConfigPB::set_unsafe_config_change(bool value) { |
976 | 0 | set_has_unsafe_config_change(); |
977 | 0 | unsafe_config_change_ = value; |
978 | 0 | // @@protoc_insertion_point(field_set:yb.consensus.RaftConfigPB.unsafe_config_change) |
979 | 0 | } |
980 | | |
981 | | // repeated .yb.consensus.RaftPeerPB peers = 2; |
982 | 43.8M | inline int RaftConfigPB::peers_size() const { |
983 | 43.8M | return peers_.size(); |
984 | 43.8M | } |
985 | 0 | inline void RaftConfigPB::clear_peers() { |
986 | 0 | peers_.Clear(); |
987 | 0 | } |
988 | 6.40M | inline const ::yb::consensus::RaftPeerPB& RaftConfigPB::peers(int index) const { |
989 | | // @@protoc_insertion_point(field_get:yb.consensus.RaftConfigPB.peers) |
990 | 6.40M | return peers_.Get(index); |
991 | 6.40M | } |
992 | 4.15k | inline ::yb::consensus::RaftPeerPB* RaftConfigPB::mutable_peers(int index) { |
993 | | // @@protoc_insertion_point(field_mutable:yb.consensus.RaftConfigPB.peers) |
994 | 4.15k | return peers_.Mutable(index); |
995 | 4.15k | } |
996 | 1.81M | inline ::yb::consensus::RaftPeerPB* RaftConfigPB::add_peers() { |
997 | | // @@protoc_insertion_point(field_add:yb.consensus.RaftConfigPB.peers) |
998 | 1.81M | return peers_.Add(); |
999 | 1.81M | } |
1000 | | inline ::google::protobuf::RepeatedPtrField< ::yb::consensus::RaftPeerPB >* |
1001 | 901 | RaftConfigPB::mutable_peers() { |
1002 | | // @@protoc_insertion_point(field_mutable_list:yb.consensus.RaftConfigPB.peers) |
1003 | 901 | return &peers_; |
1004 | 901 | } |
1005 | | inline const ::google::protobuf::RepeatedPtrField< ::yb::consensus::RaftPeerPB >& |
1006 | 230M | RaftConfigPB::peers() const { |
1007 | | // @@protoc_insertion_point(field_list:yb.consensus.RaftConfigPB.peers) |
1008 | 230M | return peers_; |
1009 | 230M | } |
1010 | | |
1011 | | // ------------------------------------------------------------------- |
1012 | | |
1013 | | // ConsensusStatePB |
1014 | | |
1015 | | // required int64 current_term = 1; |
1016 | 7 | inline bool ConsensusStatePB::has_current_term() const { |
1017 | 7 | return (_has_bits_[0] & 0x00000004u) != 0; |
1018 | 7 | } |
1019 | 8.25M | inline void ConsensusStatePB::set_has_current_term() { |
1020 | 8.25M | _has_bits_[0] |= 0x00000004u; |
1021 | 8.25M | } |
1022 | 0 | inline void ConsensusStatePB::clear_has_current_term() { |
1023 | 0 | _has_bits_[0] &= ~0x00000004u; |
1024 | 0 | } |
1025 | 0 | inline void ConsensusStatePB::clear_current_term() { |
1026 | 0 | current_term_ = GOOGLE_LONGLONG(0); |
1027 | 0 | clear_has_current_term(); |
1028 | 0 | } |
1029 | 5.29M | inline ::google::protobuf::int64 ConsensusStatePB::current_term() const { |
1030 | | // @@protoc_insertion_point(field_get:yb.consensus.ConsensusStatePB.current_term) |
1031 | 5.29M | return current_term_; |
1032 | 5.29M | } |
1033 | 7.98M | inline void ConsensusStatePB::set_current_term(::google::protobuf::int64 value) { |
1034 | 7.98M | set_has_current_term(); |
1035 | 7.98M | current_term_ = value; |
1036 | | // @@protoc_insertion_point(field_set:yb.consensus.ConsensusStatePB.current_term) |
1037 | 7.98M | } |
1038 | | |
1039 | | // optional string leader_uuid = 2; |
1040 | 8.61M | inline bool ConsensusStatePB::has_leader_uuid() const { |
1041 | 8.61M | return (_has_bits_[0] & 0x00000001u) != 0; |
1042 | 8.61M | } |
1043 | 5.99M | inline void ConsensusStatePB::set_has_leader_uuid() { |
1044 | 5.99M | _has_bits_[0] |= 0x00000001u; |
1045 | 5.99M | } |
1046 | 95.6k | inline void ConsensusStatePB::clear_has_leader_uuid() { |
1047 | 95.6k | _has_bits_[0] &= ~0x00000001u; |
1048 | 95.6k | } |
1049 | 95.6k | inline void ConsensusStatePB::clear_leader_uuid() { |
1050 | 95.6k | leader_uuid_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1051 | 95.6k | clear_has_leader_uuid(); |
1052 | 95.6k | } |
1053 | 7.64M | inline const ::std::string& ConsensusStatePB::leader_uuid() const { |
1054 | | // @@protoc_insertion_point(field_get:yb.consensus.ConsensusStatePB.leader_uuid) |
1055 | 7.64M | return leader_uuid_.GetNoArena(); |
1056 | 7.64M | } |
1057 | 5.79M | inline void ConsensusStatePB::set_leader_uuid(const ::std::string& value) { |
1058 | 5.79M | set_has_leader_uuid(); |
1059 | 5.79M | leader_uuid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
1060 | | // @@protoc_insertion_point(field_set:yb.consensus.ConsensusStatePB.leader_uuid) |
1061 | 5.79M | } |
1062 | | #if LANG_CXX11 |
1063 | 0 | inline void ConsensusStatePB::set_leader_uuid(::std::string&& value) { |
1064 | 0 | set_has_leader_uuid(); |
1065 | 0 | leader_uuid_.SetNoArena( |
1066 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
1067 | 0 | // @@protoc_insertion_point(field_set_rvalue:yb.consensus.ConsensusStatePB.leader_uuid) |
1068 | 0 | } |
1069 | | #endif |
1070 | 1 | inline void ConsensusStatePB::set_leader_uuid(const char* value) { |
1071 | 1 | GOOGLE_DCHECK(value != NULL); |
1072 | 1 | set_has_leader_uuid(); |
1073 | 1 | leader_uuid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
1074 | | // @@protoc_insertion_point(field_set_char:yb.consensus.ConsensusStatePB.leader_uuid) |
1075 | 1 | } |
1076 | 0 | inline void ConsensusStatePB::set_leader_uuid(const char* value, size_t size) { |
1077 | 0 | set_has_leader_uuid(); |
1078 | 0 | leader_uuid_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
1079 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
1080 | 0 | // @@protoc_insertion_point(field_set_pointer:yb.consensus.ConsensusStatePB.leader_uuid) |
1081 | 0 | } |
1082 | 162k | inline ::std::string* ConsensusStatePB::mutable_leader_uuid() { |
1083 | 162k | set_has_leader_uuid(); |
1084 | | // @@protoc_insertion_point(field_mutable:yb.consensus.ConsensusStatePB.leader_uuid) |
1085 | 162k | return leader_uuid_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1086 | 162k | } |
1087 | 0 | inline ::std::string* ConsensusStatePB::release_leader_uuid() { |
1088 | 0 | // @@protoc_insertion_point(field_release:yb.consensus.ConsensusStatePB.leader_uuid) |
1089 | 0 | clear_has_leader_uuid(); |
1090 | 0 | return leader_uuid_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1091 | 0 | } |
1092 | 0 | inline void ConsensusStatePB::set_allocated_leader_uuid(::std::string* leader_uuid) { |
1093 | 0 | if (leader_uuid != NULL) { |
1094 | 0 | set_has_leader_uuid(); |
1095 | 0 | } else { |
1096 | 0 | clear_has_leader_uuid(); |
1097 | 0 | } |
1098 | 0 | leader_uuid_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), leader_uuid); |
1099 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.consensus.ConsensusStatePB.leader_uuid) |
1100 | 0 | } |
1101 | | |
1102 | | // required .yb.consensus.RaftConfigPB config = 3; |
1103 | 1.58M | inline bool ConsensusStatePB::has_config() const { |
1104 | 1.58M | return (_has_bits_[0] & 0x00000002u) != 0; |
1105 | 1.58M | } |
1106 | 8.29M | inline void ConsensusStatePB::set_has_config() { |
1107 | 8.29M | _has_bits_[0] |= 0x00000002u; |
1108 | 8.29M | } |
1109 | 0 | inline void ConsensusStatePB::clear_has_config() { |
1110 | 0 | _has_bits_[0] &= ~0x00000002u; |
1111 | 0 | } |
1112 | 0 | inline void ConsensusStatePB::clear_config() { |
1113 | 0 | if (config_ != NULL) config_->Clear(); |
1114 | 0 | clear_has_config(); |
1115 | 0 | } |
1116 | 13.9M | inline const ::yb::consensus::RaftConfigPB& ConsensusStatePB::config() const { |
1117 | 13.9M | const ::yb::consensus::RaftConfigPB* p = config_; |
1118 | | // @@protoc_insertion_point(field_get:yb.consensus.ConsensusStatePB.config) |
1119 | 13.9M | return p != NULL ? *p : *reinterpret_cast<const ::yb::consensus::RaftConfigPB*>( |
1120 | 58 | &::yb::consensus::_RaftConfigPB_default_instance_); |
1121 | 13.9M | } |
1122 | 0 | inline ::yb::consensus::RaftConfigPB* ConsensusStatePB::release_config() { |
1123 | 0 | // @@protoc_insertion_point(field_release:yb.consensus.ConsensusStatePB.config) |
1124 | 0 | clear_has_config(); |
1125 | 0 | ::yb::consensus::RaftConfigPB* temp = config_; |
1126 | 0 | config_ = NULL; |
1127 | 0 | return temp; |
1128 | 0 | } |
1129 | 8.29M | inline ::yb::consensus::RaftConfigPB* ConsensusStatePB::mutable_config() { |
1130 | 8.29M | set_has_config(); |
1131 | 8.29M | if (config_ == NULL) { |
1132 | 8.25M | config_ = new ::yb::consensus::RaftConfigPB; |
1133 | 8.25M | } |
1134 | | // @@protoc_insertion_point(field_mutable:yb.consensus.ConsensusStatePB.config) |
1135 | 8.29M | return config_; |
1136 | 8.29M | } |
1137 | 0 | inline void ConsensusStatePB::set_allocated_config(::yb::consensus::RaftConfigPB* config) { |
1138 | 0 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
1139 | 0 | if (message_arena == NULL) { |
1140 | 0 | delete config_; |
1141 | 0 | } |
1142 | 0 | if (config) { |
1143 | 0 | ::google::protobuf::Arena* submessage_arena = NULL; |
1144 | 0 | if (message_arena != submessage_arena) { |
1145 | 0 | config = ::google::protobuf::internal::GetOwnedMessage( |
1146 | 0 | message_arena, config, submessage_arena); |
1147 | 0 | } |
1148 | 0 | set_has_config(); |
1149 | 0 | } else { |
1150 | 0 | clear_has_config(); |
1151 | 0 | } |
1152 | 0 | config_ = config; |
1153 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.consensus.ConsensusStatePB.config) |
1154 | 0 | } |
1155 | | |
1156 | | // ------------------------------------------------------------------- |
1157 | | |
1158 | | // ConsensusMetadataPB |
1159 | | |
1160 | | // required .yb.consensus.RaftConfigPB committed_config = 1; |
1161 | 103M | inline bool ConsensusMetadataPB::has_committed_config() const { |
1162 | 103M | return (_has_bits_[0] & 0x00000004u) != 0; |
1163 | 103M | } |
1164 | 277k | inline void ConsensusMetadataPB::set_has_committed_config() { |
1165 | 277k | _has_bits_[0] |= 0x00000004u; |
1166 | 277k | } |
1167 | 0 | inline void ConsensusMetadataPB::clear_has_committed_config() { |
1168 | 0 | _has_bits_[0] &= ~0x00000004u; |
1169 | 0 | } |
1170 | 0 | inline void ConsensusMetadataPB::clear_committed_config() { |
1171 | 0 | if (committed_config_ != NULL) committed_config_->Clear(); |
1172 | 0 | clear_has_committed_config(); |
1173 | 0 | } |
1174 | 102M | inline const ::yb::consensus::RaftConfigPB& ConsensusMetadataPB::committed_config() const { |
1175 | 102M | const ::yb::consensus::RaftConfigPB* p = committed_config_; |
1176 | | // @@protoc_insertion_point(field_get:yb.consensus.ConsensusMetadataPB.committed_config) |
1177 | 18.4E | return p != NULL ? *p : *reinterpret_cast<const ::yb::consensus::RaftConfigPB*>( |
1178 | 18.4E | &::yb::consensus::_RaftConfigPB_default_instance_); |
1179 | 102M | } |
1180 | 0 | inline ::yb::consensus::RaftConfigPB* ConsensusMetadataPB::release_committed_config() { |
1181 | 0 | // @@protoc_insertion_point(field_release:yb.consensus.ConsensusMetadataPB.committed_config) |
1182 | 0 | clear_has_committed_config(); |
1183 | 0 | ::yb::consensus::RaftConfigPB* temp = committed_config_; |
1184 | 0 | committed_config_ = NULL; |
1185 | 0 | return temp; |
1186 | 0 | } |
1187 | 277k | inline ::yb::consensus::RaftConfigPB* ConsensusMetadataPB::mutable_committed_config() { |
1188 | 277k | set_has_committed_config(); |
1189 | 277k | if (committed_config_ == NULL) { |
1190 | 266k | committed_config_ = new ::yb::consensus::RaftConfigPB; |
1191 | 266k | } |
1192 | | // @@protoc_insertion_point(field_mutable:yb.consensus.ConsensusMetadataPB.committed_config) |
1193 | 277k | return committed_config_; |
1194 | 277k | } |
1195 | 0 | inline void ConsensusMetadataPB::set_allocated_committed_config(::yb::consensus::RaftConfigPB* committed_config) { |
1196 | 0 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
1197 | 0 | if (message_arena == NULL) { |
1198 | 0 | delete committed_config_; |
1199 | 0 | } |
1200 | 0 | if (committed_config) { |
1201 | 0 | ::google::protobuf::Arena* submessage_arena = NULL; |
1202 | 0 | if (message_arena != submessage_arena) { |
1203 | 0 | committed_config = ::google::protobuf::internal::GetOwnedMessage( |
1204 | 0 | message_arena, committed_config, submessage_arena); |
1205 | 0 | } |
1206 | 0 | set_has_committed_config(); |
1207 | 0 | } else { |
1208 | 0 | clear_has_committed_config(); |
1209 | 0 | } |
1210 | 0 | committed_config_ = committed_config; |
1211 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.consensus.ConsensusMetadataPB.committed_config) |
1212 | 0 | } |
1213 | | |
1214 | | // required int64 current_term = 2; |
1215 | 108M | inline bool ConsensusMetadataPB::has_current_term() const { |
1216 | 108M | return (_has_bits_[0] & 0x00000008u) != 0; |
1217 | 108M | } |
1218 | 370k | inline void ConsensusMetadataPB::set_has_current_term() { |
1219 | 370k | _has_bits_[0] |= 0x00000008u; |
1220 | 370k | } |
1221 | 0 | inline void ConsensusMetadataPB::clear_has_current_term() { |
1222 | 0 | _has_bits_[0] &= ~0x00000008u; |
1223 | 0 | } |
1224 | 0 | inline void ConsensusMetadataPB::clear_current_term() { |
1225 | 0 | current_term_ = GOOGLE_LONGLONG(0); |
1226 | 0 | clear_has_current_term(); |
1227 | 0 | } |
1228 | 115M | inline ::google::protobuf::int64 ConsensusMetadataPB::current_term() const { |
1229 | | // @@protoc_insertion_point(field_get:yb.consensus.ConsensusMetadataPB.current_term) |
1230 | 115M | return current_term_; |
1231 | 115M | } |
1232 | 192k | inline void ConsensusMetadataPB::set_current_term(::google::protobuf::int64 value) { |
1233 | 192k | set_has_current_term(); |
1234 | 192k | current_term_ = value; |
1235 | | // @@protoc_insertion_point(field_set:yb.consensus.ConsensusMetadataPB.current_term) |
1236 | 192k | } |
1237 | | |
1238 | | // optional string voted_for = 3; |
1239 | 105k | inline bool ConsensusMetadataPB::has_voted_for() const { |
1240 | 105k | return (_has_bits_[0] & 0x00000001u) != 0; |
1241 | 105k | } |
1242 | 97.0k | inline void ConsensusMetadataPB::set_has_voted_for() { |
1243 | 97.0k | _has_bits_[0] |= 0x00000001u; |
1244 | 97.0k | } |
1245 | 103k | inline void ConsensusMetadataPB::clear_has_voted_for() { |
1246 | 103k | _has_bits_[0] &= ~0x00000001u; |
1247 | 103k | } |
1248 | 103k | inline void ConsensusMetadataPB::clear_voted_for() { |
1249 | 103k | voted_for_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1250 | 103k | clear_has_voted_for(); |
1251 | 103k | } |
1252 | 416k | inline const ::std::string& ConsensusMetadataPB::voted_for() const { |
1253 | | // @@protoc_insertion_point(field_get:yb.consensus.ConsensusMetadataPB.voted_for) |
1254 | 416k | return voted_for_.GetNoArena(); |
1255 | 416k | } |
1256 | 96.2k | inline void ConsensusMetadataPB::set_voted_for(const ::std::string& value) { |
1257 | 96.2k | set_has_voted_for(); |
1258 | 96.2k | voted_for_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
1259 | | // @@protoc_insertion_point(field_set:yb.consensus.ConsensusMetadataPB.voted_for) |
1260 | 96.2k | } |
1261 | | #if LANG_CXX11 |
1262 | 0 | inline void ConsensusMetadataPB::set_voted_for(::std::string&& value) { |
1263 | 0 | set_has_voted_for(); |
1264 | 0 | voted_for_.SetNoArena( |
1265 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
1266 | 0 | // @@protoc_insertion_point(field_set_rvalue:yb.consensus.ConsensusMetadataPB.voted_for) |
1267 | 0 | } |
1268 | | #endif |
1269 | 0 | inline void ConsensusMetadataPB::set_voted_for(const char* value) { |
1270 | 0 | GOOGLE_DCHECK(value != NULL); |
1271 | 0 | set_has_voted_for(); |
1272 | 0 | voted_for_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
1273 | 0 | // @@protoc_insertion_point(field_set_char:yb.consensus.ConsensusMetadataPB.voted_for) |
1274 | 0 | } |
1275 | 0 | inline void ConsensusMetadataPB::set_voted_for(const char* value, size_t size) { |
1276 | 0 | set_has_voted_for(); |
1277 | 0 | voted_for_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
1278 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
1279 | 0 | // @@protoc_insertion_point(field_set_pointer:yb.consensus.ConsensusMetadataPB.voted_for) |
1280 | 0 | } |
1281 | 866 | inline ::std::string* ConsensusMetadataPB::mutable_voted_for() { |
1282 | 866 | set_has_voted_for(); |
1283 | | // @@protoc_insertion_point(field_mutable:yb.consensus.ConsensusMetadataPB.voted_for) |
1284 | 866 | return voted_for_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1285 | 866 | } |
1286 | 0 | inline ::std::string* ConsensusMetadataPB::release_voted_for() { |
1287 | 0 | // @@protoc_insertion_point(field_release:yb.consensus.ConsensusMetadataPB.voted_for) |
1288 | 0 | clear_has_voted_for(); |
1289 | 0 | return voted_for_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1290 | 0 | } |
1291 | 0 | inline void ConsensusMetadataPB::set_allocated_voted_for(::std::string* voted_for) { |
1292 | 0 | if (voted_for != NULL) { |
1293 | 0 | set_has_voted_for(); |
1294 | 0 | } else { |
1295 | 0 | clear_has_voted_for(); |
1296 | 0 | } |
1297 | 0 | voted_for_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), voted_for); |
1298 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.consensus.ConsensusMetadataPB.voted_for) |
1299 | 0 | } |
1300 | | |
1301 | | // optional bytes split_parent_tablet_id = 4; |
1302 | 192k | inline bool ConsensusMetadataPB::has_split_parent_tablet_id() const { |
1303 | 192k | return (_has_bits_[0] & 0x00000002u) != 0; |
1304 | 192k | } |
1305 | 290 | inline void ConsensusMetadataPB::set_has_split_parent_tablet_id() { |
1306 | 290 | _has_bits_[0] |= 0x00000002u; |
1307 | 290 | } |
1308 | 0 | inline void ConsensusMetadataPB::clear_has_split_parent_tablet_id() { |
1309 | 0 | _has_bits_[0] &= ~0x00000002u; |
1310 | 0 | } |
1311 | 0 | inline void ConsensusMetadataPB::clear_split_parent_tablet_id() { |
1312 | 0 | split_parent_tablet_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1313 | 0 | clear_has_split_parent_tablet_id(); |
1314 | 0 | } |
1315 | 958 | inline const ::std::string& ConsensusMetadataPB::split_parent_tablet_id() const { |
1316 | | // @@protoc_insertion_point(field_get:yb.consensus.ConsensusMetadataPB.split_parent_tablet_id) |
1317 | 958 | return split_parent_tablet_id_.GetNoArena(); |
1318 | 958 | } |
1319 | 87 | inline void ConsensusMetadataPB::set_split_parent_tablet_id(const ::std::string& value) { |
1320 | 87 | set_has_split_parent_tablet_id(); |
1321 | 87 | split_parent_tablet_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
1322 | | // @@protoc_insertion_point(field_set:yb.consensus.ConsensusMetadataPB.split_parent_tablet_id) |
1323 | 87 | } |
1324 | | #if LANG_CXX11 |
1325 | 0 | inline void ConsensusMetadataPB::set_split_parent_tablet_id(::std::string&& value) { |
1326 | 0 | set_has_split_parent_tablet_id(); |
1327 | 0 | split_parent_tablet_id_.SetNoArena( |
1328 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
1329 | 0 | // @@protoc_insertion_point(field_set_rvalue:yb.consensus.ConsensusMetadataPB.split_parent_tablet_id) |
1330 | 0 | } |
1331 | | #endif |
1332 | 0 | inline void ConsensusMetadataPB::set_split_parent_tablet_id(const char* value) { |
1333 | 0 | GOOGLE_DCHECK(value != NULL); |
1334 | 0 | set_has_split_parent_tablet_id(); |
1335 | 0 | split_parent_tablet_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
1336 | 0 | // @@protoc_insertion_point(field_set_char:yb.consensus.ConsensusMetadataPB.split_parent_tablet_id) |
1337 | 0 | } |
1338 | 0 | inline void ConsensusMetadataPB::set_split_parent_tablet_id(const void* value, size_t size) { |
1339 | 0 | set_has_split_parent_tablet_id(); |
1340 | 0 | split_parent_tablet_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
1341 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
1342 | 0 | // @@protoc_insertion_point(field_set_pointer:yb.consensus.ConsensusMetadataPB.split_parent_tablet_id) |
1343 | 0 | } |
1344 | 203 | inline ::std::string* ConsensusMetadataPB::mutable_split_parent_tablet_id() { |
1345 | 203 | set_has_split_parent_tablet_id(); |
1346 | | // @@protoc_insertion_point(field_mutable:yb.consensus.ConsensusMetadataPB.split_parent_tablet_id) |
1347 | 203 | return split_parent_tablet_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1348 | 203 | } |
1349 | 0 | inline ::std::string* ConsensusMetadataPB::release_split_parent_tablet_id() { |
1350 | 0 | // @@protoc_insertion_point(field_release:yb.consensus.ConsensusMetadataPB.split_parent_tablet_id) |
1351 | 0 | clear_has_split_parent_tablet_id(); |
1352 | 0 | return split_parent_tablet_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
1353 | 0 | } |
1354 | 0 | inline void ConsensusMetadataPB::set_allocated_split_parent_tablet_id(::std::string* split_parent_tablet_id) { |
1355 | 0 | if (split_parent_tablet_id != NULL) { |
1356 | 0 | set_has_split_parent_tablet_id(); |
1357 | 0 | } else { |
1358 | 0 | clear_has_split_parent_tablet_id(); |
1359 | 0 | } |
1360 | 0 | split_parent_tablet_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), split_parent_tablet_id); |
1361 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.consensus.ConsensusMetadataPB.split_parent_tablet_id) |
1362 | 0 | } |
1363 | | |
1364 | | #ifdef __GNUC__ |
1365 | | #pragma GCC diagnostic pop |
1366 | | #endif // __GNUC__ |
1367 | | // ------------------------------------------------------------------- |
1368 | | |
1369 | | // ------------------------------------------------------------------- |
1370 | | |
1371 | | // ------------------------------------------------------------------- |
1372 | | |
1373 | | |
1374 | | // @@protoc_insertion_point(namespace_scope) |
1375 | | |
1376 | | } // namespace consensus |
1377 | | } // namespace yb |
1378 | | |
1379 | | namespace google { |
1380 | | namespace protobuf { |
1381 | | |
1382 | | template <> struct is_proto_enum< ::yb::consensus::PeerMemberType> : ::google::protobuf::internal::true_type {}; |
1383 | | template <> |
1384 | 0 | inline const EnumDescriptor* GetEnumDescriptor< ::yb::consensus::PeerMemberType>() { |
1385 | 0 | return ::yb::consensus::PeerMemberType_descriptor(); |
1386 | 0 | } |
1387 | | template <> struct is_proto_enum< ::yb::consensus::ConsensusConfigType> : ::google::protobuf::internal::true_type {}; |
1388 | | template <> |
1389 | 0 | inline const EnumDescriptor* GetEnumDescriptor< ::yb::consensus::ConsensusConfigType>() { |
1390 | 0 | return ::yb::consensus::ConsensusConfigType_descriptor(); |
1391 | 0 | } |
1392 | | |
1393 | | } // namespace protobuf |
1394 | | } // namespace google |
1395 | | |
1396 | | // @@protoc_insertion_point(global_scope) |
1397 | | |
1398 | | #endif // PROTOBUF_yb_2fconsensus_2fmetadata_2eproto__INCLUDED |