/Users/deen/code/yugabyte-db/build/debugcov-clang-dynamic-arm64-ninja/src/yb/tserver/tserver_types.pb.h
Line | Count | Source (jump to first uncovered line) |
1 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | | // source: yb/tserver/tserver_types.proto |
3 | | |
4 | | #ifndef PROTOBUF_yb_2ftserver_2ftserver_5ftypes_2eproto__INCLUDED |
5 | | #define PROTOBUF_yb_2ftserver_2ftserver_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_2ftserver_2ftserver_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 InitDefaultsTabletServerErrorPBImpl(); |
48 | | void InitDefaultsTabletServerErrorPB(); |
49 | 15.8k | inline void InitDefaults() { |
50 | 15.8k | InitDefaultsTabletServerErrorPB(); |
51 | 15.8k | } |
52 | | } // namespace protobuf_yb_2ftserver_2ftserver_5ftypes_2eproto |
53 | | namespace yb { |
54 | | namespace tserver { |
55 | | class TabletServerErrorPB; |
56 | | class TabletServerErrorPBDefaultTypeInternal; |
57 | | extern TabletServerErrorPBDefaultTypeInternal _TabletServerErrorPB_default_instance_; |
58 | | } // namespace tserver |
59 | | } // namespace yb |
60 | | namespace yb { |
61 | | namespace tserver { |
62 | | |
63 | | enum TabletServerErrorPB_Code { |
64 | | TabletServerErrorPB_Code_UNKNOWN_ERROR = 1, |
65 | | TabletServerErrorPB_Code_INVALID_SCHEMA = 2, |
66 | | TabletServerErrorPB_Code_INVALID_ROW_BLOCK = 3, |
67 | | TabletServerErrorPB_Code_INVALID_MUTATION = 4, |
68 | | TabletServerErrorPB_Code_MISMATCHED_SCHEMA = 5, |
69 | | TabletServerErrorPB_Code_TABLET_NOT_FOUND = 6, |
70 | | TabletServerErrorPB_Code_SCANNER_EXPIRED = 7, |
71 | | TabletServerErrorPB_Code_INVALID_SCAN_SPEC = 8, |
72 | | TabletServerErrorPB_Code_INVALID_CONFIG = 9, |
73 | | TabletServerErrorPB_Code_TABLET_ALREADY_EXISTS = 10, |
74 | | TabletServerErrorPB_Code_TABLET_HAS_A_NEWER_SCHEMA = 11, |
75 | | TabletServerErrorPB_Code_TABLET_NOT_RUNNING = 12, |
76 | | TabletServerErrorPB_Code_INVALID_SNAPSHOT = 13, |
77 | | TabletServerErrorPB_Code_INVALID_SCAN_CALL_SEQ_ID = 14, |
78 | | TabletServerErrorPB_Code_NOT_THE_LEADER = 15, |
79 | | TabletServerErrorPB_Code_WRONG_SERVER_UUID = 16, |
80 | | TabletServerErrorPB_Code_CAS_FAILED = 17, |
81 | | TabletServerErrorPB_Code_LEADER_NOT_READY_CHANGE_CONFIG = 18, |
82 | | TabletServerErrorPB_Code_LEADER_NOT_READY_TO_STEP_DOWN = 19, |
83 | | TabletServerErrorPB_Code_ADD_CHANGE_CONFIG_ALREADY_PRESENT = 20, |
84 | | TabletServerErrorPB_Code_REMOVE_CHANGE_CONFIG_NOT_PRESENT = 21, |
85 | | TabletServerErrorPB_Code_LEADER_NEEDS_STEP_DOWN = 22, |
86 | | TabletServerErrorPB_Code_OPERATION_NOT_SUPPORTED = 23, |
87 | | TabletServerErrorPB_Code_LEADER_NOT_READY_TO_SERVE = 24, |
88 | | TabletServerErrorPB_Code_STALE_FOLLOWER = 25, |
89 | | TabletServerErrorPB_Code_ALREADY_IN_PROGRESS = 26, |
90 | | TabletServerErrorPB_Code_PENDING_LOCAL_BOOTSTRAPS = 27, |
91 | | TabletServerErrorPB_Code_TABLET_SPLIT = 28, |
92 | | TabletServerErrorPB_Code_TABLET_SPLIT_PARENT_STILL_LIVE = 29 |
93 | | }; |
94 | | bool TabletServerErrorPB_Code_IsValid(int value); |
95 | | const TabletServerErrorPB_Code TabletServerErrorPB_Code_Code_MIN = TabletServerErrorPB_Code_UNKNOWN_ERROR; |
96 | | const TabletServerErrorPB_Code TabletServerErrorPB_Code_Code_MAX = TabletServerErrorPB_Code_TABLET_SPLIT_PARENT_STILL_LIVE; |
97 | | const int TabletServerErrorPB_Code_Code_ARRAYSIZE = TabletServerErrorPB_Code_Code_MAX + 1; |
98 | | |
99 | | const ::google::protobuf::EnumDescriptor* TabletServerErrorPB_Code_descriptor(); |
100 | 9.89k | inline const ::std::string& TabletServerErrorPB_Code_Name(TabletServerErrorPB_Code value) { |
101 | 9.89k | return ::google::protobuf::internal::NameOfEnum( |
102 | 9.89k | TabletServerErrorPB_Code_descriptor(), value); |
103 | 9.89k | } |
104 | | inline bool TabletServerErrorPB_Code_Parse( |
105 | 0 | const ::std::string& name, TabletServerErrorPB_Code* value) { |
106 | 0 | return ::google::protobuf::internal::ParseNamedEnum<TabletServerErrorPB_Code>( |
107 | 0 | TabletServerErrorPB_Code_descriptor(), name, value); |
108 | 0 | } |
109 | | enum TSTabletManagerStatePB { |
110 | | UNKNOWN = 999, |
111 | | MANAGER_INITIALIZING = 0, |
112 | | MANAGER_RUNNING = 1, |
113 | | MANAGER_QUIESCING = 2, |
114 | | MANAGER_SHUTDOWN = 3 |
115 | | }; |
116 | | bool TSTabletManagerStatePB_IsValid(int value); |
117 | | const TSTabletManagerStatePB TSTabletManagerStatePB_MIN = MANAGER_INITIALIZING; |
118 | | const TSTabletManagerStatePB TSTabletManagerStatePB_MAX = UNKNOWN; |
119 | | const int TSTabletManagerStatePB_ARRAYSIZE = TSTabletManagerStatePB_MAX + 1; |
120 | | |
121 | | const ::google::protobuf::EnumDescriptor* TSTabletManagerStatePB_descriptor(); |
122 | 0 | inline const ::std::string& TSTabletManagerStatePB_Name(TSTabletManagerStatePB value) { |
123 | 0 | return ::google::protobuf::internal::NameOfEnum( |
124 | 0 | TSTabletManagerStatePB_descriptor(), value); |
125 | 0 | } |
126 | | inline bool TSTabletManagerStatePB_Parse( |
127 | 0 | const ::std::string& name, TSTabletManagerStatePB* value) { |
128 | 0 | return ::google::protobuf::internal::ParseNamedEnum<TSTabletManagerStatePB>( |
129 | 0 | TSTabletManagerStatePB_descriptor(), name, value); |
130 | 0 | } |
131 | | // =================================================================== |
132 | | |
133 | | class TabletServerErrorPB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.tserver.TabletServerErrorPB) */ { |
134 | | public: |
135 | | TabletServerErrorPB(); |
136 | | virtual ~TabletServerErrorPB(); |
137 | | |
138 | | TabletServerErrorPB(const TabletServerErrorPB& from); |
139 | | |
140 | 1 | inline TabletServerErrorPB& operator=(const TabletServerErrorPB& from) { |
141 | 1 | CopyFrom(from); |
142 | 1 | return *this; |
143 | 1 | } |
144 | | #if LANG_CXX11 |
145 | | TabletServerErrorPB(TabletServerErrorPB&& from) noexcept |
146 | 0 | : TabletServerErrorPB() { |
147 | 0 | *this = ::std::move(from); |
148 | 0 | } |
149 | | |
150 | 0 | inline TabletServerErrorPB& operator=(TabletServerErrorPB&& from) noexcept { |
151 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
152 | 0 | if (this != &from) InternalSwap(&from); |
153 | 0 | } else { |
154 | 0 | CopyFrom(from); |
155 | 0 | } |
156 | 0 | return *this; |
157 | 0 | } |
158 | | #endif |
159 | 0 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
160 | 0 | return _internal_metadata_.unknown_fields(); |
161 | 0 | } |
162 | 0 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
163 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
164 | 0 | } |
165 | | |
166 | | static const ::google::protobuf::Descriptor* descriptor(); |
167 | | static const TabletServerErrorPB& default_instance(); |
168 | | |
169 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
170 | 1.45M | static inline const TabletServerErrorPB* internal_default_instance() { |
171 | 1.45M | return reinterpret_cast<const TabletServerErrorPB*>( |
172 | 1.45M | &_TabletServerErrorPB_default_instance_); |
173 | 1.45M | } |
174 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
175 | | 0; |
176 | | |
177 | | void Swap(TabletServerErrorPB* other); |
178 | 0 | friend void swap(TabletServerErrorPB& a, TabletServerErrorPB& b) { |
179 | 0 | a.Swap(&b); |
180 | 0 | } |
181 | | |
182 | | // implements Message ---------------------------------------------- |
183 | | |
184 | 0 | inline TabletServerErrorPB* New() const PROTOBUF_FINAL { return New(NULL); } |
185 | | |
186 | | TabletServerErrorPB* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; |
187 | | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
188 | | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
189 | | void CopyFrom(const TabletServerErrorPB& from); |
190 | | void MergeFrom(const TabletServerErrorPB& from); |
191 | | void Clear() PROTOBUF_FINAL; |
192 | | bool IsInitialized() const PROTOBUF_FINAL; |
193 | | |
194 | | size_t ByteSizeLong() const PROTOBUF_FINAL; |
195 | | bool MergePartialFromCodedStream( |
196 | | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
197 | | void SerializeWithCachedSizes( |
198 | | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
199 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
200 | | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
201 | 188k | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
202 | | private: |
203 | | void SharedCtor(); |
204 | | void SharedDtor(); |
205 | | void SetCachedSize(int size) const PROTOBUF_FINAL; |
206 | | void InternalSwap(TabletServerErrorPB* other); |
207 | | private: |
208 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
209 | 0 | return NULL; |
210 | 0 | } |
211 | 0 | inline void* MaybeArenaPtr() const { |
212 | 0 | return NULL; |
213 | 0 | } |
214 | | public: |
215 | | |
216 | | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
217 | | |
218 | | // nested types ---------------------------------------------------- |
219 | | |
220 | | typedef TabletServerErrorPB_Code Code; |
221 | | static const Code UNKNOWN_ERROR = |
222 | | TabletServerErrorPB_Code_UNKNOWN_ERROR; |
223 | | static const Code INVALID_SCHEMA = |
224 | | TabletServerErrorPB_Code_INVALID_SCHEMA; |
225 | | static const Code INVALID_ROW_BLOCK = |
226 | | TabletServerErrorPB_Code_INVALID_ROW_BLOCK; |
227 | | static const Code INVALID_MUTATION = |
228 | | TabletServerErrorPB_Code_INVALID_MUTATION; |
229 | | static const Code MISMATCHED_SCHEMA = |
230 | | TabletServerErrorPB_Code_MISMATCHED_SCHEMA; |
231 | | static const Code TABLET_NOT_FOUND = |
232 | | TabletServerErrorPB_Code_TABLET_NOT_FOUND; |
233 | | static const Code SCANNER_EXPIRED = |
234 | | TabletServerErrorPB_Code_SCANNER_EXPIRED; |
235 | | static const Code INVALID_SCAN_SPEC = |
236 | | TabletServerErrorPB_Code_INVALID_SCAN_SPEC; |
237 | | static const Code INVALID_CONFIG = |
238 | | TabletServerErrorPB_Code_INVALID_CONFIG; |
239 | | static const Code TABLET_ALREADY_EXISTS = |
240 | | TabletServerErrorPB_Code_TABLET_ALREADY_EXISTS; |
241 | | static const Code TABLET_HAS_A_NEWER_SCHEMA = |
242 | | TabletServerErrorPB_Code_TABLET_HAS_A_NEWER_SCHEMA; |
243 | | static const Code TABLET_NOT_RUNNING = |
244 | | TabletServerErrorPB_Code_TABLET_NOT_RUNNING; |
245 | | static const Code INVALID_SNAPSHOT = |
246 | | TabletServerErrorPB_Code_INVALID_SNAPSHOT; |
247 | | static const Code INVALID_SCAN_CALL_SEQ_ID = |
248 | | TabletServerErrorPB_Code_INVALID_SCAN_CALL_SEQ_ID; |
249 | | static const Code NOT_THE_LEADER = |
250 | | TabletServerErrorPB_Code_NOT_THE_LEADER; |
251 | | static const Code WRONG_SERVER_UUID = |
252 | | TabletServerErrorPB_Code_WRONG_SERVER_UUID; |
253 | | static const Code CAS_FAILED = |
254 | | TabletServerErrorPB_Code_CAS_FAILED; |
255 | | static const Code LEADER_NOT_READY_CHANGE_CONFIG = |
256 | | TabletServerErrorPB_Code_LEADER_NOT_READY_CHANGE_CONFIG; |
257 | | static const Code LEADER_NOT_READY_TO_STEP_DOWN = |
258 | | TabletServerErrorPB_Code_LEADER_NOT_READY_TO_STEP_DOWN; |
259 | | static const Code ADD_CHANGE_CONFIG_ALREADY_PRESENT = |
260 | | TabletServerErrorPB_Code_ADD_CHANGE_CONFIG_ALREADY_PRESENT; |
261 | | static const Code REMOVE_CHANGE_CONFIG_NOT_PRESENT = |
262 | | TabletServerErrorPB_Code_REMOVE_CHANGE_CONFIG_NOT_PRESENT; |
263 | | static const Code LEADER_NEEDS_STEP_DOWN = |
264 | | TabletServerErrorPB_Code_LEADER_NEEDS_STEP_DOWN; |
265 | | static const Code OPERATION_NOT_SUPPORTED = |
266 | | TabletServerErrorPB_Code_OPERATION_NOT_SUPPORTED; |
267 | | static const Code LEADER_NOT_READY_TO_SERVE = |
268 | | TabletServerErrorPB_Code_LEADER_NOT_READY_TO_SERVE; |
269 | | static const Code STALE_FOLLOWER = |
270 | | TabletServerErrorPB_Code_STALE_FOLLOWER; |
271 | | static const Code ALREADY_IN_PROGRESS = |
272 | | TabletServerErrorPB_Code_ALREADY_IN_PROGRESS; |
273 | | static const Code PENDING_LOCAL_BOOTSTRAPS = |
274 | | TabletServerErrorPB_Code_PENDING_LOCAL_BOOTSTRAPS; |
275 | | static const Code TABLET_SPLIT = |
276 | | TabletServerErrorPB_Code_TABLET_SPLIT; |
277 | | static const Code TABLET_SPLIT_PARENT_STILL_LIVE = |
278 | | TabletServerErrorPB_Code_TABLET_SPLIT_PARENT_STILL_LIVE; |
279 | 0 | static inline bool Code_IsValid(int value) { |
280 | 0 | return TabletServerErrorPB_Code_IsValid(value); |
281 | 0 | } |
282 | | static const Code Code_MIN = |
283 | | TabletServerErrorPB_Code_Code_MIN; |
284 | | static const Code Code_MAX = |
285 | | TabletServerErrorPB_Code_Code_MAX; |
286 | | static const int Code_ARRAYSIZE = |
287 | | TabletServerErrorPB_Code_Code_ARRAYSIZE; |
288 | | static inline const ::google::protobuf::EnumDescriptor* |
289 | 0 | Code_descriptor() { |
290 | 0 | return TabletServerErrorPB_Code_descriptor(); |
291 | 0 | } |
292 | 9.89k | static inline const ::std::string& Code_Name(Code value) { |
293 | 9.89k | return TabletServerErrorPB_Code_Name(value); |
294 | 9.89k | } |
295 | | static inline bool Code_Parse(const ::std::string& name, |
296 | 0 | Code* value) { |
297 | 0 | return TabletServerErrorPB_Code_Parse(name, value); |
298 | 0 | } |
299 | | |
300 | | // accessors ------------------------------------------------------- |
301 | | |
302 | | // required .yb.AppStatusPB status = 2; |
303 | | bool has_status() const; |
304 | | void clear_status(); |
305 | | static const int kStatusFieldNumber = 2; |
306 | | const ::yb::AppStatusPB& status() const; |
307 | | ::yb::AppStatusPB* release_status(); |
308 | | ::yb::AppStatusPB* mutable_status(); |
309 | | void set_allocated_status(::yb::AppStatusPB* status); |
310 | | |
311 | | // required .yb.tserver.TabletServerErrorPB.Code code = 1 [default = UNKNOWN_ERROR]; |
312 | | bool has_code() const; |
313 | | void clear_code(); |
314 | | static const int kCodeFieldNumber = 1; |
315 | | ::yb::tserver::TabletServerErrorPB_Code code() const; |
316 | | void set_code(::yb::tserver::TabletServerErrorPB_Code value); |
317 | | |
318 | | // @@protoc_insertion_point(class_scope:yb.tserver.TabletServerErrorPB) |
319 | | private: |
320 | | void set_has_code(); |
321 | | void clear_has_code(); |
322 | | void set_has_status(); |
323 | | void clear_has_status(); |
324 | | |
325 | | // helper for ByteSizeLong() |
326 | | size_t RequiredFieldsByteSizeFallback() const; |
327 | | |
328 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
329 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
330 | | mutable int _cached_size_; |
331 | | ::yb::AppStatusPB* status_; |
332 | | int code_; |
333 | | friend struct ::protobuf_yb_2ftserver_2ftserver_5ftypes_2eproto::TableStruct; |
334 | | friend void ::protobuf_yb_2ftserver_2ftserver_5ftypes_2eproto::InitDefaultsTabletServerErrorPBImpl(); |
335 | | }; |
336 | | // =================================================================== |
337 | | |
338 | | |
339 | | // =================================================================== |
340 | | |
341 | | #ifdef __GNUC__ |
342 | | #pragma GCC diagnostic push |
343 | | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
344 | | #endif // __GNUC__ |
345 | | // TabletServerErrorPB |
346 | | |
347 | | // required .yb.tserver.TabletServerErrorPB.Code code = 1 [default = UNKNOWN_ERROR]; |
348 | 0 | inline bool TabletServerErrorPB::has_code() const { |
349 | 0 | return (_has_bits_[0] & 0x00000002u) != 0; |
350 | 0 | } |
351 | 501k | inline void TabletServerErrorPB::set_has_code() { |
352 | 501k | _has_bits_[0] |= 0x00000002u; |
353 | 501k | } |
354 | 0 | inline void TabletServerErrorPB::clear_has_code() { |
355 | 0 | _has_bits_[0] &= ~0x00000002u; |
356 | 0 | } |
357 | 0 | inline void TabletServerErrorPB::clear_code() { |
358 | 0 | code_ = 1; |
359 | 0 | clear_has_code(); |
360 | 0 | } |
361 | 903k | inline ::yb::tserver::TabletServerErrorPB_Code TabletServerErrorPB::code() const { |
362 | | // @@protoc_insertion_point(field_get:yb.tserver.TabletServerErrorPB.code) |
363 | 903k | return static_cast< ::yb::tserver::TabletServerErrorPB_Code >(code_); |
364 | 903k | } |
365 | 501k | inline void TabletServerErrorPB::set_code(::yb::tserver::TabletServerErrorPB_Code value) { |
366 | 501k | assert(::yb::tserver::TabletServerErrorPB_Code_IsValid(value)); |
367 | 501k | set_has_code(); |
368 | 501k | code_ = value; |
369 | | // @@protoc_insertion_point(field_set:yb.tserver.TabletServerErrorPB.code) |
370 | 501k | } |
371 | | |
372 | | // required .yb.AppStatusPB status = 2; |
373 | 382k | inline bool TabletServerErrorPB::has_status() const { |
374 | 382k | return (_has_bits_[0] & 0x00000001u) != 0; |
375 | 382k | } |
376 | 501k | inline void TabletServerErrorPB::set_has_status() { |
377 | 501k | _has_bits_[0] |= 0x00000001u; |
378 | 501k | } |
379 | 0 | inline void TabletServerErrorPB::clear_has_status() { |
380 | 0 | _has_bits_[0] &= ~0x00000001u; |
381 | 0 | } |
382 | 279k | inline const ::yb::AppStatusPB& TabletServerErrorPB::status() const { |
383 | 279k | const ::yb::AppStatusPB* p = status_; |
384 | | // @@protoc_insertion_point(field_get:yb.tserver.TabletServerErrorPB.status) |
385 | 279k | return p != NULL ? *p : *reinterpret_cast<const ::yb::AppStatusPB*>( |
386 | 60 | &::yb::_AppStatusPB_default_instance_); |
387 | 279k | } |
388 | 0 | inline ::yb::AppStatusPB* TabletServerErrorPB::release_status() { |
389 | 0 | // @@protoc_insertion_point(field_release:yb.tserver.TabletServerErrorPB.status) |
390 | 0 | clear_has_status(); |
391 | 0 | ::yb::AppStatusPB* temp = status_; |
392 | 0 | status_ = NULL; |
393 | 0 | return temp; |
394 | 0 | } |
395 | 501k | inline ::yb::AppStatusPB* TabletServerErrorPB::mutable_status() { |
396 | 501k | set_has_status(); |
397 | 501k | if (status_ == NULL) { |
398 | 415k | status_ = new ::yb::AppStatusPB; |
399 | 415k | } |
400 | | // @@protoc_insertion_point(field_mutable:yb.tserver.TabletServerErrorPB.status) |
401 | 501k | return status_; |
402 | 501k | } |
403 | 0 | inline void TabletServerErrorPB::set_allocated_status(::yb::AppStatusPB* status) { |
404 | 0 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
405 | 0 | if (message_arena == NULL) { |
406 | 0 | delete reinterpret_cast< ::google::protobuf::MessageLite*>(status_); |
407 | 0 | } |
408 | 0 | if (status) { |
409 | 0 | ::google::protobuf::Arena* submessage_arena = NULL; |
410 | 0 | if (message_arena != submessage_arena) { |
411 | 0 | status = ::google::protobuf::internal::GetOwnedMessage( |
412 | 0 | message_arena, status, submessage_arena); |
413 | 0 | } |
414 | 0 | set_has_status(); |
415 | 0 | } else { |
416 | 0 | clear_has_status(); |
417 | 0 | } |
418 | 0 | status_ = status; |
419 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.tserver.TabletServerErrorPB.status) |
420 | 0 | } |
421 | | |
422 | | #ifdef __GNUC__ |
423 | | #pragma GCC diagnostic pop |
424 | | #endif // __GNUC__ |
425 | | |
426 | | // @@protoc_insertion_point(namespace_scope) |
427 | | |
428 | | } // namespace tserver |
429 | | } // namespace yb |
430 | | |
431 | | namespace google { |
432 | | namespace protobuf { |
433 | | |
434 | | template <> struct is_proto_enum< ::yb::tserver::TabletServerErrorPB_Code> : ::google::protobuf::internal::true_type {}; |
435 | | template <> |
436 | 0 | inline const EnumDescriptor* GetEnumDescriptor< ::yb::tserver::TabletServerErrorPB_Code>() { |
437 | 0 | return ::yb::tserver::TabletServerErrorPB_Code_descriptor(); |
438 | 0 | } |
439 | | template <> struct is_proto_enum< ::yb::tserver::TSTabletManagerStatePB> : ::google::protobuf::internal::true_type {}; |
440 | | template <> |
441 | 0 | inline const EnumDescriptor* GetEnumDescriptor< ::yb::tserver::TSTabletManagerStatePB>() { |
442 | 0 | return ::yb::tserver::TSTabletManagerStatePB_descriptor(); |
443 | 0 | } |
444 | | |
445 | | } // namespace protobuf |
446 | | } // namespace google |
447 | | |
448 | | // @@protoc_insertion_point(global_scope) |
449 | | |
450 | | #endif // PROTOBUF_yb_2ftserver_2ftserver_5ftypes_2eproto__INCLUDED |