YugabyteDB (2.13.1.0-b60, 21121d69985fbf76aa6958d8f04a9bfa936293b5)

Coverage Report

Created: 2022-03-22 16:43

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