YugabyteDB (2.13.0.0-b42, bfc6a6643e7399ac8a0e81d06a3ee6d6571b33ab)

Coverage Report

Created: 2022-03-09 17:30

/Users/deen/code/yugabyte-db/build/debugcov-clang-dynamic-arm64-ninja/src/yb/master/master_client.pb.cc
Line
Count
Source (jump to first uncovered line)
1
// Generated by the protocol buffer compiler.  DO NOT EDIT!
2
// source: yb/master/master_client.proto
3
4
#include "yb/master/master_client.pb.h"
5
6
#include <algorithm>
7
8
#include <google/protobuf/stubs/common.h>
9
#include <google/protobuf/stubs/port.h>
10
#include <google/protobuf/stubs/once.h>
11
#include <google/protobuf/io/coded_stream.h>
12
#include <google/protobuf/wire_format_lite_inl.h>
13
#include <google/protobuf/descriptor.h>
14
#include <google/protobuf/generated_message_reflection.h>
15
#include <google/protobuf/reflection_ops.h>
16
#include <google/protobuf/wire_format.h>
17
// This is a temporary google only hack
18
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
19
#include "third_party/protobuf/version.h"
20
#endif
21
#include "yb/util/protobuf-annotations.h"
22
// @@protoc_insertion_point(includes)
23
namespace yb {
24
namespace master {
25
class TSInfoPBDefaultTypeInternal {
26
 public:
27
  ::google::protobuf::internal::ExplicitlyConstructed<TSInfoPB>
28
      _instance;
29
} _TSInfoPB_default_instance_;
30
class TabletLocationsPB_ReplicaPBDefaultTypeInternal {
31
 public:
32
  ::google::protobuf::internal::ExplicitlyConstructed<TabletLocationsPB_ReplicaPB>
33
      _instance;
34
} _TabletLocationsPB_ReplicaPB_default_instance_;
35
class TabletLocationsPBDefaultTypeInternal {
36
 public:
37
  ::google::protobuf::internal::ExplicitlyConstructed<TabletLocationsPB>
38
      _instance;
39
} _TabletLocationsPB_default_instance_;
40
class GetTabletLocationsRequestPBDefaultTypeInternal {
41
 public:
42
  ::google::protobuf::internal::ExplicitlyConstructed<GetTabletLocationsRequestPB>
43
      _instance;
44
} _GetTabletLocationsRequestPB_default_instance_;
45
class GetTabletLocationsResponsePB_ErrorDefaultTypeInternal {
46
 public:
47
  ::google::protobuf::internal::ExplicitlyConstructed<GetTabletLocationsResponsePB_Error>
48
      _instance;
49
} _GetTabletLocationsResponsePB_Error_default_instance_;
50
class GetTabletLocationsResponsePBDefaultTypeInternal {
51
 public:
52
  ::google::protobuf::internal::ExplicitlyConstructed<GetTabletLocationsResponsePB>
53
      _instance;
54
} _GetTabletLocationsResponsePB_default_instance_;
55
class GetTableLocationsRequestPBDefaultTypeInternal {
56
 public:
57
  ::google::protobuf::internal::ExplicitlyConstructed<GetTableLocationsRequestPB>
58
      _instance;
59
} _GetTableLocationsRequestPB_default_instance_;
60
class GetTableLocationsResponsePBDefaultTypeInternal {
61
 public:
62
  ::google::protobuf::internal::ExplicitlyConstructed<GetTableLocationsResponsePB>
63
      _instance;
64
} _GetTableLocationsResponsePB_default_instance_;
65
class GetTransactionStatusTabletsRequestPBDefaultTypeInternal {
66
 public:
67
  ::google::protobuf::internal::ExplicitlyConstructed<GetTransactionStatusTabletsRequestPB>
68
      _instance;
69
} _GetTransactionStatusTabletsRequestPB_default_instance_;
70
class GetTransactionStatusTabletsResponsePBDefaultTypeInternal {
71
 public:
72
  ::google::protobuf::internal::ExplicitlyConstructed<GetTransactionStatusTabletsResponsePB>
73
      _instance;
74
} _GetTransactionStatusTabletsResponsePB_default_instance_;
75
class ReservePgsqlOidsRequestPBDefaultTypeInternal {
76
 public:
77
  ::google::protobuf::internal::ExplicitlyConstructed<ReservePgsqlOidsRequestPB>
78
      _instance;
79
} _ReservePgsqlOidsRequestPB_default_instance_;
80
class ReservePgsqlOidsResponsePBDefaultTypeInternal {
81
 public:
82
  ::google::protobuf::internal::ExplicitlyConstructed<ReservePgsqlOidsResponsePB>
83
      _instance;
84
} _ReservePgsqlOidsResponsePB_default_instance_;
85
class GetYsqlCatalogConfigRequestPBDefaultTypeInternal {
86
 public:
87
  ::google::protobuf::internal::ExplicitlyConstructed<GetYsqlCatalogConfigRequestPB>
88
      _instance;
89
} _GetYsqlCatalogConfigRequestPB_default_instance_;
90
class GetYsqlCatalogConfigResponsePBDefaultTypeInternal {
91
 public:
92
  ::google::protobuf::internal::ExplicitlyConstructed<GetYsqlCatalogConfigResponsePB>
93
      _instance;
94
} _GetYsqlCatalogConfigResponsePB_default_instance_;
95
class RedisConfigSetRequestPBDefaultTypeInternal {
96
 public:
97
  ::google::protobuf::internal::ExplicitlyConstructed<RedisConfigSetRequestPB>
98
      _instance;
99
} _RedisConfigSetRequestPB_default_instance_;
100
class RedisConfigSetResponsePBDefaultTypeInternal {
101
 public:
102
  ::google::protobuf::internal::ExplicitlyConstructed<RedisConfigSetResponsePB>
103
      _instance;
104
} _RedisConfigSetResponsePB_default_instance_;
105
class RedisConfigGetRequestPBDefaultTypeInternal {
106
 public:
107
  ::google::protobuf::internal::ExplicitlyConstructed<RedisConfigGetRequestPB>
108
      _instance;
109
} _RedisConfigGetRequestPB_default_instance_;
110
class RedisConfigGetResponsePBDefaultTypeInternal {
111
 public:
112
  ::google::protobuf::internal::ExplicitlyConstructed<RedisConfigGetResponsePB>
113
      _instance;
114
} _RedisConfigGetResponsePB_default_instance_;
115
}  // namespace master
116
}  // namespace yb
117
namespace protobuf_yb_2fmaster_2fmaster_5fclient_2eproto {
118
15.8k
void InitDefaultsTSInfoPBImpl() {
119
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
120
121
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
122
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
123
#else
124
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
125
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
126
15.8k
  protobuf_yb_2fcommon_2fcommon_5fnet_2eproto::InitDefaultsHostPortPB();
127
15.8k
  protobuf_yb_2fcommon_2fcommon_5fnet_2eproto::InitDefaultsCloudInfoPB();
128
15.8k
  {
129
15.8k
    void* ptr = &::yb::master::_TSInfoPB_default_instance_;
130
15.8k
    new (ptr) ::yb::master::TSInfoPB();
131
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
132
15.8k
  }
133
15.8k
  ::yb::master::TSInfoPB::InitAsDefaultInstance();
134
15.8k
}
135
136
1.66M
void InitDefaultsTSInfoPB() {
137
1.66M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
138
1.66M
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTSInfoPBImpl);
139
1.66M
}
140
141
15.8k
void InitDefaultsTabletLocationsPB_ReplicaPBImpl() {
142
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
143
144
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
145
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
146
#else
147
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
148
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
149
15.8k
  protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::InitDefaultsTSInfoPB();
150
15.8k
  {
151
15.8k
    void* ptr = &::yb::master::_TabletLocationsPB_ReplicaPB_default_instance_;
152
15.8k
    new (ptr) ::yb::master::TabletLocationsPB_ReplicaPB();
153
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
154
15.8k
  }
155
15.8k
  ::yb::master::TabletLocationsPB_ReplicaPB::InitAsDefaultInstance();
156
15.8k
}
157
158
1.66M
void InitDefaultsTabletLocationsPB_ReplicaPB() {
159
1.66M
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
160
1.66M
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTabletLocationsPB_ReplicaPBImpl);
161
1.66M
}
162
163
15.8k
void InitDefaultsTabletLocationsPBImpl() {
164
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
165
166
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
167
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
168
#else
169
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
170
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
171
15.8k
  protobuf_yb_2fcommon_2fcommon_2eproto::InitDefaultsPartitionPB();
172
15.8k
  protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::InitDefaultsTabletLocationsPB_ReplicaPB();
173
15.8k
  {
174
15.8k
    void* ptr = &::yb::master::_TabletLocationsPB_default_instance_;
175
15.8k
    new (ptr) ::yb::master::TabletLocationsPB();
176
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
177
15.8k
  }
178
15.8k
  ::yb::master::TabletLocationsPB::InitAsDefaultInstance();
179
15.8k
}
180
181
646k
void InitDefaultsTabletLocationsPB() {
182
646k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
183
646k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsTabletLocationsPBImpl);
184
646k
}
185
186
15.8k
void InitDefaultsGetTabletLocationsRequestPBImpl() {
187
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
188
189
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
190
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
191
#else
192
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
193
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
194
15.8k
  {
195
15.8k
    void* ptr = &::yb::master::_GetTabletLocationsRequestPB_default_instance_;
196
15.8k
    new (ptr) ::yb::master::GetTabletLocationsRequestPB();
197
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
198
15.8k
  }
199
15.8k
  ::yb::master::GetTabletLocationsRequestPB::InitAsDefaultInstance();
200
15.8k
}
201
202
34.1k
void InitDefaultsGetTabletLocationsRequestPB() {
203
34.1k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
204
34.1k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsGetTabletLocationsRequestPBImpl);
205
34.1k
}
206
207
15.8k
void InitDefaultsGetTabletLocationsResponsePB_ErrorImpl() {
208
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
209
210
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
211
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
212
#else
213
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
214
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
215
15.8k
  protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::InitDefaultsAppStatusPB();
216
15.8k
  {
217
15.8k
    void* ptr = &::yb::master::_GetTabletLocationsResponsePB_Error_default_instance_;
218
15.8k
    new (ptr) ::yb::master::GetTabletLocationsResponsePB_Error();
219
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
220
15.8k
  }
221
15.8k
  ::yb::master::GetTabletLocationsResponsePB_Error::InitAsDefaultInstance();
222
15.8k
}
223
224
32.3k
void InitDefaultsGetTabletLocationsResponsePB_Error() {
225
32.3k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
226
32.3k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsGetTabletLocationsResponsePB_ErrorImpl);
227
32.3k
}
228
229
15.8k
void InitDefaultsGetTabletLocationsResponsePBImpl() {
230
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
231
232
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
233
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
234
#else
235
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
236
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
237
15.8k
  protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsMasterErrorPB();
238
15.8k
  protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::InitDefaultsTabletLocationsPB();
239
15.8k
  protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::InitDefaultsGetTabletLocationsResponsePB_Error();
240
15.8k
  {
241
15.8k
    void* ptr = &::yb::master::_GetTabletLocationsResponsePB_default_instance_;
242
15.8k
    new (ptr) ::yb::master::GetTabletLocationsResponsePB();
243
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
244
15.8k
  }
245
15.8k
  ::yb::master::GetTabletLocationsResponsePB::InitAsDefaultInstance();
246
15.8k
}
247
248
34.1k
void InitDefaultsGetTabletLocationsResponsePB() {
249
34.1k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
250
34.1k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsGetTabletLocationsResponsePBImpl);
251
34.1k
}
252
253
15.8k
void InitDefaultsGetTableLocationsRequestPBImpl() {
254
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
255
256
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
257
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
258
#else
259
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
260
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
261
15.8k
  protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsTableIdentifierPB();
262
15.8k
  {
263
15.8k
    void* ptr = &::yb::master::_GetTableLocationsRequestPB_default_instance_;
264
15.8k
    new (ptr) ::yb::master::GetTableLocationsRequestPB();
265
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
266
15.8k
  }
267
15.8k
  ::yb::master::GetTableLocationsRequestPB::InitAsDefaultInstance();
268
15.8k
}
269
270
336k
void InitDefaultsGetTableLocationsRequestPB() {
271
336k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
272
336k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsGetTableLocationsRequestPBImpl);
273
336k
}
274
275
15.8k
void InitDefaultsGetTableLocationsResponsePBImpl() {
276
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
277
278
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
279
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
280
#else
281
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
282
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
283
15.8k
  protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsMasterErrorPB();
284
15.8k
  protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::InitDefaultsTabletLocationsPB();
285
15.8k
  {
286
15.8k
    void* ptr = &::yb::master::_GetTableLocationsResponsePB_default_instance_;
287
15.8k
    new (ptr) ::yb::master::GetTableLocationsResponsePB();
288
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
289
15.8k
  }
290
15.8k
  ::yb::master::GetTableLocationsResponsePB::InitAsDefaultInstance();
291
15.8k
}
292
293
336k
void InitDefaultsGetTableLocationsResponsePB() {
294
336k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
295
336k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsGetTableLocationsResponsePBImpl);
296
336k
}
297
298
15.8k
void InitDefaultsGetTransactionStatusTabletsRequestPBImpl() {
299
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
300
301
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
302
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
303
#else
304
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
305
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
306
15.8k
  protobuf_yb_2fcommon_2fcommon_5fnet_2eproto::InitDefaultsCloudInfoPB();
307
15.8k
  {
308
15.8k
    void* ptr = &::yb::master::_GetTransactionStatusTabletsRequestPB_default_instance_;
309
15.8k
    new (ptr) ::yb::master::GetTransactionStatusTabletsRequestPB();
310
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
311
15.8k
  }
312
15.8k
  ::yb::master::GetTransactionStatusTabletsRequestPB::InitAsDefaultInstance();
313
15.8k
}
314
315
19.8k
void InitDefaultsGetTransactionStatusTabletsRequestPB() {
316
19.8k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
317
19.8k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsGetTransactionStatusTabletsRequestPBImpl);
318
19.8k
}
319
320
15.8k
void InitDefaultsGetTransactionStatusTabletsResponsePBImpl() {
321
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
322
323
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
324
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
325
#else
326
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
327
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
328
15.8k
  protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsMasterErrorPB();
329
15.8k
  {
330
15.8k
    void* ptr = &::yb::master::_GetTransactionStatusTabletsResponsePB_default_instance_;
331
15.8k
    new (ptr) ::yb::master::GetTransactionStatusTabletsResponsePB();
332
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
333
15.8k
  }
334
15.8k
  ::yb::master::GetTransactionStatusTabletsResponsePB::InitAsDefaultInstance();
335
15.8k
}
336
337
19.8k
void InitDefaultsGetTransactionStatusTabletsResponsePB() {
338
19.8k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
339
19.8k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsGetTransactionStatusTabletsResponsePBImpl);
340
19.8k
}
341
342
15.8k
void InitDefaultsReservePgsqlOidsRequestPBImpl() {
343
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
344
345
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
346
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
347
#else
348
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
349
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
350
15.8k
  {
351
15.8k
    void* ptr = &::yb::master::_ReservePgsqlOidsRequestPB_default_instance_;
352
15.8k
    new (ptr) ::yb::master::ReservePgsqlOidsRequestPB();
353
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
354
15.8k
  }
355
15.8k
  ::yb::master::ReservePgsqlOidsRequestPB::InitAsDefaultInstance();
356
15.8k
}
357
358
16.6k
void InitDefaultsReservePgsqlOidsRequestPB() {
359
16.6k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
360
16.6k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsReservePgsqlOidsRequestPBImpl);
361
16.6k
}
362
363
15.8k
void InitDefaultsReservePgsqlOidsResponsePBImpl() {
364
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
365
366
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
367
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
368
#else
369
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
370
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
371
15.8k
  protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsMasterErrorPB();
372
15.8k
  {
373
15.8k
    void* ptr = &::yb::master::_ReservePgsqlOidsResponsePB_default_instance_;
374
15.8k
    new (ptr) ::yb::master::ReservePgsqlOidsResponsePB();
375
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
376
15.8k
  }
377
15.8k
  ::yb::master::ReservePgsqlOidsResponsePB::InitAsDefaultInstance();
378
15.8k
}
379
380
16.6k
void InitDefaultsReservePgsqlOidsResponsePB() {
381
16.6k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
382
16.6k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsReservePgsqlOidsResponsePBImpl);
383
16.6k
}
384
385
15.8k
void InitDefaultsGetYsqlCatalogConfigRequestPBImpl() {
386
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
387
388
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
389
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
390
#else
391
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
392
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
393
15.8k
  {
394
15.8k
    void* ptr = &::yb::master::_GetYsqlCatalogConfigRequestPB_default_instance_;
395
15.8k
    new (ptr) ::yb::master::GetYsqlCatalogConfigRequestPB();
396
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
397
15.8k
  }
398
15.8k
  ::yb::master::GetYsqlCatalogConfigRequestPB::InitAsDefaultInstance();
399
15.8k
}
400
401
15.8k
void InitDefaultsGetYsqlCatalogConfigRequestPB() {
402
15.8k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
403
15.8k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsGetYsqlCatalogConfigRequestPBImpl);
404
15.8k
}
405
406
15.8k
void InitDefaultsGetYsqlCatalogConfigResponsePBImpl() {
407
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
408
409
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
410
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
411
#else
412
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
413
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
414
15.8k
  protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsMasterErrorPB();
415
15.8k
  {
416
15.8k
    void* ptr = &::yb::master::_GetYsqlCatalogConfigResponsePB_default_instance_;
417
15.8k
    new (ptr) ::yb::master::GetYsqlCatalogConfigResponsePB();
418
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
419
15.8k
  }
420
15.8k
  ::yb::master::GetYsqlCatalogConfigResponsePB::InitAsDefaultInstance();
421
15.8k
}
422
423
15.8k
void InitDefaultsGetYsqlCatalogConfigResponsePB() {
424
15.8k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
425
15.8k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsGetYsqlCatalogConfigResponsePBImpl);
426
15.8k
}
427
428
15.8k
void InitDefaultsRedisConfigSetRequestPBImpl() {
429
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
430
431
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
432
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
433
#else
434
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
435
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
436
15.8k
  {
437
15.8k
    void* ptr = &::yb::master::_RedisConfigSetRequestPB_default_instance_;
438
15.8k
    new (ptr) ::yb::master::RedisConfigSetRequestPB();
439
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
440
15.8k
  }
441
15.8k
  ::yb::master::RedisConfigSetRequestPB::InitAsDefaultInstance();
442
15.8k
}
443
444
15.8k
void InitDefaultsRedisConfigSetRequestPB() {
445
15.8k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
446
15.8k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisConfigSetRequestPBImpl);
447
15.8k
}
448
449
15.8k
void InitDefaultsRedisConfigSetResponsePBImpl() {
450
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
451
452
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
453
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
454
#else
455
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
456
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
457
15.8k
  protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsMasterErrorPB();
458
15.8k
  {
459
15.8k
    void* ptr = &::yb::master::_RedisConfigSetResponsePB_default_instance_;
460
15.8k
    new (ptr) ::yb::master::RedisConfigSetResponsePB();
461
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
462
15.8k
  }
463
15.8k
  ::yb::master::RedisConfigSetResponsePB::InitAsDefaultInstance();
464
15.8k
}
465
466
15.8k
void InitDefaultsRedisConfigSetResponsePB() {
467
15.8k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
468
15.8k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisConfigSetResponsePBImpl);
469
15.8k
}
470
471
15.8k
void InitDefaultsRedisConfigGetRequestPBImpl() {
472
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
473
474
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
475
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
476
#else
477
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
478
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
479
15.8k
  {
480
15.8k
    void* ptr = &::yb::master::_RedisConfigGetRequestPB_default_instance_;
481
15.8k
    new (ptr) ::yb::master::RedisConfigGetRequestPB();
482
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
483
15.8k
  }
484
15.8k
  ::yb::master::RedisConfigGetRequestPB::InitAsDefaultInstance();
485
15.8k
}
486
487
16.4k
void InitDefaultsRedisConfigGetRequestPB() {
488
16.4k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
489
16.4k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisConfigGetRequestPBImpl);
490
16.4k
}
491
492
15.8k
void InitDefaultsRedisConfigGetResponsePBImpl() {
493
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
494
495
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
496
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
497
#else
498
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
499
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
500
15.8k
  protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsMasterErrorPB();
501
15.8k
  {
502
15.8k
    void* ptr = &::yb::master::_RedisConfigGetResponsePB_default_instance_;
503
15.8k
    new (ptr) ::yb::master::RedisConfigGetResponsePB();
504
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
505
15.8k
  }
506
15.8k
  ::yb::master::RedisConfigGetResponsePB::InitAsDefaultInstance();
507
15.8k
}
508
509
16.4k
void InitDefaultsRedisConfigGetResponsePB() {
510
16.4k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
511
16.4k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRedisConfigGetResponsePBImpl);
512
16.4k
}
513
514
::google::protobuf::Metadata file_level_metadata[18];
515
516
const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
517
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSInfoPB, _has_bits_),
518
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSInfoPB, _internal_metadata_),
519
  ~0u,  // no _extensions_
520
  ~0u,  // no _oneof_case_
521
  ~0u,  // no _weak_field_map_
522
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSInfoPB, permanent_uuid_),
523
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSInfoPB, private_rpc_addresses_),
524
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSInfoPB, broadcast_addresses_),
525
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSInfoPB, cloud_info_),
526
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSInfoPB, placement_uuid_),
527
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TSInfoPB, capabilities_),
528
  0,
529
  ~0u,
530
  ~0u,
531
  2,
532
  1,
533
  ~0u,
534
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletLocationsPB_ReplicaPB, _has_bits_),
535
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletLocationsPB_ReplicaPB, _internal_metadata_),
536
  ~0u,  // no _extensions_
537
  ~0u,  // no _oneof_case_
538
  ~0u,  // no _weak_field_map_
539
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletLocationsPB_ReplicaPB, ts_info_),
540
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletLocationsPB_ReplicaPB, role_),
541
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletLocationsPB_ReplicaPB, member_type_),
542
  0,
543
  1,
544
  2,
545
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletLocationsPB, _has_bits_),
546
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletLocationsPB, _internal_metadata_),
547
  ~0u,  // no _extensions_
548
  ~0u,  // no _oneof_case_
549
  ~0u,  // no _weak_field_map_
550
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletLocationsPB, tablet_id_),
551
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletLocationsPB, start_key_),
552
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletLocationsPB, end_key_),
553
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletLocationsPB, partition_),
554
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletLocationsPB, replicas_),
555
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletLocationsPB, stale_),
556
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletLocationsPB, table_id_),
557
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletLocationsPB, table_ids_),
558
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletLocationsPB, split_depth_),
559
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletLocationsPB, split_parent_tablet_id_),
560
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletLocationsPB, split_tablet_ids_),
561
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletLocationsPB, expected_live_replicas_),
562
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::TabletLocationsPB, expected_read_replicas_),
563
  0,
564
  1,
565
  2,
566
  5,
567
  ~0u,
568
  6,
569
  3,
570
  ~0u,
571
  8,
572
  4,
573
  ~0u,
574
  7,
575
  9,
576
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetTabletLocationsRequestPB, _has_bits_),
577
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetTabletLocationsRequestPB, _internal_metadata_),
578
  ~0u,  // no _extensions_
579
  ~0u,  // no _oneof_case_
580
  ~0u,  // no _weak_field_map_
581
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetTabletLocationsRequestPB, tablet_ids_),
582
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetTabletLocationsRequestPB, table_id_),
583
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetTabletLocationsRequestPB, include_inactive_),
584
  ~0u,
585
  0,
586
  1,
587
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetTabletLocationsResponsePB_Error, _has_bits_),
588
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetTabletLocationsResponsePB_Error, _internal_metadata_),
589
  ~0u,  // no _extensions_
590
  ~0u,  // no _oneof_case_
591
  ~0u,  // no _weak_field_map_
592
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetTabletLocationsResponsePB_Error, tablet_id_),
593
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetTabletLocationsResponsePB_Error, status_),
594
  0,
595
  1,
596
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetTabletLocationsResponsePB, _has_bits_),
597
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetTabletLocationsResponsePB, _internal_metadata_),
598
  ~0u,  // no _extensions_
599
  ~0u,  // no _oneof_case_
600
  ~0u,  // no _weak_field_map_
601
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetTabletLocationsResponsePB, error_),
602
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetTabletLocationsResponsePB, tablet_locations_),
603
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetTabletLocationsResponsePB, partition_list_version_),
604
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetTabletLocationsResponsePB, errors_),
605
  0,
606
  ~0u,
607
  1,
608
  ~0u,
609
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetTableLocationsRequestPB, _has_bits_),
610
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetTableLocationsRequestPB, _internal_metadata_),
611
  ~0u,  // no _extensions_
612
  ~0u,  // no _oneof_case_
613
  ~0u,  // no _weak_field_map_
614
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetTableLocationsRequestPB, table_),
615
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetTableLocationsRequestPB, partition_key_start_),
616
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetTableLocationsRequestPB, partition_key_end_),
617
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetTableLocationsRequestPB, max_returned_locations_),
618
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetTableLocationsRequestPB, require_tablets_running_),
619
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetTableLocationsRequestPB, include_inactive_),
620
  2,
621
  0,
622
  1,
623
  5,
624
  3,
625
  4,
626
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetTableLocationsResponsePB, _has_bits_),
627
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetTableLocationsResponsePB, _internal_metadata_),
628
  ~0u,  // no _extensions_
629
  ~0u,  // no _oneof_case_
630
  ~0u,  // no _weak_field_map_
631
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetTableLocationsResponsePB, error_),
632
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetTableLocationsResponsePB, tablet_locations_),
633
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetTableLocationsResponsePB, table_type_),
634
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetTableLocationsResponsePB, partition_list_version_),
635
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetTableLocationsResponsePB, creating_),
636
  0,
637
  ~0u,
638
  3,
639
  1,
640
  2,
641
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetTransactionStatusTabletsRequestPB, _has_bits_),
642
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetTransactionStatusTabletsRequestPB, _internal_metadata_),
643
  ~0u,  // no _extensions_
644
  ~0u,  // no _oneof_case_
645
  ~0u,  // no _weak_field_map_
646
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetTransactionStatusTabletsRequestPB, placement_),
647
  0,
648
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetTransactionStatusTabletsResponsePB, _has_bits_),
649
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetTransactionStatusTabletsResponsePB, _internal_metadata_),
650
  ~0u,  // no _extensions_
651
  ~0u,  // no _oneof_case_
652
  ~0u,  // no _weak_field_map_
653
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetTransactionStatusTabletsResponsePB, error_),
654
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetTransactionStatusTabletsResponsePB, global_tablet_id_),
655
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetTransactionStatusTabletsResponsePB, placement_local_tablet_id_),
656
  0,
657
  ~0u,
658
  ~0u,
659
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ReservePgsqlOidsRequestPB, _has_bits_),
660
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ReservePgsqlOidsRequestPB, _internal_metadata_),
661
  ~0u,  // no _extensions_
662
  ~0u,  // no _oneof_case_
663
  ~0u,  // no _weak_field_map_
664
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ReservePgsqlOidsRequestPB, namespace_id_),
665
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ReservePgsqlOidsRequestPB, next_oid_),
666
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ReservePgsqlOidsRequestPB, count_),
667
  0,
668
  1,
669
  2,
670
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ReservePgsqlOidsResponsePB, _has_bits_),
671
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ReservePgsqlOidsResponsePB, _internal_metadata_),
672
  ~0u,  // no _extensions_
673
  ~0u,  // no _oneof_case_
674
  ~0u,  // no _weak_field_map_
675
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ReservePgsqlOidsResponsePB, error_),
676
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ReservePgsqlOidsResponsePB, begin_oid_),
677
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ReservePgsqlOidsResponsePB, end_oid_),
678
  0,
679
  1,
680
  2,
681
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetYsqlCatalogConfigRequestPB, _has_bits_),
682
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetYsqlCatalogConfigRequestPB, _internal_metadata_),
683
  ~0u,  // no _extensions_
684
  ~0u,  // no _oneof_case_
685
  ~0u,  // no _weak_field_map_
686
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetYsqlCatalogConfigResponsePB, _has_bits_),
687
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetYsqlCatalogConfigResponsePB, _internal_metadata_),
688
  ~0u,  // no _extensions_
689
  ~0u,  // no _oneof_case_
690
  ~0u,  // no _weak_field_map_
691
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetYsqlCatalogConfigResponsePB, error_),
692
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetYsqlCatalogConfigResponsePB, version_),
693
  0,
694
  1,
695
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::RedisConfigSetRequestPB, _has_bits_),
696
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::RedisConfigSetRequestPB, _internal_metadata_),
697
  ~0u,  // no _extensions_
698
  ~0u,  // no _oneof_case_
699
  ~0u,  // no _weak_field_map_
700
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::RedisConfigSetRequestPB, keyword_),
701
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::RedisConfigSetRequestPB, args_),
702
  0,
703
  ~0u,
704
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::RedisConfigSetResponsePB, _has_bits_),
705
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::RedisConfigSetResponsePB, _internal_metadata_),
706
  ~0u,  // no _extensions_
707
  ~0u,  // no _oneof_case_
708
  ~0u,  // no _weak_field_map_
709
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::RedisConfigSetResponsePB, error_),
710
  0,
711
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::RedisConfigGetRequestPB, _has_bits_),
712
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::RedisConfigGetRequestPB, _internal_metadata_),
713
  ~0u,  // no _extensions_
714
  ~0u,  // no _oneof_case_
715
  ~0u,  // no _weak_field_map_
716
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::RedisConfigGetRequestPB, keyword_),
717
  0,
718
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::RedisConfigGetResponsePB, _has_bits_),
719
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::RedisConfigGetResponsePB, _internal_metadata_),
720
  ~0u,  // no _extensions_
721
  ~0u,  // no _oneof_case_
722
  ~0u,  // no _weak_field_map_
723
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::RedisConfigGetResponsePB, keyword_),
724
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::RedisConfigGetResponsePB, args_),
725
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::RedisConfigGetResponsePB, error_),
726
  0,
727
  ~0u,
728
  1,
729
};
730
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
731
  { 0, 11, sizeof(::yb::master::TSInfoPB)},
732
  { 17, 25, sizeof(::yb::master::TabletLocationsPB_ReplicaPB)},
733
  { 28, 46, sizeof(::yb::master::TabletLocationsPB)},
734
  { 59, 67, sizeof(::yb::master::GetTabletLocationsRequestPB)},
735
  { 70, 77, sizeof(::yb::master::GetTabletLocationsResponsePB_Error)},
736
  { 79, 88, sizeof(::yb::master::GetTabletLocationsResponsePB)},
737
  { 92, 103, sizeof(::yb::master::GetTableLocationsRequestPB)},
738
  { 109, 119, sizeof(::yb::master::GetTableLocationsResponsePB)},
739
  { 124, 130, sizeof(::yb::master::GetTransactionStatusTabletsRequestPB)},
740
  { 131, 139, sizeof(::yb::master::GetTransactionStatusTabletsResponsePB)},
741
  { 142, 150, sizeof(::yb::master::ReservePgsqlOidsRequestPB)},
742
  { 153, 161, sizeof(::yb::master::ReservePgsqlOidsResponsePB)},
743
  { 164, 169, sizeof(::yb::master::GetYsqlCatalogConfigRequestPB)},
744
  { 169, 176, sizeof(::yb::master::GetYsqlCatalogConfigResponsePB)},
745
  { 178, 185, sizeof(::yb::master::RedisConfigSetRequestPB)},
746
  { 187, 193, sizeof(::yb::master::RedisConfigSetResponsePB)},
747
  { 194, 200, sizeof(::yb::master::RedisConfigGetRequestPB)},
748
  { 201, 209, sizeof(::yb::master::RedisConfigGetResponsePB)},
749
};
750
751
static ::google::protobuf::Message const * const file_default_instances[] = {
752
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_TSInfoPB_default_instance_),
753
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_TabletLocationsPB_ReplicaPB_default_instance_),
754
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_TabletLocationsPB_default_instance_),
755
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_GetTabletLocationsRequestPB_default_instance_),
756
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_GetTabletLocationsResponsePB_Error_default_instance_),
757
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_GetTabletLocationsResponsePB_default_instance_),
758
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_GetTableLocationsRequestPB_default_instance_),
759
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_GetTableLocationsResponsePB_default_instance_),
760
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_GetTransactionStatusTabletsRequestPB_default_instance_),
761
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_GetTransactionStatusTabletsResponsePB_default_instance_),
762
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_ReservePgsqlOidsRequestPB_default_instance_),
763
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_ReservePgsqlOidsResponsePB_default_instance_),
764
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_GetYsqlCatalogConfigRequestPB_default_instance_),
765
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_GetYsqlCatalogConfigResponsePB_default_instance_),
766
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_RedisConfigSetRequestPB_default_instance_),
767
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_RedisConfigSetResponsePB_default_instance_),
768
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_RedisConfigGetRequestPB_default_instance_),
769
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_RedisConfigGetResponsePB_default_instance_),
770
};
771
772
1.67k
void protobuf_AssignDescriptors() {
773
1.67k
  AddDescriptors();
774
1.67k
  ::google::protobuf::MessageFactory* factory = NULL;
775
1.67k
  AssignDescriptors(
776
1.67k
      "yb/master/master_client.proto", schemas, file_default_instances, TableStruct::offsets, factory,
777
1.67k
      file_level_metadata, NULL, NULL);
778
1.67k
}
779
780
181k
void protobuf_AssignDescriptorsOnce() {
781
181k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
782
181k
  ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
783
181k
}
784
785
void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
786
0
void protobuf_RegisterTypes(const ::std::string&) {
787
0
  protobuf_AssignDescriptorsOnce();
788
0
  ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 18);
789
0
}
790
791
15.8k
void AddDescriptorsImpl() {
792
15.8k
  InitDefaults();
793
15.8k
  static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
794
15.8k
      "\n\035yb/master/master_client.proto\022\tyb.mast"
795
15.8k
      "er\032\026yb/common/common.proto\032\032yb/common/co"
796
15.8k
      "mmon_net.proto\032\034yb/common/common_types.p"
797
15.8k
      "roto\032\035yb/common/wire_protocol.proto\032\033yb/"
798
15.8k
      "consensus/metadata.proto\032\034yb/master/mast"
799
15.8k
      "er_types.proto\032\024yb/rpc/service.proto\"\321\001\n"
800
15.8k
      "\010TSInfoPB\022\026\n\016permanent_uuid\030\001 \002(\014\022-\n\025pri"
801
15.8k
      "vate_rpc_addresses\030\002 \003(\0132\016.yb.HostPortPB"
802
15.8k
      "\022+\n\023broadcast_addresses\030\005 \003(\0132\016.yb.HostP"
803
15.8k
      "ortPB\022#\n\ncloud_info\030\003 \001(\0132\017.yb.CloudInfo"
804
15.8k
      "PB\022\026\n\016placement_uuid\030\004 \001(\014\022\024\n\014capabiliti"
805
15.8k
      "es\030\006 \003(\007\"\356\003\n\021TabletLocationsPB\022\021\n\ttablet"
806
15.8k
      "_id\030\001 \002(\014\022\021\n\tstart_key\030\002 \001(\014\022\017\n\007end_key\030"
807
15.8k
      "\003 \001(\014\022\"\n\tpartition\030\006 \001(\0132\017.yb.PartitionP"
808
15.8k
      "B\0228\n\010replicas\030\004 \003(\0132&.yb.master.TabletLo"
809
15.8k
      "cationsPB.ReplicaPB\022\r\n\005stale\030\005 \002(\010\022\020\n\010ta"
810
15.8k
      "ble_id\030\007 \001(\014\022\021\n\ttable_ids\030\010 \003(\014\022\023\n\013split"
811
15.8k
      "_depth\030\t \001(\004\022\036\n\026split_parent_tablet_id\030\014"
812
15.8k
      " \001(\014\022\030\n\020split_tablet_ids\030\r \003(\014\022\036\n\026expect"
813
15.8k
      "ed_live_replicas\030\n \001(\005\022\036\n\026expected_read_"
814
15.8k
      "replicas\030\013 \001(\005\032\200\001\n\tReplicaPB\022$\n\007ts_info\030"
815
15.8k
      "\001 \002(\0132\023.yb.master.TSInfoPB\022\032\n\004role\030\002 \002(\016"
816
15.8k
      "2\014.yb.PeerRole\0221\n\013member_type\030\003 \001(\0162\034.yb"
817
15.8k
      ".consensus.PeerMemberType\"]\n\033GetTabletLo"
818
15.8k
      "cationsRequestPB\022\022\n\ntablet_ids\030\001 \003(\014\022\020\n\010"
819
15.8k
      "table_id\030\002 \001(\014\022\030\n\020include_inactive\030\003 \001(\010"
820
15.8k
      "\"\233\002\n\034GetTabletLocationsResponsePB\022\'\n\005err"
821
15.8k
      "or\030\001 \001(\0132\030.yb.master.MasterErrorPB\0226\n\020ta"
822
15.8k
      "blet_locations\030\002 \003(\0132\034.yb.master.TabletL"
823
15.8k
      "ocationsPB\022\036\n\026partition_list_version\030\004 \001"
824
15.8k
      "(\r\022=\n\006errors\030\003 \003(\0132-.yb.master.GetTablet"
825
15.8k
      "LocationsResponsePB.Error\032;\n\005Error\022\021\n\tta"
826
15.8k
      "blet_id\030\001 \002(\014\022\037\n\006status\030\002 \002(\0132\017.yb.AppSt"
827
15.8k
      "atusPB\"\340\001\n\032GetTableLocationsRequestPB\022+\n"
828
15.8k
      "\005table\030\001 \002(\0132\034.yb.master.TableIdentifier"
829
15.8k
      "PB\022\033\n\023partition_key_start\030\003 \001(\014\022\031\n\021parti"
830
15.8k
      "tion_key_end\030\004 \001(\014\022\"\n\026max_returned_locat"
831
15.8k
      "ions\030\005 \001(\r:\00210\022\037\n\027require_tablets_runnin"
832
15.8k
      "g\030\006 \001(\010\022\030\n\020include_inactive\030\007 \001(\010\"\323\001\n\033Ge"
833
15.8k
      "tTableLocationsResponsePB\022\'\n\005error\030\001 \001(\013"
834
15.8k
      "2\030.yb.master.MasterErrorPB\0226\n\020tablet_loc"
835
15.8k
      "ations\030\002 \003(\0132\034.yb.master.TabletLocations"
836
15.8k
      "PB\022!\n\ntable_type\030\003 \001(\0162\r.yb.TableType\022\036\n"
837
15.8k
      "\026partition_list_version\030\004 \001(\r\022\020\n\010creatin"
838
15.8k
      "g\030\005 \001(\010\"J\n$GetTransactionStatusTabletsRe"
839
15.8k
      "questPB\022\"\n\tplacement\030\001 \001(\0132\017.yb.CloudInf"
840
15.8k
      "oPB\"\215\001\n%GetTransactionStatusTabletsRespo"
841
15.8k
      "nsePB\022\'\n\005error\030\001 \001(\0132\030.yb.master.MasterE"
842
15.8k
      "rrorPB\022\030\n\020global_tablet_id\030\002 \003(\014\022!\n\031plac"
843
15.8k
      "ement_local_tablet_id\030\003 \003(\014\"R\n\031ReservePg"
844
15.8k
      "sqlOidsRequestPB\022\024\n\014namespace_id\030\001 \001(\014\022\020"
845
15.8k
      "\n\010next_oid\030\002 \001(\r\022\r\n\005count\030\003 \001(\r\"i\n\032Reser"
846
15.8k
      "vePgsqlOidsResponsePB\022\'\n\005error\030\001 \001(\0132\030.y"
847
15.8k
      "b.master.MasterErrorPB\022\021\n\tbegin_oid\030\002 \001("
848
15.8k
      "\r\022\017\n\007end_oid\030\003 \001(\r\"\037\n\035GetYsqlCatalogConf"
849
15.8k
      "igRequestPB\"Z\n\036GetYsqlCatalogConfigRespo"
850
15.8k
      "nsePB\022\'\n\005error\030\001 \001(\0132\030.yb.master.MasterE"
851
15.8k
      "rrorPB\022\017\n\007version\030\002 \001(\004\"8\n\027RedisConfigSe"
852
15.8k
      "tRequestPB\022\017\n\007keyword\030\001 \001(\t\022\014\n\004args\030\002 \003("
853
15.8k
      "\014\"C\n\030RedisConfigSetResponsePB\022\'\n\005error\030\001"
854
15.8k
      " \001(\0132\030.yb.master.MasterErrorPB\"*\n\027RedisC"
855
15.8k
      "onfigGetRequestPB\022\017\n\007keyword\030\001 \001(\t\"b\n\030Re"
856
15.8k
      "disConfigGetResponsePB\022\017\n\007keyword\030\001 \001(\t\022"
857
15.8k
      "\014\n\004args\030\002 \003(\014\022\'\n\005error\030\003 \001(\0132\030.yb.master"
858
15.8k
      ".MasterErrorPB2\375\005\n\014MasterClient\022e\n\022GetTa"
859
15.8k
      "bletLocations\022&.yb.master.GetTabletLocat"
860
15.8k
      "ionsRequestPB\032\'.yb.master.GetTabletLocat"
861
15.8k
      "ionsResponsePB\022b\n\021GetTableLocations\022%.yb"
862
15.8k
      ".master.GetTableLocationsRequestPB\032&.yb."
863
15.8k
      "master.GetTableLocationsResponsePB\022\200\001\n\033G"
864
15.8k
      "etTransactionStatusTablets\022/.yb.master.G"
865
15.8k
      "etTransactionStatusTabletsRequestPB\0320.yb"
866
15.8k
      ".master.GetTransactionStatusTabletsRespo"
867
15.8k
      "nsePB\022_\n\020ReservePgsqlOids\022$.yb.master.Re"
868
15.8k
      "servePgsqlOidsRequestPB\032%.yb.master.Rese"
869
15.8k
      "rvePgsqlOidsResponsePB\022k\n\024GetYsqlCatalog"
870
15.8k
      "Config\022(.yb.master.GetYsqlCatalogConfigR"
871
15.8k
      "equestPB\032).yb.master.GetYsqlCatalogConfi"
872
15.8k
      "gResponsePB\022Y\n\016RedisConfigSet\022\".yb.maste"
873
15.8k
      "r.RedisConfigSetRequestPB\032#.yb.master.Re"
874
15.8k
      "disConfigSetResponsePB\022Y\n\016RedisConfigGet"
875
15.8k
      "\022\".yb.master.RedisConfigGetRequestPB\032#.y"
876
15.8k
      "b.master.RedisConfigGetResponsePB\032\033\332\265\030\027y"
877
15.8k
      "b.master.MasterServiceB\017\n\rorg.yb.master"
878
15.8k
  };
879
15.8k
  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
880
15.8k
      descriptor, 3359);
881
15.8k
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
882
15.8k
    "yb/master/master_client.proto", &protobuf_RegisterTypes);
883
15.8k
  ::protobuf_yb_2fcommon_2fcommon_2eproto::AddDescriptors();
884
15.8k
  ::protobuf_yb_2fcommon_2fcommon_5fnet_2eproto::AddDescriptors();
885
15.8k
  ::protobuf_yb_2fcommon_2fcommon_5ftypes_2eproto::AddDescriptors();
886
15.8k
  ::protobuf_yb_2fcommon_2fwire_5fprotocol_2eproto::AddDescriptors();
887
15.8k
  ::protobuf_yb_2fconsensus_2fmetadata_2eproto::AddDescriptors();
888
15.8k
  ::protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::AddDescriptors();
889
15.8k
  ::protobuf_yb_2frpc_2fservice_2eproto::AddDescriptors();
890
15.8k
}
891
892
17.5k
void AddDescriptors() {
893
17.5k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
894
17.5k
  ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
895
17.5k
}
896
// Force AddDescriptors() to be called at dynamic initialization time.
897
struct StaticDescriptorInitializer {
898
15.8k
  StaticDescriptorInitializer() {
899
15.8k
    AddDescriptors();
900
15.8k
  }
901
} static_descriptor_initializer;
902
}  // namespace protobuf_yb_2fmaster_2fmaster_5fclient_2eproto
903
namespace yb {
904
namespace master {
905
906
// ===================================================================
907
908
15.8k
void TSInfoPB::InitAsDefaultInstance() {
909
15.8k
  ::yb::master::_TSInfoPB_default_instance_._instance.get_mutable()->cloud_info_ = const_cast< ::yb::CloudInfoPB*>(
910
15.8k
      ::yb::CloudInfoPB::internal_default_instance());
911
15.8k
}
912
0
void TSInfoPB::clear_private_rpc_addresses() {
913
0
  private_rpc_addresses_.Clear();
914
0
}
915
0
void TSInfoPB::clear_broadcast_addresses() {
916
0
  broadcast_addresses_.Clear();
917
0
}
918
0
void TSInfoPB::clear_cloud_info() {
919
0
  if (cloud_info_ != NULL) cloud_info_->Clear();
920
0
  clear_has_cloud_info();
921
0
}
922
#if !defined(_MSC_VER) || _MSC_VER >= 1900
923
const int TSInfoPB::kPermanentUuidFieldNumber;
924
const int TSInfoPB::kPrivateRpcAddressesFieldNumber;
925
const int TSInfoPB::kBroadcastAddressesFieldNumber;
926
const int TSInfoPB::kCloudInfoFieldNumber;
927
const int TSInfoPB::kPlacementUuidFieldNumber;
928
const int TSInfoPB::kCapabilitiesFieldNumber;
929
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
930
931
TSInfoPB::TSInfoPB()
932
1.65M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
933
1.63M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
934
1.63M
    ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::InitDefaultsTSInfoPB();
935
1.63M
  }
936
1.65M
  SharedCtor();
937
  // @@protoc_insertion_point(constructor:yb.master.TSInfoPB)
938
1.65M
}
939
TSInfoPB::TSInfoPB(const TSInfoPB& from)
940
  : ::google::protobuf::Message(),
941
      _internal_metadata_(NULL),
942
      _has_bits_(from._has_bits_),
943
      _cached_size_(0),
944
      private_rpc_addresses_(from.private_rpc_addresses_),
945
      broadcast_addresses_(from.broadcast_addresses_),
946
0
      capabilities_(from.capabilities_) {
947
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
948
0
  permanent_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
949
0
  if (from.has_permanent_uuid()) {
950
0
    permanent_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.permanent_uuid_);
951
0
  }
952
0
  placement_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
953
0
  if (from.has_placement_uuid()) {
954
0
    placement_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.placement_uuid_);
955
0
  }
956
0
  if (from.has_cloud_info()) {
957
0
    cloud_info_ = new ::yb::CloudInfoPB(*from.cloud_info_);
958
0
  } else {
959
0
    cloud_info_ = NULL;
960
0
  }
961
  // @@protoc_insertion_point(copy_constructor:yb.master.TSInfoPB)
962
0
}
963
964
1.65M
void TSInfoPB::SharedCtor() {
965
1.65M
  _cached_size_ = 0;
966
1.65M
  permanent_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
967
1.65M
  placement_uuid_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
968
1.65M
  cloud_info_ = NULL;
969
1.65M
}
970
971
1.63M
TSInfoPB::~TSInfoPB() {
972
  // @@protoc_insertion_point(destructor:yb.master.TSInfoPB)
973
1.63M
  SharedDtor();
974
1.63M
}
975
976
1.63M
void TSInfoPB::SharedDtor() {
977
1.63M
  permanent_uuid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
978
1.63M
  placement_uuid_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
979
1.63M
  if (this != internal_default_instance()) delete cloud_info_;
980
1.63M
}
981
982
0
void TSInfoPB::SetCachedSize(int size) const {
983
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
984
0
  _cached_size_ = size;
985
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
986
0
}
987
0
const ::google::protobuf::Descriptor* TSInfoPB::descriptor() {
988
0
  ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::protobuf_AssignDescriptorsOnce();
989
0
  return ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
990
0
}
991
992
0
const TSInfoPB& TSInfoPB::default_instance() {
993
0
  ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::InitDefaultsTSInfoPB();
994
0
  return *internal_default_instance();
995
0
}
996
997
0
TSInfoPB* TSInfoPB::New(::google::protobuf::Arena* arena) const {
998
0
  TSInfoPB* n = new TSInfoPB;
999
0
  if (arena != NULL) {
1000
0
    arena->Own(n);
1001
0
  }
1002
0
  return n;
1003
0
}
1004
1005
52.1k
void TSInfoPB::Clear() {
1006
// @@protoc_insertion_point(message_clear_start:yb.master.TSInfoPB)
1007
52.1k
  ::google::protobuf::uint32 cached_has_bits = 0;
1008
  // Prevent compiler warnings about cached_has_bits being unused
1009
52.1k
  (void) cached_has_bits;
1010
1011
52.1k
  private_rpc_addresses_.Clear();
1012
52.1k
  broadcast_addresses_.Clear();
1013
52.1k
  capabilities_.Clear();
1014
52.1k
  cached_has_bits = _has_bits_[0];
1015
52.1k
  if (cached_has_bits & 7u) {
1016
52.1k
    if (cached_has_bits & 0x00000001u) {
1017
52.1k
      GOOGLE_DCHECK(!permanent_uuid_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
1018
52.1k
      (*permanent_uuid_.UnsafeRawStringPointer())->clear();
1019
52.1k
    }
1020
52.1k
    if (cached_has_bits & 0x00000002u) {
1021
52.1k
      GOOGLE_DCHECK(!placement_uuid_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
1022
52.1k
      (*placement_uuid_.UnsafeRawStringPointer())->clear();
1023
52.1k
    }
1024
52.1k
    if (cached_has_bits & 0x00000004u) {
1025
52.1k
      GOOGLE_DCHECK(cloud_info_ != NULL);
1026
52.1k
      cloud_info_->Clear();
1027
52.1k
    }
1028
52.1k
  }
1029
52.1k
  _has_bits_.Clear();
1030
52.1k
  _internal_metadata_.Clear();
1031
52.1k
}
1032
1033
bool TSInfoPB::MergePartialFromCodedStream(
1034
627k
    ::google::protobuf::io::CodedInputStream* input) {
1035
2.80M
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
1036
627k
  ::google::protobuf::uint32 tag;
1037
  // @@protoc_insertion_point(parse_start:yb.master.TSInfoPB)
1038
3.43M
  for (;;) {
1039
3.43M
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1040
3.43M
    tag = p.first;
1041
3.43M
    if (!p.second) goto handle_unusual;
1042
2.80M
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1043
      // required bytes permanent_uuid = 1;
1044
627k
      case 1: {
1045
627k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1046
627k
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
1047
627k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
1048
627k
                input, this->mutable_permanent_uuid()));
1049
18.4E
        } else {
1050
18.4E
          goto handle_unusual;
1051
18.4E
        }
1052
627k
        break;
1053
627k
      }
1054
1055
      // repeated .yb.HostPortPB private_rpc_addresses = 2;
1056
627k
      case 2: {
1057
627k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1058
627k
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
1059
627k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_private_rpc_addresses()));
1060
18.4E
        } else {
1061
18.4E
          goto handle_unusual;
1062
18.4E
        }
1063
627k
        break;
1064
627k
      }
1065
1066
      // optional .yb.CloudInfoPB cloud_info = 3;
1067
627k
      case 3: {
1068
627k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1069
627k
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
1070
627k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
1071
627k
               input, mutable_cloud_info()));
1072
18.4E
        } else {
1073
18.4E
          goto handle_unusual;
1074
18.4E
        }
1075
627k
        break;
1076
627k
      }
1077
1078
      // optional bytes placement_uuid = 4;
1079
294k
      case 4: {
1080
294k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1081
294k
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
1082
294k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
1083
294k
                input, this->mutable_placement_uuid()));
1084
18.4E
        } else {
1085
18.4E
          goto handle_unusual;
1086
18.4E
        }
1087
294k
        break;
1088
294k
      }
1089
1090
      // repeated .yb.HostPortPB broadcast_addresses = 5;
1091
0
      case 5: {
1092
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1093
0
            static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
1094
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_broadcast_addresses()));
1095
0
        } else {
1096
0
          goto handle_unusual;
1097
0
        }
1098
0
        break;
1099
0
      }
1100
1101
      // repeated fixed32 capabilities = 6;
1102
627k
      case 6: {
1103
627k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1104
627k
            static_cast< ::google::protobuf::uint8>(53u /* 53 & 0xFF */)) {
1105
627k
          DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive<
1106
627k
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>(
1107
627k
                 1, 53u, input, this->mutable_capabilities())));
1108
1
        } else if (
1109
1
            static_cast< ::google::protobuf::uint8>(tag) ==
1110
0
            static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
1111
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline<
1112
0
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_FIXED32>(
1113
0
                 input, this->mutable_capabilities())));
1114
1
        } else {
1115
1
          goto handle_unusual;
1116
1
        }
1117
627k
        break;
1118
627k
      }
1119
1120
0
      default: {
1121
627k
      handle_unusual:
1122
627k
        if (tag == 0) {
1123
627k
          goto success;
1124
627k
        }
1125
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
1126
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
1127
18.4E
        break;
1128
18.4E
      }
1129
2.80M
    }
1130
2.80M
  }
1131
627k
success:
1132
  // @@protoc_insertion_point(parse_success:yb.master.TSInfoPB)
1133
627k
  return true;
1134
0
failure:
1135
  // @@protoc_insertion_point(parse_failure:yb.master.TSInfoPB)
1136
0
  return false;
1137
627k
#undef DO_
1138
627k
}
1139
1140
void TSInfoPB::SerializeWithCachedSizes(
1141
0
    ::google::protobuf::io::CodedOutputStream* output) const {
1142
  // @@protoc_insertion_point(serialize_start:yb.master.TSInfoPB)
1143
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1144
0
  (void) cached_has_bits;
1145
1146
0
  cached_has_bits = _has_bits_[0];
1147
  // required bytes permanent_uuid = 1;
1148
0
  if (cached_has_bits & 0x00000001u) {
1149
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
1150
0
      1, this->permanent_uuid(), output);
1151
0
  }
1152
1153
  // repeated .yb.HostPortPB private_rpc_addresses = 2;
1154
0
  for (unsigned int i = 0,
1155
0
      n = static_cast<unsigned int>(this->private_rpc_addresses_size()); i < n; i++) {
1156
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1157
0
      2, this->private_rpc_addresses(static_cast<int>(i)), output);
1158
0
  }
1159
1160
  // optional .yb.CloudInfoPB cloud_info = 3;
1161
0
  if (cached_has_bits & 0x00000004u) {
1162
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1163
0
      3, *this->cloud_info_, output);
1164
0
  }
1165
1166
  // optional bytes placement_uuid = 4;
1167
0
  if (cached_has_bits & 0x00000002u) {
1168
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
1169
0
      4, this->placement_uuid(), output);
1170
0
  }
1171
1172
  // repeated .yb.HostPortPB broadcast_addresses = 5;
1173
0
  for (unsigned int i = 0,
1174
0
      n = static_cast<unsigned int>(this->broadcast_addresses_size()); i < n; i++) {
1175
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1176
0
      5, this->broadcast_addresses(static_cast<int>(i)), output);
1177
0
  }
1178
1179
  // repeated fixed32 capabilities = 6;
1180
0
  for (int i = 0, n = this->capabilities_size(); i < n; i++) {
1181
0
    ::google::protobuf::internal::WireFormatLite::WriteFixed32(
1182
0
      6, this->capabilities(i), output);
1183
0
  }
1184
1185
0
  if (_internal_metadata_.have_unknown_fields()) {
1186
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1187
0
        _internal_metadata_.unknown_fields(), output);
1188
0
  }
1189
  // @@protoc_insertion_point(serialize_end:yb.master.TSInfoPB)
1190
0
}
1191
1192
::google::protobuf::uint8* TSInfoPB::InternalSerializeWithCachedSizesToArray(
1193
697k
    bool deterministic, ::google::protobuf::uint8* target) const {
1194
697k
  (void)deterministic; // Unused
1195
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.TSInfoPB)
1196
697k
  ::google::protobuf::uint32 cached_has_bits = 0;
1197
697k
  (void) cached_has_bits;
1198
1199
697k
  cached_has_bits = _has_bits_[0];
1200
  // required bytes permanent_uuid = 1;
1201
697k
  if (cached_has_bits & 0x00000001u) {
1202
697k
    target =
1203
697k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
1204
697k
        1, this->permanent_uuid(), target);
1205
697k
  }
1206
1207
  // repeated .yb.HostPortPB private_rpc_addresses = 2;
1208
697k
  for (unsigned int i = 0,
1209
1.39M
      n = static_cast<unsigned int>(this->private_rpc_addresses_size()); i < n; i++) {
1210
697k
    target = ::google::protobuf::internal::WireFormatLite::
1211
697k
      InternalWriteMessageToArray(
1212
697k
        2, this->private_rpc_addresses(static_cast<int>(i)), deterministic, target);
1213
697k
  }
1214
1215
  // optional .yb.CloudInfoPB cloud_info = 3;
1216
697k
  if (cached_has_bits & 0x00000004u) {
1217
697k
    target = ::google::protobuf::internal::WireFormatLite::
1218
697k
      InternalWriteMessageToArray(
1219
697k
        3, *this->cloud_info_, deterministic, target);
1220
697k
  }
1221
1222
  // optional bytes placement_uuid = 4;
1223
697k
  if (cached_has_bits & 0x00000002u) {
1224
365k
    target =
1225
365k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
1226
365k
        4, this->placement_uuid(), target);
1227
365k
  }
1228
1229
  // repeated .yb.HostPortPB broadcast_addresses = 5;
1230
697k
  for (unsigned int i = 0,
1231
697k
      n = static_cast<unsigned int>(this->broadcast_addresses_size()); i < n; i++) {
1232
0
    target = ::google::protobuf::internal::WireFormatLite::
1233
0
      InternalWriteMessageToArray(
1234
0
        5, this->broadcast_addresses(static_cast<int>(i)), deterministic, target);
1235
0
  }
1236
1237
  // repeated fixed32 capabilities = 6;
1238
697k
  target = ::google::protobuf::internal::WireFormatLite::
1239
697k
    WriteFixed32ToArray(6, this->capabilities_, target);
1240
1241
697k
  if (_internal_metadata_.have_unknown_fields()) {
1242
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1243
0
        _internal_metadata_.unknown_fields(), target);
1244
0
  }
1245
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.TSInfoPB)
1246
697k
  return target;
1247
697k
}
1248
1249
1.39M
size_t TSInfoPB::ByteSizeLong() const {
1250
// @@protoc_insertion_point(message_byte_size_start:yb.master.TSInfoPB)
1251
1.39M
  size_t total_size = 0;
1252
1253
1.39M
  if (_internal_metadata_.have_unknown_fields()) {
1254
0
    total_size +=
1255
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1256
0
        _internal_metadata_.unknown_fields());
1257
0
  }
1258
  // required bytes permanent_uuid = 1;
1259
1.39M
  if (has_permanent_uuid()) {
1260
1.39M
    total_size += 1 +
1261
1.39M
      ::google::protobuf::internal::WireFormatLite::BytesSize(
1262
1.39M
        this->permanent_uuid());
1263
1.39M
  }
1264
  // repeated .yb.HostPortPB private_rpc_addresses = 2;
1265
1.39M
  {
1266
1.39M
    unsigned int count = static_cast<unsigned int>(this->private_rpc_addresses_size());
1267
1.39M
    total_size += 1UL * count;
1268
2.79M
    for (unsigned int i = 0; i < count; i++) {
1269
1.39M
      total_size +=
1270
1.39M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
1271
1.39M
          this->private_rpc_addresses(static_cast<int>(i)));
1272
1.39M
    }
1273
1.39M
  }
1274
1275
  // repeated .yb.HostPortPB broadcast_addresses = 5;
1276
1.39M
  {
1277
1.39M
    unsigned int count = static_cast<unsigned int>(this->broadcast_addresses_size());
1278
1.39M
    total_size += 1UL * count;
1279
1.39M
    for (unsigned int i = 0; i < count; i++) {
1280
0
      total_size +=
1281
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
1282
0
          this->broadcast_addresses(static_cast<int>(i)));
1283
0
    }
1284
1.39M
  }
1285
1286
  // repeated fixed32 capabilities = 6;
1287
1.39M
  {
1288
1.39M
    unsigned int count = static_cast<unsigned int>(this->capabilities_size());
1289
1.39M
    size_t data_size = 4UL * count;
1290
1.39M
    total_size += 1 *
1291
1.39M
                  ::google::protobuf::internal::FromIntSize(this->capabilities_size());
1292
1.39M
    total_size += data_size;
1293
1.39M
  }
1294
1295
1.39M
  if (_has_bits_[0 / 32] & 6u) {
1296
    // optional bytes placement_uuid = 4;
1297
1.39M
    if (has_placement_uuid()) {
1298
730k
      total_size += 1 +
1299
730k
        ::google::protobuf::internal::WireFormatLite::BytesSize(
1300
730k
          this->placement_uuid());
1301
730k
    }
1302
1303
    // optional .yb.CloudInfoPB cloud_info = 3;
1304
1.39M
    if (has_cloud_info()) {
1305
1.39M
      total_size += 1 +
1306
1.39M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
1307
1.39M
          *this->cloud_info_);
1308
1.39M
    }
1309
1310
1.39M
  }
1311
1.39M
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1312
1.39M
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1313
1.39M
  _cached_size_ = cached_size;
1314
1.39M
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1315
1.39M
  return total_size;
1316
1.39M
}
1317
1318
0
void TSInfoPB::MergeFrom(const ::google::protobuf::Message& from) {
1319
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.TSInfoPB)
1320
0
  GOOGLE_DCHECK_NE(&from, this);
1321
0
  const TSInfoPB* source =
1322
0
      ::google::protobuf::internal::DynamicCastToGenerated<const TSInfoPB>(
1323
0
          &from);
1324
0
  if (source == NULL) {
1325
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.TSInfoPB)
1326
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1327
0
  } else {
1328
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.TSInfoPB)
1329
0
    MergeFrom(*source);
1330
0
  }
1331
0
}
1332
1333
7.55k
void TSInfoPB::MergeFrom(const TSInfoPB& from) {
1334
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.TSInfoPB)
1335
7.55k
  GOOGLE_DCHECK_NE(&from, this);
1336
7.55k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1337
7.55k
  ::google::protobuf::uint32 cached_has_bits = 0;
1338
7.55k
  (void) cached_has_bits;
1339
1340
7.55k
  private_rpc_addresses_.MergeFrom(from.private_rpc_addresses_);
1341
7.55k
  broadcast_addresses_.MergeFrom(from.broadcast_addresses_);
1342
7.55k
  capabilities_.MergeFrom(from.capabilities_);
1343
7.55k
  cached_has_bits = from._has_bits_[0];
1344
7.55k
  if (cached_has_bits & 7u) {
1345
7.55k
    if (cached_has_bits & 0x00000001u) {
1346
7.55k
      set_has_permanent_uuid();
1347
7.55k
      permanent_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.permanent_uuid_);
1348
7.55k
    }
1349
7.55k
    if (cached_has_bits & 0x00000002u) {
1350
7.55k
      set_has_placement_uuid();
1351
7.55k
      placement_uuid_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.placement_uuid_);
1352
7.55k
    }
1353
7.55k
    if (cached_has_bits & 0x00000004u) {
1354
7.55k
      mutable_cloud_info()->::yb::CloudInfoPB::MergeFrom(from.cloud_info());
1355
7.55k
    }
1356
7.55k
  }
1357
7.55k
}
1358
1359
0
void TSInfoPB::CopyFrom(const ::google::protobuf::Message& from) {
1360
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.TSInfoPB)
1361
0
  if (&from == this) return;
1362
0
  Clear();
1363
0
  MergeFrom(from);
1364
0
}
1365
1366
0
void TSInfoPB::CopyFrom(const TSInfoPB& from) {
1367
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.TSInfoPB)
1368
0
  if (&from == this) return;
1369
0
  Clear();
1370
0
  MergeFrom(from);
1371
0
}
1372
1373
1.32M
bool TSInfoPB::IsInitialized() const {
1374
1.32M
  if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
1375
1.32M
  if (!::google::protobuf::internal::AllAreInitialized(this->private_rpc_addresses())) return false;
1376
1.32M
  if (!::google::protobuf::internal::AllAreInitialized(this->broadcast_addresses())) return false;
1377
1.32M
  return true;
1378
1.32M
}
1379
1380
0
void TSInfoPB::Swap(TSInfoPB* other) {
1381
0
  if (other == this) return;
1382
0
  InternalSwap(other);
1383
0
}
1384
0
void TSInfoPB::InternalSwap(TSInfoPB* other) {
1385
0
  using std::swap;
1386
0
  private_rpc_addresses_.InternalSwap(&other->private_rpc_addresses_);
1387
0
  broadcast_addresses_.InternalSwap(&other->broadcast_addresses_);
1388
0
  capabilities_.InternalSwap(&other->capabilities_);
1389
0
  permanent_uuid_.Swap(&other->permanent_uuid_);
1390
0
  placement_uuid_.Swap(&other->placement_uuid_);
1391
0
  swap(cloud_info_, other->cloud_info_);
1392
0
  swap(_has_bits_[0], other->_has_bits_[0]);
1393
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
1394
0
  swap(_cached_size_, other->_cached_size_);
1395
0
}
1396
1397
624
::google::protobuf::Metadata TSInfoPB::GetMetadata() const {
1398
624
  protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::protobuf_AssignDescriptorsOnce();
1399
624
  return ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::file_level_metadata[kIndexInFileMessages];
1400
624
}
1401
1402
1403
// ===================================================================
1404
1405
15.8k
void TabletLocationsPB_ReplicaPB::InitAsDefaultInstance() {
1406
15.8k
  ::yb::master::_TabletLocationsPB_ReplicaPB_default_instance_._instance.get_mutable()->ts_info_ = const_cast< ::yb::master::TSInfoPB*>(
1407
15.8k
      ::yb::master::TSInfoPB::internal_default_instance());
1408
15.8k
}
1409
#if !defined(_MSC_VER) || _MSC_VER >= 1900
1410
const int TabletLocationsPB_ReplicaPB::kTsInfoFieldNumber;
1411
const int TabletLocationsPB_ReplicaPB::kRoleFieldNumber;
1412
const int TabletLocationsPB_ReplicaPB::kMemberTypeFieldNumber;
1413
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
1414
1415
TabletLocationsPB_ReplicaPB::TabletLocationsPB_ReplicaPB()
1416
1.65M
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1417
1.63M
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
1418
1.63M
    ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::InitDefaultsTabletLocationsPB_ReplicaPB();
1419
1.63M
  }
1420
1.65M
  SharedCtor();
1421
  // @@protoc_insertion_point(constructor:yb.master.TabletLocationsPB.ReplicaPB)
1422
1.65M
}
1423
TabletLocationsPB_ReplicaPB::TabletLocationsPB_ReplicaPB(const TabletLocationsPB_ReplicaPB& from)
1424
  : ::google::protobuf::Message(),
1425
      _internal_metadata_(NULL),
1426
      _has_bits_(from._has_bits_),
1427
0
      _cached_size_(0) {
1428
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1429
0
  if (from.has_ts_info()) {
1430
0
    ts_info_ = new ::yb::master::TSInfoPB(*from.ts_info_);
1431
0
  } else {
1432
0
    ts_info_ = NULL;
1433
0
  }
1434
0
  ::memcpy(&role_, &from.role_,
1435
0
    static_cast<size_t>(reinterpret_cast<char*>(&member_type_) -
1436
0
    reinterpret_cast<char*>(&role_)) + sizeof(member_type_));
1437
  // @@protoc_insertion_point(copy_constructor:yb.master.TabletLocationsPB.ReplicaPB)
1438
0
}
1439
1440
1.64M
void TabletLocationsPB_ReplicaPB::SharedCtor() {
1441
1.64M
  _cached_size_ = 0;
1442
1.64M
  ::memset(&ts_info_, 0, static_cast<size_t>(
1443
1.64M
      reinterpret_cast<char*>(&role_) -
1444
1.64M
      reinterpret_cast<char*>(&ts_info_)) + sizeof(role_));
1445
1.64M
  member_type_ = 999;
1446
1.64M
}
1447
1448
1.63M
TabletLocationsPB_ReplicaPB::~TabletLocationsPB_ReplicaPB() {
1449
  // @@protoc_insertion_point(destructor:yb.master.TabletLocationsPB.ReplicaPB)
1450
1.63M
  SharedDtor();
1451
1.63M
}
1452
1453
1.63M
void TabletLocationsPB_ReplicaPB::SharedDtor() {
1454
1.63M
  if (this != internal_default_instance()) delete ts_info_;
1455
1.63M
}
1456
1457
0
void TabletLocationsPB_ReplicaPB::SetCachedSize(int size) const {
1458
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1459
0
  _cached_size_ = size;
1460
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1461
0
}
1462
0
const ::google::protobuf::Descriptor* TabletLocationsPB_ReplicaPB::descriptor() {
1463
0
  ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::protobuf_AssignDescriptorsOnce();
1464
0
  return ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
1465
0
}
1466
1467
0
const TabletLocationsPB_ReplicaPB& TabletLocationsPB_ReplicaPB::default_instance() {
1468
0
  ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::InitDefaultsTabletLocationsPB_ReplicaPB();
1469
0
  return *internal_default_instance();
1470
0
}
1471
1472
0
TabletLocationsPB_ReplicaPB* TabletLocationsPB_ReplicaPB::New(::google::protobuf::Arena* arena) const {
1473
0
  TabletLocationsPB_ReplicaPB* n = new TabletLocationsPB_ReplicaPB;
1474
0
  if (arena != NULL) {
1475
0
    arena->Own(n);
1476
0
  }
1477
0
  return n;
1478
0
}
1479
1480
53.1k
void TabletLocationsPB_ReplicaPB::Clear() {
1481
// @@protoc_insertion_point(message_clear_start:yb.master.TabletLocationsPB.ReplicaPB)
1482
53.1k
  ::google::protobuf::uint32 cached_has_bits = 0;
1483
  // Prevent compiler warnings about cached_has_bits being unused
1484
53.1k
  (void) cached_has_bits;
1485
1486
53.1k
  cached_has_bits = _has_bits_[0];
1487
53.1k
  if (cached_has_bits & 0x00000001u) {
1488
52.1k
    GOOGLE_DCHECK(ts_info_ != NULL);
1489
52.1k
    ts_info_->Clear();
1490
52.1k
  }
1491
53.1k
  if (cached_has_bits & 6u) {
1492
52.1k
    role_ = 0;
1493
52.1k
    member_type_ = 999;
1494
52.1k
  }
1495
53.1k
  _has_bits_.Clear();
1496
53.1k
  _internal_metadata_.Clear();
1497
53.1k
}
1498
1499
bool TabletLocationsPB_ReplicaPB::MergePartialFromCodedStream(
1500
627k
    ::google::protobuf::io::CodedInputStream* input) {
1501
1.88M
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
1502
627k
  ::google::protobuf::uint32 tag;
1503
  // @@protoc_insertion_point(parse_start:yb.master.TabletLocationsPB.ReplicaPB)
1504
2.50M
  for (;;) {
1505
2.50M
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1506
2.50M
    tag = p.first;
1507
2.50M
    if (!p.second) goto handle_unusual;
1508
1.88M
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1509
      // required .yb.master.TSInfoPB ts_info = 1;
1510
627k
      case 1: {
1511
627k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1512
627k
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
1513
627k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
1514
627k
               input, mutable_ts_info()));
1515
18.4E
        } else {
1516
18.4E
          goto handle_unusual;
1517
18.4E
        }
1518
627k
        break;
1519
627k
      }
1520
1521
      // required .yb.PeerRole role = 2;
1522
627k
      case 2: {
1523
627k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1524
627k
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
1525
627k
          int value;
1526
627k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1527
627k
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
1528
627k
                 input, &value)));
1529
627k
          if (::yb::PeerRole_IsValid(value)) {
1530
627k
            set_role(static_cast< ::yb::PeerRole >(value));
1531
34
          } else {
1532
34
            mutable_unknown_fields()->AddVarint(
1533
34
                2, static_cast< ::google::protobuf::uint64>(value));
1534
34
          }
1535
18.4E
        } else {
1536
18.4E
          goto handle_unusual;
1537
18.4E
        }
1538
627k
        break;
1539
627k
      }
1540
1541
      // optional .yb.consensus.PeerMemberType member_type = 3;
1542
627k
      case 3: {
1543
627k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1544
627k
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
1545
627k
          int value;
1546
627k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1547
627k
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
1548
627k
                 input, &value)));
1549
627k
          if (::yb::consensus::PeerMemberType_IsValid(value)) {
1550
627k
            set_member_type(static_cast< ::yb::consensus::PeerMemberType >(value));
1551
154
          } else {
1552
154
            mutable_unknown_fields()->AddVarint(
1553
154
                3, static_cast< ::google::protobuf::uint64>(value));
1554
154
          }
1555
18.4E
        } else {
1556
18.4E
          goto handle_unusual;
1557
18.4E
        }
1558
627k
        break;
1559
627k
      }
1560
1561
0
      default: {
1562
627k
      handle_unusual:
1563
627k
        if (tag == 0) {
1564
627k
          goto success;
1565
627k
        }
1566
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
1567
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
1568
18.4E
        break;
1569
18.4E
      }
1570
1.88M
    }
1571
1.88M
  }
1572
627k
success:
1573
  // @@protoc_insertion_point(parse_success:yb.master.TabletLocationsPB.ReplicaPB)
1574
627k
  return true;
1575
0
failure:
1576
  // @@protoc_insertion_point(parse_failure:yb.master.TabletLocationsPB.ReplicaPB)
1577
0
  return false;
1578
627k
#undef DO_
1579
627k
}
1580
1581
void TabletLocationsPB_ReplicaPB::SerializeWithCachedSizes(
1582
0
    ::google::protobuf::io::CodedOutputStream* output) const {
1583
  // @@protoc_insertion_point(serialize_start:yb.master.TabletLocationsPB.ReplicaPB)
1584
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1585
0
  (void) cached_has_bits;
1586
1587
0
  cached_has_bits = _has_bits_[0];
1588
  // required .yb.master.TSInfoPB ts_info = 1;
1589
0
  if (cached_has_bits & 0x00000001u) {
1590
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1591
0
      1, *this->ts_info_, output);
1592
0
  }
1593
1594
  // required .yb.PeerRole role = 2;
1595
0
  if (cached_has_bits & 0x00000002u) {
1596
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
1597
0
      2, this->role(), output);
1598
0
  }
1599
1600
  // optional .yb.consensus.PeerMemberType member_type = 3;
1601
0
  if (cached_has_bits & 0x00000004u) {
1602
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
1603
0
      3, this->member_type(), output);
1604
0
  }
1605
1606
0
  if (_internal_metadata_.have_unknown_fields()) {
1607
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1608
0
        _internal_metadata_.unknown_fields(), output);
1609
0
  }
1610
  // @@protoc_insertion_point(serialize_end:yb.master.TabletLocationsPB.ReplicaPB)
1611
0
}
1612
1613
::google::protobuf::uint8* TabletLocationsPB_ReplicaPB::InternalSerializeWithCachedSizesToArray(
1614
697k
    bool deterministic, ::google::protobuf::uint8* target) const {
1615
697k
  (void)deterministic; // Unused
1616
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.TabletLocationsPB.ReplicaPB)
1617
697k
  ::google::protobuf::uint32 cached_has_bits = 0;
1618
697k
  (void) cached_has_bits;
1619
1620
697k
  cached_has_bits = _has_bits_[0];
1621
  // required .yb.master.TSInfoPB ts_info = 1;
1622
697k
  if (cached_has_bits & 0x00000001u) {
1623
697k
    target = ::google::protobuf::internal::WireFormatLite::
1624
697k
      InternalWriteMessageToArray(
1625
697k
        1, *this->ts_info_, deterministic, target);
1626
697k
  }
1627
1628
  // required .yb.PeerRole role = 2;
1629
698k
  if (cached_has_bits & 0x00000002u) {
1630
698k
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1631
698k
      2, this->role(), target);
1632
698k
  }
1633
1634
  // optional .yb.consensus.PeerMemberType member_type = 3;
1635
697k
  if (cached_has_bits & 0x00000004u) {
1636
697k
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1637
697k
      3, this->member_type(), target);
1638
697k
  }
1639
1640
697k
  if (_internal_metadata_.have_unknown_fields()) {
1641
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1642
0
        _internal_metadata_.unknown_fields(), target);
1643
0
  }
1644
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.TabletLocationsPB.ReplicaPB)
1645
697k
  return target;
1646
697k
}
1647
1648
0
size_t TabletLocationsPB_ReplicaPB::RequiredFieldsByteSizeFallback() const {
1649
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:yb.master.TabletLocationsPB.ReplicaPB)
1650
0
  size_t total_size = 0;
1651
1652
0
  if (has_ts_info()) {
1653
    // required .yb.master.TSInfoPB ts_info = 1;
1654
0
    total_size += 1 +
1655
0
      ::google::protobuf::internal::WireFormatLite::MessageSize(
1656
0
        *this->ts_info_);
1657
0
  }
1658
1659
0
  if (has_role()) {
1660
    // required .yb.PeerRole role = 2;
1661
0
    total_size += 1 +
1662
0
      ::google::protobuf::internal::WireFormatLite::EnumSize(this->role());
1663
0
  }
1664
1665
0
  return total_size;
1666
0
}
1667
1.39M
size_t TabletLocationsPB_ReplicaPB::ByteSizeLong() const {
1668
// @@protoc_insertion_point(message_byte_size_start:yb.master.TabletLocationsPB.ReplicaPB)
1669
1.39M
  size_t total_size = 0;
1670
1671
1.39M
  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
1.39M
  if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) {  // All required fields are present.
1677
    // required .yb.master.TSInfoPB ts_info = 1;
1678
1.39M
    total_size += 1 +
1679
1.39M
      ::google::protobuf::internal::WireFormatLite::MessageSize(
1680
1.39M
        *this->ts_info_);
1681
1682
    // required .yb.PeerRole role = 2;
1683
1.39M
    total_size += 1 +
1684
1.39M
      ::google::protobuf::internal::WireFormatLite::EnumSize(this->role());
1685
1686
213
  } else {
1687
213
    total_size += RequiredFieldsByteSizeFallback();
1688
213
  }
1689
  // optional .yb.consensus.PeerMemberType member_type = 3;
1690
1.39M
  if (has_member_type()) {
1691
1.39M
    total_size += 1 +
1692
1.39M
      ::google::protobuf::internal::WireFormatLite::EnumSize(this->member_type());
1693
1.39M
  }
1694
1695
1.39M
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1696
1.39M
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1697
1.39M
  _cached_size_ = cached_size;
1698
1.39M
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1699
1.39M
  return total_size;
1700
1.39M
}
1701
1702
0
void TabletLocationsPB_ReplicaPB::MergeFrom(const ::google::protobuf::Message& from) {
1703
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.TabletLocationsPB.ReplicaPB)
1704
0
  GOOGLE_DCHECK_NE(&from, this);
1705
0
  const TabletLocationsPB_ReplicaPB* source =
1706
0
      ::google::protobuf::internal::DynamicCastToGenerated<const TabletLocationsPB_ReplicaPB>(
1707
0
          &from);
1708
0
  if (source == NULL) {
1709
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.TabletLocationsPB.ReplicaPB)
1710
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1711
0
  } else {
1712
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.TabletLocationsPB.ReplicaPB)
1713
0
    MergeFrom(*source);
1714
0
  }
1715
0
}
1716
1717
7.55k
void TabletLocationsPB_ReplicaPB::MergeFrom(const TabletLocationsPB_ReplicaPB& from) {
1718
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.TabletLocationsPB.ReplicaPB)
1719
7.55k
  GOOGLE_DCHECK_NE(&from, this);
1720
7.55k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1721
7.55k
  ::google::protobuf::uint32 cached_has_bits = 0;
1722
7.55k
  (void) cached_has_bits;
1723
1724
7.55k
  cached_has_bits = from._has_bits_[0];
1725
7.55k
  if (cached_has_bits & 7u) {
1726
7.55k
    if (cached_has_bits & 0x00000001u) {
1727
7.55k
      mutable_ts_info()->::yb::master::TSInfoPB::MergeFrom(from.ts_info());
1728
7.55k
    }
1729
7.55k
    if (cached_has_bits & 0x00000002u) {
1730
7.55k
      role_ = from.role_;
1731
7.55k
    }
1732
7.55k
    if (cached_has_bits & 0x00000004u) {
1733
7.55k
      member_type_ = from.member_type_;
1734
7.55k
    }
1735
7.55k
    _has_bits_[0] |= cached_has_bits;
1736
7.55k
  }
1737
7.55k
}
1738
1739
0
void TabletLocationsPB_ReplicaPB::CopyFrom(const ::google::protobuf::Message& from) {
1740
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.TabletLocationsPB.ReplicaPB)
1741
0
  if (&from == this) return;
1742
0
  Clear();
1743
0
  MergeFrom(from);
1744
0
}
1745
1746
984
void TabletLocationsPB_ReplicaPB::CopyFrom(const TabletLocationsPB_ReplicaPB& from) {
1747
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.TabletLocationsPB.ReplicaPB)
1748
984
  if (&from == this) return;
1749
984
  Clear();
1750
984
  MergeFrom(from);
1751
984
}
1752
1753
1.32M
bool TabletLocationsPB_ReplicaPB::IsInitialized() const {
1754
1.32M
  if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
1755
1.32M
  if (has_ts_info()) {
1756
1.32M
    if (!this->ts_info_->IsInitialized()) return false;
1757
1.32M
  }
1758
1.32M
  return true;
1759
1.32M
}
1760
1761
0
void TabletLocationsPB_ReplicaPB::Swap(TabletLocationsPB_ReplicaPB* other) {
1762
0
  if (other == this) return;
1763
0
  InternalSwap(other);
1764
0
}
1765
0
void TabletLocationsPB_ReplicaPB::InternalSwap(TabletLocationsPB_ReplicaPB* other) {
1766
0
  using std::swap;
1767
0
  swap(ts_info_, other->ts_info_);
1768
0
  swap(role_, other->role_);
1769
0
  swap(member_type_, other->member_type_);
1770
0
  swap(_has_bits_[0], other->_has_bits_[0]);
1771
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
1772
0
  swap(_cached_size_, other->_cached_size_);
1773
0
}
1774
1775
624
::google::protobuf::Metadata TabletLocationsPB_ReplicaPB::GetMetadata() const {
1776
624
  protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::protobuf_AssignDescriptorsOnce();
1777
624
  return ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::file_level_metadata[kIndexInFileMessages];
1778
624
}
1779
1780
1781
// ===================================================================
1782
1783
15.8k
void TabletLocationsPB::InitAsDefaultInstance() {
1784
15.8k
  ::yb::master::_TabletLocationsPB_default_instance_._instance.get_mutable()->partition_ = const_cast< ::yb::PartitionPB*>(
1785
15.8k
      ::yb::PartitionPB::internal_default_instance());
1786
15.8k
}
1787
0
void TabletLocationsPB::clear_partition() {
1788
0
  if (partition_ != NULL) partition_->Clear();
1789
0
  clear_has_partition();
1790
0
}
1791
#if !defined(_MSC_VER) || _MSC_VER >= 1900
1792
const int TabletLocationsPB::kTabletIdFieldNumber;
1793
const int TabletLocationsPB::kStartKeyFieldNumber;
1794
const int TabletLocationsPB::kEndKeyFieldNumber;
1795
const int TabletLocationsPB::kPartitionFieldNumber;
1796
const int TabletLocationsPB::kReplicasFieldNumber;
1797
const int TabletLocationsPB::kStaleFieldNumber;
1798
const int TabletLocationsPB::kTableIdFieldNumber;
1799
const int TabletLocationsPB::kTableIdsFieldNumber;
1800
const int TabletLocationsPB::kSplitDepthFieldNumber;
1801
const int TabletLocationsPB::kSplitParentTabletIdFieldNumber;
1802
const int TabletLocationsPB::kSplitTabletIdsFieldNumber;
1803
const int TabletLocationsPB::kExpectedLiveReplicasFieldNumber;
1804
const int TabletLocationsPB::kExpectedReadReplicasFieldNumber;
1805
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
1806
1807
TabletLocationsPB::TabletLocationsPB()
1808
615k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1809
599k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
1810
599k
    ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::InitDefaultsTabletLocationsPB();
1811
599k
  }
1812
615k
  SharedCtor();
1813
  // @@protoc_insertion_point(constructor:yb.master.TabletLocationsPB)
1814
615k
}
1815
TabletLocationsPB::TabletLocationsPB(const TabletLocationsPB& from)
1816
  : ::google::protobuf::Message(),
1817
      _internal_metadata_(NULL),
1818
      _has_bits_(from._has_bits_),
1819
      _cached_size_(0),
1820
      replicas_(from.replicas_),
1821
      table_ids_(from.table_ids_),
1822
513
      split_tablet_ids_(from.split_tablet_ids_) {
1823
513
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1824
513
  tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1825
513
  if (from.has_tablet_id()) {
1826
513
    tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_);
1827
513
  }
1828
513
  start_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1829
513
  if (from.has_start_key()) {
1830
0
    start_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.start_key_);
1831
0
  }
1832
513
  end_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1833
513
  if (from.has_end_key()) {
1834
0
    end_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.end_key_);
1835
0
  }
1836
513
  table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1837
513
  if (from.has_table_id()) {
1838
513
    table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_id_);
1839
513
  }
1840
513
  split_parent_tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1841
513
  if (from.has_split_parent_tablet_id()) {
1842
513
    split_parent_tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.split_parent_tablet_id_);
1843
513
  }
1844
513
  if (from.has_partition()) {
1845
513
    partition_ = new ::yb::PartitionPB(*from.partition_);
1846
0
  } else {
1847
0
    partition_ = NULL;
1848
0
  }
1849
513
  ::memcpy(&stale_, &from.stale_,
1850
513
    static_cast<size_t>(reinterpret_cast<char*>(&expected_read_replicas_) -
1851
513
    reinterpret_cast<char*>(&stale_)) + sizeof(expected_read_replicas_));
1852
  // @@protoc_insertion_point(copy_constructor:yb.master.TabletLocationsPB)
1853
513
}
1854
1855
615k
void TabletLocationsPB::SharedCtor() {
1856
615k
  _cached_size_ = 0;
1857
615k
  tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1858
615k
  start_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1859
615k
  end_key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1860
615k
  table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1861
615k
  split_parent_tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1862
615k
  ::memset(&partition_, 0, static_cast<size_t>(
1863
615k
      reinterpret_cast<char*>(&expected_read_replicas_) -
1864
615k
      reinterpret_cast<char*>(&partition_)) + sizeof(expected_read_replicas_));
1865
615k
}
1866
1867
599k
TabletLocationsPB::~TabletLocationsPB() {
1868
  // @@protoc_insertion_point(destructor:yb.master.TabletLocationsPB)
1869
599k
  SharedDtor();
1870
599k
}
1871
1872
599k
void TabletLocationsPB::SharedDtor() {
1873
599k
  tablet_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1874
599k
  start_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1875
599k
  end_key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1876
599k
  table_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1877
599k
  split_parent_tablet_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1878
599k
  if (this != internal_default_instance()) delete partition_;
1879
599k
}
1880
1881
0
void TabletLocationsPB::SetCachedSize(int size) const {
1882
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1883
0
  _cached_size_ = size;
1884
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1885
0
}
1886
0
const ::google::protobuf::Descriptor* TabletLocationsPB::descriptor() {
1887
0
  ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::protobuf_AssignDescriptorsOnce();
1888
0
  return ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
1889
0
}
1890
1891
0
const TabletLocationsPB& TabletLocationsPB::default_instance() {
1892
0
  ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::InitDefaultsTabletLocationsPB();
1893
0
  return *internal_default_instance();
1894
0
}
1895
1896
0
TabletLocationsPB* TabletLocationsPB::New(::google::protobuf::Arena* arena) const {
1897
0
  TabletLocationsPB* n = new TabletLocationsPB;
1898
0
  if (arena != NULL) {
1899
0
    arena->Own(n);
1900
0
  }
1901
0
  return n;
1902
0
}
1903
1904
26.2k
void TabletLocationsPB::Clear() {
1905
// @@protoc_insertion_point(message_clear_start:yb.master.TabletLocationsPB)
1906
26.2k
  ::google::protobuf::uint32 cached_has_bits = 0;
1907
  // Prevent compiler warnings about cached_has_bits being unused
1908
26.2k
  (void) cached_has_bits;
1909
1910
26.2k
  replicas_.Clear();
1911
26.2k
  table_ids_.Clear();
1912
26.2k
  split_tablet_ids_.Clear();
1913
26.2k
  cached_has_bits = _has_bits_[0];
1914
26.2k
  if (cached_has_bits & 63u) {
1915
26.1k
    if (cached_has_bits & 0x00000001u) {
1916
17.0k
      GOOGLE_DCHECK(!tablet_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
1917
17.0k
      (*tablet_id_.UnsafeRawStringPointer())->clear();
1918
17.0k
    }
1919
26.1k
    if (cached_has_bits & 0x00000002u) {
1920
0
      GOOGLE_DCHECK(!start_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
1921
0
      (*start_key_.UnsafeRawStringPointer())->clear();
1922
0
    }
1923
26.1k
    if (cached_has_bits & 0x00000004u) {
1924
0
      GOOGLE_DCHECK(!end_key_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
1925
0
      (*end_key_.UnsafeRawStringPointer())->clear();
1926
0
    }
1927
26.2k
    if (cached_has_bits & 0x00000008u) {
1928
26.2k
      GOOGLE_DCHECK(!table_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
1929
26.2k
      (*table_id_.UnsafeRawStringPointer())->clear();
1930
26.2k
    }
1931
26.1k
    if (cached_has_bits & 0x00000010u) {
1932
17.0k
      GOOGLE_DCHECK(!split_parent_tablet_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
1933
17.0k
      (*split_parent_tablet_id_.UnsafeRawStringPointer())->clear();
1934
17.0k
    }
1935
26.1k
    if (cached_has_bits & 0x00000020u) {
1936
17.0k
      GOOGLE_DCHECK(partition_ != NULL);
1937
17.0k
      partition_->Clear();
1938
17.0k
    }
1939
26.1k
  }
1940
26.2k
  if (cached_has_bits & 192u) {
1941
26.1k
    ::memset(&stale_, 0, static_cast<size_t>(
1942
26.1k
        reinterpret_cast<char*>(&expected_live_replicas_) -
1943
26.1k
        reinterpret_cast<char*>(&stale_)) + sizeof(expected_live_replicas_));
1944
26.1k
  }
1945
26.2k
  if (cached_has_bits & 768u) {
1946
26.1k
    ::memset(&split_depth_, 0, static_cast<size_t>(
1947
26.1k
        reinterpret_cast<char*>(&expected_read_replicas_) -
1948
26.1k
        reinterpret_cast<char*>(&split_depth_)) + sizeof(expected_read_replicas_));
1949
26.1k
  }
1950
26.2k
  _has_bits_.Clear();
1951
26.2k
  _internal_metadata_.Clear();
1952
26.2k
}
1953
1954
bool TabletLocationsPB::MergePartialFromCodedStream(
1955
229k
    ::google::protobuf::io::CodedInputStream* input) {
1956
21.0M
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
1957
229k
  ::google::protobuf::uint32 tag;
1958
  // @@protoc_insertion_point(parse_start:yb.master.TabletLocationsPB)
1959
21.3M
  for (;;) {
1960
21.3M
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1961
21.3M
    tag = p.first;
1962
21.3M
    if (!p.second) goto handle_unusual;
1963
21.0M
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1964
      // required bytes tablet_id = 1;
1965
229k
      case 1: {
1966
229k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1967
229k
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
1968
229k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
1969
229k
                input, this->mutable_tablet_id()));
1970
18.4E
        } else {
1971
18.4E
          goto handle_unusual;
1972
18.4E
        }
1973
229k
        break;
1974
229k
      }
1975
1976
      // optional bytes start_key = 2;
1977
0
      case 2: {
1978
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1979
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
1980
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
1981
0
                input, this->mutable_start_key()));
1982
0
        } else {
1983
0
          goto handle_unusual;
1984
0
        }
1985
0
        break;
1986
0
      }
1987
1988
      // optional bytes end_key = 3;
1989
0
      case 3: {
1990
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1991
0
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
1992
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
1993
0
                input, this->mutable_end_key()));
1994
0
        } else {
1995
0
          goto handle_unusual;
1996
0
        }
1997
0
        break;
1998
0
      }
1999
2000
      // repeated .yb.master.TabletLocationsPB.ReplicaPB replicas = 4;
2001
627k
      case 4: {
2002
627k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2003
627k
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
2004
627k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_replicas()));
2005
20
        } else {
2006
20
          goto handle_unusual;
2007
20
        }
2008
627k
        break;
2009
627k
      }
2010
2011
      // required bool stale = 5;
2012
229k
      case 5: {
2013
229k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2014
229k
            static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
2015
229k
          set_has_stale();
2016
229k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2017
229k
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
2018
229k
                 input, &stale_)));
2019
18.4E
        } else {
2020
18.4E
          goto handle_unusual;
2021
18.4E
        }
2022
229k
        break;
2023
229k
      }
2024
2025
      // optional .yb.PartitionPB partition = 6;
2026
102k
      case 6: {
2027
102k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2028
102k
            static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
2029
102k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
2030
102k
               input, mutable_partition()));
2031
0
        } else {
2032
0
          goto handle_unusual;
2033
0
        }
2034
102k
        break;
2035
102k
      }
2036
2037
      // optional bytes table_id = 7;
2038
229k
      case 7: {
2039
229k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2040
229k
            static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
2041
229k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
2042
229k
                input, this->mutable_table_id()));
2043
18.4E
        } else {
2044
18.4E
          goto handle_unusual;
2045
18.4E
        }
2046
229k
        break;
2047
229k
      }
2048
2049
      // repeated bytes table_ids = 8;
2050
19.0M
      case 8: {
2051
19.0M
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2052
19.0M
            static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
2053
19.0M
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
2054
19.0M
                input, this->add_table_ids()));
2055
18.4E
        } else {
2056
18.4E
          goto handle_unusual;
2057
18.4E
        }
2058
19.0M
        break;
2059
19.0M
      }
2060
2061
      // optional uint64 split_depth = 9;
2062
102k
      case 9: {
2063
102k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2064
102k
            static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
2065
102k
          set_has_split_depth();
2066
102k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2067
102k
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
2068
102k
                 input, &split_depth_)));
2069
1
        } else {
2070
1
          goto handle_unusual;
2071
1
        }
2072
102k
        break;
2073
102k
      }
2074
2075
      // optional int32 expected_live_replicas = 10;
2076
229k
      case 10: {
2077
229k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2078
229k
            static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) {
2079
229k
          set_has_expected_live_replicas();
2080
229k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2081
229k
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
2082
229k
                 input, &expected_live_replicas_)));
2083
18.4E
        } else {
2084
18.4E
          goto handle_unusual;
2085
18.4E
        }
2086
229k
        break;
2087
229k
      }
2088
2089
      // optional int32 expected_read_replicas = 11;
2090
229k
      case 11: {
2091
229k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2092
229k
            static_cast< ::google::protobuf::uint8>(88u /* 88 & 0xFF */)) {
2093
229k
          set_has_expected_read_replicas();
2094
229k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2095
229k
                   ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
2096
229k
                 input, &expected_read_replicas_)));
2097
18.4E
        } else {
2098
18.4E
          goto handle_unusual;
2099
18.4E
        }
2100
229k
        break;
2101
229k
      }
2102
2103
      // optional bytes split_parent_tablet_id = 12;
2104
102k
      case 12: {
2105
102k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2106
102k
            static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) {
2107
102k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
2108
102k
                input, this->mutable_split_parent_tablet_id()));
2109
4
        } else {
2110
4
          goto handle_unusual;
2111
4
        }
2112
102k
        break;
2113
102k
      }
2114
2115
      // repeated bytes split_tablet_ids = 13;
2116
142
      case 13: {
2117
142
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2118
142
            static_cast< ::google::protobuf::uint8>(106u /* 106 & 0xFF */)) {
2119
142
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
2120
142
                input, this->add_split_tablet_ids()));
2121
0
        } else {
2122
0
          goto handle_unusual;
2123
0
        }
2124
142
        break;
2125
229k
      }
2126
2127
0
      default: {
2128
229k
      handle_unusual:
2129
229k
        if (tag == 0) {
2130
229k
          goto success;
2131
229k
        }
2132
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
2133
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
2134
18.4E
        break;
2135
18.4E
      }
2136
21.0M
    }
2137
21.0M
  }
2138
229k
success:
2139
  // @@protoc_insertion_point(parse_success:yb.master.TabletLocationsPB)
2140
229k
  return true;
2141
0
failure:
2142
  // @@protoc_insertion_point(parse_failure:yb.master.TabletLocationsPB)
2143
0
  return false;
2144
229k
#undef DO_
2145
229k
}
2146
2147
void TabletLocationsPB::SerializeWithCachedSizes(
2148
0
    ::google::protobuf::io::CodedOutputStream* output) const {
2149
  // @@protoc_insertion_point(serialize_start:yb.master.TabletLocationsPB)
2150
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2151
0
  (void) cached_has_bits;
2152
2153
0
  cached_has_bits = _has_bits_[0];
2154
  // required bytes tablet_id = 1;
2155
0
  if (cached_has_bits & 0x00000001u) {
2156
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
2157
0
      1, this->tablet_id(), output);
2158
0
  }
2159
2160
  // optional bytes start_key = 2;
2161
0
  if (cached_has_bits & 0x00000002u) {
2162
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
2163
0
      2, this->start_key(), output);
2164
0
  }
2165
2166
  // optional bytes end_key = 3;
2167
0
  if (cached_has_bits & 0x00000004u) {
2168
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
2169
0
      3, this->end_key(), output);
2170
0
  }
2171
2172
  // repeated .yb.master.TabletLocationsPB.ReplicaPB replicas = 4;
2173
0
  for (unsigned int i = 0,
2174
0
      n = static_cast<unsigned int>(this->replicas_size()); i < n; i++) {
2175
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2176
0
      4, this->replicas(static_cast<int>(i)), output);
2177
0
  }
2178
2179
  // required bool stale = 5;
2180
0
  if (cached_has_bits & 0x00000040u) {
2181
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->stale(), output);
2182
0
  }
2183
2184
  // optional .yb.PartitionPB partition = 6;
2185
0
  if (cached_has_bits & 0x00000020u) {
2186
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2187
0
      6, *this->partition_, output);
2188
0
  }
2189
2190
  // optional bytes table_id = 7;
2191
0
  if (cached_has_bits & 0x00000008u) {
2192
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
2193
0
      7, this->table_id(), output);
2194
0
  }
2195
2196
  // repeated bytes table_ids = 8;
2197
0
  for (int i = 0, n = this->table_ids_size(); i < n; i++) {
2198
0
    ::google::protobuf::internal::WireFormatLite::WriteBytes(
2199
0
      8, this->table_ids(i), output);
2200
0
  }
2201
2202
  // optional uint64 split_depth = 9;
2203
0
  if (cached_has_bits & 0x00000100u) {
2204
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(9, this->split_depth(), output);
2205
0
  }
2206
2207
  // optional int32 expected_live_replicas = 10;
2208
0
  if (cached_has_bits & 0x00000080u) {
2209
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(10, this->expected_live_replicas(), output);
2210
0
  }
2211
2212
  // optional int32 expected_read_replicas = 11;
2213
0
  if (cached_has_bits & 0x00000200u) {
2214
0
    ::google::protobuf::internal::WireFormatLite::WriteInt32(11, this->expected_read_replicas(), output);
2215
0
  }
2216
2217
  // optional bytes split_parent_tablet_id = 12;
2218
0
  if (cached_has_bits & 0x00000010u) {
2219
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
2220
0
      12, this->split_parent_tablet_id(), output);
2221
0
  }
2222
2223
  // repeated bytes split_tablet_ids = 13;
2224
0
  for (int i = 0, n = this->split_tablet_ids_size(); i < n; i++) {
2225
0
    ::google::protobuf::internal::WireFormatLite::WriteBytes(
2226
0
      13, this->split_tablet_ids(i), output);
2227
0
  }
2228
2229
0
  if (_internal_metadata_.have_unknown_fields()) {
2230
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2231
0
        _internal_metadata_.unknown_fields(), output);
2232
0
  }
2233
  // @@protoc_insertion_point(serialize_end:yb.master.TabletLocationsPB)
2234
0
}
2235
2236
::google::protobuf::uint8* TabletLocationsPB::InternalSerializeWithCachedSizesToArray(
2237
249k
    bool deterministic, ::google::protobuf::uint8* target) const {
2238
249k
  (void)deterministic; // Unused
2239
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.TabletLocationsPB)
2240
249k
  ::google::protobuf::uint32 cached_has_bits = 0;
2241
249k
  (void) cached_has_bits;
2242
2243
249k
  cached_has_bits = _has_bits_[0];
2244
  // required bytes tablet_id = 1;
2245
249k
  if (cached_has_bits & 0x00000001u) {
2246
249k
    target =
2247
249k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
2248
249k
        1, this->tablet_id(), target);
2249
249k
  }
2250
2251
  // optional bytes start_key = 2;
2252
249k
  if (cached_has_bits & 0x00000002u) {
2253
0
    target =
2254
0
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
2255
0
        2, this->start_key(), target);
2256
0
  }
2257
2258
  // optional bytes end_key = 3;
2259
249k
  if (cached_has_bits & 0x00000004u) {
2260
0
    target =
2261
0
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
2262
0
        3, this->end_key(), target);
2263
0
  }
2264
2265
  // repeated .yb.master.TabletLocationsPB.ReplicaPB replicas = 4;
2266
249k
  for (unsigned int i = 0,
2267
947k
      n = static_cast<unsigned int>(this->replicas_size()); i < n; i++) {
2268
697k
    target = ::google::protobuf::internal::WireFormatLite::
2269
697k
      InternalWriteMessageToArray(
2270
697k
        4, this->replicas(static_cast<int>(i)), deterministic, target);
2271
697k
  }
2272
2273
  // required bool stale = 5;
2274
250k
  if (cached_has_bits & 0x00000040u) {
2275
250k
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->stale(), target);
2276
250k
  }
2277
2278
  // optional .yb.PartitionPB partition = 6;
2279
249k
  if (cached_has_bits & 0x00000020u) {
2280
122k
    target = ::google::protobuf::internal::WireFormatLite::
2281
122k
      InternalWriteMessageToArray(
2282
122k
        6, *this->partition_, deterministic, target);
2283
122k
  }
2284
2285
  // optional bytes table_id = 7;
2286
250k
  if (cached_has_bits & 0x00000008u) {
2287
250k
    target =
2288
250k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
2289
250k
        7, this->table_id(), target);
2290
250k
  }
2291
2292
  // repeated bytes table_ids = 8;
2293
19.2M
  for (int i = 0, n = this->table_ids_size(); i < n; i++) {
2294
19.0M
    target = ::google::protobuf::internal::WireFormatLite::
2295
19.0M
      WriteBytesToArray(8, this->table_ids(i), target);
2296
19.0M
  }
2297
2298
  // optional uint64 split_depth = 9;
2299
249k
  if (cached_has_bits & 0x00000100u) {
2300
122k
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(9, this->split_depth(), target);
2301
122k
  }
2302
2303
  // optional int32 expected_live_replicas = 10;
2304
250k
  if (cached_has_bits & 0x00000080u) {
2305
250k
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(10, this->expected_live_replicas(), target);
2306
250k
  }
2307
2308
  // optional int32 expected_read_replicas = 11;
2309
249k
  if (cached_has_bits & 0x00000200u) {
2310
249k
    target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(11, this->expected_read_replicas(), target);
2311
249k
  }
2312
2313
  // optional bytes split_parent_tablet_id = 12;
2314
249k
  if (cached_has_bits & 0x00000010u) {
2315
122k
    target =
2316
122k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
2317
122k
        12, this->split_parent_tablet_id(), target);
2318
122k
  }
2319
2320
  // repeated bytes split_tablet_ids = 13;
2321
249k
  for (int i = 0, n = this->split_tablet_ids_size(); i < n; i++) {
2322
142
    target = ::google::protobuf::internal::WireFormatLite::
2323
142
      WriteBytesToArray(13, this->split_tablet_ids(i), target);
2324
142
  }
2325
2326
249k
  if (_internal_metadata_.have_unknown_fields()) {
2327
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2328
0
        _internal_metadata_.unknown_fields(), target);
2329
0
  }
2330
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.TabletLocationsPB)
2331
249k
  return target;
2332
249k
}
2333
2334
0
size_t TabletLocationsPB::RequiredFieldsByteSizeFallback() const {
2335
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:yb.master.TabletLocationsPB)
2336
0
  size_t total_size = 0;
2337
2338
0
  if (has_tablet_id()) {
2339
    // required bytes tablet_id = 1;
2340
0
    total_size += 1 +
2341
0
      ::google::protobuf::internal::WireFormatLite::BytesSize(
2342
0
        this->tablet_id());
2343
0
  }
2344
2345
0
  if (has_stale()) {
2346
    // required bool stale = 5;
2347
0
    total_size += 1 + 1;
2348
0
  }
2349
2350
0
  return total_size;
2351
0
}
2352
500k
size_t TabletLocationsPB::ByteSizeLong() const {
2353
// @@protoc_insertion_point(message_byte_size_start:yb.master.TabletLocationsPB)
2354
500k
  size_t total_size = 0;
2355
2356
500k
  if (_internal_metadata_.have_unknown_fields()) {
2357
0
    total_size +=
2358
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2359
0
        _internal_metadata_.unknown_fields());
2360
0
  }
2361
500k
  if (((_has_bits_[0] & 0x00000041) ^ 0x00000041) == 0) {  // All required fields are present.
2362
    // required bytes tablet_id = 1;
2363
500k
    total_size += 1 +
2364
500k
      ::google::protobuf::internal::WireFormatLite::BytesSize(
2365
500k
        this->tablet_id());
2366
2367
    // required bool stale = 5;
2368
500k
    total_size += 1 + 1;
2369
2370
18.4E
  } else {
2371
18.4E
    total_size += RequiredFieldsByteSizeFallback();
2372
18.4E
  }
2373
  // repeated .yb.master.TabletLocationsPB.ReplicaPB replicas = 4;
2374
500k
  {
2375
500k
    unsigned int count = static_cast<unsigned int>(this->replicas_size());
2376
500k
    total_size += 1UL * count;
2377
1.89M
    for (unsigned int i = 0; i < count; i++) {
2378
1.39M
      total_size +=
2379
1.39M
        ::google::protobuf::internal::WireFormatLite::MessageSize(
2380
1.39M
          this->replicas(static_cast<int>(i)));
2381
1.39M
    }
2382
500k
  }
2383
2384
  // repeated bytes table_ids = 8;
2385
500k
  total_size += 1 *
2386
500k
      ::google::protobuf::internal::FromIntSize(this->table_ids_size());
2387
38.5M
  for (int i = 0, n = this->table_ids_size(); i < n; i++) {
2388
38.0M
    total_size += ::google::protobuf::internal::WireFormatLite::BytesSize(
2389
38.0M
      this->table_ids(i));
2390
38.0M
  }
2391
2392
  // repeated bytes split_tablet_ids = 13;
2393
500k
  total_size += 1 *
2394
500k
      ::google::protobuf::internal::FromIntSize(this->split_tablet_ids_size());
2395
500k
  for (int i = 0, n = this->split_tablet_ids_size(); i < n; i++) {
2396
284
    total_size += ::google::protobuf::internal::WireFormatLite::BytesSize(
2397
284
      this->split_tablet_ids(i));
2398
284
  }
2399
2400
500k
  if (_has_bits_[0 / 32] & 62u) {
2401
    // optional bytes start_key = 2;
2402
500k
    if (has_start_key()) {
2403
0
      total_size += 1 +
2404
0
        ::google::protobuf::internal::WireFormatLite::BytesSize(
2405
0
          this->start_key());
2406
0
    }
2407
2408
    // optional bytes end_key = 3;
2409
500k
    if (has_end_key()) {
2410
0
      total_size += 1 +
2411
0
        ::google::protobuf::internal::WireFormatLite::BytesSize(
2412
0
          this->end_key());
2413
0
    }
2414
2415
    // optional bytes table_id = 7;
2416
500k
    if (has_table_id()) {
2417
500k
      total_size += 1 +
2418
500k
        ::google::protobuf::internal::WireFormatLite::BytesSize(
2419
500k
          this->table_id());
2420
500k
    }
2421
2422
    // optional bytes split_parent_tablet_id = 12;
2423
500k
    if (has_split_parent_tablet_id()) {
2424
245k
      total_size += 1 +
2425
245k
        ::google::protobuf::internal::WireFormatLite::BytesSize(
2426
245k
          this->split_parent_tablet_id());
2427
245k
    }
2428
2429
    // optional .yb.PartitionPB partition = 6;
2430
500k
    if (has_partition()) {
2431
245k
      total_size += 1 +
2432
245k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
2433
245k
          *this->partition_);
2434
245k
    }
2435
2436
500k
  }
2437
  // optional int32 expected_live_replicas = 10;
2438
500k
  if (has_expected_live_replicas()) {
2439
499k
    total_size += 1 +
2440
499k
      ::google::protobuf::internal::WireFormatLite::Int32Size(
2441
499k
        this->expected_live_replicas());
2442
499k
  }
2443
2444
500k
  if (_has_bits_[8 / 32] & 768u) {
2445
    // optional uint64 split_depth = 9;
2446
499k
    if (has_split_depth()) {
2447
245k
      total_size += 1 +
2448
245k
        ::google::protobuf::internal::WireFormatLite::UInt64Size(
2449
245k
          this->split_depth());
2450
245k
    }
2451
2452
    // optional int32 expected_read_replicas = 11;
2453
499k
    if (has_expected_read_replicas()) {
2454
499k
      total_size += 1 +
2455
499k
        ::google::protobuf::internal::WireFormatLite::Int32Size(
2456
499k
          this->expected_read_replicas());
2457
499k
    }
2458
2459
499k
  }
2460
500k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2461
500k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2462
500k
  _cached_size_ = cached_size;
2463
500k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2464
500k
  return total_size;
2465
500k
}
2466
2467
0
void TabletLocationsPB::MergeFrom(const ::google::protobuf::Message& from) {
2468
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.TabletLocationsPB)
2469
0
  GOOGLE_DCHECK_NE(&from, this);
2470
0
  const TabletLocationsPB* source =
2471
0
      ::google::protobuf::internal::DynamicCastToGenerated<const TabletLocationsPB>(
2472
0
          &from);
2473
0
  if (source == NULL) {
2474
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.TabletLocationsPB)
2475
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2476
0
  } else {
2477
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.TabletLocationsPB)
2478
0
    MergeFrom(*source);
2479
0
  }
2480
0
}
2481
2482
3.48k
void TabletLocationsPB::MergeFrom(const TabletLocationsPB& from) {
2483
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.TabletLocationsPB)
2484
3.48k
  GOOGLE_DCHECK_NE(&from, this);
2485
3.48k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2486
3.48k
  ::google::protobuf::uint32 cached_has_bits = 0;
2487
3.48k
  (void) cached_has_bits;
2488
2489
3.48k
  replicas_.MergeFrom(from.replicas_);
2490
3.48k
  table_ids_.MergeFrom(from.table_ids_);
2491
3.48k
  split_tablet_ids_.MergeFrom(from.split_tablet_ids_);
2492
3.48k
  cached_has_bits = from._has_bits_[0];
2493
3.48k
  if (cached_has_bits & 255u) {
2494
3.48k
    if (cached_has_bits & 0x00000001u) {
2495
3.48k
      set_has_tablet_id();
2496
3.48k
      tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_);
2497
3.48k
    }
2498
3.48k
    if (cached_has_bits & 0x00000002u) {
2499
0
      set_has_start_key();
2500
0
      start_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.start_key_);
2501
0
    }
2502
3.48k
    if (cached_has_bits & 0x00000004u) {
2503
0
      set_has_end_key();
2504
0
      end_key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.end_key_);
2505
0
    }
2506
3.48k
    if (cached_has_bits & 0x00000008u) {
2507
3.48k
      set_has_table_id();
2508
3.48k
      table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_id_);
2509
3.48k
    }
2510
3.48k
    if (cached_has_bits & 0x00000010u) {
2511
3.48k
      set_has_split_parent_tablet_id();
2512
3.48k
      split_parent_tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.split_parent_tablet_id_);
2513
3.48k
    }
2514
3.48k
    if (cached_has_bits & 0x00000020u) {
2515
3.48k
      mutable_partition()->::yb::PartitionPB::MergeFrom(from.partition());
2516
3.48k
    }
2517
3.48k
    if (cached_has_bits & 0x00000040u) {
2518
3.48k
      stale_ = from.stale_;
2519
3.48k
    }
2520
3.48k
    if (cached_has_bits & 0x00000080u) {
2521
3.48k
      expected_live_replicas_ = from.expected_live_replicas_;
2522
3.48k
    }
2523
3.48k
    _has_bits_[0] |= cached_has_bits;
2524
3.48k
  }
2525
3.48k
  if (cached_has_bits & 768u) {
2526
3.48k
    if (cached_has_bits & 0x00000100u) {
2527
3.48k
      split_depth_ = from.split_depth_;
2528
3.48k
    }
2529
3.48k
    if (cached_has_bits & 0x00000200u) {
2530
3.48k
      expected_read_replicas_ = from.expected_read_replicas_;
2531
3.48k
    }
2532
3.48k
    _has_bits_[0] |= cached_has_bits;
2533
3.48k
  }
2534
3.48k
}
2535
2536
0
void TabletLocationsPB::CopyFrom(const ::google::protobuf::Message& from) {
2537
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.TabletLocationsPB)
2538
0
  if (&from == this) return;
2539
0
  Clear();
2540
0
  MergeFrom(from);
2541
0
}
2542
2543
74
void TabletLocationsPB::CopyFrom(const TabletLocationsPB& from) {
2544
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.TabletLocationsPB)
2545
74
  if (&from == this) return;
2546
74
  Clear();
2547
74
  MergeFrom(from);
2548
74
}
2549
2550
479k
bool TabletLocationsPB::IsInitialized() const {
2551
479k
  if ((_has_bits_[0] & 0x00000041) != 0x00000041) return false;
2552
479k
  if (!::google::protobuf::internal::AllAreInitialized(this->replicas())) return false;
2553
479k
  return true;
2554
479k
}
2555
2556
0
void TabletLocationsPB::Swap(TabletLocationsPB* other) {
2557
0
  if (other == this) return;
2558
0
  InternalSwap(other);
2559
0
}
2560
0
void TabletLocationsPB::InternalSwap(TabletLocationsPB* other) {
2561
0
  using std::swap;
2562
0
  replicas_.InternalSwap(&other->replicas_);
2563
0
  table_ids_.InternalSwap(&other->table_ids_);
2564
0
  split_tablet_ids_.InternalSwap(&other->split_tablet_ids_);
2565
0
  tablet_id_.Swap(&other->tablet_id_);
2566
0
  start_key_.Swap(&other->start_key_);
2567
0
  end_key_.Swap(&other->end_key_);
2568
0
  table_id_.Swap(&other->table_id_);
2569
0
  split_parent_tablet_id_.Swap(&other->split_parent_tablet_id_);
2570
0
  swap(partition_, other->partition_);
2571
0
  swap(stale_, other->stale_);
2572
0
  swap(expected_live_replicas_, other->expected_live_replicas_);
2573
0
  swap(split_depth_, other->split_depth_);
2574
0
  swap(expected_read_replicas_, other->expected_read_replicas_);
2575
0
  swap(_has_bits_[0], other->_has_bits_[0]);
2576
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
2577
0
  swap(_cached_size_, other->_cached_size_);
2578
0
}
2579
2580
574
::google::protobuf::Metadata TabletLocationsPB::GetMetadata() const {
2581
574
  protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::protobuf_AssignDescriptorsOnce();
2582
574
  return ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::file_level_metadata[kIndexInFileMessages];
2583
574
}
2584
2585
2586
// ===================================================================
2587
2588
15.8k
void GetTabletLocationsRequestPB::InitAsDefaultInstance() {
2589
15.8k
}
2590
#if !defined(_MSC_VER) || _MSC_VER >= 1900
2591
const int GetTabletLocationsRequestPB::kTabletIdsFieldNumber;
2592
const int GetTabletLocationsRequestPB::kTableIdFieldNumber;
2593
const int GetTabletLocationsRequestPB::kIncludeInactiveFieldNumber;
2594
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
2595
2596
GetTabletLocationsRequestPB::GetTabletLocationsRequestPB()
2597
34.1k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
2598
18.2k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
2599
18.2k
    ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::InitDefaultsGetTabletLocationsRequestPB();
2600
18.2k
  }
2601
34.1k
  SharedCtor();
2602
  // @@protoc_insertion_point(constructor:yb.master.GetTabletLocationsRequestPB)
2603
34.1k
}
2604
GetTabletLocationsRequestPB::GetTabletLocationsRequestPB(const GetTabletLocationsRequestPB& from)
2605
  : ::google::protobuf::Message(),
2606
      _internal_metadata_(NULL),
2607
      _has_bits_(from._has_bits_),
2608
      _cached_size_(0),
2609
0
      tablet_ids_(from.tablet_ids_) {
2610
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2611
0
  table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2612
0
  if (from.has_table_id()) {
2613
0
    table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_id_);
2614
0
  }
2615
0
  include_inactive_ = from.include_inactive_;
2616
  // @@protoc_insertion_point(copy_constructor:yb.master.GetTabletLocationsRequestPB)
2617
0
}
2618
2619
34.1k
void GetTabletLocationsRequestPB::SharedCtor() {
2620
34.1k
  _cached_size_ = 0;
2621
34.1k
  table_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2622
34.1k
  include_inactive_ = false;
2623
34.1k
}
2624
2625
18.2k
GetTabletLocationsRequestPB::~GetTabletLocationsRequestPB() {
2626
  // @@protoc_insertion_point(destructor:yb.master.GetTabletLocationsRequestPB)
2627
18.2k
  SharedDtor();
2628
18.2k
}
2629
2630
18.2k
void GetTabletLocationsRequestPB::SharedDtor() {
2631
18.2k
  table_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2632
18.2k
}
2633
2634
0
void GetTabletLocationsRequestPB::SetCachedSize(int size) const {
2635
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2636
0
  _cached_size_ = size;
2637
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2638
0
}
2639
0
const ::google::protobuf::Descriptor* GetTabletLocationsRequestPB::descriptor() {
2640
0
  ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::protobuf_AssignDescriptorsOnce();
2641
0
  return ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
2642
0
}
2643
2644
0
const GetTabletLocationsRequestPB& GetTabletLocationsRequestPB::default_instance() {
2645
0
  ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::InitDefaultsGetTabletLocationsRequestPB();
2646
0
  return *internal_default_instance();
2647
0
}
2648
2649
0
GetTabletLocationsRequestPB* GetTabletLocationsRequestPB::New(::google::protobuf::Arena* arena) const {
2650
0
  GetTabletLocationsRequestPB* n = new GetTabletLocationsRequestPB;
2651
0
  if (arena != NULL) {
2652
0
    arena->Own(n);
2653
0
  }
2654
0
  return n;
2655
0
}
2656
2657
9.12k
void GetTabletLocationsRequestPB::Clear() {
2658
// @@protoc_insertion_point(message_clear_start:yb.master.GetTabletLocationsRequestPB)
2659
9.12k
  ::google::protobuf::uint32 cached_has_bits = 0;
2660
  // Prevent compiler warnings about cached_has_bits being unused
2661
9.12k
  (void) cached_has_bits;
2662
2663
9.12k
  tablet_ids_.Clear();
2664
9.12k
  cached_has_bits = _has_bits_[0];
2665
9.12k
  if (cached_has_bits & 0x00000001u) {
2666
0
    GOOGLE_DCHECK(!table_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
2667
0
    (*table_id_.UnsafeRawStringPointer())->clear();
2668
0
  }
2669
9.12k
  include_inactive_ = false;
2670
9.12k
  _has_bits_.Clear();
2671
9.12k
  _internal_metadata_.Clear();
2672
9.12k
}
2673
2674
bool GetTabletLocationsRequestPB::MergePartialFromCodedStream(
2675
9.10k
    ::google::protobuf::io::CodedInputStream* input) {
2676
19.4k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
2677
9.10k
  ::google::protobuf::uint32 tag;
2678
  // @@protoc_insertion_point(parse_start:yb.master.GetTabletLocationsRequestPB)
2679
28.5k
  for (;;) {
2680
28.5k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2681
28.5k
    tag = p.first;
2682
28.5k
    if (!p.second) goto handle_unusual;
2683
19.4k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2684
      // repeated bytes tablet_ids = 1;
2685
9.16k
      case 1: {
2686
9.16k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2687
9.16k
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
2688
9.16k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
2689
9.16k
                input, this->add_tablet_ids()));
2690
1
        } else {
2691
1
          goto handle_unusual;
2692
1
        }
2693
9.16k
        break;
2694
9.16k
      }
2695
2696
      // optional bytes table_id = 2;
2697
1.24k
      case 2: {
2698
1.24k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2699
1.24k
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
2700
1.24k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
2701
1.24k
                input, this->mutable_table_id()));
2702
0
        } else {
2703
0
          goto handle_unusual;
2704
0
        }
2705
1.24k
        break;
2706
1.24k
      }
2707
2708
      // optional bool include_inactive = 3;
2709
9.03k
      case 3: {
2710
9.03k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2711
9.03k
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
2712
9.03k
          set_has_include_inactive();
2713
9.03k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2714
9.03k
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
2715
9.03k
                 input, &include_inactive_)));
2716
0
        } else {
2717
0
          goto handle_unusual;
2718
0
        }
2719
9.03k
        break;
2720
9.11k
      }
2721
2722
0
      default: {
2723
9.11k
      handle_unusual:
2724
9.11k
        if (tag == 0) {
2725
9.11k
          goto success;
2726
9.11k
        }
2727
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
2728
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
2729
18.4E
        break;
2730
18.4E
      }
2731
19.4k
    }
2732
19.4k
  }
2733
9.11k
success:
2734
  // @@protoc_insertion_point(parse_success:yb.master.GetTabletLocationsRequestPB)
2735
9.11k
  return true;
2736
0
failure:
2737
  // @@protoc_insertion_point(parse_failure:yb.master.GetTabletLocationsRequestPB)
2738
0
  return false;
2739
9.10k
#undef DO_
2740
9.10k
}
2741
2742
void GetTabletLocationsRequestPB::SerializeWithCachedSizes(
2743
0
    ::google::protobuf::io::CodedOutputStream* output) const {
2744
  // @@protoc_insertion_point(serialize_start:yb.master.GetTabletLocationsRequestPB)
2745
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2746
0
  (void) cached_has_bits;
2747
2748
  // repeated bytes tablet_ids = 1;
2749
0
  for (int i = 0, n = this->tablet_ids_size(); i < n; i++) {
2750
0
    ::google::protobuf::internal::WireFormatLite::WriteBytes(
2751
0
      1, this->tablet_ids(i), output);
2752
0
  }
2753
2754
0
  cached_has_bits = _has_bits_[0];
2755
  // optional bytes table_id = 2;
2756
0
  if (cached_has_bits & 0x00000001u) {
2757
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
2758
0
      2, this->table_id(), output);
2759
0
  }
2760
2761
  // optional bool include_inactive = 3;
2762
0
  if (cached_has_bits & 0x00000002u) {
2763
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->include_inactive(), output);
2764
0
  }
2765
2766
0
  if (_internal_metadata_.have_unknown_fields()) {
2767
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2768
0
        _internal_metadata_.unknown_fields(), output);
2769
0
  }
2770
  // @@protoc_insertion_point(serialize_end:yb.master.GetTabletLocationsRequestPB)
2771
0
}
2772
2773
::google::protobuf::uint8* GetTabletLocationsRequestPB::InternalSerializeWithCachedSizesToArray(
2774
9.19k
    bool deterministic, ::google::protobuf::uint8* target) const {
2775
9.19k
  (void)deterministic; // Unused
2776
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.GetTabletLocationsRequestPB)
2777
9.19k
  ::google::protobuf::uint32 cached_has_bits = 0;
2778
9.19k
  (void) cached_has_bits;
2779
2780
  // repeated bytes tablet_ids = 1;
2781
18.4k
  for (int i = 0, n = this->tablet_ids_size(); i < n; i++) {
2782
9.24k
    target = ::google::protobuf::internal::WireFormatLite::
2783
9.24k
      WriteBytesToArray(1, this->tablet_ids(i), target);
2784
9.24k
  }
2785
2786
9.19k
  cached_has_bits = _has_bits_[0];
2787
  // optional bytes table_id = 2;
2788
9.19k
  if (cached_has_bits & 0x00000001u) {
2789
1.31k
    target =
2790
1.31k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
2791
1.31k
        2, this->table_id(), target);
2792
1.31k
  }
2793
2794
  // optional bool include_inactive = 3;
2795
9.19k
  if (cached_has_bits & 0x00000002u) {
2796
9.10k
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->include_inactive(), target);
2797
9.10k
  }
2798
2799
9.19k
  if (_internal_metadata_.have_unknown_fields()) {
2800
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2801
0
        _internal_metadata_.unknown_fields(), target);
2802
0
  }
2803
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.GetTabletLocationsRequestPB)
2804
9.19k
  return target;
2805
9.19k
}
2806
2807
18.3k
size_t GetTabletLocationsRequestPB::ByteSizeLong() const {
2808
// @@protoc_insertion_point(message_byte_size_start:yb.master.GetTabletLocationsRequestPB)
2809
18.3k
  size_t total_size = 0;
2810
2811
18.3k
  if (_internal_metadata_.have_unknown_fields()) {
2812
0
    total_size +=
2813
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2814
0
        _internal_metadata_.unknown_fields());
2815
0
  }
2816
  // repeated bytes tablet_ids = 1;
2817
18.3k
  total_size += 1 *
2818
18.3k
      ::google::protobuf::internal::FromIntSize(this->tablet_ids_size());
2819
36.8k
  for (int i = 0, n = this->tablet_ids_size(); i < n; i++) {
2820
18.4k
    total_size += ::google::protobuf::internal::WireFormatLite::BytesSize(
2821
18.4k
      this->tablet_ids(i));
2822
18.4k
  }
2823
2824
18.3k
  if (_has_bits_[0 / 32] & 3u) {
2825
    // optional bytes table_id = 2;
2826
18.2k
    if (has_table_id()) {
2827
2.63k
      total_size += 1 +
2828
2.63k
        ::google::protobuf::internal::WireFormatLite::BytesSize(
2829
2.63k
          this->table_id());
2830
2.63k
    }
2831
2832
    // optional bool include_inactive = 3;
2833
18.2k
    if (has_include_inactive()) {
2834
18.2k
      total_size += 1 + 1;
2835
18.2k
    }
2836
2837
18.2k
  }
2838
18.3k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2839
18.3k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2840
18.3k
  _cached_size_ = cached_size;
2841
18.3k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2842
18.3k
  return total_size;
2843
18.3k
}
2844
2845
0
void GetTabletLocationsRequestPB::MergeFrom(const ::google::protobuf::Message& from) {
2846
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.GetTabletLocationsRequestPB)
2847
0
  GOOGLE_DCHECK_NE(&from, this);
2848
0
  const GetTabletLocationsRequestPB* source =
2849
0
      ::google::protobuf::internal::DynamicCastToGenerated<const GetTabletLocationsRequestPB>(
2850
0
          &from);
2851
0
  if (source == NULL) {
2852
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.GetTabletLocationsRequestPB)
2853
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2854
0
  } else {
2855
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.GetTabletLocationsRequestPB)
2856
0
    MergeFrom(*source);
2857
0
  }
2858
0
}
2859
2860
0
void GetTabletLocationsRequestPB::MergeFrom(const GetTabletLocationsRequestPB& from) {
2861
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.GetTabletLocationsRequestPB)
2862
0
  GOOGLE_DCHECK_NE(&from, this);
2863
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2864
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2865
0
  (void) cached_has_bits;
2866
2867
0
  tablet_ids_.MergeFrom(from.tablet_ids_);
2868
0
  cached_has_bits = from._has_bits_[0];
2869
0
  if (cached_has_bits & 3u) {
2870
0
    if (cached_has_bits & 0x00000001u) {
2871
0
      set_has_table_id();
2872
0
      table_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.table_id_);
2873
0
    }
2874
0
    if (cached_has_bits & 0x00000002u) {
2875
0
      include_inactive_ = from.include_inactive_;
2876
0
    }
2877
0
    _has_bits_[0] |= cached_has_bits;
2878
0
  }
2879
0
}
2880
2881
0
void GetTabletLocationsRequestPB::CopyFrom(const ::google::protobuf::Message& from) {
2882
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.GetTabletLocationsRequestPB)
2883
0
  if (&from == this) return;
2884
0
  Clear();
2885
0
  MergeFrom(from);
2886
0
}
2887
2888
0
void GetTabletLocationsRequestPB::CopyFrom(const GetTabletLocationsRequestPB& from) {
2889
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.GetTabletLocationsRequestPB)
2890
0
  if (&from == this) return;
2891
0
  Clear();
2892
0
  MergeFrom(from);
2893
0
}
2894
2895
18.3k
bool GetTabletLocationsRequestPB::IsInitialized() const {
2896
18.3k
  return true;
2897
18.3k
}
2898
2899
0
void GetTabletLocationsRequestPB::Swap(GetTabletLocationsRequestPB* other) {
2900
0
  if (other == this) return;
2901
0
  InternalSwap(other);
2902
0
}
2903
0
void GetTabletLocationsRequestPB::InternalSwap(GetTabletLocationsRequestPB* other) {
2904
0
  using std::swap;
2905
0
  tablet_ids_.InternalSwap(&other->tablet_ids_);
2906
0
  table_id_.Swap(&other->table_id_);
2907
0
  swap(include_inactive_, other->include_inactive_);
2908
0
  swap(_has_bits_[0], other->_has_bits_[0]);
2909
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
2910
0
  swap(_cached_size_, other->_cached_size_);
2911
0
}
2912
2913
9.09k
::google::protobuf::Metadata GetTabletLocationsRequestPB::GetMetadata() const {
2914
9.09k
  protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::protobuf_AssignDescriptorsOnce();
2915
9.09k
  return ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::file_level_metadata[kIndexInFileMessages];
2916
9.09k
}
2917
2918
2919
// ===================================================================
2920
2921
15.8k
void GetTabletLocationsResponsePB_Error::InitAsDefaultInstance() {
2922
15.8k
  ::yb::master::_GetTabletLocationsResponsePB_Error_default_instance_._instance.get_mutable()->status_ = const_cast< ::yb::AppStatusPB*>(
2923
15.8k
      ::yb::AppStatusPB::internal_default_instance());
2924
15.8k
}
2925
0
void GetTabletLocationsResponsePB_Error::clear_status() {
2926
0
  if (status_ != NULL) status_->Clear();
2927
0
  clear_has_status();
2928
0
}
2929
#if !defined(_MSC_VER) || _MSC_VER >= 1900
2930
const int GetTabletLocationsResponsePB_Error::kTabletIdFieldNumber;
2931
const int GetTabletLocationsResponsePB_Error::kStatusFieldNumber;
2932
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
2933
2934
GetTabletLocationsResponsePB_Error::GetTabletLocationsResponsePB_Error()
2935
16.4k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
2936
648
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
2937
648
    ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::InitDefaultsGetTabletLocationsResponsePB_Error();
2938
648
  }
2939
16.4k
  SharedCtor();
2940
  // @@protoc_insertion_point(constructor:yb.master.GetTabletLocationsResponsePB.Error)
2941
16.4k
}
2942
GetTabletLocationsResponsePB_Error::GetTabletLocationsResponsePB_Error(const GetTabletLocationsResponsePB_Error& from)
2943
  : ::google::protobuf::Message(),
2944
      _internal_metadata_(NULL),
2945
      _has_bits_(from._has_bits_),
2946
0
      _cached_size_(0) {
2947
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2948
0
  tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2949
0
  if (from.has_tablet_id()) {
2950
0
    tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_);
2951
0
  }
2952
0
  if (from.has_status()) {
2953
0
    status_ = new ::yb::AppStatusPB(*from.status_);
2954
0
  } else {
2955
0
    status_ = NULL;
2956
0
  }
2957
  // @@protoc_insertion_point(copy_constructor:yb.master.GetTabletLocationsResponsePB.Error)
2958
0
}
2959
2960
16.4k
void GetTabletLocationsResponsePB_Error::SharedCtor() {
2961
16.4k
  _cached_size_ = 0;
2962
16.4k
  tablet_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2963
16.4k
  status_ = NULL;
2964
16.4k
}
2965
2966
648
GetTabletLocationsResponsePB_Error::~GetTabletLocationsResponsePB_Error() {
2967
  // @@protoc_insertion_point(destructor:yb.master.GetTabletLocationsResponsePB.Error)
2968
648
  SharedDtor();
2969
648
}
2970
2971
648
void GetTabletLocationsResponsePB_Error::SharedDtor() {
2972
648
  tablet_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2973
648
  if (this != internal_default_instance()) delete status_;
2974
648
}
2975
2976
0
void GetTabletLocationsResponsePB_Error::SetCachedSize(int size) const {
2977
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2978
0
  _cached_size_ = size;
2979
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2980
0
}
2981
0
const ::google::protobuf::Descriptor* GetTabletLocationsResponsePB_Error::descriptor() {
2982
0
  ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::protobuf_AssignDescriptorsOnce();
2983
0
  return ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
2984
0
}
2985
2986
0
const GetTabletLocationsResponsePB_Error& GetTabletLocationsResponsePB_Error::default_instance() {
2987
0
  ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::InitDefaultsGetTabletLocationsResponsePB_Error();
2988
0
  return *internal_default_instance();
2989
0
}
2990
2991
0
GetTabletLocationsResponsePB_Error* GetTabletLocationsResponsePB_Error::New(::google::protobuf::Arena* arena) const {
2992
0
  GetTabletLocationsResponsePB_Error* n = new GetTabletLocationsResponsePB_Error;
2993
0
  if (arena != NULL) {
2994
0
    arena->Own(n);
2995
0
  }
2996
0
  return n;
2997
0
}
2998
2999
0
void GetTabletLocationsResponsePB_Error::Clear() {
3000
// @@protoc_insertion_point(message_clear_start:yb.master.GetTabletLocationsResponsePB.Error)
3001
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3002
  // Prevent compiler warnings about cached_has_bits being unused
3003
0
  (void) cached_has_bits;
3004
3005
0
  cached_has_bits = _has_bits_[0];
3006
0
  if (cached_has_bits & 3u) {
3007
0
    if (cached_has_bits & 0x00000001u) {
3008
0
      GOOGLE_DCHECK(!tablet_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
3009
0
      (*tablet_id_.UnsafeRawStringPointer())->clear();
3010
0
    }
3011
0
    if (cached_has_bits & 0x00000002u) {
3012
0
      GOOGLE_DCHECK(status_ != NULL);
3013
0
      status_->Clear();
3014
0
    }
3015
0
  }
3016
0
  _has_bits_.Clear();
3017
0
  _internal_metadata_.Clear();
3018
0
}
3019
3020
bool GetTabletLocationsResponsePB_Error::MergePartialFromCodedStream(
3021
324
    ::google::protobuf::io::CodedInputStream* input) {
3022
648
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
3023
324
  ::google::protobuf::uint32 tag;
3024
  // @@protoc_insertion_point(parse_start:yb.master.GetTabletLocationsResponsePB.Error)
3025
970
  for (;;) {
3026
970
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3027
970
    tag = p.first;
3028
970
    if (!p.second) goto handle_unusual;
3029
647
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3030
      // required bytes tablet_id = 1;
3031
324
      case 1: {
3032
324
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3033
324
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
3034
324
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
3035
324
                input, this->mutable_tablet_id()));
3036
0
        } else {
3037
0
          goto handle_unusual;
3038
0
        }
3039
324
        break;
3040
324
      }
3041
3042
      // required .yb.AppStatusPB status = 2;
3043
324
      case 2: {
3044
324
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3045
324
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
3046
324
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3047
324
               input, mutable_status()));
3048
0
        } else {
3049
0
          goto handle_unusual;
3050
0
        }
3051
324
        break;
3052
323
      }
3053
3054
0
      default: {
3055
323
      handle_unusual:
3056
323
        if (tag == 0) {
3057
323
          goto success;
3058
323
        }
3059
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
3060
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
3061
0
        break;
3062
0
      }
3063
647
    }
3064
647
  }
3065
323
success:
3066
  // @@protoc_insertion_point(parse_success:yb.master.GetTabletLocationsResponsePB.Error)
3067
323
  return true;
3068
0
failure:
3069
  // @@protoc_insertion_point(parse_failure:yb.master.GetTabletLocationsResponsePB.Error)
3070
0
  return false;
3071
324
#undef DO_
3072
324
}
3073
3074
void GetTabletLocationsResponsePB_Error::SerializeWithCachedSizes(
3075
0
    ::google::protobuf::io::CodedOutputStream* output) const {
3076
  // @@protoc_insertion_point(serialize_start:yb.master.GetTabletLocationsResponsePB.Error)
3077
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3078
0
  (void) cached_has_bits;
3079
3080
0
  cached_has_bits = _has_bits_[0];
3081
  // required bytes tablet_id = 1;
3082
0
  if (cached_has_bits & 0x00000001u) {
3083
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
3084
0
      1, this->tablet_id(), output);
3085
0
  }
3086
3087
  // required .yb.AppStatusPB status = 2;
3088
0
  if (cached_has_bits & 0x00000002u) {
3089
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3090
0
      2, *this->status_, output);
3091
0
  }
3092
3093
0
  if (_internal_metadata_.have_unknown_fields()) {
3094
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3095
0
        _internal_metadata_.unknown_fields(), output);
3096
0
  }
3097
  // @@protoc_insertion_point(serialize_end:yb.master.GetTabletLocationsResponsePB.Error)
3098
0
}
3099
3100
::google::protobuf::uint8* GetTabletLocationsResponsePB_Error::InternalSerializeWithCachedSizesToArray(
3101
322
    bool deterministic, ::google::protobuf::uint8* target) const {
3102
322
  (void)deterministic; // Unused
3103
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.GetTabletLocationsResponsePB.Error)
3104
322
  ::google::protobuf::uint32 cached_has_bits = 0;
3105
322
  (void) cached_has_bits;
3106
3107
322
  cached_has_bits = _has_bits_[0];
3108
  // required bytes tablet_id = 1;
3109
322
  if (cached_has_bits & 0x00000001u) {
3110
322
    target =
3111
322
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
3112
322
        1, this->tablet_id(), target);
3113
322
  }
3114
3115
  // required .yb.AppStatusPB status = 2;
3116
323
  if (cached_has_bits & 0x00000002u) {
3117
323
    target = ::google::protobuf::internal::WireFormatLite::
3118
323
      InternalWriteMessageToArray(
3119
323
        2, *this->status_, deterministic, target);
3120
323
  }
3121
3122
322
  if (_internal_metadata_.have_unknown_fields()) {
3123
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3124
0
        _internal_metadata_.unknown_fields(), target);
3125
0
  }
3126
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.GetTabletLocationsResponsePB.Error)
3127
322
  return target;
3128
322
}
3129
3130
0
size_t GetTabletLocationsResponsePB_Error::RequiredFieldsByteSizeFallback() const {
3131
// @@protoc_insertion_point(required_fields_byte_size_fallback_start:yb.master.GetTabletLocationsResponsePB.Error)
3132
0
  size_t total_size = 0;
3133
3134
0
  if (has_tablet_id()) {
3135
    // required bytes tablet_id = 1;
3136
0
    total_size += 1 +
3137
0
      ::google::protobuf::internal::WireFormatLite::BytesSize(
3138
0
        this->tablet_id());
3139
0
  }
3140
3141
0
  if (has_status()) {
3142
    // required .yb.AppStatusPB status = 2;
3143
0
    total_size += 1 +
3144
0
      ::google::protobuf::internal::WireFormatLite::MessageSize(
3145
0
        *this->status_);
3146
0
  }
3147
3148
0
  return total_size;
3149
0
}
3150
647
size_t GetTabletLocationsResponsePB_Error::ByteSizeLong() const {
3151
// @@protoc_insertion_point(message_byte_size_start:yb.master.GetTabletLocationsResponsePB.Error)
3152
647
  size_t total_size = 0;
3153
3154
647
  if (_internal_metadata_.have_unknown_fields()) {
3155
0
    total_size +=
3156
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3157
0
        _internal_metadata_.unknown_fields());
3158
0
  }
3159
647
  if (((_has_bits_[0] & 0x00000003) ^ 0x00000003) == 0) {  // All required fields are present.
3160
    // required bytes tablet_id = 1;
3161
645
    total_size += 1 +
3162
645
      ::google::protobuf::internal::WireFormatLite::BytesSize(
3163
645
        this->tablet_id());
3164
3165
    // required .yb.AppStatusPB status = 2;
3166
645
    total_size += 1 +
3167
645
      ::google::protobuf::internal::WireFormatLite::MessageSize(
3168
645
        *this->status_);
3169
3170
2
  } else {
3171
2
    total_size += RequiredFieldsByteSizeFallback();
3172
2
  }
3173
647
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
3174
647
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3175
647
  _cached_size_ = cached_size;
3176
647
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3177
647
  return total_size;
3178
647
}
3179
3180
0
void GetTabletLocationsResponsePB_Error::MergeFrom(const ::google::protobuf::Message& from) {
3181
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.GetTabletLocationsResponsePB.Error)
3182
0
  GOOGLE_DCHECK_NE(&from, this);
3183
0
  const GetTabletLocationsResponsePB_Error* source =
3184
0
      ::google::protobuf::internal::DynamicCastToGenerated<const GetTabletLocationsResponsePB_Error>(
3185
0
          &from);
3186
0
  if (source == NULL) {
3187
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.GetTabletLocationsResponsePB.Error)
3188
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3189
0
  } else {
3190
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.GetTabletLocationsResponsePB.Error)
3191
0
    MergeFrom(*source);
3192
0
  }
3193
0
}
3194
3195
0
void GetTabletLocationsResponsePB_Error::MergeFrom(const GetTabletLocationsResponsePB_Error& from) {
3196
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.GetTabletLocationsResponsePB.Error)
3197
0
  GOOGLE_DCHECK_NE(&from, this);
3198
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3199
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3200
0
  (void) cached_has_bits;
3201
3202
0
  cached_has_bits = from._has_bits_[0];
3203
0
  if (cached_has_bits & 3u) {
3204
0
    if (cached_has_bits & 0x00000001u) {
3205
0
      set_has_tablet_id();
3206
0
      tablet_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.tablet_id_);
3207
0
    }
3208
0
    if (cached_has_bits & 0x00000002u) {
3209
0
      mutable_status()->::yb::AppStatusPB::MergeFrom(from.status());
3210
0
    }
3211
0
  }
3212
0
}
3213
3214
0
void GetTabletLocationsResponsePB_Error::CopyFrom(const ::google::protobuf::Message& from) {
3215
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.GetTabletLocationsResponsePB.Error)
3216
0
  if (&from == this) return;
3217
0
  Clear();
3218
0
  MergeFrom(from);
3219
0
}
3220
3221
0
void GetTabletLocationsResponsePB_Error::CopyFrom(const GetTabletLocationsResponsePB_Error& from) {
3222
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.GetTabletLocationsResponsePB.Error)
3223
0
  if (&from == this) return;
3224
0
  Clear();
3225
0
  MergeFrom(from);
3226
0
}
3227
3228
648
bool GetTabletLocationsResponsePB_Error::IsInitialized() const {
3229
648
  if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
3230
648
  if (has_status()) {
3231
646
    if (!this->status_->IsInitialized()) return false;
3232
648
  }
3233
648
  return true;
3234
648
}
3235
3236
0
void GetTabletLocationsResponsePB_Error::Swap(GetTabletLocationsResponsePB_Error* other) {
3237
0
  if (other == this) return;
3238
0
  InternalSwap(other);
3239
0
}
3240
0
void GetTabletLocationsResponsePB_Error::InternalSwap(GetTabletLocationsResponsePB_Error* other) {
3241
0
  using std::swap;
3242
0
  tablet_id_.Swap(&other->tablet_id_);
3243
0
  swap(status_, other->status_);
3244
0
  swap(_has_bits_[0], other->_has_bits_[0]);
3245
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
3246
0
  swap(_cached_size_, other->_cached_size_);
3247
0
}
3248
3249
0
::google::protobuf::Metadata GetTabletLocationsResponsePB_Error::GetMetadata() const {
3250
0
  protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::protobuf_AssignDescriptorsOnce();
3251
0
  return ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::file_level_metadata[kIndexInFileMessages];
3252
0
}
3253
3254
3255
// ===================================================================
3256
3257
15.8k
void GetTabletLocationsResponsePB::InitAsDefaultInstance() {
3258
15.8k
  ::yb::master::_GetTabletLocationsResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::master::MasterErrorPB*>(
3259
15.8k
      ::yb::master::MasterErrorPB::internal_default_instance());
3260
15.8k
}
3261
0
void GetTabletLocationsResponsePB::clear_error() {
3262
0
  if (error_ != NULL) error_->Clear();
3263
0
  clear_has_error();
3264
0
}
3265
#if !defined(_MSC_VER) || _MSC_VER >= 1900
3266
const int GetTabletLocationsResponsePB::kErrorFieldNumber;
3267
const int GetTabletLocationsResponsePB::kTabletLocationsFieldNumber;
3268
const int GetTabletLocationsResponsePB::kPartitionListVersionFieldNumber;
3269
const int GetTabletLocationsResponsePB::kErrorsFieldNumber;
3270
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
3271
3272
GetTabletLocationsResponsePB::GetTabletLocationsResponsePB()
3273
34.1k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
3274
18.3k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
3275
18.3k
    ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::InitDefaultsGetTabletLocationsResponsePB();
3276
18.3k
  }
3277
34.1k
  SharedCtor();
3278
  // @@protoc_insertion_point(constructor:yb.master.GetTabletLocationsResponsePB)
3279
34.1k
}
3280
GetTabletLocationsResponsePB::GetTabletLocationsResponsePB(const GetTabletLocationsResponsePB& from)
3281
  : ::google::protobuf::Message(),
3282
      _internal_metadata_(NULL),
3283
      _has_bits_(from._has_bits_),
3284
      _cached_size_(0),
3285
      tablet_locations_(from.tablet_locations_),
3286
0
      errors_(from.errors_) {
3287
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3288
0
  if (from.has_error()) {
3289
0
    error_ = new ::yb::master::MasterErrorPB(*from.error_);
3290
0
  } else {
3291
0
    error_ = NULL;
3292
0
  }
3293
0
  partition_list_version_ = from.partition_list_version_;
3294
  // @@protoc_insertion_point(copy_constructor:yb.master.GetTabletLocationsResponsePB)
3295
0
}
3296
3297
34.1k
void GetTabletLocationsResponsePB::SharedCtor() {
3298
34.1k
  _cached_size_ = 0;
3299
34.1k
  ::memset(&error_, 0, static_cast<size_t>(
3300
34.1k
      reinterpret_cast<char*>(&partition_list_version_) -
3301
34.1k
      reinterpret_cast<char*>(&error_)) + sizeof(partition_list_version_));
3302
34.1k
}
3303
3304
18.3k
GetTabletLocationsResponsePB::~GetTabletLocationsResponsePB() {
3305
  // @@protoc_insertion_point(destructor:yb.master.GetTabletLocationsResponsePB)
3306
18.3k
  SharedDtor();
3307
18.3k
}
3308
3309
18.3k
void GetTabletLocationsResponsePB::SharedDtor() {
3310
18.3k
  if (this != internal_default_instance()) delete error_;
3311
18.3k
}
3312
3313
0
void GetTabletLocationsResponsePB::SetCachedSize(int size) const {
3314
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3315
0
  _cached_size_ = size;
3316
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3317
0
}
3318
0
const ::google::protobuf::Descriptor* GetTabletLocationsResponsePB::descriptor() {
3319
0
  ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::protobuf_AssignDescriptorsOnce();
3320
0
  return ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
3321
0
}
3322
3323
0
const GetTabletLocationsResponsePB& GetTabletLocationsResponsePB::default_instance() {
3324
0
  ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::InitDefaultsGetTabletLocationsResponsePB();
3325
0
  return *internal_default_instance();
3326
0
}
3327
3328
0
GetTabletLocationsResponsePB* GetTabletLocationsResponsePB::New(::google::protobuf::Arena* arena) const {
3329
0
  GetTabletLocationsResponsePB* n = new GetTabletLocationsResponsePB;
3330
0
  if (arena != NULL) {
3331
0
    arena->Own(n);
3332
0
  }
3333
0
  return n;
3334
0
}
3335
3336
9.12k
void GetTabletLocationsResponsePB::Clear() {
3337
// @@protoc_insertion_point(message_clear_start:yb.master.GetTabletLocationsResponsePB)
3338
9.12k
  ::google::protobuf::uint32 cached_has_bits = 0;
3339
  // Prevent compiler warnings about cached_has_bits being unused
3340
9.12k
  (void) cached_has_bits;
3341
3342
9.12k
  tablet_locations_.Clear();
3343
9.12k
  errors_.Clear();
3344
9.12k
  cached_has_bits = _has_bits_[0];
3345
9.12k
  if (cached_has_bits & 0x00000001u) {
3346
1
    GOOGLE_DCHECK(error_ != NULL);
3347
1
    error_->Clear();
3348
1
  }
3349
9.12k
  partition_list_version_ = 0u;
3350
9.12k
  _has_bits_.Clear();
3351
9.12k
  _internal_metadata_.Clear();
3352
9.12k
}
3353
3354
bool GetTabletLocationsResponsePB::MergePartialFromCodedStream(
3355
9.12k
    ::google::protobuf::io::CodedInputStream* input) {
3356
10.4k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
3357
9.12k
  ::google::protobuf::uint32 tag;
3358
  // @@protoc_insertion_point(parse_start:yb.master.GetTabletLocationsResponsePB)
3359
19.5k
  for (;;) {
3360
19.5k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3361
19.5k
    tag = p.first;
3362
19.5k
    if (!p.second) goto handle_unusual;
3363
10.4k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3364
      // optional .yb.master.MasterErrorPB error = 1;
3365
1
      case 1: {
3366
1
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3367
1
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
3368
1
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3369
1
               input, mutable_error()));
3370
0
        } else {
3371
0
          goto handle_unusual;
3372
0
        }
3373
1
        break;
3374
1
      }
3375
3376
      // repeated .yb.master.TabletLocationsPB tablet_locations = 2;
3377
8.85k
      case 2: {
3378
8.85k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3379
8.85k
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
3380
8.85k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_tablet_locations()));
3381
18.4E
        } else {
3382
18.4E
          goto handle_unusual;
3383
18.4E
        }
3384
8.85k
        break;
3385
8.85k
      }
3386
3387
      // repeated .yb.master.GetTabletLocationsResponsePB.Error errors = 3;
3388
324
      case 3: {
3389
324
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3390
324
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
3391
324
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_errors()));
3392
0
        } else {
3393
0
          goto handle_unusual;
3394
0
        }
3395
324
        break;
3396
324
      }
3397
3398
      // optional uint32 partition_list_version = 4;
3399
1.24k
      case 4: {
3400
1.24k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3401
1.24k
            static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
3402
1.24k
          set_has_partition_list_version();
3403
1.24k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3404
1.24k
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
3405
1.24k
                 input, &partition_list_version_)));
3406
0
        } else {
3407
0
          goto handle_unusual;
3408
0
        }
3409
1.24k
        break;
3410
9.11k
      }
3411
3412
0
      default: {
3413
9.11k
      handle_unusual:
3414
9.11k
        if (tag == 0) {
3415
9.11k
          goto success;
3416
9.11k
        }
3417
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
3418
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
3419
18.4E
        break;
3420
18.4E
      }
3421
10.4k
    }
3422
10.4k
  }
3423
9.11k
success:
3424
  // @@protoc_insertion_point(parse_success:yb.master.GetTabletLocationsResponsePB)
3425
9.11k
  return true;
3426
0
failure:
3427
  // @@protoc_insertion_point(parse_failure:yb.master.GetTabletLocationsResponsePB)
3428
0
  return false;
3429
9.12k
#undef DO_
3430
9.12k
}
3431
3432
void GetTabletLocationsResponsePB::SerializeWithCachedSizes(
3433
0
    ::google::protobuf::io::CodedOutputStream* output) const {
3434
  // @@protoc_insertion_point(serialize_start:yb.master.GetTabletLocationsResponsePB)
3435
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3436
0
  (void) cached_has_bits;
3437
3438
0
  cached_has_bits = _has_bits_[0];
3439
  // optional .yb.master.MasterErrorPB error = 1;
3440
0
  if (cached_has_bits & 0x00000001u) {
3441
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3442
0
      1, *this->error_, output);
3443
0
  }
3444
3445
  // repeated .yb.master.TabletLocationsPB tablet_locations = 2;
3446
0
  for (unsigned int i = 0,
3447
0
      n = static_cast<unsigned int>(this->tablet_locations_size()); i < n; i++) {
3448
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3449
0
      2, this->tablet_locations(static_cast<int>(i)), output);
3450
0
  }
3451
3452
  // repeated .yb.master.GetTabletLocationsResponsePB.Error errors = 3;
3453
0
  for (unsigned int i = 0,
3454
0
      n = static_cast<unsigned int>(this->errors_size()); i < n; i++) {
3455
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3456
0
      3, this->errors(static_cast<int>(i)), output);
3457
0
  }
3458
3459
  // optional uint32 partition_list_version = 4;
3460
0
  if (cached_has_bits & 0x00000002u) {
3461
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->partition_list_version(), output);
3462
0
  }
3463
3464
0
  if (_internal_metadata_.have_unknown_fields()) {
3465
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3466
0
        _internal_metadata_.unknown_fields(), output);
3467
0
  }
3468
  // @@protoc_insertion_point(serialize_end:yb.master.GetTabletLocationsResponsePB)
3469
0
}
3470
3471
::google::protobuf::uint8* GetTabletLocationsResponsePB::InternalSerializeWithCachedSizesToArray(
3472
9.11k
    bool deterministic, ::google::protobuf::uint8* target) const {
3473
9.11k
  (void)deterministic; // Unused
3474
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.GetTabletLocationsResponsePB)
3475
9.11k
  ::google::protobuf::uint32 cached_has_bits = 0;
3476
9.11k
  (void) cached_has_bits;
3477
3478
9.11k
  cached_has_bits = _has_bits_[0];
3479
  // optional .yb.master.MasterErrorPB error = 1;
3480
9.11k
  if (cached_has_bits & 0x00000001u) {
3481
1
    target = ::google::protobuf::internal::WireFormatLite::
3482
1
      InternalWriteMessageToArray(
3483
1
        1, *this->error_, deterministic, target);
3484
1
  }
3485
3486
  // repeated .yb.master.TabletLocationsPB tablet_locations = 2;
3487
9.11k
  for (unsigned int i = 0,
3488
17.9k
      n = static_cast<unsigned int>(this->tablet_locations_size()); i < n; i++) {
3489
8.83k
    target = ::google::protobuf::internal::WireFormatLite::
3490
8.83k
      InternalWriteMessageToArray(
3491
8.83k
        2, this->tablet_locations(static_cast<int>(i)), deterministic, target);
3492
8.83k
  }
3493
3494
  // repeated .yb.master.GetTabletLocationsResponsePB.Error errors = 3;
3495
9.11k
  for (unsigned int i = 0,
3496
9.43k
      n = static_cast<unsigned int>(this->errors_size()); i < n; i++) {
3497
322
    target = ::google::protobuf::internal::WireFormatLite::
3498
322
      InternalWriteMessageToArray(
3499
322
        3, this->errors(static_cast<int>(i)), deterministic, target);
3500
322
  }
3501
3502
  // optional uint32 partition_list_version = 4;
3503
9.11k
  if (cached_has_bits & 0x00000002u) {
3504
1.24k
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->partition_list_version(), target);
3505
1.24k
  }
3506
3507
9.11k
  if (_internal_metadata_.have_unknown_fields()) {
3508
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3509
0
        _internal_metadata_.unknown_fields(), target);
3510
0
  }
3511
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.GetTabletLocationsResponsePB)
3512
9.11k
  return target;
3513
9.11k
}
3514
3515
18.2k
size_t GetTabletLocationsResponsePB::ByteSizeLong() const {
3516
// @@protoc_insertion_point(message_byte_size_start:yb.master.GetTabletLocationsResponsePB)
3517
18.2k
  size_t total_size = 0;
3518
3519
18.2k
  if (_internal_metadata_.have_unknown_fields()) {
3520
0
    total_size +=
3521
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3522
0
        _internal_metadata_.unknown_fields());
3523
0
  }
3524
  // repeated .yb.master.TabletLocationsPB tablet_locations = 2;
3525
18.2k
  {
3526
18.2k
    unsigned int count = static_cast<unsigned int>(this->tablet_locations_size());
3527
18.2k
    total_size += 1UL * count;
3528
35.9k
    for (unsigned int i = 0; i < count; i++) {
3529
17.6k
      total_size +=
3530
17.6k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
3531
17.6k
          this->tablet_locations(static_cast<int>(i)));
3532
17.6k
    }
3533
18.2k
  }
3534
3535
  // repeated .yb.master.GetTabletLocationsResponsePB.Error errors = 3;
3536
18.2k
  {
3537
18.2k
    unsigned int count = static_cast<unsigned int>(this->errors_size());
3538
18.2k
    total_size += 1UL * count;
3539
18.8k
    for (unsigned int i = 0; i < count; i++) {
3540
645
      total_size +=
3541
645
        ::google::protobuf::internal::WireFormatLite::MessageSize(
3542
645
          this->errors(static_cast<int>(i)));
3543
645
    }
3544
18.2k
  }
3545
3546
18.2k
  if (_has_bits_[0 / 32] & 3u) {
3547
    // optional .yb.master.MasterErrorPB error = 1;
3548
2.49k
    if (has_error()) {
3549
2
      total_size += 1 +
3550
2
        ::google::protobuf::internal::WireFormatLite::MessageSize(
3551
2
          *this->error_);
3552
2
    }
3553
3554
    // optional uint32 partition_list_version = 4;
3555
2.49k
    if (has_partition_list_version()) {
3556
2.49k
      total_size += 1 +
3557
2.49k
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
3558
2.49k
          this->partition_list_version());
3559
2.49k
    }
3560
3561
2.49k
  }
3562
18.2k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
3563
18.2k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3564
18.2k
  _cached_size_ = cached_size;
3565
18.2k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3566
18.2k
  return total_size;
3567
18.2k
}
3568
3569
0
void GetTabletLocationsResponsePB::MergeFrom(const ::google::protobuf::Message& from) {
3570
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.GetTabletLocationsResponsePB)
3571
0
  GOOGLE_DCHECK_NE(&from, this);
3572
0
  const GetTabletLocationsResponsePB* source =
3573
0
      ::google::protobuf::internal::DynamicCastToGenerated<const GetTabletLocationsResponsePB>(
3574
0
          &from);
3575
0
  if (source == NULL) {
3576
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.GetTabletLocationsResponsePB)
3577
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3578
0
  } else {
3579
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.GetTabletLocationsResponsePB)
3580
0
    MergeFrom(*source);
3581
0
  }
3582
0
}
3583
3584
0
void GetTabletLocationsResponsePB::MergeFrom(const GetTabletLocationsResponsePB& from) {
3585
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.GetTabletLocationsResponsePB)
3586
0
  GOOGLE_DCHECK_NE(&from, this);
3587
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3588
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3589
0
  (void) cached_has_bits;
3590
3591
0
  tablet_locations_.MergeFrom(from.tablet_locations_);
3592
0
  errors_.MergeFrom(from.errors_);
3593
0
  cached_has_bits = from._has_bits_[0];
3594
0
  if (cached_has_bits & 3u) {
3595
0
    if (cached_has_bits & 0x00000001u) {
3596
0
      mutable_error()->::yb::master::MasterErrorPB::MergeFrom(from.error());
3597
0
    }
3598
0
    if (cached_has_bits & 0x00000002u) {
3599
0
      partition_list_version_ = from.partition_list_version_;
3600
0
    }
3601
0
    _has_bits_[0] |= cached_has_bits;
3602
0
  }
3603
0
}
3604
3605
0
void GetTabletLocationsResponsePB::CopyFrom(const ::google::protobuf::Message& from) {
3606
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.GetTabletLocationsResponsePB)
3607
0
  if (&from == this) return;
3608
0
  Clear();
3609
0
  MergeFrom(from);
3610
0
}
3611
3612
0
void GetTabletLocationsResponsePB::CopyFrom(const GetTabletLocationsResponsePB& from) {
3613
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.GetTabletLocationsResponsePB)
3614
0
  if (&from == this) return;
3615
0
  Clear();
3616
0
  MergeFrom(from);
3617
0
}
3618
3619
18.2k
bool GetTabletLocationsResponsePB::IsInitialized() const {
3620
18.2k
  if (!::google::protobuf::internal::AllAreInitialized(this->tablet_locations())) return false;
3621
18.2k
  if (!::google::protobuf::internal::AllAreInitialized(this->errors())) return false;
3622
18.2k
  if (has_error()) {
3623
2
    if (!this->error_->IsInitialized()) return false;
3624
18.2k
  }
3625
18.2k
  return true;
3626
18.2k
}
3627
3628
0
void GetTabletLocationsResponsePB::Swap(GetTabletLocationsResponsePB* other) {
3629
0
  if (other == this) return;
3630
0
  InternalSwap(other);
3631
0
}
3632
60
void GetTabletLocationsResponsePB::InternalSwap(GetTabletLocationsResponsePB* other) {
3633
60
  using std::swap;
3634
60
  tablet_locations_.InternalSwap(&other->tablet_locations_);
3635
60
  errors_.InternalSwap(&other->errors_);
3636
60
  swap(error_, other->error_);
3637
60
  swap(partition_list_version_, other->partition_list_version_);
3638
60
  swap(_has_bits_[0], other->_has_bits_[0]);
3639
60
  _internal_metadata_.Swap(&other->_internal_metadata_);
3640
60
  swap(_cached_size_, other->_cached_size_);
3641
60
}
3642
3643
0
::google::protobuf::Metadata GetTabletLocationsResponsePB::GetMetadata() const {
3644
0
  protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::protobuf_AssignDescriptorsOnce();
3645
0
  return ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::file_level_metadata[kIndexInFileMessages];
3646
0
}
3647
3648
3649
// ===================================================================
3650
3651
15.8k
void GetTableLocationsRequestPB::InitAsDefaultInstance() {
3652
15.8k
  ::yb::master::_GetTableLocationsRequestPB_default_instance_._instance.get_mutable()->table_ = const_cast< ::yb::master::TableIdentifierPB*>(
3653
15.8k
      ::yb::master::TableIdentifierPB::internal_default_instance());
3654
15.8k
}
3655
0
void GetTableLocationsRequestPB::clear_table() {
3656
0
  if (table_ != NULL) table_->Clear();
3657
0
  clear_has_table();
3658
0
}
3659
#if !defined(_MSC_VER) || _MSC_VER >= 1900
3660
const int GetTableLocationsRequestPB::kTableFieldNumber;
3661
const int GetTableLocationsRequestPB::kPartitionKeyStartFieldNumber;
3662
const int GetTableLocationsRequestPB::kPartitionKeyEndFieldNumber;
3663
const int GetTableLocationsRequestPB::kMaxReturnedLocationsFieldNumber;
3664
const int GetTableLocationsRequestPB::kRequireTabletsRunningFieldNumber;
3665
const int GetTableLocationsRequestPB::kIncludeInactiveFieldNumber;
3666
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
3667
3668
GetTableLocationsRequestPB::GetTableLocationsRequestPB()
3669
337k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
3670
321k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
3671
321k
    ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::InitDefaultsGetTableLocationsRequestPB();
3672
321k
  }
3673
337k
  SharedCtor();
3674
  // @@protoc_insertion_point(constructor:yb.master.GetTableLocationsRequestPB)
3675
337k
}
3676
GetTableLocationsRequestPB::GetTableLocationsRequestPB(const GetTableLocationsRequestPB& from)
3677
  : ::google::protobuf::Message(),
3678
      _internal_metadata_(NULL),
3679
      _has_bits_(from._has_bits_),
3680
0
      _cached_size_(0) {
3681
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3682
0
  partition_key_start_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3683
0
  if (from.has_partition_key_start()) {
3684
0
    partition_key_start_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.partition_key_start_);
3685
0
  }
3686
0
  partition_key_end_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3687
0
  if (from.has_partition_key_end()) {
3688
0
    partition_key_end_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.partition_key_end_);
3689
0
  }
3690
0
  if (from.has_table()) {
3691
0
    table_ = new ::yb::master::TableIdentifierPB(*from.table_);
3692
0
  } else {
3693
0
    table_ = NULL;
3694
0
  }
3695
0
  ::memcpy(&require_tablets_running_, &from.require_tablets_running_,
3696
0
    static_cast<size_t>(reinterpret_cast<char*>(&max_returned_locations_) -
3697
0
    reinterpret_cast<char*>(&require_tablets_running_)) + sizeof(max_returned_locations_));
3698
  // @@protoc_insertion_point(copy_constructor:yb.master.GetTableLocationsRequestPB)
3699
0
}
3700
3701
336k
void GetTableLocationsRequestPB::SharedCtor() {
3702
336k
  _cached_size_ = 0;
3703
336k
  partition_key_start_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3704
336k
  partition_key_end_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3705
336k
  ::memset(&table_, 0, static_cast<size_t>(
3706
336k
      reinterpret_cast<char*>(&include_inactive_) -
3707
336k
      reinterpret_cast<char*>(&table_)) + sizeof(include_inactive_));
3708
336k
  max_returned_locations_ = 10u;
3709
336k
}
3710
3711
321k
GetTableLocationsRequestPB::~GetTableLocationsRequestPB() {
3712
  // @@protoc_insertion_point(destructor:yb.master.GetTableLocationsRequestPB)
3713
321k
  SharedDtor();
3714
321k
}
3715
3716
321k
void GetTableLocationsRequestPB::SharedDtor() {
3717
321k
  partition_key_start_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3718
321k
  partition_key_end_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3719
321k
  if (this != internal_default_instance()) delete table_;
3720
321k
}
3721
3722
0
void GetTableLocationsRequestPB::SetCachedSize(int size) const {
3723
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3724
0
  _cached_size_ = size;
3725
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3726
0
}
3727
0
const ::google::protobuf::Descriptor* GetTableLocationsRequestPB::descriptor() {
3728
0
  ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::protobuf_AssignDescriptorsOnce();
3729
0
  return ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
3730
0
}
3731
3732
0
const GetTableLocationsRequestPB& GetTableLocationsRequestPB::default_instance() {
3733
0
  ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::InitDefaultsGetTableLocationsRequestPB();
3734
0
  return *internal_default_instance();
3735
0
}
3736
3737
0
GetTableLocationsRequestPB* GetTableLocationsRequestPB::New(::google::protobuf::Arena* arena) const {
3738
0
  GetTableLocationsRequestPB* n = new GetTableLocationsRequestPB;
3739
0
  if (arena != NULL) {
3740
0
    arena->Own(n);
3741
0
  }
3742
0
  return n;
3743
0
}
3744
3745
167k
void GetTableLocationsRequestPB::Clear() {
3746
// @@protoc_insertion_point(message_clear_start:yb.master.GetTableLocationsRequestPB)
3747
167k
  ::google::protobuf::uint32 cached_has_bits = 0;
3748
  // Prevent compiler warnings about cached_has_bits being unused
3749
167k
  (void) cached_has_bits;
3750
3751
167k
  cached_has_bits = _has_bits_[0];
3752
167k
  if (cached_has_bits & 7u) {
3753
0
    if (cached_has_bits & 0x00000001u) {
3754
0
      GOOGLE_DCHECK(!partition_key_start_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
3755
0
      (*partition_key_start_.UnsafeRawStringPointer())->clear();
3756
0
    }
3757
0
    if (cached_has_bits & 0x00000002u) {
3758
0
      GOOGLE_DCHECK(!partition_key_end_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
3759
0
      (*partition_key_end_.UnsafeRawStringPointer())->clear();
3760
0
    }
3761
0
    if (cached_has_bits & 0x00000004u) {
3762
0
      GOOGLE_DCHECK(table_ != NULL);
3763
0
      table_->Clear();
3764
0
    }
3765
0
  }
3766
167k
  ::memset(&require_tablets_running_, 0, static_cast<size_t>(
3767
167k
      reinterpret_cast<char*>(&include_inactive_) -
3768
167k
      reinterpret_cast<char*>(&require_tablets_running_)) + sizeof(include_inactive_));
3769
167k
  max_returned_locations_ = 10u;
3770
167k
  _has_bits_.Clear();
3771
167k
  _internal_metadata_.Clear();
3772
167k
}
3773
3774
bool GetTableLocationsRequestPB::MergePartialFromCodedStream(
3775
167k
    ::google::protobuf::io::CodedInputStream* input) {
3776
494k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
3777
167k
  ::google::protobuf::uint32 tag;
3778
  // @@protoc_insertion_point(parse_start:yb.master.GetTableLocationsRequestPB)
3779
661k
  for (;;) {
3780
661k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3781
661k
    tag = p.first;
3782
661k
    if (!p.second) goto handle_unusual;
3783
494k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3784
      // required .yb.master.TableIdentifierPB table = 1;
3785
167k
      case 1: {
3786
167k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3787
167k
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
3788
167k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3789
167k
               input, mutable_table()));
3790
18.4E
        } else {
3791
18.4E
          goto handle_unusual;
3792
18.4E
        }
3793
167k
        break;
3794
167k
      }
3795
3796
      // optional bytes partition_key_start = 3;
3797
65.1k
      case 3: {
3798
65.1k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3799
65.1k
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
3800
65.1k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
3801
65.1k
                input, this->mutable_partition_key_start()));
3802
0
        } else {
3803
0
          goto handle_unusual;
3804
0
        }
3805
65.1k
        break;
3806
65.1k
      }
3807
3808
      // optional bytes partition_key_end = 4;
3809
1
      case 4: {
3810
1
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3811
1
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
3812
1
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
3813
1
                input, this->mutable_partition_key_end()));
3814
0
        } else {
3815
0
          goto handle_unusual;
3816
0
        }
3817
1
        break;
3818
1
      }
3819
3820
      // optional uint32 max_returned_locations = 5 [default = 10];
3821
167k
      case 5: {
3822
167k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3823
167k
            static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
3824
167k
          set_has_max_returned_locations();
3825
167k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3826
167k
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
3827
167k
                 input, &max_returned_locations_)));
3828
2
        } else {
3829
2
          goto handle_unusual;
3830
2
        }
3831
167k
        break;
3832
167k
      }
3833
3834
      // optional bool require_tablets_running = 6;
3835
94.5k
      case 6: {
3836
94.5k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3837
94.5k
            static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
3838
94.5k
          set_has_require_tablets_running();
3839
94.5k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3840
94.5k
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
3841
94.5k
                 input, &require_tablets_running_)));
3842
18.4E
        } else {
3843
18.4E
          goto handle_unusual;
3844
18.4E
        }
3845
94.5k
        break;
3846
94.5k
      }
3847
3848
      // optional bool include_inactive = 7;
3849
268
      case 7: {
3850
268
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3851
268
            static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
3852
268
          set_has_include_inactive();
3853
268
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3854
268
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
3855
268
                 input, &include_inactive_)));
3856
0
        } else {
3857
0
          goto handle_unusual;
3858
0
        }
3859
268
        break;
3860
167k
      }
3861
3862
0
      default: {
3863
167k
      handle_unusual:
3864
167k
        if (tag == 0) {
3865
167k
          goto success;
3866
167k
        }
3867
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
3868
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
3869
18.4E
        break;
3870
18.4E
      }
3871
494k
    }
3872
494k
  }
3873
167k
success:
3874
  // @@protoc_insertion_point(parse_success:yb.master.GetTableLocationsRequestPB)
3875
167k
  return true;
3876
0
failure:
3877
  // @@protoc_insertion_point(parse_failure:yb.master.GetTableLocationsRequestPB)
3878
0
  return false;
3879
167k
#undef DO_
3880
167k
}
3881
3882
void GetTableLocationsRequestPB::SerializeWithCachedSizes(
3883
0
    ::google::protobuf::io::CodedOutputStream* output) const {
3884
  // @@protoc_insertion_point(serialize_start:yb.master.GetTableLocationsRequestPB)
3885
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3886
0
  (void) cached_has_bits;
3887
3888
0
  cached_has_bits = _has_bits_[0];
3889
  // required .yb.master.TableIdentifierPB table = 1;
3890
0
  if (cached_has_bits & 0x00000004u) {
3891
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3892
0
      1, *this->table_, output);
3893
0
  }
3894
3895
  // optional bytes partition_key_start = 3;
3896
0
  if (cached_has_bits & 0x00000001u) {
3897
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
3898
0
      3, this->partition_key_start(), output);
3899
0
  }
3900
3901
  // optional bytes partition_key_end = 4;
3902
0
  if (cached_has_bits & 0x00000002u) {
3903
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
3904
0
      4, this->partition_key_end(), output);
3905
0
  }
3906
3907
  // optional uint32 max_returned_locations = 5 [default = 10];
3908
0
  if (cached_has_bits & 0x00000020u) {
3909
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->max_returned_locations(), output);
3910
0
  }
3911
3912
  // optional bool require_tablets_running = 6;
3913
0
  if (cached_has_bits & 0x00000008u) {
3914
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->require_tablets_running(), output);
3915
0
  }
3916
3917
  // optional bool include_inactive = 7;
3918
0
  if (cached_has_bits & 0x00000010u) {
3919
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->include_inactive(), output);
3920
0
  }
3921
3922
0
  if (_internal_metadata_.have_unknown_fields()) {
3923
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3924
0
        _internal_metadata_.unknown_fields(), output);
3925
0
  }
3926
  // @@protoc_insertion_point(serialize_end:yb.master.GetTableLocationsRequestPB)
3927
0
}
3928
3929
::google::protobuf::uint8* GetTableLocationsRequestPB::InternalSerializeWithCachedSizesToArray(
3930
162k
    bool deterministic, ::google::protobuf::uint8* target) const {
3931
162k
  (void)deterministic; // Unused
3932
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.GetTableLocationsRequestPB)
3933
162k
  ::google::protobuf::uint32 cached_has_bits = 0;
3934
162k
  (void) cached_has_bits;
3935
3936
162k
  cached_has_bits = _has_bits_[0];
3937
  // required .yb.master.TableIdentifierPB table = 1;
3938
162k
  if (cached_has_bits & 0x00000004u) {
3939
162k
    target = ::google::protobuf::internal::WireFormatLite::
3940
162k
      InternalWriteMessageToArray(
3941
162k
        1, *this->table_, deterministic, target);
3942
162k
  }
3943
3944
  // optional bytes partition_key_start = 3;
3945
162k
  if (cached_has_bits & 0x00000001u) {
3946
64.9k
    target =
3947
64.9k
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
3948
64.9k
        3, this->partition_key_start(), target);
3949
64.9k
  }
3950
3951
  // optional bytes partition_key_end = 4;
3952
162k
  if (cached_has_bits & 0x00000002u) {
3953
1
    target =
3954
1
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
3955
1
        4, this->partition_key_end(), target);
3956
1
  }
3957
3958
  // optional uint32 max_returned_locations = 5 [default = 10];
3959
162k
  if (cached_has_bits & 0x00000020u) {
3960
161k
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->max_returned_locations(), target);
3961
161k
  }
3962
3963
  // optional bool require_tablets_running = 6;
3964
162k
  if (cached_has_bits & 0x00000008u) {
3965
94.4k
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->require_tablets_running(), target);
3966
94.4k
  }
3967
3968
  // optional bool include_inactive = 7;
3969
162k
  if (cached_has_bits & 0x00000010u) {
3970
268
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->include_inactive(), target);
3971
268
  }
3972
3973
162k
  if (_internal_metadata_.have_unknown_fields()) {
3974
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3975
0
        _internal_metadata_.unknown_fields(), target);
3976
0
  }
3977
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.GetTableLocationsRequestPB)
3978
162k
  return target;
3979
162k
}
3980
3981
324k
size_t GetTableLocationsRequestPB::ByteSizeLong() const {
3982
// @@protoc_insertion_point(message_byte_size_start:yb.master.GetTableLocationsRequestPB)
3983
324k
  size_t total_size = 0;
3984
3985
324k
  if (_internal_metadata_.have_unknown_fields()) {
3986
0
    total_size +=
3987
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3988
0
        _internal_metadata_.unknown_fields());
3989
0
  }
3990
  // required .yb.master.TableIdentifierPB table = 1;
3991
324k
  if (has_table()) {
3992
324k
    total_size += 1 +
3993
324k
      ::google::protobuf::internal::WireFormatLite::MessageSize(
3994
324k
        *this->table_);
3995
324k
  }
3996
324k
  if (_has_bits_[0 / 32] & 3u) {
3997
    // optional bytes partition_key_start = 3;
3998
129k
    if (has_partition_key_start()) {
3999
129k
      total_size += 1 +
4000
129k
        ::google::protobuf::internal::WireFormatLite::BytesSize(
4001
129k
          this->partition_key_start());
4002
129k
    }
4003
4004
    // optional bytes partition_key_end = 4;
4005
129k
    if (has_partition_key_end()) {
4006
2
      total_size += 1 +
4007
2
        ::google::protobuf::internal::WireFormatLite::BytesSize(
4008
2
          this->partition_key_end());
4009
2
    }
4010
4011
129k
  }
4012
324k
  if (_has_bits_[0 / 32] & 56u) {
4013
    // optional bool require_tablets_running = 6;
4014
323k
    if (has_require_tablets_running()) {
4015
189k
      total_size += 1 + 1;
4016
189k
    }
4017
4018
    // optional bool include_inactive = 7;
4019
323k
    if (has_include_inactive()) {
4020
536
      total_size += 1 + 1;
4021
536
    }
4022
4023
    // optional uint32 max_returned_locations = 5 [default = 10];
4024
323k
    if (has_max_returned_locations()) {
4025
323k
      total_size += 1 +
4026
323k
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
4027
323k
          this->max_returned_locations());
4028
323k
    }
4029
4030
323k
  }
4031
324k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4032
324k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4033
324k
  _cached_size_ = cached_size;
4034
324k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4035
324k
  return total_size;
4036
324k
}
4037
4038
0
void GetTableLocationsRequestPB::MergeFrom(const ::google::protobuf::Message& from) {
4039
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.GetTableLocationsRequestPB)
4040
0
  GOOGLE_DCHECK_NE(&from, this);
4041
0
  const GetTableLocationsRequestPB* source =
4042
0
      ::google::protobuf::internal::DynamicCastToGenerated<const GetTableLocationsRequestPB>(
4043
0
          &from);
4044
0
  if (source == NULL) {
4045
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.GetTableLocationsRequestPB)
4046
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4047
0
  } else {
4048
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.GetTableLocationsRequestPB)
4049
0
    MergeFrom(*source);
4050
0
  }
4051
0
}
4052
4053
0
void GetTableLocationsRequestPB::MergeFrom(const GetTableLocationsRequestPB& from) {
4054
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.GetTableLocationsRequestPB)
4055
0
  GOOGLE_DCHECK_NE(&from, this);
4056
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4057
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4058
0
  (void) cached_has_bits;
4059
4060
0
  cached_has_bits = from._has_bits_[0];
4061
0
  if (cached_has_bits & 63u) {
4062
0
    if (cached_has_bits & 0x00000001u) {
4063
0
      set_has_partition_key_start();
4064
0
      partition_key_start_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.partition_key_start_);
4065
0
    }
4066
0
    if (cached_has_bits & 0x00000002u) {
4067
0
      set_has_partition_key_end();
4068
0
      partition_key_end_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.partition_key_end_);
4069
0
    }
4070
0
    if (cached_has_bits & 0x00000004u) {
4071
0
      mutable_table()->::yb::master::TableIdentifierPB::MergeFrom(from.table());
4072
0
    }
4073
0
    if (cached_has_bits & 0x00000008u) {
4074
0
      require_tablets_running_ = from.require_tablets_running_;
4075
0
    }
4076
0
    if (cached_has_bits & 0x00000010u) {
4077
0
      include_inactive_ = from.include_inactive_;
4078
0
    }
4079
0
    if (cached_has_bits & 0x00000020u) {
4080
0
      max_returned_locations_ = from.max_returned_locations_;
4081
0
    }
4082
0
    _has_bits_[0] |= cached_has_bits;
4083
0
  }
4084
0
}
4085
4086
0
void GetTableLocationsRequestPB::CopyFrom(const ::google::protobuf::Message& from) {
4087
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.GetTableLocationsRequestPB)
4088
0
  if (&from == this) return;
4089
0
  Clear();
4090
0
  MergeFrom(from);
4091
0
}
4092
4093
0
void GetTableLocationsRequestPB::CopyFrom(const GetTableLocationsRequestPB& from) {
4094
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.GetTableLocationsRequestPB)
4095
0
  if (&from == this) return;
4096
0
  Clear();
4097
0
  MergeFrom(from);
4098
0
}
4099
4100
329k
bool GetTableLocationsRequestPB::IsInitialized() const {
4101
329k
  if ((_has_bits_[0] & 0x00000004) != 0x00000004) return false;
4102
329k
  return true;
4103
329k
}
4104
4105
0
void GetTableLocationsRequestPB::Swap(GetTableLocationsRequestPB* other) {
4106
0
  if (other == this) return;
4107
0
  InternalSwap(other);
4108
0
}
4109
0
void GetTableLocationsRequestPB::InternalSwap(GetTableLocationsRequestPB* other) {
4110
0
  using std::swap;
4111
0
  partition_key_start_.Swap(&other->partition_key_start_);
4112
0
  partition_key_end_.Swap(&other->partition_key_end_);
4113
0
  swap(table_, other->table_);
4114
0
  swap(require_tablets_running_, other->require_tablets_running_);
4115
0
  swap(include_inactive_, other->include_inactive_);
4116
0
  swap(max_returned_locations_, other->max_returned_locations_);
4117
0
  swap(_has_bits_[0], other->_has_bits_[0]);
4118
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
4119
0
  swap(_cached_size_, other->_cached_size_);
4120
0
}
4121
4122
167k
::google::protobuf::Metadata GetTableLocationsRequestPB::GetMetadata() const {
4123
167k
  protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::protobuf_AssignDescriptorsOnce();
4124
167k
  return ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::file_level_metadata[kIndexInFileMessages];
4125
167k
}
4126
4127
4128
// ===================================================================
4129
4130
15.8k
void GetTableLocationsResponsePB::InitAsDefaultInstance() {
4131
15.8k
  ::yb::master::_GetTableLocationsResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::master::MasterErrorPB*>(
4132
15.8k
      ::yb::master::MasterErrorPB::internal_default_instance());
4133
15.8k
}
4134
0
void GetTableLocationsResponsePB::clear_error() {
4135
0
  if (error_ != NULL) error_->Clear();
4136
0
  clear_has_error();
4137
0
}
4138
#if !defined(_MSC_VER) || _MSC_VER >= 1900
4139
const int GetTableLocationsResponsePB::kErrorFieldNumber;
4140
const int GetTableLocationsResponsePB::kTabletLocationsFieldNumber;
4141
const int GetTableLocationsResponsePB::kTableTypeFieldNumber;
4142
const int GetTableLocationsResponsePB::kPartitionListVersionFieldNumber;
4143
const int GetTableLocationsResponsePB::kCreatingFieldNumber;
4144
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
4145
4146
GetTableLocationsResponsePB::GetTableLocationsResponsePB()
4147
336k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
4148
321k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
4149
321k
    ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::InitDefaultsGetTableLocationsResponsePB();
4150
321k
  }
4151
336k
  SharedCtor();
4152
  // @@protoc_insertion_point(constructor:yb.master.GetTableLocationsResponsePB)
4153
336k
}
4154
GetTableLocationsResponsePB::GetTableLocationsResponsePB(const GetTableLocationsResponsePB& from)
4155
  : ::google::protobuf::Message(),
4156
      _internal_metadata_(NULL),
4157
      _has_bits_(from._has_bits_),
4158
      _cached_size_(0),
4159
0
      tablet_locations_(from.tablet_locations_) {
4160
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4161
0
  if (from.has_error()) {
4162
0
    error_ = new ::yb::master::MasterErrorPB(*from.error_);
4163
0
  } else {
4164
0
    error_ = NULL;
4165
0
  }
4166
0
  ::memcpy(&partition_list_version_, &from.partition_list_version_,
4167
0
    static_cast<size_t>(reinterpret_cast<char*>(&table_type_) -
4168
0
    reinterpret_cast<char*>(&partition_list_version_)) + sizeof(table_type_));
4169
  // @@protoc_insertion_point(copy_constructor:yb.master.GetTableLocationsResponsePB)
4170
0
}
4171
4172
336k
void GetTableLocationsResponsePB::SharedCtor() {
4173
336k
  _cached_size_ = 0;
4174
336k
  ::memset(&error_, 0, static_cast<size_t>(
4175
336k
      reinterpret_cast<char*>(&creating_) -
4176
336k
      reinterpret_cast<char*>(&error_)) + sizeof(creating_));
4177
336k
  table_type_ = 2;
4178
336k
}
4179
4180
321k
GetTableLocationsResponsePB::~GetTableLocationsResponsePB() {
4181
  // @@protoc_insertion_point(destructor:yb.master.GetTableLocationsResponsePB)
4182
321k
  SharedDtor();
4183
321k
}
4184
4185
321k
void GetTableLocationsResponsePB::SharedDtor() {
4186
321k
  if (this != internal_default_instance()) delete error_;
4187
321k
}
4188
4189
0
void GetTableLocationsResponsePB::SetCachedSize(int size) const {
4190
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4191
0
  _cached_size_ = size;
4192
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4193
0
}
4194
0
const ::google::protobuf::Descriptor* GetTableLocationsResponsePB::descriptor() {
4195
0
  ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::protobuf_AssignDescriptorsOnce();
4196
0
  return ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
4197
0
}
4198
4199
0
const GetTableLocationsResponsePB& GetTableLocationsResponsePB::default_instance() {
4200
0
  ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::InitDefaultsGetTableLocationsResponsePB();
4201
0
  return *internal_default_instance();
4202
0
}
4203
4204
0
GetTableLocationsResponsePB* GetTableLocationsResponsePB::New(::google::protobuf::Arena* arena) const {
4205
0
  GetTableLocationsResponsePB* n = new GetTableLocationsResponsePB;
4206
0
  if (arena != NULL) {
4207
0
    arena->Own(n);
4208
0
  }
4209
0
  return n;
4210
0
}
4211
4212
162k
void GetTableLocationsResponsePB::Clear() {
4213
// @@protoc_insertion_point(message_clear_start:yb.master.GetTableLocationsResponsePB)
4214
162k
  ::google::protobuf::uint32 cached_has_bits = 0;
4215
  // Prevent compiler warnings about cached_has_bits being unused
4216
162k
  (void) cached_has_bits;
4217
4218
162k
  tablet_locations_.Clear();
4219
162k
  cached_has_bits = _has_bits_[0];
4220
162k
  if (cached_has_bits & 0x00000001u) {
4221
8.66k
    GOOGLE_DCHECK(error_ != NULL);
4222
8.66k
    error_->Clear();
4223
8.66k
  }
4224
162k
  if (cached_has_bits & 14u) {
4225
7.97k
    ::memset(&partition_list_version_, 0, static_cast<size_t>(
4226
7.97k
        reinterpret_cast<char*>(&creating_) -
4227
7.97k
        reinterpret_cast<char*>(&partition_list_version_)) + sizeof(creating_));
4228
7.97k
    table_type_ = 2;
4229
7.97k
  }
4230
162k
  _has_bits_.Clear();
4231
162k
  _internal_metadata_.Clear();
4232
162k
}
4233
4234
bool GetTableLocationsResponsePB::MergePartialFromCodedStream(
4235
162k
    ::google::protobuf::io::CodedInputStream* input) {
4236
544k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
4237
162k
  ::google::protobuf::uint32 tag;
4238
  // @@protoc_insertion_point(parse_start:yb.master.GetTableLocationsResponsePB)
4239
706k
  for (;;) {
4240
706k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4241
706k
    tag = p.first;
4242
706k
    if (!p.second) goto handle_unusual;
4243
544k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4244
      // optional .yb.master.MasterErrorPB error = 1;
4245
8.73k
      case 1: {
4246
8.73k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4247
8.73k
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
4248
8.73k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
4249
8.73k
               input, mutable_error()));
4250
18.4E
        } else {
4251
18.4E
          goto handle_unusual;
4252
18.4E
        }
4253
8.73k
        break;
4254
8.73k
      }
4255
4256
      // repeated .yb.master.TabletLocationsPB tablet_locations = 2;
4257
220k
      case 2: {
4258
220k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4259
220k
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
4260
220k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_tablet_locations()));
4261
0
        } else {
4262
0
          goto handle_unusual;
4263
0
        }
4264
220k
        break;
4265
220k
      }
4266
4267
      // optional .yb.TableType table_type = 3;
4268
153k
      case 3: {
4269
153k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4270
153k
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
4271
153k
          int value;
4272
153k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4273
153k
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
4274
153k
                 input, &value)));
4275
153k
          if (::yb::TableType_IsValid(value)) {
4276
153k
            set_table_type(static_cast< ::yb::TableType >(value));
4277
47
          } else {
4278
47
            mutable_unknown_fields()->AddVarint(
4279
47
                3, static_cast< ::google::protobuf::uint64>(value));
4280
47
          }
4281
18.4E
        } else {
4282
18.4E
          goto handle_unusual;
4283
18.4E
        }
4284
153k
        break;
4285
153k
      }
4286
4287
      // optional uint32 partition_list_version = 4;
4288
153k
      case 4: {
4289
153k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4290
153k
            static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
4291
153k
          set_has_partition_list_version();
4292
153k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4293
153k
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
4294
153k
                 input, &partition_list_version_)));
4295
2
        } else {
4296
2
          goto handle_unusual;
4297
2
        }
4298
153k
        break;
4299
153k
      }
4300
4301
      // optional bool creating = 5;
4302
7.97k
      case 5: {
4303
7.97k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4304
7.98k
            static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
4305
7.98k
          set_has_creating();
4306
7.98k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4307
7.98k
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
4308
7.98k
                 input, &creating_)));
4309
18.4E
        } else {
4310
18.4E
          goto handle_unusual;
4311
18.4E
        }
4312
7.98k
        break;
4313
162k
      }
4314
4315
0
      default: {
4316
162k
      handle_unusual:
4317
162k
        if (tag == 0) {
4318
162k
          goto success;
4319
162k
        }
4320
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
4321
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
4322
18.4E
        break;
4323
18.4E
      }
4324
544k
    }
4325
544k
  }
4326
162k
success:
4327
  // @@protoc_insertion_point(parse_success:yb.master.GetTableLocationsResponsePB)
4328
162k
  return true;
4329
0
failure:
4330
  // @@protoc_insertion_point(parse_failure:yb.master.GetTableLocationsResponsePB)
4331
0
  return false;
4332
162k
#undef DO_
4333
162k
}
4334
4335
void GetTableLocationsResponsePB::SerializeWithCachedSizes(
4336
0
    ::google::protobuf::io::CodedOutputStream* output) const {
4337
  // @@protoc_insertion_point(serialize_start:yb.master.GetTableLocationsResponsePB)
4338
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4339
0
  (void) cached_has_bits;
4340
4341
0
  cached_has_bits = _has_bits_[0];
4342
  // optional .yb.master.MasterErrorPB error = 1;
4343
0
  if (cached_has_bits & 0x00000001u) {
4344
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4345
0
      1, *this->error_, output);
4346
0
  }
4347
4348
  // repeated .yb.master.TabletLocationsPB tablet_locations = 2;
4349
0
  for (unsigned int i = 0,
4350
0
      n = static_cast<unsigned int>(this->tablet_locations_size()); i < n; i++) {
4351
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4352
0
      2, this->tablet_locations(static_cast<int>(i)), output);
4353
0
  }
4354
4355
  // optional .yb.TableType table_type = 3;
4356
0
  if (cached_has_bits & 0x00000008u) {
4357
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
4358
0
      3, this->table_type(), output);
4359
0
  }
4360
4361
  // optional uint32 partition_list_version = 4;
4362
0
  if (cached_has_bits & 0x00000002u) {
4363
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->partition_list_version(), output);
4364
0
  }
4365
4366
  // optional bool creating = 5;
4367
0
  if (cached_has_bits & 0x00000004u) {
4368
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(5, this->creating(), output);
4369
0
  }
4370
4371
0
  if (_internal_metadata_.have_unknown_fields()) {
4372
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4373
0
        _internal_metadata_.unknown_fields(), output);
4374
0
  }
4375
  // @@protoc_insertion_point(serialize_end:yb.master.GetTableLocationsResponsePB)
4376
0
}
4377
4378
::google::protobuf::uint8* GetTableLocationsResponsePB::InternalSerializeWithCachedSizesToArray(
4379
167k
    bool deterministic, ::google::protobuf::uint8* target) const {
4380
167k
  (void)deterministic; // Unused
4381
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.GetTableLocationsResponsePB)
4382
167k
  ::google::protobuf::uint32 cached_has_bits = 0;
4383
167k
  (void) cached_has_bits;
4384
4385
167k
  cached_has_bits = _has_bits_[0];
4386
  // optional .yb.master.MasterErrorPB error = 1;
4387
167k
  if (cached_has_bits & 0x00000001u) {
4388
8.72k
    target = ::google::protobuf::internal::WireFormatLite::
4389
8.72k
      InternalWriteMessageToArray(
4390
8.72k
        1, *this->error_, deterministic, target);
4391
8.72k
  }
4392
4393
  // repeated .yb.master.TabletLocationsPB tablet_locations = 2;
4394
167k
  for (unsigned int i = 0,
4395
408k
      n = static_cast<unsigned int>(this->tablet_locations_size()); i < n; i++) {
4396
241k
    target = ::google::protobuf::internal::WireFormatLite::
4397
241k
      InternalWriteMessageToArray(
4398
241k
        2, this->tablet_locations(static_cast<int>(i)), deterministic, target);
4399
241k
  }
4400
4401
  // optional .yb.TableType table_type = 3;
4402
167k
  if (cached_has_bits & 0x00000008u) {
4403
158k
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
4404
158k
      3, this->table_type(), target);
4405
158k
  }
4406
4407
  // optional uint32 partition_list_version = 4;
4408
167k
  if (cached_has_bits & 0x00000002u) {
4409
158k
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->partition_list_version(), target);
4410
158k
  }
4411
4412
  // optional bool creating = 5;
4413
167k
  if (cached_has_bits & 0x00000004u) {
4414
7.97k
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(5, this->creating(), target);
4415
7.97k
  }
4416
4417
167k
  if (_internal_metadata_.have_unknown_fields()) {
4418
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4419
0
        _internal_metadata_.unknown_fields(), target);
4420
0
  }
4421
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.GetTableLocationsResponsePB)
4422
167k
  return target;
4423
167k
}
4424
4425
334k
size_t GetTableLocationsResponsePB::ByteSizeLong() const {
4426
// @@protoc_insertion_point(message_byte_size_start:yb.master.GetTableLocationsResponsePB)
4427
334k
  size_t total_size = 0;
4428
4429
334k
  if (_internal_metadata_.have_unknown_fields()) {
4430
0
    total_size +=
4431
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4432
0
        _internal_metadata_.unknown_fields());
4433
0
  }
4434
  // repeated .yb.master.TabletLocationsPB tablet_locations = 2;
4435
334k
  {
4436
334k
    unsigned int count = static_cast<unsigned int>(this->tablet_locations_size());
4437
334k
    total_size += 1UL * count;
4438
817k
    for (unsigned int i = 0; i < count; i++) {
4439
482k
      total_size +=
4440
482k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
4441
482k
          this->tablet_locations(static_cast<int>(i)));
4442
482k
    }
4443
334k
  }
4444
4445
334k
  if (_has_bits_[0 / 32] & 15u) {
4446
    // optional .yb.master.MasterErrorPB error = 1;
4447
334k
    if (has_error()) {
4448
17.4k
      total_size += 1 +
4449
17.4k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
4450
17.4k
          *this->error_);
4451
17.4k
    }
4452
4453
    // optional uint32 partition_list_version = 4;
4454
334k
    if (has_partition_list_version()) {
4455
316k
      total_size += 1 +
4456
316k
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
4457
316k
          this->partition_list_version());
4458
316k
    }
4459
4460
    // optional bool creating = 5;
4461
334k
    if (has_creating()) {
4462
15.9k
      total_size += 1 + 1;
4463
15.9k
    }
4464
4465
    // optional .yb.TableType table_type = 3;
4466
334k
    if (has_table_type()) {
4467
316k
      total_size += 1 +
4468
316k
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->table_type());
4469
316k
    }
4470
4471
334k
  }
4472
334k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4473
334k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4474
334k
  _cached_size_ = cached_size;
4475
334k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4476
334k
  return total_size;
4477
334k
}
4478
4479
0
void GetTableLocationsResponsePB::MergeFrom(const ::google::protobuf::Message& from) {
4480
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.GetTableLocationsResponsePB)
4481
0
  GOOGLE_DCHECK_NE(&from, this);
4482
0
  const GetTableLocationsResponsePB* source =
4483
0
      ::google::protobuf::internal::DynamicCastToGenerated<const GetTableLocationsResponsePB>(
4484
0
          &from);
4485
0
  if (source == NULL) {
4486
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.GetTableLocationsResponsePB)
4487
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4488
0
  } else {
4489
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.GetTableLocationsResponsePB)
4490
0
    MergeFrom(*source);
4491
0
  }
4492
0
}
4493
4494
0
void GetTableLocationsResponsePB::MergeFrom(const GetTableLocationsResponsePB& from) {
4495
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.GetTableLocationsResponsePB)
4496
0
  GOOGLE_DCHECK_NE(&from, this);
4497
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4498
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4499
0
  (void) cached_has_bits;
4500
4501
0
  tablet_locations_.MergeFrom(from.tablet_locations_);
4502
0
  cached_has_bits = from._has_bits_[0];
4503
0
  if (cached_has_bits & 15u) {
4504
0
    if (cached_has_bits & 0x00000001u) {
4505
0
      mutable_error()->::yb::master::MasterErrorPB::MergeFrom(from.error());
4506
0
    }
4507
0
    if (cached_has_bits & 0x00000002u) {
4508
0
      partition_list_version_ = from.partition_list_version_;
4509
0
    }
4510
0
    if (cached_has_bits & 0x00000004u) {
4511
0
      creating_ = from.creating_;
4512
0
    }
4513
0
    if (cached_has_bits & 0x00000008u) {
4514
0
      table_type_ = from.table_type_;
4515
0
    }
4516
0
    _has_bits_[0] |= cached_has_bits;
4517
0
  }
4518
0
}
4519
4520
0
void GetTableLocationsResponsePB::CopyFrom(const ::google::protobuf::Message& from) {
4521
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.GetTableLocationsResponsePB)
4522
0
  if (&from == this) return;
4523
0
  Clear();
4524
0
  MergeFrom(from);
4525
0
}
4526
4527
0
void GetTableLocationsResponsePB::CopyFrom(const GetTableLocationsResponsePB& from) {
4528
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.GetTableLocationsResponsePB)
4529
0
  if (&from == this) return;
4530
0
  Clear();
4531
0
  MergeFrom(from);
4532
0
}
4533
4534
329k
bool GetTableLocationsResponsePB::IsInitialized() const {
4535
329k
  if (!::google::protobuf::internal::AllAreInitialized(this->tablet_locations())) return false;
4536
329k
  if (has_error()) {
4537
17.4k
    if (!this->error_->IsInitialized()) return false;
4538
329k
  }
4539
329k
  return true;
4540
329k
}
4541
4542
0
void GetTableLocationsResponsePB::Swap(GetTableLocationsResponsePB* other) {
4543
0
  if (other == this) return;
4544
0
  InternalSwap(other);
4545
0
}
4546
0
void GetTableLocationsResponsePB::InternalSwap(GetTableLocationsResponsePB* other) {
4547
0
  using std::swap;
4548
0
  tablet_locations_.InternalSwap(&other->tablet_locations_);
4549
0
  swap(error_, other->error_);
4550
0
  swap(partition_list_version_, other->partition_list_version_);
4551
0
  swap(creating_, other->creating_);
4552
0
  swap(table_type_, other->table_type_);
4553
0
  swap(_has_bits_[0], other->_has_bits_[0]);
4554
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
4555
0
  swap(_cached_size_, other->_cached_size_);
4556
0
}
4557
4558
2
::google::protobuf::Metadata GetTableLocationsResponsePB::GetMetadata() const {
4559
2
  protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::protobuf_AssignDescriptorsOnce();
4560
2
  return ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::file_level_metadata[kIndexInFileMessages];
4561
2
}
4562
4563
4564
// ===================================================================
4565
4566
15.8k
void GetTransactionStatusTabletsRequestPB::InitAsDefaultInstance() {
4567
15.8k
  ::yb::master::_GetTransactionStatusTabletsRequestPB_default_instance_._instance.get_mutable()->placement_ = const_cast< ::yb::CloudInfoPB*>(
4568
15.8k
      ::yb::CloudInfoPB::internal_default_instance());
4569
15.8k
}
4570
0
void GetTransactionStatusTabletsRequestPB::clear_placement() {
4571
0
  if (placement_ != NULL) placement_->Clear();
4572
0
  clear_has_placement();
4573
0
}
4574
#if !defined(_MSC_VER) || _MSC_VER >= 1900
4575
const int GetTransactionStatusTabletsRequestPB::kPlacementFieldNumber;
4576
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
4577
4578
GetTransactionStatusTabletsRequestPB::GetTransactionStatusTabletsRequestPB()
4579
19.8k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
4580
4.02k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
4581
4.02k
    ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::InitDefaultsGetTransactionStatusTabletsRequestPB();
4582
4.02k
  }
4583
19.8k
  SharedCtor();
4584
  // @@protoc_insertion_point(constructor:yb.master.GetTransactionStatusTabletsRequestPB)
4585
19.8k
}
4586
GetTransactionStatusTabletsRequestPB::GetTransactionStatusTabletsRequestPB(const GetTransactionStatusTabletsRequestPB& from)
4587
  : ::google::protobuf::Message(),
4588
      _internal_metadata_(NULL),
4589
      _has_bits_(from._has_bits_),
4590
0
      _cached_size_(0) {
4591
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4592
0
  if (from.has_placement()) {
4593
0
    placement_ = new ::yb::CloudInfoPB(*from.placement_);
4594
0
  } else {
4595
0
    placement_ = NULL;
4596
0
  }
4597
  // @@protoc_insertion_point(copy_constructor:yb.master.GetTransactionStatusTabletsRequestPB)
4598
0
}
4599
4600
19.8k
void GetTransactionStatusTabletsRequestPB::SharedCtor() {
4601
19.8k
  _cached_size_ = 0;
4602
19.8k
  placement_ = NULL;
4603
19.8k
}
4604
4605
4.02k
GetTransactionStatusTabletsRequestPB::~GetTransactionStatusTabletsRequestPB() {
4606
  // @@protoc_insertion_point(destructor:yb.master.GetTransactionStatusTabletsRequestPB)
4607
4.02k
  SharedDtor();
4608
4.02k
}
4609
4610
4.02k
void GetTransactionStatusTabletsRequestPB::SharedDtor() {
4611
4.02k
  if (this != internal_default_instance()) delete placement_;
4612
4.02k
}
4613
4614
0
void GetTransactionStatusTabletsRequestPB::SetCachedSize(int size) const {
4615
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4616
0
  _cached_size_ = size;
4617
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4618
0
}
4619
0
const ::google::protobuf::Descriptor* GetTransactionStatusTabletsRequestPB::descriptor() {
4620
0
  ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::protobuf_AssignDescriptorsOnce();
4621
0
  return ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
4622
0
}
4623
4624
0
const GetTransactionStatusTabletsRequestPB& GetTransactionStatusTabletsRequestPB::default_instance() {
4625
0
  ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::InitDefaultsGetTransactionStatusTabletsRequestPB();
4626
0
  return *internal_default_instance();
4627
0
}
4628
4629
0
GetTransactionStatusTabletsRequestPB* GetTransactionStatusTabletsRequestPB::New(::google::protobuf::Arena* arena) const {
4630
0
  GetTransactionStatusTabletsRequestPB* n = new GetTransactionStatusTabletsRequestPB;
4631
0
  if (arena != NULL) {
4632
0
    arena->Own(n);
4633
0
  }
4634
0
  return n;
4635
0
}
4636
4637
2.01k
void GetTransactionStatusTabletsRequestPB::Clear() {
4638
// @@protoc_insertion_point(message_clear_start:yb.master.GetTransactionStatusTabletsRequestPB)
4639
2.01k
  ::google::protobuf::uint32 cached_has_bits = 0;
4640
  // Prevent compiler warnings about cached_has_bits being unused
4641
2.01k
  (void) cached_has_bits;
4642
4643
2.01k
  cached_has_bits = _has_bits_[0];
4644
2.01k
  if (cached_has_bits & 0x00000001u) {
4645
0
    GOOGLE_DCHECK(placement_ != NULL);
4646
0
    placement_->Clear();
4647
0
  }
4648
2.01k
  _has_bits_.Clear();
4649
2.01k
  _internal_metadata_.Clear();
4650
2.01k
}
4651
4652
bool GetTransactionStatusTabletsRequestPB::MergePartialFromCodedStream(
4653
2.01k
    ::google::protobuf::io::CodedInputStream* input) {
4654
1.96k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
4655
2.01k
  ::google::protobuf::uint32 tag;
4656
  // @@protoc_insertion_point(parse_start:yb.master.GetTransactionStatusTabletsRequestPB)
4657
4.01k
  for (;;) {
4658
4.01k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4659
4.01k
    tag = p.first;
4660
4.01k
    if (!p.second) goto handle_unusual;
4661
2.01k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4662
      // optional .yb.CloudInfoPB placement = 1;
4663
1.97k
      case 1: {
4664
1.97k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4665
1.97k
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
4666
1.97k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
4667
1.97k
               input, mutable_placement()));
4668
0
        } else {
4669
0
          goto handle_unusual;
4670
0
        }
4671
1.97k
        break;
4672
2.00k
      }
4673
4674
0
      default: {
4675
2.00k
      handle_unusual:
4676
2.00k
        if (tag == 0) {
4677
2.00k
          goto success;
4678
2.00k
        }
4679
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
4680
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
4681
18.4E
        break;
4682
18.4E
      }
4683
2.01k
    }
4684
2.01k
  }
4685
2.00k
success:
4686
  // @@protoc_insertion_point(parse_success:yb.master.GetTransactionStatusTabletsRequestPB)
4687
2.00k
  return true;
4688
0
failure:
4689
  // @@protoc_insertion_point(parse_failure:yb.master.GetTransactionStatusTabletsRequestPB)
4690
0
  return false;
4691
2.01k
#undef DO_
4692
2.01k
}
4693
4694
void GetTransactionStatusTabletsRequestPB::SerializeWithCachedSizes(
4695
0
    ::google::protobuf::io::CodedOutputStream* output) const {
4696
  // @@protoc_insertion_point(serialize_start:yb.master.GetTransactionStatusTabletsRequestPB)
4697
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4698
0
  (void) cached_has_bits;
4699
4700
0
  cached_has_bits = _has_bits_[0];
4701
  // optional .yb.CloudInfoPB placement = 1;
4702
0
  if (cached_has_bits & 0x00000001u) {
4703
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4704
0
      1, *this->placement_, output);
4705
0
  }
4706
4707
0
  if (_internal_metadata_.have_unknown_fields()) {
4708
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4709
0
        _internal_metadata_.unknown_fields(), output);
4710
0
  }
4711
  // @@protoc_insertion_point(serialize_end:yb.master.GetTransactionStatusTabletsRequestPB)
4712
0
}
4713
4714
::google::protobuf::uint8* GetTransactionStatusTabletsRequestPB::InternalSerializeWithCachedSizesToArray(
4715
2.01k
    bool deterministic, ::google::protobuf::uint8* target) const {
4716
2.01k
  (void)deterministic; // Unused
4717
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.GetTransactionStatusTabletsRequestPB)
4718
2.01k
  ::google::protobuf::uint32 cached_has_bits = 0;
4719
2.01k
  (void) cached_has_bits;
4720
4721
2.01k
  cached_has_bits = _has_bits_[0];
4722
  // optional .yb.CloudInfoPB placement = 1;
4723
2.01k
  if (cached_has_bits & 0x00000001u) {
4724
2.01k
    target = ::google::protobuf::internal::WireFormatLite::
4725
2.01k
      InternalWriteMessageToArray(
4726
2.01k
        1, *this->placement_, deterministic, target);
4727
2.01k
  }
4728
4729
2.01k
  if (_internal_metadata_.have_unknown_fields()) {
4730
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4731
0
        _internal_metadata_.unknown_fields(), target);
4732
0
  }
4733
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.GetTransactionStatusTabletsRequestPB)
4734
2.01k
  return target;
4735
2.01k
}
4736
4737
4.02k
size_t GetTransactionStatusTabletsRequestPB::ByteSizeLong() const {
4738
// @@protoc_insertion_point(message_byte_size_start:yb.master.GetTransactionStatusTabletsRequestPB)
4739
4.02k
  size_t total_size = 0;
4740
4741
4.02k
  if (_internal_metadata_.have_unknown_fields()) {
4742
0
    total_size +=
4743
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4744
0
        _internal_metadata_.unknown_fields());
4745
0
  }
4746
  // optional .yb.CloudInfoPB placement = 1;
4747
4.02k
  if (has_placement()) {
4748
4.02k
    total_size += 1 +
4749
4.02k
      ::google::protobuf::internal::WireFormatLite::MessageSize(
4750
4.02k
        *this->placement_);
4751
4.02k
  }
4752
4753
4.02k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4754
4.02k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4755
4.02k
  _cached_size_ = cached_size;
4756
4.02k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4757
4.02k
  return total_size;
4758
4.02k
}
4759
4760
0
void GetTransactionStatusTabletsRequestPB::MergeFrom(const ::google::protobuf::Message& from) {
4761
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.GetTransactionStatusTabletsRequestPB)
4762
0
  GOOGLE_DCHECK_NE(&from, this);
4763
0
  const GetTransactionStatusTabletsRequestPB* source =
4764
0
      ::google::protobuf::internal::DynamicCastToGenerated<const GetTransactionStatusTabletsRequestPB>(
4765
0
          &from);
4766
0
  if (source == NULL) {
4767
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.GetTransactionStatusTabletsRequestPB)
4768
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4769
0
  } else {
4770
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.GetTransactionStatusTabletsRequestPB)
4771
0
    MergeFrom(*source);
4772
0
  }
4773
0
}
4774
4775
0
void GetTransactionStatusTabletsRequestPB::MergeFrom(const GetTransactionStatusTabletsRequestPB& from) {
4776
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.GetTransactionStatusTabletsRequestPB)
4777
0
  GOOGLE_DCHECK_NE(&from, this);
4778
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4779
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4780
0
  (void) cached_has_bits;
4781
4782
0
  if (from.has_placement()) {
4783
0
    mutable_placement()->::yb::CloudInfoPB::MergeFrom(from.placement());
4784
0
  }
4785
0
}
4786
4787
0
void GetTransactionStatusTabletsRequestPB::CopyFrom(const ::google::protobuf::Message& from) {
4788
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.GetTransactionStatusTabletsRequestPB)
4789
0
  if (&from == this) return;
4790
0
  Clear();
4791
0
  MergeFrom(from);
4792
0
}
4793
4794
0
void GetTransactionStatusTabletsRequestPB::CopyFrom(const GetTransactionStatusTabletsRequestPB& from) {
4795
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.GetTransactionStatusTabletsRequestPB)
4796
0
  if (&from == this) return;
4797
0
  Clear();
4798
0
  MergeFrom(from);
4799
0
}
4800
4801
4.02k
bool GetTransactionStatusTabletsRequestPB::IsInitialized() const {
4802
4.02k
  return true;
4803
4.02k
}
4804
4805
0
void GetTransactionStatusTabletsRequestPB::Swap(GetTransactionStatusTabletsRequestPB* other) {
4806
0
  if (other == this) return;
4807
0
  InternalSwap(other);
4808
0
}
4809
0
void GetTransactionStatusTabletsRequestPB::InternalSwap(GetTransactionStatusTabletsRequestPB* other) {
4810
0
  using std::swap;
4811
0
  swap(placement_, other->placement_);
4812
0
  swap(_has_bits_[0], other->_has_bits_[0]);
4813
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
4814
0
  swap(_cached_size_, other->_cached_size_);
4815
0
}
4816
4817
2.00k
::google::protobuf::Metadata GetTransactionStatusTabletsRequestPB::GetMetadata() const {
4818
2.00k
  protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::protobuf_AssignDescriptorsOnce();
4819
2.00k
  return ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::file_level_metadata[kIndexInFileMessages];
4820
2.00k
}
4821
4822
4823
// ===================================================================
4824
4825
15.8k
void GetTransactionStatusTabletsResponsePB::InitAsDefaultInstance() {
4826
15.8k
  ::yb::master::_GetTransactionStatusTabletsResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::master::MasterErrorPB*>(
4827
15.8k
      ::yb::master::MasterErrorPB::internal_default_instance());
4828
15.8k
}
4829
0
void GetTransactionStatusTabletsResponsePB::clear_error() {
4830
0
  if (error_ != NULL) error_->Clear();
4831
0
  clear_has_error();
4832
0
}
4833
#if !defined(_MSC_VER) || _MSC_VER >= 1900
4834
const int GetTransactionStatusTabletsResponsePB::kErrorFieldNumber;
4835
const int GetTransactionStatusTabletsResponsePB::kGlobalTabletIdFieldNumber;
4836
const int GetTransactionStatusTabletsResponsePB::kPlacementLocalTabletIdFieldNumber;
4837
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
4838
4839
GetTransactionStatusTabletsResponsePB::GetTransactionStatusTabletsResponsePB()
4840
19.8k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
4841
4.02k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
4842
4.02k
    ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::InitDefaultsGetTransactionStatusTabletsResponsePB();
4843
4.02k
  }
4844
19.8k
  SharedCtor();
4845
  // @@protoc_insertion_point(constructor:yb.master.GetTransactionStatusTabletsResponsePB)
4846
19.8k
}
4847
GetTransactionStatusTabletsResponsePB::GetTransactionStatusTabletsResponsePB(const GetTransactionStatusTabletsResponsePB& from)
4848
  : ::google::protobuf::Message(),
4849
      _internal_metadata_(NULL),
4850
      _has_bits_(from._has_bits_),
4851
      _cached_size_(0),
4852
      global_tablet_id_(from.global_tablet_id_),
4853
0
      placement_local_tablet_id_(from.placement_local_tablet_id_) {
4854
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4855
0
  if (from.has_error()) {
4856
0
    error_ = new ::yb::master::MasterErrorPB(*from.error_);
4857
0
  } else {
4858
0
    error_ = NULL;
4859
0
  }
4860
  // @@protoc_insertion_point(copy_constructor:yb.master.GetTransactionStatusTabletsResponsePB)
4861
0
}
4862
4863
19.8k
void GetTransactionStatusTabletsResponsePB::SharedCtor() {
4864
19.8k
  _cached_size_ = 0;
4865
19.8k
  error_ = NULL;
4866
19.8k
}
4867
4868
4.02k
GetTransactionStatusTabletsResponsePB::~GetTransactionStatusTabletsResponsePB() {
4869
  // @@protoc_insertion_point(destructor:yb.master.GetTransactionStatusTabletsResponsePB)
4870
4.02k
  SharedDtor();
4871
4.02k
}
4872
4873
4.02k
void GetTransactionStatusTabletsResponsePB::SharedDtor() {
4874
4.02k
  if (this != internal_default_instance()) delete error_;
4875
4.02k
}
4876
4877
0
void GetTransactionStatusTabletsResponsePB::SetCachedSize(int size) const {
4878
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4879
0
  _cached_size_ = size;
4880
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4881
0
}
4882
0
const ::google::protobuf::Descriptor* GetTransactionStatusTabletsResponsePB::descriptor() {
4883
0
  ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::protobuf_AssignDescriptorsOnce();
4884
0
  return ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
4885
0
}
4886
4887
0
const GetTransactionStatusTabletsResponsePB& GetTransactionStatusTabletsResponsePB::default_instance() {
4888
0
  ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::InitDefaultsGetTransactionStatusTabletsResponsePB();
4889
0
  return *internal_default_instance();
4890
0
}
4891
4892
0
GetTransactionStatusTabletsResponsePB* GetTransactionStatusTabletsResponsePB::New(::google::protobuf::Arena* arena) const {
4893
0
  GetTransactionStatusTabletsResponsePB* n = new GetTransactionStatusTabletsResponsePB;
4894
0
  if (arena != NULL) {
4895
0
    arena->Own(n);
4896
0
  }
4897
0
  return n;
4898
0
}
4899
4900
2.01k
void GetTransactionStatusTabletsResponsePB::Clear() {
4901
// @@protoc_insertion_point(message_clear_start:yb.master.GetTransactionStatusTabletsResponsePB)
4902
2.01k
  ::google::protobuf::uint32 cached_has_bits = 0;
4903
  // Prevent compiler warnings about cached_has_bits being unused
4904
2.01k
  (void) cached_has_bits;
4905
4906
2.01k
  global_tablet_id_.Clear();
4907
2.01k
  placement_local_tablet_id_.Clear();
4908
2.01k
  cached_has_bits = _has_bits_[0];
4909
2.01k
  if (cached_has_bits & 0x00000001u) {
4910
0
    GOOGLE_DCHECK(error_ != NULL);
4911
0
    error_->Clear();
4912
0
  }
4913
2.01k
  _has_bits_.Clear();
4914
2.01k
  _internal_metadata_.Clear();
4915
2.01k
}
4916
4917
bool GetTransactionStatusTabletsResponsePB::MergePartialFromCodedStream(
4918
2.01k
    ::google::protobuf::io::CodedInputStream* input) {
4919
39.3k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
4920
2.01k
  ::google::protobuf::uint32 tag;
4921
  // @@protoc_insertion_point(parse_start:yb.master.GetTransactionStatusTabletsResponsePB)
4922
41.3k
  for (;;) {
4923
41.3k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4924
41.3k
    tag = p.first;
4925
41.3k
    if (!p.second) goto handle_unusual;
4926
39.3k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4927
      // optional .yb.master.MasterErrorPB error = 1;
4928
0
      case 1: {
4929
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4930
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
4931
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
4932
0
               input, mutable_error()));
4933
0
        } else {
4934
0
          goto handle_unusual;
4935
0
        }
4936
0
        break;
4937
0
      }
4938
4939
      // repeated bytes global_tablet_id = 2;
4940
39.3k
      case 2: {
4941
39.3k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4942
39.3k
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
4943
39.3k
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
4944
39.3k
                input, this->add_global_tablet_id()));
4945
18.4E
        } else {
4946
18.4E
          goto handle_unusual;
4947
18.4E
        }
4948
39.3k
        break;
4949
39.3k
      }
4950
4951
      // repeated bytes placement_local_tablet_id = 3;
4952
0
      case 3: {
4953
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4954
0
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
4955
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
4956
0
                input, this->add_placement_local_tablet_id()));
4957
0
        } else {
4958
0
          goto handle_unusual;
4959
0
        }
4960
0
        break;
4961
2.01k
      }
4962
4963
0
      default: {
4964
2.01k
      handle_unusual:
4965
2.01k
        if (tag == 0) {
4966
2.01k
          goto success;
4967
2.01k
        }
4968
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
4969
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
4970
0
        break;
4971
0
      }
4972
39.3k
    }
4973
39.3k
  }
4974
2.01k
success:
4975
  // @@protoc_insertion_point(parse_success:yb.master.GetTransactionStatusTabletsResponsePB)
4976
2.01k
  return true;
4977
0
failure:
4978
  // @@protoc_insertion_point(parse_failure:yb.master.GetTransactionStatusTabletsResponsePB)
4979
0
  return false;
4980
2.01k
#undef DO_
4981
2.01k
}
4982
4983
void GetTransactionStatusTabletsResponsePB::SerializeWithCachedSizes(
4984
0
    ::google::protobuf::io::CodedOutputStream* output) const {
4985
  // @@protoc_insertion_point(serialize_start:yb.master.GetTransactionStatusTabletsResponsePB)
4986
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4987
0
  (void) cached_has_bits;
4988
4989
0
  cached_has_bits = _has_bits_[0];
4990
  // optional .yb.master.MasterErrorPB error = 1;
4991
0
  if (cached_has_bits & 0x00000001u) {
4992
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4993
0
      1, *this->error_, output);
4994
0
  }
4995
4996
  // repeated bytes global_tablet_id = 2;
4997
0
  for (int i = 0, n = this->global_tablet_id_size(); i < n; i++) {
4998
0
    ::google::protobuf::internal::WireFormatLite::WriteBytes(
4999
0
      2, this->global_tablet_id(i), output);
5000
0
  }
5001
5002
  // repeated bytes placement_local_tablet_id = 3;
5003
0
  for (int i = 0, n = this->placement_local_tablet_id_size(); i < n; i++) {
5004
0
    ::google::protobuf::internal::WireFormatLite::WriteBytes(
5005
0
      3, this->placement_local_tablet_id(i), output);
5006
0
  }
5007
5008
0
  if (_internal_metadata_.have_unknown_fields()) {
5009
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5010
0
        _internal_metadata_.unknown_fields(), output);
5011
0
  }
5012
  // @@protoc_insertion_point(serialize_end:yb.master.GetTransactionStatusTabletsResponsePB)
5013
0
}
5014
5015
::google::protobuf::uint8* GetTransactionStatusTabletsResponsePB::InternalSerializeWithCachedSizesToArray(
5016
2.00k
    bool deterministic, ::google::protobuf::uint8* target) const {
5017
2.00k
  (void)deterministic; // Unused
5018
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.GetTransactionStatusTabletsResponsePB)
5019
2.00k
  ::google::protobuf::uint32 cached_has_bits = 0;
5020
2.00k
  (void) cached_has_bits;
5021
5022
2.00k
  cached_has_bits = _has_bits_[0];
5023
  // optional .yb.master.MasterErrorPB error = 1;
5024
2.00k
  if (cached_has_bits & 0x00000001u) {
5025
0
    target = ::google::protobuf::internal::WireFormatLite::
5026
0
      InternalWriteMessageToArray(
5027
0
        1, *this->error_, deterministic, target);
5028
0
  }
5029
5030
  // repeated bytes global_tablet_id = 2;
5031
37.8k
  for (int i = 0, n = this->global_tablet_id_size(); i < n; i++) {
5032
35.8k
    target = ::google::protobuf::internal::WireFormatLite::
5033
35.8k
      WriteBytesToArray(2, this->global_tablet_id(i), target);
5034
35.8k
  }
5035
5036
  // repeated bytes placement_local_tablet_id = 3;
5037
2.00k
  for (int i = 0, n = this->placement_local_tablet_id_size(); i < n; i++) {
5038
0
    target = ::google::protobuf::internal::WireFormatLite::
5039
0
      WriteBytesToArray(3, this->placement_local_tablet_id(i), target);
5040
0
  }
5041
5042
2.00k
  if (_internal_metadata_.have_unknown_fields()) {
5043
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5044
0
        _internal_metadata_.unknown_fields(), target);
5045
0
  }
5046
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.GetTransactionStatusTabletsResponsePB)
5047
2.00k
  return target;
5048
2.00k
}
5049
5050
3.98k
size_t GetTransactionStatusTabletsResponsePB::ByteSizeLong() const {
5051
// @@protoc_insertion_point(message_byte_size_start:yb.master.GetTransactionStatusTabletsResponsePB)
5052
3.98k
  size_t total_size = 0;
5053
5054
3.98k
  if (_internal_metadata_.have_unknown_fields()) {
5055
0
    total_size +=
5056
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5057
0
        _internal_metadata_.unknown_fields());
5058
0
  }
5059
  // repeated bytes global_tablet_id = 2;
5060
3.98k
  total_size += 1 *
5061
3.98k
      ::google::protobuf::internal::FromIntSize(this->global_tablet_id_size());
5062
75.1k
  for (int i = 0, n = this->global_tablet_id_size(); i < n; i++) {
5063
71.2k
    total_size += ::google::protobuf::internal::WireFormatLite::BytesSize(
5064
71.2k
      this->global_tablet_id(i));
5065
71.2k
  }
5066
5067
  // repeated bytes placement_local_tablet_id = 3;
5068
3.98k
  total_size += 1 *
5069
3.98k
      ::google::protobuf::internal::FromIntSize(this->placement_local_tablet_id_size());
5070
3.98k
  for (int i = 0, n = this->placement_local_tablet_id_size(); i < n; i++) {
5071
0
    total_size += ::google::protobuf::internal::WireFormatLite::BytesSize(
5072
0
      this->placement_local_tablet_id(i));
5073
0
  }
5074
5075
  // optional .yb.master.MasterErrorPB error = 1;
5076
3.98k
  if (has_error()) {
5077
0
    total_size += 1 +
5078
0
      ::google::protobuf::internal::WireFormatLite::MessageSize(
5079
0
        *this->error_);
5080
0
  }
5081
5082
3.98k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
5083
3.98k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5084
3.98k
  _cached_size_ = cached_size;
5085
3.98k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5086
3.98k
  return total_size;
5087
3.98k
}
5088
5089
0
void GetTransactionStatusTabletsResponsePB::MergeFrom(const ::google::protobuf::Message& from) {
5090
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.GetTransactionStatusTabletsResponsePB)
5091
0
  GOOGLE_DCHECK_NE(&from, this);
5092
0
  const GetTransactionStatusTabletsResponsePB* source =
5093
0
      ::google::protobuf::internal::DynamicCastToGenerated<const GetTransactionStatusTabletsResponsePB>(
5094
0
          &from);
5095
0
  if (source == NULL) {
5096
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.GetTransactionStatusTabletsResponsePB)
5097
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5098
0
  } else {
5099
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.GetTransactionStatusTabletsResponsePB)
5100
0
    MergeFrom(*source);
5101
0
  }
5102
0
}
5103
5104
0
void GetTransactionStatusTabletsResponsePB::MergeFrom(const GetTransactionStatusTabletsResponsePB& from) {
5105
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.GetTransactionStatusTabletsResponsePB)
5106
0
  GOOGLE_DCHECK_NE(&from, this);
5107
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
5108
0
  ::google::protobuf::uint32 cached_has_bits = 0;
5109
0
  (void) cached_has_bits;
5110
5111
0
  global_tablet_id_.MergeFrom(from.global_tablet_id_);
5112
0
  placement_local_tablet_id_.MergeFrom(from.placement_local_tablet_id_);
5113
0
  if (from.has_error()) {
5114
0
    mutable_error()->::yb::master::MasterErrorPB::MergeFrom(from.error());
5115
0
  }
5116
0
}
5117
5118
0
void GetTransactionStatusTabletsResponsePB::CopyFrom(const ::google::protobuf::Message& from) {
5119
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.GetTransactionStatusTabletsResponsePB)
5120
0
  if (&from == this) return;
5121
0
  Clear();
5122
0
  MergeFrom(from);
5123
0
}
5124
5125
0
void GetTransactionStatusTabletsResponsePB::CopyFrom(const GetTransactionStatusTabletsResponsePB& from) {
5126
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.GetTransactionStatusTabletsResponsePB)
5127
0
  if (&from == this) return;
5128
0
  Clear();
5129
0
  MergeFrom(from);
5130
0
}
5131
5132
4.01k
bool GetTransactionStatusTabletsResponsePB::IsInitialized() const {
5133
4.01k
  if (has_error()) {
5134
0
    if (!this->error_->IsInitialized()) return false;
5135
4.01k
  }
5136
4.01k
  return true;
5137
4.01k
}
5138
5139
0
void GetTransactionStatusTabletsResponsePB::Swap(GetTransactionStatusTabletsResponsePB* other) {
5140
0
  if (other == this) return;
5141
0
  InternalSwap(other);
5142
0
}
5143
0
void GetTransactionStatusTabletsResponsePB::InternalSwap(GetTransactionStatusTabletsResponsePB* other) {
5144
0
  using std::swap;
5145
0
  global_tablet_id_.InternalSwap(&other->global_tablet_id_);
5146
0
  placement_local_tablet_id_.InternalSwap(&other->placement_local_tablet_id_);
5147
0
  swap(error_, other->error_);
5148
0
  swap(_has_bits_[0], other->_has_bits_[0]);
5149
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
5150
0
  swap(_cached_size_, other->_cached_size_);
5151
0
}
5152
5153
0
::google::protobuf::Metadata GetTransactionStatusTabletsResponsePB::GetMetadata() const {
5154
0
  protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::protobuf_AssignDescriptorsOnce();
5155
0
  return ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::file_level_metadata[kIndexInFileMessages];
5156
0
}
5157
5158
5159
// ===================================================================
5160
5161
15.8k
void ReservePgsqlOidsRequestPB::InitAsDefaultInstance() {
5162
15.8k
}
5163
#if !defined(_MSC_VER) || _MSC_VER >= 1900
5164
const int ReservePgsqlOidsRequestPB::kNamespaceIdFieldNumber;
5165
const int ReservePgsqlOidsRequestPB::kNextOidFieldNumber;
5166
const int ReservePgsqlOidsRequestPB::kCountFieldNumber;
5167
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
5168
5169
ReservePgsqlOidsRequestPB::ReservePgsqlOidsRequestPB()
5170
16.6k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
5171
760
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
5172
760
    ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::InitDefaultsReservePgsqlOidsRequestPB();
5173
760
  }
5174
16.6k
  SharedCtor();
5175
  // @@protoc_insertion_point(constructor:yb.master.ReservePgsqlOidsRequestPB)
5176
16.6k
}
5177
ReservePgsqlOidsRequestPB::ReservePgsqlOidsRequestPB(const ReservePgsqlOidsRequestPB& from)
5178
  : ::google::protobuf::Message(),
5179
      _internal_metadata_(NULL),
5180
      _has_bits_(from._has_bits_),
5181
0
      _cached_size_(0) {
5182
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
5183
0
  namespace_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5184
0
  if (from.has_namespace_id()) {
5185
0
    namespace_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.namespace_id_);
5186
0
  }
5187
0
  ::memcpy(&next_oid_, &from.next_oid_,
5188
0
    static_cast<size_t>(reinterpret_cast<char*>(&count_) -
5189
0
    reinterpret_cast<char*>(&next_oid_)) + sizeof(count_));
5190
  // @@protoc_insertion_point(copy_constructor:yb.master.ReservePgsqlOidsRequestPB)
5191
0
}
5192
5193
16.6k
void ReservePgsqlOidsRequestPB::SharedCtor() {
5194
16.6k
  _cached_size_ = 0;
5195
16.6k
  namespace_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5196
16.6k
  ::memset(&next_oid_, 0, static_cast<size_t>(
5197
16.6k
      reinterpret_cast<char*>(&count_) -
5198
16.6k
      reinterpret_cast<char*>(&next_oid_)) + sizeof(count_));
5199
16.6k
}
5200
5201
760
ReservePgsqlOidsRequestPB::~ReservePgsqlOidsRequestPB() {
5202
  // @@protoc_insertion_point(destructor:yb.master.ReservePgsqlOidsRequestPB)
5203
760
  SharedDtor();
5204
760
}
5205
5206
760
void ReservePgsqlOidsRequestPB::SharedDtor() {
5207
760
  namespace_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
5208
760
}
5209
5210
0
void ReservePgsqlOidsRequestPB::SetCachedSize(int size) const {
5211
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5212
0
  _cached_size_ = size;
5213
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5214
0
}
5215
0
const ::google::protobuf::Descriptor* ReservePgsqlOidsRequestPB::descriptor() {
5216
0
  ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::protobuf_AssignDescriptorsOnce();
5217
0
  return ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
5218
0
}
5219
5220
0
const ReservePgsqlOidsRequestPB& ReservePgsqlOidsRequestPB::default_instance() {
5221
0
  ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::InitDefaultsReservePgsqlOidsRequestPB();
5222
0
  return *internal_default_instance();
5223
0
}
5224
5225
0
ReservePgsqlOidsRequestPB* ReservePgsqlOidsRequestPB::New(::google::protobuf::Arena* arena) const {
5226
0
  ReservePgsqlOidsRequestPB* n = new ReservePgsqlOidsRequestPB;
5227
0
  if (arena != NULL) {
5228
0
    arena->Own(n);
5229
0
  }
5230
0
  return n;
5231
0
}
5232
5233
380
void ReservePgsqlOidsRequestPB::Clear() {
5234
// @@protoc_insertion_point(message_clear_start:yb.master.ReservePgsqlOidsRequestPB)
5235
380
  ::google::protobuf::uint32 cached_has_bits = 0;
5236
  // Prevent compiler warnings about cached_has_bits being unused
5237
380
  (void) cached_has_bits;
5238
5239
380
  cached_has_bits = _has_bits_[0];
5240
380
  if (cached_has_bits & 0x00000001u) {
5241
0
    GOOGLE_DCHECK(!namespace_id_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
5242
0
    (*namespace_id_.UnsafeRawStringPointer())->clear();
5243
0
  }
5244
380
  if (cached_has_bits & 6u) {
5245
0
    ::memset(&next_oid_, 0, static_cast<size_t>(
5246
0
        reinterpret_cast<char*>(&count_) -
5247
0
        reinterpret_cast<char*>(&next_oid_)) + sizeof(count_));
5248
0
  }
5249
380
  _has_bits_.Clear();
5250
380
  _internal_metadata_.Clear();
5251
380
}
5252
5253
bool ReservePgsqlOidsRequestPB::MergePartialFromCodedStream(
5254
380
    ::google::protobuf::io::CodedInputStream* input) {
5255
1.14k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
5256
380
  ::google::protobuf::uint32 tag;
5257
  // @@protoc_insertion_point(parse_start:yb.master.ReservePgsqlOidsRequestPB)
5258
1.52k
  for (;;) {
5259
1.52k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
5260
1.52k
    tag = p.first;
5261
1.52k
    if (!p.second) goto handle_unusual;
5262
1.14k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5263
      // optional bytes namespace_id = 1;
5264
380
      case 1: {
5265
380
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5266
380
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
5267
380
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
5268
380
                input, this->mutable_namespace_id()));
5269
0
        } else {
5270
0
          goto handle_unusual;
5271
0
        }
5272
380
        break;
5273
380
      }
5274
5275
      // optional uint32 next_oid = 2;
5276
380
      case 2: {
5277
380
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5278
380
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
5279
380
          set_has_next_oid();
5280
380
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5281
380
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
5282
380
                 input, &next_oid_)));
5283
0
        } else {
5284
0
          goto handle_unusual;
5285
0
        }
5286
380
        break;
5287
380
      }
5288
5289
      // optional uint32 count = 3;
5290
380
      case 3: {
5291
380
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5292
380
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
5293
380
          set_has_count();
5294
380
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5295
380
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
5296
380
                 input, &count_)));
5297
0
        } else {
5298
0
          goto handle_unusual;
5299
0
        }
5300
380
        break;
5301
380
      }
5302
5303
0
      default: {
5304
380
      handle_unusual:
5305
380
        if (tag == 0) {
5306
380
          goto success;
5307
380
        }
5308
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
5309
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
5310
0
        break;
5311
0
      }
5312
1.14k
    }
5313
1.14k
  }
5314
380
success:
5315
  // @@protoc_insertion_point(parse_success:yb.master.ReservePgsqlOidsRequestPB)
5316
380
  return true;
5317
0
failure:
5318
  // @@protoc_insertion_point(parse_failure:yb.master.ReservePgsqlOidsRequestPB)
5319
0
  return false;
5320
380
#undef DO_
5321
380
}
5322
5323
void ReservePgsqlOidsRequestPB::SerializeWithCachedSizes(
5324
0
    ::google::protobuf::io::CodedOutputStream* output) const {
5325
  // @@protoc_insertion_point(serialize_start:yb.master.ReservePgsqlOidsRequestPB)
5326
0
  ::google::protobuf::uint32 cached_has_bits = 0;
5327
0
  (void) cached_has_bits;
5328
5329
0
  cached_has_bits = _has_bits_[0];
5330
  // optional bytes namespace_id = 1;
5331
0
  if (cached_has_bits & 0x00000001u) {
5332
0
    ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
5333
0
      1, this->namespace_id(), output);
5334
0
  }
5335
5336
  // optional uint32 next_oid = 2;
5337
0
  if (cached_has_bits & 0x00000002u) {
5338
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->next_oid(), output);
5339
0
  }
5340
5341
  // optional uint32 count = 3;
5342
0
  if (cached_has_bits & 0x00000004u) {
5343
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->count(), output);
5344
0
  }
5345
5346
0
  if (_internal_metadata_.have_unknown_fields()) {
5347
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5348
0
        _internal_metadata_.unknown_fields(), output);
5349
0
  }
5350
  // @@protoc_insertion_point(serialize_end:yb.master.ReservePgsqlOidsRequestPB)
5351
0
}
5352
5353
::google::protobuf::uint8* ReservePgsqlOidsRequestPB::InternalSerializeWithCachedSizesToArray(
5354
380
    bool deterministic, ::google::protobuf::uint8* target) const {
5355
380
  (void)deterministic; // Unused
5356
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.ReservePgsqlOidsRequestPB)
5357
380
  ::google::protobuf::uint32 cached_has_bits = 0;
5358
380
  (void) cached_has_bits;
5359
5360
380
  cached_has_bits = _has_bits_[0];
5361
  // optional bytes namespace_id = 1;
5362
380
  if (cached_has_bits & 0x00000001u) {
5363
380
    target =
5364
380
      ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
5365
380
        1, this->namespace_id(), target);
5366
380
  }
5367
5368
  // optional uint32 next_oid = 2;
5369
380
  if (cached_has_bits & 0x00000002u) {
5370
380
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->next_oid(), target);
5371
380
  }
5372
5373
  // optional uint32 count = 3;
5374
380
  if (cached_has_bits & 0x00000004u) {
5375
380
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->count(), target);
5376
380
  }
5377
5378
380
  if (_internal_metadata_.have_unknown_fields()) {
5379
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5380
0
        _internal_metadata_.unknown_fields(), target);
5381
0
  }
5382
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.ReservePgsqlOidsRequestPB)
5383
380
  return target;
5384
380
}
5385
5386
760
size_t ReservePgsqlOidsRequestPB::ByteSizeLong() const {
5387
// @@protoc_insertion_point(message_byte_size_start:yb.master.ReservePgsqlOidsRequestPB)
5388
760
  size_t total_size = 0;
5389
5390
760
  if (_internal_metadata_.have_unknown_fields()) {
5391
0
    total_size +=
5392
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5393
0
        _internal_metadata_.unknown_fields());
5394
0
  }
5395
760
  if (_has_bits_[0 / 32] & 7u) {
5396
    // optional bytes namespace_id = 1;
5397
760
    if (has_namespace_id()) {
5398
760
      total_size += 1 +
5399
760
        ::google::protobuf::internal::WireFormatLite::BytesSize(
5400
760
          this->namespace_id());
5401
760
    }
5402
5403
    // optional uint32 next_oid = 2;
5404
760
    if (has_next_oid()) {
5405
760
      total_size += 1 +
5406
760
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
5407
760
          this->next_oid());
5408
760
    }
5409
5410
    // optional uint32 count = 3;
5411
760
    if (has_count()) {
5412
760
      total_size += 1 +
5413
760
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
5414
760
          this->count());
5415
760
    }
5416
5417
760
  }
5418
760
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
5419
760
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5420
760
  _cached_size_ = cached_size;
5421
760
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5422
760
  return total_size;
5423
760
}
5424
5425
0
void ReservePgsqlOidsRequestPB::MergeFrom(const ::google::protobuf::Message& from) {
5426
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.ReservePgsqlOidsRequestPB)
5427
0
  GOOGLE_DCHECK_NE(&from, this);
5428
0
  const ReservePgsqlOidsRequestPB* source =
5429
0
      ::google::protobuf::internal::DynamicCastToGenerated<const ReservePgsqlOidsRequestPB>(
5430
0
          &from);
5431
0
  if (source == NULL) {
5432
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.ReservePgsqlOidsRequestPB)
5433
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5434
0
  } else {
5435
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.ReservePgsqlOidsRequestPB)
5436
0
    MergeFrom(*source);
5437
0
  }
5438
0
}
5439
5440
0
void ReservePgsqlOidsRequestPB::MergeFrom(const ReservePgsqlOidsRequestPB& from) {
5441
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.ReservePgsqlOidsRequestPB)
5442
0
  GOOGLE_DCHECK_NE(&from, this);
5443
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
5444
0
  ::google::protobuf::uint32 cached_has_bits = 0;
5445
0
  (void) cached_has_bits;
5446
5447
0
  cached_has_bits = from._has_bits_[0];
5448
0
  if (cached_has_bits & 7u) {
5449
0
    if (cached_has_bits & 0x00000001u) {
5450
0
      set_has_namespace_id();
5451
0
      namespace_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.namespace_id_);
5452
0
    }
5453
0
    if (cached_has_bits & 0x00000002u) {
5454
0
      next_oid_ = from.next_oid_;
5455
0
    }
5456
0
    if (cached_has_bits & 0x00000004u) {
5457
0
      count_ = from.count_;
5458
0
    }
5459
0
    _has_bits_[0] |= cached_has_bits;
5460
0
  }
5461
0
}
5462
5463
0
void ReservePgsqlOidsRequestPB::CopyFrom(const ::google::protobuf::Message& from) {
5464
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.ReservePgsqlOidsRequestPB)
5465
0
  if (&from == this) return;
5466
0
  Clear();
5467
0
  MergeFrom(from);
5468
0
}
5469
5470
0
void ReservePgsqlOidsRequestPB::CopyFrom(const ReservePgsqlOidsRequestPB& from) {
5471
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.ReservePgsqlOidsRequestPB)
5472
0
  if (&from == this) return;
5473
0
  Clear();
5474
0
  MergeFrom(from);
5475
0
}
5476
5477
760
bool ReservePgsqlOidsRequestPB::IsInitialized() const {
5478
760
  return true;
5479
760
}
5480
5481
0
void ReservePgsqlOidsRequestPB::Swap(ReservePgsqlOidsRequestPB* other) {
5482
0
  if (other == this) return;
5483
0
  InternalSwap(other);
5484
0
}
5485
0
void ReservePgsqlOidsRequestPB::InternalSwap(ReservePgsqlOidsRequestPB* other) {
5486
0
  using std::swap;
5487
0
  namespace_id_.Swap(&other->namespace_id_);
5488
0
  swap(next_oid_, other->next_oid_);
5489
0
  swap(count_, other->count_);
5490
0
  swap(_has_bits_[0], other->_has_bits_[0]);
5491
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
5492
0
  swap(_cached_size_, other->_cached_size_);
5493
0
}
5494
5495
380
::google::protobuf::Metadata ReservePgsqlOidsRequestPB::GetMetadata() const {
5496
380
  protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::protobuf_AssignDescriptorsOnce();
5497
380
  return ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::file_level_metadata[kIndexInFileMessages];
5498
380
}
5499
5500
5501
// ===================================================================
5502
5503
15.8k
void ReservePgsqlOidsResponsePB::InitAsDefaultInstance() {
5504
15.8k
  ::yb::master::_ReservePgsqlOidsResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::master::MasterErrorPB*>(
5505
15.8k
      ::yb::master::MasterErrorPB::internal_default_instance());
5506
15.8k
}
5507
0
void ReservePgsqlOidsResponsePB::clear_error() {
5508
0
  if (error_ != NULL) error_->Clear();
5509
0
  clear_has_error();
5510
0
}
5511
#if !defined(_MSC_VER) || _MSC_VER >= 1900
5512
const int ReservePgsqlOidsResponsePB::kErrorFieldNumber;
5513
const int ReservePgsqlOidsResponsePB::kBeginOidFieldNumber;
5514
const int ReservePgsqlOidsResponsePB::kEndOidFieldNumber;
5515
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
5516
5517
ReservePgsqlOidsResponsePB::ReservePgsqlOidsResponsePB()
5518
16.6k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
5519
760
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
5520
760
    ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::InitDefaultsReservePgsqlOidsResponsePB();
5521
760
  }
5522
16.6k
  SharedCtor();
5523
  // @@protoc_insertion_point(constructor:yb.master.ReservePgsqlOidsResponsePB)
5524
16.6k
}
5525
ReservePgsqlOidsResponsePB::ReservePgsqlOidsResponsePB(const ReservePgsqlOidsResponsePB& from)
5526
  : ::google::protobuf::Message(),
5527
      _internal_metadata_(NULL),
5528
      _has_bits_(from._has_bits_),
5529
0
      _cached_size_(0) {
5530
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
5531
0
  if (from.has_error()) {
5532
0
    error_ = new ::yb::master::MasterErrorPB(*from.error_);
5533
0
  } else {
5534
0
    error_ = NULL;
5535
0
  }
5536
0
  ::memcpy(&begin_oid_, &from.begin_oid_,
5537
0
    static_cast<size_t>(reinterpret_cast<char*>(&end_oid_) -
5538
0
    reinterpret_cast<char*>(&begin_oid_)) + sizeof(end_oid_));
5539
  // @@protoc_insertion_point(copy_constructor:yb.master.ReservePgsqlOidsResponsePB)
5540
0
}
5541
5542
16.6k
void ReservePgsqlOidsResponsePB::SharedCtor() {
5543
16.6k
  _cached_size_ = 0;
5544
16.6k
  ::memset(&error_, 0, static_cast<size_t>(
5545
16.6k
      reinterpret_cast<char*>(&end_oid_) -
5546
16.6k
      reinterpret_cast<char*>(&error_)) + sizeof(end_oid_));
5547
16.6k
}
5548
5549
760
ReservePgsqlOidsResponsePB::~ReservePgsqlOidsResponsePB() {
5550
  // @@protoc_insertion_point(destructor:yb.master.ReservePgsqlOidsResponsePB)
5551
760
  SharedDtor();
5552
760
}
5553
5554
760
void ReservePgsqlOidsResponsePB::SharedDtor() {
5555
760
  if (this != internal_default_instance()) delete error_;
5556
760
}
5557
5558
0
void ReservePgsqlOidsResponsePB::SetCachedSize(int size) const {
5559
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5560
0
  _cached_size_ = size;
5561
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5562
0
}
5563
0
const ::google::protobuf::Descriptor* ReservePgsqlOidsResponsePB::descriptor() {
5564
0
  ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::protobuf_AssignDescriptorsOnce();
5565
0
  return ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
5566
0
}
5567
5568
0
const ReservePgsqlOidsResponsePB& ReservePgsqlOidsResponsePB::default_instance() {
5569
0
  ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::InitDefaultsReservePgsqlOidsResponsePB();
5570
0
  return *internal_default_instance();
5571
0
}
5572
5573
0
ReservePgsqlOidsResponsePB* ReservePgsqlOidsResponsePB::New(::google::protobuf::Arena* arena) const {
5574
0
  ReservePgsqlOidsResponsePB* n = new ReservePgsqlOidsResponsePB;
5575
0
  if (arena != NULL) {
5576
0
    arena->Own(n);
5577
0
  }
5578
0
  return n;
5579
0
}
5580
5581
380
void ReservePgsqlOidsResponsePB::Clear() {
5582
// @@protoc_insertion_point(message_clear_start:yb.master.ReservePgsqlOidsResponsePB)
5583
380
  ::google::protobuf::uint32 cached_has_bits = 0;
5584
  // Prevent compiler warnings about cached_has_bits being unused
5585
380
  (void) cached_has_bits;
5586
5587
380
  cached_has_bits = _has_bits_[0];
5588
380
  if (cached_has_bits & 0x00000001u) {
5589
0
    GOOGLE_DCHECK(error_ != NULL);
5590
0
    error_->Clear();
5591
0
  }
5592
380
  if (cached_has_bits & 6u) {
5593
0
    ::memset(&begin_oid_, 0, static_cast<size_t>(
5594
0
        reinterpret_cast<char*>(&end_oid_) -
5595
0
        reinterpret_cast<char*>(&begin_oid_)) + sizeof(end_oid_));
5596
0
  }
5597
380
  _has_bits_.Clear();
5598
380
  _internal_metadata_.Clear();
5599
380
}
5600
5601
bool ReservePgsqlOidsResponsePB::MergePartialFromCodedStream(
5602
380
    ::google::protobuf::io::CodedInputStream* input) {
5603
760
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
5604
380
  ::google::protobuf::uint32 tag;
5605
  // @@protoc_insertion_point(parse_start:yb.master.ReservePgsqlOidsResponsePB)
5606
1.14k
  for (;;) {
5607
1.14k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
5608
1.14k
    tag = p.first;
5609
1.14k
    if (!p.second) goto handle_unusual;
5610
760
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5611
      // optional .yb.master.MasterErrorPB error = 1;
5612
0
      case 1: {
5613
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5614
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
5615
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
5616
0
               input, mutable_error()));
5617
0
        } else {
5618
0
          goto handle_unusual;
5619
0
        }
5620
0
        break;
5621
0
      }
5622
5623
      // optional uint32 begin_oid = 2;
5624
380
      case 2: {
5625
380
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5626
380
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
5627
380
          set_has_begin_oid();
5628
380
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5629
380
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
5630
380
                 input, &begin_oid_)));
5631
0
        } else {
5632
0
          goto handle_unusual;
5633
0
        }
5634
380
        break;
5635
380
      }
5636
5637
      // optional uint32 end_oid = 3;
5638
380
      case 3: {
5639
380
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5640
380
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
5641
380
          set_has_end_oid();
5642
380
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5643
380
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
5644
380
                 input, &end_oid_)));
5645
0
        } else {
5646
0
          goto handle_unusual;
5647
0
        }
5648
380
        break;
5649
380
      }
5650
5651
0
      default: {
5652
380
      handle_unusual:
5653
380
        if (tag == 0) {
5654
380
          goto success;
5655
380
        }
5656
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
5657
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
5658
0
        break;
5659
0
      }
5660
760
    }
5661
760
  }
5662
380
success:
5663
  // @@protoc_insertion_point(parse_success:yb.master.ReservePgsqlOidsResponsePB)
5664
380
  return true;
5665
0
failure:
5666
  // @@protoc_insertion_point(parse_failure:yb.master.ReservePgsqlOidsResponsePB)
5667
0
  return false;
5668
380
#undef DO_
5669
380
}
5670
5671
void ReservePgsqlOidsResponsePB::SerializeWithCachedSizes(
5672
0
    ::google::protobuf::io::CodedOutputStream* output) const {
5673
  // @@protoc_insertion_point(serialize_start:yb.master.ReservePgsqlOidsResponsePB)
5674
0
  ::google::protobuf::uint32 cached_has_bits = 0;
5675
0
  (void) cached_has_bits;
5676
5677
0
  cached_has_bits = _has_bits_[0];
5678
  // optional .yb.master.MasterErrorPB error = 1;
5679
0
  if (cached_has_bits & 0x00000001u) {
5680
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5681
0
      1, *this->error_, output);
5682
0
  }
5683
5684
  // optional uint32 begin_oid = 2;
5685
0
  if (cached_has_bits & 0x00000002u) {
5686
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->begin_oid(), output);
5687
0
  }
5688
5689
  // optional uint32 end_oid = 3;
5690
0
  if (cached_has_bits & 0x00000004u) {
5691
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->end_oid(), output);
5692
0
  }
5693
5694
0
  if (_internal_metadata_.have_unknown_fields()) {
5695
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5696
0
        _internal_metadata_.unknown_fields(), output);
5697
0
  }
5698
  // @@protoc_insertion_point(serialize_end:yb.master.ReservePgsqlOidsResponsePB)
5699
0
}
5700
5701
::google::protobuf::uint8* ReservePgsqlOidsResponsePB::InternalSerializeWithCachedSizesToArray(
5702
380
    bool deterministic, ::google::protobuf::uint8* target) const {
5703
380
  (void)deterministic; // Unused
5704
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.ReservePgsqlOidsResponsePB)
5705
380
  ::google::protobuf::uint32 cached_has_bits = 0;
5706
380
  (void) cached_has_bits;
5707
5708
380
  cached_has_bits = _has_bits_[0];
5709
  // optional .yb.master.MasterErrorPB error = 1;
5710
380
  if (cached_has_bits & 0x00000001u) {
5711
0
    target = ::google::protobuf::internal::WireFormatLite::
5712
0
      InternalWriteMessageToArray(
5713
0
        1, *this->error_, deterministic, target);
5714
0
  }
5715
5716
  // optional uint32 begin_oid = 2;
5717
380
  if (cached_has_bits & 0x00000002u) {
5718
380
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->begin_oid(), target);
5719
380
  }
5720
5721
  // optional uint32 end_oid = 3;
5722
380
  if (cached_has_bits & 0x00000004u) {
5723
380
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->end_oid(), target);
5724
380
  }
5725
5726
380
  if (_internal_metadata_.have_unknown_fields()) {
5727
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5728
0
        _internal_metadata_.unknown_fields(), target);
5729
0
  }
5730
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.ReservePgsqlOidsResponsePB)
5731
380
  return target;
5732
380
}
5733
5734
760
size_t ReservePgsqlOidsResponsePB::ByteSizeLong() const {
5735
// @@protoc_insertion_point(message_byte_size_start:yb.master.ReservePgsqlOidsResponsePB)
5736
760
  size_t total_size = 0;
5737
5738
760
  if (_internal_metadata_.have_unknown_fields()) {
5739
0
    total_size +=
5740
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5741
0
        _internal_metadata_.unknown_fields());
5742
0
  }
5743
760
  if (_has_bits_[0 / 32] & 7u) {
5744
    // optional .yb.master.MasterErrorPB error = 1;
5745
760
    if (has_error()) {
5746
0
      total_size += 1 +
5747
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
5748
0
          *this->error_);
5749
0
    }
5750
5751
    // optional uint32 begin_oid = 2;
5752
760
    if (has_begin_oid()) {
5753
760
      total_size += 1 +
5754
760
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
5755
760
          this->begin_oid());
5756
760
    }
5757
5758
    // optional uint32 end_oid = 3;
5759
760
    if (has_end_oid()) {
5760
760
      total_size += 1 +
5761
760
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
5762
760
          this->end_oid());
5763
760
    }
5764
5765
760
  }
5766
760
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
5767
760
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5768
760
  _cached_size_ = cached_size;
5769
760
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5770
760
  return total_size;
5771
760
}
5772
5773
0
void ReservePgsqlOidsResponsePB::MergeFrom(const ::google::protobuf::Message& from) {
5774
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.ReservePgsqlOidsResponsePB)
5775
0
  GOOGLE_DCHECK_NE(&from, this);
5776
0
  const ReservePgsqlOidsResponsePB* source =
5777
0
      ::google::protobuf::internal::DynamicCastToGenerated<const ReservePgsqlOidsResponsePB>(
5778
0
          &from);
5779
0
  if (source == NULL) {
5780
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.ReservePgsqlOidsResponsePB)
5781
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5782
0
  } else {
5783
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.ReservePgsqlOidsResponsePB)
5784
0
    MergeFrom(*source);
5785
0
  }
5786
0
}
5787
5788
0
void ReservePgsqlOidsResponsePB::MergeFrom(const ReservePgsqlOidsResponsePB& from) {
5789
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.ReservePgsqlOidsResponsePB)
5790
0
  GOOGLE_DCHECK_NE(&from, this);
5791
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
5792
0
  ::google::protobuf::uint32 cached_has_bits = 0;
5793
0
  (void) cached_has_bits;
5794
5795
0
  cached_has_bits = from._has_bits_[0];
5796
0
  if (cached_has_bits & 7u) {
5797
0
    if (cached_has_bits & 0x00000001u) {
5798
0
      mutable_error()->::yb::master::MasterErrorPB::MergeFrom(from.error());
5799
0
    }
5800
0
    if (cached_has_bits & 0x00000002u) {
5801
0
      begin_oid_ = from.begin_oid_;
5802
0
    }
5803
0
    if (cached_has_bits & 0x00000004u) {
5804
0
      end_oid_ = from.end_oid_;
5805
0
    }
5806
0
    _has_bits_[0] |= cached_has_bits;
5807
0
  }
5808
0
}
5809
5810
0
void ReservePgsqlOidsResponsePB::CopyFrom(const ::google::protobuf::Message& from) {
5811
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.ReservePgsqlOidsResponsePB)
5812
0
  if (&from == this) return;
5813
0
  Clear();
5814
0
  MergeFrom(from);
5815
0
}
5816
5817
0
void ReservePgsqlOidsResponsePB::CopyFrom(const ReservePgsqlOidsResponsePB& from) {
5818
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.ReservePgsqlOidsResponsePB)
5819
0
  if (&from == this) return;
5820
0
  Clear();
5821
0
  MergeFrom(from);
5822
0
}
5823
5824
760
bool ReservePgsqlOidsResponsePB::IsInitialized() const {
5825
760
  if (has_error()) {
5826
0
    if (!this->error_->IsInitialized()) return false;
5827
760
  }
5828
760
  return true;
5829
760
}
5830
5831
0
void ReservePgsqlOidsResponsePB::Swap(ReservePgsqlOidsResponsePB* other) {
5832
0
  if (other == this) return;
5833
0
  InternalSwap(other);
5834
0
}
5835
0
void ReservePgsqlOidsResponsePB::InternalSwap(ReservePgsqlOidsResponsePB* other) {
5836
0
  using std::swap;
5837
0
  swap(error_, other->error_);
5838
0
  swap(begin_oid_, other->begin_oid_);
5839
0
  swap(end_oid_, other->end_oid_);
5840
0
  swap(_has_bits_[0], other->_has_bits_[0]);
5841
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
5842
0
  swap(_cached_size_, other->_cached_size_);
5843
0
}
5844
5845
0
::google::protobuf::Metadata ReservePgsqlOidsResponsePB::GetMetadata() const {
5846
0
  protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::protobuf_AssignDescriptorsOnce();
5847
0
  return ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::file_level_metadata[kIndexInFileMessages];
5848
0
}
5849
5850
5851
// ===================================================================
5852
5853
15.8k
void GetYsqlCatalogConfigRequestPB::InitAsDefaultInstance() {
5854
15.8k
}
5855
#if !defined(_MSC_VER) || _MSC_VER >= 1900
5856
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
5857
5858
GetYsqlCatalogConfigRequestPB::GetYsqlCatalogConfigRequestPB()
5859
15.8k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
5860
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
5861
0
    ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::InitDefaultsGetYsqlCatalogConfigRequestPB();
5862
0
  }
5863
15.8k
  SharedCtor();
5864
  // @@protoc_insertion_point(constructor:yb.master.GetYsqlCatalogConfigRequestPB)
5865
15.8k
}
5866
GetYsqlCatalogConfigRequestPB::GetYsqlCatalogConfigRequestPB(const GetYsqlCatalogConfigRequestPB& from)
5867
  : ::google::protobuf::Message(),
5868
      _internal_metadata_(NULL),
5869
      _has_bits_(from._has_bits_),
5870
0
      _cached_size_(0) {
5871
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
5872
  // @@protoc_insertion_point(copy_constructor:yb.master.GetYsqlCatalogConfigRequestPB)
5873
0
}
5874
5875
15.8k
void GetYsqlCatalogConfigRequestPB::SharedCtor() {
5876
15.8k
  _cached_size_ = 0;
5877
15.8k
}
5878
5879
0
GetYsqlCatalogConfigRequestPB::~GetYsqlCatalogConfigRequestPB() {
5880
  // @@protoc_insertion_point(destructor:yb.master.GetYsqlCatalogConfigRequestPB)
5881
0
  SharedDtor();
5882
0
}
5883
5884
0
void GetYsqlCatalogConfigRequestPB::SharedDtor() {
5885
0
}
5886
5887
0
void GetYsqlCatalogConfigRequestPB::SetCachedSize(int size) const {
5888
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5889
0
  _cached_size_ = size;
5890
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5891
0
}
5892
0
const ::google::protobuf::Descriptor* GetYsqlCatalogConfigRequestPB::descriptor() {
5893
0
  ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::protobuf_AssignDescriptorsOnce();
5894
0
  return ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
5895
0
}
5896
5897
0
const GetYsqlCatalogConfigRequestPB& GetYsqlCatalogConfigRequestPB::default_instance() {
5898
0
  ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::InitDefaultsGetYsqlCatalogConfigRequestPB();
5899
0
  return *internal_default_instance();
5900
0
}
5901
5902
0
GetYsqlCatalogConfigRequestPB* GetYsqlCatalogConfigRequestPB::New(::google::protobuf::Arena* arena) const {
5903
0
  GetYsqlCatalogConfigRequestPB* n = new GetYsqlCatalogConfigRequestPB;
5904
0
  if (arena != NULL) {
5905
0
    arena->Own(n);
5906
0
  }
5907
0
  return n;
5908
0
}
5909
5910
0
void GetYsqlCatalogConfigRequestPB::Clear() {
5911
// @@protoc_insertion_point(message_clear_start:yb.master.GetYsqlCatalogConfigRequestPB)
5912
0
  ::google::protobuf::uint32 cached_has_bits = 0;
5913
  // Prevent compiler warnings about cached_has_bits being unused
5914
0
  (void) cached_has_bits;
5915
5916
0
  _has_bits_.Clear();
5917
0
  _internal_metadata_.Clear();
5918
0
}
5919
5920
bool GetYsqlCatalogConfigRequestPB::MergePartialFromCodedStream(
5921
0
    ::google::protobuf::io::CodedInputStream* input) {
5922
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
5923
0
  ::google::protobuf::uint32 tag;
5924
  // @@protoc_insertion_point(parse_start:yb.master.GetYsqlCatalogConfigRequestPB)
5925
0
  for (;;) {
5926
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
5927
0
    tag = p.first;
5928
0
    if (!p.second) goto handle_unusual;
5929
0
  handle_unusual:
5930
0
    if (tag == 0) {
5931
0
      goto success;
5932
0
    }
5933
0
    DO_(::google::protobuf::internal::WireFormat::SkipField(
5934
0
          input, tag, _internal_metadata_.mutable_unknown_fields()));
5935
0
  }
5936
0
success:
5937
  // @@protoc_insertion_point(parse_success:yb.master.GetYsqlCatalogConfigRequestPB)
5938
0
  return true;
5939
0
failure:
5940
  // @@protoc_insertion_point(parse_failure:yb.master.GetYsqlCatalogConfigRequestPB)
5941
0
  return false;
5942
0
#undef DO_
5943
0
}
5944
5945
void GetYsqlCatalogConfigRequestPB::SerializeWithCachedSizes(
5946
0
    ::google::protobuf::io::CodedOutputStream* output) const {
5947
  // @@protoc_insertion_point(serialize_start:yb.master.GetYsqlCatalogConfigRequestPB)
5948
0
  ::google::protobuf::uint32 cached_has_bits = 0;
5949
0
  (void) cached_has_bits;
5950
5951
0
  if (_internal_metadata_.have_unknown_fields()) {
5952
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5953
0
        _internal_metadata_.unknown_fields(), output);
5954
0
  }
5955
  // @@protoc_insertion_point(serialize_end:yb.master.GetYsqlCatalogConfigRequestPB)
5956
0
}
5957
5958
::google::protobuf::uint8* GetYsqlCatalogConfigRequestPB::InternalSerializeWithCachedSizesToArray(
5959
0
    bool deterministic, ::google::protobuf::uint8* target) const {
5960
0
  (void)deterministic; // Unused
5961
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.GetYsqlCatalogConfigRequestPB)
5962
0
  ::google::protobuf::uint32 cached_has_bits = 0;
5963
0
  (void) cached_has_bits;
5964
5965
0
  if (_internal_metadata_.have_unknown_fields()) {
5966
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5967
0
        _internal_metadata_.unknown_fields(), target);
5968
0
  }
5969
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.GetYsqlCatalogConfigRequestPB)
5970
0
  return target;
5971
0
}
5972
5973
0
size_t GetYsqlCatalogConfigRequestPB::ByteSizeLong() const {
5974
// @@protoc_insertion_point(message_byte_size_start:yb.master.GetYsqlCatalogConfigRequestPB)
5975
0
  size_t total_size = 0;
5976
5977
0
  if (_internal_metadata_.have_unknown_fields()) {
5978
0
    total_size +=
5979
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5980
0
        _internal_metadata_.unknown_fields());
5981
0
  }
5982
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
5983
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5984
0
  _cached_size_ = cached_size;
5985
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5986
0
  return total_size;
5987
0
}
5988
5989
0
void GetYsqlCatalogConfigRequestPB::MergeFrom(const ::google::protobuf::Message& from) {
5990
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.GetYsqlCatalogConfigRequestPB)
5991
0
  GOOGLE_DCHECK_NE(&from, this);
5992
0
  const GetYsqlCatalogConfigRequestPB* source =
5993
0
      ::google::protobuf::internal::DynamicCastToGenerated<const GetYsqlCatalogConfigRequestPB>(
5994
0
          &from);
5995
0
  if (source == NULL) {
5996
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.GetYsqlCatalogConfigRequestPB)
5997
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5998
0
  } else {
5999
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.GetYsqlCatalogConfigRequestPB)
6000
0
    MergeFrom(*source);
6001
0
  }
6002
0
}
6003
6004
0
void GetYsqlCatalogConfigRequestPB::MergeFrom(const GetYsqlCatalogConfigRequestPB& from) {
6005
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.GetYsqlCatalogConfigRequestPB)
6006
0
  GOOGLE_DCHECK_NE(&from, this);
6007
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
6008
0
  ::google::protobuf::uint32 cached_has_bits = 0;
6009
0
  (void) cached_has_bits;
6010
6011
0
}
6012
6013
0
void GetYsqlCatalogConfigRequestPB::CopyFrom(const ::google::protobuf::Message& from) {
6014
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.GetYsqlCatalogConfigRequestPB)
6015
0
  if (&from == this) return;
6016
0
  Clear();
6017
0
  MergeFrom(from);
6018
0
}
6019
6020
0
void GetYsqlCatalogConfigRequestPB::CopyFrom(const GetYsqlCatalogConfigRequestPB& from) {
6021
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.GetYsqlCatalogConfigRequestPB)
6022
0
  if (&from == this) return;
6023
0
  Clear();
6024
0
  MergeFrom(from);
6025
0
}
6026
6027
0
bool GetYsqlCatalogConfigRequestPB::IsInitialized() const {
6028
0
  return true;
6029
0
}
6030
6031
0
void GetYsqlCatalogConfigRequestPB::Swap(GetYsqlCatalogConfigRequestPB* other) {
6032
0
  if (other == this) return;
6033
0
  InternalSwap(other);
6034
0
}
6035
0
void GetYsqlCatalogConfigRequestPB::InternalSwap(GetYsqlCatalogConfigRequestPB* other) {
6036
0
  using std::swap;
6037
0
  swap(_has_bits_[0], other->_has_bits_[0]);
6038
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
6039
0
  swap(_cached_size_, other->_cached_size_);
6040
0
}
6041
6042
0
::google::protobuf::Metadata GetYsqlCatalogConfigRequestPB::GetMetadata() const {
6043
0
  protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::protobuf_AssignDescriptorsOnce();
6044
0
  return ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::file_level_metadata[kIndexInFileMessages];
6045
0
}
6046
6047
6048
// ===================================================================
6049
6050
15.8k
void GetYsqlCatalogConfigResponsePB::InitAsDefaultInstance() {
6051
15.8k
  ::yb::master::_GetYsqlCatalogConfigResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::master::MasterErrorPB*>(
6052
15.8k
      ::yb::master::MasterErrorPB::internal_default_instance());
6053
15.8k
}
6054
0
void GetYsqlCatalogConfigResponsePB::clear_error() {
6055
0
  if (error_ != NULL) error_->Clear();
6056
0
  clear_has_error();
6057
0
}
6058
#if !defined(_MSC_VER) || _MSC_VER >= 1900
6059
const int GetYsqlCatalogConfigResponsePB::kErrorFieldNumber;
6060
const int GetYsqlCatalogConfigResponsePB::kVersionFieldNumber;
6061
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
6062
6063
GetYsqlCatalogConfigResponsePB::GetYsqlCatalogConfigResponsePB()
6064
15.8k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
6065
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
6066
0
    ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::InitDefaultsGetYsqlCatalogConfigResponsePB();
6067
0
  }
6068
15.8k
  SharedCtor();
6069
  // @@protoc_insertion_point(constructor:yb.master.GetYsqlCatalogConfigResponsePB)
6070
15.8k
}
6071
GetYsqlCatalogConfigResponsePB::GetYsqlCatalogConfigResponsePB(const GetYsqlCatalogConfigResponsePB& from)
6072
  : ::google::protobuf::Message(),
6073
      _internal_metadata_(NULL),
6074
      _has_bits_(from._has_bits_),
6075
0
      _cached_size_(0) {
6076
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
6077
0
  if (from.has_error()) {
6078
0
    error_ = new ::yb::master::MasterErrorPB(*from.error_);
6079
0
  } else {
6080
0
    error_ = NULL;
6081
0
  }
6082
0
  version_ = from.version_;
6083
  // @@protoc_insertion_point(copy_constructor:yb.master.GetYsqlCatalogConfigResponsePB)
6084
0
}
6085
6086
15.8k
void GetYsqlCatalogConfigResponsePB::SharedCtor() {
6087
15.8k
  _cached_size_ = 0;
6088
15.8k
  ::memset(&error_, 0, static_cast<size_t>(
6089
15.8k
      reinterpret_cast<char*>(&version_) -
6090
15.8k
      reinterpret_cast<char*>(&error_)) + sizeof(version_));
6091
15.8k
}
6092
6093
0
GetYsqlCatalogConfigResponsePB::~GetYsqlCatalogConfigResponsePB() {
6094
  // @@protoc_insertion_point(destructor:yb.master.GetYsqlCatalogConfigResponsePB)
6095
0
  SharedDtor();
6096
0
}
6097
6098
0
void GetYsqlCatalogConfigResponsePB::SharedDtor() {
6099
0
  if (this != internal_default_instance()) delete error_;
6100
0
}
6101
6102
0
void GetYsqlCatalogConfigResponsePB::SetCachedSize(int size) const {
6103
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6104
0
  _cached_size_ = size;
6105
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6106
0
}
6107
0
const ::google::protobuf::Descriptor* GetYsqlCatalogConfigResponsePB::descriptor() {
6108
0
  ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::protobuf_AssignDescriptorsOnce();
6109
0
  return ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
6110
0
}
6111
6112
0
const GetYsqlCatalogConfigResponsePB& GetYsqlCatalogConfigResponsePB::default_instance() {
6113
0
  ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::InitDefaultsGetYsqlCatalogConfigResponsePB();
6114
0
  return *internal_default_instance();
6115
0
}
6116
6117
0
GetYsqlCatalogConfigResponsePB* GetYsqlCatalogConfigResponsePB::New(::google::protobuf::Arena* arena) const {
6118
0
  GetYsqlCatalogConfigResponsePB* n = new GetYsqlCatalogConfigResponsePB;
6119
0
  if (arena != NULL) {
6120
0
    arena->Own(n);
6121
0
  }
6122
0
  return n;
6123
0
}
6124
6125
0
void GetYsqlCatalogConfigResponsePB::Clear() {
6126
// @@protoc_insertion_point(message_clear_start:yb.master.GetYsqlCatalogConfigResponsePB)
6127
0
  ::google::protobuf::uint32 cached_has_bits = 0;
6128
  // Prevent compiler warnings about cached_has_bits being unused
6129
0
  (void) cached_has_bits;
6130
6131
0
  cached_has_bits = _has_bits_[0];
6132
0
  if (cached_has_bits & 0x00000001u) {
6133
0
    GOOGLE_DCHECK(error_ != NULL);
6134
0
    error_->Clear();
6135
0
  }
6136
0
  version_ = GOOGLE_ULONGLONG(0);
6137
0
  _has_bits_.Clear();
6138
0
  _internal_metadata_.Clear();
6139
0
}
6140
6141
bool GetYsqlCatalogConfigResponsePB::MergePartialFromCodedStream(
6142
0
    ::google::protobuf::io::CodedInputStream* input) {
6143
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
6144
0
  ::google::protobuf::uint32 tag;
6145
  // @@protoc_insertion_point(parse_start:yb.master.GetYsqlCatalogConfigResponsePB)
6146
0
  for (;;) {
6147
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
6148
0
    tag = p.first;
6149
0
    if (!p.second) goto handle_unusual;
6150
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6151
      // optional .yb.master.MasterErrorPB error = 1;
6152
0
      case 1: {
6153
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6154
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
6155
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
6156
0
               input, mutable_error()));
6157
0
        } else {
6158
0
          goto handle_unusual;
6159
0
        }
6160
0
        break;
6161
0
      }
6162
6163
      // optional uint64 version = 2;
6164
0
      case 2: {
6165
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6166
0
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
6167
0
          set_has_version();
6168
0
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
6169
0
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
6170
0
                 input, &version_)));
6171
0
        } else {
6172
0
          goto handle_unusual;
6173
0
        }
6174
0
        break;
6175
0
      }
6176
6177
0
      default: {
6178
0
      handle_unusual:
6179
0
        if (tag == 0) {
6180
0
          goto success;
6181
0
        }
6182
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
6183
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
6184
0
        break;
6185
0
      }
6186
0
    }
6187
0
  }
6188
0
success:
6189
  // @@protoc_insertion_point(parse_success:yb.master.GetYsqlCatalogConfigResponsePB)
6190
0
  return true;
6191
0
failure:
6192
  // @@protoc_insertion_point(parse_failure:yb.master.GetYsqlCatalogConfigResponsePB)
6193
0
  return false;
6194
0
#undef DO_
6195
0
}
6196
6197
void GetYsqlCatalogConfigResponsePB::SerializeWithCachedSizes(
6198
0
    ::google::protobuf::io::CodedOutputStream* output) const {
6199
  // @@protoc_insertion_point(serialize_start:yb.master.GetYsqlCatalogConfigResponsePB)
6200
0
  ::google::protobuf::uint32 cached_has_bits = 0;
6201
0
  (void) cached_has_bits;
6202
6203
0
  cached_has_bits = _has_bits_[0];
6204
  // optional .yb.master.MasterErrorPB error = 1;
6205
0
  if (cached_has_bits & 0x00000001u) {
6206
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6207
0
      1, *this->error_, output);
6208
0
  }
6209
6210
  // optional uint64 version = 2;
6211
0
  if (cached_has_bits & 0x00000002u) {
6212
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->version(), output);
6213
0
  }
6214
6215
0
  if (_internal_metadata_.have_unknown_fields()) {
6216
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6217
0
        _internal_metadata_.unknown_fields(), output);
6218
0
  }
6219
  // @@protoc_insertion_point(serialize_end:yb.master.GetYsqlCatalogConfigResponsePB)
6220
0
}
6221
6222
::google::protobuf::uint8* GetYsqlCatalogConfigResponsePB::InternalSerializeWithCachedSizesToArray(
6223
0
    bool deterministic, ::google::protobuf::uint8* target) const {
6224
0
  (void)deterministic; // Unused
6225
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.GetYsqlCatalogConfigResponsePB)
6226
0
  ::google::protobuf::uint32 cached_has_bits = 0;
6227
0
  (void) cached_has_bits;
6228
6229
0
  cached_has_bits = _has_bits_[0];
6230
  // optional .yb.master.MasterErrorPB error = 1;
6231
0
  if (cached_has_bits & 0x00000001u) {
6232
0
    target = ::google::protobuf::internal::WireFormatLite::
6233
0
      InternalWriteMessageToArray(
6234
0
        1, *this->error_, deterministic, target);
6235
0
  }
6236
6237
  // optional uint64 version = 2;
6238
0
  if (cached_has_bits & 0x00000002u) {
6239
0
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->version(), target);
6240
0
  }
6241
6242
0
  if (_internal_metadata_.have_unknown_fields()) {
6243
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6244
0
        _internal_metadata_.unknown_fields(), target);
6245
0
  }
6246
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.GetYsqlCatalogConfigResponsePB)
6247
0
  return target;
6248
0
}
6249
6250
0
size_t GetYsqlCatalogConfigResponsePB::ByteSizeLong() const {
6251
// @@protoc_insertion_point(message_byte_size_start:yb.master.GetYsqlCatalogConfigResponsePB)
6252
0
  size_t total_size = 0;
6253
6254
0
  if (_internal_metadata_.have_unknown_fields()) {
6255
0
    total_size +=
6256
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6257
0
        _internal_metadata_.unknown_fields());
6258
0
  }
6259
0
  if (_has_bits_[0 / 32] & 3u) {
6260
    // optional .yb.master.MasterErrorPB error = 1;
6261
0
    if (has_error()) {
6262
0
      total_size += 1 +
6263
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
6264
0
          *this->error_);
6265
0
    }
6266
6267
    // optional uint64 version = 2;
6268
0
    if (has_version()) {
6269
0
      total_size += 1 +
6270
0
        ::google::protobuf::internal::WireFormatLite::UInt64Size(
6271
0
          this->version());
6272
0
    }
6273
6274
0
  }
6275
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
6276
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6277
0
  _cached_size_ = cached_size;
6278
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6279
0
  return total_size;
6280
0
}
6281
6282
0
void GetYsqlCatalogConfigResponsePB::MergeFrom(const ::google::protobuf::Message& from) {
6283
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.GetYsqlCatalogConfigResponsePB)
6284
0
  GOOGLE_DCHECK_NE(&from, this);
6285
0
  const GetYsqlCatalogConfigResponsePB* source =
6286
0
      ::google::protobuf::internal::DynamicCastToGenerated<const GetYsqlCatalogConfigResponsePB>(
6287
0
          &from);
6288
0
  if (source == NULL) {
6289
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.GetYsqlCatalogConfigResponsePB)
6290
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6291
0
  } else {
6292
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.GetYsqlCatalogConfigResponsePB)
6293
0
    MergeFrom(*source);
6294
0
  }
6295
0
}
6296
6297
0
void GetYsqlCatalogConfigResponsePB::MergeFrom(const GetYsqlCatalogConfigResponsePB& from) {
6298
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.GetYsqlCatalogConfigResponsePB)
6299
0
  GOOGLE_DCHECK_NE(&from, this);
6300
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
6301
0
  ::google::protobuf::uint32 cached_has_bits = 0;
6302
0
  (void) cached_has_bits;
6303
6304
0
  cached_has_bits = from._has_bits_[0];
6305
0
  if (cached_has_bits & 3u) {
6306
0
    if (cached_has_bits & 0x00000001u) {
6307
0
      mutable_error()->::yb::master::MasterErrorPB::MergeFrom(from.error());
6308
0
    }
6309
0
    if (cached_has_bits & 0x00000002u) {
6310
0
      version_ = from.version_;
6311
0
    }
6312
0
    _has_bits_[0] |= cached_has_bits;
6313
0
  }
6314
0
}
6315
6316
0
void GetYsqlCatalogConfigResponsePB::CopyFrom(const ::google::protobuf::Message& from) {
6317
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.GetYsqlCatalogConfigResponsePB)
6318
0
  if (&from == this) return;
6319
0
  Clear();
6320
0
  MergeFrom(from);
6321
0
}
6322
6323
0
void GetYsqlCatalogConfigResponsePB::CopyFrom(const GetYsqlCatalogConfigResponsePB& from) {
6324
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.GetYsqlCatalogConfigResponsePB)
6325
0
  if (&from == this) return;
6326
0
  Clear();
6327
0
  MergeFrom(from);
6328
0
}
6329
6330
0
bool GetYsqlCatalogConfigResponsePB::IsInitialized() const {
6331
0
  if (has_error()) {
6332
0
    if (!this->error_->IsInitialized()) return false;
6333
0
  }
6334
0
  return true;
6335
0
}
6336
6337
0
void GetYsqlCatalogConfigResponsePB::Swap(GetYsqlCatalogConfigResponsePB* other) {
6338
0
  if (other == this) return;
6339
0
  InternalSwap(other);
6340
0
}
6341
0
void GetYsqlCatalogConfigResponsePB::InternalSwap(GetYsqlCatalogConfigResponsePB* other) {
6342
0
  using std::swap;
6343
0
  swap(error_, other->error_);
6344
0
  swap(version_, other->version_);
6345
0
  swap(_has_bits_[0], other->_has_bits_[0]);
6346
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
6347
0
  swap(_cached_size_, other->_cached_size_);
6348
0
}
6349
6350
0
::google::protobuf::Metadata GetYsqlCatalogConfigResponsePB::GetMetadata() const {
6351
0
  protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::protobuf_AssignDescriptorsOnce();
6352
0
  return ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::file_level_metadata[kIndexInFileMessages];
6353
0
}
6354
6355
6356
// ===================================================================
6357
6358
15.8k
void RedisConfigSetRequestPB::InitAsDefaultInstance() {
6359
15.8k
}
6360
#if !defined(_MSC_VER) || _MSC_VER >= 1900
6361
const int RedisConfigSetRequestPB::kKeywordFieldNumber;
6362
const int RedisConfigSetRequestPB::kArgsFieldNumber;
6363
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
6364
6365
RedisConfigSetRequestPB::RedisConfigSetRequestPB()
6366
15.8k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
6367
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
6368
0
    ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::InitDefaultsRedisConfigSetRequestPB();
6369
0
  }
6370
15.8k
  SharedCtor();
6371
  // @@protoc_insertion_point(constructor:yb.master.RedisConfigSetRequestPB)
6372
15.8k
}
6373
RedisConfigSetRequestPB::RedisConfigSetRequestPB(const RedisConfigSetRequestPB& from)
6374
  : ::google::protobuf::Message(),
6375
      _internal_metadata_(NULL),
6376
      _has_bits_(from._has_bits_),
6377
      _cached_size_(0),
6378
0
      args_(from.args_) {
6379
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
6380
0
  keyword_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6381
0
  if (from.has_keyword()) {
6382
0
    keyword_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.keyword_);
6383
0
  }
6384
  // @@protoc_insertion_point(copy_constructor:yb.master.RedisConfigSetRequestPB)
6385
0
}
6386
6387
15.8k
void RedisConfigSetRequestPB::SharedCtor() {
6388
15.8k
  _cached_size_ = 0;
6389
15.8k
  keyword_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6390
15.8k
}
6391
6392
0
RedisConfigSetRequestPB::~RedisConfigSetRequestPB() {
6393
  // @@protoc_insertion_point(destructor:yb.master.RedisConfigSetRequestPB)
6394
0
  SharedDtor();
6395
0
}
6396
6397
0
void RedisConfigSetRequestPB::SharedDtor() {
6398
0
  keyword_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6399
0
}
6400
6401
0
void RedisConfigSetRequestPB::SetCachedSize(int size) const {
6402
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6403
0
  _cached_size_ = size;
6404
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6405
0
}
6406
0
const ::google::protobuf::Descriptor* RedisConfigSetRequestPB::descriptor() {
6407
0
  ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::protobuf_AssignDescriptorsOnce();
6408
0
  return ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
6409
0
}
6410
6411
0
const RedisConfigSetRequestPB& RedisConfigSetRequestPB::default_instance() {
6412
0
  ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::InitDefaultsRedisConfigSetRequestPB();
6413
0
  return *internal_default_instance();
6414
0
}
6415
6416
0
RedisConfigSetRequestPB* RedisConfigSetRequestPB::New(::google::protobuf::Arena* arena) const {
6417
0
  RedisConfigSetRequestPB* n = new RedisConfigSetRequestPB;
6418
0
  if (arena != NULL) {
6419
0
    arena->Own(n);
6420
0
  }
6421
0
  return n;
6422
0
}
6423
6424
0
void RedisConfigSetRequestPB::Clear() {
6425
// @@protoc_insertion_point(message_clear_start:yb.master.RedisConfigSetRequestPB)
6426
0
  ::google::protobuf::uint32 cached_has_bits = 0;
6427
  // Prevent compiler warnings about cached_has_bits being unused
6428
0
  (void) cached_has_bits;
6429
6430
0
  args_.Clear();
6431
0
  cached_has_bits = _has_bits_[0];
6432
0
  if (cached_has_bits & 0x00000001u) {
6433
0
    GOOGLE_DCHECK(!keyword_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
6434
0
    (*keyword_.UnsafeRawStringPointer())->clear();
6435
0
  }
6436
0
  _has_bits_.Clear();
6437
0
  _internal_metadata_.Clear();
6438
0
}
6439
6440
bool RedisConfigSetRequestPB::MergePartialFromCodedStream(
6441
0
    ::google::protobuf::io::CodedInputStream* input) {
6442
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
6443
0
  ::google::protobuf::uint32 tag;
6444
  // @@protoc_insertion_point(parse_start:yb.master.RedisConfigSetRequestPB)
6445
0
  for (;;) {
6446
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
6447
0
    tag = p.first;
6448
0
    if (!p.second) goto handle_unusual;
6449
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6450
      // optional string keyword = 1;
6451
0
      case 1: {
6452
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6453
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
6454
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
6455
0
                input, this->mutable_keyword()));
6456
0
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6457
0
            this->keyword().data(), static_cast<int>(this->keyword().length()),
6458
0
            ::google::protobuf::internal::WireFormat::PARSE,
6459
0
            "yb.master.RedisConfigSetRequestPB.keyword");
6460
0
        } else {
6461
0
          goto handle_unusual;
6462
0
        }
6463
0
        break;
6464
0
      }
6465
6466
      // repeated bytes args = 2;
6467
0
      case 2: {
6468
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6469
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
6470
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
6471
0
                input, this->add_args()));
6472
0
        } else {
6473
0
          goto handle_unusual;
6474
0
        }
6475
0
        break;
6476
0
      }
6477
6478
0
      default: {
6479
0
      handle_unusual:
6480
0
        if (tag == 0) {
6481
0
          goto success;
6482
0
        }
6483
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
6484
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
6485
0
        break;
6486
0
      }
6487
0
    }
6488
0
  }
6489
0
success:
6490
  // @@protoc_insertion_point(parse_success:yb.master.RedisConfigSetRequestPB)
6491
0
  return true;
6492
0
failure:
6493
  // @@protoc_insertion_point(parse_failure:yb.master.RedisConfigSetRequestPB)
6494
0
  return false;
6495
0
#undef DO_
6496
0
}
6497
6498
void RedisConfigSetRequestPB::SerializeWithCachedSizes(
6499
0
    ::google::protobuf::io::CodedOutputStream* output) const {
6500
  // @@protoc_insertion_point(serialize_start:yb.master.RedisConfigSetRequestPB)
6501
0
  ::google::protobuf::uint32 cached_has_bits = 0;
6502
0
  (void) cached_has_bits;
6503
6504
0
  cached_has_bits = _has_bits_[0];
6505
  // optional string keyword = 1;
6506
0
  if (cached_has_bits & 0x00000001u) {
6507
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6508
0
      this->keyword().data(), static_cast<int>(this->keyword().length()),
6509
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
6510
0
      "yb.master.RedisConfigSetRequestPB.keyword");
6511
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
6512
0
      1, this->keyword(), output);
6513
0
  }
6514
6515
  // repeated bytes args = 2;
6516
0
  for (int i = 0, n = this->args_size(); i < n; i++) {
6517
0
    ::google::protobuf::internal::WireFormatLite::WriteBytes(
6518
0
      2, this->args(i), output);
6519
0
  }
6520
6521
0
  if (_internal_metadata_.have_unknown_fields()) {
6522
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6523
0
        _internal_metadata_.unknown_fields(), output);
6524
0
  }
6525
  // @@protoc_insertion_point(serialize_end:yb.master.RedisConfigSetRequestPB)
6526
0
}
6527
6528
::google::protobuf::uint8* RedisConfigSetRequestPB::InternalSerializeWithCachedSizesToArray(
6529
0
    bool deterministic, ::google::protobuf::uint8* target) const {
6530
0
  (void)deterministic; // Unused
6531
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.RedisConfigSetRequestPB)
6532
0
  ::google::protobuf::uint32 cached_has_bits = 0;
6533
0
  (void) cached_has_bits;
6534
6535
0
  cached_has_bits = _has_bits_[0];
6536
  // optional string keyword = 1;
6537
0
  if (cached_has_bits & 0x00000001u) {
6538
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
6539
0
      this->keyword().data(), static_cast<int>(this->keyword().length()),
6540
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
6541
0
      "yb.master.RedisConfigSetRequestPB.keyword");
6542
0
    target =
6543
0
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
6544
0
        1, this->keyword(), target);
6545
0
  }
6546
6547
  // repeated bytes args = 2;
6548
0
  for (int i = 0, n = this->args_size(); i < n; i++) {
6549
0
    target = ::google::protobuf::internal::WireFormatLite::
6550
0
      WriteBytesToArray(2, this->args(i), target);
6551
0
  }
6552
6553
0
  if (_internal_metadata_.have_unknown_fields()) {
6554
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6555
0
        _internal_metadata_.unknown_fields(), target);
6556
0
  }
6557
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.RedisConfigSetRequestPB)
6558
0
  return target;
6559
0
}
6560
6561
0
size_t RedisConfigSetRequestPB::ByteSizeLong() const {
6562
// @@protoc_insertion_point(message_byte_size_start:yb.master.RedisConfigSetRequestPB)
6563
0
  size_t total_size = 0;
6564
6565
0
  if (_internal_metadata_.have_unknown_fields()) {
6566
0
    total_size +=
6567
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6568
0
        _internal_metadata_.unknown_fields());
6569
0
  }
6570
  // repeated bytes args = 2;
6571
0
  total_size += 1 *
6572
0
      ::google::protobuf::internal::FromIntSize(this->args_size());
6573
0
  for (int i = 0, n = this->args_size(); i < n; i++) {
6574
0
    total_size += ::google::protobuf::internal::WireFormatLite::BytesSize(
6575
0
      this->args(i));
6576
0
  }
6577
6578
  // optional string keyword = 1;
6579
0
  if (has_keyword()) {
6580
0
    total_size += 1 +
6581
0
      ::google::protobuf::internal::WireFormatLite::StringSize(
6582
0
        this->keyword());
6583
0
  }
6584
6585
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
6586
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6587
0
  _cached_size_ = cached_size;
6588
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6589
0
  return total_size;
6590
0
}
6591
6592
0
void RedisConfigSetRequestPB::MergeFrom(const ::google::protobuf::Message& from) {
6593
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.RedisConfigSetRequestPB)
6594
0
  GOOGLE_DCHECK_NE(&from, this);
6595
0
  const RedisConfigSetRequestPB* source =
6596
0
      ::google::protobuf::internal::DynamicCastToGenerated<const RedisConfigSetRequestPB>(
6597
0
          &from);
6598
0
  if (source == NULL) {
6599
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.RedisConfigSetRequestPB)
6600
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6601
0
  } else {
6602
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.RedisConfigSetRequestPB)
6603
0
    MergeFrom(*source);
6604
0
  }
6605
0
}
6606
6607
0
void RedisConfigSetRequestPB::MergeFrom(const RedisConfigSetRequestPB& from) {
6608
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.RedisConfigSetRequestPB)
6609
0
  GOOGLE_DCHECK_NE(&from, this);
6610
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
6611
0
  ::google::protobuf::uint32 cached_has_bits = 0;
6612
0
  (void) cached_has_bits;
6613
6614
0
  args_.MergeFrom(from.args_);
6615
0
  if (from.has_keyword()) {
6616
0
    set_has_keyword();
6617
0
    keyword_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.keyword_);
6618
0
  }
6619
0
}
6620
6621
0
void RedisConfigSetRequestPB::CopyFrom(const ::google::protobuf::Message& from) {
6622
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.RedisConfigSetRequestPB)
6623
0
  if (&from == this) return;
6624
0
  Clear();
6625
0
  MergeFrom(from);
6626
0
}
6627
6628
0
void RedisConfigSetRequestPB::CopyFrom(const RedisConfigSetRequestPB& from) {
6629
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.RedisConfigSetRequestPB)
6630
0
  if (&from == this) return;
6631
0
  Clear();
6632
0
  MergeFrom(from);
6633
0
}
6634
6635
0
bool RedisConfigSetRequestPB::IsInitialized() const {
6636
0
  return true;
6637
0
}
6638
6639
0
void RedisConfigSetRequestPB::Swap(RedisConfigSetRequestPB* other) {
6640
0
  if (other == this) return;
6641
0
  InternalSwap(other);
6642
0
}
6643
0
void RedisConfigSetRequestPB::InternalSwap(RedisConfigSetRequestPB* other) {
6644
0
  using std::swap;
6645
0
  args_.InternalSwap(&other->args_);
6646
0
  keyword_.Swap(&other->keyword_);
6647
0
  swap(_has_bits_[0], other->_has_bits_[0]);
6648
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
6649
0
  swap(_cached_size_, other->_cached_size_);
6650
0
}
6651
6652
0
::google::protobuf::Metadata RedisConfigSetRequestPB::GetMetadata() const {
6653
0
  protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::protobuf_AssignDescriptorsOnce();
6654
0
  return ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::file_level_metadata[kIndexInFileMessages];
6655
0
}
6656
6657
6658
// ===================================================================
6659
6660
15.8k
void RedisConfigSetResponsePB::InitAsDefaultInstance() {
6661
15.8k
  ::yb::master::_RedisConfigSetResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::master::MasterErrorPB*>(
6662
15.8k
      ::yb::master::MasterErrorPB::internal_default_instance());
6663
15.8k
}
6664
0
void RedisConfigSetResponsePB::clear_error() {
6665
0
  if (error_ != NULL) error_->Clear();
6666
0
  clear_has_error();
6667
0
}
6668
#if !defined(_MSC_VER) || _MSC_VER >= 1900
6669
const int RedisConfigSetResponsePB::kErrorFieldNumber;
6670
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
6671
6672
RedisConfigSetResponsePB::RedisConfigSetResponsePB()
6673
15.8k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
6674
0
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
6675
0
    ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::InitDefaultsRedisConfigSetResponsePB();
6676
0
  }
6677
15.8k
  SharedCtor();
6678
  // @@protoc_insertion_point(constructor:yb.master.RedisConfigSetResponsePB)
6679
15.8k
}
6680
RedisConfigSetResponsePB::RedisConfigSetResponsePB(const RedisConfigSetResponsePB& from)
6681
  : ::google::protobuf::Message(),
6682
      _internal_metadata_(NULL),
6683
      _has_bits_(from._has_bits_),
6684
0
      _cached_size_(0) {
6685
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
6686
0
  if (from.has_error()) {
6687
0
    error_ = new ::yb::master::MasterErrorPB(*from.error_);
6688
0
  } else {
6689
0
    error_ = NULL;
6690
0
  }
6691
  // @@protoc_insertion_point(copy_constructor:yb.master.RedisConfigSetResponsePB)
6692
0
}
6693
6694
15.8k
void RedisConfigSetResponsePB::SharedCtor() {
6695
15.8k
  _cached_size_ = 0;
6696
15.8k
  error_ = NULL;
6697
15.8k
}
6698
6699
0
RedisConfigSetResponsePB::~RedisConfigSetResponsePB() {
6700
  // @@protoc_insertion_point(destructor:yb.master.RedisConfigSetResponsePB)
6701
0
  SharedDtor();
6702
0
}
6703
6704
0
void RedisConfigSetResponsePB::SharedDtor() {
6705
0
  if (this != internal_default_instance()) delete error_;
6706
0
}
6707
6708
0
void RedisConfigSetResponsePB::SetCachedSize(int size) const {
6709
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6710
0
  _cached_size_ = size;
6711
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6712
0
}
6713
0
const ::google::protobuf::Descriptor* RedisConfigSetResponsePB::descriptor() {
6714
0
  ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::protobuf_AssignDescriptorsOnce();
6715
0
  return ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
6716
0
}
6717
6718
0
const RedisConfigSetResponsePB& RedisConfigSetResponsePB::default_instance() {
6719
0
  ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::InitDefaultsRedisConfigSetResponsePB();
6720
0
  return *internal_default_instance();
6721
0
}
6722
6723
0
RedisConfigSetResponsePB* RedisConfigSetResponsePB::New(::google::protobuf::Arena* arena) const {
6724
0
  RedisConfigSetResponsePB* n = new RedisConfigSetResponsePB;
6725
0
  if (arena != NULL) {
6726
0
    arena->Own(n);
6727
0
  }
6728
0
  return n;
6729
0
}
6730
6731
0
void RedisConfigSetResponsePB::Clear() {
6732
// @@protoc_insertion_point(message_clear_start:yb.master.RedisConfigSetResponsePB)
6733
0
  ::google::protobuf::uint32 cached_has_bits = 0;
6734
  // Prevent compiler warnings about cached_has_bits being unused
6735
0
  (void) cached_has_bits;
6736
6737
0
  cached_has_bits = _has_bits_[0];
6738
0
  if (cached_has_bits & 0x00000001u) {
6739
0
    GOOGLE_DCHECK(error_ != NULL);
6740
0
    error_->Clear();
6741
0
  }
6742
0
  _has_bits_.Clear();
6743
0
  _internal_metadata_.Clear();
6744
0
}
6745
6746
bool RedisConfigSetResponsePB::MergePartialFromCodedStream(
6747
0
    ::google::protobuf::io::CodedInputStream* input) {
6748
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
6749
0
  ::google::protobuf::uint32 tag;
6750
  // @@protoc_insertion_point(parse_start:yb.master.RedisConfigSetResponsePB)
6751
0
  for (;;) {
6752
0
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
6753
0
    tag = p.first;
6754
0
    if (!p.second) goto handle_unusual;
6755
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
6756
      // optional .yb.master.MasterErrorPB error = 1;
6757
0
      case 1: {
6758
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
6759
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
6760
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
6761
0
               input, mutable_error()));
6762
0
        } else {
6763
0
          goto handle_unusual;
6764
0
        }
6765
0
        break;
6766
0
      }
6767
6768
0
      default: {
6769
0
      handle_unusual:
6770
0
        if (tag == 0) {
6771
0
          goto success;
6772
0
        }
6773
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
6774
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
6775
0
        break;
6776
0
      }
6777
0
    }
6778
0
  }
6779
0
success:
6780
  // @@protoc_insertion_point(parse_success:yb.master.RedisConfigSetResponsePB)
6781
0
  return true;
6782
0
failure:
6783
  // @@protoc_insertion_point(parse_failure:yb.master.RedisConfigSetResponsePB)
6784
0
  return false;
6785
0
#undef DO_
6786
0
}
6787
6788
void RedisConfigSetResponsePB::SerializeWithCachedSizes(
6789
0
    ::google::protobuf::io::CodedOutputStream* output) const {
6790
  // @@protoc_insertion_point(serialize_start:yb.master.RedisConfigSetResponsePB)
6791
0
  ::google::protobuf::uint32 cached_has_bits = 0;
6792
0
  (void) cached_has_bits;
6793
6794
0
  cached_has_bits = _has_bits_[0];
6795
  // optional .yb.master.MasterErrorPB error = 1;
6796
0
  if (cached_has_bits & 0x00000001u) {
6797
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
6798
0
      1, *this->error_, output);
6799
0
  }
6800
6801
0
  if (_internal_metadata_.have_unknown_fields()) {
6802
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
6803
0
        _internal_metadata_.unknown_fields(), output);
6804
0
  }
6805
  // @@protoc_insertion_point(serialize_end:yb.master.RedisConfigSetResponsePB)
6806
0
}
6807
6808
::google::protobuf::uint8* RedisConfigSetResponsePB::InternalSerializeWithCachedSizesToArray(
6809
0
    bool deterministic, ::google::protobuf::uint8* target) const {
6810
0
  (void)deterministic; // Unused
6811
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.RedisConfigSetResponsePB)
6812
0
  ::google::protobuf::uint32 cached_has_bits = 0;
6813
0
  (void) cached_has_bits;
6814
6815
0
  cached_has_bits = _has_bits_[0];
6816
  // optional .yb.master.MasterErrorPB error = 1;
6817
0
  if (cached_has_bits & 0x00000001u) {
6818
0
    target = ::google::protobuf::internal::WireFormatLite::
6819
0
      InternalWriteMessageToArray(
6820
0
        1, *this->error_, deterministic, target);
6821
0
  }
6822
6823
0
  if (_internal_metadata_.have_unknown_fields()) {
6824
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
6825
0
        _internal_metadata_.unknown_fields(), target);
6826
0
  }
6827
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.RedisConfigSetResponsePB)
6828
0
  return target;
6829
0
}
6830
6831
0
size_t RedisConfigSetResponsePB::ByteSizeLong() const {
6832
// @@protoc_insertion_point(message_byte_size_start:yb.master.RedisConfigSetResponsePB)
6833
0
  size_t total_size = 0;
6834
6835
0
  if (_internal_metadata_.have_unknown_fields()) {
6836
0
    total_size +=
6837
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
6838
0
        _internal_metadata_.unknown_fields());
6839
0
  }
6840
  // optional .yb.master.MasterErrorPB error = 1;
6841
0
  if (has_error()) {
6842
0
    total_size += 1 +
6843
0
      ::google::protobuf::internal::WireFormatLite::MessageSize(
6844
0
        *this->error_);
6845
0
  }
6846
6847
0
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
6848
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6849
0
  _cached_size_ = cached_size;
6850
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6851
0
  return total_size;
6852
0
}
6853
6854
0
void RedisConfigSetResponsePB::MergeFrom(const ::google::protobuf::Message& from) {
6855
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.RedisConfigSetResponsePB)
6856
0
  GOOGLE_DCHECK_NE(&from, this);
6857
0
  const RedisConfigSetResponsePB* source =
6858
0
      ::google::protobuf::internal::DynamicCastToGenerated<const RedisConfigSetResponsePB>(
6859
0
          &from);
6860
0
  if (source == NULL) {
6861
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.RedisConfigSetResponsePB)
6862
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
6863
0
  } else {
6864
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.RedisConfigSetResponsePB)
6865
0
    MergeFrom(*source);
6866
0
  }
6867
0
}
6868
6869
0
void RedisConfigSetResponsePB::MergeFrom(const RedisConfigSetResponsePB& from) {
6870
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.RedisConfigSetResponsePB)
6871
0
  GOOGLE_DCHECK_NE(&from, this);
6872
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
6873
0
  ::google::protobuf::uint32 cached_has_bits = 0;
6874
0
  (void) cached_has_bits;
6875
6876
0
  if (from.has_error()) {
6877
0
    mutable_error()->::yb::master::MasterErrorPB::MergeFrom(from.error());
6878
0
  }
6879
0
}
6880
6881
0
void RedisConfigSetResponsePB::CopyFrom(const ::google::protobuf::Message& from) {
6882
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.RedisConfigSetResponsePB)
6883
0
  if (&from == this) return;
6884
0
  Clear();
6885
0
  MergeFrom(from);
6886
0
}
6887
6888
0
void RedisConfigSetResponsePB::CopyFrom(const RedisConfigSetResponsePB& from) {
6889
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.RedisConfigSetResponsePB)
6890
0
  if (&from == this) return;
6891
0
  Clear();
6892
0
  MergeFrom(from);
6893
0
}
6894
6895
0
bool RedisConfigSetResponsePB::IsInitialized() const {
6896
0
  if (has_error()) {
6897
0
    if (!this->error_->IsInitialized()) return false;
6898
0
  }
6899
0
  return true;
6900
0
}
6901
6902
0
void RedisConfigSetResponsePB::Swap(RedisConfigSetResponsePB* other) {
6903
0
  if (other == this) return;
6904
0
  InternalSwap(other);
6905
0
}
6906
0
void RedisConfigSetResponsePB::InternalSwap(RedisConfigSetResponsePB* other) {
6907
0
  using std::swap;
6908
0
  swap(error_, other->error_);
6909
0
  swap(_has_bits_[0], other->_has_bits_[0]);
6910
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
6911
0
  swap(_cached_size_, other->_cached_size_);
6912
0
}
6913
6914
0
::google::protobuf::Metadata RedisConfigSetResponsePB::GetMetadata() const {
6915
0
  protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::protobuf_AssignDescriptorsOnce();
6916
0
  return ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::file_level_metadata[kIndexInFileMessages];
6917
0
}
6918
6919
6920
// ===================================================================
6921
6922
15.8k
void RedisConfigGetRequestPB::InitAsDefaultInstance() {
6923
15.8k
}
6924
#if !defined(_MSC_VER) || _MSC_VER >= 1900
6925
const int RedisConfigGetRequestPB::kKeywordFieldNumber;
6926
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
6927
6928
RedisConfigGetRequestPB::RedisConfigGetRequestPB()
6929
16.4k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
6930
582
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
6931
582
    ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::InitDefaultsRedisConfigGetRequestPB();
6932
582
  }
6933
16.4k
  SharedCtor();
6934
  // @@protoc_insertion_point(constructor:yb.master.RedisConfigGetRequestPB)
6935
16.4k
}
6936
RedisConfigGetRequestPB::RedisConfigGetRequestPB(const RedisConfigGetRequestPB& from)
6937
  : ::google::protobuf::Message(),
6938
      _internal_metadata_(NULL),
6939
      _has_bits_(from._has_bits_),
6940
0
      _cached_size_(0) {
6941
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
6942
0
  keyword_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6943
0
  if (from.has_keyword()) {
6944
0
    keyword_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.keyword_);
6945
0
  }
6946
  // @@protoc_insertion_point(copy_constructor:yb.master.RedisConfigGetRequestPB)
6947
0
}
6948
6949
16.4k
void RedisConfigGetRequestPB::SharedCtor() {
6950
16.4k
  _cached_size_ = 0;
6951
16.4k
  keyword_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6952
16.4k
}
6953
6954
582
RedisConfigGetRequestPB::~RedisConfigGetRequestPB() {
6955
  // @@protoc_insertion_point(destructor:yb.master.RedisConfigGetRequestPB)
6956
582
  SharedDtor();
6957
582
}
6958
6959
582
void RedisConfigGetRequestPB::SharedDtor() {
6960
582
  keyword_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
6961
582
}
6962
6963
0
void RedisConfigGetRequestPB::SetCachedSize(int size) const {
6964
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
6965
0
  _cached_size_ = size;
6966
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
6967
0
}
6968
0
const ::google::protobuf::Descriptor* RedisConfigGetRequestPB::descriptor() {
6969
0
  ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::protobuf_AssignDescriptorsOnce();
6970
0
  return ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
6971
0
}
6972
6973
0
const RedisConfigGetRequestPB& RedisConfigGetRequestPB::default_instance() {
6974
0
  ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::InitDefaultsRedisConfigGetRequestPB();
6975
0
  return *internal_default_instance();
6976
0
}
6977
6978
0
RedisConfigGetRequestPB* RedisConfigGetRequestPB::New(::google::protobuf::Arena* arena) const {
6979
0
  RedisConfigGetRequestPB* n = new RedisConfigGetRequestPB;
6980
0
  if (arena != NULL) {
6981
0
    arena->Own(n);
6982
0
  }
6983
0
  return n;
6984
0
}
6985
6986
291
void RedisConfigGetRequestPB::Clear() {
6987
// @@protoc_insertion_point(message_clear_start:yb.master.RedisConfigGetRequestPB)
6988
291
  ::google::protobuf::uint32 cached_has_bits = 0;
6989
  // Prevent compiler warnings about cached_has_bits being unused
6990
291
  (void) cached_has_bits;
6991
6992
291
  cached_has_bits = _has_bits_[0];
6993
291
  if (cached_has_bits & 0x00000001u) {
6994
0
    GOOGLE_DCHECK(!keyword_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
6995
0
    (*keyword_.UnsafeRawStringPointer())->clear();
6996
0
  }
6997
291
  _has_bits_.Clear();
6998
291
  _internal_metadata_.Clear();
6999
291
}
7000
7001
bool RedisConfigGetRequestPB::MergePartialFromCodedStream(
7002
291
    ::google::protobuf::io::CodedInputStream* input) {
7003
291
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
7004
291
  ::google::protobuf::uint32 tag;
7005
  // @@protoc_insertion_point(parse_start:yb.master.RedisConfigGetRequestPB)
7006
582
  for (;;) {
7007
582
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
7008
582
    tag = p.first;
7009
582
    if (!p.second) goto handle_unusual;
7010
291
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7011
      // optional string keyword = 1;
7012
291
      case 1: {
7013
291
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7014
291
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
7015
291
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7016
291
                input, this->mutable_keyword()));
7017
291
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7018
291
            this->keyword().data(), static_cast<int>(this->keyword().length()),
7019
291
            ::google::protobuf::internal::WireFormat::PARSE,
7020
291
            "yb.master.RedisConfigGetRequestPB.keyword");
7021
0
        } else {
7022
0
          goto handle_unusual;
7023
0
        }
7024
291
        break;
7025
291
      }
7026
7027
0
      default: {
7028
291
      handle_unusual:
7029
291
        if (tag == 0) {
7030
291
          goto success;
7031
291
        }
7032
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
7033
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
7034
0
        break;
7035
0
      }
7036
291
    }
7037
291
  }
7038
291
success:
7039
  // @@protoc_insertion_point(parse_success:yb.master.RedisConfigGetRequestPB)
7040
291
  return true;
7041
0
failure:
7042
  // @@protoc_insertion_point(parse_failure:yb.master.RedisConfigGetRequestPB)
7043
0
  return false;
7044
291
#undef DO_
7045
291
}
7046
7047
void RedisConfigGetRequestPB::SerializeWithCachedSizes(
7048
0
    ::google::protobuf::io::CodedOutputStream* output) const {
7049
  // @@protoc_insertion_point(serialize_start:yb.master.RedisConfigGetRequestPB)
7050
0
  ::google::protobuf::uint32 cached_has_bits = 0;
7051
0
  (void) cached_has_bits;
7052
7053
0
  cached_has_bits = _has_bits_[0];
7054
  // optional string keyword = 1;
7055
0
  if (cached_has_bits & 0x00000001u) {
7056
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7057
0
      this->keyword().data(), static_cast<int>(this->keyword().length()),
7058
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
7059
0
      "yb.master.RedisConfigGetRequestPB.keyword");
7060
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
7061
0
      1, this->keyword(), output);
7062
0
  }
7063
7064
0
  if (_internal_metadata_.have_unknown_fields()) {
7065
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
7066
0
        _internal_metadata_.unknown_fields(), output);
7067
0
  }
7068
  // @@protoc_insertion_point(serialize_end:yb.master.RedisConfigGetRequestPB)
7069
0
}
7070
7071
::google::protobuf::uint8* RedisConfigGetRequestPB::InternalSerializeWithCachedSizesToArray(
7072
291
    bool deterministic, ::google::protobuf::uint8* target) const {
7073
291
  (void)deterministic; // Unused
7074
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.RedisConfigGetRequestPB)
7075
291
  ::google::protobuf::uint32 cached_has_bits = 0;
7076
291
  (void) cached_has_bits;
7077
7078
291
  cached_has_bits = _has_bits_[0];
7079
  // optional string keyword = 1;
7080
291
  if (cached_has_bits & 0x00000001u) {
7081
291
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7082
291
      this->keyword().data(), static_cast<int>(this->keyword().length()),
7083
291
      ::google::protobuf::internal::WireFormat::SERIALIZE,
7084
291
      "yb.master.RedisConfigGetRequestPB.keyword");
7085
291
    target =
7086
291
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7087
291
        1, this->keyword(), target);
7088
291
  }
7089
7090
291
  if (_internal_metadata_.have_unknown_fields()) {
7091
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
7092
0
        _internal_metadata_.unknown_fields(), target);
7093
0
  }
7094
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.RedisConfigGetRequestPB)
7095
291
  return target;
7096
291
}
7097
7098
582
size_t RedisConfigGetRequestPB::ByteSizeLong() const {
7099
// @@protoc_insertion_point(message_byte_size_start:yb.master.RedisConfigGetRequestPB)
7100
582
  size_t total_size = 0;
7101
7102
582
  if (_internal_metadata_.have_unknown_fields()) {
7103
0
    total_size +=
7104
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
7105
0
        _internal_metadata_.unknown_fields());
7106
0
  }
7107
  // optional string keyword = 1;
7108
582
  if (has_keyword()) {
7109
582
    total_size += 1 +
7110
582
      ::google::protobuf::internal::WireFormatLite::StringSize(
7111
582
        this->keyword());
7112
582
  }
7113
7114
582
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
7115
582
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7116
582
  _cached_size_ = cached_size;
7117
582
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
7118
582
  return total_size;
7119
582
}
7120
7121
0
void RedisConfigGetRequestPB::MergeFrom(const ::google::protobuf::Message& from) {
7122
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.RedisConfigGetRequestPB)
7123
0
  GOOGLE_DCHECK_NE(&from, this);
7124
0
  const RedisConfigGetRequestPB* source =
7125
0
      ::google::protobuf::internal::DynamicCastToGenerated<const RedisConfigGetRequestPB>(
7126
0
          &from);
7127
0
  if (source == NULL) {
7128
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.RedisConfigGetRequestPB)
7129
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
7130
0
  } else {
7131
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.RedisConfigGetRequestPB)
7132
0
    MergeFrom(*source);
7133
0
  }
7134
0
}
7135
7136
0
void RedisConfigGetRequestPB::MergeFrom(const RedisConfigGetRequestPB& from) {
7137
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.RedisConfigGetRequestPB)
7138
0
  GOOGLE_DCHECK_NE(&from, this);
7139
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
7140
0
  ::google::protobuf::uint32 cached_has_bits = 0;
7141
0
  (void) cached_has_bits;
7142
7143
0
  if (from.has_keyword()) {
7144
0
    set_has_keyword();
7145
0
    keyword_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.keyword_);
7146
0
  }
7147
0
}
7148
7149
0
void RedisConfigGetRequestPB::CopyFrom(const ::google::protobuf::Message& from) {
7150
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.RedisConfigGetRequestPB)
7151
0
  if (&from == this) return;
7152
0
  Clear();
7153
0
  MergeFrom(from);
7154
0
}
7155
7156
0
void RedisConfigGetRequestPB::CopyFrom(const RedisConfigGetRequestPB& from) {
7157
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.RedisConfigGetRequestPB)
7158
0
  if (&from == this) return;
7159
0
  Clear();
7160
0
  MergeFrom(from);
7161
0
}
7162
7163
582
bool RedisConfigGetRequestPB::IsInitialized() const {
7164
582
  return true;
7165
582
}
7166
7167
0
void RedisConfigGetRequestPB::Swap(RedisConfigGetRequestPB* other) {
7168
0
  if (other == this) return;
7169
0
  InternalSwap(other);
7170
0
}
7171
0
void RedisConfigGetRequestPB::InternalSwap(RedisConfigGetRequestPB* other) {
7172
0
  using std::swap;
7173
0
  keyword_.Swap(&other->keyword_);
7174
0
  swap(_has_bits_[0], other->_has_bits_[0]);
7175
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
7176
0
  swap(_cached_size_, other->_cached_size_);
7177
0
}
7178
7179
291
::google::protobuf::Metadata RedisConfigGetRequestPB::GetMetadata() const {
7180
291
  protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::protobuf_AssignDescriptorsOnce();
7181
291
  return ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::file_level_metadata[kIndexInFileMessages];
7182
291
}
7183
7184
7185
// ===================================================================
7186
7187
15.8k
void RedisConfigGetResponsePB::InitAsDefaultInstance() {
7188
15.8k
  ::yb::master::_RedisConfigGetResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::master::MasterErrorPB*>(
7189
15.8k
      ::yb::master::MasterErrorPB::internal_default_instance());
7190
15.8k
}
7191
0
void RedisConfigGetResponsePB::clear_error() {
7192
0
  if (error_ != NULL) error_->Clear();
7193
0
  clear_has_error();
7194
0
}
7195
#if !defined(_MSC_VER) || _MSC_VER >= 1900
7196
const int RedisConfigGetResponsePB::kKeywordFieldNumber;
7197
const int RedisConfigGetResponsePB::kArgsFieldNumber;
7198
const int RedisConfigGetResponsePB::kErrorFieldNumber;
7199
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
7200
7201
RedisConfigGetResponsePB::RedisConfigGetResponsePB()
7202
16.4k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
7203
582
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
7204
582
    ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::InitDefaultsRedisConfigGetResponsePB();
7205
582
  }
7206
16.4k
  SharedCtor();
7207
  // @@protoc_insertion_point(constructor:yb.master.RedisConfigGetResponsePB)
7208
16.4k
}
7209
RedisConfigGetResponsePB::RedisConfigGetResponsePB(const RedisConfigGetResponsePB& from)
7210
  : ::google::protobuf::Message(),
7211
      _internal_metadata_(NULL),
7212
      _has_bits_(from._has_bits_),
7213
      _cached_size_(0),
7214
0
      args_(from.args_) {
7215
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
7216
0
  keyword_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7217
0
  if (from.has_keyword()) {
7218
0
    keyword_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.keyword_);
7219
0
  }
7220
0
  if (from.has_error()) {
7221
0
    error_ = new ::yb::master::MasterErrorPB(*from.error_);
7222
0
  } else {
7223
0
    error_ = NULL;
7224
0
  }
7225
  // @@protoc_insertion_point(copy_constructor:yb.master.RedisConfigGetResponsePB)
7226
0
}
7227
7228
16.4k
void RedisConfigGetResponsePB::SharedCtor() {
7229
16.4k
  _cached_size_ = 0;
7230
16.4k
  keyword_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7231
16.4k
  error_ = NULL;
7232
16.4k
}
7233
7234
582
RedisConfigGetResponsePB::~RedisConfigGetResponsePB() {
7235
  // @@protoc_insertion_point(destructor:yb.master.RedisConfigGetResponsePB)
7236
582
  SharedDtor();
7237
582
}
7238
7239
582
void RedisConfigGetResponsePB::SharedDtor() {
7240
582
  keyword_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
7241
582
  if (this != internal_default_instance()) delete error_;
7242
582
}
7243
7244
0
void RedisConfigGetResponsePB::SetCachedSize(int size) const {
7245
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7246
0
  _cached_size_ = size;
7247
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
7248
0
}
7249
0
const ::google::protobuf::Descriptor* RedisConfigGetResponsePB::descriptor() {
7250
0
  ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::protobuf_AssignDescriptorsOnce();
7251
0
  return ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
7252
0
}
7253
7254
0
const RedisConfigGetResponsePB& RedisConfigGetResponsePB::default_instance() {
7255
0
  ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::InitDefaultsRedisConfigGetResponsePB();
7256
0
  return *internal_default_instance();
7257
0
}
7258
7259
0
RedisConfigGetResponsePB* RedisConfigGetResponsePB::New(::google::protobuf::Arena* arena) const {
7260
0
  RedisConfigGetResponsePB* n = new RedisConfigGetResponsePB;
7261
0
  if (arena != NULL) {
7262
0
    arena->Own(n);
7263
0
  }
7264
0
  return n;
7265
0
}
7266
7267
291
void RedisConfigGetResponsePB::Clear() {
7268
// @@protoc_insertion_point(message_clear_start:yb.master.RedisConfigGetResponsePB)
7269
291
  ::google::protobuf::uint32 cached_has_bits = 0;
7270
  // Prevent compiler warnings about cached_has_bits being unused
7271
291
  (void) cached_has_bits;
7272
7273
291
  args_.Clear();
7274
291
  cached_has_bits = _has_bits_[0];
7275
291
  if (cached_has_bits & 3u) {
7276
0
    if (cached_has_bits & 0x00000001u) {
7277
0
      GOOGLE_DCHECK(!keyword_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
7278
0
      (*keyword_.UnsafeRawStringPointer())->clear();
7279
0
    }
7280
0
    if (cached_has_bits & 0x00000002u) {
7281
0
      GOOGLE_DCHECK(error_ != NULL);
7282
0
      error_->Clear();
7283
0
    }
7284
0
  }
7285
291
  _has_bits_.Clear();
7286
291
  _internal_metadata_.Clear();
7287
291
}
7288
7289
bool RedisConfigGetResponsePB::MergePartialFromCodedStream(
7290
291
    ::google::protobuf::io::CodedInputStream* input) {
7291
582
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
7292
291
  ::google::protobuf::uint32 tag;
7293
  // @@protoc_insertion_point(parse_start:yb.master.RedisConfigGetResponsePB)
7294
873
  for (;;) {
7295
873
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
7296
873
    tag = p.first;
7297
873
    if (!p.second) goto handle_unusual;
7298
582
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
7299
      // optional string keyword = 1;
7300
291
      case 1: {
7301
291
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7302
291
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
7303
291
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
7304
291
                input, this->mutable_keyword()));
7305
291
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7306
291
            this->keyword().data(), static_cast<int>(this->keyword().length()),
7307
291
            ::google::protobuf::internal::WireFormat::PARSE,
7308
291
            "yb.master.RedisConfigGetResponsePB.keyword");
7309
0
        } else {
7310
0
          goto handle_unusual;
7311
0
        }
7312
291
        break;
7313
291
      }
7314
7315
      // repeated bytes args = 2;
7316
0
      case 2: {
7317
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7318
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
7319
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
7320
0
                input, this->add_args()));
7321
0
        } else {
7322
0
          goto handle_unusual;
7323
0
        }
7324
0
        break;
7325
0
      }
7326
7327
      // optional .yb.master.MasterErrorPB error = 3;
7328
291
      case 3: {
7329
291
        if (static_cast< ::google::protobuf::uint8>(tag) ==
7330
291
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
7331
291
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
7332
291
               input, mutable_error()));
7333
0
        } else {
7334
0
          goto handle_unusual;
7335
0
        }
7336
291
        break;
7337
291
      }
7338
7339
0
      default: {
7340
291
      handle_unusual:
7341
291
        if (tag == 0) {
7342
291
          goto success;
7343
291
        }
7344
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
7345
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
7346
0
        break;
7347
0
      }
7348
582
    }
7349
582
  }
7350
291
success:
7351
  // @@protoc_insertion_point(parse_success:yb.master.RedisConfigGetResponsePB)
7352
291
  return true;
7353
0
failure:
7354
  // @@protoc_insertion_point(parse_failure:yb.master.RedisConfigGetResponsePB)
7355
0
  return false;
7356
291
#undef DO_
7357
291
}
7358
7359
void RedisConfigGetResponsePB::SerializeWithCachedSizes(
7360
0
    ::google::protobuf::io::CodedOutputStream* output) const {
7361
  // @@protoc_insertion_point(serialize_start:yb.master.RedisConfigGetResponsePB)
7362
0
  ::google::protobuf::uint32 cached_has_bits = 0;
7363
0
  (void) cached_has_bits;
7364
7365
0
  cached_has_bits = _has_bits_[0];
7366
  // optional string keyword = 1;
7367
0
  if (cached_has_bits & 0x00000001u) {
7368
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7369
0
      this->keyword().data(), static_cast<int>(this->keyword().length()),
7370
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
7371
0
      "yb.master.RedisConfigGetResponsePB.keyword");
7372
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
7373
0
      1, this->keyword(), output);
7374
0
  }
7375
7376
  // repeated bytes args = 2;
7377
0
  for (int i = 0, n = this->args_size(); i < n; i++) {
7378
0
    ::google::protobuf::internal::WireFormatLite::WriteBytes(
7379
0
      2, this->args(i), output);
7380
0
  }
7381
7382
  // optional .yb.master.MasterErrorPB error = 3;
7383
0
  if (cached_has_bits & 0x00000002u) {
7384
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
7385
0
      3, *this->error_, output);
7386
0
  }
7387
7388
0
  if (_internal_metadata_.have_unknown_fields()) {
7389
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
7390
0
        _internal_metadata_.unknown_fields(), output);
7391
0
  }
7392
  // @@protoc_insertion_point(serialize_end:yb.master.RedisConfigGetResponsePB)
7393
0
}
7394
7395
::google::protobuf::uint8* RedisConfigGetResponsePB::InternalSerializeWithCachedSizesToArray(
7396
291
    bool deterministic, ::google::protobuf::uint8* target) const {
7397
291
  (void)deterministic; // Unused
7398
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.RedisConfigGetResponsePB)
7399
291
  ::google::protobuf::uint32 cached_has_bits = 0;
7400
291
  (void) cached_has_bits;
7401
7402
291
  cached_has_bits = _has_bits_[0];
7403
  // optional string keyword = 1;
7404
291
  if (cached_has_bits & 0x00000001u) {
7405
291
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
7406
291
      this->keyword().data(), static_cast<int>(this->keyword().length()),
7407
291
      ::google::protobuf::internal::WireFormat::SERIALIZE,
7408
291
      "yb.master.RedisConfigGetResponsePB.keyword");
7409
291
    target =
7410
291
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
7411
291
        1, this->keyword(), target);
7412
291
  }
7413
7414
  // repeated bytes args = 2;
7415
291
  for (int i = 0, n = this->args_size(); i < n; i++) {
7416
0
    target = ::google::protobuf::internal::WireFormatLite::
7417
0
      WriteBytesToArray(2, this->args(i), target);
7418
0
  }
7419
7420
  // optional .yb.master.MasterErrorPB error = 3;
7421
291
  if (cached_has_bits & 0x00000002u) {
7422
291
    target = ::google::protobuf::internal::WireFormatLite::
7423
291
      InternalWriteMessageToArray(
7424
291
        3, *this->error_, deterministic, target);
7425
291
  }
7426
7427
291
  if (_internal_metadata_.have_unknown_fields()) {
7428
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
7429
0
        _internal_metadata_.unknown_fields(), target);
7430
0
  }
7431
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.RedisConfigGetResponsePB)
7432
291
  return target;
7433
291
}
7434
7435
582
size_t RedisConfigGetResponsePB::ByteSizeLong() const {
7436
// @@protoc_insertion_point(message_byte_size_start:yb.master.RedisConfigGetResponsePB)
7437
582
  size_t total_size = 0;
7438
7439
582
  if (_internal_metadata_.have_unknown_fields()) {
7440
0
    total_size +=
7441
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
7442
0
        _internal_metadata_.unknown_fields());
7443
0
  }
7444
  // repeated bytes args = 2;
7445
582
  total_size += 1 *
7446
582
      ::google::protobuf::internal::FromIntSize(this->args_size());
7447
582
  for (int i = 0, n = this->args_size(); i < n; i++) {
7448
0
    total_size += ::google::protobuf::internal::WireFormatLite::BytesSize(
7449
0
      this->args(i));
7450
0
  }
7451
7452
582
  if (_has_bits_[0 / 32] & 3u) {
7453
    // optional string keyword = 1;
7454
582
    if (has_keyword()) {
7455
582
      total_size += 1 +
7456
582
        ::google::protobuf::internal::WireFormatLite::StringSize(
7457
582
          this->keyword());
7458
582
    }
7459
7460
    // optional .yb.master.MasterErrorPB error = 3;
7461
582
    if (has_error()) {
7462
582
      total_size += 1 +
7463
582
        ::google::protobuf::internal::WireFormatLite::MessageSize(
7464
582
          *this->error_);
7465
582
    }
7466
7467
582
  }
7468
582
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
7469
582
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
7470
582
  _cached_size_ = cached_size;
7471
582
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
7472
582
  return total_size;
7473
582
}
7474
7475
0
void RedisConfigGetResponsePB::MergeFrom(const ::google::protobuf::Message& from) {
7476
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.RedisConfigGetResponsePB)
7477
0
  GOOGLE_DCHECK_NE(&from, this);
7478
0
  const RedisConfigGetResponsePB* source =
7479
0
      ::google::protobuf::internal::DynamicCastToGenerated<const RedisConfigGetResponsePB>(
7480
0
          &from);
7481
0
  if (source == NULL) {
7482
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.RedisConfigGetResponsePB)
7483
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
7484
0
  } else {
7485
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.RedisConfigGetResponsePB)
7486
0
    MergeFrom(*source);
7487
0
  }
7488
0
}
7489
7490
0
void RedisConfigGetResponsePB::MergeFrom(const RedisConfigGetResponsePB& from) {
7491
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.RedisConfigGetResponsePB)
7492
0
  GOOGLE_DCHECK_NE(&from, this);
7493
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
7494
0
  ::google::protobuf::uint32 cached_has_bits = 0;
7495
0
  (void) cached_has_bits;
7496
7497
0
  args_.MergeFrom(from.args_);
7498
0
  cached_has_bits = from._has_bits_[0];
7499
0
  if (cached_has_bits & 3u) {
7500
0
    if (cached_has_bits & 0x00000001u) {
7501
0
      set_has_keyword();
7502
0
      keyword_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.keyword_);
7503
0
    }
7504
0
    if (cached_has_bits & 0x00000002u) {
7505
0
      mutable_error()->::yb::master::MasterErrorPB::MergeFrom(from.error());
7506
0
    }
7507
0
  }
7508
0
}
7509
7510
0
void RedisConfigGetResponsePB::CopyFrom(const ::google::protobuf::Message& from) {
7511
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.RedisConfigGetResponsePB)
7512
0
  if (&from == this) return;
7513
0
  Clear();
7514
0
  MergeFrom(from);
7515
0
}
7516
7517
0
void RedisConfigGetResponsePB::CopyFrom(const RedisConfigGetResponsePB& from) {
7518
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.RedisConfigGetResponsePB)
7519
0
  if (&from == this) return;
7520
0
  Clear();
7521
0
  MergeFrom(from);
7522
0
}
7523
7524
582
bool RedisConfigGetResponsePB::IsInitialized() const {
7525
582
  if (has_error()) {
7526
582
    if (!this->error_->IsInitialized()) return false;
7527
582
  }
7528
582
  return true;
7529
582
}
7530
7531
0
void RedisConfigGetResponsePB::Swap(RedisConfigGetResponsePB* other) {
7532
0
  if (other == this) return;
7533
0
  InternalSwap(other);
7534
0
}
7535
0
void RedisConfigGetResponsePB::InternalSwap(RedisConfigGetResponsePB* other) {
7536
0
  using std::swap;
7537
0
  args_.InternalSwap(&other->args_);
7538
0
  keyword_.Swap(&other->keyword_);
7539
0
  swap(error_, other->error_);
7540
0
  swap(_has_bits_[0], other->_has_bits_[0]);
7541
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
7542
0
  swap(_cached_size_, other->_cached_size_);
7543
0
}
7544
7545
0
::google::protobuf::Metadata RedisConfigGetResponsePB::GetMetadata() const {
7546
0
  protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::protobuf_AssignDescriptorsOnce();
7547
0
  return ::protobuf_yb_2fmaster_2fmaster_5fclient_2eproto::file_level_metadata[kIndexInFileMessages];
7548
0
}
7549
7550
7551
// @@protoc_insertion_point(namespace_scope)
7552
}  // namespace master
7553
}  // namespace yb
7554
7555
// @@protoc_insertion_point(global_scope)