YugabyteDB (2.13.0.0-b42, bfc6a6643e7399ac8a0e81d06a3ee6d6571b33ab)

Coverage Report

Created: 2022-03-09 17:30

/Users/deen/code/yugabyte-db/build/debugcov-clang-dynamic-arm64-ninja/src/yb/tserver/tserver_types.pb.cc
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
#include "yb/tserver/tserver_types.pb.h"
5
6
#include <algorithm>
7
8
#include <google/protobuf/stubs/common.h>
9
#include <google/protobuf/stubs/port.h>
10
#include <google/protobuf/stubs/once.h>
11
#include <google/protobuf/io/coded_stream.h>
12
#include <google/protobuf/wire_format_lite_inl.h>
13
#include <google/protobuf/descriptor.h>
14
#include <google/protobuf/generated_message_reflection.h>
15
#include <google/protobuf/reflection_ops.h>
16
#include <google/protobuf/wire_format.h>
17
// This is a temporary google only hack
18
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
19
#include "third_party/protobuf/version.h"
20
#endif
21
#include "yb/util/protobuf-annotations.h"
22
// @@protoc_insertion_point(includes)
23
namespace yb {
24
namespace tserver {
25
class TabletServerErrorPBDefaultTypeInternal {
26
 public:
27
  ::google::protobuf::internal::ExplicitlyConstructed<TabletServerErrorPB>
28
      _instance;
29
} _TabletServerErrorPB_default_instance_;
30
}  // namespace tserver
31
}  // namespace yb
32
namespace protobuf_yb_2ftserver_2ftserver_5ftypes_2eproto {
33
15.8k
void InitDefaultsTabletServerErrorPBImpl() {
34
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
35
36
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
37
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
38
#else
39
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
40
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
41
15.8k
  protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::InitDefaultsAppStatusPB();
42
15.8k
  {
43
15.8k
    void* ptr = &::yb::tserver::_TabletServerErrorPB_default_instance_;
44
15.8k
    new (ptr) ::yb::tserver::TabletServerErrorPB();
45
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
46
15.8k
  }
47
15.8k
  ::yb::tserver::TabletServerErrorPB::InitAsDefaultInstance();
48
15.8k
}
49
50
1.04M
void InitDefaultsTabletServerErrorPB() {
51
1.04M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
52
1.04M
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTabletServerErrorPBImpl);
53
1.04M
}
54
55
::google::protobuf::Metadata file_level_metadata[1];
56
const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[2];
57
58
const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
59
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::TabletServerErrorPB, _has_bits_),
60
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::TabletServerErrorPB, _internal_metadata_),
61
  ~0u,  // no _extensions_
62
  ~0u,  // no _oneof_case_
63
  ~0u,  // no _weak_field_map_
64
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::TabletServerErrorPB, code_),
65
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::tserver::TabletServerErrorPB, status_),
66
  1,
67
  0,
68
};
69
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
70
  { 0, 7, sizeof(::yb::tserver::TabletServerErrorPB)},
71
};
72
73
static ::google::protobuf::Message const * const file_default_instances[] = {
74
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::tserver::_TabletServerErrorPB_default_instance_),
75
};
76
77
2.64k
void protobuf_AssignDescriptors() {
78
2.64k
  AddDescriptors();
79
2.64k
  ::google::protobuf::MessageFactory* factory = NULL;
80
2.64k
  AssignDescriptors(
81
2.64k
      "yb/tserver/tserver_types.proto", schemas, file_default_instances, TableStruct::offsets, factory,
82
2.64k
      file_level_metadata, file_level_enum_descriptors, NULL);
83
2.64k
}
84
85
21.6k
void protobuf_AssignDescriptorsOnce() {
86
21.6k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
87
21.6k
  ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
88
21.6k
}
89
90
void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
91
0
void protobuf_RegisterTypes(const ::std::string&) {
92
0
  protobuf_AssignDescriptorsOnce();
93
0
  ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1);
94
0
}
95
96
15.8k
void AddDescriptorsImpl() {
97
15.8k
  InitDefaults();
98
15.8k
  static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
99
15.8k
      "\n\036yb/tserver/tserver_types.proto\022\nyb.tse"
100
15.8k
      "rver\032\035yb/common/wire_protocol.proto\"\361\006\n\023"
101
15.8k
      "TabletServerErrorPB\022A\n\004code\030\001 \002(\0162$.yb.t"
102
15.8k
      "server.TabletServerErrorPB.Code:\rUNKNOWN"
103
15.8k
      "_ERROR\022\037\n\006status\030\002 \002(\0132\017.yb.AppStatusPB\""
104
15.8k
      "\365\005\n\004Code\022\021\n\rUNKNOWN_ERROR\020\001\022\022\n\016INVALID_S"
105
15.8k
      "CHEMA\020\002\022\025\n\021INVALID_ROW_BLOCK\020\003\022\024\n\020INVALI"
106
15.8k
      "D_MUTATION\020\004\022\025\n\021MISMATCHED_SCHEMA\020\005\022\024\n\020T"
107
15.8k
      "ABLET_NOT_FOUND\020\006\022\023\n\017SCANNER_EXPIRED\020\007\022\025"
108
15.8k
      "\n\021INVALID_SCAN_SPEC\020\010\022\022\n\016INVALID_CONFIG\020"
109
15.8k
      "\t\022\031\n\025TABLET_ALREADY_EXISTS\020\n\022\035\n\031TABLET_H"
110
15.8k
      "AS_A_NEWER_SCHEMA\020\013\022\026\n\022TABLET_NOT_RUNNIN"
111
15.8k
      "G\020\014\022\024\n\020INVALID_SNAPSHOT\020\r\022\034\n\030INVALID_SCA"
112
15.8k
      "N_CALL_SEQ_ID\020\016\022\022\n\016NOT_THE_LEADER\020\017\022\025\n\021W"
113
15.8k
      "RONG_SERVER_UUID\020\020\022\016\n\nCAS_FAILED\020\021\022\"\n\036LE"
114
15.8k
      "ADER_NOT_READY_CHANGE_CONFIG\020\022\022!\n\035LEADER"
115
15.8k
      "_NOT_READY_TO_STEP_DOWN\020\023\022%\n!ADD_CHANGE_"
116
15.8k
      "CONFIG_ALREADY_PRESENT\020\024\022$\n REMOVE_CHANG"
117
15.8k
      "E_CONFIG_NOT_PRESENT\020\025\022\032\n\026LEADER_NEEDS_S"
118
15.8k
      "TEP_DOWN\020\026\022\033\n\027OPERATION_NOT_SUPPORTED\020\027\022"
119
15.8k
      "\035\n\031LEADER_NOT_READY_TO_SERVE\020\030\022\022\n\016STALE_"
120
15.8k
      "FOLLOWER\020\031\022\027\n\023ALREADY_IN_PROGRESS\020\032\022\034\n\030P"
121
15.8k
      "ENDING_LOCAL_BOOTSTRAPS\020\033\022\020\n\014TABLET_SPLI"
122
15.8k
      "T\020\034\022\"\n\036TABLET_SPLIT_PARENT_STILL_LIVE\020\035*"
123
15.8k
      "\202\001\n\026TSTabletManagerStatePB\022\014\n\007UNKNOWN\020\347\007"
124
15.8k
      "\022\030\n\024MANAGER_INITIALIZING\020\000\022\023\n\017MANAGER_RU"
125
15.8k
      "NNING\020\001\022\025\n\021MANAGER_QUIESCING\020\002\022\024\n\020MANAGE"
126
15.8k
      "R_SHUTDOWN\020\003B\020\n\016org.yb.tserver"
127
15.8k
  };
128
15.8k
  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
129
15.8k
      descriptor, 1110);
130
15.8k
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
131
15.8k
    "yb/tserver/tserver_types.proto", &protobuf_RegisterTypes);
132
15.8k
  ::protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::AddDescriptors();
133
15.8k
}
134
135
97.6k
void AddDescriptors() {
136
97.6k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
137
97.6k
  ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
138
97.6k
}
139
// Force AddDescriptors() to be called at dynamic initialization time.
140
struct StaticDescriptorInitializer {
141
15.8k
  StaticDescriptorInitializer() {
142
15.8k
    AddDescriptors();
143
15.8k
  }
144
} static_descriptor_initializer;
145
}  // namespace protobuf_yb_2ftserver_2ftserver_5ftypes_2eproto
146
namespace yb {
147
namespace tserver {
148
9.89k
const ::google::protobuf::EnumDescriptor* TabletServerErrorPB_Code_descriptor() {
149
9.89k
  protobuf_yb_2ftserver_2ftserver_5ftypes_2eproto::protobuf_AssignDescriptorsOnce();
150
9.89k
  return protobuf_yb_2ftserver_2ftserver_5ftypes_2eproto::file_level_enum_descriptors[0];
151
9.89k
}
152
689k
bool TabletServerErrorPB_Code_IsValid(int value) {
153
689k
  switch (value) {
154
310k
    case 1:
155
310k
    case 2:
156
310k
    case 3:
157
310k
    case 4:
158
310k
    case 5:
159
329k
    case 6:
160
329k
    case 7:
161
329k
    case 8:
162
329k
    case 9:
163
329k
    case 10:
164
329k
    case 11:
165
481k
    case 12:
166
481k
    case 13:
167
481k
    case 14:
168
659k
    case 15:
169
659k
    case 16:
170
659k
    case 17:
171
660k
    case 18:
172
662k
    case 19:
173
662k
    case 20:
174
662k
    case 21:
175
662k
    case 22:
176
662k
    case 23:
177
676k
    case 24:
178
678k
    case 25:
179
689k
    case 26:
180
689k
    case 27:
181
689k
    case 28:
182
689k
    case 29:
183
689k
      return true;
184
0
    default:
185
0
      return false;
186
689k
  }
187
689k
}
188
189
#if !defined(_MSC_VER) || _MSC_VER >= 1900
190
const TabletServerErrorPB_Code TabletServerErrorPB::UNKNOWN_ERROR;
191
const TabletServerErrorPB_Code TabletServerErrorPB::INVALID_SCHEMA;
192
const TabletServerErrorPB_Code TabletServerErrorPB::INVALID_ROW_BLOCK;
193
const TabletServerErrorPB_Code TabletServerErrorPB::INVALID_MUTATION;
194
const TabletServerErrorPB_Code TabletServerErrorPB::MISMATCHED_SCHEMA;
195
const TabletServerErrorPB_Code TabletServerErrorPB::TABLET_NOT_FOUND;
196
const TabletServerErrorPB_Code TabletServerErrorPB::SCANNER_EXPIRED;
197
const TabletServerErrorPB_Code TabletServerErrorPB::INVALID_SCAN_SPEC;
198
const TabletServerErrorPB_Code TabletServerErrorPB::INVALID_CONFIG;
199
const TabletServerErrorPB_Code TabletServerErrorPB::TABLET_ALREADY_EXISTS;
200
const TabletServerErrorPB_Code TabletServerErrorPB::TABLET_HAS_A_NEWER_SCHEMA;
201
const TabletServerErrorPB_Code TabletServerErrorPB::TABLET_NOT_RUNNING;
202
const TabletServerErrorPB_Code TabletServerErrorPB::INVALID_SNAPSHOT;
203
const TabletServerErrorPB_Code TabletServerErrorPB::INVALID_SCAN_CALL_SEQ_ID;
204
const TabletServerErrorPB_Code TabletServerErrorPB::NOT_THE_LEADER;
205
const TabletServerErrorPB_Code TabletServerErrorPB::WRONG_SERVER_UUID;
206
const TabletServerErrorPB_Code TabletServerErrorPB::CAS_FAILED;
207
const TabletServerErrorPB_Code TabletServerErrorPB::LEADER_NOT_READY_CHANGE_CONFIG;
208
const TabletServerErrorPB_Code TabletServerErrorPB::LEADER_NOT_READY_TO_STEP_DOWN;
209
const TabletServerErrorPB_Code TabletServerErrorPB::ADD_CHANGE_CONFIG_ALREADY_PRESENT;
210
const TabletServerErrorPB_Code TabletServerErrorPB::REMOVE_CHANGE_CONFIG_NOT_PRESENT;
211
const TabletServerErrorPB_Code TabletServerErrorPB::LEADER_NEEDS_STEP_DOWN;
212
const TabletServerErrorPB_Code TabletServerErrorPB::OPERATION_NOT_SUPPORTED;
213
const TabletServerErrorPB_Code TabletServerErrorPB::LEADER_NOT_READY_TO_SERVE;
214
const TabletServerErrorPB_Code TabletServerErrorPB::STALE_FOLLOWER;
215
const TabletServerErrorPB_Code TabletServerErrorPB::ALREADY_IN_PROGRESS;
216
const TabletServerErrorPB_Code TabletServerErrorPB::PENDING_LOCAL_BOOTSTRAPS;
217
const TabletServerErrorPB_Code TabletServerErrorPB::TABLET_SPLIT;
218
const TabletServerErrorPB_Code TabletServerErrorPB::TABLET_SPLIT_PARENT_STILL_LIVE;
219
const TabletServerErrorPB_Code TabletServerErrorPB::Code_MIN;
220
const TabletServerErrorPB_Code TabletServerErrorPB::Code_MAX;
221
const int TabletServerErrorPB::Code_ARRAYSIZE;
222
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
223
0
const ::google::protobuf::EnumDescriptor* TSTabletManagerStatePB_descriptor() {
224
0
  protobuf_yb_2ftserver_2ftserver_5ftypes_2eproto::protobuf_AssignDescriptorsOnce();
225
0
  return protobuf_yb_2ftserver_2ftserver_5ftypes_2eproto::file_level_enum_descriptors[1];
226
0
}
227
0
bool TSTabletManagerStatePB_IsValid(int value) {
228
0
  switch (value) {
229
0
    case 0:
230
0
    case 1:
231
0
    case 2:
232
0
    case 3:
233
0
    case 999:
234
0
      return true;
235
0
    default:
236
0
      return false;
237
0
  }
238
0
}
239
240
241
// ===================================================================
242
243
15.8k
void TabletServerErrorPB::InitAsDefaultInstance() {
244
15.8k
  ::yb::tserver::_TabletServerErrorPB_default_instance_._instance.get_mutable()->status_ = const_cast< ::yb::AppStatusPB*>(
245
15.8k
      ::yb::AppStatusPB::internal_default_instance());
246
15.8k
}
247
0
void TabletServerErrorPB::clear_status() {
248
0
  if (status_ != NULL) status_->Clear();
249
0
  clear_has_status();
250
0
}
251
#if !defined(_MSC_VER) || _MSC_VER >= 1900
252
const int TabletServerErrorPB::kCodeFieldNumber;
253
const int TabletServerErrorPB::kStatusFieldNumber;
254
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
255
256
TabletServerErrorPB::TabletServerErrorPB()
257
431k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
258
415k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
259
415k
    ::protobuf_yb_2ftserver_2ftserver_5ftypes_2eproto::InitDefaultsTabletServerErrorPB();
260
415k
  }
261
431k
  SharedCtor();
262
  // @@protoc_insertion_point(constructor:yb.tserver.TabletServerErrorPB)
263
431k
}
264
TabletServerErrorPB::TabletServerErrorPB(const TabletServerErrorPB& from)
265
  : ::google::protobuf::Message(),
266
      _internal_metadata_(NULL),
267
      _has_bits_(from._has_bits_),
268
0
      _cached_size_(0) {
269
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
270
0
  if (from.has_status()) {
271
0
    status_ = new ::yb::AppStatusPB(*from.status_);
272
0
  } else {
273
0
    status_ = NULL;
274
0
  }
275
0
  code_ = from.code_;
276
  // @@protoc_insertion_point(copy_constructor:yb.tserver.TabletServerErrorPB)
277
0
}
278
279
431k
void TabletServerErrorPB::SharedCtor() {
280
431k
  _cached_size_ = 0;
281
431k
  status_ = NULL;
282
431k
  code_ = 1;
283
431k
}
284
285
404k
TabletServerErrorPB::~TabletServerErrorPB() {
286
  // @@protoc_insertion_point(destructor:yb.tserver.TabletServerErrorPB)
287
404k
  SharedDtor();
288
404k
}
289
290
404k
void TabletServerErrorPB::SharedDtor() {
291
404k
  if (this != internal_default_instance()) delete status_;
292
404k
}
293
294
0
void TabletServerErrorPB::SetCachedSize(int size) const {
295
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
296
0
  _cached_size_ = size;
297
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
298
0
}
299
0
const ::google::protobuf::Descriptor* TabletServerErrorPB::descriptor() {
300
0
  ::protobuf_yb_2ftserver_2ftserver_5ftypes_2eproto::protobuf_AssignDescriptorsOnce();
301
0
  return ::protobuf_yb_2ftserver_2ftserver_5ftypes_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
302
0
}
303
304
0
const TabletServerErrorPB& TabletServerErrorPB::default_instance() {
305
0
  ::protobuf_yb_2ftserver_2ftserver_5ftypes_2eproto::InitDefaultsTabletServerErrorPB();
306
0
  return *internal_default_instance();
307
0
}
308
309
0
TabletServerErrorPB* TabletServerErrorPB::New(::google::protobuf::Arena* arena) const {
310
0
  TabletServerErrorPB* n = new TabletServerErrorPB;
311
0
  if (arena != NULL) {
312
0
    arena->Own(n);
313
0
  }
314
0
  return n;
315
0
}
316
317
110k
void TabletServerErrorPB::Clear() {
318
// @@protoc_insertion_point(message_clear_start:yb.tserver.TabletServerErrorPB)
319
110k
  ::google::protobuf::uint32 cached_has_bits = 0;
320
  // Prevent compiler warnings about cached_has_bits being unused
321
110k
  (void) cached_has_bits;
322
323
110k
  cached_has_bits = _has_bits_[0];
324
110k
  if (cached_has_bits & 3u) {
325
110k
    if (cached_has_bits & 0x00000001u) {
326
110k
      GOOGLE_DCHECK(status_ != NULL);
327
110k
      status_->Clear();
328
110k
    }
329
110k
    code_ = 1;
330
110k
  }
331
110k
  _has_bits_.Clear();
332
110k
  _internal_metadata_.Clear();
333
110k
}
334
335
bool TabletServerErrorPB::MergePartialFromCodedStream(
336
188k
    ::google::protobuf::io::CodedInputStream* input) {
337
376k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
338
188k
  ::google::protobuf::uint32 tag;
339
  // @@protoc_insertion_point(parse_start:yb.tserver.TabletServerErrorPB)
340
565k
  for (;;) {
341
565k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
342
565k
    tag = p.first;
343
565k
    if (!p.second) goto handle_unusual;
344
376k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
345
      // required .yb.tserver.TabletServerErrorPB.Code code = 1 [default = UNKNOWN_ERROR];
346
188k
      case 1: {
347
188k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
348
188k
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
349
188k
          int value;
350
188k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
351
188k
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
352
188k
                 input, &value)));
353
188k
          if (::yb::tserver::TabletServerErrorPB_Code_IsValid(value)) {
354
188k
            set_code(static_cast< ::yb::tserver::TabletServerErrorPB_Code >(value));
355
5
          } else {
356
5
            mutable_unknown_fields()->AddVarint(
357
5
                1, static_cast< ::google::protobuf::uint64>(value));
358
5
          }
359
18.4E
        } else {
360
18.4E
          goto handle_unusual;
361
18.4E
        }
362
188k
        break;
363
188k
      }
364
365
      // required .yb.AppStatusPB status = 2;
366
188k
      case 2: {
367
188k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
368
188k
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
369
188k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
370
188k
               input, mutable_status()));
371
18.4E
        } else {
372
18.4E
          goto handle_unusual;
373
18.4E
        }
374
188k
        break;
375
188k
      }
376
377
0
      default: {
378
188k
      handle_unusual:
379
188k
        if (tag == 0) {
380
188k
          goto success;
381
188k
        }
382
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
383
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
384
18.4E
        break;
385
18.4E
      }
386
376k
    }
387
376k
  }
388
188k
success:
389
  // @@protoc_insertion_point(parse_success:yb.tserver.TabletServerErrorPB)
390
188k
  return true;
391
0
failure:
392
  // @@protoc_insertion_point(parse_failure:yb.tserver.TabletServerErrorPB)
393
0
  return false;
394
188k
#undef DO_
395
188k
}
396
397
void TabletServerErrorPB::SerializeWithCachedSizes(
398
0
    ::google::protobuf::io::CodedOutputStream* output) const {
399
  // @@protoc_insertion_point(serialize_start:yb.tserver.TabletServerErrorPB)
400
0
  ::google::protobuf::uint32 cached_has_bits = 0;
401
0
  (void) cached_has_bits;
402
403
0
  cached_has_bits = _has_bits_[0];
404
  // required .yb.tserver.TabletServerErrorPB.Code code = 1 [default = UNKNOWN_ERROR];
405
0
  if (cached_has_bits & 0x00000002u) {
406
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
407
0
      1, this->code(), output);
408
0
  }
409
410
  // required .yb.AppStatusPB status = 2;
411
0
  if (cached_has_bits & 0x00000001u) {
412
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
413
0
      2, *this->status_, output);
414
0
  }
415
416
0
  if (_internal_metadata_.have_unknown_fields()) {
417
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
418
0
        _internal_metadata_.unknown_fields(), output);
419
0
  }
420
  // @@protoc_insertion_point(serialize_end:yb.tserver.TabletServerErrorPB)
421
0
}
422
423
::google::protobuf::uint8* TabletServerErrorPB::InternalSerializeWithCachedSizesToArray(
424
188k
    bool deterministic, ::google::protobuf::uint8* target) const {
425
188k
  (void)deterministic; // Unused
426
  // @@protoc_insertion_point(serialize_to_array_start:yb.tserver.TabletServerErrorPB)
427
188k
  ::google::protobuf::uint32 cached_has_bits = 0;
428
188k
  (void) cached_has_bits;
429
430
188k
  cached_has_bits = _has_bits_[0];
431
  // required .yb.tserver.TabletServerErrorPB.Code code = 1 [default = UNKNOWN_ERROR];
432
188k
  if (cached_has_bits & 0x00000002u) {
433
188k
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
434
188k
      1, this->code(), target);
435
188k
  }
436
437
  // required .yb.AppStatusPB status = 2;
438
188k
  if (cached_has_bits & 0x00000001u) {
439
188k
    target = ::google::protobuf::internal::WireFormatLite::
440
188k
      InternalWriteMessageToArray(
441
188k
        2, *this->status_, deterministic, target);
442
188k
  }
443
444
188k
  if (_internal_metadata_.have_unknown_fields()) {
445
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
446
0
        _internal_metadata_.unknown_fields(), target);
447
0
  }
448
  // @@protoc_insertion_point(serialize_to_array_end:yb.tserver.TabletServerErrorPB)
449
188k
  return target;
450
188k
}
451
452
0
size_t TabletServerErrorPB::RequiredFieldsByteSizeFallback() const {
453
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:yb.tserver.TabletServerErrorPB)
454
0
  size_t total_size = 0;
455
456
0
  if (has_status()) {
457
    // required .yb.AppStatusPB status = 2;
458
0
    total_size += 1 +
459
0
      ::google::protobuf::internal::WireFormatLite::MessageSize(
460
0
        *this->status_);
461
0
  }
462
463
0
  if (has_code()) {
464
    // required .yb.tserver.TabletServerErrorPB.Code code = 1 [default = UNKNOWN_ERROR];
465
0
    total_size += 1 +
466
0
      ::google::protobuf::internal::WireFormatLite::EnumSize(this->code());
467
0
  }
468
469
0
  return total_size;
470
0
}
471
377k
size_t TabletServerErrorPB::ByteSizeLong() const {
472
// @@protoc_insertion_point(message_byte_size_start:yb.tserver.TabletServerErrorPB)
473
377k
  size_t total_size = 0;
474
475
377k
  if (_internal_metadata_.have_unknown_fields()) {
476
0
    total_size +=
477
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
478
0
        _internal_metadata_.unknown_fields());
479
0
  }
480
377k
  if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) {  // All required fields are present.
481
    // required .yb.AppStatusPB status = 2;
482
377k
    total_size += 1 +
483
377k
      ::google::protobuf::internal::WireFormatLite::MessageSize(
484
377k
        *this->status_);
485
486
    // required .yb.tserver.TabletServerErrorPB.Code code = 1 [default = UNKNOWN_ERROR];
487
377k
    total_size += 1 +
488
377k
      ::google::protobuf::internal::WireFormatLite::EnumSize(this->code());
489
490
402
  } else {
491
402
    total_size += RequiredFieldsByteSizeFallback();
492
402
  }
493
377k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
494
377k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
495
377k
  _cached_size_ = cached_size;
496
377k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
497
377k
  return total_size;
498
377k
}
499
500
0
void TabletServerErrorPB::MergeFrom(const ::google::protobuf::Message& from) {
501
// @@protoc_insertion_point(generalized_merge_from_start:yb.tserver.TabletServerErrorPB)
502
0
  GOOGLE_DCHECK_NE(&from, this);
503
0
  const TabletServerErrorPB* source =
504
0
      ::google::protobuf::internal::DynamicCastToGenerated<const TabletServerErrorPB>(
505
0
          &from);
506
0
  if (source == NULL) {
507
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.tserver.TabletServerErrorPB)
508
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
509
0
  } else {
510
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.tserver.TabletServerErrorPB)
511
0
    MergeFrom(*source);
512
0
  }
513
0
}
514
515
49
void TabletServerErrorPB::MergeFrom(const TabletServerErrorPB& from) {
516
// @@protoc_insertion_point(class_specific_merge_from_start:yb.tserver.TabletServerErrorPB)
517
49
  GOOGLE_DCHECK_NE(&from, this);
518
49
  _internal_metadata_.MergeFrom(from._internal_metadata_);
519
49
  ::google::protobuf::uint32 cached_has_bits = 0;
520
49
  (void) cached_has_bits;
521
522
49
  cached_has_bits = from._has_bits_[0];
523
49
  if (cached_has_bits & 3u) {
524
49
    if (cached_has_bits & 0x00000001u) {
525
49
      mutable_status()->::yb::AppStatusPB::MergeFrom(from.status());
526
49
    }
527
49
    if (cached_has_bits & 0x00000002u) {
528
49
      code_ = from.code_;
529
49
    }
530
49
    _has_bits_[0] |= cached_has_bits;
531
49
  }
532
49
}
533
534
0
void TabletServerErrorPB::CopyFrom(const ::google::protobuf::Message& from) {
535
// @@protoc_insertion_point(generalized_copy_from_start:yb.tserver.TabletServerErrorPB)
536
0
  if (&from == this) return;
537
0
  Clear();
538
0
  MergeFrom(from);
539
0
}
540
541
1
void TabletServerErrorPB::CopyFrom(const TabletServerErrorPB& from) {
542
// @@protoc_insertion_point(class_specific_copy_from_start:yb.tserver.TabletServerErrorPB)
543
1
  if (&from == this) return;
544
1
  Clear();
545
1
  MergeFrom(from);
546
1
}
547
548
382k
bool TabletServerErrorPB::IsInitialized() const {
549
382k
  if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
550
382k
  if (has_status()) {
551
381k
    if (!this->status_->IsInitialized()) return false;
552
382k
  }
553
382k
  return true;
554
382k
}
555
556
0
void TabletServerErrorPB::Swap(TabletServerErrorPB* other) {
557
0
  if (other == this) return;
558
0
  InternalSwap(other);
559
0
}
560
0
void TabletServerErrorPB::InternalSwap(TabletServerErrorPB* other) {
561
0
  using std::swap;
562
0
  swap(status_, other->status_);
563
0
  swap(code_, other->code_);
564
0
  swap(_has_bits_[0], other->_has_bits_[0]);
565
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
566
0
  swap(_cached_size_, other->_cached_size_);
567
0
}
568
569
11.7k
::google::protobuf::Metadata TabletServerErrorPB::GetMetadata() const {
570
11.7k
  protobuf_yb_2ftserver_2ftserver_5ftypes_2eproto::protobuf_AssignDescriptorsOnce();
571
11.7k
  return ::protobuf_yb_2ftserver_2ftserver_5ftypes_2eproto::file_level_metadata[kIndexInFileMessages];
572
11.7k
}
573
574
575
// @@protoc_insertion_point(namespace_scope)
576
}  // namespace tserver
577
}  // namespace yb
578
579
// @@protoc_insertion_point(global_scope)