/Users/deen/code/yugabyte-db/build/debugcov-clang-dynamic-arm64-ninja/src/yb/consensus/consensus_types.pb.h
Line | Count | Source (jump to first uncovered line) |
1 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | | // source: yb/consensus/consensus_types.proto |
3 | | |
4 | | #ifndef PROTOBUF_yb_2fconsensus_2fconsensus_5ftypes_2eproto__INCLUDED |
5 | | #define PROTOBUF_yb_2fconsensus_2fconsensus_5ftypes_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/wire_protocol.pb.h" |
34 | | // @@protoc_insertion_point(includes) |
35 | | |
36 | | namespace protobuf_yb_2fconsensus_2fconsensus_5ftypes_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 InitDefaultsConsensusErrorPBImpl(); |
48 | | void InitDefaultsConsensusErrorPB(); |
49 | 26.8k | inline void InitDefaults() { |
50 | 26.8k | InitDefaultsConsensusErrorPB(); |
51 | 26.8k | } |
52 | | } // namespace protobuf_yb_2fconsensus_2fconsensus_5ftypes_2eproto |
53 | | namespace yb { |
54 | | namespace consensus { |
55 | | class ConsensusErrorPB; |
56 | | class ConsensusErrorPBDefaultTypeInternal; |
57 | | extern ConsensusErrorPBDefaultTypeInternal _ConsensusErrorPB_default_instance_; |
58 | | } // namespace consensus |
59 | | } // namespace yb |
60 | | namespace yb { |
61 | | namespace consensus { |
62 | | |
63 | | enum ConsensusErrorPB_Code { |
64 | | ConsensusErrorPB_Code_UNKNOWN = 0, |
65 | | ConsensusErrorPB_Code_INVALID_TERM = 2, |
66 | | ConsensusErrorPB_Code_LAST_OPID_TOO_OLD = 3, |
67 | | ConsensusErrorPB_Code_ALREADY_VOTED = 4, |
68 | | ConsensusErrorPB_Code_NOT_IN_QUORUM = 5, |
69 | | ConsensusErrorPB_Code_PRECEDING_ENTRY_DIDNT_MATCH = 6, |
70 | | ConsensusErrorPB_Code_LEADER_IS_ALIVE = 7, |
71 | | ConsensusErrorPB_Code_CONSENSUS_BUSY = 8, |
72 | | ConsensusErrorPB_Code_CANNOT_PREPARE = 9, |
73 | | ConsensusErrorPB_Code_TABLET_SPLIT = 10 |
74 | | }; |
75 | | bool ConsensusErrorPB_Code_IsValid(int value); |
76 | | const ConsensusErrorPB_Code ConsensusErrorPB_Code_Code_MIN = ConsensusErrorPB_Code_UNKNOWN; |
77 | | const ConsensusErrorPB_Code ConsensusErrorPB_Code_Code_MAX = ConsensusErrorPB_Code_TABLET_SPLIT; |
78 | | const int ConsensusErrorPB_Code_Code_ARRAYSIZE = ConsensusErrorPB_Code_Code_MAX + 1; |
79 | | |
80 | | const ::google::protobuf::EnumDescriptor* ConsensusErrorPB_Code_descriptor(); |
81 | 23 | inline const ::std::string& ConsensusErrorPB_Code_Name(ConsensusErrorPB_Code value) { |
82 | 23 | return ::google::protobuf::internal::NameOfEnum( |
83 | 23 | ConsensusErrorPB_Code_descriptor(), value); |
84 | 23 | } |
85 | | inline bool ConsensusErrorPB_Code_Parse( |
86 | 0 | const ::std::string& name, ConsensusErrorPB_Code* value) { |
87 | 0 | return ::google::protobuf::internal::ParseNamedEnum<ConsensusErrorPB_Code>( |
88 | 0 | ConsensusErrorPB_Code_descriptor(), name, value); |
89 | 0 | } |
90 | | enum ChangeConfigType { |
91 | | UNKNOWN_CHANGE = 0, |
92 | | ADD_SERVER = 1, |
93 | | REMOVE_SERVER = 2, |
94 | | CHANGE_ROLE = 3 |
95 | | }; |
96 | | bool ChangeConfigType_IsValid(int value); |
97 | | const ChangeConfigType ChangeConfigType_MIN = UNKNOWN_CHANGE; |
98 | | const ChangeConfigType ChangeConfigType_MAX = CHANGE_ROLE; |
99 | | const int ChangeConfigType_ARRAYSIZE = ChangeConfigType_MAX + 1; |
100 | | |
101 | | const ::google::protobuf::EnumDescriptor* ChangeConfigType_descriptor(); |
102 | 2.91M | inline const ::std::string& ChangeConfigType_Name(ChangeConfigType value) { |
103 | 2.91M | return ::google::protobuf::internal::NameOfEnum( |
104 | 2.91M | ChangeConfigType_descriptor(), value); |
105 | 2.91M | } |
106 | | inline bool ChangeConfigType_Parse( |
107 | 3 | const ::std::string& name, ChangeConfigType* value) { |
108 | 3 | return ::google::protobuf::internal::ParseNamedEnum<ChangeConfigType>( |
109 | 3 | ChangeConfigType_descriptor(), name, value); |
110 | 3 | } |
111 | | enum OpIdType { |
112 | | UNKNOWN_OPID_TYPE = 0, |
113 | | RECEIVED_OPID = 1, |
114 | | COMMITTED_OPID = 2 |
115 | | }; |
116 | | bool OpIdType_IsValid(int value); |
117 | | const OpIdType OpIdType_MIN = UNKNOWN_OPID_TYPE; |
118 | | const OpIdType OpIdType_MAX = COMMITTED_OPID; |
119 | | const int OpIdType_ARRAYSIZE = OpIdType_MAX + 1; |
120 | | |
121 | | const ::google::protobuf::EnumDescriptor* OpIdType_descriptor(); |
122 | 0 | inline const ::std::string& OpIdType_Name(OpIdType value) { |
123 | 0 | return ::google::protobuf::internal::NameOfEnum( |
124 | 0 | OpIdType_descriptor(), value); |
125 | 0 | } |
126 | | inline bool OpIdType_Parse( |
127 | 0 | const ::std::string& name, OpIdType* value) { |
128 | 0 | return ::google::protobuf::internal::ParseNamedEnum<OpIdType>( |
129 | 0 | OpIdType_descriptor(), name, value); |
130 | 0 | } |
131 | | enum LeaderLeaseStatus { |
132 | | HAS_LEASE = 0, |
133 | | OLD_LEADER_MAY_HAVE_LEASE = 1, |
134 | | NO_MAJORITY_REPLICATED_LEASE = 2 |
135 | | }; |
136 | | bool LeaderLeaseStatus_IsValid(int value); |
137 | | const LeaderLeaseStatus LeaderLeaseStatus_MIN = HAS_LEASE; |
138 | | const LeaderLeaseStatus LeaderLeaseStatus_MAX = NO_MAJORITY_REPLICATED_LEASE; |
139 | | const int LeaderLeaseStatus_ARRAYSIZE = LeaderLeaseStatus_MAX + 1; |
140 | | |
141 | | const ::google::protobuf::EnumDescriptor* LeaderLeaseStatus_descriptor(); |
142 | 0 | inline const ::std::string& LeaderLeaseStatus_Name(LeaderLeaseStatus value) { |
143 | 0 | return ::google::protobuf::internal::NameOfEnum( |
144 | 0 | LeaderLeaseStatus_descriptor(), value); |
145 | 0 | } |
146 | | inline bool LeaderLeaseStatus_Parse( |
147 | 0 | const ::std::string& name, LeaderLeaseStatus* value) { |
148 | 0 | return ::google::protobuf::internal::ParseNamedEnum<LeaderLeaseStatus>( |
149 | 0 | LeaderLeaseStatus_descriptor(), name, value); |
150 | 0 | } |
151 | | enum OperationType { |
152 | | UNKNOWN_OP = 0, |
153 | | NO_OP = 1, |
154 | | WRITE_OP = 3, |
155 | | CHANGE_METADATA_OP = 4, |
156 | | CHANGE_CONFIG_OP = 5, |
157 | | UPDATE_TRANSACTION_OP = 6, |
158 | | SNAPSHOT_OP = 7, |
159 | | TRUNCATE_OP = 8, |
160 | | HISTORY_CUTOFF_OP = 9, |
161 | | SPLIT_OP = 10 |
162 | | }; |
163 | | bool OperationType_IsValid(int value); |
164 | | const OperationType OperationType_MIN = UNKNOWN_OP; |
165 | | const OperationType OperationType_MAX = SPLIT_OP; |
166 | | const int OperationType_ARRAYSIZE = OperationType_MAX + 1; |
167 | | |
168 | | const ::google::protobuf::EnumDescriptor* OperationType_descriptor(); |
169 | 200k | inline const ::std::string& OperationType_Name(OperationType value) { |
170 | 200k | return ::google::protobuf::internal::NameOfEnum( |
171 | 200k | OperationType_descriptor(), value); |
172 | 200k | } |
173 | | inline bool OperationType_Parse( |
174 | 0 | const ::std::string& name, OperationType* value) { |
175 | 0 | return ::google::protobuf::internal::ParseNamedEnum<OperationType>( |
176 | 0 | OperationType_descriptor(), name, value); |
177 | 0 | } |
178 | | // =================================================================== |
179 | | |
180 | | class ConsensusErrorPB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.consensus.ConsensusErrorPB) */ { |
181 | | public: |
182 | | ConsensusErrorPB(); |
183 | | virtual ~ConsensusErrorPB(); |
184 | | |
185 | | ConsensusErrorPB(const ConsensusErrorPB& from); |
186 | | |
187 | 0 | inline ConsensusErrorPB& operator=(const ConsensusErrorPB& from) { |
188 | 0 | CopyFrom(from); |
189 | 0 | return *this; |
190 | 0 | } |
191 | | #if LANG_CXX11 |
192 | | ConsensusErrorPB(ConsensusErrorPB&& from) noexcept |
193 | 0 | : ConsensusErrorPB() { |
194 | 0 | *this = ::std::move(from); |
195 | 0 | } |
196 | | |
197 | 0 | inline ConsensusErrorPB& operator=(ConsensusErrorPB&& from) noexcept { |
198 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
199 | 0 | if (this != &from) InternalSwap(&from); |
200 | 0 | } else { |
201 | 0 | CopyFrom(from); |
202 | 0 | } |
203 | 0 | return *this; |
204 | 0 | } |
205 | | #endif |
206 | 0 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
207 | 0 | return _internal_metadata_.unknown_fields(); |
208 | 0 | } |
209 | 0 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
210 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
211 | 0 | } |
212 | | |
213 | | static const ::google::protobuf::Descriptor* descriptor(); |
214 | | static const ConsensusErrorPB& default_instance(); |
215 | | |
216 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
217 | 1.39M | static inline const ConsensusErrorPB* internal_default_instance() { |
218 | 1.39M | return reinterpret_cast<const ConsensusErrorPB*>( |
219 | 1.39M | &_ConsensusErrorPB_default_instance_); |
220 | 1.39M | } |
221 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
222 | | 0; |
223 | | |
224 | | void Swap(ConsensusErrorPB* other); |
225 | 0 | friend void swap(ConsensusErrorPB& a, ConsensusErrorPB& b) { |
226 | 0 | a.Swap(&b); |
227 | 0 | } |
228 | | |
229 | | // implements Message ---------------------------------------------- |
230 | | |
231 | 0 | inline ConsensusErrorPB* New() const PROTOBUF_FINAL { return New(NULL); } |
232 | | |
233 | | ConsensusErrorPB* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; |
234 | | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
235 | | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
236 | | void CopyFrom(const ConsensusErrorPB& from); |
237 | | void MergeFrom(const ConsensusErrorPB& from); |
238 | | void Clear() PROTOBUF_FINAL; |
239 | | bool IsInitialized() const PROTOBUF_FINAL; |
240 | | |
241 | | size_t ByteSizeLong() const PROTOBUF_FINAL; |
242 | | bool MergePartialFromCodedStream( |
243 | | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
244 | | void SerializeWithCachedSizes( |
245 | | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
246 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
247 | | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
248 | 343k | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
249 | | private: |
250 | | void SharedCtor(); |
251 | | void SharedDtor(); |
252 | | void SetCachedSize(int size) const PROTOBUF_FINAL; |
253 | | void InternalSwap(ConsensusErrorPB* other); |
254 | | private: |
255 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
256 | 0 | return NULL; |
257 | 0 | } |
258 | 0 | inline void* MaybeArenaPtr() const { |
259 | 0 | return NULL; |
260 | 0 | } |
261 | | public: |
262 | | |
263 | | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
264 | | |
265 | | // nested types ---------------------------------------------------- |
266 | | |
267 | | typedef ConsensusErrorPB_Code Code; |
268 | | static const Code UNKNOWN = |
269 | | ConsensusErrorPB_Code_UNKNOWN; |
270 | | static const Code INVALID_TERM = |
271 | | ConsensusErrorPB_Code_INVALID_TERM; |
272 | | static const Code LAST_OPID_TOO_OLD = |
273 | | ConsensusErrorPB_Code_LAST_OPID_TOO_OLD; |
274 | | static const Code ALREADY_VOTED = |
275 | | ConsensusErrorPB_Code_ALREADY_VOTED; |
276 | | static const Code NOT_IN_QUORUM = |
277 | | ConsensusErrorPB_Code_NOT_IN_QUORUM; |
278 | | static const Code PRECEDING_ENTRY_DIDNT_MATCH = |
279 | | ConsensusErrorPB_Code_PRECEDING_ENTRY_DIDNT_MATCH; |
280 | | static const Code LEADER_IS_ALIVE = |
281 | | ConsensusErrorPB_Code_LEADER_IS_ALIVE; |
282 | | static const Code CONSENSUS_BUSY = |
283 | | ConsensusErrorPB_Code_CONSENSUS_BUSY; |
284 | | static const Code CANNOT_PREPARE = |
285 | | ConsensusErrorPB_Code_CANNOT_PREPARE; |
286 | | static const Code TABLET_SPLIT = |
287 | | ConsensusErrorPB_Code_TABLET_SPLIT; |
288 | 0 | static inline bool Code_IsValid(int value) { |
289 | 0 | return ConsensusErrorPB_Code_IsValid(value); |
290 | 0 | } |
291 | | static const Code Code_MIN = |
292 | | ConsensusErrorPB_Code_Code_MIN; |
293 | | static const Code Code_MAX = |
294 | | ConsensusErrorPB_Code_Code_MAX; |
295 | | static const int Code_ARRAYSIZE = |
296 | | ConsensusErrorPB_Code_Code_ARRAYSIZE; |
297 | | static inline const ::google::protobuf::EnumDescriptor* |
298 | 0 | Code_descriptor() { |
299 | 0 | return ConsensusErrorPB_Code_descriptor(); |
300 | 0 | } |
301 | 23 | static inline const ::std::string& Code_Name(Code value) { |
302 | 23 | return ConsensusErrorPB_Code_Name(value); |
303 | 23 | } |
304 | | static inline bool Code_Parse(const ::std::string& name, |
305 | 0 | Code* value) { |
306 | 0 | return ConsensusErrorPB_Code_Parse(name, value); |
307 | 0 | } |
308 | | |
309 | | // accessors ------------------------------------------------------- |
310 | | |
311 | | // required .yb.AppStatusPB status = 2; |
312 | | bool has_status() const; |
313 | | void clear_status(); |
314 | | static const int kStatusFieldNumber = 2; |
315 | | const ::yb::AppStatusPB& status() const; |
316 | | ::yb::AppStatusPB* release_status(); |
317 | | ::yb::AppStatusPB* mutable_status(); |
318 | | void set_allocated_status(::yb::AppStatusPB* status); |
319 | | |
320 | | // required .yb.consensus.ConsensusErrorPB.Code code = 1; |
321 | | bool has_code() const; |
322 | | void clear_code(); |
323 | | static const int kCodeFieldNumber = 1; |
324 | | ::yb::consensus::ConsensusErrorPB_Code code() const; |
325 | | void set_code(::yb::consensus::ConsensusErrorPB_Code value); |
326 | | |
327 | | // @@protoc_insertion_point(class_scope:yb.consensus.ConsensusErrorPB) |
328 | | private: |
329 | | void set_has_code(); |
330 | | void clear_has_code(); |
331 | | void set_has_status(); |
332 | | void clear_has_status(); |
333 | | |
334 | | // helper for ByteSizeLong() |
335 | | size_t RequiredFieldsByteSizeFallback() const; |
336 | | |
337 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
338 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
339 | | mutable int _cached_size_; |
340 | | ::yb::AppStatusPB* status_; |
341 | | int code_; |
342 | | friend struct ::protobuf_yb_2fconsensus_2fconsensus_5ftypes_2eproto::TableStruct; |
343 | | friend void ::protobuf_yb_2fconsensus_2fconsensus_5ftypes_2eproto::InitDefaultsConsensusErrorPBImpl(); |
344 | | }; |
345 | | // =================================================================== |
346 | | |
347 | | |
348 | | // =================================================================== |
349 | | |
350 | | #ifdef __GNUC__ |
351 | | #pragma GCC diagnostic push |
352 | | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
353 | | #endif // __GNUC__ |
354 | | // ConsensusErrorPB |
355 | | |
356 | | // required .yb.consensus.ConsensusErrorPB.Code code = 1; |
357 | 0 | inline bool ConsensusErrorPB::has_code() const { |
358 | 0 | return (_has_bits_[0] & 0x00000002u) != 0; |
359 | 0 | } |
360 | 681k | inline void ConsensusErrorPB::set_has_code() { |
361 | 681k | _has_bits_[0] |= 0x00000002u; |
362 | 681k | } |
363 | 0 | inline void ConsensusErrorPB::clear_has_code() { |
364 | 0 | _has_bits_[0] &= ~0x00000002u; |
365 | 0 | } |
366 | 0 | inline void ConsensusErrorPB::clear_code() { |
367 | 0 | code_ = 0; |
368 | 0 | clear_has_code(); |
369 | 0 | } |
370 | 1.27M | inline ::yb::consensus::ConsensusErrorPB_Code ConsensusErrorPB::code() const { |
371 | | // @@protoc_insertion_point(field_get:yb.consensus.ConsensusErrorPB.code) |
372 | 1.27M | return static_cast< ::yb::consensus::ConsensusErrorPB_Code >(code_); |
373 | 1.27M | } |
374 | 680k | inline void ConsensusErrorPB::set_code(::yb::consensus::ConsensusErrorPB_Code value) { |
375 | 680k | assert(::yb::consensus::ConsensusErrorPB_Code_IsValid(value)); |
376 | 0 | set_has_code(); |
377 | 680k | code_ = value; |
378 | | // @@protoc_insertion_point(field_set:yb.consensus.ConsensusErrorPB.code) |
379 | 680k | } |
380 | | |
381 | | // required .yb.AppStatusPB status = 2; |
382 | 923k | inline bool ConsensusErrorPB::has_status() const { |
383 | 923k | return (_has_bits_[0] & 0x00000001u) != 0; |
384 | 923k | } |
385 | 681k | inline void ConsensusErrorPB::set_has_status() { |
386 | 681k | _has_bits_[0] |= 0x00000001u; |
387 | 681k | } |
388 | 0 | inline void ConsensusErrorPB::clear_has_status() { |
389 | 0 | _has_bits_[0] &= ~0x00000001u; |
390 | 0 | } |
391 | 98.6k | inline const ::yb::AppStatusPB& ConsensusErrorPB::status() const { |
392 | 98.6k | const ::yb::AppStatusPB* p = status_; |
393 | | // @@protoc_insertion_point(field_get:yb.consensus.ConsensusErrorPB.status) |
394 | 98.6k | return p != NULL ? *p98.6k : *reinterpret_cast<const ::yb::AppStatusPB*>( |
395 | 2 | &::yb::_AppStatusPB_default_instance_); |
396 | 98.6k | } |
397 | 0 | inline ::yb::AppStatusPB* ConsensusErrorPB::release_status() { |
398 | 0 | // @@protoc_insertion_point(field_release:yb.consensus.ConsensusErrorPB.status) |
399 | 0 | clear_has_status(); |
400 | 0 | ::yb::AppStatusPB* temp = status_; |
401 | 0 | status_ = NULL; |
402 | 0 | return temp; |
403 | 0 | } |
404 | 680k | inline ::yb::AppStatusPB* ConsensusErrorPB::mutable_status() { |
405 | 680k | set_has_status(); |
406 | 680k | if (status_ == NULL) { |
407 | 678k | status_ = new ::yb::AppStatusPB; |
408 | 678k | } |
409 | | // @@protoc_insertion_point(field_mutable:yb.consensus.ConsensusErrorPB.status) |
410 | 680k | return status_; |
411 | 680k | } |
412 | 0 | inline void ConsensusErrorPB::set_allocated_status(::yb::AppStatusPB* status) { |
413 | 0 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
414 | 0 | if (message_arena == NULL) { |
415 | 0 | delete reinterpret_cast< ::google::protobuf::MessageLite*>(status_); |
416 | 0 | } |
417 | 0 | if (status) { |
418 | 0 | ::google::protobuf::Arena* submessage_arena = NULL; |
419 | 0 | if (message_arena != submessage_arena) { |
420 | 0 | status = ::google::protobuf::internal::GetOwnedMessage( |
421 | 0 | message_arena, status, submessage_arena); |
422 | 0 | } |
423 | 0 | set_has_status(); |
424 | 0 | } else { |
425 | 0 | clear_has_status(); |
426 | 0 | } |
427 | 0 | status_ = status; |
428 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.consensus.ConsensusErrorPB.status) |
429 | 0 | } |
430 | | |
431 | | #ifdef __GNUC__ |
432 | | #pragma GCC diagnostic pop |
433 | | #endif // __GNUC__ |
434 | | |
435 | | // @@protoc_insertion_point(namespace_scope) |
436 | | |
437 | | } // namespace consensus |
438 | | } // namespace yb |
439 | | |
440 | | namespace google { |
441 | | namespace protobuf { |
442 | | |
443 | | template <> struct is_proto_enum< ::yb::consensus::ConsensusErrorPB_Code> : ::google::protobuf::internal::true_type {}; |
444 | | template <> |
445 | 0 | inline const EnumDescriptor* GetEnumDescriptor< ::yb::consensus::ConsensusErrorPB_Code>() { |
446 | 0 | return ::yb::consensus::ConsensusErrorPB_Code_descriptor(); |
447 | 0 | } |
448 | | template <> struct is_proto_enum< ::yb::consensus::ChangeConfigType> : ::google::protobuf::internal::true_type {}; |
449 | | template <> |
450 | 0 | inline const EnumDescriptor* GetEnumDescriptor< ::yb::consensus::ChangeConfigType>() { |
451 | 0 | return ::yb::consensus::ChangeConfigType_descriptor(); |
452 | 0 | } |
453 | | template <> struct is_proto_enum< ::yb::consensus::OpIdType> : ::google::protobuf::internal::true_type {}; |
454 | | template <> |
455 | 0 | inline const EnumDescriptor* GetEnumDescriptor< ::yb::consensus::OpIdType>() { |
456 | 0 | return ::yb::consensus::OpIdType_descriptor(); |
457 | 0 | } |
458 | | template <> struct is_proto_enum< ::yb::consensus::LeaderLeaseStatus> : ::google::protobuf::internal::true_type {}; |
459 | | template <> |
460 | 0 | inline const EnumDescriptor* GetEnumDescriptor< ::yb::consensus::LeaderLeaseStatus>() { |
461 | 0 | return ::yb::consensus::LeaderLeaseStatus_descriptor(); |
462 | 0 | } |
463 | | template <> struct is_proto_enum< ::yb::consensus::OperationType> : ::google::protobuf::internal::true_type {}; |
464 | | template <> |
465 | 0 | inline const EnumDescriptor* GetEnumDescriptor< ::yb::consensus::OperationType>() { |
466 | 0 | return ::yb::consensus::OperationType_descriptor(); |
467 | 0 | } |
468 | | |
469 | | } // namespace protobuf |
470 | | } // namespace google |
471 | | |
472 | | // @@protoc_insertion_point(global_scope) |
473 | | |
474 | | #endif // PROTOBUF_yb_2fconsensus_2fconsensus_5ftypes_2eproto__INCLUDED |