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/common/wire_protocol.pb.cc
Line
Count
Source (jump to first uncovered line)
1
// Generated by the protocol buffer compiler.  DO NOT EDIT!
2
// source: yb/common/wire_protocol.proto
3
4
#include "yb/common/wire_protocol.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
class AppStatusPBDefaultTypeInternal {
25
 public:
26
  ::google::protobuf::internal::ExplicitlyConstructed<AppStatusPB>
27
      _instance;
28
  ::google::protobuf::int32 posix_code_;
29
  ::google::protobuf::int64 ql_error_code_;
30
} _AppStatusPB_default_instance_;
31
class NodeInstancePBDefaultTypeInternal {
32
 public:
33
  ::google::protobuf::internal::ExplicitlyConstructed<NodeInstancePB>
34
      _instance;
35
} _NodeInstancePB_default_instance_;
36
class ServerRegistrationPBDefaultTypeInternal {
37
 public:
38
  ::google::protobuf::internal::ExplicitlyConstructed<ServerRegistrationPB>
39
      _instance;
40
} _ServerRegistrationPB_default_instance_;
41
class ServerEntryPBDefaultTypeInternal {
42
 public:
43
  ::google::protobuf::internal::ExplicitlyConstructed<ServerEntryPB>
44
      _instance;
45
} _ServerEntryPB_default_instance_;
46
}  // namespace yb
47
namespace protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto {
48
28.1k
void InitDefaultsAppStatusPBImpl() {
49
28.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
50
51
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
52
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
53
#else
54
28.1k
  ::google::protobuf::internal::InitProtobufDefaults();
55
28.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
56
28.1k
  {
57
28.1k
    void* ptr = &::yb::_AppStatusPB_default_instance_;
58
28.1k
    new (ptr) ::yb::AppStatusPB();
59
28.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
60
28.1k
  }
61
28.1k
  ::yb::AppStatusPB::InitAsDefaultInstance();
62
28.1k
}
63
64
4.65M
void InitDefaultsAppStatusPB() {
65
4.65M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
66
4.65M
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsAppStatusPBImpl);
67
4.65M
}
68
69
28.1k
void InitDefaultsNodeInstancePBImpl() {
70
28.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
71
72
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
73
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
74
#else
75
28.1k
  ::google::protobuf::internal::InitProtobufDefaults();
76
28.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
77
28.1k
  {
78
28.1k
    void* ptr = &::yb::_NodeInstancePB_default_instance_;
79
28.1k
    new (ptr) ::yb::NodeInstancePB();
80
28.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
81
28.1k
  }
82
28.1k
  ::yb::NodeInstancePB::InitAsDefaultInstance();
83
28.1k
}
84
85
118M
void InitDefaultsNodeInstancePB() {
86
118M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
87
118M
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsNodeInstancePBImpl);
88
118M
}
89
90
28.1k
void InitDefaultsServerRegistrationPBImpl() {
91
28.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
92
93
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
94
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
95
#else
96
28.1k
  ::google::protobuf::internal::InitProtobufDefaults();
97
28.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
98
28.1k
  protobuf_yb_2fcommon_2fcommon_5fnet_2eproto::InitDefaultsHostPortPB();
99
28.1k
  protobuf_yb_2fcommon_2fcommon_5fnet_2eproto::InitDefaultsCloudInfoPB();
100
28.1k
  {
101
28.1k
    void* ptr = &::yb::_ServerRegistrationPB_default_instance_;
102
28.1k
    new (ptr) ::yb::ServerRegistrationPB();
103
28.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
104
28.1k
  }
105
28.1k
  ::yb::ServerRegistrationPB::InitAsDefaultInstance();
106
28.1k
}
107
108
97.4M
void InitDefaultsServerRegistrationPB() {
109
97.4M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
110
97.4M
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsServerRegistrationPBImpl);
111
97.4M
}
112
113
28.1k
void InitDefaultsServerEntryPBImpl() {
114
28.1k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
115
116
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
117
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
118
#else
119
28.1k
  ::google::protobuf::internal::InitProtobufDefaults();
120
28.1k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
121
28.1k
  protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::InitDefaultsAppStatusPB();
122
28.1k
  protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::InitDefaultsNodeInstancePB();
123
28.1k
  protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::InitDefaultsServerRegistrationPB();
124
28.1k
  {
125
28.1k
    void* ptr = &::yb::_ServerEntryPB_default_instance_;
126
28.1k
    new (ptr) ::yb::ServerEntryPB();
127
28.1k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
128
28.1k
  }
129
28.1k
  ::yb::ServerEntryPB::InitAsDefaultInstance();
130
28.1k
}
131
132
2.72M
void InitDefaultsServerEntryPB() {
133
2.72M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
134
2.72M
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsServerEntryPBImpl);
135
2.72M
}
136
137
::google::protobuf::Metadata file_level_metadata[4];
138
const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1];
139
140
const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
141
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::AppStatusPB, _has_bits_),
142
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::AppStatusPB, _internal_metadata_),
143
  ~0u,  // no _extensions_
144
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::AppStatusPB, _oneof_case_[0]),
145
  ~0u,  // no _weak_field_map_
146
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::AppStatusPB, code_),
147
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::AppStatusPB, message_),
148
  offsetof(::yb::AppStatusPBDefaultTypeInternal, posix_code_),
149
  offsetof(::yb::AppStatusPBDefaultTypeInternal, ql_error_code_),
150
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::AppStatusPB, source_file_),
151
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::AppStatusPB, source_line_),
152
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::AppStatusPB, errors_),
153
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::AppStatusPB, error_codes_),
154
  4,
155
  0,
156
  ~0u,
157
  ~0u,
158
  1,
159
  3,
160
  2,
161
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::NodeInstancePB, _has_bits_),
162
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::NodeInstancePB, _internal_metadata_),
163
  ~0u,  // no _extensions_
164
  ~0u,  // no _oneof_case_
165
  ~0u,  // no _weak_field_map_
166
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::NodeInstancePB, permanent_uuid_),
167
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::NodeInstancePB, instance_seqno_),
168
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::NodeInstancePB, start_time_us_),
169
  0,
170
  1,
171
  2,
172
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ServerRegistrationPB, _has_bits_),
173
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ServerRegistrationPB, _internal_metadata_),
174
  ~0u,  // no _extensions_
175
  ~0u,  // no _oneof_case_
176
  ~0u,  // no _weak_field_map_
177
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ServerRegistrationPB, private_rpc_addresses_),
178
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ServerRegistrationPB, broadcast_addresses_),
179
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ServerRegistrationPB, http_addresses_),
180
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ServerRegistrationPB, pg_port_),
181
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ServerRegistrationPB, cloud_info_),
182
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ServerRegistrationPB, placement_uuid_),
183
  ~0u,
184
  ~0u,
185
  ~0u,
186
  2,
187
  1,
188
  0,
189
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ServerEntryPB, _has_bits_),
190
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ServerEntryPB, _internal_metadata_),
191
  ~0u,  // no _extensions_
192
  ~0u,  // no _oneof_case_
193
  ~0u,  // no _weak_field_map_
194
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ServerEntryPB, error_),
195
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ServerEntryPB, instance_id_),
196
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ServerEntryPB, registration_),
197
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::ServerEntryPB, role_),
198
  0,
199
  1,
200
  2,
201
  3,
202
};
203
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
204
  { 0, 13, sizeof(::yb::AppStatusPB)},
205
  { 20, 28, sizeof(::yb::NodeInstancePB)},
206
  { 31, 42, sizeof(::yb::ServerRegistrationPB)},
207
  { 48, 57, sizeof(::yb::ServerEntryPB)},
208
};
209
210
static ::google::protobuf::Message const * const file_default_instances[] = {
211
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_AppStatusPB_default_instance_),
212
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_NodeInstancePB_default_instance_),
213
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_ServerRegistrationPB_default_instance_),
214
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::_ServerEntryPB_default_instance_),
215
};
216
217
13.3k
void protobuf_AssignDescriptors() {
218
13.3k
  AddDescriptors();
219
13.3k
  ::google::protobuf::MessageFactory* factory = NULL;
220
13.3k
  AssignDescriptors(
221
13.3k
      "yb/common/wire_protocol.proto", schemas, file_default_instances, TableStruct::offsets, factory,
222
13.3k
      file_level_metadata, file_level_enum_descriptors, NULL);
223
13.3k
}
224
225
6.51M
void protobuf_AssignDescriptorsOnce() {
226
6.51M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
227
6.51M
  ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
228
6.51M
}
229
230
void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
231
0
void protobuf_RegisterTypes(const ::std::string&) {
232
0
  protobuf_AssignDescriptorsOnce();
233
0
  ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 4);
234
0
}
235
236
28.1k
void AddDescriptorsImpl() {
237
28.1k
  InitDefaults();
238
28.1k
  static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
239
28.1k
      "\n\035yb/common/wire_protocol.proto\022\002yb\032\032yb/"
240
28.1k
      "common/common_net.proto\032\034yb/common/commo"
241
28.1k
      "n_types.proto\"\252\006\n\013AppStatusPB\022\'\n\004code\030\001 "
242
28.1k
      "\002(\0162\031.yb.AppStatusPB.ErrorCode\022\017\n\007messag"
243
28.1k
      "e\030\002 \001(\t\022\024\n\nposix_code\030\004 \001(\005H\000\022\027\n\rql_erro"
244
28.1k
      "r_code\030\005 \001(\003H\000\022\023\n\013source_file\030\006 \001(\t\022\023\n\013s"
245
28.1k
      "ource_line\030\007 \001(\005\022\016\n\006errors\030\t \001(\014\"\350\004\n\tErr"
246
28.1k
      "orCode\022\022\n\rUNKNOWN_ERROR\020\347\007\022\006\n\002OK\020\000\022\r\n\tNO"
247
28.1k
      "T_FOUND\020\001\022\016\n\nCORRUPTION\020\002\022\021\n\rNOT_SUPPORT"
248
28.1k
      "ED\020\003\022\024\n\020INVALID_ARGUMENT\020\004\022\014\n\010IO_ERROR\020\005"
249
28.1k
      "\022\023\n\017ALREADY_PRESENT\020\006\022\021\n\rRUNTIME_ERROR\020\007"
250
28.1k
      "\022\021\n\rNETWORK_ERROR\020\010\022\021\n\rILLEGAL_STATE\020\t\022\022"
251
28.1k
      "\n\016NOT_AUTHORIZED\020\n\022\013\n\007ABORTED\020\013\022\020\n\014REMOT"
252
28.1k
      "E_ERROR\020\014\022\027\n\023SERVICE_UNAVAILABLE\020\r\022\r\n\tTI"
253
28.1k
      "MED_OUT\020\016\022\021\n\rUNINITIALIZED\020\017\022\027\n\023CONFIGUR"
254
28.1k
      "ATION_ERROR\020\020\022\016\n\nINCOMPLETE\020\021\022\017\n\013END_OF_"
255
28.1k
      "FILE\020\022\022\023\n\017INVALID_COMMAND\020\023\022\014\n\010QL_ERROR\020"
256
28.1k
      "\024\022\022\n\016INTERNAL_ERROR\020\025\022\013\n\007EXPIRED\020\026\022\035\n\031LE"
257
28.1k
      "ADER_NOT_READY_TO_SERVE\020\027\022\027\n\023LEADER_HAS_"
258
28.1k
      "NO_LEASE\020\030\022\022\n\016TRY_AGAIN_CODE\020\031\022\010\n\004BUSY\020\032"
259
28.1k
      "\022\030\n\024SHUTDOWN_IN_PROGRESS\020\033\022\025\n\021MERGE_IN_P"
260
28.1k
      "ROGRESS\020\034\022\022\n\016COMBINED_ERROR\020\035\022\024\n\020SNAPSHO"
261
28.1k
      "T_TOO_OLD\020\036B\r\n\013error_codes\"W\n\016NodeInstan"
262
28.1k
      "cePB\022\026\n\016permanent_uuid\030\001 \002(\014\022\026\n\016instance"
263
28.1k
      "_seqno\030\002 \002(\003\022\025\n\rstart_time_us\030\003 \001(\004\"\356\001\n\024"
264
28.1k
      "ServerRegistrationPB\022-\n\025private_rpc_addr"
265
28.1k
      "esses\030\001 \003(\0132\016.yb.HostPortPB\022+\n\023broadcast"
266
28.1k
      "_addresses\030\005 \003(\0132\016.yb.HostPortPB\022&\n\016http"
267
28.1k
      "_addresses\030\002 \003(\0132\016.yb.HostPortPB\022\025\n\007pg_p"
268
28.1k
      "ort\030\006 \001(\r:\0045433\022#\n\ncloud_info\030\003 \001(\0132\017.yb"
269
28.1k
      ".CloudInfoPB\022\026\n\016placement_uuid\030\004 \001(\014\"\244\001\n"
270
28.1k
      "\rServerEntryPB\022\036\n\005error\030\001 \001(\0132\017.yb.AppSt"
271
28.1k
      "atusPB\022\'\n\013instance_id\030\002 \001(\0132\022.yb.NodeIns"
272
28.1k
      "tancePB\022.\n\014registration\030\003 \001(\0132\030.yb.Serve"
273
28.1k
      "rRegistrationPB\022\032\n\004role\030\004 \001(\0162\014.yb.PeerR"
274
28.1k
      "oleB\010\n\006org.yb"
275
28.1k
  };
276
28.1k
  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
277
28.1k
      descriptor, 1413);
278
28.1k
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
279
28.1k
    "yb/common/wire_protocol.proto", &protobuf_RegisterTypes);
280
28.1k
  ::protobuf_yb_2fcommon_2fcommon_5fnet_2eproto::AddDescriptors();
281
28.1k
  ::protobuf_yb_2fcommon_2fcommon_5ftypes_2eproto::AddDescriptors();
282
28.1k
}
283
284
407k
void AddDescriptors() {
285
407k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
286
407k
  ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
287
407k
}
288
// Force AddDescriptors() to be called at dynamic initialization time.
289
struct StaticDescriptorInitializer {
290
28.1k
  StaticDescriptorInitializer() {
291
28.1k
    AddDescriptors();
292
28.1k
  }
293
} static_descriptor_initializer;
294
}  // namespace protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto
295
namespace yb {
296
2
const ::google::protobuf::EnumDescriptor* AppStatusPB_ErrorCode_descriptor() {
297
2
  protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
298
2
  return protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::file_level_enum_descriptors[0];
299
2
}
300
5.32M
bool AppStatusPB_ErrorCode_IsValid(int value) {
301
5.32M
  switch (value) {
302
1
    case 0:
303
29.0k
    case 1:
304
29.0k
    case 2:
305
29.0k
    case 3:
306
670k
    case 4:
307
748k
    case 5:
308
779k
    case 6:
309
779k
    case 7:
310
779k
    case 8:
311
2.91M
    case 9:
312
2.91M
    case 10:
313
2.91M
    case 11:
314
2.91M
    case 12:
315
4.49M
    case 13:
316
4.49M
    case 14:
317
4.49M
    case 15:
318
4.49M
    case 16:
319
4.49M
    case 17:
320
4.49M
    case 18:
321
4.49M
    case 19:
322
4.53M
    case 20:
323
4.53M
    case 21:
324
4.65M
    case 22:
325
4.67M
    case 23:
326
4.71M
    case 24:
327
5.32M
    case 25:
328
5.32M
    case 26:
329
5.32M
    case 27:
330
5.32M
    case 28:
331
5.32M
    case 29:
332
5.32M
    case 30:
333
5.32M
    case 999:
334
5.32M
      return true;
335
0
    default:
336
0
      return false;
337
5.32M
  }
338
5.32M
}
339
340
#if !defined(_MSC_VER) || _MSC_VER >= 1900
341
const AppStatusPB_ErrorCode AppStatusPB::UNKNOWN_ERROR;
342
const AppStatusPB_ErrorCode AppStatusPB::OK;
343
const AppStatusPB_ErrorCode AppStatusPB::NOT_FOUND;
344
const AppStatusPB_ErrorCode AppStatusPB::CORRUPTION;
345
const AppStatusPB_ErrorCode AppStatusPB::NOT_SUPPORTED;
346
const AppStatusPB_ErrorCode AppStatusPB::INVALID_ARGUMENT;
347
const AppStatusPB_ErrorCode AppStatusPB::IO_ERROR;
348
const AppStatusPB_ErrorCode AppStatusPB::ALREADY_PRESENT;
349
const AppStatusPB_ErrorCode AppStatusPB::RUNTIME_ERROR;
350
const AppStatusPB_ErrorCode AppStatusPB::NETWORK_ERROR;
351
const AppStatusPB_ErrorCode AppStatusPB::ILLEGAL_STATE;
352
const AppStatusPB_ErrorCode AppStatusPB::NOT_AUTHORIZED;
353
const AppStatusPB_ErrorCode AppStatusPB::ABORTED;
354
const AppStatusPB_ErrorCode AppStatusPB::REMOTE_ERROR;
355
const AppStatusPB_ErrorCode AppStatusPB::SERVICE_UNAVAILABLE;
356
const AppStatusPB_ErrorCode AppStatusPB::TIMED_OUT;
357
const AppStatusPB_ErrorCode AppStatusPB::UNINITIALIZED;
358
const AppStatusPB_ErrorCode AppStatusPB::CONFIGURATION_ERROR;
359
const AppStatusPB_ErrorCode AppStatusPB::INCOMPLETE;
360
const AppStatusPB_ErrorCode AppStatusPB::END_OF_FILE;
361
const AppStatusPB_ErrorCode AppStatusPB::INVALID_COMMAND;
362
const AppStatusPB_ErrorCode AppStatusPB::QL_ERROR;
363
const AppStatusPB_ErrorCode AppStatusPB::INTERNAL_ERROR;
364
const AppStatusPB_ErrorCode AppStatusPB::EXPIRED;
365
const AppStatusPB_ErrorCode AppStatusPB::LEADER_NOT_READY_TO_SERVE;
366
const AppStatusPB_ErrorCode AppStatusPB::LEADER_HAS_NO_LEASE;
367
const AppStatusPB_ErrorCode AppStatusPB::TRY_AGAIN_CODE;
368
const AppStatusPB_ErrorCode AppStatusPB::BUSY;
369
const AppStatusPB_ErrorCode AppStatusPB::SHUTDOWN_IN_PROGRESS;
370
const AppStatusPB_ErrorCode AppStatusPB::MERGE_IN_PROGRESS;
371
const AppStatusPB_ErrorCode AppStatusPB::COMBINED_ERROR;
372
const AppStatusPB_ErrorCode AppStatusPB::SNAPSHOT_TOO_OLD;
373
const AppStatusPB_ErrorCode AppStatusPB::ErrorCode_MIN;
374
const AppStatusPB_ErrorCode AppStatusPB::ErrorCode_MAX;
375
const int AppStatusPB::ErrorCode_ARRAYSIZE;
376
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
377
378
// ===================================================================
379
380
28.1k
void AppStatusPB::InitAsDefaultInstance() {
381
28.1k
  ::yb::_AppStatusPB_default_instance_.posix_code_ = 0;
382
28.1k
  ::yb::_AppStatusPB_default_instance_.ql_error_code_ = GOOGLE_LONGLONG(0);
383
28.1k
}
384
#if !defined(_MSC_VER) || _MSC_VER >= 1900
385
const int AppStatusPB::kCodeFieldNumber;
386
const int AppStatusPB::kMessageFieldNumber;
387
const int AppStatusPB::kPosixCodeFieldNumber;
388
const int AppStatusPB::kQlErrorCodeFieldNumber;
389
const int AppStatusPB::kSourceFileFieldNumber;
390
const int AppStatusPB::kSourceLineFieldNumber;
391
const int AppStatusPB::kErrorsFieldNumber;
392
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
393
394
AppStatusPB::AppStatusPB()
395
3.51M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
396
3.51M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
397
3.47M
    ::protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::InitDefaultsAppStatusPB();
398
3.47M
  }
399
3.51M
  SharedCtor();
400
  // @@protoc_insertion_point(constructor:yb.AppStatusPB)
401
3.51M
}
402
AppStatusPB::AppStatusPB(const AppStatusPB& from)
403
  : ::google::protobuf::Message(),
404
      _internal_metadata_(NULL),
405
      _has_bits_(from._has_bits_),
406
5
      _cached_size_(0) {
407
5
  _internal_metadata_.MergeFrom(from._internal_metadata_);
408
5
  message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
409
5
  if (from.has_message()) {
410
5
    message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_);
411
5
  }
412
5
  source_file_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
413
5
  if (from.has_source_file()) {
414
5
    source_file_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_file_);
415
5
  }
416
5
  errors_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
417
5
  if (from.has_errors()) {
418
5
    errors_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.errors_);
419
5
  }
420
5
  ::memcpy(&source_line_, &from.source_line_,
421
5
    static_cast<size_t>(reinterpret_cast<char*>(&code_) -
422
5
    reinterpret_cast<char*>(&source_line_)) + sizeof(code_));
423
5
  clear_has_error_codes();
424
5
  switch (from.error_codes_case()) {
425
0
    case kPosixCode: {
426
0
      set_posix_code(from.posix_code());
427
0
      break;
428
0
    }
429
0
    case kQlErrorCode: {
430
0
      set_ql_error_code(from.ql_error_code());
431
0
      break;
432
0
    }
433
5
    case ERROR_CODES_NOT_SET: {
434
5
      break;
435
0
    }
436
5
  }
437
  // @@protoc_insertion_point(copy_constructor:yb.AppStatusPB)
438
5
}
439
440
3.51M
void AppStatusPB::SharedCtor() {
441
3.51M
  _cached_size_ = 0;
442
3.51M
  message_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
443
3.51M
  source_file_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
444
3.51M
  errors_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
445
3.51M
  source_line_ = 0;
446
3.51M
  code_ = 999;
447
3.51M
  clear_has_error_codes();
448
3.51M
}
449
450
3.42M
AppStatusPB::~AppStatusPB() {
451
  // @@protoc_insertion_point(destructor:yb.AppStatusPB)
452
3.42M
  SharedDtor();
453
3.42M
}
454
455
3.42M
void AppStatusPB::SharedDtor() {
456
3.42M
  message_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
457
3.42M
  source_file_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
458
3.42M
  errors_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
459
3.42M
  if (has_error_codes()) {
460
17
    clear_error_codes();
461
17
  }
462
3.42M
}
463
464
0
void AppStatusPB::SetCachedSize(int size) const {
465
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
466
0
  _cached_size_ = size;
467
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
468
0
}
469
0
const ::google::protobuf::Descriptor* AppStatusPB::descriptor() {
470
0
  ::protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
471
0
  return ::protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
472
0
}
473
474
0
const AppStatusPB& AppStatusPB::default_instance() {
475
0
  ::protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::InitDefaultsAppStatusPB();
476
0
  return *internal_default_instance();
477
0
}
478
479
0
AppStatusPB* AppStatusPB::New(::google::protobuf::Arena* arena) const {
480
0
  AppStatusPB* n = new AppStatusPB;
481
0
  if (arena != NULL) {
482
0
    arena->Own(n);
483
0
  }
484
0
  return n;
485
0
}
486
487
2.13M
void AppStatusPB::clear_error_codes() {
488
// @@protoc_insertion_point(one_of_clear_start:yb.AppStatusPB)
489
2.13M
  switch (error_codes_case()) {
490
31
    case kPosixCode: {
491
      // No need to clear
492
31
      break;
493
0
    }
494
0
    case kQlErrorCode: {
495
      // No need to clear
496
0
      break;
497
0
    }
498
2.12M
    case ERROR_CODES_NOT_SET: {
499
2.12M
      break;
500
0
    }
501
2.13M
  }
502
2.12M
  _oneof_case_[0] = ERROR_CODES_NOT_SET;
503
2.12M
}
504
505
506
2.13M
void AppStatusPB::Clear() {
507
// @@protoc_insertion_point(message_clear_start:yb.AppStatusPB)
508
2.13M
  ::google::protobuf::uint32 cached_has_bits = 0;
509
  // Prevent compiler warnings about cached_has_bits being unused
510
2.13M
  (void) cached_has_bits;
511
512
2.13M
  cached_has_bits = _has_bits_[0];
513
2.13M
  if (cached_has_bits & 7u) {
514
269k
    if (
cached_has_bits & 0x00000001u269k
) {
515
269k
      GOOGLE_DCHECK(!message_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
516
269k
      (*message_.UnsafeRawStringPointer())->clear();
517
269k
    }
518
269k
    if (cached_has_bits & 0x00000002u) {
519
269k
      GOOGLE_DCHECK(!source_file_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
520
269k
      (*source_file_.UnsafeRawStringPointer())->clear();
521
269k
    }
522
269k
    if (
cached_has_bits & 0x00000004u269k
) {
523
269k
      GOOGLE_DCHECK(!errors_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
524
269k
      (*errors_.UnsafeRawStringPointer())->clear();
525
269k
    }
526
269k
  }
527
2.13M
  if (cached_has_bits & 24u) {
528
269k
    source_line_ = 0;
529
269k
    code_ = 999;
530
269k
  }
531
2.13M
  clear_error_codes();
532
2.13M
  _has_bits_.Clear();
533
2.13M
  _internal_metadata_.Clear();
534
2.13M
}
535
536
bool AppStatusPB::MergePartialFromCodedStream(
537
1.73M
    ::google::protobuf::io::CodedInputStream* input) {
538
8.66M
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
539
1.73M
  ::google::protobuf::uint32 tag;
540
  // @@protoc_insertion_point(parse_start:yb.AppStatusPB)
541
10.3M
  for (;;) {
542
10.3M
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
543
10.3M
    tag = p.first;
544
10.3M
    if (!p.second) 
goto handle_unusual1.73M
;
545
8.65M
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
546
      // required .yb.AppStatusPB.ErrorCode code = 1;
547
1.72M
      case 1: {
548
1.72M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
549
1.73M
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
550
1.73M
          int value;
551
1.73M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
552
1.73M
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
553
1.73M
                 input, &value)));
554
1.73M
          if (::yb::AppStatusPB_ErrorCode_IsValid(value)) {
555
1.72M
            set_code(static_cast< ::yb::AppStatusPB_ErrorCode >(value));
556
1.72M
          } else {
557
4.52k
            mutable_unknown_fields()->AddVarint(
558
4.52k
                1, static_cast< ::google::protobuf::uint64>(value));
559
4.52k
          }
560
18.4E
        } else {
561
18.4E
          goto handle_unusual;
562
18.4E
        }
563
1.73M
        break;
564
1.72M
      }
565
566
      // optional string message = 2;
567
1.73M
      case 2: {
568
1.72M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
569
1.72M
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
570
1.72M
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
571
1.72M
                input, this->mutable_message()));
572
1.72M
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
573
1.72M
            this->message().data(), static_cast<int>(this->message().length()),
574
1.72M
            ::google::protobuf::internal::WireFormat::PARSE,
575
1.72M
            "yb.AppStatusPB.message");
576
18.4E
        } else {
577
18.4E
          goto handle_unusual;
578
18.4E
        }
579
1.72M
        break;
580
1.72M
      }
581
582
      // optional int32 posix_code = 4;
583
1.72M
      case 4: {
584
13
        if (static_cast< ::google::protobuf::uint8>(tag) ==
585
13
            static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
586
13
          clear_error_codes();
587
13
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
588
13
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
589
13
                 input, &error_codes_.posix_code_)));
590
13
          set_has_posix_code();
591
13
        } else {
592
0
          goto handle_unusual;
593
0
        }
594
13
        break;
595
13
      }
596
597
      // optional int64 ql_error_code = 5;
598
13
      case 5: {
599
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
600
0
            static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
601
0
          clear_error_codes();
602
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
603
0
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
604
0
                 input, &error_codes_.ql_error_code_)));
605
0
          set_has_ql_error_code();
606
0
        } else {
607
0
          goto handle_unusual;
608
0
        }
609
0
        break;
610
0
      }
611
612
      // optional string source_file = 6;
613
1.73M
      case 6: {
614
1.73M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
615
1.73M
            static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
616
1.73M
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
617
1.73M
                input, this->mutable_source_file()));
618
1.73M
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
619
1.73M
            this->source_file().data(), static_cast<int>(this->source_file().length()),
620
1.73M
            ::google::protobuf::internal::WireFormat::PARSE,
621
1.73M
            "yb.AppStatusPB.source_file");
622
18.4E
        } else {
623
18.4E
          goto handle_unusual;
624
18.4E
        }
625
1.73M
        break;
626
1.73M
      }
627
628
      // optional int32 source_line = 7;
629
1.73M
      case 7: {
630
1.73M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
631
1.73M
            static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
632
1.73M
          set_has_source_line();
633
1.73M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
634
1.73M
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
635
1.73M
                 input, &source_line_)));
636
18.4E
        } else {
637
18.4E
          goto handle_unusual;
638
18.4E
        }
639
1.73M
        break;
640
1.73M
      }
641
642
      // optional bytes errors = 9;
643
1.73M
      case 9: {
644
1.73M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
645
1.73M
            static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) {
646
1.73M
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
647
1.73M
                input, this->mutable_errors()));
648
18.4E
        } else {
649
18.4E
          goto handle_unusual;
650
18.4E
        }
651
1.73M
        break;
652
1.73M
      }
653
654
1.73M
      default: {
655
1.73M
      handle_unusual:
656
1.73M
        if (
tag == 01.73M
) {
657
1.73M
          goto success;
658
1.73M
        }
659
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
660
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
661
18.4E
        break;
662
18.4E
      }
663
8.65M
    }
664
8.65M
  }
665
1.73M
success:
666
  // @@protoc_insertion_point(parse_success:yb.AppStatusPB)
667
1.73M
  return true;
668
0
failure:
669
  // @@protoc_insertion_point(parse_failure:yb.AppStatusPB)
670
0
  return false;
671
1.73M
#undef DO_
672
1.73M
}
673
674
void AppStatusPB::SerializeWithCachedSizes(
675
0
    ::google::protobuf::io::CodedOutputStream* output) const {
676
  // @@protoc_insertion_point(serialize_start:yb.AppStatusPB)
677
0
  ::google::protobuf::uint32 cached_has_bits = 0;
678
0
  (void) cached_has_bits;
679
680
0
  cached_has_bits = _has_bits_[0];
681
  // required .yb.AppStatusPB.ErrorCode code = 1;
682
0
  if (cached_has_bits & 0x00000010u) {
683
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
684
0
      1, this->code(), output);
685
0
  }
686
687
  // optional string message = 2;
688
0
  if (cached_has_bits & 0x00000001u) {
689
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
690
0
      this->message().data(), static_cast<int>(this->message().length()),
691
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
692
0
      "yb.AppStatusPB.message");
693
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
694
0
      2, this->message(), output);
695
0
  }
696
697
0
  switch (error_codes_case()) {
698
0
    case kPosixCode:
699
0
      ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->posix_code(), output);
700
0
      break;
701
0
    case kQlErrorCode:
702
0
      ::google::protobuf::internal::WireFormatLite::WriteInt64(5, this->ql_error_code(), output);
703
0
      break;
704
0
    default: ;
705
0
  }
706
  // optional string source_file = 6;
707
0
  if (cached_has_bits & 0x00000002u) {
708
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
709
0
      this->source_file().data(), static_cast<int>(this->source_file().length()),
710
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
711
0
      "yb.AppStatusPB.source_file");
712
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
713
0
      6, this->source_file(), output);
714
0
  }
715
716
  // optional int32 source_line = 7;
717
0
  if (cached_has_bits & 0x00000008u) {
718
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->source_line(), output);
719
0
  }
720
721
  // optional bytes errors = 9;
722
0
  if (cached_has_bits & 0x00000004u) {
723
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
724
0
      9, this->errors(), output);
725
0
  }
726
727
0
  if (_internal_metadata_.have_unknown_fields()) {
728
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
729
0
        _internal_metadata_.unknown_fields(), output);
730
0
  }
731
  // @@protoc_insertion_point(serialize_end:yb.AppStatusPB)
732
0
}
733
734
::google::protobuf::uint8* AppStatusPB::InternalSerializeWithCachedSizesToArray(
735
1.71M
    bool deterministic, ::google::protobuf::uint8* target) const {
736
1.71M
  (void)deterministic; // Unused
737
  // @@protoc_insertion_point(serialize_to_array_start:yb.AppStatusPB)
738
1.71M
  ::google::protobuf::uint32 cached_has_bits = 0;
739
1.71M
  (void) cached_has_bits;
740
741
1.71M
  cached_has_bits = _has_bits_[0];
742
  // required .yb.AppStatusPB.ErrorCode code = 1;
743
1.71M
  if (cached_has_bits & 0x00000010u) {
744
1.70M
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
745
1.70M
      1, this->code(), target);
746
1.70M
  }
747
748
  // optional string message = 2;
749
1.71M
  if (cached_has_bits & 0x00000001u) {
750
1.70M
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
751
1.70M
      this->message().data(), static_cast<int>(this->message().length()),
752
1.70M
      ::google::protobuf::internal::WireFormat::SERIALIZE,
753
1.70M
      "yb.AppStatusPB.message");
754
1.70M
    target =
755
1.70M
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
756
1.70M
        2, this->message(), target);
757
1.70M
  }
758
759
1.71M
  switch (error_codes_case()) {
760
17
    case kPosixCode:
761
17
      target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->posix_code(), target);
762
17
      break;
763
0
    case kQlErrorCode:
764
0
      target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(5, this->ql_error_code(), target);
765
0
      break;
766
1.70M
    default: ;
767
1.71M
  }
768
  // optional string source_file = 6;
769
1.70M
  
if (1.70M
cached_has_bits & 0x00000002u1.70M
) {
770
1.70M
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
771
1.70M
      this->source_file().data(), static_cast<int>(this->source_file().length()),
772
1.70M
      ::google::protobuf::internal::WireFormat::SERIALIZE,
773
1.70M
      "yb.AppStatusPB.source_file");
774
1.70M
    target =
775
1.70M
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
776
1.70M
        6, this->source_file(), target);
777
1.70M
  }
778
779
  // optional int32 source_line = 7;
780
1.70M
  if (
cached_has_bits & 0x00000008u1.70M
) {
781
1.70M
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->source_line(), target);
782
1.70M
  }
783
784
  // optional bytes errors = 9;
785
1.70M
  if (
cached_has_bits & 0x00000004u1.70M
) {
786
1.70M
    target =
787
1.70M
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
788
1.70M
        9, this->errors(), target);
789
1.70M
  }
790
791
1.70M
  if (_internal_metadata_.have_unknown_fields()) {
792
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
793
0
        _internal_metadata_.unknown_fields(), target);
794
0
  }
795
  // @@protoc_insertion_point(serialize_to_array_end:yb.AppStatusPB)
796
1.70M
  return target;
797
1.71M
}
798
799
3.41M
size_t AppStatusPB::ByteSizeLong() const {
800
// @@protoc_insertion_point(message_byte_size_start:yb.AppStatusPB)
801
3.41M
  size_t total_size = 0;
802
803
3.41M
  if (_internal_metadata_.have_unknown_fields()) {
804
0
    total_size +=
805
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
806
0
        _internal_metadata_.unknown_fields());
807
0
  }
808
  // required .yb.AppStatusPB.ErrorCode code = 1;
809
3.41M
  if (has_code()) {
810
3.41M
    total_size += 1 +
811
3.41M
      ::google::protobuf::internal::WireFormatLite::EnumSize(this->code());
812
3.41M
  }
813
3.41M
  if (_has_bits_[0 / 32] & 15u) {
814
    // optional string message = 2;
815
3.41M
    if (has_message()) {
816
3.41M
      total_size += 1 +
817
3.41M
        ::google::protobuf::internal::WireFormatLite::StringSize(
818
3.41M
          this->message());
819
3.41M
    }
820
821
    // optional string source_file = 6;
822
3.41M
    if (
has_source_file()3.41M
) {
823
3.41M
      total_size += 1 +
824
3.41M
        ::google::protobuf::internal::WireFormatLite::StringSize(
825
3.41M
          this->source_file());
826
3.41M
    }
827
828
    // optional bytes errors = 9;
829
3.41M
    if (has_errors()) {
830
3.41M
      total_size += 1 +
831
3.41M
        ::google::protobuf::internal::WireFormatLite::BytesSize(
832
3.41M
          this->errors());
833
3.41M
    }
834
835
    // optional int32 source_line = 7;
836
3.41M
    if (
has_source_line()3.41M
) {
837
3.41M
      total_size += 1 +
838
3.41M
        ::google::protobuf::internal::WireFormatLite::Int32Size(
839
3.41M
          this->source_line());
840
3.41M
    }
841
842
3.41M
  }
843
3.41M
  switch (error_codes_case()) {
844
    // optional int32 posix_code = 4;
845
33
    case kPosixCode: {
846
33
      total_size += 1 +
847
33
        ::google::protobuf::internal::WireFormatLite::Int32Size(
848
33
          this->posix_code());
849
33
      break;
850
0
    }
851
    // optional int64 ql_error_code = 5;
852
0
    case kQlErrorCode: {
853
0
      total_size += 1 +
854
0
        ::google::protobuf::internal::WireFormatLite::Int64Size(
855
0
          this->ql_error_code());
856
0
      break;
857
0
    }
858
3.41M
    case ERROR_CODES_NOT_SET: {
859
3.41M
      break;
860
0
    }
861
3.41M
  }
862
3.41M
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
863
3.41M
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
864
3.41M
  _cached_size_ = cached_size;
865
3.41M
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
866
3.41M
  return total_size;
867
3.41M
}
868
869
0
void AppStatusPB::MergeFrom(const ::google::protobuf::Message& from) {
870
// @@protoc_insertion_point(generalized_merge_from_start:yb.AppStatusPB)
871
0
  GOOGLE_DCHECK_NE(&from, this);
872
0
  const AppStatusPB* source =
873
0
      ::google::protobuf::internal::DynamicCastToGenerated<const AppStatusPB>(
874
0
          &from);
875
0
  if (source == NULL) {
876
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.AppStatusPB)
877
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
878
0
  } else {
879
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.AppStatusPB)
880
0
    MergeFrom(*source);
881
0
  }
882
0
}
883
884
2.25k
void AppStatusPB::MergeFrom(const AppStatusPB& from) {
885
// @@protoc_insertion_point(class_specific_merge_from_start:yb.AppStatusPB)
886
2.25k
  GOOGLE_DCHECK_NE(&from, this);
887
2.25k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
888
2.25k
  ::google::protobuf::uint32 cached_has_bits = 0;
889
2.25k
  (void) cached_has_bits;
890
891
2.25k
  cached_has_bits = from._has_bits_[0];
892
2.25k
  if (cached_has_bits & 31u) {
893
2.25k
    if (cached_has_bits & 0x00000001u) {
894
2.25k
      set_has_message();
895
2.25k
      message_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.message_);
896
2.25k
    }
897
2.25k
    if (cached_has_bits & 0x00000002u) {
898
2.25k
      set_has_source_file();
899
2.25k
      source_file_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.source_file_);
900
2.25k
    }
901
2.25k
    if (cached_has_bits & 0x00000004u) {
902
2.25k
      set_has_errors();
903
2.25k
      errors_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.errors_);
904
2.25k
    }
905
2.25k
    if (cached_has_bits & 0x00000008u) {
906
2.25k
      source_line_ = from.source_line_;
907
2.25k
    }
908
2.25k
    if (cached_has_bits & 0x00000010u) {
909
2.25k
      code_ = from.code_;
910
2.25k
    }
911
2.25k
    _has_bits_[0] |= cached_has_bits;
912
2.25k
  }
913
2.25k
  switch (from.error_codes_case()) {
914
0
    case kPosixCode: {
915
0
      set_posix_code(from.posix_code());
916
0
      break;
917
0
    }
918
0
    case kQlErrorCode: {
919
0
      set_ql_error_code(from.ql_error_code());
920
0
      break;
921
0
    }
922
2.25k
    case ERROR_CODES_NOT_SET: {
923
2.25k
      break;
924
0
    }
925
2.25k
  }
926
2.25k
}
927
928
0
void AppStatusPB::CopyFrom(const ::google::protobuf::Message& from) {
929
// @@protoc_insertion_point(generalized_copy_from_start:yb.AppStatusPB)
930
0
  if (&from == this) return;
931
0
  Clear();
932
0
  MergeFrom(from);
933
0
}
934
935
0
void AppStatusPB::CopyFrom(const AppStatusPB& from) {
936
// @@protoc_insertion_point(class_specific_copy_from_start:yb.AppStatusPB)
937
0
  if (&from == this) return;
938
0
  Clear();
939
0
  MergeFrom(from);
940
0
}
941
942
3.69M
bool AppStatusPB::IsInitialized() const {
943
3.69M
  if ((_has_bits_[0] & 0x00000010) != 0x00000010) 
return false0
;
944
3.69M
  return true;
945
3.69M
}
946
947
0
void AppStatusPB::Swap(AppStatusPB* other) {
948
0
  if (other == this) return;
949
0
  InternalSwap(other);
950
0
}
951
0
void AppStatusPB::InternalSwap(AppStatusPB* other) {
952
0
  using std::swap;
953
0
  message_.Swap(&other->message_);
954
0
  source_file_.Swap(&other->source_file_);
955
0
  errors_.Swap(&other->errors_);
956
0
  swap(source_line_, other->source_line_);
957
0
  swap(code_, other->code_);
958
0
  swap(error_codes_, other->error_codes_);
959
0
  swap(_oneof_case_[0], other->_oneof_case_[0]);
960
0
  swap(_has_bits_[0], other->_has_bits_[0]);
961
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
962
0
  swap(_cached_size_, other->_cached_size_);
963
0
}
964
965
1.13M
::google::protobuf::Metadata AppStatusPB::GetMetadata() const {
966
1.13M
  protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
967
1.13M
  return ::protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
968
1.13M
}
969
970
971
// ===================================================================
972
973
28.1k
void NodeInstancePB::InitAsDefaultInstance() {
974
28.1k
}
975
#if !defined(_MSC_VER) || _MSC_VER >= 1900
976
const int NodeInstancePB::kPermanentUuidFieldNumber;
977
const int NodeInstancePB::kInstanceSeqnoFieldNumber;
978
const int NodeInstancePB::kStartTimeUsFieldNumber;
979
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
980
981
NodeInstancePB::NodeInstancePB()
982
118M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
983
118M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
984
118M
    ::protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::InitDefaultsNodeInstancePB();
985
118M
  }
986
118M
  SharedCtor();
987
  // @@protoc_insertion_point(constructor:yb.NodeInstancePB)
988
118M
}
989
NodeInstancePB::NodeInstancePB(const NodeInstancePB& from)
990
  : ::google::protobuf::Message(),
991
      _internal_metadata_(NULL),
992
      _has_bits_(from._has_bits_),
993
585k
      _cached_size_(0) {
994
585k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
995
585k
  permanent_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
996
585k
  if (from.has_permanent_uuid()) {
997
585k
    permanent_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.permanent_uuid_);
998
585k
  }
999
585k
  ::memcpy(&instance_seqno_, &from.instance_seqno_,
1000
585k
    static_cast<size_t>(reinterpret_cast<char*>(&start_time_us_) -
1001
585k
    reinterpret_cast<char*>(&instance_seqno_)) + sizeof(start_time_us_));
1002
  // @@protoc_insertion_point(copy_constructor:yb.NodeInstancePB)
1003
585k
}
1004
1005
118M
void NodeInstancePB::SharedCtor() {
1006
118M
  _cached_size_ = 0;
1007
118M
  permanent_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1008
118M
  ::memset(&instance_seqno_, 0, static_cast<size_t>(
1009
118M
      reinterpret_cast<char*>(&start_time_us_) -
1010
118M
      reinterpret_cast<char*>(&instance_seqno_)) + sizeof(start_time_us_));
1011
118M
}
1012
1013
119M
NodeInstancePB::~NodeInstancePB() {
1014
  // @@protoc_insertion_point(destructor:yb.NodeInstancePB)
1015
119M
  SharedDtor();
1016
119M
}
1017
1018
119M
void NodeInstancePB::SharedDtor() {
1019
119M
  permanent_uuid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1020
119M
}
1021
1022
0
void NodeInstancePB::SetCachedSize(int size) const {
1023
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1024
0
  _cached_size_ = size;
1025
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1026
0
}
1027
0
const ::google::protobuf::Descriptor* NodeInstancePB::descriptor() {
1028
0
  ::protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
1029
0
  return ::protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
1030
0
}
1031
1032
0
const NodeInstancePB& NodeInstancePB::default_instance() {
1033
0
  ::protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::InitDefaultsNodeInstancePB();
1034
0
  return *internal_default_instance();
1035
0
}
1036
1037
0
NodeInstancePB* NodeInstancePB::New(::google::protobuf::Arena* arena) const {
1038
0
  NodeInstancePB* n = new NodeInstancePB;
1039
0
  if (arena != NULL) {
1040
0
    arena->Own(n);
1041
0
  }
1042
0
  return n;
1043
0
}
1044
1045
88.3M
void NodeInstancePB::Clear() {
1046
// @@protoc_insertion_point(message_clear_start:yb.NodeInstancePB)
1047
88.3M
  ::google::protobuf::uint32 cached_has_bits = 0;
1048
  // Prevent compiler warnings about cached_has_bits being unused
1049
88.3M
  (void) cached_has_bits;
1050
1051
88.3M
  cached_has_bits = _has_bits_[0];
1052
88.3M
  if (cached_has_bits & 0x00000001u) {
1053
46.1M
    GOOGLE_DCHECK(!permanent_uuid_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
1054
46.1M
    (*permanent_uuid_.UnsafeRawStringPointer())->clear();
1055
46.1M
  }
1056
88.3M
  if (cached_has_bits & 6u) {
1057
46.1M
    ::memset(&instance_seqno_, 0, static_cast<size_t>(
1058
46.1M
        reinterpret_cast<char*>(&start_time_us_) -
1059
46.1M
        reinterpret_cast<char*>(&instance_seqno_)) + sizeof(start_time_us_));
1060
46.1M
  }
1061
88.3M
  _has_bits_.Clear();
1062
88.3M
  _internal_metadata_.Clear();
1063
88.3M
}
1064
1065
bool NodeInstancePB::MergePartialFromCodedStream(
1066
59.1M
    ::google::protobuf::io::CodedInputStream* input) {
1067
158M
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
1068
59.1M
  ::google::protobuf::uint32 tag;
1069
  // @@protoc_insertion_point(parse_start:yb.NodeInstancePB)
1070
216M
  for (;;) {
1071
216M
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1072
216M
    tag = p.first;
1073
216M
    if (!p.second) 
goto handle_unusual58.7M
;
1074
157M
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1075
      // required bytes permanent_uuid = 1;
1076
58.6M
      case 1: {
1077
58.6M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1078
58.6M
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
1079
58.6M
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
1080
58.6M
                input, this->mutable_permanent_uuid()));
1081
18.4E
        } else {
1082
18.4E
          goto handle_unusual;
1083
18.4E
        }
1084
58.6M
        break;
1085
58.6M
      }
1086
1087
      // required int64 instance_seqno = 2;
1088
58.7M
      case 2: {
1089
58.7M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1090
58.8M
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
1091
58.8M
          set_has_instance_seqno();
1092
58.8M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1093
58.8M
                   ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
1094
58.8M
                 input, &instance_seqno_)));
1095
18.4E
        } else {
1096
18.4E
          goto handle_unusual;
1097
18.4E
        }
1098
58.8M
        break;
1099
58.7M
      }
1100
1101
      // optional uint64 start_time_us = 3;
1102
58.8M
      case 3: {
1103
41.1M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1104
41.2M
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
1105
41.2M
          set_has_start_time_us();
1106
41.2M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1107
41.2M
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
1108
41.2M
                 input, &start_time_us_)));
1109
18.4E
        } else {
1110
18.4E
          goto handle_unusual;
1111
18.4E
        }
1112
41.2M
        break;
1113
41.1M
      }
1114
1115
41.2M
      default: {
1116
58.6M
      handle_unusual:
1117
58.6M
        if (
tag == 058.6M
) {
1118
58.6M
          goto success;
1119
58.6M
        }
1120
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
1121
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
1122
18.4E
        break;
1123
18.4E
      }
1124
157M
    }
1125
157M
  }
1126
58.7M
success:
1127
  // @@protoc_insertion_point(parse_success:yb.NodeInstancePB)
1128
58.7M
  return true;
1129
0
failure:
1130
  // @@protoc_insertion_point(parse_failure:yb.NodeInstancePB)
1131
0
  return false;
1132
59.1M
#undef DO_
1133
59.1M
}
1134
1135
void NodeInstancePB::SerializeWithCachedSizes(
1136
0
    ::google::protobuf::io::CodedOutputStream* output) const {
1137
  // @@protoc_insertion_point(serialize_start:yb.NodeInstancePB)
1138
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1139
0
  (void) cached_has_bits;
1140
1141
0
  cached_has_bits = _has_bits_[0];
1142
  // required bytes permanent_uuid = 1;
1143
0
  if (cached_has_bits & 0x00000001u) {
1144
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
1145
0
      1, this->permanent_uuid(), output);
1146
0
  }
1147
1148
  // required int64 instance_seqno = 2;
1149
0
  if (cached_has_bits & 0x00000002u) {
1150
0
    ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->instance_seqno(), output);
1151
0
  }
1152
1153
  // optional uint64 start_time_us = 3;
1154
0
  if (cached_has_bits & 0x00000004u) {
1155
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->start_time_us(), output);
1156
0
  }
1157
1158
0
  if (_internal_metadata_.have_unknown_fields()) {
1159
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1160
0
        _internal_metadata_.unknown_fields(), output);
1161
0
  }
1162
  // @@protoc_insertion_point(serialize_end:yb.NodeInstancePB)
1163
0
}
1164
1165
::google::protobuf::uint8* NodeInstancePB::InternalSerializeWithCachedSizesToArray(
1166
57.1M
    bool deterministic, ::google::protobuf::uint8* target) const {
1167
57.1M
  (void)deterministic; // Unused
1168
  // @@protoc_insertion_point(serialize_to_array_start:yb.NodeInstancePB)
1169
57.1M
  ::google::protobuf::uint32 cached_has_bits = 0;
1170
57.1M
  (void) cached_has_bits;
1171
1172
57.1M
  cached_has_bits = _has_bits_[0];
1173
  // required bytes permanent_uuid = 1;
1174
57.1M
  if (
cached_has_bits & 0x00000001u57.1M
) {
1175
57.1M
    target =
1176
57.1M
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
1177
57.1M
        1, this->permanent_uuid(), target);
1178
57.1M
  }
1179
1180
  // required int64 instance_seqno = 2;
1181
57.1M
  if (
cached_has_bits & 0x00000002u57.1M
) {
1182
57.1M
    target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->instance_seqno(), target);
1183
57.1M
  }
1184
1185
  // optional uint64 start_time_us = 3;
1186
57.1M
  if (cached_has_bits & 0x00000004u) {
1187
39.4M
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->start_time_us(), target);
1188
39.4M
  }
1189
1190
57.1M
  if (_internal_metadata_.have_unknown_fields()) {
1191
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1192
0
        _internal_metadata_.unknown_fields(), target);
1193
0
  }
1194
  // @@protoc_insertion_point(serialize_to_array_end:yb.NodeInstancePB)
1195
57.1M
  return target;
1196
57.1M
}
1197
1198
0
size_t NodeInstancePB::RequiredFieldsByteSizeFallback() const {
1199
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:yb.NodeInstancePB)
1200
0
  size_t total_size = 0;
1201
1202
0
  if (has_permanent_uuid()) {
1203
    // required bytes permanent_uuid = 1;
1204
0
    total_size += 1 +
1205
0
      ::google::protobuf::internal::WireFormatLite::BytesSize(
1206
0
        this->permanent_uuid());
1207
0
  }
1208
1209
0
  if (has_instance_seqno()) {
1210
    // required int64 instance_seqno = 2;
1211
0
    total_size += 1 +
1212
0
      ::google::protobuf::internal::WireFormatLite::Int64Size(
1213
0
        this->instance_seqno());
1214
0
  }
1215
1216
0
  return total_size;
1217
0
}
1218
114M
size_t NodeInstancePB::ByteSizeLong() const {
1219
// @@protoc_insertion_point(message_byte_size_start:yb.NodeInstancePB)
1220
114M
  size_t total_size = 0;
1221
1222
114M
  if (_internal_metadata_.have_unknown_fields()) {
1223
0
    total_size +=
1224
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1225
0
        _internal_metadata_.unknown_fields());
1226
0
  }
1227
114M
  if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) {  // All required fields are present.
1228
    // required bytes permanent_uuid = 1;
1229
114M
    total_size += 1 +
1230
114M
      ::google::protobuf::internal::WireFormatLite::BytesSize(
1231
114M
        this->permanent_uuid());
1232
1233
    // required int64 instance_seqno = 2;
1234
114M
    total_size += 1 +
1235
114M
      ::google::protobuf::internal::WireFormatLite::Int64Size(
1236
114M
        this->instance_seqno());
1237
1238
114M
  } else {
1239
19.1k
    total_size += RequiredFieldsByteSizeFallback();
1240
19.1k
  }
1241
  // optional uint64 start_time_us = 3;
1242
114M
  if (has_start_time_us()) {
1243
78.9M
    total_size += 1 +
1244
78.9M
      ::google::protobuf::internal::WireFormatLite::UInt64Size(
1245
78.9M
        this->start_time_us());
1246
78.9M
  }
1247
1248
114M
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1249
114M
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1250
114M
  _cached_size_ = cached_size;
1251
114M
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1252
114M
  return total_size;
1253
114M
}
1254
1255
0
void NodeInstancePB::MergeFrom(const ::google::protobuf::Message& from) {
1256
// @@protoc_insertion_point(generalized_merge_from_start:yb.NodeInstancePB)
1257
0
  GOOGLE_DCHECK_NE(&from, this);
1258
0
  const NodeInstancePB* source =
1259
0
      ::google::protobuf::internal::DynamicCastToGenerated<const NodeInstancePB>(
1260
0
          &from);
1261
0
  if (source == NULL) {
1262
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.NodeInstancePB)
1263
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1264
0
  } else {
1265
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.NodeInstancePB)
1266
0
    MergeFrom(*source);
1267
0
  }
1268
0
}
1269
1270
105M
void NodeInstancePB::MergeFrom(const NodeInstancePB& from) {
1271
// @@protoc_insertion_point(class_specific_merge_from_start:yb.NodeInstancePB)
1272
105M
  GOOGLE_DCHECK_NE(&from, this);
1273
105M
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1274
105M
  ::google::protobuf::uint32 cached_has_bits = 0;
1275
105M
  (void) cached_has_bits;
1276
1277
105M
  cached_has_bits = from._has_bits_[0];
1278
105M
  if (cached_has_bits & 7u) {
1279
105M
    if (
cached_has_bits & 0x00000001u105M
) {
1280
105M
      set_has_permanent_uuid();
1281
105M
      permanent_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.permanent_uuid_);
1282
105M
    }
1283
105M
    if (
cached_has_bits & 0x00000002u105M
) {
1284
105M
      instance_seqno_ = from.instance_seqno_;
1285
105M
    }
1286
105M
    if (cached_has_bits & 0x00000004u) {
1287
70.6M
      start_time_us_ = from.start_time_us_;
1288
70.6M
    }
1289
105M
    _has_bits_[0] |= cached_has_bits;
1290
105M
  }
1291
105M
}
1292
1293
0
void NodeInstancePB::CopyFrom(const ::google::protobuf::Message& from) {
1294
// @@protoc_insertion_point(generalized_copy_from_start:yb.NodeInstancePB)
1295
0
  if (&from == this) return;
1296
0
  Clear();
1297
0
  MergeFrom(from);
1298
0
}
1299
1300
70.6M
void NodeInstancePB::CopyFrom(const NodeInstancePB& from) {
1301
// @@protoc_insertion_point(class_specific_copy_from_start:yb.NodeInstancePB)
1302
70.6M
  if (&from == this) 
return0
;
1303
70.6M
  Clear();
1304
70.6M
  MergeFrom(from);
1305
70.6M
}
1306
1307
116M
bool NodeInstancePB::IsInitialized() const {
1308
116M
  if ((_has_bits_[0] & 0x00000003) != 0x00000003) 
return false0
;
1309
116M
  return true;
1310
116M
}
1311
1312
0
void NodeInstancePB::Swap(NodeInstancePB* other) {
1313
0
  if (other == this) return;
1314
0
  InternalSwap(other);
1315
0
}
1316
34.5k
void NodeInstancePB::InternalSwap(NodeInstancePB* other) {
1317
34.5k
  using std::swap;
1318
34.5k
  permanent_uuid_.Swap(&other->permanent_uuid_);
1319
34.5k
  swap(instance_seqno_, other->instance_seqno_);
1320
34.5k
  swap(start_time_us_, other->start_time_us_);
1321
34.5k
  swap(_has_bits_[0], other->_has_bits_[0]);
1322
34.5k
  _internal_metadata_.Swap(&other->_internal_metadata_);
1323
34.5k
  swap(_cached_size_, other->_cached_size_);
1324
34.5k
}
1325
1326
5.19M
::google::protobuf::Metadata NodeInstancePB::GetMetadata() const {
1327
5.19M
  protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
1328
5.19M
  return ::protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
1329
5.19M
}
1330
1331
1332
// ===================================================================
1333
1334
28.1k
void ServerRegistrationPB::InitAsDefaultInstance() {
1335
28.1k
  ::yb::_ServerRegistrationPB_default_instance_._instance.get_mutable()->cloud_info_ = const_cast< ::yb::CloudInfoPB*>(
1336
28.1k
      ::yb::CloudInfoPB::internal_default_instance());
1337
28.1k
}
1338
0
void ServerRegistrationPB::clear_private_rpc_addresses() {
1339
0
  private_rpc_addresses_.Clear();
1340
0
}
1341
0
void ServerRegistrationPB::clear_broadcast_addresses() {
1342
0
  broadcast_addresses_.Clear();
1343
0
}
1344
0
void ServerRegistrationPB::clear_http_addresses() {
1345
0
  http_addresses_.Clear();
1346
0
}
1347
0
void ServerRegistrationPB::clear_cloud_info() {
1348
0
  if (cloud_info_ != NULL) cloud_info_->Clear();
1349
0
  clear_has_cloud_info();
1350
0
}
1351
#if !defined(_MSC_VER) || _MSC_VER >= 1900
1352
const int ServerRegistrationPB::kPrivateRpcAddressesFieldNumber;
1353
const int ServerRegistrationPB::kBroadcastAddressesFieldNumber;
1354
const int ServerRegistrationPB::kHttpAddressesFieldNumber;
1355
const int ServerRegistrationPB::kPgPortFieldNumber;
1356
const int ServerRegistrationPB::kCloudInfoFieldNumber;
1357
const int ServerRegistrationPB::kPlacementUuidFieldNumber;
1358
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
1359
1360
ServerRegistrationPB::ServerRegistrationPB()
1361
96.8M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1362
97.2M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
1363
97.2M
    ::protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::InitDefaultsServerRegistrationPB();
1364
97.2M
  }
1365
96.8M
  SharedCtor();
1366
  // @@protoc_insertion_point(constructor:yb.ServerRegistrationPB)
1367
96.8M
}
1368
ServerRegistrationPB::ServerRegistrationPB(const ServerRegistrationPB& from)
1369
  : ::google::protobuf::Message(),
1370
      _internal_metadata_(NULL),
1371
      _has_bits_(from._has_bits_),
1372
      _cached_size_(0),
1373
      private_rpc_addresses_(from.private_rpc_addresses_),
1374
      http_addresses_(from.http_addresses_),
1375
1.89M
      broadcast_addresses_(from.broadcast_addresses_) {
1376
1.89M
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1377
1.89M
  placement_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1378
1.89M
  if (from.has_placement_uuid()) {
1379
1.89M
    placement_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.placement_uuid_);
1380
1.89M
  }
1381
1.89M
  if (
from.has_cloud_info()1.89M
) {
1382
1.89M
    cloud_info_ = new ::yb::CloudInfoPB(*from.cloud_info_);
1383
18.4E
  } else {
1384
18.4E
    cloud_info_ = NULL;
1385
18.4E
  }
1386
1.89M
  pg_port_ = from.pg_port_;
1387
  // @@protoc_insertion_point(copy_constructor:yb.ServerRegistrationPB)
1388
1.89M
}
1389
1390
97.2M
void ServerRegistrationPB::SharedCtor() {
1391
97.2M
  _cached_size_ = 0;
1392
97.2M
  placement_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1393
97.2M
  cloud_info_ = NULL;
1394
97.2M
  pg_port_ = 5433u;
1395
97.2M
}
1396
1397
99.5M
ServerRegistrationPB::~ServerRegistrationPB() {
1398
  // @@protoc_insertion_point(destructor:yb.ServerRegistrationPB)
1399
99.5M
  SharedDtor();
1400
99.5M
}
1401
1402
99.5M
void ServerRegistrationPB::SharedDtor() {
1403
99.5M
  placement_uuid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1404
99.5M
  if (this != internal_default_instance()) 
delete cloud_info_99.5M
;
1405
99.5M
}
1406
1407
0
void ServerRegistrationPB::SetCachedSize(int size) const {
1408
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1409
0
  _cached_size_ = size;
1410
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1411
0
}
1412
0
const ::google::protobuf::Descriptor* ServerRegistrationPB::descriptor() {
1413
0
  ::protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
1414
0
  return ::protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
1415
0
}
1416
1417
0
const ServerRegistrationPB& ServerRegistrationPB::default_instance() {
1418
0
  ::protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::InitDefaultsServerRegistrationPB();
1419
0
  return *internal_default_instance();
1420
0
}
1421
1422
0
ServerRegistrationPB* ServerRegistrationPB::New(::google::protobuf::Arena* arena) const {
1423
0
  ServerRegistrationPB* n = new ServerRegistrationPB;
1424
0
  if (arena != NULL) {
1425
0
    arena->Own(n);
1426
0
  }
1427
0
  return n;
1428
0
}
1429
1430
77.7M
void ServerRegistrationPB::Clear() {
1431
// @@protoc_insertion_point(message_clear_start:yb.ServerRegistrationPB)
1432
77.7M
  ::google::protobuf::uint32 cached_has_bits = 0;
1433
  // Prevent compiler warnings about cached_has_bits being unused
1434
77.7M
  (void) cached_has_bits;
1435
1436
77.7M
  private_rpc_addresses_.Clear();
1437
77.7M
  http_addresses_.Clear();
1438
77.7M
  broadcast_addresses_.Clear();
1439
77.7M
  cached_has_bits = _has_bits_[0];
1440
77.7M
  if (cached_has_bits & 7u) {
1441
45.7M
    if (
cached_has_bits & 0x00000001u45.7M
) {
1442
45.7M
      GOOGLE_DCHECK(!placement_uuid_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
1443
45.7M
      (*placement_uuid_.UnsafeRawStringPointer())->clear();
1444
45.7M
    }
1445
45.7M
    if (
cached_has_bits & 0x00000002u45.7M
) {
1446
45.7M
      GOOGLE_DCHECK(cloud_info_ != NULL);
1447
45.7M
      cloud_info_->Clear();
1448
45.7M
    }
1449
45.7M
    pg_port_ = 5433u;
1450
45.7M
  }
1451
77.7M
  _has_bits_.Clear();
1452
77.7M
  _internal_metadata_.Clear();
1453
77.7M
}
1454
1455
bool ServerRegistrationPB::MergePartialFromCodedStream(
1456
48.5M
    ::google::protobuf::io::CodedInputStream* input) {
1457
211M
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
1458
48.5M
  ::google::protobuf::uint32 tag;
1459
  // @@protoc_insertion_point(parse_start:yb.ServerRegistrationPB)
1460
259M
  for (;;) {
1461
259M
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1462
259M
    tag = p.first;
1463
259M
    if (!p.second) 
goto handle_unusual48.2M
;
1464
211M
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1465
      // repeated .yb.HostPortPB private_rpc_addresses = 1;
1466
48.1M
      case 1: {
1467
48.1M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1468
48.2M
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
1469
48.2M
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_private_rpc_addresses()));
1470
18.4E
        } else {
1471
18.4E
          goto handle_unusual;
1472
18.4E
        }
1473
48.2M
        break;
1474
48.1M
      }
1475
1476
      // repeated .yb.HostPortPB http_addresses = 2;
1477
48.2M
      case 2: {
1478
48.0M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1479
48.0M
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
1480
48.0M
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_http_addresses()));
1481
18.4E
        } else {
1482
18.4E
          goto handle_unusual;
1483
18.4E
        }
1484
48.0M
        break;
1485
48.0M
      }
1486
1487
      // optional .yb.CloudInfoPB cloud_info = 3;
1488
48.5M
      case 3: {
1489
48.5M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1490
48.5M
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
1491
48.5M
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
1492
48.5M
               input, mutable_cloud_info()));
1493
18.4E
        } else {
1494
18.4E
          goto handle_unusual;
1495
18.4E
        }
1496
48.5M
        break;
1497
48.5M
      }
1498
1499
      // optional bytes placement_uuid = 4;
1500
48.5M
      case 4: {
1501
48.4M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1502
48.5M
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
1503
48.5M
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
1504
48.5M
                input, this->mutable_placement_uuid()));
1505
18.4E
        } else {
1506
18.4E
          goto handle_unusual;
1507
18.4E
        }
1508
48.5M
        break;
1509
48.4M
      }
1510
1511
      // repeated .yb.HostPortPB broadcast_addresses = 5;
1512
48.5M
      case 5: {
1513
159k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1514
159k
            static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
1515
159k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_broadcast_addresses()));
1516
159k
        } else {
1517
12
          goto handle_unusual;
1518
12
        }
1519
159k
        break;
1520
159k
      }
1521
1522
      // optional uint32 pg_port = 6 [default = 5433];
1523
17.7M
      case 6: {
1524
17.7M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1525
17.7M
            static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
1526
17.7M
          set_has_pg_port();
1527
17.7M
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1528
17.7M
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
1529
17.7M
                 input, &pg_port_)));
1530
17.7M
        } else {
1531
0
          goto handle_unusual;
1532
0
        }
1533
17.7M
        break;
1534
17.7M
      }
1535
1536
17.7M
      default: {
1537
48.2M
      handle_unusual:
1538
48.2M
        if (
tag == 048.2M
) {
1539
48.2M
          goto success;
1540
48.2M
        }
1541
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
1542
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
1543
18.4E
        break;
1544
18.4E
      }
1545
211M
    }
1546
211M
  }
1547
48.2M
success:
1548
  // @@protoc_insertion_point(parse_success:yb.ServerRegistrationPB)
1549
48.2M
  return true;
1550
0
failure:
1551
  // @@protoc_insertion_point(parse_failure:yb.ServerRegistrationPB)
1552
0
  return false;
1553
48.5M
#undef DO_
1554
48.5M
}
1555
1556
void ServerRegistrationPB::SerializeWithCachedSizes(
1557
0
    ::google::protobuf::io::CodedOutputStream* output) const {
1558
  // @@protoc_insertion_point(serialize_start:yb.ServerRegistrationPB)
1559
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1560
0
  (void) cached_has_bits;
1561
1562
  // repeated .yb.HostPortPB private_rpc_addresses = 1;
1563
0
  for (unsigned int i = 0,
1564
0
      n = static_cast<unsigned int>(this->private_rpc_addresses_size()); i < n; i++) {
1565
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1566
0
      1, this->private_rpc_addresses(static_cast<int>(i)), output);
1567
0
  }
1568
1569
  // repeated .yb.HostPortPB http_addresses = 2;
1570
0
  for (unsigned int i = 0,
1571
0
      n = static_cast<unsigned int>(this->http_addresses_size()); i < n; i++) {
1572
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1573
0
      2, this->http_addresses(static_cast<int>(i)), output);
1574
0
  }
1575
1576
0
  cached_has_bits = _has_bits_[0];
1577
  // optional .yb.CloudInfoPB cloud_info = 3;
1578
0
  if (cached_has_bits & 0x00000002u) {
1579
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1580
0
      3, *this->cloud_info_, output);
1581
0
  }
1582
1583
  // optional bytes placement_uuid = 4;
1584
0
  if (cached_has_bits & 0x00000001u) {
1585
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
1586
0
      4, this->placement_uuid(), output);
1587
0
  }
1588
1589
  // repeated .yb.HostPortPB broadcast_addresses = 5;
1590
0
  for (unsigned int i = 0,
1591
0
      n = static_cast<unsigned int>(this->broadcast_addresses_size()); i < n; i++) {
1592
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1593
0
      5, this->broadcast_addresses(static_cast<int>(i)), output);
1594
0
  }
1595
1596
  // optional uint32 pg_port = 6 [default = 5433];
1597
0
  if (cached_has_bits & 0x00000004u) {
1598
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->pg_port(), output);
1599
0
  }
1600
1601
0
  if (_internal_metadata_.have_unknown_fields()) {
1602
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1603
0
        _internal_metadata_.unknown_fields(), output);
1604
0
  }
1605
  // @@protoc_insertion_point(serialize_end:yb.ServerRegistrationPB)
1606
0
}
1607
1608
::google::protobuf::uint8* ServerRegistrationPB::InternalSerializeWithCachedSizesToArray(
1609
46.5M
    bool deterministic, ::google::protobuf::uint8* target) const {
1610
46.5M
  (void)deterministic; // Unused
1611
  // @@protoc_insertion_point(serialize_to_array_start:yb.ServerRegistrationPB)
1612
46.5M
  ::google::protobuf::uint32 cached_has_bits = 0;
1613
46.5M
  (void) cached_has_bits;
1614
1615
  // repeated .yb.HostPortPB private_rpc_addresses = 1;
1616
46.5M
  for (unsigned int i = 0,
1617
93.1M
      n = static_cast<unsigned int>(this->private_rpc_addresses_size()); i < n; 
i++46.5M
) {
1618
46.5M
    target = ::google::protobuf::internal::WireFormatLite::
1619
46.5M
      InternalWriteMessageToArray(
1620
46.5M
        1, this->private_rpc_addresses(static_cast<int>(i)), deterministic, target);
1621
46.5M
  }
1622
1623
  // repeated .yb.HostPortPB http_addresses = 2;
1624
46.5M
  for (unsigned int i = 0,
1625
93.0M
      n = static_cast<unsigned int>(this->http_addresses_size()); i < n; 
i++46.5M
) {
1626
46.5M
    target = ::google::protobuf::internal::WireFormatLite::
1627
46.5M
      InternalWriteMessageToArray(
1628
46.5M
        2, this->http_addresses(static_cast<int>(i)), deterministic, target);
1629
46.5M
  }
1630
1631
46.5M
  cached_has_bits = _has_bits_[0];
1632
  // optional .yb.CloudInfoPB cloud_info = 3;
1633
46.5M
  if (
cached_has_bits & 0x00000002u46.5M
) {
1634
46.5M
    target = ::google::protobuf::internal::WireFormatLite::
1635
46.5M
      InternalWriteMessageToArray(
1636
46.5M
        3, *this->cloud_info_, deterministic, target);
1637
46.5M
  }
1638
1639
  // optional bytes placement_uuid = 4;
1640
46.5M
  if (
cached_has_bits & 0x00000001u46.5M
) {
1641
46.5M
    target =
1642
46.5M
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
1643
46.5M
        4, this->placement_uuid(), target);
1644
46.5M
  }
1645
1646
  // repeated .yb.HostPortPB broadcast_addresses = 5;
1647
46.5M
  for (unsigned int i = 0,
1648
46.7M
      n = static_cast<unsigned int>(this->broadcast_addresses_size()); i < n; 
i++159k
) {
1649
159k
    target = ::google::protobuf::internal::WireFormatLite::
1650
159k
      InternalWriteMessageToArray(
1651
159k
        5, this->broadcast_addresses(static_cast<int>(i)), deterministic, target);
1652
159k
  }
1653
1654
  // optional uint32 pg_port = 6 [default = 5433];
1655
46.5M
  if (cached_has_bits & 0x00000004u) {
1656
17.6M
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(6, this->pg_port(), target);
1657
17.6M
  }
1658
1659
46.5M
  if (_internal_metadata_.have_unknown_fields()) {
1660
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1661
0
        _internal_metadata_.unknown_fields(), target);
1662
0
  }
1663
  // @@protoc_insertion_point(serialize_to_array_end:yb.ServerRegistrationPB)
1664
46.5M
  return target;
1665
46.5M
}
1666
1667
93.1M
size_t ServerRegistrationPB::ByteSizeLong() const {
1668
// @@protoc_insertion_point(message_byte_size_start:yb.ServerRegistrationPB)
1669
93.1M
  size_t total_size = 0;
1670
1671
93.1M
  if (_internal_metadata_.have_unknown_fields()) {
1672
0
    total_size +=
1673
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1674
0
        _internal_metadata_.unknown_fields());
1675
0
  }
1676
  // repeated .yb.HostPortPB private_rpc_addresses = 1;
1677
93.1M
  {
1678
93.1M
    unsigned int count = static_cast<unsigned int>(this->private_rpc_addresses_size());
1679
93.1M
    total_size += 1UL * count;
1680
186M
    for (unsigned int i = 0; i < count; 
i++93.0M
) {
1681
93.0M
      total_size +=
1682
93.0M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
1683
93.0M
          this->private_rpc_addresses(static_cast<int>(i)));
1684
93.0M
    }
1685
93.1M
  }
1686
1687
  // repeated .yb.HostPortPB http_addresses = 2;
1688
93.1M
  {
1689
93.1M
    unsigned int count = static_cast<unsigned int>(this->http_addresses_size());
1690
93.1M
    total_size += 1UL * count;
1691
186M
    for (unsigned int i = 0; i < count; 
i++93.0M
) {
1692
93.0M
      total_size +=
1693
93.0M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
1694
93.0M
          this->http_addresses(static_cast<int>(i)));
1695
93.0M
    }
1696
93.1M
  }
1697
1698
  // repeated .yb.HostPortPB broadcast_addresses = 5;
1699
93.1M
  {
1700
93.1M
    unsigned int count = static_cast<unsigned int>(this->broadcast_addresses_size());
1701
93.1M
    total_size += 1UL * count;
1702
93.4M
    for (unsigned int i = 0; i < count; 
i++317k
) {
1703
317k
      total_size +=
1704
317k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
1705
317k
          this->broadcast_addresses(static_cast<int>(i)));
1706
317k
    }
1707
93.1M
  }
1708
1709
93.1M
  if (_has_bits_[0 / 32] & 7u) {
1710
    // optional bytes placement_uuid = 4;
1711
93.0M
    if (
has_placement_uuid()93.0M
) {
1712
93.0M
      total_size += 1 +
1713
93.0M
        ::google::protobuf::internal::WireFormatLite::BytesSize(
1714
93.0M
          this->placement_uuid());
1715
93.0M
    }
1716
1717
    // optional .yb.CloudInfoPB cloud_info = 3;
1718
93.0M
    if (has_cloud_info()) {
1719
93.0M
      total_size += 1 +
1720
93.0M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
1721
93.0M
          *this->cloud_info_);
1722
93.0M
    }
1723
1724
    // optional uint32 pg_port = 6 [default = 5433];
1725
93.0M
    if (has_pg_port()) {
1726
35.3M
      total_size += 1 +
1727
35.3M
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
1728
35.3M
          this->pg_port());
1729
35.3M
    }
1730
1731
93.0M
  }
1732
93.1M
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1733
93.1M
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1734
93.1M
  _cached_size_ = cached_size;
1735
93.1M
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1736
93.1M
  return total_size;
1737
93.1M
}
1738
1739
0
void ServerRegistrationPB::MergeFrom(const ::google::protobuf::Message& from) {
1740
// @@protoc_insertion_point(generalized_merge_from_start:yb.ServerRegistrationPB)
1741
0
  GOOGLE_DCHECK_NE(&from, this);
1742
0
  const ServerRegistrationPB* source =
1743
0
      ::google::protobuf::internal::DynamicCastToGenerated<const ServerRegistrationPB>(
1744
0
          &from);
1745
0
  if (source == NULL) {
1746
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.ServerRegistrationPB)
1747
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1748
0
  } else {
1749
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.ServerRegistrationPB)
1750
0
    MergeFrom(*source);
1751
0
  }
1752
0
}
1753
1754
95.4M
void ServerRegistrationPB::MergeFrom(const ServerRegistrationPB& from) {
1755
// @@protoc_insertion_point(class_specific_merge_from_start:yb.ServerRegistrationPB)
1756
95.4M
  GOOGLE_DCHECK_NE(&from, this);
1757
95.4M
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1758
95.4M
  ::google::protobuf::uint32 cached_has_bits = 0;
1759
95.4M
  (void) cached_has_bits;
1760
1761
95.4M
  private_rpc_addresses_.MergeFrom(from.private_rpc_addresses_);
1762
95.4M
  http_addresses_.MergeFrom(from.http_addresses_);
1763
95.4M
  broadcast_addresses_.MergeFrom(from.broadcast_addresses_);
1764
95.4M
  cached_has_bits = from._has_bits_[0];
1765
95.4M
  if (cached_has_bits & 7u) {
1766
94.8M
    if (
cached_has_bits & 0x00000001u94.8M
) {
1767
94.8M
      set_has_placement_uuid();
1768
94.8M
      placement_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.placement_uuid_);
1769
94.8M
    }
1770
94.8M
    if (cached_has_bits & 0x00000002u) {
1771
94.8M
      mutable_cloud_info()->::yb::CloudInfoPB::MergeFrom(from.cloud_info());
1772
94.8M
    }
1773
94.8M
    if (cached_has_bits & 0x00000004u) {
1774
35.2M
      pg_port_ = from.pg_port_;
1775
35.2M
    }
1776
94.8M
    _has_bits_[0] |= cached_has_bits;
1777
94.8M
  }
1778
95.4M
}
1779
1780
0
void ServerRegistrationPB::CopyFrom(const ::google::protobuf::Message& from) {
1781
// @@protoc_insertion_point(generalized_copy_from_start:yb.ServerRegistrationPB)
1782
0
  if (&from == this) return;
1783
0
  Clear();
1784
0
  MergeFrom(from);
1785
0
}
1786
1787
60.1M
void ServerRegistrationPB::CopyFrom(const ServerRegistrationPB& from) {
1788
// @@protoc_insertion_point(class_specific_copy_from_start:yb.ServerRegistrationPB)
1789
60.1M
  if (&from == this) 
return0
;
1790
60.1M
  Clear();
1791
60.1M
  MergeFrom(from);
1792
60.1M
}
1793
1794
95.0M
bool ServerRegistrationPB::IsInitialized() const {
1795
95.0M
  if (!::google::protobuf::internal::AllAreInitialized(this->private_rpc_addresses())) 
return false0
;
1796
95.0M
  if (!::google::protobuf::internal::AllAreInitialized(this->http_addresses())) 
return false0
;
1797
95.0M
  if (!::google::protobuf::internal::AllAreInitialized(this->broadcast_addresses())) 
return false0
;
1798
95.0M
  return true;
1799
95.0M
}
1800
1801
0
void ServerRegistrationPB::Swap(ServerRegistrationPB* other) {
1802
0
  if (other == this) return;
1803
0
  InternalSwap(other);
1804
0
}
1805
0
void ServerRegistrationPB::InternalSwap(ServerRegistrationPB* other) {
1806
0
  using std::swap;
1807
0
  private_rpc_addresses_.InternalSwap(&other->private_rpc_addresses_);
1808
0
  http_addresses_.InternalSwap(&other->http_addresses_);
1809
0
  broadcast_addresses_.InternalSwap(&other->broadcast_addresses_);
1810
0
  placement_uuid_.Swap(&other->placement_uuid_);
1811
0
  swap(cloud_info_, other->cloud_info_);
1812
0
  swap(pg_port_, other->pg_port_);
1813
0
  swap(_has_bits_[0], other->_has_bits_[0]);
1814
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
1815
0
  swap(_cached_size_, other->_cached_size_);
1816
0
}
1817
1818
185k
::google::protobuf::Metadata ServerRegistrationPB::GetMetadata() const {
1819
185k
  protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
1820
185k
  return ::protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
1821
185k
}
1822
1823
1824
// ===================================================================
1825
1826
28.1k
void ServerEntryPB::InitAsDefaultInstance() {
1827
28.1k
  ::yb::_ServerEntryPB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::AppStatusPB*>(
1828
28.1k
      ::yb::AppStatusPB::internal_default_instance());
1829
28.1k
  ::yb::_ServerEntryPB_default_instance_._instance.get_mutable()->instance_id_ = const_cast< ::yb::NodeInstancePB*>(
1830
28.1k
      ::yb::NodeInstancePB::internal_default_instance());
1831
28.1k
  ::yb::_ServerEntryPB_default_instance_._instance.get_mutable()->registration_ = const_cast< ::yb::ServerRegistrationPB*>(
1832
28.1k
      ::yb::ServerRegistrationPB::internal_default_instance());
1833
28.1k
}
1834
#if !defined(_MSC_VER) || _MSC_VER >= 1900
1835
const int ServerEntryPB::kErrorFieldNumber;
1836
const int ServerEntryPB::kInstanceIdFieldNumber;
1837
const int ServerEntryPB::kRegistrationFieldNumber;
1838
const int ServerEntryPB::kRoleFieldNumber;
1839
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
1840
1841
ServerEntryPB::ServerEntryPB()
1842
2.69M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1843
2.69M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
1844
2.67M
    ::protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::InitDefaultsServerEntryPB();
1845
2.67M
  }
1846
2.69M
  SharedCtor();
1847
  // @@protoc_insertion_point(constructor:yb.ServerEntryPB)
1848
2.69M
}
1849
ServerEntryPB::ServerEntryPB(const ServerEntryPB& from)
1850
  : ::google::protobuf::Message(),
1851
      _internal_metadata_(NULL),
1852
      _has_bits_(from._has_bits_),
1853
444
      _cached_size_(0) {
1854
444
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1855
444
  if (from.has_error()) {
1856
5
    error_ = new ::yb::AppStatusPB(*from.error_);
1857
439
  } else {
1858
439
    error_ = NULL;
1859
439
  }
1860
444
  if (from.has_instance_id()) {
1861
444
    instance_id_ = new ::yb::NodeInstancePB(*from.instance_id_);
1862
444
  } else {
1863
0
    instance_id_ = NULL;
1864
0
  }
1865
444
  if (from.has_registration()) {
1866
444
    registration_ = new ::yb::ServerRegistrationPB(*from.registration_);
1867
444
  } else {
1868
0
    registration_ = NULL;
1869
0
  }
1870
444
  role_ = from.role_;
1871
  // @@protoc_insertion_point(copy_constructor:yb.ServerEntryPB)
1872
444
}
1873
1874
2.69M
void ServerEntryPB::SharedCtor() {
1875
2.69M
  _cached_size_ = 0;
1876
2.69M
  ::memset(&error_, 0, static_cast<size_t>(
1877
2.69M
      reinterpret_cast<char*>(&role_) -
1878
2.69M
      reinterpret_cast<char*>(&error_)) + sizeof(role_));
1879
2.69M
}
1880
1881
2.66M
ServerEntryPB::~ServerEntryPB() {
1882
  // @@protoc_insertion_point(destructor:yb.ServerEntryPB)
1883
2.66M
  SharedDtor();
1884
2.66M
}
1885
1886
2.66M
void ServerEntryPB::SharedDtor() {
1887
2.66M
  if (this != internal_default_instance()) 
delete error_2.66M
;
1888
2.66M
  if (
this != internal_default_instance()2.66M
) delete instance_id_;
1889
2.66M
  if (this != internal_default_instance()) 
delete registration_2.66M
;
1890
2.66M
}
1891
1892
0
void ServerEntryPB::SetCachedSize(int size) const {
1893
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1894
0
  _cached_size_ = size;
1895
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1896
0
}
1897
0
const ::google::protobuf::Descriptor* ServerEntryPB::descriptor() {
1898
0
  ::protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
1899
0
  return ::protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
1900
0
}
1901
1902
0
const ServerEntryPB& ServerEntryPB::default_instance() {
1903
0
  ::protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::InitDefaultsServerEntryPB();
1904
0
  return *internal_default_instance();
1905
0
}
1906
1907
0
ServerEntryPB* ServerEntryPB::New(::google::protobuf::Arena* arena) const {
1908
0
  ServerEntryPB* n = new ServerEntryPB;
1909
0
  if (arena != NULL) {
1910
0
    arena->Own(n);
1911
0
  }
1912
0
  return n;
1913
0
}
1914
1915
216
void ServerEntryPB::Clear() {
1916
// @@protoc_insertion_point(message_clear_start:yb.ServerEntryPB)
1917
216
  ::google::protobuf::uint32 cached_has_bits = 0;
1918
  // Prevent compiler warnings about cached_has_bits being unused
1919
216
  (void) cached_has_bits;
1920
1921
216
  cached_has_bits = _has_bits_[0];
1922
216
  if (cached_has_bits & 7u) {
1923
0
    if (cached_has_bits & 0x00000001u) {
1924
0
      GOOGLE_DCHECK(error_ != NULL);
1925
0
      error_->Clear();
1926
0
    }
1927
0
    if (cached_has_bits & 0x00000002u) {
1928
0
      GOOGLE_DCHECK(instance_id_ != NULL);
1929
0
      instance_id_->Clear();
1930
0
    }
1931
0
    if (cached_has_bits & 0x00000004u) {
1932
0
      GOOGLE_DCHECK(registration_ != NULL);
1933
0
      registration_->Clear();
1934
0
    }
1935
0
  }
1936
216
  role_ = 0;
1937
216
  _has_bits_.Clear();
1938
216
  _internal_metadata_.Clear();
1939
216
}
1940
1941
bool ServerEntryPB::MergePartialFromCodedStream(
1942
132
    ::google::protobuf::io::CodedInputStream* input) {
1943
396
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) 
goto failure0
1944
132
  ::google::protobuf::uint32 tag;
1945
  // @@protoc_insertion_point(parse_start:yb.ServerEntryPB)
1946
528
  for (;;) {
1947
528
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1948
528
    tag = p.first;
1949
528
    if (!p.second) 
goto handle_unusual132
;
1950
396
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1951
      // optional .yb.AppStatusPB error = 1;
1952
5
      case 1: {
1953
5
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1954
5
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
1955
5
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
1956
5
               input, mutable_error()));
1957
5
        } else {
1958
0
          goto handle_unusual;
1959
0
        }
1960
5
        break;
1961
5
      }
1962
1963
      // optional .yb.NodeInstancePB instance_id = 2;
1964
132
      case 2: {
1965
132
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1966
132
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
1967
132
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
1968
132
               input, mutable_instance_id()));
1969
132
        } else {
1970
0
          goto handle_unusual;
1971
0
        }
1972
132
        break;
1973
132
      }
1974
1975
      // optional .yb.ServerRegistrationPB registration = 3;
1976
132
      case 3: {
1977
132
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1978
132
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
1979
132
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
1980
132
               input, mutable_registration()));
1981
132
        } else {
1982
0
          goto handle_unusual;
1983
0
        }
1984
132
        break;
1985
132
      }
1986
1987
      // optional .yb.PeerRole role = 4;
1988
132
      case 4: {
1989
127
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1990
127
            static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
1991
127
          int value;
1992
127
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1993
127
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
1994
127
                 input, &value)));
1995
127
          if (::yb::PeerRole_IsValid(value)) {
1996
127
            set_role(static_cast< ::yb::PeerRole >(value));
1997
127
          } else {
1998
0
            mutable_unknown_fields()->AddVarint(
1999
0
                4, static_cast< ::google::protobuf::uint64>(value));
2000
0
          }
2001
127
        } else {
2002
0
          goto handle_unusual;
2003
0
        }
2004
127
        break;
2005
127
      }
2006
2007
127
      default: {
2008
132
      handle_unusual:
2009
132
        if (tag == 0) {
2010
132
          goto success;
2011
132
        }
2012
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
2013
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
2014
0
        break;
2015
0
      }
2016
396
    }
2017
396
  }
2018
132
success:
2019
  // @@protoc_insertion_point(parse_success:yb.ServerEntryPB)
2020
132
  return true;
2021
0
failure:
2022
  // @@protoc_insertion_point(parse_failure:yb.ServerEntryPB)
2023
0
  return false;
2024
132
#undef DO_
2025
132
}
2026
2027
void ServerEntryPB::SerializeWithCachedSizes(
2028
0
    ::google::protobuf::io::CodedOutputStream* output) const {
2029
  // @@protoc_insertion_point(serialize_start:yb.ServerEntryPB)
2030
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2031
0
  (void) cached_has_bits;
2032
2033
0
  cached_has_bits = _has_bits_[0];
2034
  // optional .yb.AppStatusPB error = 1;
2035
0
  if (cached_has_bits & 0x00000001u) {
2036
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2037
0
      1, *this->error_, output);
2038
0
  }
2039
2040
  // optional .yb.NodeInstancePB instance_id = 2;
2041
0
  if (cached_has_bits & 0x00000002u) {
2042
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2043
0
      2, *this->instance_id_, output);
2044
0
  }
2045
2046
  // optional .yb.ServerRegistrationPB registration = 3;
2047
0
  if (cached_has_bits & 0x00000004u) {
2048
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2049
0
      3, *this->registration_, output);
2050
0
  }
2051
2052
  // optional .yb.PeerRole role = 4;
2053
0
  if (cached_has_bits & 0x00000008u) {
2054
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
2055
0
      4, this->role(), output);
2056
0
  }
2057
2058
0
  if (_internal_metadata_.have_unknown_fields()) {
2059
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2060
0
        _internal_metadata_.unknown_fields(), output);
2061
0
  }
2062
  // @@protoc_insertion_point(serialize_end:yb.ServerEntryPB)
2063
0
}
2064
2065
::google::protobuf::uint8* ServerEntryPB::InternalSerializeWithCachedSizesToArray(
2066
207
    bool deterministic, ::google::protobuf::uint8* target) const {
2067
207
  (void)deterministic; // Unused
2068
  // @@protoc_insertion_point(serialize_to_array_start:yb.ServerEntryPB)
2069
207
  ::google::protobuf::uint32 cached_has_bits = 0;
2070
207
  (void) cached_has_bits;
2071
2072
207
  cached_has_bits = _has_bits_[0];
2073
  // optional .yb.AppStatusPB error = 1;
2074
207
  if (cached_has_bits & 0x00000001u) {
2075
5
    target = ::google::protobuf::internal::WireFormatLite::
2076
5
      InternalWriteMessageToArray(
2077
5
        1, *this->error_, deterministic, target);
2078
5
  }
2079
2080
  // optional .yb.NodeInstancePB instance_id = 2;
2081
207
  if (cached_has_bits & 0x00000002u) {
2082
207
    target = ::google::protobuf::internal::WireFormatLite::
2083
207
      InternalWriteMessageToArray(
2084
207
        2, *this->instance_id_, deterministic, target);
2085
207
  }
2086
2087
  // optional .yb.ServerRegistrationPB registration = 3;
2088
207
  if (cached_has_bits & 0x00000004u) {
2089
207
    target = ::google::protobuf::internal::WireFormatLite::
2090
207
      InternalWriteMessageToArray(
2091
207
        3, *this->registration_, deterministic, target);
2092
207
  }
2093
2094
  // optional .yb.PeerRole role = 4;
2095
207
  if (cached_has_bits & 0x00000008u) {
2096
202
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
2097
202
      4, this->role(), target);
2098
202
  }
2099
2100
207
  if (_internal_metadata_.have_unknown_fields()) {
2101
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2102
0
        _internal_metadata_.unknown_fields(), target);
2103
0
  }
2104
  // @@protoc_insertion_point(serialize_to_array_end:yb.ServerEntryPB)
2105
207
  return target;
2106
207
}
2107
2108
414
size_t ServerEntryPB::ByteSizeLong() const {
2109
// @@protoc_insertion_point(message_byte_size_start:yb.ServerEntryPB)
2110
414
  size_t total_size = 0;
2111
2112
414
  if (_internal_metadata_.have_unknown_fields()) {
2113
0
    total_size +=
2114
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2115
0
        _internal_metadata_.unknown_fields());
2116
0
  }
2117
414
  if (_has_bits_[0 / 32] & 15u) {
2118
    // optional .yb.AppStatusPB error = 1;
2119
414
    if (has_error()) {
2120
10
      total_size += 1 +
2121
10
        ::google::protobuf::internal::WireFormatLite::MessageSize(
2122
10
          *this->error_);
2123
10
    }
2124
2125
    // optional .yb.NodeInstancePB instance_id = 2;
2126
414
    if (has_instance_id()) {
2127
414
      total_size += 1 +
2128
414
        ::google::protobuf::internal::WireFormatLite::MessageSize(
2129
414
          *this->instance_id_);
2130
414
    }
2131
2132
    // optional .yb.ServerRegistrationPB registration = 3;
2133
414
    if (has_registration()) {
2134
414
      total_size += 1 +
2135
414
        ::google::protobuf::internal::WireFormatLite::MessageSize(
2136
414
          *this->registration_);
2137
414
    }
2138
2139
    // optional .yb.PeerRole role = 4;
2140
414
    if (has_role()) {
2141
404
      total_size += 1 +
2142
404
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->role());
2143
404
    }
2144
2145
414
  }
2146
414
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2147
414
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2148
414
  _cached_size_ = cached_size;
2149
414
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2150
414
  return total_size;
2151
414
}
2152
2153
0
void ServerEntryPB::MergeFrom(const ::google::protobuf::Message& from) {
2154
// @@protoc_insertion_point(generalized_merge_from_start:yb.ServerEntryPB)
2155
0
  GOOGLE_DCHECK_NE(&from, this);
2156
0
  const ServerEntryPB* source =
2157
0
      ::google::protobuf::internal::DynamicCastToGenerated<const ServerEntryPB>(
2158
0
          &from);
2159
0
  if (source == NULL) {
2160
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.ServerEntryPB)
2161
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2162
0
  } else {
2163
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.ServerEntryPB)
2164
0
    MergeFrom(*source);
2165
0
  }
2166
0
}
2167
2168
216
void ServerEntryPB::MergeFrom(const ServerEntryPB& from) {
2169
// @@protoc_insertion_point(class_specific_merge_from_start:yb.ServerEntryPB)
2170
216
  GOOGLE_DCHECK_NE(&from, this);
2171
216
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2172
216
  ::google::protobuf::uint32 cached_has_bits = 0;
2173
216
  (void) cached_has_bits;
2174
2175
216
  cached_has_bits = from._has_bits_[0];
2176
216
  if (cached_has_bits & 15u) {
2177
216
    if (cached_has_bits & 0x00000001u) {
2178
5
      mutable_error()->::yb::AppStatusPB::MergeFrom(from.error());
2179
5
    }
2180
216
    if (cached_has_bits & 0x00000002u) {
2181
216
      mutable_instance_id()->::yb::NodeInstancePB::MergeFrom(from.instance_id());
2182
216
    }
2183
216
    if (cached_has_bits & 0x00000004u) {
2184
216
      mutable_registration()->::yb::ServerRegistrationPB::MergeFrom(from.registration());
2185
216
    }
2186
216
    if (cached_has_bits & 0x00000008u) {
2187
211
      role_ = from.role_;
2188
211
    }
2189
216
    _has_bits_[0] |= cached_has_bits;
2190
216
  }
2191
216
}
2192
2193
0
void ServerEntryPB::CopyFrom(const ::google::protobuf::Message& from) {
2194
// @@protoc_insertion_point(generalized_copy_from_start:yb.ServerEntryPB)
2195
0
  if (&from == this) return;
2196
0
  Clear();
2197
0
  MergeFrom(from);
2198
0
}
2199
2200
216
void ServerEntryPB::CopyFrom(const ServerEntryPB& from) {
2201
// @@protoc_insertion_point(class_specific_copy_from_start:yb.ServerEntryPB)
2202
216
  if (&from == this) 
return0
;
2203
216
  Clear();
2204
216
  MergeFrom(from);
2205
216
}
2206
2207
339
bool ServerEntryPB::IsInitialized() const {
2208
339
  if (has_error()) {
2209
10
    if (!this->error_->IsInitialized()) 
return false0
;
2210
10
  }
2211
339
  if (has_instance_id()) {
2212
339
    if (!this->instance_id_->IsInitialized()) 
return false0
;
2213
339
  }
2214
339
  if (has_registration()) {
2215
339
    if (!this->registration_->IsInitialized()) 
return false0
;
2216
339
  }
2217
339
  return true;
2218
339
}
2219
2220
0
void ServerEntryPB::Swap(ServerEntryPB* other) {
2221
0
  if (other == this) return;
2222
0
  InternalSwap(other);
2223
0
}
2224
371
void ServerEntryPB::InternalSwap(ServerEntryPB* other) {
2225
371
  using std::swap;
2226
371
  swap(error_, other->error_);
2227
371
  swap(instance_id_, other->instance_id_);
2228
371
  swap(registration_, other->registration_);
2229
371
  swap(role_, other->role_);
2230
371
  swap(_has_bits_[0], other->_has_bits_[0]);
2231
371
  _internal_metadata_.Swap(&other->_internal_metadata_);
2232
371
  swap(_cached_size_, other->_cached_size_);
2233
371
}
2234
2235
36
::google::protobuf::Metadata ServerEntryPB::GetMetadata() const {
2236
36
  protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::protobuf_AssignDescriptorsOnce();
2237
36
  return ::protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::file_level_metadata[kIndexInFileMessages];
2238
36
}
2239
2240
2241
// @@protoc_insertion_point(namespace_scope)
2242
}  // namespace yb
2243
2244
// @@protoc_insertion_point(global_scope)