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_dcl.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_dcl.proto
3
4
#include "yb/master/master_dcl.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 CreateRoleRequestPBDefaultTypeInternal {
26
 public:
27
  ::google::protobuf::internal::ExplicitlyConstructed<CreateRoleRequestPB>
28
      _instance;
29
} _CreateRoleRequestPB_default_instance_;
30
class CreateRoleResponsePBDefaultTypeInternal {
31
 public:
32
  ::google::protobuf::internal::ExplicitlyConstructed<CreateRoleResponsePB>
33
      _instance;
34
} _CreateRoleResponsePB_default_instance_;
35
class AlterRoleRequestPBDefaultTypeInternal {
36
 public:
37
  ::google::protobuf::internal::ExplicitlyConstructed<AlterRoleRequestPB>
38
      _instance;
39
} _AlterRoleRequestPB_default_instance_;
40
class AlterRoleResponsePBDefaultTypeInternal {
41
 public:
42
  ::google::protobuf::internal::ExplicitlyConstructed<AlterRoleResponsePB>
43
      _instance;
44
} _AlterRoleResponsePB_default_instance_;
45
class DeleteRoleRequestPBDefaultTypeInternal {
46
 public:
47
  ::google::protobuf::internal::ExplicitlyConstructed<DeleteRoleRequestPB>
48
      _instance;
49
} _DeleteRoleRequestPB_default_instance_;
50
class DeleteRoleResponsePBDefaultTypeInternal {
51
 public:
52
  ::google::protobuf::internal::ExplicitlyConstructed<DeleteRoleResponsePB>
53
      _instance;
54
} _DeleteRoleResponsePB_default_instance_;
55
class GrantRevokeRoleRequestPBDefaultTypeInternal {
56
 public:
57
  ::google::protobuf::internal::ExplicitlyConstructed<GrantRevokeRoleRequestPB>
58
      _instance;
59
} _GrantRevokeRoleRequestPB_default_instance_;
60
class GrantRevokeRoleResponsePBDefaultTypeInternal {
61
 public:
62
  ::google::protobuf::internal::ExplicitlyConstructed<GrantRevokeRoleResponsePB>
63
      _instance;
64
} _GrantRevokeRoleResponsePB_default_instance_;
65
class GrantRevokePermissionRequestPBDefaultTypeInternal {
66
 public:
67
  ::google::protobuf::internal::ExplicitlyConstructed<GrantRevokePermissionRequestPB>
68
      _instance;
69
} _GrantRevokePermissionRequestPB_default_instance_;
70
class GrantRevokePermissionResponsePBDefaultTypeInternal {
71
 public:
72
  ::google::protobuf::internal::ExplicitlyConstructed<GrantRevokePermissionResponsePB>
73
      _instance;
74
} _GrantRevokePermissionResponsePB_default_instance_;
75
class GetPermissionsRequestPBDefaultTypeInternal {
76
 public:
77
  ::google::protobuf::internal::ExplicitlyConstructed<GetPermissionsRequestPB>
78
      _instance;
79
} _GetPermissionsRequestPB_default_instance_;
80
class ResourcePermissionInfoPBDefaultTypeInternal {
81
 public:
82
  ::google::protobuf::internal::ExplicitlyConstructed<ResourcePermissionInfoPB>
83
      _instance;
84
} _ResourcePermissionInfoPB_default_instance_;
85
class RolePermissionInfoPBDefaultTypeInternal {
86
 public:
87
  ::google::protobuf::internal::ExplicitlyConstructed<RolePermissionInfoPB>
88
      _instance;
89
} _RolePermissionInfoPB_default_instance_;
90
class GetPermissionsResponsePBDefaultTypeInternal {
91
 public:
92
  ::google::protobuf::internal::ExplicitlyConstructed<GetPermissionsResponsePB>
93
      _instance;
94
} _GetPermissionsResponsePB_default_instance_;
95
}  // namespace master
96
}  // namespace yb
97
namespace protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto {
98
15.8k
void InitDefaultsCreateRoleRequestPBImpl() {
99
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
100
101
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
102
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
103
#else
104
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
105
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
106
15.8k
  {
107
15.8k
    void* ptr = &::yb::master::_CreateRoleRequestPB_default_instance_;
108
15.8k
    new (ptr) ::yb::master::CreateRoleRequestPB();
109
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
110
15.8k
  }
111
15.8k
  ::yb::master::CreateRoleRequestPB::InitAsDefaultInstance();
112
15.8k
}
113
114
17.3k
void InitDefaultsCreateRoleRequestPB() {
115
17.3k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
116
17.3k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCreateRoleRequestPBImpl);
117
17.3k
}
118
119
15.8k
void InitDefaultsCreateRoleResponsePBImpl() {
120
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
121
122
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
123
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
124
#else
125
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
126
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
127
15.8k
  protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsMasterErrorPB();
128
15.8k
  {
129
15.8k
    void* ptr = &::yb::master::_CreateRoleResponsePB_default_instance_;
130
15.8k
    new (ptr) ::yb::master::CreateRoleResponsePB();
131
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
132
15.8k
  }
133
15.8k
  ::yb::master::CreateRoleResponsePB::InitAsDefaultInstance();
134
15.8k
}
135
136
17.3k
void InitDefaultsCreateRoleResponsePB() {
137
17.3k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
138
17.3k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCreateRoleResponsePBImpl);
139
17.3k
}
140
141
15.8k
void InitDefaultsAlterRoleRequestPBImpl() {
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
  {
150
15.8k
    void* ptr = &::yb::master::_AlterRoleRequestPB_default_instance_;
151
15.8k
    new (ptr) ::yb::master::AlterRoleRequestPB();
152
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
153
15.8k
  }
154
15.8k
  ::yb::master::AlterRoleRequestPB::InitAsDefaultInstance();
155
15.8k
}
156
157
15.9k
void InitDefaultsAlterRoleRequestPB() {
158
15.9k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
159
15.9k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsAlterRoleRequestPBImpl);
160
15.9k
}
161
162
15.8k
void InitDefaultsAlterRoleResponsePBImpl() {
163
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
164
165
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
166
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
167
#else
168
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
169
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
170
15.8k
  protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsMasterErrorPB();
171
15.8k
  {
172
15.8k
    void* ptr = &::yb::master::_AlterRoleResponsePB_default_instance_;
173
15.8k
    new (ptr) ::yb::master::AlterRoleResponsePB();
174
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
175
15.8k
  }
176
15.8k
  ::yb::master::AlterRoleResponsePB::InitAsDefaultInstance();
177
15.8k
}
178
179
15.9k
void InitDefaultsAlterRoleResponsePB() {
180
15.9k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
181
15.9k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsAlterRoleResponsePBImpl);
182
15.9k
}
183
184
15.8k
void InitDefaultsDeleteRoleRequestPBImpl() {
185
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
186
187
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
188
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
189
#else
190
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
191
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
192
15.8k
  {
193
15.8k
    void* ptr = &::yb::master::_DeleteRoleRequestPB_default_instance_;
194
15.8k
    new (ptr) ::yb::master::DeleteRoleRequestPB();
195
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
196
15.8k
  }
197
15.8k
  ::yb::master::DeleteRoleRequestPB::InitAsDefaultInstance();
198
15.8k
}
199
200
17.3k
void InitDefaultsDeleteRoleRequestPB() {
201
17.3k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
202
17.3k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDeleteRoleRequestPBImpl);
203
17.3k
}
204
205
15.8k
void InitDefaultsDeleteRoleResponsePBImpl() {
206
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
207
208
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
209
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
210
#else
211
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
212
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
213
15.8k
  protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsMasterErrorPB();
214
15.8k
  {
215
15.8k
    void* ptr = &::yb::master::_DeleteRoleResponsePB_default_instance_;
216
15.8k
    new (ptr) ::yb::master::DeleteRoleResponsePB();
217
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
218
15.8k
  }
219
15.8k
  ::yb::master::DeleteRoleResponsePB::InitAsDefaultInstance();
220
15.8k
}
221
222
17.3k
void InitDefaultsDeleteRoleResponsePB() {
223
17.3k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
224
17.3k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsDeleteRoleResponsePBImpl);
225
17.3k
}
226
227
15.8k
void InitDefaultsGrantRevokeRoleRequestPBImpl() {
228
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
229
230
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
231
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
232
#else
233
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
234
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
235
15.8k
  {
236
15.8k
    void* ptr = &::yb::master::_GrantRevokeRoleRequestPB_default_instance_;
237
15.8k
    new (ptr) ::yb::master::GrantRevokeRoleRequestPB();
238
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
239
15.8k
  }
240
15.8k
  ::yb::master::GrantRevokeRoleRequestPB::InitAsDefaultInstance();
241
15.8k
}
242
243
15.9k
void InitDefaultsGrantRevokeRoleRequestPB() {
244
15.9k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
245
15.9k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsGrantRevokeRoleRequestPBImpl);
246
15.9k
}
247
248
15.8k
void InitDefaultsGrantRevokeRoleResponsePBImpl() {
249
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
250
251
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
252
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
253
#else
254
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
255
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
256
15.8k
  protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsMasterErrorPB();
257
15.8k
  {
258
15.8k
    void* ptr = &::yb::master::_GrantRevokeRoleResponsePB_default_instance_;
259
15.8k
    new (ptr) ::yb::master::GrantRevokeRoleResponsePB();
260
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
261
15.8k
  }
262
15.8k
  ::yb::master::GrantRevokeRoleResponsePB::InitAsDefaultInstance();
263
15.8k
}
264
265
15.9k
void InitDefaultsGrantRevokeRoleResponsePB() {
266
15.9k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
267
15.9k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsGrantRevokeRoleResponsePBImpl);
268
15.9k
}
269
270
15.8k
void InitDefaultsGrantRevokePermissionRequestPBImpl() {
271
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
272
273
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
274
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
275
#else
276
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
277
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
278
15.8k
  protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsNamespaceIdentifierPB();
279
15.8k
  {
280
15.8k
    void* ptr = &::yb::master::_GrantRevokePermissionRequestPB_default_instance_;
281
15.8k
    new (ptr) ::yb::master::GrantRevokePermissionRequestPB();
282
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
283
15.8k
  }
284
15.8k
  ::yb::master::GrantRevokePermissionRequestPB::InitAsDefaultInstance();
285
15.8k
}
286
287
17.2k
void InitDefaultsGrantRevokePermissionRequestPB() {
288
17.2k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
289
17.2k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsGrantRevokePermissionRequestPBImpl);
290
17.2k
}
291
292
15.8k
void InitDefaultsGrantRevokePermissionResponsePBImpl() {
293
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
294
295
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
296
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
297
#else
298
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
299
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
300
15.8k
  protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsMasterErrorPB();
301
15.8k
  {
302
15.8k
    void* ptr = &::yb::master::_GrantRevokePermissionResponsePB_default_instance_;
303
15.8k
    new (ptr) ::yb::master::GrantRevokePermissionResponsePB();
304
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
305
15.8k
  }
306
15.8k
  ::yb::master::GrantRevokePermissionResponsePB::InitAsDefaultInstance();
307
15.8k
}
308
309
17.2k
void InitDefaultsGrantRevokePermissionResponsePB() {
310
17.2k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
311
17.2k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsGrantRevokePermissionResponsePBImpl);
312
17.2k
}
313
314
15.8k
void InitDefaultsGetPermissionsRequestPBImpl() {
315
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
316
317
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
318
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
319
#else
320
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
321
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
322
15.8k
  {
323
15.8k
    void* ptr = &::yb::master::_GetPermissionsRequestPB_default_instance_;
324
15.8k
    new (ptr) ::yb::master::GetPermissionsRequestPB();
325
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
326
15.8k
  }
327
15.8k
  ::yb::master::GetPermissionsRequestPB::InitAsDefaultInstance();
328
15.8k
}
329
330
251k
void InitDefaultsGetPermissionsRequestPB() {
331
251k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
332
251k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsGetPermissionsRequestPBImpl);
333
251k
}
334
335
15.8k
void InitDefaultsResourcePermissionInfoPBImpl() {
336
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
337
338
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
339
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
340
#else
341
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
342
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
343
15.8k
  {
344
15.8k
    void* ptr = &::yb::master::_ResourcePermissionInfoPB_default_instance_;
345
15.8k
    new (ptr) ::yb::master::ResourcePermissionInfoPB();
346
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
347
15.8k
  }
348
15.8k
  ::yb::master::ResourcePermissionInfoPB::InitAsDefaultInstance();
349
15.8k
}
350
351
89.2k
void InitDefaultsResourcePermissionInfoPB() {
352
89.2k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
353
89.2k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsResourcePermissionInfoPBImpl);
354
89.2k
}
355
356
15.8k
void InitDefaultsRolePermissionInfoPBImpl() {
357
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
358
359
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
360
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
361
#else
362
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
363
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
364
15.8k
  protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::InitDefaultsResourcePermissionInfoPB();
365
15.8k
  {
366
15.8k
    void* ptr = &::yb::master::_RolePermissionInfoPB_default_instance_;
367
15.8k
    new (ptr) ::yb::master::RolePermissionInfoPB();
368
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
369
15.8k
  }
370
15.8k
  ::yb::master::RolePermissionInfoPB::InitAsDefaultInstance();
371
15.8k
}
372
373
83.6k
void InitDefaultsRolePermissionInfoPB() {
374
83.6k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
375
83.6k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRolePermissionInfoPBImpl);
376
83.6k
}
377
378
15.8k
void InitDefaultsGetPermissionsResponsePBImpl() {
379
15.8k
  GOOGLE_PROTOBUF_VERIFY_VERSION;
380
381
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
382
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
383
#else
384
15.8k
  ::google::protobuf::internal::InitProtobufDefaults();
385
15.8k
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
386
15.8k
  protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::InitDefaultsMasterErrorPB();
387
15.8k
  protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::InitDefaultsRolePermissionInfoPB();
388
15.8k
  {
389
15.8k
    void* ptr = &::yb::master::_GetPermissionsResponsePB_default_instance_;
390
15.8k
    new (ptr) ::yb::master::GetPermissionsResponsePB();
391
15.8k
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
392
15.8k
  }
393
15.8k
  ::yb::master::GetPermissionsResponsePB::InitAsDefaultInstance();
394
15.8k
}
395
396
261k
void InitDefaultsGetPermissionsResponsePB() {
397
261k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
398
261k
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsGetPermissionsResponsePBImpl);
399
261k
}
400
401
::google::protobuf::Metadata file_level_metadata[14];
402
403
const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
404
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::CreateRoleRequestPB, _has_bits_),
405
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::CreateRoleRequestPB, _internal_metadata_),
406
  ~0u,  // no _extensions_
407
  ~0u,  // no _oneof_case_
408
  ~0u,  // no _weak_field_map_
409
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::CreateRoleRequestPB, name_),
410
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::CreateRoleRequestPB, salted_hash_),
411
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::CreateRoleRequestPB, login_),
412
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::CreateRoleRequestPB, superuser_),
413
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::CreateRoleRequestPB, creator_role_name_),
414
  0,
415
  1,
416
  3,
417
  4,
418
  2,
419
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::CreateRoleResponsePB, _has_bits_),
420
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::CreateRoleResponsePB, _internal_metadata_),
421
  ~0u,  // no _extensions_
422
  ~0u,  // no _oneof_case_
423
  ~0u,  // no _weak_field_map_
424
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::CreateRoleResponsePB, error_),
425
  0,
426
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::AlterRoleRequestPB, _has_bits_),
427
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::AlterRoleRequestPB, _internal_metadata_),
428
  ~0u,  // no _extensions_
429
  ~0u,  // no _oneof_case_
430
  ~0u,  // no _weak_field_map_
431
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::AlterRoleRequestPB, name_),
432
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::AlterRoleRequestPB, salted_hash_),
433
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::AlterRoleRequestPB, login_),
434
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::AlterRoleRequestPB, superuser_),
435
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::AlterRoleRequestPB, current_role_),
436
  0,
437
  1,
438
  3,
439
  4,
440
  2,
441
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::AlterRoleResponsePB, _has_bits_),
442
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::AlterRoleResponsePB, _internal_metadata_),
443
  ~0u,  // no _extensions_
444
  ~0u,  // no _oneof_case_
445
  ~0u,  // no _weak_field_map_
446
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::AlterRoleResponsePB, error_),
447
  0,
448
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::DeleteRoleRequestPB, _has_bits_),
449
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::DeleteRoleRequestPB, _internal_metadata_),
450
  ~0u,  // no _extensions_
451
  ~0u,  // no _oneof_case_
452
  ~0u,  // no _weak_field_map_
453
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::DeleteRoleRequestPB, name_),
454
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::DeleteRoleRequestPB, current_role_),
455
  0,
456
  1,
457
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::DeleteRoleResponsePB, _has_bits_),
458
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::DeleteRoleResponsePB, _internal_metadata_),
459
  ~0u,  // no _extensions_
460
  ~0u,  // no _oneof_case_
461
  ~0u,  // no _weak_field_map_
462
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::DeleteRoleResponsePB, error_),
463
  0,
464
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GrantRevokeRoleRequestPB, _has_bits_),
465
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GrantRevokeRoleRequestPB, _internal_metadata_),
466
  ~0u,  // no _extensions_
467
  ~0u,  // no _oneof_case_
468
  ~0u,  // no _weak_field_map_
469
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GrantRevokeRoleRequestPB, granted_role_),
470
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GrantRevokeRoleRequestPB, recipient_role_),
471
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GrantRevokeRoleRequestPB, revoke_),
472
  0,
473
  1,
474
  2,
475
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GrantRevokeRoleResponsePB, _has_bits_),
476
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GrantRevokeRoleResponsePB, _internal_metadata_),
477
  ~0u,  // no _extensions_
478
  ~0u,  // no _oneof_case_
479
  ~0u,  // no _weak_field_map_
480
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GrantRevokeRoleResponsePB, error_),
481
  0,
482
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GrantRevokePermissionRequestPB, _has_bits_),
483
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GrantRevokePermissionRequestPB, _internal_metadata_),
484
  ~0u,  // no _extensions_
485
  ~0u,  // no _oneof_case_
486
  ~0u,  // no _weak_field_map_
487
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GrantRevokePermissionRequestPB, permission_),
488
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GrantRevokePermissionRequestPB, resource_type_),
489
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GrantRevokePermissionRequestPB, canonical_resource_),
490
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GrantRevokePermissionRequestPB, resource_name_),
491
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GrantRevokePermissionRequestPB, namespace__),
492
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GrantRevokePermissionRequestPB, role_name_),
493
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GrantRevokePermissionRequestPB, revoke_),
494
  4,
495
  6,
496
  0,
497
  1,
498
  3,
499
  2,
500
  5,
501
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GrantRevokePermissionResponsePB, _has_bits_),
502
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GrantRevokePermissionResponsePB, _internal_metadata_),
503
  ~0u,  // no _extensions_
504
  ~0u,  // no _oneof_case_
505
  ~0u,  // no _weak_field_map_
506
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GrantRevokePermissionResponsePB, error_),
507
  0,
508
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetPermissionsRequestPB, _has_bits_),
509
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetPermissionsRequestPB, _internal_metadata_),
510
  ~0u,  // no _extensions_
511
  ~0u,  // no _oneof_case_
512
  ~0u,  // no _weak_field_map_
513
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetPermissionsRequestPB, if_version_greater_than_),
514
  0,
515
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ResourcePermissionInfoPB, _has_bits_),
516
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ResourcePermissionInfoPB, _internal_metadata_),
517
  ~0u,  // no _extensions_
518
  ~0u,  // no _oneof_case_
519
  ~0u,  // no _weak_field_map_
520
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ResourcePermissionInfoPB, canonical_resource_),
521
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::ResourcePermissionInfoPB, permissions_),
522
  0,
523
  1,
524
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::RolePermissionInfoPB, _has_bits_),
525
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::RolePermissionInfoPB, _internal_metadata_),
526
  ~0u,  // no _extensions_
527
  ~0u,  // no _oneof_case_
528
  ~0u,  // no _weak_field_map_
529
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::RolePermissionInfoPB, role_),
530
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::RolePermissionInfoPB, all_keyspaces_permissions_),
531
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::RolePermissionInfoPB, all_roles_permissions_),
532
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::RolePermissionInfoPB, resource_permissions_),
533
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::RolePermissionInfoPB, salted_hash_),
534
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::RolePermissionInfoPB, can_login_),
535
  0,
536
  2,
537
  3,
538
  ~0u,
539
  1,
540
  4,
541
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetPermissionsResponsePB, _has_bits_),
542
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetPermissionsResponsePB, _internal_metadata_),
543
  ~0u,  // no _extensions_
544
  ~0u,  // no _oneof_case_
545
  ~0u,  // no _weak_field_map_
546
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetPermissionsResponsePB, version_),
547
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetPermissionsResponsePB, error_),
548
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::yb::master::GetPermissionsResponsePB, role_permissions_),
549
  1,
550
  0,
551
  ~0u,
552
};
553
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
554
  { 0, 10, sizeof(::yb::master::CreateRoleRequestPB)},
555
  { 15, 21, sizeof(::yb::master::CreateRoleResponsePB)},
556
  { 22, 32, sizeof(::yb::master::AlterRoleRequestPB)},
557
  { 37, 43, sizeof(::yb::master::AlterRoleResponsePB)},
558
  { 44, 51, sizeof(::yb::master::DeleteRoleRequestPB)},
559
  { 53, 59, sizeof(::yb::master::DeleteRoleResponsePB)},
560
  { 60, 68, sizeof(::yb::master::GrantRevokeRoleRequestPB)},
561
  { 71, 77, sizeof(::yb::master::GrantRevokeRoleResponsePB)},
562
  { 78, 90, sizeof(::yb::master::GrantRevokePermissionRequestPB)},
563
  { 97, 103, sizeof(::yb::master::GrantRevokePermissionResponsePB)},
564
  { 104, 110, sizeof(::yb::master::GetPermissionsRequestPB)},
565
  { 111, 118, sizeof(::yb::master::ResourcePermissionInfoPB)},
566
  { 120, 131, sizeof(::yb::master::RolePermissionInfoPB)},
567
  { 137, 145, sizeof(::yb::master::GetPermissionsResponsePB)},
568
};
569
570
static ::google::protobuf::Message const * const file_default_instances[] = {
571
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_CreateRoleRequestPB_default_instance_),
572
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_CreateRoleResponsePB_default_instance_),
573
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_AlterRoleRequestPB_default_instance_),
574
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_AlterRoleResponsePB_default_instance_),
575
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_DeleteRoleRequestPB_default_instance_),
576
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_DeleteRoleResponsePB_default_instance_),
577
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_GrantRevokeRoleRequestPB_default_instance_),
578
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_GrantRevokeRoleResponsePB_default_instance_),
579
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_GrantRevokePermissionRequestPB_default_instance_),
580
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_GrantRevokePermissionResponsePB_default_instance_),
581
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_GetPermissionsRequestPB_default_instance_),
582
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_ResourcePermissionInfoPB_default_instance_),
583
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_RolePermissionInfoPB_default_instance_),
584
  reinterpret_cast<const ::google::protobuf::Message*>(&::yb::master::_GetPermissionsResponsePB_default_instance_),
585
};
586
587
484
void protobuf_AssignDescriptors() {
588
484
  AddDescriptors();
589
484
  ::google::protobuf::MessageFactory* factory = NULL;
590
484
  AssignDescriptors(
591
484
      "yb/master/master_dcl.proto", schemas, file_default_instances, TableStruct::offsets, factory,
592
484
      file_level_metadata, NULL, NULL);
593
484
}
594
595
124k
void protobuf_AssignDescriptorsOnce() {
596
124k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
597
124k
  ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
598
124k
}
599
600
void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
601
0
void protobuf_RegisterTypes(const ::std::string&) {
602
0
  protobuf_AssignDescriptorsOnce();
603
0
  ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 14);
604
0
}
605
606
15.8k
void AddDescriptorsImpl() {
607
15.8k
  InitDefaults();
608
15.8k
  static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
609
15.8k
      "\n\032yb/master/master_dcl.proto\022\tyb.master\032"
610
15.8k
      "\034yb/common/common_types.proto\032\034yb/master"
611
15.8k
      "/master_types.proto\032\024yb/rpc/service.prot"
612
15.8k
      "o\"u\n\023CreateRoleRequestPB\022\014\n\004name\030\001 \001(\t\022\023"
613
15.8k
      "\n\013salted_hash\030\002 \001(\t\022\r\n\005login\030\003 \001(\010\022\021\n\tsu"
614
15.8k
      "peruser\030\004 \001(\010\022\031\n\021creator_role_name\030\005 \001(\t"
615
15.8k
      "\"\?\n\024CreateRoleResponsePB\022\'\n\005error\030\001 \001(\0132"
616
15.8k
      "\030.yb.master.MasterErrorPB\"o\n\022AlterRoleRe"
617
15.8k
      "questPB\022\014\n\004name\030\001 \001(\t\022\023\n\013salted_hash\030\002 \001"
618
15.8k
      "(\t\022\r\n\005login\030\003 \001(\010\022\021\n\tsuperuser\030\004 \001(\010\022\024\n\014"
619
15.8k
      "current_role\030\005 \001(\t\">\n\023AlterRoleResponseP"
620
15.8k
      "B\022\'\n\005error\030\001 \001(\0132\030.yb.master.MasterError"
621
15.8k
      "PB\"9\n\023DeleteRoleRequestPB\022\014\n\004name\030\001 \001(\t\022"
622
15.8k
      "\024\n\014current_role\030\002 \001(\t\"\?\n\024DeleteRoleRespo"
623
15.8k
      "nsePB\022\'\n\005error\030\001 \001(\0132\030.yb.master.MasterE"
624
15.8k
      "rrorPB\"_\n\030GrantRevokeRoleRequestPB\022\024\n\014gr"
625
15.8k
      "anted_role\030\001 \001(\t\022\026\n\016recipient_role\030\002 \001(\t"
626
15.8k
      "\022\025\n\006revoke\030\003 \001(\010:\005false\"D\n\031GrantRevokeRo"
627
15.8k
      "leResponsePB\022\'\n\005error\030\001 \001(\0132\030.yb.master."
628
15.8k
      "MasterErrorPB\"\203\002\n\036GrantRevokePermissionR"
629
15.8k
      "equestPB\022&\n\npermission\030\001 \001(\0162\022.yb.Permis"
630
15.8k
      "sionType\022\'\n\rresource_type\030\002 \001(\0162\020.yb.Res"
631
15.8k
      "ourceType\022\032\n\022canonical_resource\030\003 \001(\t\022\025\n"
632
15.8k
      "\rresource_name\030\004 \001(\t\0223\n\tnamespace\030\005 \001(\0132"
633
15.8k
      " .yb.master.NamespaceIdentifierPB\022\021\n\trol"
634
15.8k
      "e_name\030\006 \001(\t\022\025\n\006revoke\030\007 \001(\010:\005false\"J\n\037G"
635
15.8k
      "rantRevokePermissionResponsePB\022\'\n\005error\030"
636
15.8k
      "\001 \001(\0132\030.yb.master.MasterErrorPB\":\n\027GetPe"
637
15.8k
      "rmissionsRequestPB\022\037\n\027if_version_greater"
638
15.8k
      "_than\030\001 \001(\004\"K\n\030ResourcePermissionInfoPB\022"
639
15.8k
      "\032\n\022canonical_resource\030\001 \001(\t\022\023\n\013permissio"
640
15.8k
      "ns\030\002 \001(\r\"\321\001\n\024RolePermissionInfoPB\022\014\n\004rol"
641
15.8k
      "e\030\001 \001(\t\022!\n\031all_keyspaces_permissions\030\002 \001"
642
15.8k
      "(\r\022\035\n\025all_roles_permissions\030\003 \001(\r\022A\n\024res"
643
15.8k
      "ource_permissions\030\004 \003(\0132#.yb.master.Reso"
644
15.8k
      "urcePermissionInfoPB\022\023\n\013salted_hash\030\005 \001("
645
15.8k
      "\t\022\021\n\tcan_login\030\006 \001(\010\"\217\001\n\030GetPermissionsR"
646
15.8k
      "esponsePB\022\017\n\007version\030\001 \001(\004\022\'\n\005error\030\002 \001("
647
15.8k
      "\0132\030.yb.master.MasterErrorPB\0229\n\020role_perm"
648
15.8k
      "issions\030\003 \003(\0132\037.yb.master.RolePermission"
649
15.8k
      "InfoPB2\273\004\n\tMasterDcl\022M\n\nCreateRole\022\036.yb."
650
15.8k
      "master.CreateRoleRequestPB\032\037.yb.master.C"
651
15.8k
      "reateRoleResponsePB\022J\n\tAlterRole\022\035.yb.ma"
652
15.8k
      "ster.AlterRoleRequestPB\032\036.yb.master.Alte"
653
15.8k
      "rRoleResponsePB\022M\n\nDeleteRole\022\036.yb.maste"
654
15.8k
      "r.DeleteRoleRequestPB\032\037.yb.master.Delete"
655
15.8k
      "RoleResponsePB\022\\\n\017GrantRevokeRole\022#.yb.m"
656
15.8k
      "aster.GrantRevokeRoleRequestPB\032$.yb.mast"
657
15.8k
      "er.GrantRevokeRoleResponsePB\022n\n\025GrantRev"
658
15.8k
      "okePermission\022).yb.master.GrantRevokePer"
659
15.8k
      "missionRequestPB\032*.yb.master.GrantRevoke"
660
15.8k
      "PermissionResponsePB\022Y\n\016GetPermissions\022\""
661
15.8k
      ".yb.master.GetPermissionsRequestPB\032#.yb."
662
15.8k
      "master.GetPermissionsResponsePB\032\033\332\265\030\027yb."
663
15.8k
      "master.MasterServiceB\017\n\rorg.yb.master"
664
15.8k
  };
665
15.8k
  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
666
15.8k
      descriptor, 2197);
667
15.8k
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
668
15.8k
    "yb/master/master_dcl.proto", &protobuf_RegisterTypes);
669
15.8k
  ::protobuf_yb_2fcommon_2fcommon_5ftypes_2eproto::AddDescriptors();
670
15.8k
  ::protobuf_yb_2fmaster_2fmaster_5ftypes_2eproto::AddDescriptors();
671
15.8k
  ::protobuf_yb_2frpc_2fservice_2eproto::AddDescriptors();
672
15.8k
}
673
674
16.3k
void AddDescriptors() {
675
16.3k
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
676
16.3k
  ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
677
16.3k
}
678
// Force AddDescriptors() to be called at dynamic initialization time.
679
struct StaticDescriptorInitializer {
680
15.8k
  StaticDescriptorInitializer() {
681
15.8k
    AddDescriptors();
682
15.8k
  }
683
} static_descriptor_initializer;
684
}  // namespace protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto
685
namespace yb {
686
namespace master {
687
688
// ===================================================================
689
690
15.8k
void CreateRoleRequestPB::InitAsDefaultInstance() {
691
15.8k
}
692
#if !defined(_MSC_VER) || _MSC_VER >= 1900
693
const int CreateRoleRequestPB::kNameFieldNumber;
694
const int CreateRoleRequestPB::kSaltedHashFieldNumber;
695
const int CreateRoleRequestPB::kLoginFieldNumber;
696
const int CreateRoleRequestPB::kSuperuserFieldNumber;
697
const int CreateRoleRequestPB::kCreatorRoleNameFieldNumber;
698
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
699
700
CreateRoleRequestPB::CreateRoleRequestPB()
701
17.3k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
702
1.51k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
703
1.51k
    ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::InitDefaultsCreateRoleRequestPB();
704
1.51k
  }
705
17.3k
  SharedCtor();
706
  // @@protoc_insertion_point(constructor:yb.master.CreateRoleRequestPB)
707
17.3k
}
708
CreateRoleRequestPB::CreateRoleRequestPB(const CreateRoleRequestPB& from)
709
  : ::google::protobuf::Message(),
710
      _internal_metadata_(NULL),
711
      _has_bits_(from._has_bits_),
712
0
      _cached_size_(0) {
713
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
714
0
  name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
715
0
  if (from.has_name()) {
716
0
    name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
717
0
  }
718
0
  salted_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
719
0
  if (from.has_salted_hash()) {
720
0
    salted_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.salted_hash_);
721
0
  }
722
0
  creator_role_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
723
0
  if (from.has_creator_role_name()) {
724
0
    creator_role_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.creator_role_name_);
725
0
  }
726
0
  ::memcpy(&login_, &from.login_,
727
0
    static_cast<size_t>(reinterpret_cast<char*>(&superuser_) -
728
0
    reinterpret_cast<char*>(&login_)) + sizeof(superuser_));
729
  // @@protoc_insertion_point(copy_constructor:yb.master.CreateRoleRequestPB)
730
0
}
731
732
17.3k
void CreateRoleRequestPB::SharedCtor() {
733
17.3k
  _cached_size_ = 0;
734
17.3k
  name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
735
17.3k
  salted_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
736
17.3k
  creator_role_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
737
17.3k
  ::memset(&login_, 0, static_cast<size_t>(
738
17.3k
      reinterpret_cast<char*>(&superuser_) -
739
17.3k
      reinterpret_cast<char*>(&login_)) + sizeof(superuser_));
740
17.3k
}
741
742
1.51k
CreateRoleRequestPB::~CreateRoleRequestPB() {
743
  // @@protoc_insertion_point(destructor:yb.master.CreateRoleRequestPB)
744
1.51k
  SharedDtor();
745
1.51k
}
746
747
1.51k
void CreateRoleRequestPB::SharedDtor() {
748
1.51k
  name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
749
1.51k
  salted_hash_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
750
1.51k
  creator_role_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
751
1.51k
}
752
753
0
void CreateRoleRequestPB::SetCachedSize(int size) const {
754
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
755
0
  _cached_size_ = size;
756
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
757
0
}
758
0
const ::google::protobuf::Descriptor* CreateRoleRequestPB::descriptor() {
759
0
  ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::protobuf_AssignDescriptorsOnce();
760
0
  return ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
761
0
}
762
763
0
const CreateRoleRequestPB& CreateRoleRequestPB::default_instance() {
764
0
  ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::InitDefaultsCreateRoleRequestPB();
765
0
  return *internal_default_instance();
766
0
}
767
768
0
CreateRoleRequestPB* CreateRoleRequestPB::New(::google::protobuf::Arena* arena) const {
769
0
  CreateRoleRequestPB* n = new CreateRoleRequestPB;
770
0
  if (arena != NULL) {
771
0
    arena->Own(n);
772
0
  }
773
0
  return n;
774
0
}
775
776
757
void CreateRoleRequestPB::Clear() {
777
// @@protoc_insertion_point(message_clear_start:yb.master.CreateRoleRequestPB)
778
757
  ::google::protobuf::uint32 cached_has_bits = 0;
779
  // Prevent compiler warnings about cached_has_bits being unused
780
757
  (void) cached_has_bits;
781
782
757
  cached_has_bits = _has_bits_[0];
783
757
  if (cached_has_bits & 7u) {
784
0
    if (cached_has_bits & 0x00000001u) {
785
0
      GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
786
0
      (*name_.UnsafeRawStringPointer())->clear();
787
0
    }
788
0
    if (cached_has_bits & 0x00000002u) {
789
0
      GOOGLE_DCHECK(!salted_hash_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
790
0
      (*salted_hash_.UnsafeRawStringPointer())->clear();
791
0
    }
792
0
    if (cached_has_bits & 0x00000004u) {
793
0
      GOOGLE_DCHECK(!creator_role_name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
794
0
      (*creator_role_name_.UnsafeRawStringPointer())->clear();
795
0
    }
796
0
  }
797
757
  ::memset(&login_, 0, static_cast<size_t>(
798
757
      reinterpret_cast<char*>(&superuser_) -
799
757
      reinterpret_cast<char*>(&login_)) + sizeof(superuser_));
800
757
  _has_bits_.Clear();
801
757
  _internal_metadata_.Clear();
802
757
}
803
804
bool CreateRoleRequestPB::MergePartialFromCodedStream(
805
757
    ::google::protobuf::io::CodedInputStream* input) {
806
3.78k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
807
757
  ::google::protobuf::uint32 tag;
808
  // @@protoc_insertion_point(parse_start:yb.master.CreateRoleRequestPB)
809
4.54k
  for (;;) {
810
4.54k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
811
4.54k
    tag = p.first;
812
4.54k
    if (!p.second) goto handle_unusual;
813
3.78k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
814
      // optional string name = 1;
815
757
      case 1: {
816
757
        if (static_cast< ::google::protobuf::uint8>(tag) ==
817
757
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
818
757
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
819
757
                input, this->mutable_name()));
820
757
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
821
757
            this->name().data(), static_cast<int>(this->name().length()),
822
757
            ::google::protobuf::internal::WireFormat::PARSE,
823
757
            "yb.master.CreateRoleRequestPB.name");
824
0
        } else {
825
0
          goto handle_unusual;
826
0
        }
827
757
        break;
828
757
      }
829
830
      // optional string salted_hash = 2;
831
757
      case 2: {
832
757
        if (static_cast< ::google::protobuf::uint8>(tag) ==
833
757
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
834
757
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
835
757
                input, this->mutable_salted_hash()));
836
757
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
837
757
            this->salted_hash().data(), static_cast<int>(this->salted_hash().length()),
838
757
            ::google::protobuf::internal::WireFormat::PARSE,
839
757
            "yb.master.CreateRoleRequestPB.salted_hash");
840
0
        } else {
841
0
          goto handle_unusual;
842
0
        }
843
757
        break;
844
757
      }
845
846
      // optional bool login = 3;
847
757
      case 3: {
848
757
        if (static_cast< ::google::protobuf::uint8>(tag) ==
849
757
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
850
757
          set_has_login();
851
757
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
852
757
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
853
757
                 input, &login_)));
854
0
        } else {
855
0
          goto handle_unusual;
856
0
        }
857
757
        break;
858
757
      }
859
860
      // optional bool superuser = 4;
861
757
      case 4: {
862
757
        if (static_cast< ::google::protobuf::uint8>(tag) ==
863
757
            static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
864
757
          set_has_superuser();
865
757
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
866
757
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
867
757
                 input, &superuser_)));
868
0
        } else {
869
0
          goto handle_unusual;
870
0
        }
871
757
        break;
872
757
      }
873
874
      // optional string creator_role_name = 5;
875
757
      case 5: {
876
757
        if (static_cast< ::google::protobuf::uint8>(tag) ==
877
757
            static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
878
757
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
879
757
                input, this->mutable_creator_role_name()));
880
757
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
881
757
            this->creator_role_name().data(), static_cast<int>(this->creator_role_name().length()),
882
757
            ::google::protobuf::internal::WireFormat::PARSE,
883
757
            "yb.master.CreateRoleRequestPB.creator_role_name");
884
0
        } else {
885
0
          goto handle_unusual;
886
0
        }
887
757
        break;
888
757
      }
889
890
0
      default: {
891
757
      handle_unusual:
892
757
        if (tag == 0) {
893
757
          goto success;
894
757
        }
895
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
896
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
897
0
        break;
898
0
      }
899
3.78k
    }
900
3.78k
  }
901
757
success:
902
  // @@protoc_insertion_point(parse_success:yb.master.CreateRoleRequestPB)
903
757
  return true;
904
0
failure:
905
  // @@protoc_insertion_point(parse_failure:yb.master.CreateRoleRequestPB)
906
0
  return false;
907
757
#undef DO_
908
757
}
909
910
void CreateRoleRequestPB::SerializeWithCachedSizes(
911
0
    ::google::protobuf::io::CodedOutputStream* output) const {
912
  // @@protoc_insertion_point(serialize_start:yb.master.CreateRoleRequestPB)
913
0
  ::google::protobuf::uint32 cached_has_bits = 0;
914
0
  (void) cached_has_bits;
915
916
0
  cached_has_bits = _has_bits_[0];
917
  // optional string name = 1;
918
0
  if (cached_has_bits & 0x00000001u) {
919
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
920
0
      this->name().data(), static_cast<int>(this->name().length()),
921
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
922
0
      "yb.master.CreateRoleRequestPB.name");
923
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
924
0
      1, this->name(), output);
925
0
  }
926
927
  // optional string salted_hash = 2;
928
0
  if (cached_has_bits & 0x00000002u) {
929
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
930
0
      this->salted_hash().data(), static_cast<int>(this->salted_hash().length()),
931
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
932
0
      "yb.master.CreateRoleRequestPB.salted_hash");
933
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
934
0
      2, this->salted_hash(), output);
935
0
  }
936
937
  // optional bool login = 3;
938
0
  if (cached_has_bits & 0x00000008u) {
939
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->login(), output);
940
0
  }
941
942
  // optional bool superuser = 4;
943
0
  if (cached_has_bits & 0x00000010u) {
944
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->superuser(), output);
945
0
  }
946
947
  // optional string creator_role_name = 5;
948
0
  if (cached_has_bits & 0x00000004u) {
949
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
950
0
      this->creator_role_name().data(), static_cast<int>(this->creator_role_name().length()),
951
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
952
0
      "yb.master.CreateRoleRequestPB.creator_role_name");
953
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
954
0
      5, this->creator_role_name(), output);
955
0
  }
956
957
0
  if (_internal_metadata_.have_unknown_fields()) {
958
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
959
0
        _internal_metadata_.unknown_fields(), output);
960
0
  }
961
  // @@protoc_insertion_point(serialize_end:yb.master.CreateRoleRequestPB)
962
0
}
963
964
::google::protobuf::uint8* CreateRoleRequestPB::InternalSerializeWithCachedSizesToArray(
965
757
    bool deterministic, ::google::protobuf::uint8* target) const {
966
757
  (void)deterministic; // Unused
967
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.CreateRoleRequestPB)
968
757
  ::google::protobuf::uint32 cached_has_bits = 0;
969
757
  (void) cached_has_bits;
970
971
757
  cached_has_bits = _has_bits_[0];
972
  // optional string name = 1;
973
757
  if (cached_has_bits & 0x00000001u) {
974
757
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
975
757
      this->name().data(), static_cast<int>(this->name().length()),
976
757
      ::google::protobuf::internal::WireFormat::SERIALIZE,
977
757
      "yb.master.CreateRoleRequestPB.name");
978
757
    target =
979
757
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
980
757
        1, this->name(), target);
981
757
  }
982
983
  // optional string salted_hash = 2;
984
757
  if (cached_has_bits & 0x00000002u) {
985
757
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
986
757
      this->salted_hash().data(), static_cast<int>(this->salted_hash().length()),
987
757
      ::google::protobuf::internal::WireFormat::SERIALIZE,
988
757
      "yb.master.CreateRoleRequestPB.salted_hash");
989
757
    target =
990
757
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
991
757
        2, this->salted_hash(), target);
992
757
  }
993
994
  // optional bool login = 3;
995
757
  if (cached_has_bits & 0x00000008u) {
996
757
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->login(), target);
997
757
  }
998
999
  // optional bool superuser = 4;
1000
757
  if (cached_has_bits & 0x00000010u) {
1001
757
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->superuser(), target);
1002
757
  }
1003
1004
  // optional string creator_role_name = 5;
1005
757
  if (cached_has_bits & 0x00000004u) {
1006
757
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1007
757
      this->creator_role_name().data(), static_cast<int>(this->creator_role_name().length()),
1008
757
      ::google::protobuf::internal::WireFormat::SERIALIZE,
1009
757
      "yb.master.CreateRoleRequestPB.creator_role_name");
1010
757
    target =
1011
757
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1012
757
        5, this->creator_role_name(), target);
1013
757
  }
1014
1015
757
  if (_internal_metadata_.have_unknown_fields()) {
1016
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1017
0
        _internal_metadata_.unknown_fields(), target);
1018
0
  }
1019
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.CreateRoleRequestPB)
1020
757
  return target;
1021
757
}
1022
1023
1.51k
size_t CreateRoleRequestPB::ByteSizeLong() const {
1024
// @@protoc_insertion_point(message_byte_size_start:yb.master.CreateRoleRequestPB)
1025
1.51k
  size_t total_size = 0;
1026
1027
1.51k
  if (_internal_metadata_.have_unknown_fields()) {
1028
0
    total_size +=
1029
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1030
0
        _internal_metadata_.unknown_fields());
1031
0
  }
1032
1.51k
  if (_has_bits_[0 / 32] & 31u) {
1033
    // optional string name = 1;
1034
1.51k
    if (has_name()) {
1035
1.51k
      total_size += 1 +
1036
1.51k
        ::google::protobuf::internal::WireFormatLite::StringSize(
1037
1.51k
          this->name());
1038
1.51k
    }
1039
1040
    // optional string salted_hash = 2;
1041
1.51k
    if (has_salted_hash()) {
1042
1.51k
      total_size += 1 +
1043
1.51k
        ::google::protobuf::internal::WireFormatLite::StringSize(
1044
1.51k
          this->salted_hash());
1045
1.51k
    }
1046
1047
    // optional string creator_role_name = 5;
1048
1.51k
    if (has_creator_role_name()) {
1049
1.51k
      total_size += 1 +
1050
1.51k
        ::google::protobuf::internal::WireFormatLite::StringSize(
1051
1.51k
          this->creator_role_name());
1052
1.51k
    }
1053
1054
    // optional bool login = 3;
1055
1.51k
    if (has_login()) {
1056
1.51k
      total_size += 1 + 1;
1057
1.51k
    }
1058
1059
    // optional bool superuser = 4;
1060
1.51k
    if (has_superuser()) {
1061
1.51k
      total_size += 1 + 1;
1062
1.51k
    }
1063
1064
1.51k
  }
1065
1.51k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1066
1.51k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1067
1.51k
  _cached_size_ = cached_size;
1068
1.51k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1069
1.51k
  return total_size;
1070
1.51k
}
1071
1072
0
void CreateRoleRequestPB::MergeFrom(const ::google::protobuf::Message& from) {
1073
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.CreateRoleRequestPB)
1074
0
  GOOGLE_DCHECK_NE(&from, this);
1075
0
  const CreateRoleRequestPB* source =
1076
0
      ::google::protobuf::internal::DynamicCastToGenerated<const CreateRoleRequestPB>(
1077
0
          &from);
1078
0
  if (source == NULL) {
1079
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.CreateRoleRequestPB)
1080
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1081
0
  } else {
1082
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.CreateRoleRequestPB)
1083
0
    MergeFrom(*source);
1084
0
  }
1085
0
}
1086
1087
0
void CreateRoleRequestPB::MergeFrom(const CreateRoleRequestPB& from) {
1088
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.CreateRoleRequestPB)
1089
0
  GOOGLE_DCHECK_NE(&from, this);
1090
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1091
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1092
0
  (void) cached_has_bits;
1093
1094
0
  cached_has_bits = from._has_bits_[0];
1095
0
  if (cached_has_bits & 31u) {
1096
0
    if (cached_has_bits & 0x00000001u) {
1097
0
      set_has_name();
1098
0
      name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
1099
0
    }
1100
0
    if (cached_has_bits & 0x00000002u) {
1101
0
      set_has_salted_hash();
1102
0
      salted_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.salted_hash_);
1103
0
    }
1104
0
    if (cached_has_bits & 0x00000004u) {
1105
0
      set_has_creator_role_name();
1106
0
      creator_role_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.creator_role_name_);
1107
0
    }
1108
0
    if (cached_has_bits & 0x00000008u) {
1109
0
      login_ = from.login_;
1110
0
    }
1111
0
    if (cached_has_bits & 0x00000010u) {
1112
0
      superuser_ = from.superuser_;
1113
0
    }
1114
0
    _has_bits_[0] |= cached_has_bits;
1115
0
  }
1116
0
}
1117
1118
0
void CreateRoleRequestPB::CopyFrom(const ::google::protobuf::Message& from) {
1119
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.CreateRoleRequestPB)
1120
0
  if (&from == this) return;
1121
0
  Clear();
1122
0
  MergeFrom(from);
1123
0
}
1124
1125
0
void CreateRoleRequestPB::CopyFrom(const CreateRoleRequestPB& from) {
1126
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.CreateRoleRequestPB)
1127
0
  if (&from == this) return;
1128
0
  Clear();
1129
0
  MergeFrom(from);
1130
0
}
1131
1132
1.51k
bool CreateRoleRequestPB::IsInitialized() const {
1133
1.51k
  return true;
1134
1.51k
}
1135
1136
0
void CreateRoleRequestPB::Swap(CreateRoleRequestPB* other) {
1137
0
  if (other == this) return;
1138
0
  InternalSwap(other);
1139
0
}
1140
0
void CreateRoleRequestPB::InternalSwap(CreateRoleRequestPB* other) {
1141
0
  using std::swap;
1142
0
  name_.Swap(&other->name_);
1143
0
  salted_hash_.Swap(&other->salted_hash_);
1144
0
  creator_role_name_.Swap(&other->creator_role_name_);
1145
0
  swap(login_, other->login_);
1146
0
  swap(superuser_, other->superuser_);
1147
0
  swap(_has_bits_[0], other->_has_bits_[0]);
1148
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
1149
0
  swap(_cached_size_, other->_cached_size_);
1150
0
}
1151
1152
2.27k
::google::protobuf::Metadata CreateRoleRequestPB::GetMetadata() const {
1153
2.27k
  protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::protobuf_AssignDescriptorsOnce();
1154
2.27k
  return ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::file_level_metadata[kIndexInFileMessages];
1155
2.27k
}
1156
1157
1158
// ===================================================================
1159
1160
15.8k
void CreateRoleResponsePB::InitAsDefaultInstance() {
1161
15.8k
  ::yb::master::_CreateRoleResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::master::MasterErrorPB*>(
1162
15.8k
      ::yb::master::MasterErrorPB::internal_default_instance());
1163
15.8k
}
1164
0
void CreateRoleResponsePB::clear_error() {
1165
0
  if (error_ != NULL) error_->Clear();
1166
0
  clear_has_error();
1167
0
}
1168
#if !defined(_MSC_VER) || _MSC_VER >= 1900
1169
const int CreateRoleResponsePB::kErrorFieldNumber;
1170
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
1171
1172
CreateRoleResponsePB::CreateRoleResponsePB()
1173
17.3k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1174
1.51k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
1175
1.51k
    ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::InitDefaultsCreateRoleResponsePB();
1176
1.51k
  }
1177
17.3k
  SharedCtor();
1178
  // @@protoc_insertion_point(constructor:yb.master.CreateRoleResponsePB)
1179
17.3k
}
1180
CreateRoleResponsePB::CreateRoleResponsePB(const CreateRoleResponsePB& from)
1181
  : ::google::protobuf::Message(),
1182
      _internal_metadata_(NULL),
1183
      _has_bits_(from._has_bits_),
1184
0
      _cached_size_(0) {
1185
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1186
0
  if (from.has_error()) {
1187
0
    error_ = new ::yb::master::MasterErrorPB(*from.error_);
1188
0
  } else {
1189
0
    error_ = NULL;
1190
0
  }
1191
  // @@protoc_insertion_point(copy_constructor:yb.master.CreateRoleResponsePB)
1192
0
}
1193
1194
17.3k
void CreateRoleResponsePB::SharedCtor() {
1195
17.3k
  _cached_size_ = 0;
1196
17.3k
  error_ = NULL;
1197
17.3k
}
1198
1199
1.51k
CreateRoleResponsePB::~CreateRoleResponsePB() {
1200
  // @@protoc_insertion_point(destructor:yb.master.CreateRoleResponsePB)
1201
1.51k
  SharedDtor();
1202
1.51k
}
1203
1204
1.51k
void CreateRoleResponsePB::SharedDtor() {
1205
1.51k
  if (this != internal_default_instance()) delete error_;
1206
1.51k
}
1207
1208
0
void CreateRoleResponsePB::SetCachedSize(int size) const {
1209
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1210
0
  _cached_size_ = size;
1211
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1212
0
}
1213
0
const ::google::protobuf::Descriptor* CreateRoleResponsePB::descriptor() {
1214
0
  ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::protobuf_AssignDescriptorsOnce();
1215
0
  return ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
1216
0
}
1217
1218
0
const CreateRoleResponsePB& CreateRoleResponsePB::default_instance() {
1219
0
  ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::InitDefaultsCreateRoleResponsePB();
1220
0
  return *internal_default_instance();
1221
0
}
1222
1223
0
CreateRoleResponsePB* CreateRoleResponsePB::New(::google::protobuf::Arena* arena) const {
1224
0
  CreateRoleResponsePB* n = new CreateRoleResponsePB;
1225
0
  if (arena != NULL) {
1226
0
    arena->Own(n);
1227
0
  }
1228
0
  return n;
1229
0
}
1230
1231
757
void CreateRoleResponsePB::Clear() {
1232
// @@protoc_insertion_point(message_clear_start:yb.master.CreateRoleResponsePB)
1233
757
  ::google::protobuf::uint32 cached_has_bits = 0;
1234
  // Prevent compiler warnings about cached_has_bits being unused
1235
757
  (void) cached_has_bits;
1236
1237
757
  cached_has_bits = _has_bits_[0];
1238
757
  if (cached_has_bits & 0x00000001u) {
1239
0
    GOOGLE_DCHECK(error_ != NULL);
1240
0
    error_->Clear();
1241
0
  }
1242
757
  _has_bits_.Clear();
1243
757
  _internal_metadata_.Clear();
1244
757
}
1245
1246
bool CreateRoleResponsePB::MergePartialFromCodedStream(
1247
757
    ::google::protobuf::io::CodedInputStream* input) {
1248
6
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
1249
757
  ::google::protobuf::uint32 tag;
1250
  // @@protoc_insertion_point(parse_start:yb.master.CreateRoleResponsePB)
1251
763
  for (;;) {
1252
763
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1253
763
    tag = p.first;
1254
763
    if (!p.second) goto handle_unusual;
1255
6
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1256
      // optional .yb.master.MasterErrorPB error = 1;
1257
6
      case 1: {
1258
6
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1259
6
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
1260
6
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
1261
6
               input, mutable_error()));
1262
0
        } else {
1263
0
          goto handle_unusual;
1264
0
        }
1265
6
        break;
1266
757
      }
1267
1268
0
      default: {
1269
757
      handle_unusual:
1270
757
        if (tag == 0) {
1271
757
          goto success;
1272
757
        }
1273
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
1274
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
1275
0
        break;
1276
0
      }
1277
6
    }
1278
6
  }
1279
757
success:
1280
  // @@protoc_insertion_point(parse_success:yb.master.CreateRoleResponsePB)
1281
757
  return true;
1282
0
failure:
1283
  // @@protoc_insertion_point(parse_failure:yb.master.CreateRoleResponsePB)
1284
0
  return false;
1285
757
#undef DO_
1286
757
}
1287
1288
void CreateRoleResponsePB::SerializeWithCachedSizes(
1289
0
    ::google::protobuf::io::CodedOutputStream* output) const {
1290
  // @@protoc_insertion_point(serialize_start:yb.master.CreateRoleResponsePB)
1291
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1292
0
  (void) cached_has_bits;
1293
1294
0
  cached_has_bits = _has_bits_[0];
1295
  // optional .yb.master.MasterErrorPB error = 1;
1296
0
  if (cached_has_bits & 0x00000001u) {
1297
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1298
0
      1, *this->error_, output);
1299
0
  }
1300
1301
0
  if (_internal_metadata_.have_unknown_fields()) {
1302
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1303
0
        _internal_metadata_.unknown_fields(), output);
1304
0
  }
1305
  // @@protoc_insertion_point(serialize_end:yb.master.CreateRoleResponsePB)
1306
0
}
1307
1308
::google::protobuf::uint8* CreateRoleResponsePB::InternalSerializeWithCachedSizesToArray(
1309
757
    bool deterministic, ::google::protobuf::uint8* target) const {
1310
757
  (void)deterministic; // Unused
1311
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.CreateRoleResponsePB)
1312
757
  ::google::protobuf::uint32 cached_has_bits = 0;
1313
757
  (void) cached_has_bits;
1314
1315
757
  cached_has_bits = _has_bits_[0];
1316
  // optional .yb.master.MasterErrorPB error = 1;
1317
757
  if (cached_has_bits & 0x00000001u) {
1318
6
    target = ::google::protobuf::internal::WireFormatLite::
1319
6
      InternalWriteMessageToArray(
1320
6
        1, *this->error_, deterministic, target);
1321
6
  }
1322
1323
757
  if (_internal_metadata_.have_unknown_fields()) {
1324
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1325
0
        _internal_metadata_.unknown_fields(), target);
1326
0
  }
1327
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.CreateRoleResponsePB)
1328
757
  return target;
1329
757
}
1330
1331
1.51k
size_t CreateRoleResponsePB::ByteSizeLong() const {
1332
// @@protoc_insertion_point(message_byte_size_start:yb.master.CreateRoleResponsePB)
1333
1.51k
  size_t total_size = 0;
1334
1335
1.51k
  if (_internal_metadata_.have_unknown_fields()) {
1336
0
    total_size +=
1337
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1338
0
        _internal_metadata_.unknown_fields());
1339
0
  }
1340
  // optional .yb.master.MasterErrorPB error = 1;
1341
1.51k
  if (has_error()) {
1342
12
    total_size += 1 +
1343
12
      ::google::protobuf::internal::WireFormatLite::MessageSize(
1344
12
        *this->error_);
1345
12
  }
1346
1347
1.51k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1348
1.51k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1349
1.51k
  _cached_size_ = cached_size;
1350
1.51k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1351
1.51k
  return total_size;
1352
1.51k
}
1353
1354
0
void CreateRoleResponsePB::MergeFrom(const ::google::protobuf::Message& from) {
1355
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.CreateRoleResponsePB)
1356
0
  GOOGLE_DCHECK_NE(&from, this);
1357
0
  const CreateRoleResponsePB* source =
1358
0
      ::google::protobuf::internal::DynamicCastToGenerated<const CreateRoleResponsePB>(
1359
0
          &from);
1360
0
  if (source == NULL) {
1361
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.CreateRoleResponsePB)
1362
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1363
0
  } else {
1364
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.CreateRoleResponsePB)
1365
0
    MergeFrom(*source);
1366
0
  }
1367
0
}
1368
1369
0
void CreateRoleResponsePB::MergeFrom(const CreateRoleResponsePB& from) {
1370
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.CreateRoleResponsePB)
1371
0
  GOOGLE_DCHECK_NE(&from, this);
1372
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1373
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1374
0
  (void) cached_has_bits;
1375
1376
0
  if (from.has_error()) {
1377
0
    mutable_error()->::yb::master::MasterErrorPB::MergeFrom(from.error());
1378
0
  }
1379
0
}
1380
1381
0
void CreateRoleResponsePB::CopyFrom(const ::google::protobuf::Message& from) {
1382
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.CreateRoleResponsePB)
1383
0
  if (&from == this) return;
1384
0
  Clear();
1385
0
  MergeFrom(from);
1386
0
}
1387
1388
0
void CreateRoleResponsePB::CopyFrom(const CreateRoleResponsePB& from) {
1389
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.CreateRoleResponsePB)
1390
0
  if (&from == this) return;
1391
0
  Clear();
1392
0
  MergeFrom(from);
1393
0
}
1394
1395
1.51k
bool CreateRoleResponsePB::IsInitialized() const {
1396
1.51k
  if (has_error()) {
1397
12
    if (!this->error_->IsInitialized()) return false;
1398
1.51k
  }
1399
1.51k
  return true;
1400
1.51k
}
1401
1402
0
void CreateRoleResponsePB::Swap(CreateRoleResponsePB* other) {
1403
0
  if (other == this) return;
1404
0
  InternalSwap(other);
1405
0
}
1406
0
void CreateRoleResponsePB::InternalSwap(CreateRoleResponsePB* other) {
1407
0
  using std::swap;
1408
0
  swap(error_, other->error_);
1409
0
  swap(_has_bits_[0], other->_has_bits_[0]);
1410
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
1411
0
  swap(_cached_size_, other->_cached_size_);
1412
0
}
1413
1414
0
::google::protobuf::Metadata CreateRoleResponsePB::GetMetadata() const {
1415
0
  protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::protobuf_AssignDescriptorsOnce();
1416
0
  return ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::file_level_metadata[kIndexInFileMessages];
1417
0
}
1418
1419
1420
// ===================================================================
1421
1422
15.8k
void AlterRoleRequestPB::InitAsDefaultInstance() {
1423
15.8k
}
1424
#if !defined(_MSC_VER) || _MSC_VER >= 1900
1425
const int AlterRoleRequestPB::kNameFieldNumber;
1426
const int AlterRoleRequestPB::kSaltedHashFieldNumber;
1427
const int AlterRoleRequestPB::kLoginFieldNumber;
1428
const int AlterRoleRequestPB::kSuperuserFieldNumber;
1429
const int AlterRoleRequestPB::kCurrentRoleFieldNumber;
1430
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
1431
1432
AlterRoleRequestPB::AlterRoleRequestPB()
1433
15.9k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1434
116
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
1435
116
    ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::InitDefaultsAlterRoleRequestPB();
1436
116
  }
1437
15.9k
  SharedCtor();
1438
  // @@protoc_insertion_point(constructor:yb.master.AlterRoleRequestPB)
1439
15.9k
}
1440
AlterRoleRequestPB::AlterRoleRequestPB(const AlterRoleRequestPB& from)
1441
  : ::google::protobuf::Message(),
1442
      _internal_metadata_(NULL),
1443
      _has_bits_(from._has_bits_),
1444
0
      _cached_size_(0) {
1445
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1446
0
  name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1447
0
  if (from.has_name()) {
1448
0
    name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
1449
0
  }
1450
0
  salted_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1451
0
  if (from.has_salted_hash()) {
1452
0
    salted_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.salted_hash_);
1453
0
  }
1454
0
  current_role_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1455
0
  if (from.has_current_role()) {
1456
0
    current_role_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.current_role_);
1457
0
  }
1458
0
  ::memcpy(&login_, &from.login_,
1459
0
    static_cast<size_t>(reinterpret_cast<char*>(&superuser_) -
1460
0
    reinterpret_cast<char*>(&login_)) + sizeof(superuser_));
1461
  // @@protoc_insertion_point(copy_constructor:yb.master.AlterRoleRequestPB)
1462
0
}
1463
1464
15.9k
void AlterRoleRequestPB::SharedCtor() {
1465
15.9k
  _cached_size_ = 0;
1466
15.9k
  name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1467
15.9k
  salted_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1468
15.9k
  current_role_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1469
15.9k
  ::memset(&login_, 0, static_cast<size_t>(
1470
15.9k
      reinterpret_cast<char*>(&superuser_) -
1471
15.9k
      reinterpret_cast<char*>(&login_)) + sizeof(superuser_));
1472
15.9k
}
1473
1474
116
AlterRoleRequestPB::~AlterRoleRequestPB() {
1475
  // @@protoc_insertion_point(destructor:yb.master.AlterRoleRequestPB)
1476
116
  SharedDtor();
1477
116
}
1478
1479
116
void AlterRoleRequestPB::SharedDtor() {
1480
116
  name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1481
116
  salted_hash_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1482
116
  current_role_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1483
116
}
1484
1485
0
void AlterRoleRequestPB::SetCachedSize(int size) const {
1486
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1487
0
  _cached_size_ = size;
1488
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1489
0
}
1490
0
const ::google::protobuf::Descriptor* AlterRoleRequestPB::descriptor() {
1491
0
  ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::protobuf_AssignDescriptorsOnce();
1492
0
  return ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
1493
0
}
1494
1495
0
const AlterRoleRequestPB& AlterRoleRequestPB::default_instance() {
1496
0
  ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::InitDefaultsAlterRoleRequestPB();
1497
0
  return *internal_default_instance();
1498
0
}
1499
1500
0
AlterRoleRequestPB* AlterRoleRequestPB::New(::google::protobuf::Arena* arena) const {
1501
0
  AlterRoleRequestPB* n = new AlterRoleRequestPB;
1502
0
  if (arena != NULL) {
1503
0
    arena->Own(n);
1504
0
  }
1505
0
  return n;
1506
0
}
1507
1508
58
void AlterRoleRequestPB::Clear() {
1509
// @@protoc_insertion_point(message_clear_start:yb.master.AlterRoleRequestPB)
1510
58
  ::google::protobuf::uint32 cached_has_bits = 0;
1511
  // Prevent compiler warnings about cached_has_bits being unused
1512
58
  (void) cached_has_bits;
1513
1514
58
  cached_has_bits = _has_bits_[0];
1515
58
  if (cached_has_bits & 7u) {
1516
0
    if (cached_has_bits & 0x00000001u) {
1517
0
      GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
1518
0
      (*name_.UnsafeRawStringPointer())->clear();
1519
0
    }
1520
0
    if (cached_has_bits & 0x00000002u) {
1521
0
      GOOGLE_DCHECK(!salted_hash_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
1522
0
      (*salted_hash_.UnsafeRawStringPointer())->clear();
1523
0
    }
1524
0
    if (cached_has_bits & 0x00000004u) {
1525
0
      GOOGLE_DCHECK(!current_role_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
1526
0
      (*current_role_.UnsafeRawStringPointer())->clear();
1527
0
    }
1528
0
  }
1529
58
  ::memset(&login_, 0, static_cast<size_t>(
1530
58
      reinterpret_cast<char*>(&superuser_) -
1531
58
      reinterpret_cast<char*>(&login_)) + sizeof(superuser_));
1532
58
  _has_bits_.Clear();
1533
58
  _internal_metadata_.Clear();
1534
58
}
1535
1536
bool AlterRoleRequestPB::MergePartialFromCodedStream(
1537
58
    ::google::protobuf::io::CodedInputStream* input) {
1538
184
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
1539
58
  ::google::protobuf::uint32 tag;
1540
  // @@protoc_insertion_point(parse_start:yb.master.AlterRoleRequestPB)
1541
242
  for (;;) {
1542
242
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1543
242
    tag = p.first;
1544
242
    if (!p.second) goto handle_unusual;
1545
184
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1546
      // optional string name = 1;
1547
58
      case 1: {
1548
58
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1549
58
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
1550
58
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1551
58
                input, this->mutable_name()));
1552
58
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1553
58
            this->name().data(), static_cast<int>(this->name().length()),
1554
58
            ::google::protobuf::internal::WireFormat::PARSE,
1555
58
            "yb.master.AlterRoleRequestPB.name");
1556
0
        } else {
1557
0
          goto handle_unusual;
1558
0
        }
1559
58
        break;
1560
58
      }
1561
1562
      // optional string salted_hash = 2;
1563
9
      case 2: {
1564
9
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1565
9
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
1566
9
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1567
9
                input, this->mutable_salted_hash()));
1568
9
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1569
9
            this->salted_hash().data(), static_cast<int>(this->salted_hash().length()),
1570
9
            ::google::protobuf::internal::WireFormat::PARSE,
1571
9
            "yb.master.AlterRoleRequestPB.salted_hash");
1572
0
        } else {
1573
0
          goto handle_unusual;
1574
0
        }
1575
9
        break;
1576
9
      }
1577
1578
      // optional bool login = 3;
1579
13
      case 3: {
1580
13
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1581
13
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
1582
13
          set_has_login();
1583
13
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1584
13
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
1585
13
                 input, &login_)));
1586
0
        } else {
1587
0
          goto handle_unusual;
1588
0
        }
1589
13
        break;
1590
13
      }
1591
1592
      // optional bool superuser = 4;
1593
46
      case 4: {
1594
46
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1595
46
            static_cast< ::google::protobuf::uint8>(32u /* 32 & 0xFF */)) {
1596
46
          set_has_superuser();
1597
46
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1598
46
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
1599
46
                 input, &superuser_)));
1600
0
        } else {
1601
0
          goto handle_unusual;
1602
0
        }
1603
46
        break;
1604
46
      }
1605
1606
      // optional string current_role = 5;
1607
58
      case 5: {
1608
58
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1609
58
            static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
1610
58
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1611
58
                input, this->mutable_current_role()));
1612
58
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1613
58
            this->current_role().data(), static_cast<int>(this->current_role().length()),
1614
58
            ::google::protobuf::internal::WireFormat::PARSE,
1615
58
            "yb.master.AlterRoleRequestPB.current_role");
1616
0
        } else {
1617
0
          goto handle_unusual;
1618
0
        }
1619
58
        break;
1620
58
      }
1621
1622
0
      default: {
1623
58
      handle_unusual:
1624
58
        if (tag == 0) {
1625
58
          goto success;
1626
58
        }
1627
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
1628
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
1629
0
        break;
1630
0
      }
1631
184
    }
1632
184
  }
1633
58
success:
1634
  // @@protoc_insertion_point(parse_success:yb.master.AlterRoleRequestPB)
1635
58
  return true;
1636
0
failure:
1637
  // @@protoc_insertion_point(parse_failure:yb.master.AlterRoleRequestPB)
1638
0
  return false;
1639
58
#undef DO_
1640
58
}
1641
1642
void AlterRoleRequestPB::SerializeWithCachedSizes(
1643
0
    ::google::protobuf::io::CodedOutputStream* output) const {
1644
  // @@protoc_insertion_point(serialize_start:yb.master.AlterRoleRequestPB)
1645
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1646
0
  (void) cached_has_bits;
1647
1648
0
  cached_has_bits = _has_bits_[0];
1649
  // optional string name = 1;
1650
0
  if (cached_has_bits & 0x00000001u) {
1651
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1652
0
      this->name().data(), static_cast<int>(this->name().length()),
1653
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
1654
0
      "yb.master.AlterRoleRequestPB.name");
1655
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1656
0
      1, this->name(), output);
1657
0
  }
1658
1659
  // optional string salted_hash = 2;
1660
0
  if (cached_has_bits & 0x00000002u) {
1661
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1662
0
      this->salted_hash().data(), static_cast<int>(this->salted_hash().length()),
1663
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
1664
0
      "yb.master.AlterRoleRequestPB.salted_hash");
1665
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1666
0
      2, this->salted_hash(), output);
1667
0
  }
1668
1669
  // optional bool login = 3;
1670
0
  if (cached_has_bits & 0x00000008u) {
1671
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->login(), output);
1672
0
  }
1673
1674
  // optional bool superuser = 4;
1675
0
  if (cached_has_bits & 0x00000010u) {
1676
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->superuser(), output);
1677
0
  }
1678
1679
  // optional string current_role = 5;
1680
0
  if (cached_has_bits & 0x00000004u) {
1681
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1682
0
      this->current_role().data(), static_cast<int>(this->current_role().length()),
1683
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
1684
0
      "yb.master.AlterRoleRequestPB.current_role");
1685
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
1686
0
      5, this->current_role(), output);
1687
0
  }
1688
1689
0
  if (_internal_metadata_.have_unknown_fields()) {
1690
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1691
0
        _internal_metadata_.unknown_fields(), output);
1692
0
  }
1693
  // @@protoc_insertion_point(serialize_end:yb.master.AlterRoleRequestPB)
1694
0
}
1695
1696
::google::protobuf::uint8* AlterRoleRequestPB::InternalSerializeWithCachedSizesToArray(
1697
58
    bool deterministic, ::google::protobuf::uint8* target) const {
1698
58
  (void)deterministic; // Unused
1699
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.AlterRoleRequestPB)
1700
58
  ::google::protobuf::uint32 cached_has_bits = 0;
1701
58
  (void) cached_has_bits;
1702
1703
58
  cached_has_bits = _has_bits_[0];
1704
  // optional string name = 1;
1705
58
  if (cached_has_bits & 0x00000001u) {
1706
58
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1707
58
      this->name().data(), static_cast<int>(this->name().length()),
1708
58
      ::google::protobuf::internal::WireFormat::SERIALIZE,
1709
58
      "yb.master.AlterRoleRequestPB.name");
1710
58
    target =
1711
58
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1712
58
        1, this->name(), target);
1713
58
  }
1714
1715
  // optional string salted_hash = 2;
1716
58
  if (cached_has_bits & 0x00000002u) {
1717
9
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1718
9
      this->salted_hash().data(), static_cast<int>(this->salted_hash().length()),
1719
9
      ::google::protobuf::internal::WireFormat::SERIALIZE,
1720
9
      "yb.master.AlterRoleRequestPB.salted_hash");
1721
9
    target =
1722
9
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1723
9
        2, this->salted_hash(), target);
1724
9
  }
1725
1726
  // optional bool login = 3;
1727
58
  if (cached_has_bits & 0x00000008u) {
1728
13
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->login(), target);
1729
13
  }
1730
1731
  // optional bool superuser = 4;
1732
58
  if (cached_has_bits & 0x00000010u) {
1733
46
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, this->superuser(), target);
1734
46
  }
1735
1736
  // optional string current_role = 5;
1737
58
  if (cached_has_bits & 0x00000004u) {
1738
58
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
1739
58
      this->current_role().data(), static_cast<int>(this->current_role().length()),
1740
58
      ::google::protobuf::internal::WireFormat::SERIALIZE,
1741
58
      "yb.master.AlterRoleRequestPB.current_role");
1742
58
    target =
1743
58
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1744
58
        5, this->current_role(), target);
1745
58
  }
1746
1747
58
  if (_internal_metadata_.have_unknown_fields()) {
1748
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1749
0
        _internal_metadata_.unknown_fields(), target);
1750
0
  }
1751
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.AlterRoleRequestPB)
1752
58
  return target;
1753
58
}
1754
1755
116
size_t AlterRoleRequestPB::ByteSizeLong() const {
1756
// @@protoc_insertion_point(message_byte_size_start:yb.master.AlterRoleRequestPB)
1757
116
  size_t total_size = 0;
1758
1759
116
  if (_internal_metadata_.have_unknown_fields()) {
1760
0
    total_size +=
1761
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1762
0
        _internal_metadata_.unknown_fields());
1763
0
  }
1764
116
  if (_has_bits_[0 / 32] & 31u) {
1765
    // optional string name = 1;
1766
116
    if (has_name()) {
1767
116
      total_size += 1 +
1768
116
        ::google::protobuf::internal::WireFormatLite::StringSize(
1769
116
          this->name());
1770
116
    }
1771
1772
    // optional string salted_hash = 2;
1773
116
    if (has_salted_hash()) {
1774
18
      total_size += 1 +
1775
18
        ::google::protobuf::internal::WireFormatLite::StringSize(
1776
18
          this->salted_hash());
1777
18
    }
1778
1779
    // optional string current_role = 5;
1780
116
    if (has_current_role()) {
1781
116
      total_size += 1 +
1782
116
        ::google::protobuf::internal::WireFormatLite::StringSize(
1783
116
          this->current_role());
1784
116
    }
1785
1786
    // optional bool login = 3;
1787
116
    if (has_login()) {
1788
26
      total_size += 1 + 1;
1789
26
    }
1790
1791
    // optional bool superuser = 4;
1792
116
    if (has_superuser()) {
1793
92
      total_size += 1 + 1;
1794
92
    }
1795
1796
116
  }
1797
116
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1798
116
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1799
116
  _cached_size_ = cached_size;
1800
116
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1801
116
  return total_size;
1802
116
}
1803
1804
0
void AlterRoleRequestPB::MergeFrom(const ::google::protobuf::Message& from) {
1805
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.AlterRoleRequestPB)
1806
0
  GOOGLE_DCHECK_NE(&from, this);
1807
0
  const AlterRoleRequestPB* source =
1808
0
      ::google::protobuf::internal::DynamicCastToGenerated<const AlterRoleRequestPB>(
1809
0
          &from);
1810
0
  if (source == NULL) {
1811
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.AlterRoleRequestPB)
1812
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1813
0
  } else {
1814
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.AlterRoleRequestPB)
1815
0
    MergeFrom(*source);
1816
0
  }
1817
0
}
1818
1819
0
void AlterRoleRequestPB::MergeFrom(const AlterRoleRequestPB& from) {
1820
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.AlterRoleRequestPB)
1821
0
  GOOGLE_DCHECK_NE(&from, this);
1822
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1823
0
  ::google::protobuf::uint32 cached_has_bits = 0;
1824
0
  (void) cached_has_bits;
1825
1826
0
  cached_has_bits = from._has_bits_[0];
1827
0
  if (cached_has_bits & 31u) {
1828
0
    if (cached_has_bits & 0x00000001u) {
1829
0
      set_has_name();
1830
0
      name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
1831
0
    }
1832
0
    if (cached_has_bits & 0x00000002u) {
1833
0
      set_has_salted_hash();
1834
0
      salted_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.salted_hash_);
1835
0
    }
1836
0
    if (cached_has_bits & 0x00000004u) {
1837
0
      set_has_current_role();
1838
0
      current_role_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.current_role_);
1839
0
    }
1840
0
    if (cached_has_bits & 0x00000008u) {
1841
0
      login_ = from.login_;
1842
0
    }
1843
0
    if (cached_has_bits & 0x00000010u) {
1844
0
      superuser_ = from.superuser_;
1845
0
    }
1846
0
    _has_bits_[0] |= cached_has_bits;
1847
0
  }
1848
0
}
1849
1850
0
void AlterRoleRequestPB::CopyFrom(const ::google::protobuf::Message& from) {
1851
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.AlterRoleRequestPB)
1852
0
  if (&from == this) return;
1853
0
  Clear();
1854
0
  MergeFrom(from);
1855
0
}
1856
1857
0
void AlterRoleRequestPB::CopyFrom(const AlterRoleRequestPB& from) {
1858
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.AlterRoleRequestPB)
1859
0
  if (&from == this) return;
1860
0
  Clear();
1861
0
  MergeFrom(from);
1862
0
}
1863
1864
116
bool AlterRoleRequestPB::IsInitialized() const {
1865
116
  return true;
1866
116
}
1867
1868
0
void AlterRoleRequestPB::Swap(AlterRoleRequestPB* other) {
1869
0
  if (other == this) return;
1870
0
  InternalSwap(other);
1871
0
}
1872
0
void AlterRoleRequestPB::InternalSwap(AlterRoleRequestPB* other) {
1873
0
  using std::swap;
1874
0
  name_.Swap(&other->name_);
1875
0
  salted_hash_.Swap(&other->salted_hash_);
1876
0
  current_role_.Swap(&other->current_role_);
1877
0
  swap(login_, other->login_);
1878
0
  swap(superuser_, other->superuser_);
1879
0
  swap(_has_bits_[0], other->_has_bits_[0]);
1880
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
1881
0
  swap(_cached_size_, other->_cached_size_);
1882
0
}
1883
1884
58
::google::protobuf::Metadata AlterRoleRequestPB::GetMetadata() const {
1885
58
  protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::protobuf_AssignDescriptorsOnce();
1886
58
  return ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::file_level_metadata[kIndexInFileMessages];
1887
58
}
1888
1889
1890
// ===================================================================
1891
1892
15.8k
void AlterRoleResponsePB::InitAsDefaultInstance() {
1893
15.8k
  ::yb::master::_AlterRoleResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::master::MasterErrorPB*>(
1894
15.8k
      ::yb::master::MasterErrorPB::internal_default_instance());
1895
15.8k
}
1896
0
void AlterRoleResponsePB::clear_error() {
1897
0
  if (error_ != NULL) error_->Clear();
1898
0
  clear_has_error();
1899
0
}
1900
#if !defined(_MSC_VER) || _MSC_VER >= 1900
1901
const int AlterRoleResponsePB::kErrorFieldNumber;
1902
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
1903
1904
AlterRoleResponsePB::AlterRoleResponsePB()
1905
15.9k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
1906
116
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
1907
116
    ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::InitDefaultsAlterRoleResponsePB();
1908
116
  }
1909
15.9k
  SharedCtor();
1910
  // @@protoc_insertion_point(constructor:yb.master.AlterRoleResponsePB)
1911
15.9k
}
1912
AlterRoleResponsePB::AlterRoleResponsePB(const AlterRoleResponsePB& from)
1913
  : ::google::protobuf::Message(),
1914
      _internal_metadata_(NULL),
1915
      _has_bits_(from._has_bits_),
1916
0
      _cached_size_(0) {
1917
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
1918
0
  if (from.has_error()) {
1919
0
    error_ = new ::yb::master::MasterErrorPB(*from.error_);
1920
0
  } else {
1921
0
    error_ = NULL;
1922
0
  }
1923
  // @@protoc_insertion_point(copy_constructor:yb.master.AlterRoleResponsePB)
1924
0
}
1925
1926
15.9k
void AlterRoleResponsePB::SharedCtor() {
1927
15.9k
  _cached_size_ = 0;
1928
15.9k
  error_ = NULL;
1929
15.9k
}
1930
1931
116
AlterRoleResponsePB::~AlterRoleResponsePB() {
1932
  // @@protoc_insertion_point(destructor:yb.master.AlterRoleResponsePB)
1933
116
  SharedDtor();
1934
116
}
1935
1936
116
void AlterRoleResponsePB::SharedDtor() {
1937
116
  if (this != internal_default_instance()) delete error_;
1938
116
}
1939
1940
0
void AlterRoleResponsePB::SetCachedSize(int size) const {
1941
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1942
0
  _cached_size_ = size;
1943
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1944
0
}
1945
0
const ::google::protobuf::Descriptor* AlterRoleResponsePB::descriptor() {
1946
0
  ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::protobuf_AssignDescriptorsOnce();
1947
0
  return ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
1948
0
}
1949
1950
0
const AlterRoleResponsePB& AlterRoleResponsePB::default_instance() {
1951
0
  ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::InitDefaultsAlterRoleResponsePB();
1952
0
  return *internal_default_instance();
1953
0
}
1954
1955
0
AlterRoleResponsePB* AlterRoleResponsePB::New(::google::protobuf::Arena* arena) const {
1956
0
  AlterRoleResponsePB* n = new AlterRoleResponsePB;
1957
0
  if (arena != NULL) {
1958
0
    arena->Own(n);
1959
0
  }
1960
0
  return n;
1961
0
}
1962
1963
58
void AlterRoleResponsePB::Clear() {
1964
// @@protoc_insertion_point(message_clear_start:yb.master.AlterRoleResponsePB)
1965
58
  ::google::protobuf::uint32 cached_has_bits = 0;
1966
  // Prevent compiler warnings about cached_has_bits being unused
1967
58
  (void) cached_has_bits;
1968
1969
58
  cached_has_bits = _has_bits_[0];
1970
58
  if (cached_has_bits & 0x00000001u) {
1971
0
    GOOGLE_DCHECK(error_ != NULL);
1972
0
    error_->Clear();
1973
0
  }
1974
58
  _has_bits_.Clear();
1975
58
  _internal_metadata_.Clear();
1976
58
}
1977
1978
bool AlterRoleResponsePB::MergePartialFromCodedStream(
1979
58
    ::google::protobuf::io::CodedInputStream* input) {
1980
13
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
1981
58
  ::google::protobuf::uint32 tag;
1982
  // @@protoc_insertion_point(parse_start:yb.master.AlterRoleResponsePB)
1983
71
  for (;;) {
1984
71
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1985
71
    tag = p.first;
1986
71
    if (!p.second) goto handle_unusual;
1987
13
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1988
      // optional .yb.master.MasterErrorPB error = 1;
1989
13
      case 1: {
1990
13
        if (static_cast< ::google::protobuf::uint8>(tag) ==
1991
13
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
1992
13
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
1993
13
               input, mutable_error()));
1994
0
        } else {
1995
0
          goto handle_unusual;
1996
0
        }
1997
13
        break;
1998
58
      }
1999
2000
0
      default: {
2001
58
      handle_unusual:
2002
58
        if (tag == 0) {
2003
58
          goto success;
2004
58
        }
2005
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
2006
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
2007
0
        break;
2008
0
      }
2009
13
    }
2010
13
  }
2011
58
success:
2012
  // @@protoc_insertion_point(parse_success:yb.master.AlterRoleResponsePB)
2013
58
  return true;
2014
0
failure:
2015
  // @@protoc_insertion_point(parse_failure:yb.master.AlterRoleResponsePB)
2016
0
  return false;
2017
58
#undef DO_
2018
58
}
2019
2020
void AlterRoleResponsePB::SerializeWithCachedSizes(
2021
0
    ::google::protobuf::io::CodedOutputStream* output) const {
2022
  // @@protoc_insertion_point(serialize_start:yb.master.AlterRoleResponsePB)
2023
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2024
0
  (void) cached_has_bits;
2025
2026
0
  cached_has_bits = _has_bits_[0];
2027
  // optional .yb.master.MasterErrorPB error = 1;
2028
0
  if (cached_has_bits & 0x00000001u) {
2029
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2030
0
      1, *this->error_, output);
2031
0
  }
2032
2033
0
  if (_internal_metadata_.have_unknown_fields()) {
2034
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2035
0
        _internal_metadata_.unknown_fields(), output);
2036
0
  }
2037
  // @@protoc_insertion_point(serialize_end:yb.master.AlterRoleResponsePB)
2038
0
}
2039
2040
::google::protobuf::uint8* AlterRoleResponsePB::InternalSerializeWithCachedSizesToArray(
2041
58
    bool deterministic, ::google::protobuf::uint8* target) const {
2042
58
  (void)deterministic; // Unused
2043
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.AlterRoleResponsePB)
2044
58
  ::google::protobuf::uint32 cached_has_bits = 0;
2045
58
  (void) cached_has_bits;
2046
2047
58
  cached_has_bits = _has_bits_[0];
2048
  // optional .yb.master.MasterErrorPB error = 1;
2049
58
  if (cached_has_bits & 0x00000001u) {
2050
13
    target = ::google::protobuf::internal::WireFormatLite::
2051
13
      InternalWriteMessageToArray(
2052
13
        1, *this->error_, deterministic, target);
2053
13
  }
2054
2055
58
  if (_internal_metadata_.have_unknown_fields()) {
2056
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2057
0
        _internal_metadata_.unknown_fields(), target);
2058
0
  }
2059
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.AlterRoleResponsePB)
2060
58
  return target;
2061
58
}
2062
2063
116
size_t AlterRoleResponsePB::ByteSizeLong() const {
2064
// @@protoc_insertion_point(message_byte_size_start:yb.master.AlterRoleResponsePB)
2065
116
  size_t total_size = 0;
2066
2067
116
  if (_internal_metadata_.have_unknown_fields()) {
2068
0
    total_size +=
2069
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2070
0
        _internal_metadata_.unknown_fields());
2071
0
  }
2072
  // optional .yb.master.MasterErrorPB error = 1;
2073
116
  if (has_error()) {
2074
26
    total_size += 1 +
2075
26
      ::google::protobuf::internal::WireFormatLite::MessageSize(
2076
26
        *this->error_);
2077
26
  }
2078
2079
116
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2080
116
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2081
116
  _cached_size_ = cached_size;
2082
116
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2083
116
  return total_size;
2084
116
}
2085
2086
0
void AlterRoleResponsePB::MergeFrom(const ::google::protobuf::Message& from) {
2087
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.AlterRoleResponsePB)
2088
0
  GOOGLE_DCHECK_NE(&from, this);
2089
0
  const AlterRoleResponsePB* source =
2090
0
      ::google::protobuf::internal::DynamicCastToGenerated<const AlterRoleResponsePB>(
2091
0
          &from);
2092
0
  if (source == NULL) {
2093
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.AlterRoleResponsePB)
2094
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2095
0
  } else {
2096
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.AlterRoleResponsePB)
2097
0
    MergeFrom(*source);
2098
0
  }
2099
0
}
2100
2101
0
void AlterRoleResponsePB::MergeFrom(const AlterRoleResponsePB& from) {
2102
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.AlterRoleResponsePB)
2103
0
  GOOGLE_DCHECK_NE(&from, this);
2104
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2105
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2106
0
  (void) cached_has_bits;
2107
2108
0
  if (from.has_error()) {
2109
0
    mutable_error()->::yb::master::MasterErrorPB::MergeFrom(from.error());
2110
0
  }
2111
0
}
2112
2113
0
void AlterRoleResponsePB::CopyFrom(const ::google::protobuf::Message& from) {
2114
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.AlterRoleResponsePB)
2115
0
  if (&from == this) return;
2116
0
  Clear();
2117
0
  MergeFrom(from);
2118
0
}
2119
2120
0
void AlterRoleResponsePB::CopyFrom(const AlterRoleResponsePB& from) {
2121
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.AlterRoleResponsePB)
2122
0
  if (&from == this) return;
2123
0
  Clear();
2124
0
  MergeFrom(from);
2125
0
}
2126
2127
116
bool AlterRoleResponsePB::IsInitialized() const {
2128
116
  if (has_error()) {
2129
26
    if (!this->error_->IsInitialized()) return false;
2130
116
  }
2131
116
  return true;
2132
116
}
2133
2134
0
void AlterRoleResponsePB::Swap(AlterRoleResponsePB* other) {
2135
0
  if (other == this) return;
2136
0
  InternalSwap(other);
2137
0
}
2138
0
void AlterRoleResponsePB::InternalSwap(AlterRoleResponsePB* other) {
2139
0
  using std::swap;
2140
0
  swap(error_, other->error_);
2141
0
  swap(_has_bits_[0], other->_has_bits_[0]);
2142
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
2143
0
  swap(_cached_size_, other->_cached_size_);
2144
0
}
2145
2146
0
::google::protobuf::Metadata AlterRoleResponsePB::GetMetadata() const {
2147
0
  protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::protobuf_AssignDescriptorsOnce();
2148
0
  return ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::file_level_metadata[kIndexInFileMessages];
2149
0
}
2150
2151
2152
// ===================================================================
2153
2154
15.8k
void DeleteRoleRequestPB::InitAsDefaultInstance() {
2155
15.8k
}
2156
#if !defined(_MSC_VER) || _MSC_VER >= 1900
2157
const int DeleteRoleRequestPB::kNameFieldNumber;
2158
const int DeleteRoleRequestPB::kCurrentRoleFieldNumber;
2159
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
2160
2161
DeleteRoleRequestPB::DeleteRoleRequestPB()
2162
17.3k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
2163
1.46k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
2164
1.46k
    ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::InitDefaultsDeleteRoleRequestPB();
2165
1.46k
  }
2166
17.3k
  SharedCtor();
2167
  // @@protoc_insertion_point(constructor:yb.master.DeleteRoleRequestPB)
2168
17.3k
}
2169
DeleteRoleRequestPB::DeleteRoleRequestPB(const DeleteRoleRequestPB& from)
2170
  : ::google::protobuf::Message(),
2171
      _internal_metadata_(NULL),
2172
      _has_bits_(from._has_bits_),
2173
0
      _cached_size_(0) {
2174
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2175
0
  name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2176
0
  if (from.has_name()) {
2177
0
    name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
2178
0
  }
2179
0
  current_role_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2180
0
  if (from.has_current_role()) {
2181
0
    current_role_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.current_role_);
2182
0
  }
2183
  // @@protoc_insertion_point(copy_constructor:yb.master.DeleteRoleRequestPB)
2184
0
}
2185
2186
17.3k
void DeleteRoleRequestPB::SharedCtor() {
2187
17.3k
  _cached_size_ = 0;
2188
17.3k
  name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2189
17.3k
  current_role_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2190
17.3k
}
2191
2192
1.46k
DeleteRoleRequestPB::~DeleteRoleRequestPB() {
2193
  // @@protoc_insertion_point(destructor:yb.master.DeleteRoleRequestPB)
2194
1.46k
  SharedDtor();
2195
1.46k
}
2196
2197
1.46k
void DeleteRoleRequestPB::SharedDtor() {
2198
1.46k
  name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2199
1.46k
  current_role_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2200
1.46k
}
2201
2202
0
void DeleteRoleRequestPB::SetCachedSize(int size) const {
2203
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2204
0
  _cached_size_ = size;
2205
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2206
0
}
2207
0
const ::google::protobuf::Descriptor* DeleteRoleRequestPB::descriptor() {
2208
0
  ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::protobuf_AssignDescriptorsOnce();
2209
0
  return ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
2210
0
}
2211
2212
0
const DeleteRoleRequestPB& DeleteRoleRequestPB::default_instance() {
2213
0
  ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::InitDefaultsDeleteRoleRequestPB();
2214
0
  return *internal_default_instance();
2215
0
}
2216
2217
0
DeleteRoleRequestPB* DeleteRoleRequestPB::New(::google::protobuf::Arena* arena) const {
2218
0
  DeleteRoleRequestPB* n = new DeleteRoleRequestPB;
2219
0
  if (arena != NULL) {
2220
0
    arena->Own(n);
2221
0
  }
2222
0
  return n;
2223
0
}
2224
2225
730
void DeleteRoleRequestPB::Clear() {
2226
// @@protoc_insertion_point(message_clear_start:yb.master.DeleteRoleRequestPB)
2227
730
  ::google::protobuf::uint32 cached_has_bits = 0;
2228
  // Prevent compiler warnings about cached_has_bits being unused
2229
730
  (void) cached_has_bits;
2230
2231
730
  cached_has_bits = _has_bits_[0];
2232
730
  if (cached_has_bits & 3u) {
2233
0
    if (cached_has_bits & 0x00000001u) {
2234
0
      GOOGLE_DCHECK(!name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
2235
0
      (*name_.UnsafeRawStringPointer())->clear();
2236
0
    }
2237
0
    if (cached_has_bits & 0x00000002u) {
2238
0
      GOOGLE_DCHECK(!current_role_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
2239
0
      (*current_role_.UnsafeRawStringPointer())->clear();
2240
0
    }
2241
0
  }
2242
730
  _has_bits_.Clear();
2243
730
  _internal_metadata_.Clear();
2244
730
}
2245
2246
bool DeleteRoleRequestPB::MergePartialFromCodedStream(
2247
730
    ::google::protobuf::io::CodedInputStream* input) {
2248
1.46k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
2249
730
  ::google::protobuf::uint32 tag;
2250
  // @@protoc_insertion_point(parse_start:yb.master.DeleteRoleRequestPB)
2251
2.19k
  for (;;) {
2252
2.19k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2253
2.19k
    tag = p.first;
2254
2.19k
    if (!p.second) goto handle_unusual;
2255
1.46k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2256
      // optional string name = 1;
2257
730
      case 1: {
2258
730
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2259
730
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
2260
730
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2261
730
                input, this->mutable_name()));
2262
730
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2263
730
            this->name().data(), static_cast<int>(this->name().length()),
2264
730
            ::google::protobuf::internal::WireFormat::PARSE,
2265
730
            "yb.master.DeleteRoleRequestPB.name");
2266
0
        } else {
2267
0
          goto handle_unusual;
2268
0
        }
2269
730
        break;
2270
730
      }
2271
2272
      // optional string current_role = 2;
2273
730
      case 2: {
2274
730
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2275
730
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
2276
730
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2277
730
                input, this->mutable_current_role()));
2278
730
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2279
730
            this->current_role().data(), static_cast<int>(this->current_role().length()),
2280
730
            ::google::protobuf::internal::WireFormat::PARSE,
2281
730
            "yb.master.DeleteRoleRequestPB.current_role");
2282
0
        } else {
2283
0
          goto handle_unusual;
2284
0
        }
2285
730
        break;
2286
730
      }
2287
2288
0
      default: {
2289
730
      handle_unusual:
2290
730
        if (tag == 0) {
2291
730
          goto success;
2292
730
        }
2293
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
2294
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
2295
0
        break;
2296
0
      }
2297
1.46k
    }
2298
1.46k
  }
2299
730
success:
2300
  // @@protoc_insertion_point(parse_success:yb.master.DeleteRoleRequestPB)
2301
730
  return true;
2302
0
failure:
2303
  // @@protoc_insertion_point(parse_failure:yb.master.DeleteRoleRequestPB)
2304
0
  return false;
2305
730
#undef DO_
2306
730
}
2307
2308
void DeleteRoleRequestPB::SerializeWithCachedSizes(
2309
0
    ::google::protobuf::io::CodedOutputStream* output) const {
2310
  // @@protoc_insertion_point(serialize_start:yb.master.DeleteRoleRequestPB)
2311
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2312
0
  (void) cached_has_bits;
2313
2314
0
  cached_has_bits = _has_bits_[0];
2315
  // optional string name = 1;
2316
0
  if (cached_has_bits & 0x00000001u) {
2317
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2318
0
      this->name().data(), static_cast<int>(this->name().length()),
2319
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
2320
0
      "yb.master.DeleteRoleRequestPB.name");
2321
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2322
0
      1, this->name(), output);
2323
0
  }
2324
2325
  // optional string current_role = 2;
2326
0
  if (cached_has_bits & 0x00000002u) {
2327
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2328
0
      this->current_role().data(), static_cast<int>(this->current_role().length()),
2329
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
2330
0
      "yb.master.DeleteRoleRequestPB.current_role");
2331
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2332
0
      2, this->current_role(), output);
2333
0
  }
2334
2335
0
  if (_internal_metadata_.have_unknown_fields()) {
2336
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2337
0
        _internal_metadata_.unknown_fields(), output);
2338
0
  }
2339
  // @@protoc_insertion_point(serialize_end:yb.master.DeleteRoleRequestPB)
2340
0
}
2341
2342
::google::protobuf::uint8* DeleteRoleRequestPB::InternalSerializeWithCachedSizesToArray(
2343
730
    bool deterministic, ::google::protobuf::uint8* target) const {
2344
730
  (void)deterministic; // Unused
2345
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.DeleteRoleRequestPB)
2346
730
  ::google::protobuf::uint32 cached_has_bits = 0;
2347
730
  (void) cached_has_bits;
2348
2349
730
  cached_has_bits = _has_bits_[0];
2350
  // optional string name = 1;
2351
730
  if (cached_has_bits & 0x00000001u) {
2352
730
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2353
730
      this->name().data(), static_cast<int>(this->name().length()),
2354
730
      ::google::protobuf::internal::WireFormat::SERIALIZE,
2355
730
      "yb.master.DeleteRoleRequestPB.name");
2356
730
    target =
2357
730
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2358
730
        1, this->name(), target);
2359
730
  }
2360
2361
  // optional string current_role = 2;
2362
730
  if (cached_has_bits & 0x00000002u) {
2363
730
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2364
730
      this->current_role().data(), static_cast<int>(this->current_role().length()),
2365
730
      ::google::protobuf::internal::WireFormat::SERIALIZE,
2366
730
      "yb.master.DeleteRoleRequestPB.current_role");
2367
730
    target =
2368
730
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2369
730
        2, this->current_role(), target);
2370
730
  }
2371
2372
730
  if (_internal_metadata_.have_unknown_fields()) {
2373
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2374
0
        _internal_metadata_.unknown_fields(), target);
2375
0
  }
2376
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.DeleteRoleRequestPB)
2377
730
  return target;
2378
730
}
2379
2380
1.46k
size_t DeleteRoleRequestPB::ByteSizeLong() const {
2381
// @@protoc_insertion_point(message_byte_size_start:yb.master.DeleteRoleRequestPB)
2382
1.46k
  size_t total_size = 0;
2383
2384
1.46k
  if (_internal_metadata_.have_unknown_fields()) {
2385
0
    total_size +=
2386
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2387
0
        _internal_metadata_.unknown_fields());
2388
0
  }
2389
1.46k
  if (_has_bits_[0 / 32] & 3u) {
2390
    // optional string name = 1;
2391
1.46k
    if (has_name()) {
2392
1.46k
      total_size += 1 +
2393
1.46k
        ::google::protobuf::internal::WireFormatLite::StringSize(
2394
1.46k
          this->name());
2395
1.46k
    }
2396
2397
    // optional string current_role = 2;
2398
1.46k
    if (has_current_role()) {
2399
1.46k
      total_size += 1 +
2400
1.46k
        ::google::protobuf::internal::WireFormatLite::StringSize(
2401
1.46k
          this->current_role());
2402
1.46k
    }
2403
2404
1.46k
  }
2405
1.46k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2406
1.46k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2407
1.46k
  _cached_size_ = cached_size;
2408
1.46k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2409
1.46k
  return total_size;
2410
1.46k
}
2411
2412
0
void DeleteRoleRequestPB::MergeFrom(const ::google::protobuf::Message& from) {
2413
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.DeleteRoleRequestPB)
2414
0
  GOOGLE_DCHECK_NE(&from, this);
2415
0
  const DeleteRoleRequestPB* source =
2416
0
      ::google::protobuf::internal::DynamicCastToGenerated<const DeleteRoleRequestPB>(
2417
0
          &from);
2418
0
  if (source == NULL) {
2419
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.DeleteRoleRequestPB)
2420
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2421
0
  } else {
2422
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.DeleteRoleRequestPB)
2423
0
    MergeFrom(*source);
2424
0
  }
2425
0
}
2426
2427
0
void DeleteRoleRequestPB::MergeFrom(const DeleteRoleRequestPB& from) {
2428
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.DeleteRoleRequestPB)
2429
0
  GOOGLE_DCHECK_NE(&from, this);
2430
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2431
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2432
0
  (void) cached_has_bits;
2433
2434
0
  cached_has_bits = from._has_bits_[0];
2435
0
  if (cached_has_bits & 3u) {
2436
0
    if (cached_has_bits & 0x00000001u) {
2437
0
      set_has_name();
2438
0
      name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
2439
0
    }
2440
0
    if (cached_has_bits & 0x00000002u) {
2441
0
      set_has_current_role();
2442
0
      current_role_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.current_role_);
2443
0
    }
2444
0
  }
2445
0
}
2446
2447
0
void DeleteRoleRequestPB::CopyFrom(const ::google::protobuf::Message& from) {
2448
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.DeleteRoleRequestPB)
2449
0
  if (&from == this) return;
2450
0
  Clear();
2451
0
  MergeFrom(from);
2452
0
}
2453
2454
0
void DeleteRoleRequestPB::CopyFrom(const DeleteRoleRequestPB& from) {
2455
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.DeleteRoleRequestPB)
2456
0
  if (&from == this) return;
2457
0
  Clear();
2458
0
  MergeFrom(from);
2459
0
}
2460
2461
1.46k
bool DeleteRoleRequestPB::IsInitialized() const {
2462
1.46k
  return true;
2463
1.46k
}
2464
2465
0
void DeleteRoleRequestPB::Swap(DeleteRoleRequestPB* other) {
2466
0
  if (other == this) return;
2467
0
  InternalSwap(other);
2468
0
}
2469
0
void DeleteRoleRequestPB::InternalSwap(DeleteRoleRequestPB* other) {
2470
0
  using std::swap;
2471
0
  name_.Swap(&other->name_);
2472
0
  current_role_.Swap(&other->current_role_);
2473
0
  swap(_has_bits_[0], other->_has_bits_[0]);
2474
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
2475
0
  swap(_cached_size_, other->_cached_size_);
2476
0
}
2477
2478
2.19k
::google::protobuf::Metadata DeleteRoleRequestPB::GetMetadata() const {
2479
2.19k
  protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::protobuf_AssignDescriptorsOnce();
2480
2.19k
  return ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::file_level_metadata[kIndexInFileMessages];
2481
2.19k
}
2482
2483
2484
// ===================================================================
2485
2486
15.8k
void DeleteRoleResponsePB::InitAsDefaultInstance() {
2487
15.8k
  ::yb::master::_DeleteRoleResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::master::MasterErrorPB*>(
2488
15.8k
      ::yb::master::MasterErrorPB::internal_default_instance());
2489
15.8k
}
2490
0
void DeleteRoleResponsePB::clear_error() {
2491
0
  if (error_ != NULL) error_->Clear();
2492
0
  clear_has_error();
2493
0
}
2494
#if !defined(_MSC_VER) || _MSC_VER >= 1900
2495
const int DeleteRoleResponsePB::kErrorFieldNumber;
2496
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
2497
2498
DeleteRoleResponsePB::DeleteRoleResponsePB()
2499
17.3k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
2500
1.46k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
2501
1.46k
    ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::InitDefaultsDeleteRoleResponsePB();
2502
1.46k
  }
2503
17.3k
  SharedCtor();
2504
  // @@protoc_insertion_point(constructor:yb.master.DeleteRoleResponsePB)
2505
17.3k
}
2506
DeleteRoleResponsePB::DeleteRoleResponsePB(const DeleteRoleResponsePB& from)
2507
  : ::google::protobuf::Message(),
2508
      _internal_metadata_(NULL),
2509
      _has_bits_(from._has_bits_),
2510
0
      _cached_size_(0) {
2511
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2512
0
  if (from.has_error()) {
2513
0
    error_ = new ::yb::master::MasterErrorPB(*from.error_);
2514
0
  } else {
2515
0
    error_ = NULL;
2516
0
  }
2517
  // @@protoc_insertion_point(copy_constructor:yb.master.DeleteRoleResponsePB)
2518
0
}
2519
2520
17.3k
void DeleteRoleResponsePB::SharedCtor() {
2521
17.3k
  _cached_size_ = 0;
2522
17.3k
  error_ = NULL;
2523
17.3k
}
2524
2525
1.46k
DeleteRoleResponsePB::~DeleteRoleResponsePB() {
2526
  // @@protoc_insertion_point(destructor:yb.master.DeleteRoleResponsePB)
2527
1.46k
  SharedDtor();
2528
1.46k
}
2529
2530
1.46k
void DeleteRoleResponsePB::SharedDtor() {
2531
1.46k
  if (this != internal_default_instance()) delete error_;
2532
1.46k
}
2533
2534
0
void DeleteRoleResponsePB::SetCachedSize(int size) const {
2535
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2536
0
  _cached_size_ = size;
2537
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2538
0
}
2539
0
const ::google::protobuf::Descriptor* DeleteRoleResponsePB::descriptor() {
2540
0
  ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::protobuf_AssignDescriptorsOnce();
2541
0
  return ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
2542
0
}
2543
2544
0
const DeleteRoleResponsePB& DeleteRoleResponsePB::default_instance() {
2545
0
  ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::InitDefaultsDeleteRoleResponsePB();
2546
0
  return *internal_default_instance();
2547
0
}
2548
2549
0
DeleteRoleResponsePB* DeleteRoleResponsePB::New(::google::protobuf::Arena* arena) const {
2550
0
  DeleteRoleResponsePB* n = new DeleteRoleResponsePB;
2551
0
  if (arena != NULL) {
2552
0
    arena->Own(n);
2553
0
  }
2554
0
  return n;
2555
0
}
2556
2557
730
void DeleteRoleResponsePB::Clear() {
2558
// @@protoc_insertion_point(message_clear_start:yb.master.DeleteRoleResponsePB)
2559
730
  ::google::protobuf::uint32 cached_has_bits = 0;
2560
  // Prevent compiler warnings about cached_has_bits being unused
2561
730
  (void) cached_has_bits;
2562
2563
730
  cached_has_bits = _has_bits_[0];
2564
730
  if (cached_has_bits & 0x00000001u) {
2565
0
    GOOGLE_DCHECK(error_ != NULL);
2566
0
    error_->Clear();
2567
0
  }
2568
730
  _has_bits_.Clear();
2569
730
  _internal_metadata_.Clear();
2570
730
}
2571
2572
bool DeleteRoleResponsePB::MergePartialFromCodedStream(
2573
730
    ::google::protobuf::io::CodedInputStream* input) {
2574
6
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
2575
730
  ::google::protobuf::uint32 tag;
2576
  // @@protoc_insertion_point(parse_start:yb.master.DeleteRoleResponsePB)
2577
736
  for (;;) {
2578
736
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2579
736
    tag = p.first;
2580
736
    if (!p.second) goto handle_unusual;
2581
6
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2582
      // optional .yb.master.MasterErrorPB error = 1;
2583
6
      case 1: {
2584
6
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2585
6
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
2586
6
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
2587
6
               input, mutable_error()));
2588
0
        } else {
2589
0
          goto handle_unusual;
2590
0
        }
2591
6
        break;
2592
730
      }
2593
2594
0
      default: {
2595
730
      handle_unusual:
2596
730
        if (tag == 0) {
2597
730
          goto success;
2598
730
        }
2599
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
2600
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
2601
0
        break;
2602
0
      }
2603
6
    }
2604
6
  }
2605
730
success:
2606
  // @@protoc_insertion_point(parse_success:yb.master.DeleteRoleResponsePB)
2607
730
  return true;
2608
0
failure:
2609
  // @@protoc_insertion_point(parse_failure:yb.master.DeleteRoleResponsePB)
2610
0
  return false;
2611
730
#undef DO_
2612
730
}
2613
2614
void DeleteRoleResponsePB::SerializeWithCachedSizes(
2615
0
    ::google::protobuf::io::CodedOutputStream* output) const {
2616
  // @@protoc_insertion_point(serialize_start:yb.master.DeleteRoleResponsePB)
2617
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2618
0
  (void) cached_has_bits;
2619
2620
0
  cached_has_bits = _has_bits_[0];
2621
  // optional .yb.master.MasterErrorPB error = 1;
2622
0
  if (cached_has_bits & 0x00000001u) {
2623
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2624
0
      1, *this->error_, output);
2625
0
  }
2626
2627
0
  if (_internal_metadata_.have_unknown_fields()) {
2628
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2629
0
        _internal_metadata_.unknown_fields(), output);
2630
0
  }
2631
  // @@protoc_insertion_point(serialize_end:yb.master.DeleteRoleResponsePB)
2632
0
}
2633
2634
::google::protobuf::uint8* DeleteRoleResponsePB::InternalSerializeWithCachedSizesToArray(
2635
730
    bool deterministic, ::google::protobuf::uint8* target) const {
2636
730
  (void)deterministic; // Unused
2637
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.DeleteRoleResponsePB)
2638
730
  ::google::protobuf::uint32 cached_has_bits = 0;
2639
730
  (void) cached_has_bits;
2640
2641
730
  cached_has_bits = _has_bits_[0];
2642
  // optional .yb.master.MasterErrorPB error = 1;
2643
730
  if (cached_has_bits & 0x00000001u) {
2644
6
    target = ::google::protobuf::internal::WireFormatLite::
2645
6
      InternalWriteMessageToArray(
2646
6
        1, *this->error_, deterministic, target);
2647
6
  }
2648
2649
730
  if (_internal_metadata_.have_unknown_fields()) {
2650
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2651
0
        _internal_metadata_.unknown_fields(), target);
2652
0
  }
2653
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.DeleteRoleResponsePB)
2654
730
  return target;
2655
730
}
2656
2657
1.46k
size_t DeleteRoleResponsePB::ByteSizeLong() const {
2658
// @@protoc_insertion_point(message_byte_size_start:yb.master.DeleteRoleResponsePB)
2659
1.46k
  size_t total_size = 0;
2660
2661
1.46k
  if (_internal_metadata_.have_unknown_fields()) {
2662
0
    total_size +=
2663
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2664
0
        _internal_metadata_.unknown_fields());
2665
0
  }
2666
  // optional .yb.master.MasterErrorPB error = 1;
2667
1.46k
  if (has_error()) {
2668
12
    total_size += 1 +
2669
12
      ::google::protobuf::internal::WireFormatLite::MessageSize(
2670
12
        *this->error_);
2671
12
  }
2672
2673
1.46k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
2674
1.46k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2675
1.46k
  _cached_size_ = cached_size;
2676
1.46k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2677
1.46k
  return total_size;
2678
1.46k
}
2679
2680
0
void DeleteRoleResponsePB::MergeFrom(const ::google::protobuf::Message& from) {
2681
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.DeleteRoleResponsePB)
2682
0
  GOOGLE_DCHECK_NE(&from, this);
2683
0
  const DeleteRoleResponsePB* source =
2684
0
      ::google::protobuf::internal::DynamicCastToGenerated<const DeleteRoleResponsePB>(
2685
0
          &from);
2686
0
  if (source == NULL) {
2687
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.DeleteRoleResponsePB)
2688
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2689
0
  } else {
2690
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.DeleteRoleResponsePB)
2691
0
    MergeFrom(*source);
2692
0
  }
2693
0
}
2694
2695
0
void DeleteRoleResponsePB::MergeFrom(const DeleteRoleResponsePB& from) {
2696
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.DeleteRoleResponsePB)
2697
0
  GOOGLE_DCHECK_NE(&from, this);
2698
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2699
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2700
0
  (void) cached_has_bits;
2701
2702
0
  if (from.has_error()) {
2703
0
    mutable_error()->::yb::master::MasterErrorPB::MergeFrom(from.error());
2704
0
  }
2705
0
}
2706
2707
0
void DeleteRoleResponsePB::CopyFrom(const ::google::protobuf::Message& from) {
2708
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.DeleteRoleResponsePB)
2709
0
  if (&from == this) return;
2710
0
  Clear();
2711
0
  MergeFrom(from);
2712
0
}
2713
2714
0
void DeleteRoleResponsePB::CopyFrom(const DeleteRoleResponsePB& from) {
2715
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.DeleteRoleResponsePB)
2716
0
  if (&from == this) return;
2717
0
  Clear();
2718
0
  MergeFrom(from);
2719
0
}
2720
2721
1.46k
bool DeleteRoleResponsePB::IsInitialized() const {
2722
1.46k
  if (has_error()) {
2723
12
    if (!this->error_->IsInitialized()) return false;
2724
1.46k
  }
2725
1.46k
  return true;
2726
1.46k
}
2727
2728
0
void DeleteRoleResponsePB::Swap(DeleteRoleResponsePB* other) {
2729
0
  if (other == this) return;
2730
0
  InternalSwap(other);
2731
0
}
2732
0
void DeleteRoleResponsePB::InternalSwap(DeleteRoleResponsePB* other) {
2733
0
  using std::swap;
2734
0
  swap(error_, other->error_);
2735
0
  swap(_has_bits_[0], other->_has_bits_[0]);
2736
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
2737
0
  swap(_cached_size_, other->_cached_size_);
2738
0
}
2739
2740
0
::google::protobuf::Metadata DeleteRoleResponsePB::GetMetadata() const {
2741
0
  protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::protobuf_AssignDescriptorsOnce();
2742
0
  return ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::file_level_metadata[kIndexInFileMessages];
2743
0
}
2744
2745
2746
// ===================================================================
2747
2748
15.8k
void GrantRevokeRoleRequestPB::InitAsDefaultInstance() {
2749
15.8k
}
2750
#if !defined(_MSC_VER) || _MSC_VER >= 1900
2751
const int GrantRevokeRoleRequestPB::kGrantedRoleFieldNumber;
2752
const int GrantRevokeRoleRequestPB::kRecipientRoleFieldNumber;
2753
const int GrantRevokeRoleRequestPB::kRevokeFieldNumber;
2754
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
2755
2756
GrantRevokeRoleRequestPB::GrantRevokeRoleRequestPB()
2757
15.9k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
2758
104
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
2759
104
    ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::InitDefaultsGrantRevokeRoleRequestPB();
2760
104
  }
2761
15.9k
  SharedCtor();
2762
  // @@protoc_insertion_point(constructor:yb.master.GrantRevokeRoleRequestPB)
2763
15.9k
}
2764
GrantRevokeRoleRequestPB::GrantRevokeRoleRequestPB(const GrantRevokeRoleRequestPB& from)
2765
  : ::google::protobuf::Message(),
2766
      _internal_metadata_(NULL),
2767
      _has_bits_(from._has_bits_),
2768
0
      _cached_size_(0) {
2769
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
2770
0
  granted_role_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2771
0
  if (from.has_granted_role()) {
2772
0
    granted_role_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.granted_role_);
2773
0
  }
2774
0
  recipient_role_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2775
0
  if (from.has_recipient_role()) {
2776
0
    recipient_role_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.recipient_role_);
2777
0
  }
2778
0
  revoke_ = from.revoke_;
2779
  // @@protoc_insertion_point(copy_constructor:yb.master.GrantRevokeRoleRequestPB)
2780
0
}
2781
2782
15.9k
void GrantRevokeRoleRequestPB::SharedCtor() {
2783
15.9k
  _cached_size_ = 0;
2784
15.9k
  granted_role_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2785
15.9k
  recipient_role_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2786
15.9k
  revoke_ = false;
2787
15.9k
}
2788
2789
104
GrantRevokeRoleRequestPB::~GrantRevokeRoleRequestPB() {
2790
  // @@protoc_insertion_point(destructor:yb.master.GrantRevokeRoleRequestPB)
2791
104
  SharedDtor();
2792
104
}
2793
2794
104
void GrantRevokeRoleRequestPB::SharedDtor() {
2795
104
  granted_role_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2796
104
  recipient_role_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2797
104
}
2798
2799
0
void GrantRevokeRoleRequestPB::SetCachedSize(int size) const {
2800
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2801
0
  _cached_size_ = size;
2802
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
2803
0
}
2804
0
const ::google::protobuf::Descriptor* GrantRevokeRoleRequestPB::descriptor() {
2805
0
  ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::protobuf_AssignDescriptorsOnce();
2806
0
  return ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
2807
0
}
2808
2809
0
const GrantRevokeRoleRequestPB& GrantRevokeRoleRequestPB::default_instance() {
2810
0
  ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::InitDefaultsGrantRevokeRoleRequestPB();
2811
0
  return *internal_default_instance();
2812
0
}
2813
2814
0
GrantRevokeRoleRequestPB* GrantRevokeRoleRequestPB::New(::google::protobuf::Arena* arena) const {
2815
0
  GrantRevokeRoleRequestPB* n = new GrantRevokeRoleRequestPB;
2816
0
  if (arena != NULL) {
2817
0
    arena->Own(n);
2818
0
  }
2819
0
  return n;
2820
0
}
2821
2822
52
void GrantRevokeRoleRequestPB::Clear() {
2823
// @@protoc_insertion_point(message_clear_start:yb.master.GrantRevokeRoleRequestPB)
2824
52
  ::google::protobuf::uint32 cached_has_bits = 0;
2825
  // Prevent compiler warnings about cached_has_bits being unused
2826
52
  (void) cached_has_bits;
2827
2828
52
  cached_has_bits = _has_bits_[0];
2829
52
  if (cached_has_bits & 3u) {
2830
0
    if (cached_has_bits & 0x00000001u) {
2831
0
      GOOGLE_DCHECK(!granted_role_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
2832
0
      (*granted_role_.UnsafeRawStringPointer())->clear();
2833
0
    }
2834
0
    if (cached_has_bits & 0x00000002u) {
2835
0
      GOOGLE_DCHECK(!recipient_role_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
2836
0
      (*recipient_role_.UnsafeRawStringPointer())->clear();
2837
0
    }
2838
0
  }
2839
52
  revoke_ = false;
2840
52
  _has_bits_.Clear();
2841
52
  _internal_metadata_.Clear();
2842
52
}
2843
2844
bool GrantRevokeRoleRequestPB::MergePartialFromCodedStream(
2845
52
    ::google::protobuf::io::CodedInputStream* input) {
2846
156
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
2847
52
  ::google::protobuf::uint32 tag;
2848
  // @@protoc_insertion_point(parse_start:yb.master.GrantRevokeRoleRequestPB)
2849
208
  for (;;) {
2850
208
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2851
208
    tag = p.first;
2852
208
    if (!p.second) goto handle_unusual;
2853
156
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2854
      // optional string granted_role = 1;
2855
52
      case 1: {
2856
52
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2857
52
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
2858
52
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2859
52
                input, this->mutable_granted_role()));
2860
52
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2861
52
            this->granted_role().data(), static_cast<int>(this->granted_role().length()),
2862
52
            ::google::protobuf::internal::WireFormat::PARSE,
2863
52
            "yb.master.GrantRevokeRoleRequestPB.granted_role");
2864
0
        } else {
2865
0
          goto handle_unusual;
2866
0
        }
2867
52
        break;
2868
52
      }
2869
2870
      // optional string recipient_role = 2;
2871
52
      case 2: {
2872
52
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2873
52
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
2874
52
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2875
52
                input, this->mutable_recipient_role()));
2876
52
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2877
52
            this->recipient_role().data(), static_cast<int>(this->recipient_role().length()),
2878
52
            ::google::protobuf::internal::WireFormat::PARSE,
2879
52
            "yb.master.GrantRevokeRoleRequestPB.recipient_role");
2880
0
        } else {
2881
0
          goto handle_unusual;
2882
0
        }
2883
52
        break;
2884
52
      }
2885
2886
      // optional bool revoke = 3 [default = false];
2887
52
      case 3: {
2888
52
        if (static_cast< ::google::protobuf::uint8>(tag) ==
2889
52
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
2890
52
          set_has_revoke();
2891
52
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
2892
52
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
2893
52
                 input, &revoke_)));
2894
0
        } else {
2895
0
          goto handle_unusual;
2896
0
        }
2897
52
        break;
2898
52
      }
2899
2900
0
      default: {
2901
52
      handle_unusual:
2902
52
        if (tag == 0) {
2903
52
          goto success;
2904
52
        }
2905
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
2906
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
2907
0
        break;
2908
0
      }
2909
156
    }
2910
156
  }
2911
52
success:
2912
  // @@protoc_insertion_point(parse_success:yb.master.GrantRevokeRoleRequestPB)
2913
52
  return true;
2914
0
failure:
2915
  // @@protoc_insertion_point(parse_failure:yb.master.GrantRevokeRoleRequestPB)
2916
0
  return false;
2917
52
#undef DO_
2918
52
}
2919
2920
void GrantRevokeRoleRequestPB::SerializeWithCachedSizes(
2921
0
    ::google::protobuf::io::CodedOutputStream* output) const {
2922
  // @@protoc_insertion_point(serialize_start:yb.master.GrantRevokeRoleRequestPB)
2923
0
  ::google::protobuf::uint32 cached_has_bits = 0;
2924
0
  (void) cached_has_bits;
2925
2926
0
  cached_has_bits = _has_bits_[0];
2927
  // optional string granted_role = 1;
2928
0
  if (cached_has_bits & 0x00000001u) {
2929
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2930
0
      this->granted_role().data(), static_cast<int>(this->granted_role().length()),
2931
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
2932
0
      "yb.master.GrantRevokeRoleRequestPB.granted_role");
2933
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2934
0
      1, this->granted_role(), output);
2935
0
  }
2936
2937
  // optional string recipient_role = 2;
2938
0
  if (cached_has_bits & 0x00000002u) {
2939
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2940
0
      this->recipient_role().data(), static_cast<int>(this->recipient_role().length()),
2941
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
2942
0
      "yb.master.GrantRevokeRoleRequestPB.recipient_role");
2943
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
2944
0
      2, this->recipient_role(), output);
2945
0
  }
2946
2947
  // optional bool revoke = 3 [default = false];
2948
0
  if (cached_has_bits & 0x00000004u) {
2949
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(3, this->revoke(), output);
2950
0
  }
2951
2952
0
  if (_internal_metadata_.have_unknown_fields()) {
2953
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2954
0
        _internal_metadata_.unknown_fields(), output);
2955
0
  }
2956
  // @@protoc_insertion_point(serialize_end:yb.master.GrantRevokeRoleRequestPB)
2957
0
}
2958
2959
::google::protobuf::uint8* GrantRevokeRoleRequestPB::InternalSerializeWithCachedSizesToArray(
2960
52
    bool deterministic, ::google::protobuf::uint8* target) const {
2961
52
  (void)deterministic; // Unused
2962
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.GrantRevokeRoleRequestPB)
2963
52
  ::google::protobuf::uint32 cached_has_bits = 0;
2964
52
  (void) cached_has_bits;
2965
2966
52
  cached_has_bits = _has_bits_[0];
2967
  // optional string granted_role = 1;
2968
52
  if (cached_has_bits & 0x00000001u) {
2969
52
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2970
52
      this->granted_role().data(), static_cast<int>(this->granted_role().length()),
2971
52
      ::google::protobuf::internal::WireFormat::SERIALIZE,
2972
52
      "yb.master.GrantRevokeRoleRequestPB.granted_role");
2973
52
    target =
2974
52
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2975
52
        1, this->granted_role(), target);
2976
52
  }
2977
2978
  // optional string recipient_role = 2;
2979
52
  if (cached_has_bits & 0x00000002u) {
2980
52
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
2981
52
      this->recipient_role().data(), static_cast<int>(this->recipient_role().length()),
2982
52
      ::google::protobuf::internal::WireFormat::SERIALIZE,
2983
52
      "yb.master.GrantRevokeRoleRequestPB.recipient_role");
2984
52
    target =
2985
52
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2986
52
        2, this->recipient_role(), target);
2987
52
  }
2988
2989
  // optional bool revoke = 3 [default = false];
2990
52
  if (cached_has_bits & 0x00000004u) {
2991
52
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(3, this->revoke(), target);
2992
52
  }
2993
2994
52
  if (_internal_metadata_.have_unknown_fields()) {
2995
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2996
0
        _internal_metadata_.unknown_fields(), target);
2997
0
  }
2998
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.GrantRevokeRoleRequestPB)
2999
52
  return target;
3000
52
}
3001
3002
104
size_t GrantRevokeRoleRequestPB::ByteSizeLong() const {
3003
// @@protoc_insertion_point(message_byte_size_start:yb.master.GrantRevokeRoleRequestPB)
3004
104
  size_t total_size = 0;
3005
3006
104
  if (_internal_metadata_.have_unknown_fields()) {
3007
0
    total_size +=
3008
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3009
0
        _internal_metadata_.unknown_fields());
3010
0
  }
3011
104
  if (_has_bits_[0 / 32] & 7u) {
3012
    // optional string granted_role = 1;
3013
104
    if (has_granted_role()) {
3014
104
      total_size += 1 +
3015
104
        ::google::protobuf::internal::WireFormatLite::StringSize(
3016
104
          this->granted_role());
3017
104
    }
3018
3019
    // optional string recipient_role = 2;
3020
104
    if (has_recipient_role()) {
3021
104
      total_size += 1 +
3022
104
        ::google::protobuf::internal::WireFormatLite::StringSize(
3023
104
          this->recipient_role());
3024
104
    }
3025
3026
    // optional bool revoke = 3 [default = false];
3027
104
    if (has_revoke()) {
3028
104
      total_size += 1 + 1;
3029
104
    }
3030
3031
104
  }
3032
104
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
3033
104
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3034
104
  _cached_size_ = cached_size;
3035
104
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3036
104
  return total_size;
3037
104
}
3038
3039
0
void GrantRevokeRoleRequestPB::MergeFrom(const ::google::protobuf::Message& from) {
3040
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.GrantRevokeRoleRequestPB)
3041
0
  GOOGLE_DCHECK_NE(&from, this);
3042
0
  const GrantRevokeRoleRequestPB* source =
3043
0
      ::google::protobuf::internal::DynamicCastToGenerated<const GrantRevokeRoleRequestPB>(
3044
0
          &from);
3045
0
  if (source == NULL) {
3046
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.GrantRevokeRoleRequestPB)
3047
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3048
0
  } else {
3049
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.GrantRevokeRoleRequestPB)
3050
0
    MergeFrom(*source);
3051
0
  }
3052
0
}
3053
3054
0
void GrantRevokeRoleRequestPB::MergeFrom(const GrantRevokeRoleRequestPB& from) {
3055
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.GrantRevokeRoleRequestPB)
3056
0
  GOOGLE_DCHECK_NE(&from, this);
3057
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3058
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3059
0
  (void) cached_has_bits;
3060
3061
0
  cached_has_bits = from._has_bits_[0];
3062
0
  if (cached_has_bits & 7u) {
3063
0
    if (cached_has_bits & 0x00000001u) {
3064
0
      set_has_granted_role();
3065
0
      granted_role_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.granted_role_);
3066
0
    }
3067
0
    if (cached_has_bits & 0x00000002u) {
3068
0
      set_has_recipient_role();
3069
0
      recipient_role_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.recipient_role_);
3070
0
    }
3071
0
    if (cached_has_bits & 0x00000004u) {
3072
0
      revoke_ = from.revoke_;
3073
0
    }
3074
0
    _has_bits_[0] |= cached_has_bits;
3075
0
  }
3076
0
}
3077
3078
0
void GrantRevokeRoleRequestPB::CopyFrom(const ::google::protobuf::Message& from) {
3079
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.GrantRevokeRoleRequestPB)
3080
0
  if (&from == this) return;
3081
0
  Clear();
3082
0
  MergeFrom(from);
3083
0
}
3084
3085
0
void GrantRevokeRoleRequestPB::CopyFrom(const GrantRevokeRoleRequestPB& from) {
3086
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.GrantRevokeRoleRequestPB)
3087
0
  if (&from == this) return;
3088
0
  Clear();
3089
0
  MergeFrom(from);
3090
0
}
3091
3092
104
bool GrantRevokeRoleRequestPB::IsInitialized() const {
3093
104
  return true;
3094
104
}
3095
3096
0
void GrantRevokeRoleRequestPB::Swap(GrantRevokeRoleRequestPB* other) {
3097
0
  if (other == this) return;
3098
0
  InternalSwap(other);
3099
0
}
3100
0
void GrantRevokeRoleRequestPB::InternalSwap(GrantRevokeRoleRequestPB* other) {
3101
0
  using std::swap;
3102
0
  granted_role_.Swap(&other->granted_role_);
3103
0
  recipient_role_.Swap(&other->recipient_role_);
3104
0
  swap(revoke_, other->revoke_);
3105
0
  swap(_has_bits_[0], other->_has_bits_[0]);
3106
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
3107
0
  swap(_cached_size_, other->_cached_size_);
3108
0
}
3109
3110
156
::google::protobuf::Metadata GrantRevokeRoleRequestPB::GetMetadata() const {
3111
156
  protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::protobuf_AssignDescriptorsOnce();
3112
156
  return ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::file_level_metadata[kIndexInFileMessages];
3113
156
}
3114
3115
3116
// ===================================================================
3117
3118
15.8k
void GrantRevokeRoleResponsePB::InitAsDefaultInstance() {
3119
15.8k
  ::yb::master::_GrantRevokeRoleResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::master::MasterErrorPB*>(
3120
15.8k
      ::yb::master::MasterErrorPB::internal_default_instance());
3121
15.8k
}
3122
0
void GrantRevokeRoleResponsePB::clear_error() {
3123
0
  if (error_ != NULL) error_->Clear();
3124
0
  clear_has_error();
3125
0
}
3126
#if !defined(_MSC_VER) || _MSC_VER >= 1900
3127
const int GrantRevokeRoleResponsePB::kErrorFieldNumber;
3128
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
3129
3130
GrantRevokeRoleResponsePB::GrantRevokeRoleResponsePB()
3131
15.9k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
3132
104
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
3133
104
    ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::InitDefaultsGrantRevokeRoleResponsePB();
3134
104
  }
3135
15.9k
  SharedCtor();
3136
  // @@protoc_insertion_point(constructor:yb.master.GrantRevokeRoleResponsePB)
3137
15.9k
}
3138
GrantRevokeRoleResponsePB::GrantRevokeRoleResponsePB(const GrantRevokeRoleResponsePB& from)
3139
  : ::google::protobuf::Message(),
3140
      _internal_metadata_(NULL),
3141
      _has_bits_(from._has_bits_),
3142
0
      _cached_size_(0) {
3143
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3144
0
  if (from.has_error()) {
3145
0
    error_ = new ::yb::master::MasterErrorPB(*from.error_);
3146
0
  } else {
3147
0
    error_ = NULL;
3148
0
  }
3149
  // @@protoc_insertion_point(copy_constructor:yb.master.GrantRevokeRoleResponsePB)
3150
0
}
3151
3152
15.9k
void GrantRevokeRoleResponsePB::SharedCtor() {
3153
15.9k
  _cached_size_ = 0;
3154
15.9k
  error_ = NULL;
3155
15.9k
}
3156
3157
104
GrantRevokeRoleResponsePB::~GrantRevokeRoleResponsePB() {
3158
  // @@protoc_insertion_point(destructor:yb.master.GrantRevokeRoleResponsePB)
3159
104
  SharedDtor();
3160
104
}
3161
3162
104
void GrantRevokeRoleResponsePB::SharedDtor() {
3163
104
  if (this != internal_default_instance()) delete error_;
3164
104
}
3165
3166
0
void GrantRevokeRoleResponsePB::SetCachedSize(int size) const {
3167
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3168
0
  _cached_size_ = size;
3169
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3170
0
}
3171
0
const ::google::protobuf::Descriptor* GrantRevokeRoleResponsePB::descriptor() {
3172
0
  ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::protobuf_AssignDescriptorsOnce();
3173
0
  return ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
3174
0
}
3175
3176
0
const GrantRevokeRoleResponsePB& GrantRevokeRoleResponsePB::default_instance() {
3177
0
  ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::InitDefaultsGrantRevokeRoleResponsePB();
3178
0
  return *internal_default_instance();
3179
0
}
3180
3181
0
GrantRevokeRoleResponsePB* GrantRevokeRoleResponsePB::New(::google::protobuf::Arena* arena) const {
3182
0
  GrantRevokeRoleResponsePB* n = new GrantRevokeRoleResponsePB;
3183
0
  if (arena != NULL) {
3184
0
    arena->Own(n);
3185
0
  }
3186
0
  return n;
3187
0
}
3188
3189
52
void GrantRevokeRoleResponsePB::Clear() {
3190
// @@protoc_insertion_point(message_clear_start:yb.master.GrantRevokeRoleResponsePB)
3191
52
  ::google::protobuf::uint32 cached_has_bits = 0;
3192
  // Prevent compiler warnings about cached_has_bits being unused
3193
52
  (void) cached_has_bits;
3194
3195
52
  cached_has_bits = _has_bits_[0];
3196
52
  if (cached_has_bits & 0x00000001u) {
3197
0
    GOOGLE_DCHECK(error_ != NULL);
3198
0
    error_->Clear();
3199
0
  }
3200
52
  _has_bits_.Clear();
3201
52
  _internal_metadata_.Clear();
3202
52
}
3203
3204
bool GrantRevokeRoleResponsePB::MergePartialFromCodedStream(
3205
52
    ::google::protobuf::io::CodedInputStream* input) {
3206
3
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
3207
52
  ::google::protobuf::uint32 tag;
3208
  // @@protoc_insertion_point(parse_start:yb.master.GrantRevokeRoleResponsePB)
3209
55
  for (;;) {
3210
55
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3211
55
    tag = p.first;
3212
55
    if (!p.second) goto handle_unusual;
3213
3
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3214
      // optional .yb.master.MasterErrorPB error = 1;
3215
3
      case 1: {
3216
3
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3217
3
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
3218
3
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3219
3
               input, mutable_error()));
3220
0
        } else {
3221
0
          goto handle_unusual;
3222
0
        }
3223
3
        break;
3224
52
      }
3225
3226
0
      default: {
3227
52
      handle_unusual:
3228
52
        if (tag == 0) {
3229
52
          goto success;
3230
52
        }
3231
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
3232
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
3233
0
        break;
3234
0
      }
3235
3
    }
3236
3
  }
3237
52
success:
3238
  // @@protoc_insertion_point(parse_success:yb.master.GrantRevokeRoleResponsePB)
3239
52
  return true;
3240
0
failure:
3241
  // @@protoc_insertion_point(parse_failure:yb.master.GrantRevokeRoleResponsePB)
3242
0
  return false;
3243
52
#undef DO_
3244
52
}
3245
3246
void GrantRevokeRoleResponsePB::SerializeWithCachedSizes(
3247
0
    ::google::protobuf::io::CodedOutputStream* output) const {
3248
  // @@protoc_insertion_point(serialize_start:yb.master.GrantRevokeRoleResponsePB)
3249
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3250
0
  (void) cached_has_bits;
3251
3252
0
  cached_has_bits = _has_bits_[0];
3253
  // optional .yb.master.MasterErrorPB error = 1;
3254
0
  if (cached_has_bits & 0x00000001u) {
3255
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3256
0
      1, *this->error_, output);
3257
0
  }
3258
3259
0
  if (_internal_metadata_.have_unknown_fields()) {
3260
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3261
0
        _internal_metadata_.unknown_fields(), output);
3262
0
  }
3263
  // @@protoc_insertion_point(serialize_end:yb.master.GrantRevokeRoleResponsePB)
3264
0
}
3265
3266
::google::protobuf::uint8* GrantRevokeRoleResponsePB::InternalSerializeWithCachedSizesToArray(
3267
52
    bool deterministic, ::google::protobuf::uint8* target) const {
3268
52
  (void)deterministic; // Unused
3269
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.GrantRevokeRoleResponsePB)
3270
52
  ::google::protobuf::uint32 cached_has_bits = 0;
3271
52
  (void) cached_has_bits;
3272
3273
52
  cached_has_bits = _has_bits_[0];
3274
  // optional .yb.master.MasterErrorPB error = 1;
3275
52
  if (cached_has_bits & 0x00000001u) {
3276
3
    target = ::google::protobuf::internal::WireFormatLite::
3277
3
      InternalWriteMessageToArray(
3278
3
        1, *this->error_, deterministic, target);
3279
3
  }
3280
3281
52
  if (_internal_metadata_.have_unknown_fields()) {
3282
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3283
0
        _internal_metadata_.unknown_fields(), target);
3284
0
  }
3285
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.GrantRevokeRoleResponsePB)
3286
52
  return target;
3287
52
}
3288
3289
104
size_t GrantRevokeRoleResponsePB::ByteSizeLong() const {
3290
// @@protoc_insertion_point(message_byte_size_start:yb.master.GrantRevokeRoleResponsePB)
3291
104
  size_t total_size = 0;
3292
3293
104
  if (_internal_metadata_.have_unknown_fields()) {
3294
0
    total_size +=
3295
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3296
0
        _internal_metadata_.unknown_fields());
3297
0
  }
3298
  // optional .yb.master.MasterErrorPB error = 1;
3299
104
  if (has_error()) {
3300
6
    total_size += 1 +
3301
6
      ::google::protobuf::internal::WireFormatLite::MessageSize(
3302
6
        *this->error_);
3303
6
  }
3304
3305
104
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
3306
104
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3307
104
  _cached_size_ = cached_size;
3308
104
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3309
104
  return total_size;
3310
104
}
3311
3312
0
void GrantRevokeRoleResponsePB::MergeFrom(const ::google::protobuf::Message& from) {
3313
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.GrantRevokeRoleResponsePB)
3314
0
  GOOGLE_DCHECK_NE(&from, this);
3315
0
  const GrantRevokeRoleResponsePB* source =
3316
0
      ::google::protobuf::internal::DynamicCastToGenerated<const GrantRevokeRoleResponsePB>(
3317
0
          &from);
3318
0
  if (source == NULL) {
3319
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.GrantRevokeRoleResponsePB)
3320
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3321
0
  } else {
3322
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.GrantRevokeRoleResponsePB)
3323
0
    MergeFrom(*source);
3324
0
  }
3325
0
}
3326
3327
0
void GrantRevokeRoleResponsePB::MergeFrom(const GrantRevokeRoleResponsePB& from) {
3328
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.GrantRevokeRoleResponsePB)
3329
0
  GOOGLE_DCHECK_NE(&from, this);
3330
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3331
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3332
0
  (void) cached_has_bits;
3333
3334
0
  if (from.has_error()) {
3335
0
    mutable_error()->::yb::master::MasterErrorPB::MergeFrom(from.error());
3336
0
  }
3337
0
}
3338
3339
0
void GrantRevokeRoleResponsePB::CopyFrom(const ::google::protobuf::Message& from) {
3340
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.GrantRevokeRoleResponsePB)
3341
0
  if (&from == this) return;
3342
0
  Clear();
3343
0
  MergeFrom(from);
3344
0
}
3345
3346
0
void GrantRevokeRoleResponsePB::CopyFrom(const GrantRevokeRoleResponsePB& from) {
3347
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.GrantRevokeRoleResponsePB)
3348
0
  if (&from == this) return;
3349
0
  Clear();
3350
0
  MergeFrom(from);
3351
0
}
3352
3353
104
bool GrantRevokeRoleResponsePB::IsInitialized() const {
3354
104
  if (has_error()) {
3355
6
    if (!this->error_->IsInitialized()) return false;
3356
104
  }
3357
104
  return true;
3358
104
}
3359
3360
0
void GrantRevokeRoleResponsePB::Swap(GrantRevokeRoleResponsePB* other) {
3361
0
  if (other == this) return;
3362
0
  InternalSwap(other);
3363
0
}
3364
0
void GrantRevokeRoleResponsePB::InternalSwap(GrantRevokeRoleResponsePB* other) {
3365
0
  using std::swap;
3366
0
  swap(error_, other->error_);
3367
0
  swap(_has_bits_[0], other->_has_bits_[0]);
3368
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
3369
0
  swap(_cached_size_, other->_cached_size_);
3370
0
}
3371
3372
0
::google::protobuf::Metadata GrantRevokeRoleResponsePB::GetMetadata() const {
3373
0
  protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::protobuf_AssignDescriptorsOnce();
3374
0
  return ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::file_level_metadata[kIndexInFileMessages];
3375
0
}
3376
3377
3378
// ===================================================================
3379
3380
15.8k
void GrantRevokePermissionRequestPB::InitAsDefaultInstance() {
3381
15.8k
  ::yb::master::_GrantRevokePermissionRequestPB_default_instance_._instance.get_mutable()->namespace__ = const_cast< ::yb::master::NamespaceIdentifierPB*>(
3382
15.8k
      ::yb::master::NamespaceIdentifierPB::internal_default_instance());
3383
15.8k
}
3384
0
void GrantRevokePermissionRequestPB::clear_namespace_() {
3385
0
  if (namespace__ != NULL) namespace__->Clear();
3386
0
  clear_has_namespace_();
3387
0
}
3388
#if !defined(_MSC_VER) || _MSC_VER >= 1900
3389
const int GrantRevokePermissionRequestPB::kPermissionFieldNumber;
3390
const int GrantRevokePermissionRequestPB::kResourceTypeFieldNumber;
3391
const int GrantRevokePermissionRequestPB::kCanonicalResourceFieldNumber;
3392
const int GrantRevokePermissionRequestPB::kResourceNameFieldNumber;
3393
const int GrantRevokePermissionRequestPB::kNamespaceFieldNumber;
3394
const int GrantRevokePermissionRequestPB::kRoleNameFieldNumber;
3395
const int GrantRevokePermissionRequestPB::kRevokeFieldNumber;
3396
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
3397
3398
GrantRevokePermissionRequestPB::GrantRevokePermissionRequestPB()
3399
17.2k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
3400
1.44k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
3401
1.44k
    ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::InitDefaultsGrantRevokePermissionRequestPB();
3402
1.44k
  }
3403
17.2k
  SharedCtor();
3404
  // @@protoc_insertion_point(constructor:yb.master.GrantRevokePermissionRequestPB)
3405
17.2k
}
3406
GrantRevokePermissionRequestPB::GrantRevokePermissionRequestPB(const GrantRevokePermissionRequestPB& from)
3407
  : ::google::protobuf::Message(),
3408
      _internal_metadata_(NULL),
3409
      _has_bits_(from._has_bits_),
3410
0
      _cached_size_(0) {
3411
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3412
0
  canonical_resource_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3413
0
  if (from.has_canonical_resource()) {
3414
0
    canonical_resource_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.canonical_resource_);
3415
0
  }
3416
0
  resource_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3417
0
  if (from.has_resource_name()) {
3418
0
    resource_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.resource_name_);
3419
0
  }
3420
0
  role_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3421
0
  if (from.has_role_name()) {
3422
0
    role_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.role_name_);
3423
0
  }
3424
0
  if (from.has_namespace_()) {
3425
0
    namespace__ = new ::yb::master::NamespaceIdentifierPB(*from.namespace__);
3426
0
  } else {
3427
0
    namespace__ = NULL;
3428
0
  }
3429
0
  ::memcpy(&permission_, &from.permission_,
3430
0
    static_cast<size_t>(reinterpret_cast<char*>(&resource_type_) -
3431
0
    reinterpret_cast<char*>(&permission_)) + sizeof(resource_type_));
3432
  // @@protoc_insertion_point(copy_constructor:yb.master.GrantRevokePermissionRequestPB)
3433
0
}
3434
3435
17.2k
void GrantRevokePermissionRequestPB::SharedCtor() {
3436
17.2k
  _cached_size_ = 0;
3437
17.2k
  canonical_resource_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3438
17.2k
  resource_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3439
17.2k
  role_name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3440
17.2k
  ::memset(&namespace__, 0, static_cast<size_t>(
3441
17.2k
      reinterpret_cast<char*>(&revoke_) -
3442
17.2k
      reinterpret_cast<char*>(&namespace__)) + sizeof(revoke_));
3443
17.2k
  resource_type_ = 1;
3444
17.2k
}
3445
3446
1.44k
GrantRevokePermissionRequestPB::~GrantRevokePermissionRequestPB() {
3447
  // @@protoc_insertion_point(destructor:yb.master.GrantRevokePermissionRequestPB)
3448
1.44k
  SharedDtor();
3449
1.44k
}
3450
3451
1.44k
void GrantRevokePermissionRequestPB::SharedDtor() {
3452
1.44k
  canonical_resource_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3453
1.44k
  resource_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3454
1.44k
  role_name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3455
1.44k
  if (this != internal_default_instance()) delete namespace__;
3456
1.44k
}
3457
3458
0
void GrantRevokePermissionRequestPB::SetCachedSize(int size) const {
3459
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3460
0
  _cached_size_ = size;
3461
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3462
0
}
3463
0
const ::google::protobuf::Descriptor* GrantRevokePermissionRequestPB::descriptor() {
3464
0
  ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::protobuf_AssignDescriptorsOnce();
3465
0
  return ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
3466
0
}
3467
3468
0
const GrantRevokePermissionRequestPB& GrantRevokePermissionRequestPB::default_instance() {
3469
0
  ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::InitDefaultsGrantRevokePermissionRequestPB();
3470
0
  return *internal_default_instance();
3471
0
}
3472
3473
0
GrantRevokePermissionRequestPB* GrantRevokePermissionRequestPB::New(::google::protobuf::Arena* arena) const {
3474
0
  GrantRevokePermissionRequestPB* n = new GrantRevokePermissionRequestPB;
3475
0
  if (arena != NULL) {
3476
0
    arena->Own(n);
3477
0
  }
3478
0
  return n;
3479
0
}
3480
3481
721
void GrantRevokePermissionRequestPB::Clear() {
3482
// @@protoc_insertion_point(message_clear_start:yb.master.GrantRevokePermissionRequestPB)
3483
721
  ::google::protobuf::uint32 cached_has_bits = 0;
3484
  // Prevent compiler warnings about cached_has_bits being unused
3485
721
  (void) cached_has_bits;
3486
3487
721
  cached_has_bits = _has_bits_[0];
3488
721
  if (cached_has_bits & 15u) {
3489
0
    if (cached_has_bits & 0x00000001u) {
3490
0
      GOOGLE_DCHECK(!canonical_resource_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
3491
0
      (*canonical_resource_.UnsafeRawStringPointer())->clear();
3492
0
    }
3493
0
    if (cached_has_bits & 0x00000002u) {
3494
0
      GOOGLE_DCHECK(!resource_name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
3495
0
      (*resource_name_.UnsafeRawStringPointer())->clear();
3496
0
    }
3497
0
    if (cached_has_bits & 0x00000004u) {
3498
0
      GOOGLE_DCHECK(!role_name_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
3499
0
      (*role_name_.UnsafeRawStringPointer())->clear();
3500
0
    }
3501
0
    if (cached_has_bits & 0x00000008u) {
3502
0
      GOOGLE_DCHECK(namespace__ != NULL);
3503
0
      namespace__->Clear();
3504
0
    }
3505
0
  }
3506
721
  if (cached_has_bits & 112u) {
3507
0
    ::memset(&permission_, 0, static_cast<size_t>(
3508
0
        reinterpret_cast<char*>(&revoke_) -
3509
0
        reinterpret_cast<char*>(&permission_)) + sizeof(revoke_));
3510
0
    resource_type_ = 1;
3511
0
  }
3512
721
  _has_bits_.Clear();
3513
721
  _internal_metadata_.Clear();
3514
721
}
3515
3516
bool GrantRevokePermissionRequestPB::MergePartialFromCodedStream(
3517
721
    ::google::protobuf::io::CodedInputStream* input) {
3518
4.56k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
3519
721
  ::google::protobuf::uint32 tag;
3520
  // @@protoc_insertion_point(parse_start:yb.master.GrantRevokePermissionRequestPB)
3521
5.28k
  for (;;) {
3522
5.28k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
3523
5.28k
    tag = p.first;
3524
5.28k
    if (!p.second) goto handle_unusual;
3525
4.56k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
3526
      // optional .yb.PermissionType permission = 1;
3527
721
      case 1: {
3528
721
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3529
721
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
3530
721
          int value;
3531
721
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3532
721
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
3533
721
                 input, &value)));
3534
721
          if (::yb::PermissionType_IsValid(value)) {
3535
721
            set_permission(static_cast< ::yb::PermissionType >(value));
3536
0
          } else {
3537
0
            mutable_unknown_fields()->AddVarint(
3538
0
                1, static_cast< ::google::protobuf::uint64>(value));
3539
0
          }
3540
0
        } else {
3541
0
          goto handle_unusual;
3542
0
        }
3543
721
        break;
3544
721
      }
3545
3546
      // optional .yb.ResourceType resource_type = 2;
3547
721
      case 2: {
3548
721
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3549
721
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
3550
721
          int value;
3551
721
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3552
721
                   int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
3553
721
                 input, &value)));
3554
721
          if (::yb::ResourceType_IsValid(value)) {
3555
721
            set_resource_type(static_cast< ::yb::ResourceType >(value));
3556
0
          } else {
3557
0
            mutable_unknown_fields()->AddVarint(
3558
0
                2, static_cast< ::google::protobuf::uint64>(value));
3559
0
          }
3560
0
        } else {
3561
0
          goto handle_unusual;
3562
0
        }
3563
721
        break;
3564
721
      }
3565
3566
      // optional string canonical_resource = 3;
3567
721
      case 3: {
3568
721
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3569
721
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
3570
721
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3571
721
                input, this->mutable_canonical_resource()));
3572
721
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3573
721
            this->canonical_resource().data(), static_cast<int>(this->canonical_resource().length()),
3574
721
            ::google::protobuf::internal::WireFormat::PARSE,
3575
721
            "yb.master.GrantRevokePermissionRequestPB.canonical_resource");
3576
0
        } else {
3577
0
          goto handle_unusual;
3578
0
        }
3579
721
        break;
3580
721
      }
3581
3582
      // optional string resource_name = 4;
3583
520
      case 4: {
3584
520
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3585
520
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
3586
520
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3587
520
                input, this->mutable_resource_name()));
3588
520
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3589
520
            this->resource_name().data(), static_cast<int>(this->resource_name().length()),
3590
520
            ::google::protobuf::internal::WireFormat::PARSE,
3591
520
            "yb.master.GrantRevokePermissionRequestPB.resource_name");
3592
0
        } else {
3593
0
          goto handle_unusual;
3594
0
        }
3595
520
        break;
3596
520
      }
3597
3598
      // optional .yb.master.NamespaceIdentifierPB namespace = 5;
3599
435
      case 5: {
3600
435
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3601
435
            static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
3602
435
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
3603
435
               input, mutable_namespace_()));
3604
0
        } else {
3605
0
          goto handle_unusual;
3606
0
        }
3607
435
        break;
3608
435
      }
3609
3610
      // optional string role_name = 6;
3611
721
      case 6: {
3612
721
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3613
721
            static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
3614
721
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
3615
721
                input, this->mutable_role_name()));
3616
721
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3617
721
            this->role_name().data(), static_cast<int>(this->role_name().length()),
3618
721
            ::google::protobuf::internal::WireFormat::PARSE,
3619
721
            "yb.master.GrantRevokePermissionRequestPB.role_name");
3620
0
        } else {
3621
0
          goto handle_unusual;
3622
0
        }
3623
721
        break;
3624
721
      }
3625
3626
      // optional bool revoke = 7 [default = false];
3627
721
      case 7: {
3628
721
        if (static_cast< ::google::protobuf::uint8>(tag) ==
3629
721
            static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
3630
721
          set_has_revoke();
3631
721
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
3632
721
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
3633
721
                 input, &revoke_)));
3634
0
        } else {
3635
0
          goto handle_unusual;
3636
0
        }
3637
721
        break;
3638
721
      }
3639
3640
0
      default: {
3641
721
      handle_unusual:
3642
721
        if (tag == 0) {
3643
721
          goto success;
3644
721
        }
3645
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
3646
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
3647
0
        break;
3648
0
      }
3649
4.56k
    }
3650
4.56k
  }
3651
721
success:
3652
  // @@protoc_insertion_point(parse_success:yb.master.GrantRevokePermissionRequestPB)
3653
721
  return true;
3654
0
failure:
3655
  // @@protoc_insertion_point(parse_failure:yb.master.GrantRevokePermissionRequestPB)
3656
0
  return false;
3657
721
#undef DO_
3658
721
}
3659
3660
void GrantRevokePermissionRequestPB::SerializeWithCachedSizes(
3661
0
    ::google::protobuf::io::CodedOutputStream* output) const {
3662
  // @@protoc_insertion_point(serialize_start:yb.master.GrantRevokePermissionRequestPB)
3663
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3664
0
  (void) cached_has_bits;
3665
3666
0
  cached_has_bits = _has_bits_[0];
3667
  // optional .yb.PermissionType permission = 1;
3668
0
  if (cached_has_bits & 0x00000010u) {
3669
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
3670
0
      1, this->permission(), output);
3671
0
  }
3672
3673
  // optional .yb.ResourceType resource_type = 2;
3674
0
  if (cached_has_bits & 0x00000040u) {
3675
0
    ::google::protobuf::internal::WireFormatLite::WriteEnum(
3676
0
      2, this->resource_type(), output);
3677
0
  }
3678
3679
  // optional string canonical_resource = 3;
3680
0
  if (cached_has_bits & 0x00000001u) {
3681
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3682
0
      this->canonical_resource().data(), static_cast<int>(this->canonical_resource().length()),
3683
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
3684
0
      "yb.master.GrantRevokePermissionRequestPB.canonical_resource");
3685
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3686
0
      3, this->canonical_resource(), output);
3687
0
  }
3688
3689
  // optional string resource_name = 4;
3690
0
  if (cached_has_bits & 0x00000002u) {
3691
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3692
0
      this->resource_name().data(), static_cast<int>(this->resource_name().length()),
3693
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
3694
0
      "yb.master.GrantRevokePermissionRequestPB.resource_name");
3695
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3696
0
      4, this->resource_name(), output);
3697
0
  }
3698
3699
  // optional .yb.master.NamespaceIdentifierPB namespace = 5;
3700
0
  if (cached_has_bits & 0x00000008u) {
3701
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3702
0
      5, *this->namespace__, output);
3703
0
  }
3704
3705
  // optional string role_name = 6;
3706
0
  if (cached_has_bits & 0x00000004u) {
3707
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3708
0
      this->role_name().data(), static_cast<int>(this->role_name().length()),
3709
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
3710
0
      "yb.master.GrantRevokePermissionRequestPB.role_name");
3711
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
3712
0
      6, this->role_name(), output);
3713
0
  }
3714
3715
  // optional bool revoke = 7 [default = false];
3716
0
  if (cached_has_bits & 0x00000020u) {
3717
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->revoke(), output);
3718
0
  }
3719
3720
0
  if (_internal_metadata_.have_unknown_fields()) {
3721
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
3722
0
        _internal_metadata_.unknown_fields(), output);
3723
0
  }
3724
  // @@protoc_insertion_point(serialize_end:yb.master.GrantRevokePermissionRequestPB)
3725
0
}
3726
3727
::google::protobuf::uint8* GrantRevokePermissionRequestPB::InternalSerializeWithCachedSizesToArray(
3728
721
    bool deterministic, ::google::protobuf::uint8* target) const {
3729
721
  (void)deterministic; // Unused
3730
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.GrantRevokePermissionRequestPB)
3731
721
  ::google::protobuf::uint32 cached_has_bits = 0;
3732
721
  (void) cached_has_bits;
3733
3734
721
  cached_has_bits = _has_bits_[0];
3735
  // optional .yb.PermissionType permission = 1;
3736
721
  if (cached_has_bits & 0x00000010u) {
3737
721
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
3738
721
      1, this->permission(), target);
3739
721
  }
3740
3741
  // optional .yb.ResourceType resource_type = 2;
3742
721
  if (cached_has_bits & 0x00000040u) {
3743
721
    target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
3744
721
      2, this->resource_type(), target);
3745
721
  }
3746
3747
  // optional string canonical_resource = 3;
3748
721
  if (cached_has_bits & 0x00000001u) {
3749
721
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3750
721
      this->canonical_resource().data(), static_cast<int>(this->canonical_resource().length()),
3751
721
      ::google::protobuf::internal::WireFormat::SERIALIZE,
3752
721
      "yb.master.GrantRevokePermissionRequestPB.canonical_resource");
3753
721
    target =
3754
721
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3755
721
        3, this->canonical_resource(), target);
3756
721
  }
3757
3758
  // optional string resource_name = 4;
3759
721
  if (cached_has_bits & 0x00000002u) {
3760
520
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3761
520
      this->resource_name().data(), static_cast<int>(this->resource_name().length()),
3762
520
      ::google::protobuf::internal::WireFormat::SERIALIZE,
3763
520
      "yb.master.GrantRevokePermissionRequestPB.resource_name");
3764
520
    target =
3765
520
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3766
520
        4, this->resource_name(), target);
3767
520
  }
3768
3769
  // optional .yb.master.NamespaceIdentifierPB namespace = 5;
3770
721
  if (cached_has_bits & 0x00000008u) {
3771
435
    target = ::google::protobuf::internal::WireFormatLite::
3772
435
      InternalWriteMessageToArray(
3773
435
        5, *this->namespace__, deterministic, target);
3774
435
  }
3775
3776
  // optional string role_name = 6;
3777
721
  if (cached_has_bits & 0x00000004u) {
3778
721
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
3779
721
      this->role_name().data(), static_cast<int>(this->role_name().length()),
3780
721
      ::google::protobuf::internal::WireFormat::SERIALIZE,
3781
721
      "yb.master.GrantRevokePermissionRequestPB.role_name");
3782
721
    target =
3783
721
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
3784
721
        6, this->role_name(), target);
3785
721
  }
3786
3787
  // optional bool revoke = 7 [default = false];
3788
721
  if (cached_has_bits & 0x00000020u) {
3789
721
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->revoke(), target);
3790
721
  }
3791
3792
721
  if (_internal_metadata_.have_unknown_fields()) {
3793
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
3794
0
        _internal_metadata_.unknown_fields(), target);
3795
0
  }
3796
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.GrantRevokePermissionRequestPB)
3797
721
  return target;
3798
721
}
3799
3800
1.44k
size_t GrantRevokePermissionRequestPB::ByteSizeLong() const {
3801
// @@protoc_insertion_point(message_byte_size_start:yb.master.GrantRevokePermissionRequestPB)
3802
1.44k
  size_t total_size = 0;
3803
3804
1.44k
  if (_internal_metadata_.have_unknown_fields()) {
3805
0
    total_size +=
3806
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
3807
0
        _internal_metadata_.unknown_fields());
3808
0
  }
3809
1.44k
  if (_has_bits_[0 / 32] & 127u) {
3810
    // optional string canonical_resource = 3;
3811
1.44k
    if (has_canonical_resource()) {
3812
1.44k
      total_size += 1 +
3813
1.44k
        ::google::protobuf::internal::WireFormatLite::StringSize(
3814
1.44k
          this->canonical_resource());
3815
1.44k
    }
3816
3817
    // optional string resource_name = 4;
3818
1.44k
    if (has_resource_name()) {
3819
1.04k
      total_size += 1 +
3820
1.04k
        ::google::protobuf::internal::WireFormatLite::StringSize(
3821
1.04k
          this->resource_name());
3822
1.04k
    }
3823
3824
    // optional string role_name = 6;
3825
1.44k
    if (has_role_name()) {
3826
1.44k
      total_size += 1 +
3827
1.44k
        ::google::protobuf::internal::WireFormatLite::StringSize(
3828
1.44k
          this->role_name());
3829
1.44k
    }
3830
3831
    // optional .yb.master.NamespaceIdentifierPB namespace = 5;
3832
1.44k
    if (has_namespace_()) {
3833
870
      total_size += 1 +
3834
870
        ::google::protobuf::internal::WireFormatLite::MessageSize(
3835
870
          *this->namespace__);
3836
870
    }
3837
3838
    // optional .yb.PermissionType permission = 1;
3839
1.44k
    if (has_permission()) {
3840
1.44k
      total_size += 1 +
3841
1.44k
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->permission());
3842
1.44k
    }
3843
3844
    // optional bool revoke = 7 [default = false];
3845
1.44k
    if (has_revoke()) {
3846
1.44k
      total_size += 1 + 1;
3847
1.44k
    }
3848
3849
    // optional .yb.ResourceType resource_type = 2;
3850
1.44k
    if (has_resource_type()) {
3851
1.44k
      total_size += 1 +
3852
1.44k
        ::google::protobuf::internal::WireFormatLite::EnumSize(this->resource_type());
3853
1.44k
    }
3854
3855
1.44k
  }
3856
1.44k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
3857
1.44k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
3858
1.44k
  _cached_size_ = cached_size;
3859
1.44k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
3860
1.44k
  return total_size;
3861
1.44k
}
3862
3863
0
void GrantRevokePermissionRequestPB::MergeFrom(const ::google::protobuf::Message& from) {
3864
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.GrantRevokePermissionRequestPB)
3865
0
  GOOGLE_DCHECK_NE(&from, this);
3866
0
  const GrantRevokePermissionRequestPB* source =
3867
0
      ::google::protobuf::internal::DynamicCastToGenerated<const GrantRevokePermissionRequestPB>(
3868
0
          &from);
3869
0
  if (source == NULL) {
3870
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.GrantRevokePermissionRequestPB)
3871
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
3872
0
  } else {
3873
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.GrantRevokePermissionRequestPB)
3874
0
    MergeFrom(*source);
3875
0
  }
3876
0
}
3877
3878
0
void GrantRevokePermissionRequestPB::MergeFrom(const GrantRevokePermissionRequestPB& from) {
3879
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.GrantRevokePermissionRequestPB)
3880
0
  GOOGLE_DCHECK_NE(&from, this);
3881
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3882
0
  ::google::protobuf::uint32 cached_has_bits = 0;
3883
0
  (void) cached_has_bits;
3884
3885
0
  cached_has_bits = from._has_bits_[0];
3886
0
  if (cached_has_bits & 127u) {
3887
0
    if (cached_has_bits & 0x00000001u) {
3888
0
      set_has_canonical_resource();
3889
0
      canonical_resource_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.canonical_resource_);
3890
0
    }
3891
0
    if (cached_has_bits & 0x00000002u) {
3892
0
      set_has_resource_name();
3893
0
      resource_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.resource_name_);
3894
0
    }
3895
0
    if (cached_has_bits & 0x00000004u) {
3896
0
      set_has_role_name();
3897
0
      role_name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.role_name_);
3898
0
    }
3899
0
    if (cached_has_bits & 0x00000008u) {
3900
0
      mutable_namespace_()->::yb::master::NamespaceIdentifierPB::MergeFrom(from.namespace_());
3901
0
    }
3902
0
    if (cached_has_bits & 0x00000010u) {
3903
0
      permission_ = from.permission_;
3904
0
    }
3905
0
    if (cached_has_bits & 0x00000020u) {
3906
0
      revoke_ = from.revoke_;
3907
0
    }
3908
0
    if (cached_has_bits & 0x00000040u) {
3909
0
      resource_type_ = from.resource_type_;
3910
0
    }
3911
0
    _has_bits_[0] |= cached_has_bits;
3912
0
  }
3913
0
}
3914
3915
0
void GrantRevokePermissionRequestPB::CopyFrom(const ::google::protobuf::Message& from) {
3916
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.GrantRevokePermissionRequestPB)
3917
0
  if (&from == this) return;
3918
0
  Clear();
3919
0
  MergeFrom(from);
3920
0
}
3921
3922
0
void GrantRevokePermissionRequestPB::CopyFrom(const GrantRevokePermissionRequestPB& from) {
3923
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.GrantRevokePermissionRequestPB)
3924
0
  if (&from == this) return;
3925
0
  Clear();
3926
0
  MergeFrom(from);
3927
0
}
3928
3929
1.44k
bool GrantRevokePermissionRequestPB::IsInitialized() const {
3930
1.44k
  return true;
3931
1.44k
}
3932
3933
0
void GrantRevokePermissionRequestPB::Swap(GrantRevokePermissionRequestPB* other) {
3934
0
  if (other == this) return;
3935
0
  InternalSwap(other);
3936
0
}
3937
0
void GrantRevokePermissionRequestPB::InternalSwap(GrantRevokePermissionRequestPB* other) {
3938
0
  using std::swap;
3939
0
  canonical_resource_.Swap(&other->canonical_resource_);
3940
0
  resource_name_.Swap(&other->resource_name_);
3941
0
  role_name_.Swap(&other->role_name_);
3942
0
  swap(namespace__, other->namespace__);
3943
0
  swap(permission_, other->permission_);
3944
0
  swap(revoke_, other->revoke_);
3945
0
  swap(resource_type_, other->resource_type_);
3946
0
  swap(_has_bits_[0], other->_has_bits_[0]);
3947
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
3948
0
  swap(_cached_size_, other->_cached_size_);
3949
0
}
3950
3951
2.16k
::google::protobuf::Metadata GrantRevokePermissionRequestPB::GetMetadata() const {
3952
2.16k
  protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::protobuf_AssignDescriptorsOnce();
3953
2.16k
  return ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::file_level_metadata[kIndexInFileMessages];
3954
2.16k
}
3955
3956
3957
// ===================================================================
3958
3959
15.8k
void GrantRevokePermissionResponsePB::InitAsDefaultInstance() {
3960
15.8k
  ::yb::master::_GrantRevokePermissionResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::master::MasterErrorPB*>(
3961
15.8k
      ::yb::master::MasterErrorPB::internal_default_instance());
3962
15.8k
}
3963
0
void GrantRevokePermissionResponsePB::clear_error() {
3964
0
  if (error_ != NULL) error_->Clear();
3965
0
  clear_has_error();
3966
0
}
3967
#if !defined(_MSC_VER) || _MSC_VER >= 1900
3968
const int GrantRevokePermissionResponsePB::kErrorFieldNumber;
3969
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
3970
3971
GrantRevokePermissionResponsePB::GrantRevokePermissionResponsePB()
3972
17.2k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
3973
1.44k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
3974
1.44k
    ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::InitDefaultsGrantRevokePermissionResponsePB();
3975
1.44k
  }
3976
17.2k
  SharedCtor();
3977
  // @@protoc_insertion_point(constructor:yb.master.GrantRevokePermissionResponsePB)
3978
17.2k
}
3979
GrantRevokePermissionResponsePB::GrantRevokePermissionResponsePB(const GrantRevokePermissionResponsePB& from)
3980
  : ::google::protobuf::Message(),
3981
      _internal_metadata_(NULL),
3982
      _has_bits_(from._has_bits_),
3983
0
      _cached_size_(0) {
3984
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
3985
0
  if (from.has_error()) {
3986
0
    error_ = new ::yb::master::MasterErrorPB(*from.error_);
3987
0
  } else {
3988
0
    error_ = NULL;
3989
0
  }
3990
  // @@protoc_insertion_point(copy_constructor:yb.master.GrantRevokePermissionResponsePB)
3991
0
}
3992
3993
17.2k
void GrantRevokePermissionResponsePB::SharedCtor() {
3994
17.2k
  _cached_size_ = 0;
3995
17.2k
  error_ = NULL;
3996
17.2k
}
3997
3998
1.44k
GrantRevokePermissionResponsePB::~GrantRevokePermissionResponsePB() {
3999
  // @@protoc_insertion_point(destructor:yb.master.GrantRevokePermissionResponsePB)
4000
1.44k
  SharedDtor();
4001
1.44k
}
4002
4003
1.44k
void GrantRevokePermissionResponsePB::SharedDtor() {
4004
1.44k
  if (this != internal_default_instance()) delete error_;
4005
1.44k
}
4006
4007
0
void GrantRevokePermissionResponsePB::SetCachedSize(int size) const {
4008
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4009
0
  _cached_size_ = size;
4010
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4011
0
}
4012
0
const ::google::protobuf::Descriptor* GrantRevokePermissionResponsePB::descriptor() {
4013
0
  ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::protobuf_AssignDescriptorsOnce();
4014
0
  return ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
4015
0
}
4016
4017
0
const GrantRevokePermissionResponsePB& GrantRevokePermissionResponsePB::default_instance() {
4018
0
  ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::InitDefaultsGrantRevokePermissionResponsePB();
4019
0
  return *internal_default_instance();
4020
0
}
4021
4022
0
GrantRevokePermissionResponsePB* GrantRevokePermissionResponsePB::New(::google::protobuf::Arena* arena) const {
4023
0
  GrantRevokePermissionResponsePB* n = new GrantRevokePermissionResponsePB;
4024
0
  if (arena != NULL) {
4025
0
    arena->Own(n);
4026
0
  }
4027
0
  return n;
4028
0
}
4029
4030
721
void GrantRevokePermissionResponsePB::Clear() {
4031
// @@protoc_insertion_point(message_clear_start:yb.master.GrantRevokePermissionResponsePB)
4032
721
  ::google::protobuf::uint32 cached_has_bits = 0;
4033
  // Prevent compiler warnings about cached_has_bits being unused
4034
721
  (void) cached_has_bits;
4035
4036
721
  cached_has_bits = _has_bits_[0];
4037
721
  if (cached_has_bits & 0x00000001u) {
4038
0
    GOOGLE_DCHECK(error_ != NULL);
4039
0
    error_->Clear();
4040
0
  }
4041
721
  _has_bits_.Clear();
4042
721
  _internal_metadata_.Clear();
4043
721
}
4044
4045
bool GrantRevokePermissionResponsePB::MergePartialFromCodedStream(
4046
721
    ::google::protobuf::io::CodedInputStream* input) {
4047
0
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
4048
721
  ::google::protobuf::uint32 tag;
4049
  // @@protoc_insertion_point(parse_start:yb.master.GrantRevokePermissionResponsePB)
4050
721
  for (;;) {
4051
721
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4052
721
    tag = p.first;
4053
721
    if (!p.second) goto handle_unusual;
4054
0
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4055
      // optional .yb.master.MasterErrorPB error = 1;
4056
0
      case 1: {
4057
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4058
0
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
4059
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
4060
0
               input, mutable_error()));
4061
0
        } else {
4062
0
          goto handle_unusual;
4063
0
        }
4064
0
        break;
4065
721
      }
4066
4067
0
      default: {
4068
721
      handle_unusual:
4069
721
        if (tag == 0) {
4070
721
          goto success;
4071
721
        }
4072
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
4073
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
4074
0
        break;
4075
0
      }
4076
0
    }
4077
0
  }
4078
721
success:
4079
  // @@protoc_insertion_point(parse_success:yb.master.GrantRevokePermissionResponsePB)
4080
721
  return true;
4081
0
failure:
4082
  // @@protoc_insertion_point(parse_failure:yb.master.GrantRevokePermissionResponsePB)
4083
0
  return false;
4084
721
#undef DO_
4085
721
}
4086
4087
void GrantRevokePermissionResponsePB::SerializeWithCachedSizes(
4088
0
    ::google::protobuf::io::CodedOutputStream* output) const {
4089
  // @@protoc_insertion_point(serialize_start:yb.master.GrantRevokePermissionResponsePB)
4090
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4091
0
  (void) cached_has_bits;
4092
4093
0
  cached_has_bits = _has_bits_[0];
4094
  // optional .yb.master.MasterErrorPB error = 1;
4095
0
  if (cached_has_bits & 0x00000001u) {
4096
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4097
0
      1, *this->error_, output);
4098
0
  }
4099
4100
0
  if (_internal_metadata_.have_unknown_fields()) {
4101
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4102
0
        _internal_metadata_.unknown_fields(), output);
4103
0
  }
4104
  // @@protoc_insertion_point(serialize_end:yb.master.GrantRevokePermissionResponsePB)
4105
0
}
4106
4107
::google::protobuf::uint8* GrantRevokePermissionResponsePB::InternalSerializeWithCachedSizesToArray(
4108
721
    bool deterministic, ::google::protobuf::uint8* target) const {
4109
721
  (void)deterministic; // Unused
4110
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.GrantRevokePermissionResponsePB)
4111
721
  ::google::protobuf::uint32 cached_has_bits = 0;
4112
721
  (void) cached_has_bits;
4113
4114
721
  cached_has_bits = _has_bits_[0];
4115
  // optional .yb.master.MasterErrorPB error = 1;
4116
721
  if (cached_has_bits & 0x00000001u) {
4117
0
    target = ::google::protobuf::internal::WireFormatLite::
4118
0
      InternalWriteMessageToArray(
4119
0
        1, *this->error_, deterministic, target);
4120
0
  }
4121
4122
721
  if (_internal_metadata_.have_unknown_fields()) {
4123
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4124
0
        _internal_metadata_.unknown_fields(), target);
4125
0
  }
4126
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.GrantRevokePermissionResponsePB)
4127
721
  return target;
4128
721
}
4129
4130
1.44k
size_t GrantRevokePermissionResponsePB::ByteSizeLong() const {
4131
// @@protoc_insertion_point(message_byte_size_start:yb.master.GrantRevokePermissionResponsePB)
4132
1.44k
  size_t total_size = 0;
4133
4134
1.44k
  if (_internal_metadata_.have_unknown_fields()) {
4135
0
    total_size +=
4136
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4137
0
        _internal_metadata_.unknown_fields());
4138
0
  }
4139
  // optional .yb.master.MasterErrorPB error = 1;
4140
1.44k
  if (has_error()) {
4141
0
    total_size += 1 +
4142
0
      ::google::protobuf::internal::WireFormatLite::MessageSize(
4143
0
        *this->error_);
4144
0
  }
4145
4146
1.44k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4147
1.44k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4148
1.44k
  _cached_size_ = cached_size;
4149
1.44k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4150
1.44k
  return total_size;
4151
1.44k
}
4152
4153
0
void GrantRevokePermissionResponsePB::MergeFrom(const ::google::protobuf::Message& from) {
4154
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.GrantRevokePermissionResponsePB)
4155
0
  GOOGLE_DCHECK_NE(&from, this);
4156
0
  const GrantRevokePermissionResponsePB* source =
4157
0
      ::google::protobuf::internal::DynamicCastToGenerated<const GrantRevokePermissionResponsePB>(
4158
0
          &from);
4159
0
  if (source == NULL) {
4160
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.GrantRevokePermissionResponsePB)
4161
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4162
0
  } else {
4163
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.GrantRevokePermissionResponsePB)
4164
0
    MergeFrom(*source);
4165
0
  }
4166
0
}
4167
4168
0
void GrantRevokePermissionResponsePB::MergeFrom(const GrantRevokePermissionResponsePB& from) {
4169
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.GrantRevokePermissionResponsePB)
4170
0
  GOOGLE_DCHECK_NE(&from, this);
4171
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4172
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4173
0
  (void) cached_has_bits;
4174
4175
0
  if (from.has_error()) {
4176
0
    mutable_error()->::yb::master::MasterErrorPB::MergeFrom(from.error());
4177
0
  }
4178
0
}
4179
4180
0
void GrantRevokePermissionResponsePB::CopyFrom(const ::google::protobuf::Message& from) {
4181
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.GrantRevokePermissionResponsePB)
4182
0
  if (&from == this) return;
4183
0
  Clear();
4184
0
  MergeFrom(from);
4185
0
}
4186
4187
0
void GrantRevokePermissionResponsePB::CopyFrom(const GrantRevokePermissionResponsePB& from) {
4188
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.GrantRevokePermissionResponsePB)
4189
0
  if (&from == this) return;
4190
0
  Clear();
4191
0
  MergeFrom(from);
4192
0
}
4193
4194
1.44k
bool GrantRevokePermissionResponsePB::IsInitialized() const {
4195
1.44k
  if (has_error()) {
4196
0
    if (!this->error_->IsInitialized()) return false;
4197
1.44k
  }
4198
1.44k
  return true;
4199
1.44k
}
4200
4201
0
void GrantRevokePermissionResponsePB::Swap(GrantRevokePermissionResponsePB* other) {
4202
0
  if (other == this) return;
4203
0
  InternalSwap(other);
4204
0
}
4205
0
void GrantRevokePermissionResponsePB::InternalSwap(GrantRevokePermissionResponsePB* other) {
4206
0
  using std::swap;
4207
0
  swap(error_, other->error_);
4208
0
  swap(_has_bits_[0], other->_has_bits_[0]);
4209
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
4210
0
  swap(_cached_size_, other->_cached_size_);
4211
0
}
4212
4213
0
::google::protobuf::Metadata GrantRevokePermissionResponsePB::GetMetadata() const {
4214
0
  protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::protobuf_AssignDescriptorsOnce();
4215
0
  return ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::file_level_metadata[kIndexInFileMessages];
4216
0
}
4217
4218
4219
// ===================================================================
4220
4221
15.8k
void GetPermissionsRequestPB::InitAsDefaultInstance() {
4222
15.8k
}
4223
#if !defined(_MSC_VER) || _MSC_VER >= 1900
4224
const int GetPermissionsRequestPB::kIfVersionGreaterThanFieldNumber;
4225
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
4226
4227
GetPermissionsRequestPB::GetPermissionsRequestPB()
4228
251k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
4229
235k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
4230
235k
    ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::InitDefaultsGetPermissionsRequestPB();
4231
235k
  }
4232
251k
  SharedCtor();
4233
  // @@protoc_insertion_point(constructor:yb.master.GetPermissionsRequestPB)
4234
251k
}
4235
GetPermissionsRequestPB::GetPermissionsRequestPB(const GetPermissionsRequestPB& from)
4236
  : ::google::protobuf::Message(),
4237
      _internal_metadata_(NULL),
4238
      _has_bits_(from._has_bits_),
4239
0
      _cached_size_(0) {
4240
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4241
0
  if_version_greater_than_ = from.if_version_greater_than_;
4242
  // @@protoc_insertion_point(copy_constructor:yb.master.GetPermissionsRequestPB)
4243
0
}
4244
4245
251k
void GetPermissionsRequestPB::SharedCtor() {
4246
251k
  _cached_size_ = 0;
4247
251k
  if_version_greater_than_ = GOOGLE_ULONGLONG(0);
4248
251k
}
4249
4250
235k
GetPermissionsRequestPB::~GetPermissionsRequestPB() {
4251
  // @@protoc_insertion_point(destructor:yb.master.GetPermissionsRequestPB)
4252
235k
  SharedDtor();
4253
235k
}
4254
4255
235k
void GetPermissionsRequestPB::SharedDtor() {
4256
235k
}
4257
4258
0
void GetPermissionsRequestPB::SetCachedSize(int size) const {
4259
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4260
0
  _cached_size_ = size;
4261
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4262
0
}
4263
0
const ::google::protobuf::Descriptor* GetPermissionsRequestPB::descriptor() {
4264
0
  ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::protobuf_AssignDescriptorsOnce();
4265
0
  return ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
4266
0
}
4267
4268
0
const GetPermissionsRequestPB& GetPermissionsRequestPB::default_instance() {
4269
0
  ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::InitDefaultsGetPermissionsRequestPB();
4270
0
  return *internal_default_instance();
4271
0
}
4272
4273
0
GetPermissionsRequestPB* GetPermissionsRequestPB::New(::google::protobuf::Arena* arena) const {
4274
0
  GetPermissionsRequestPB* n = new GetPermissionsRequestPB;
4275
0
  if (arena != NULL) {
4276
0
    arena->Own(n);
4277
0
  }
4278
0
  return n;
4279
0
}
4280
4281
117k
void GetPermissionsRequestPB::Clear() {
4282
// @@protoc_insertion_point(message_clear_start:yb.master.GetPermissionsRequestPB)
4283
117k
  ::google::protobuf::uint32 cached_has_bits = 0;
4284
  // Prevent compiler warnings about cached_has_bits being unused
4285
117k
  (void) cached_has_bits;
4286
4287
117k
  if_version_greater_than_ = GOOGLE_ULONGLONG(0);
4288
117k
  _has_bits_.Clear();
4289
117k
  _internal_metadata_.Clear();
4290
117k
}
4291
4292
bool GetPermissionsRequestPB::MergePartialFromCodedStream(
4293
117k
    ::google::protobuf::io::CodedInputStream* input) {
4294
114k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
4295
117k
  ::google::protobuf::uint32 tag;
4296
  // @@protoc_insertion_point(parse_start:yb.master.GetPermissionsRequestPB)
4297
232k
  for (;;) {
4298
232k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4299
232k
    tag = p.first;
4300
232k
    if (!p.second) goto handle_unusual;
4301
115k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4302
      // optional uint64 if_version_greater_than = 1;
4303
114k
      case 1: {
4304
114k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4305
114k
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
4306
114k
          set_has_if_version_greater_than();
4307
114k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4308
114k
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
4309
114k
                 input, &if_version_greater_than_)));
4310
18.4E
        } else {
4311
18.4E
          goto handle_unusual;
4312
18.4E
        }
4313
114k
        break;
4314
117k
      }
4315
4316
0
      default: {
4317
117k
      handle_unusual:
4318
117k
        if (tag == 0) {
4319
117k
          goto success;
4320
117k
        }
4321
18.4E
        DO_(::google::protobuf::internal::WireFormat::SkipField(
4322
18.4E
              input, tag, _internal_metadata_.mutable_unknown_fields()));
4323
18.4E
        break;
4324
18.4E
      }
4325
115k
    }
4326
115k
  }
4327
117k
success:
4328
  // @@protoc_insertion_point(parse_success:yb.master.GetPermissionsRequestPB)
4329
117k
  return true;
4330
0
failure:
4331
  // @@protoc_insertion_point(parse_failure:yb.master.GetPermissionsRequestPB)
4332
0
  return false;
4333
117k
#undef DO_
4334
117k
}
4335
4336
void GetPermissionsRequestPB::SerializeWithCachedSizes(
4337
0
    ::google::protobuf::io::CodedOutputStream* output) const {
4338
  // @@protoc_insertion_point(serialize_start:yb.master.GetPermissionsRequestPB)
4339
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4340
0
  (void) cached_has_bits;
4341
4342
0
  cached_has_bits = _has_bits_[0];
4343
  // optional uint64 if_version_greater_than = 1;
4344
0
  if (cached_has_bits & 0x00000001u) {
4345
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->if_version_greater_than(), output);
4346
0
  }
4347
4348
0
  if (_internal_metadata_.have_unknown_fields()) {
4349
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4350
0
        _internal_metadata_.unknown_fields(), output);
4351
0
  }
4352
  // @@protoc_insertion_point(serialize_end:yb.master.GetPermissionsRequestPB)
4353
0
}
4354
4355
::google::protobuf::uint8* GetPermissionsRequestPB::InternalSerializeWithCachedSizesToArray(
4356
118k
    bool deterministic, ::google::protobuf::uint8* target) const {
4357
118k
  (void)deterministic; // Unused
4358
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.GetPermissionsRequestPB)
4359
118k
  ::google::protobuf::uint32 cached_has_bits = 0;
4360
118k
  (void) cached_has_bits;
4361
4362
118k
  cached_has_bits = _has_bits_[0];
4363
  // optional uint64 if_version_greater_than = 1;
4364
118k
  if (cached_has_bits & 0x00000001u) {
4365
116k
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->if_version_greater_than(), target);
4366
116k
  }
4367
4368
118k
  if (_internal_metadata_.have_unknown_fields()) {
4369
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4370
0
        _internal_metadata_.unknown_fields(), target);
4371
0
  }
4372
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.GetPermissionsRequestPB)
4373
118k
  return target;
4374
118k
}
4375
4376
236k
size_t GetPermissionsRequestPB::ByteSizeLong() const {
4377
// @@protoc_insertion_point(message_byte_size_start:yb.master.GetPermissionsRequestPB)
4378
236k
  size_t total_size = 0;
4379
4380
236k
  if (_internal_metadata_.have_unknown_fields()) {
4381
0
    total_size +=
4382
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4383
0
        _internal_metadata_.unknown_fields());
4384
0
  }
4385
  // optional uint64 if_version_greater_than = 1;
4386
236k
  if (has_if_version_greater_than()) {
4387
233k
    total_size += 1 +
4388
233k
      ::google::protobuf::internal::WireFormatLite::UInt64Size(
4389
233k
        this->if_version_greater_than());
4390
233k
  }
4391
4392
236k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4393
236k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4394
236k
  _cached_size_ = cached_size;
4395
236k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4396
236k
  return total_size;
4397
236k
}
4398
4399
0
void GetPermissionsRequestPB::MergeFrom(const ::google::protobuf::Message& from) {
4400
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.GetPermissionsRequestPB)
4401
0
  GOOGLE_DCHECK_NE(&from, this);
4402
0
  const GetPermissionsRequestPB* source =
4403
0
      ::google::protobuf::internal::DynamicCastToGenerated<const GetPermissionsRequestPB>(
4404
0
          &from);
4405
0
  if (source == NULL) {
4406
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.GetPermissionsRequestPB)
4407
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4408
0
  } else {
4409
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.GetPermissionsRequestPB)
4410
0
    MergeFrom(*source);
4411
0
  }
4412
0
}
4413
4414
0
void GetPermissionsRequestPB::MergeFrom(const GetPermissionsRequestPB& from) {
4415
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.GetPermissionsRequestPB)
4416
0
  GOOGLE_DCHECK_NE(&from, this);
4417
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4418
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4419
0
  (void) cached_has_bits;
4420
4421
0
  if (from.has_if_version_greater_than()) {
4422
0
    set_if_version_greater_than(from.if_version_greater_than());
4423
0
  }
4424
0
}
4425
4426
0
void GetPermissionsRequestPB::CopyFrom(const ::google::protobuf::Message& from) {
4427
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.GetPermissionsRequestPB)
4428
0
  if (&from == this) return;
4429
0
  Clear();
4430
0
  MergeFrom(from);
4431
0
}
4432
4433
0
void GetPermissionsRequestPB::CopyFrom(const GetPermissionsRequestPB& from) {
4434
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.GetPermissionsRequestPB)
4435
0
  if (&from == this) return;
4436
0
  Clear();
4437
0
  MergeFrom(from);
4438
0
}
4439
4440
235k
bool GetPermissionsRequestPB::IsInitialized() const {
4441
235k
  return true;
4442
235k
}
4443
4444
0
void GetPermissionsRequestPB::Swap(GetPermissionsRequestPB* other) {
4445
0
  if (other == this) return;
4446
0
  InternalSwap(other);
4447
0
}
4448
0
void GetPermissionsRequestPB::InternalSwap(GetPermissionsRequestPB* other) {
4449
0
  using std::swap;
4450
0
  swap(if_version_greater_than_, other->if_version_greater_than_);
4451
0
  swap(_has_bits_[0], other->_has_bits_[0]);
4452
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
4453
0
  swap(_cached_size_, other->_cached_size_);
4454
0
}
4455
4456
117k
::google::protobuf::Metadata GetPermissionsRequestPB::GetMetadata() const {
4457
117k
  protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::protobuf_AssignDescriptorsOnce();
4458
117k
  return ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::file_level_metadata[kIndexInFileMessages];
4459
117k
}
4460
4461
4462
// ===================================================================
4463
4464
15.8k
void ResourcePermissionInfoPB::InitAsDefaultInstance() {
4465
15.8k
}
4466
#if !defined(_MSC_VER) || _MSC_VER >= 1900
4467
const int ResourcePermissionInfoPB::kCanonicalResourceFieldNumber;
4468
const int ResourcePermissionInfoPB::kPermissionsFieldNumber;
4469
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
4470
4471
ResourcePermissionInfoPB::ResourcePermissionInfoPB()
4472
73.3k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
4473
57.5k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
4474
57.5k
    ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::InitDefaultsResourcePermissionInfoPB();
4475
57.5k
  }
4476
73.3k
  SharedCtor();
4477
  // @@protoc_insertion_point(constructor:yb.master.ResourcePermissionInfoPB)
4478
73.3k
}
4479
ResourcePermissionInfoPB::ResourcePermissionInfoPB(const ResourcePermissionInfoPB& from)
4480
  : ::google::protobuf::Message(),
4481
      _internal_metadata_(NULL),
4482
      _has_bits_(from._has_bits_),
4483
0
      _cached_size_(0) {
4484
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4485
0
  canonical_resource_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4486
0
  if (from.has_canonical_resource()) {
4487
0
    canonical_resource_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.canonical_resource_);
4488
0
  }
4489
0
  permissions_ = from.permissions_;
4490
  // @@protoc_insertion_point(copy_constructor:yb.master.ResourcePermissionInfoPB)
4491
0
}
4492
4493
73.3k
void ResourcePermissionInfoPB::SharedCtor() {
4494
73.3k
  _cached_size_ = 0;
4495
73.3k
  canonical_resource_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4496
73.3k
  permissions_ = 0u;
4497
73.3k
}
4498
4499
57.4k
ResourcePermissionInfoPB::~ResourcePermissionInfoPB() {
4500
  // @@protoc_insertion_point(destructor:yb.master.ResourcePermissionInfoPB)
4501
57.4k
  SharedDtor();
4502
57.4k
}
4503
4504
57.4k
void ResourcePermissionInfoPB::SharedDtor() {
4505
57.4k
  canonical_resource_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4506
57.4k
}
4507
4508
0
void ResourcePermissionInfoPB::SetCachedSize(int size) const {
4509
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4510
0
  _cached_size_ = size;
4511
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4512
0
}
4513
0
const ::google::protobuf::Descriptor* ResourcePermissionInfoPB::descriptor() {
4514
0
  ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::protobuf_AssignDescriptorsOnce();
4515
0
  return ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
4516
0
}
4517
4518
0
const ResourcePermissionInfoPB& ResourcePermissionInfoPB::default_instance() {
4519
0
  ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::InitDefaultsResourcePermissionInfoPB();
4520
0
  return *internal_default_instance();
4521
0
}
4522
4523
0
ResourcePermissionInfoPB* ResourcePermissionInfoPB::New(::google::protobuf::Arena* arena) const {
4524
0
  ResourcePermissionInfoPB* n = new ResourcePermissionInfoPB;
4525
0
  if (arena != NULL) {
4526
0
    arena->Own(n);
4527
0
  }
4528
0
  return n;
4529
0
}
4530
4531
0
void ResourcePermissionInfoPB::Clear() {
4532
// @@protoc_insertion_point(message_clear_start:yb.master.ResourcePermissionInfoPB)
4533
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4534
  // Prevent compiler warnings about cached_has_bits being unused
4535
0
  (void) cached_has_bits;
4536
4537
0
  cached_has_bits = _has_bits_[0];
4538
0
  if (cached_has_bits & 0x00000001u) {
4539
0
    GOOGLE_DCHECK(!canonical_resource_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
4540
0
    (*canonical_resource_.UnsafeRawStringPointer())->clear();
4541
0
  }
4542
0
  permissions_ = 0u;
4543
0
  _has_bits_.Clear();
4544
0
  _internal_metadata_.Clear();
4545
0
}
4546
4547
bool ResourcePermissionInfoPB::MergePartialFromCodedStream(
4548
20.8k
    ::google::protobuf::io::CodedInputStream* input) {
4549
41.7k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
4550
20.8k
  ::google::protobuf::uint32 tag;
4551
  // @@protoc_insertion_point(parse_start:yb.master.ResourcePermissionInfoPB)
4552
62.6k
  for (;;) {
4553
62.6k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4554
62.6k
    tag = p.first;
4555
62.6k
    if (!p.second) goto handle_unusual;
4556
41.7k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4557
      // optional string canonical_resource = 1;
4558
20.8k
      case 1: {
4559
20.8k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4560
20.8k
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
4561
20.8k
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4562
20.8k
                input, this->mutable_canonical_resource()));
4563
20.8k
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4564
20.8k
            this->canonical_resource().data(), static_cast<int>(this->canonical_resource().length()),
4565
20.8k
            ::google::protobuf::internal::WireFormat::PARSE,
4566
20.8k
            "yb.master.ResourcePermissionInfoPB.canonical_resource");
4567
0
        } else {
4568
0
          goto handle_unusual;
4569
0
        }
4570
20.8k
        break;
4571
20.8k
      }
4572
4573
      // optional uint32 permissions = 2;
4574
20.8k
      case 2: {
4575
20.8k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4576
20.8k
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
4577
20.8k
          set_has_permissions();
4578
20.8k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4579
20.8k
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
4580
20.8k
                 input, &permissions_)));
4581
0
        } else {
4582
0
          goto handle_unusual;
4583
0
        }
4584
20.8k
        break;
4585
20.8k
      }
4586
4587
0
      default: {
4588
20.8k
      handle_unusual:
4589
20.8k
        if (tag == 0) {
4590
20.8k
          goto success;
4591
20.8k
        }
4592
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
4593
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
4594
0
        break;
4595
0
      }
4596
41.7k
    }
4597
41.7k
  }
4598
20.8k
success:
4599
  // @@protoc_insertion_point(parse_success:yb.master.ResourcePermissionInfoPB)
4600
20.8k
  return true;
4601
0
failure:
4602
  // @@protoc_insertion_point(parse_failure:yb.master.ResourcePermissionInfoPB)
4603
0
  return false;
4604
20.8k
#undef DO_
4605
20.8k
}
4606
4607
void ResourcePermissionInfoPB::SerializeWithCachedSizes(
4608
0
    ::google::protobuf::io::CodedOutputStream* output) const {
4609
  // @@protoc_insertion_point(serialize_start:yb.master.ResourcePermissionInfoPB)
4610
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4611
0
  (void) cached_has_bits;
4612
4613
0
  cached_has_bits = _has_bits_[0];
4614
  // optional string canonical_resource = 1;
4615
0
  if (cached_has_bits & 0x00000001u) {
4616
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4617
0
      this->canonical_resource().data(), static_cast<int>(this->canonical_resource().length()),
4618
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
4619
0
      "yb.master.ResourcePermissionInfoPB.canonical_resource");
4620
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
4621
0
      1, this->canonical_resource(), output);
4622
0
  }
4623
4624
  // optional uint32 permissions = 2;
4625
0
  if (cached_has_bits & 0x00000002u) {
4626
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->permissions(), output);
4627
0
  }
4628
4629
0
  if (_internal_metadata_.have_unknown_fields()) {
4630
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
4631
0
        _internal_metadata_.unknown_fields(), output);
4632
0
  }
4633
  // @@protoc_insertion_point(serialize_end:yb.master.ResourcePermissionInfoPB)
4634
0
}
4635
4636
::google::protobuf::uint8* ResourcePermissionInfoPB::InternalSerializeWithCachedSizesToArray(
4637
20.8k
    bool deterministic, ::google::protobuf::uint8* target) const {
4638
20.8k
  (void)deterministic; // Unused
4639
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.ResourcePermissionInfoPB)
4640
20.8k
  ::google::protobuf::uint32 cached_has_bits = 0;
4641
20.8k
  (void) cached_has_bits;
4642
4643
20.8k
  cached_has_bits = _has_bits_[0];
4644
  // optional string canonical_resource = 1;
4645
20.8k
  if (cached_has_bits & 0x00000001u) {
4646
20.8k
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4647
20.8k
      this->canonical_resource().data(), static_cast<int>(this->canonical_resource().length()),
4648
20.8k
      ::google::protobuf::internal::WireFormat::SERIALIZE,
4649
20.8k
      "yb.master.ResourcePermissionInfoPB.canonical_resource");
4650
20.8k
    target =
4651
20.8k
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
4652
20.8k
        1, this->canonical_resource(), target);
4653
20.8k
  }
4654
4655
  // optional uint32 permissions = 2;
4656
20.8k
  if (cached_has_bits & 0x00000002u) {
4657
20.8k
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->permissions(), target);
4658
20.8k
  }
4659
4660
20.8k
  if (_internal_metadata_.have_unknown_fields()) {
4661
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
4662
0
        _internal_metadata_.unknown_fields(), target);
4663
0
  }
4664
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.ResourcePermissionInfoPB)
4665
20.8k
  return target;
4666
20.8k
}
4667
4668
41.6k
size_t ResourcePermissionInfoPB::ByteSizeLong() const {
4669
// @@protoc_insertion_point(message_byte_size_start:yb.master.ResourcePermissionInfoPB)
4670
41.6k
  size_t total_size = 0;
4671
4672
41.6k
  if (_internal_metadata_.have_unknown_fields()) {
4673
0
    total_size +=
4674
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
4675
0
        _internal_metadata_.unknown_fields());
4676
0
  }
4677
41.6k
  if (_has_bits_[0 / 32] & 3u) {
4678
    // optional string canonical_resource = 1;
4679
41.6k
    if (has_canonical_resource()) {
4680
41.6k
      total_size += 1 +
4681
41.6k
        ::google::protobuf::internal::WireFormatLite::StringSize(
4682
41.6k
          this->canonical_resource());
4683
41.6k
    }
4684
4685
    // optional uint32 permissions = 2;
4686
41.6k
    if (has_permissions()) {
4687
41.5k
      total_size += 1 +
4688
41.5k
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
4689
41.5k
          this->permissions());
4690
41.5k
    }
4691
4692
41.6k
  }
4693
41.6k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
4694
41.6k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4695
41.6k
  _cached_size_ = cached_size;
4696
41.6k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4697
41.6k
  return total_size;
4698
41.6k
}
4699
4700
0
void ResourcePermissionInfoPB::MergeFrom(const ::google::protobuf::Message& from) {
4701
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.ResourcePermissionInfoPB)
4702
0
  GOOGLE_DCHECK_NE(&from, this);
4703
0
  const ResourcePermissionInfoPB* source =
4704
0
      ::google::protobuf::internal::DynamicCastToGenerated<const ResourcePermissionInfoPB>(
4705
0
          &from);
4706
0
  if (source == NULL) {
4707
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.ResourcePermissionInfoPB)
4708
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
4709
0
  } else {
4710
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.ResourcePermissionInfoPB)
4711
0
    MergeFrom(*source);
4712
0
  }
4713
0
}
4714
4715
20.8k
void ResourcePermissionInfoPB::MergeFrom(const ResourcePermissionInfoPB& from) {
4716
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.ResourcePermissionInfoPB)
4717
20.8k
  GOOGLE_DCHECK_NE(&from, this);
4718
20.8k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4719
20.8k
  ::google::protobuf::uint32 cached_has_bits = 0;
4720
20.8k
  (void) cached_has_bits;
4721
4722
20.8k
  cached_has_bits = from._has_bits_[0];
4723
20.8k
  if (cached_has_bits & 3u) {
4724
20.8k
    if (cached_has_bits & 0x00000001u) {
4725
20.8k
      set_has_canonical_resource();
4726
20.8k
      canonical_resource_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.canonical_resource_);
4727
20.8k
    }
4728
20.8k
    if (cached_has_bits & 0x00000002u) {
4729
20.8k
      permissions_ = from.permissions_;
4730
20.8k
    }
4731
20.8k
    _has_bits_[0] |= cached_has_bits;
4732
20.8k
  }
4733
20.8k
}
4734
4735
0
void ResourcePermissionInfoPB::CopyFrom(const ::google::protobuf::Message& from) {
4736
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.ResourcePermissionInfoPB)
4737
0
  if (&from == this) return;
4738
0
  Clear();
4739
0
  MergeFrom(from);
4740
0
}
4741
4742
0
void ResourcePermissionInfoPB::CopyFrom(const ResourcePermissionInfoPB& from) {
4743
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.ResourcePermissionInfoPB)
4744
0
  if (&from == this) return;
4745
0
  Clear();
4746
0
  MergeFrom(from);
4747
0
}
4748
4749
0
bool ResourcePermissionInfoPB::IsInitialized() const {
4750
0
  return true;
4751
0
}
4752
4753
0
void ResourcePermissionInfoPB::Swap(ResourcePermissionInfoPB* other) {
4754
0
  if (other == this) return;
4755
0
  InternalSwap(other);
4756
0
}
4757
0
void ResourcePermissionInfoPB::InternalSwap(ResourcePermissionInfoPB* other) {
4758
0
  using std::swap;
4759
0
  canonical_resource_.Swap(&other->canonical_resource_);
4760
0
  swap(permissions_, other->permissions_);
4761
0
  swap(_has_bits_[0], other->_has_bits_[0]);
4762
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
4763
0
  swap(_cached_size_, other->_cached_size_);
4764
0
}
4765
4766
0
::google::protobuf::Metadata ResourcePermissionInfoPB::GetMetadata() const {
4767
0
  protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::protobuf_AssignDescriptorsOnce();
4768
0
  return ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::file_level_metadata[kIndexInFileMessages];
4769
0
}
4770
4771
4772
// ===================================================================
4773
4774
15.8k
void RolePermissionInfoPB::InitAsDefaultInstance() {
4775
15.8k
}
4776
#if !defined(_MSC_VER) || _MSC_VER >= 1900
4777
const int RolePermissionInfoPB::kRoleFieldNumber;
4778
const int RolePermissionInfoPB::kAllKeyspacesPermissionsFieldNumber;
4779
const int RolePermissionInfoPB::kAllRolesPermissionsFieldNumber;
4780
const int RolePermissionInfoPB::kResourcePermissionsFieldNumber;
4781
const int RolePermissionInfoPB::kSaltedHashFieldNumber;
4782
const int RolePermissionInfoPB::kCanLoginFieldNumber;
4783
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
4784
4785
RolePermissionInfoPB::RolePermissionInfoPB()
4786
67.8k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
4787
52.0k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
4788
52.0k
    ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::InitDefaultsRolePermissionInfoPB();
4789
52.0k
  }
4790
67.8k
  SharedCtor();
4791
  // @@protoc_insertion_point(constructor:yb.master.RolePermissionInfoPB)
4792
67.8k
}
4793
RolePermissionInfoPB::RolePermissionInfoPB(const RolePermissionInfoPB& from)
4794
  : ::google::protobuf::Message(),
4795
      _internal_metadata_(NULL),
4796
      _has_bits_(from._has_bits_),
4797
      _cached_size_(0),
4798
0
      resource_permissions_(from.resource_permissions_) {
4799
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
4800
0
  role_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4801
0
  if (from.has_role()) {
4802
0
    role_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.role_);
4803
0
  }
4804
0
  salted_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4805
0
  if (from.has_salted_hash()) {
4806
0
    salted_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.salted_hash_);
4807
0
  }
4808
0
  ::memcpy(&all_keyspaces_permissions_, &from.all_keyspaces_permissions_,
4809
0
    static_cast<size_t>(reinterpret_cast<char*>(&can_login_) -
4810
0
    reinterpret_cast<char*>(&all_keyspaces_permissions_)) + sizeof(can_login_));
4811
  // @@protoc_insertion_point(copy_constructor:yb.master.RolePermissionInfoPB)
4812
0
}
4813
4814
67.8k
void RolePermissionInfoPB::SharedCtor() {
4815
67.8k
  _cached_size_ = 0;
4816
67.8k
  role_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4817
67.8k
  salted_hash_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4818
67.8k
  ::memset(&all_keyspaces_permissions_, 0, static_cast<size_t>(
4819
67.8k
      reinterpret_cast<char*>(&can_login_) -
4820
67.8k
      reinterpret_cast<char*>(&all_keyspaces_permissions_)) + sizeof(can_login_));
4821
67.8k
}
4822
4823
50.0k
RolePermissionInfoPB::~RolePermissionInfoPB() {
4824
  // @@protoc_insertion_point(destructor:yb.master.RolePermissionInfoPB)
4825
50.0k
  SharedDtor();
4826
50.0k
}
4827
4828
50.0k
void RolePermissionInfoPB::SharedDtor() {
4829
50.0k
  role_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4830
50.0k
  salted_hash_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
4831
50.0k
}
4832
4833
0
void RolePermissionInfoPB::SetCachedSize(int size) const {
4834
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
4835
0
  _cached_size_ = size;
4836
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
4837
0
}
4838
0
const ::google::protobuf::Descriptor* RolePermissionInfoPB::descriptor() {
4839
0
  ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::protobuf_AssignDescriptorsOnce();
4840
0
  return ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
4841
0
}
4842
4843
0
const RolePermissionInfoPB& RolePermissionInfoPB::default_instance() {
4844
0
  ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::InitDefaultsRolePermissionInfoPB();
4845
0
  return *internal_default_instance();
4846
0
}
4847
4848
0
RolePermissionInfoPB* RolePermissionInfoPB::New(::google::protobuf::Arena* arena) const {
4849
0
  RolePermissionInfoPB* n = new RolePermissionInfoPB;
4850
0
  if (arena != NULL) {
4851
0
    arena->Own(n);
4852
0
  }
4853
0
  return n;
4854
0
}
4855
4856
0
void RolePermissionInfoPB::Clear() {
4857
// @@protoc_insertion_point(message_clear_start:yb.master.RolePermissionInfoPB)
4858
0
  ::google::protobuf::uint32 cached_has_bits = 0;
4859
  // Prevent compiler warnings about cached_has_bits being unused
4860
0
  (void) cached_has_bits;
4861
4862
0
  resource_permissions_.Clear();
4863
0
  cached_has_bits = _has_bits_[0];
4864
0
  if (cached_has_bits & 3u) {
4865
0
    if (cached_has_bits & 0x00000001u) {
4866
0
      GOOGLE_DCHECK(!role_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
4867
0
      (*role_.UnsafeRawStringPointer())->clear();
4868
0
    }
4869
0
    if (cached_has_bits & 0x00000002u) {
4870
0
      GOOGLE_DCHECK(!salted_hash_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
4871
0
      (*salted_hash_.UnsafeRawStringPointer())->clear();
4872
0
    }
4873
0
  }
4874
0
  if (cached_has_bits & 28u) {
4875
0
    ::memset(&all_keyspaces_permissions_, 0, static_cast<size_t>(
4876
0
        reinterpret_cast<char*>(&can_login_) -
4877
0
        reinterpret_cast<char*>(&all_keyspaces_permissions_)) + sizeof(can_login_));
4878
0
  }
4879
0
  _has_bits_.Clear();
4880
0
  _internal_metadata_.Clear();
4881
0
}
4882
4883
bool RolePermissionInfoPB::MergePartialFromCodedStream(
4884
17.4k
    ::google::protobuf::io::CodedInputStream* input) {
4885
108k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
4886
17.4k
  ::google::protobuf::uint32 tag;
4887
  // @@protoc_insertion_point(parse_start:yb.master.RolePermissionInfoPB)
4888
125k
  for (;;) {
4889
125k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
4890
125k
    tag = p.first;
4891
125k
    if (!p.second) goto handle_unusual;
4892
108k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
4893
      // optional string role = 1;
4894
17.4k
      case 1: {
4895
17.4k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4896
17.4k
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
4897
17.4k
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4898
17.4k
                input, this->mutable_role()));
4899
17.4k
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4900
17.4k
            this->role().data(), static_cast<int>(this->role().length()),
4901
17.4k
            ::google::protobuf::internal::WireFormat::PARSE,
4902
17.4k
            "yb.master.RolePermissionInfoPB.role");
4903
0
        } else {
4904
0
          goto handle_unusual;
4905
0
        }
4906
17.4k
        break;
4907
17.4k
      }
4908
4909
      // optional uint32 all_keyspaces_permissions = 2;
4910
17.4k
      case 2: {
4911
17.4k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4912
17.4k
            static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
4913
17.4k
          set_has_all_keyspaces_permissions();
4914
17.4k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4915
17.4k
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
4916
17.4k
                 input, &all_keyspaces_permissions_)));
4917
0
        } else {
4918
0
          goto handle_unusual;
4919
0
        }
4920
17.4k
        break;
4921
17.4k
      }
4922
4923
      // optional uint32 all_roles_permissions = 3;
4924
17.4k
      case 3: {
4925
17.4k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4926
17.4k
            static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
4927
17.4k
          set_has_all_roles_permissions();
4928
17.4k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4929
17.4k
                   ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
4930
17.4k
                 input, &all_roles_permissions_)));
4931
0
        } else {
4932
0
          goto handle_unusual;
4933
0
        }
4934
17.4k
        break;
4935
17.4k
      }
4936
4937
      // repeated .yb.master.ResourcePermissionInfoPB resource_permissions = 4;
4938
20.8k
      case 4: {
4939
20.8k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4940
20.8k
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
4941
20.8k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_resource_permissions()));
4942
0
        } else {
4943
0
          goto handle_unusual;
4944
0
        }
4945
20.8k
        break;
4946
20.8k
      }
4947
4948
      // optional string salted_hash = 5;
4949
17.4k
      case 5: {
4950
17.4k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4951
17.4k
            static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
4952
17.4k
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
4953
17.4k
                input, this->mutable_salted_hash()));
4954
17.4k
          ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
4955
17.4k
            this->salted_hash().data(), static_cast<int>(this->salted_hash().length()),
4956
17.4k
            ::google::protobuf::internal::WireFormat::PARSE,
4957
17.4k
            "yb.master.RolePermissionInfoPB.salted_hash");
4958
0
        } else {
4959
0
          goto handle_unusual;
4960
0
        }
4961
17.4k
        break;
4962
17.4k
      }
4963
4964
      // optional bool can_login = 6;
4965
17.4k
      case 6: {
4966
17.4k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
4967
17.4k
            static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
4968
17.4k
          set_has_can_login();
4969
17.4k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
4970
17.4k
                   bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
4971
17.4k
                 input, &can_login_)));
4972
0
        } else {
4973
0
          goto handle_unusual;
4974
0
        }
4975
17.4k
        break;
4976
17.4k
      }
4977
4978
0
      default: {
4979
17.4k
      handle_unusual:
4980
17.4k
        if (tag == 0) {
4981
17.4k
          goto success;
4982
17.4k
        }
4983
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
4984
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
4985
0
        break;
4986
0
      }
4987
108k
    }
4988
108k
  }
4989
17.4k
success:
4990
  // @@protoc_insertion_point(parse_success:yb.master.RolePermissionInfoPB)
4991
17.4k
  return true;
4992
0
failure:
4993
  // @@protoc_insertion_point(parse_failure:yb.master.RolePermissionInfoPB)
4994
0
  return false;
4995
17.4k
#undef DO_
4996
17.4k
}
4997
4998
void RolePermissionInfoPB::SerializeWithCachedSizes(
4999
0
    ::google::protobuf::io::CodedOutputStream* output) const {
5000
  // @@protoc_insertion_point(serialize_start:yb.master.RolePermissionInfoPB)
5001
0
  ::google::protobuf::uint32 cached_has_bits = 0;
5002
0
  (void) cached_has_bits;
5003
5004
0
  cached_has_bits = _has_bits_[0];
5005
  // optional string role = 1;
5006
0
  if (cached_has_bits & 0x00000001u) {
5007
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
5008
0
      this->role().data(), static_cast<int>(this->role().length()),
5009
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
5010
0
      "yb.master.RolePermissionInfoPB.role");
5011
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
5012
0
      1, this->role(), output);
5013
0
  }
5014
5015
  // optional uint32 all_keyspaces_permissions = 2;
5016
0
  if (cached_has_bits & 0x00000004u) {
5017
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->all_keyspaces_permissions(), output);
5018
0
  }
5019
5020
  // optional uint32 all_roles_permissions = 3;
5021
0
  if (cached_has_bits & 0x00000008u) {
5022
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->all_roles_permissions(), output);
5023
0
  }
5024
5025
  // repeated .yb.master.ResourcePermissionInfoPB resource_permissions = 4;
5026
0
  for (unsigned int i = 0,
5027
0
      n = static_cast<unsigned int>(this->resource_permissions_size()); i < n; i++) {
5028
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5029
0
      4, this->resource_permissions(static_cast<int>(i)), output);
5030
0
  }
5031
5032
  // optional string salted_hash = 5;
5033
0
  if (cached_has_bits & 0x00000002u) {
5034
0
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
5035
0
      this->salted_hash().data(), static_cast<int>(this->salted_hash().length()),
5036
0
      ::google::protobuf::internal::WireFormat::SERIALIZE,
5037
0
      "yb.master.RolePermissionInfoPB.salted_hash");
5038
0
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
5039
0
      5, this->salted_hash(), output);
5040
0
  }
5041
5042
  // optional bool can_login = 6;
5043
0
  if (cached_has_bits & 0x00000010u) {
5044
0
    ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->can_login(), output);
5045
0
  }
5046
5047
0
  if (_internal_metadata_.have_unknown_fields()) {
5048
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5049
0
        _internal_metadata_.unknown_fields(), output);
5050
0
  }
5051
  // @@protoc_insertion_point(serialize_end:yb.master.RolePermissionInfoPB)
5052
0
}
5053
5054
::google::protobuf::uint8* RolePermissionInfoPB::InternalSerializeWithCachedSizesToArray(
5055
17.4k
    bool deterministic, ::google::protobuf::uint8* target) const {
5056
17.4k
  (void)deterministic; // Unused
5057
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.RolePermissionInfoPB)
5058
17.4k
  ::google::protobuf::uint32 cached_has_bits = 0;
5059
17.4k
  (void) cached_has_bits;
5060
5061
17.4k
  cached_has_bits = _has_bits_[0];
5062
  // optional string role = 1;
5063
17.4k
  if (cached_has_bits & 0x00000001u) {
5064
17.4k
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
5065
17.4k
      this->role().data(), static_cast<int>(this->role().length()),
5066
17.4k
      ::google::protobuf::internal::WireFormat::SERIALIZE,
5067
17.4k
      "yb.master.RolePermissionInfoPB.role");
5068
17.4k
    target =
5069
17.4k
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
5070
17.4k
        1, this->role(), target);
5071
17.4k
  }
5072
5073
  // optional uint32 all_keyspaces_permissions = 2;
5074
17.4k
  if (cached_has_bits & 0x00000004u) {
5075
17.4k
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->all_keyspaces_permissions(), target);
5076
17.4k
  }
5077
5078
  // optional uint32 all_roles_permissions = 3;
5079
17.4k
  if (cached_has_bits & 0x00000008u) {
5080
17.3k
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->all_roles_permissions(), target);
5081
17.3k
  }
5082
5083
  // repeated .yb.master.ResourcePermissionInfoPB resource_permissions = 4;
5084
17.4k
  for (unsigned int i = 0,
5085
38.2k
      n = static_cast<unsigned int>(this->resource_permissions_size()); i < n; i++) {
5086
20.8k
    target = ::google::protobuf::internal::WireFormatLite::
5087
20.8k
      InternalWriteMessageToArray(
5088
20.8k
        4, this->resource_permissions(static_cast<int>(i)), deterministic, target);
5089
20.8k
  }
5090
5091
  // optional string salted_hash = 5;
5092
17.4k
  if (cached_has_bits & 0x00000002u) {
5093
17.4k
    ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
5094
17.4k
      this->salted_hash().data(), static_cast<int>(this->salted_hash().length()),
5095
17.4k
      ::google::protobuf::internal::WireFormat::SERIALIZE,
5096
17.4k
      "yb.master.RolePermissionInfoPB.salted_hash");
5097
17.4k
    target =
5098
17.4k
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
5099
17.4k
        5, this->salted_hash(), target);
5100
17.4k
  }
5101
5102
  // optional bool can_login = 6;
5103
17.4k
  if (cached_has_bits & 0x00000010u) {
5104
17.4k
    target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->can_login(), target);
5105
17.4k
  }
5106
5107
17.4k
  if (_internal_metadata_.have_unknown_fields()) {
5108
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5109
0
        _internal_metadata_.unknown_fields(), target);
5110
0
  }
5111
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.RolePermissionInfoPB)
5112
17.4k
  return target;
5113
17.4k
}
5114
5115
34.8k
size_t RolePermissionInfoPB::ByteSizeLong() const {
5116
// @@protoc_insertion_point(message_byte_size_start:yb.master.RolePermissionInfoPB)
5117
34.8k
  size_t total_size = 0;
5118
5119
34.8k
  if (_internal_metadata_.have_unknown_fields()) {
5120
0
    total_size +=
5121
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5122
0
        _internal_metadata_.unknown_fields());
5123
0
  }
5124
  // repeated .yb.master.ResourcePermissionInfoPB resource_permissions = 4;
5125
34.8k
  {
5126
34.8k
    unsigned int count = static_cast<unsigned int>(this->resource_permissions_size());
5127
34.8k
    total_size += 1UL * count;
5128
76.3k
    for (unsigned int i = 0; i < count; i++) {
5129
41.5k
      total_size +=
5130
41.5k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
5131
41.5k
          this->resource_permissions(static_cast<int>(i)));
5132
41.5k
    }
5133
34.8k
  }
5134
5135
34.8k
  if (_has_bits_[0 / 32] & 31u) {
5136
    // optional string role = 1;
5137
34.7k
    if (has_role()) {
5138
34.7k
      total_size += 1 +
5139
34.7k
        ::google::protobuf::internal::WireFormatLite::StringSize(
5140
34.7k
          this->role());
5141
34.7k
    }
5142
5143
    // optional string salted_hash = 5;
5144
34.7k
    if (has_salted_hash()) {
5145
34.7k
      total_size += 1 +
5146
34.7k
        ::google::protobuf::internal::WireFormatLite::StringSize(
5147
34.7k
          this->salted_hash());
5148
34.7k
    }
5149
5150
    // optional uint32 all_keyspaces_permissions = 2;
5151
34.7k
    if (has_all_keyspaces_permissions()) {
5152
34.7k
      total_size += 1 +
5153
34.7k
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
5154
34.7k
          this->all_keyspaces_permissions());
5155
34.7k
    }
5156
5157
    // optional uint32 all_roles_permissions = 3;
5158
34.7k
    if (has_all_roles_permissions()) {
5159
34.7k
      total_size += 1 +
5160
34.7k
        ::google::protobuf::internal::WireFormatLite::UInt32Size(
5161
34.7k
          this->all_roles_permissions());
5162
34.7k
    }
5163
5164
    // optional bool can_login = 6;
5165
34.7k
    if (has_can_login()) {
5166
34.7k
      total_size += 1 + 1;
5167
34.7k
    }
5168
5169
34.7k
  }
5170
34.8k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
5171
34.8k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5172
34.8k
  _cached_size_ = cached_size;
5173
34.8k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5174
34.8k
  return total_size;
5175
34.8k
}
5176
5177
0
void RolePermissionInfoPB::MergeFrom(const ::google::protobuf::Message& from) {
5178
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.RolePermissionInfoPB)
5179
0
  GOOGLE_DCHECK_NE(&from, this);
5180
0
  const RolePermissionInfoPB* source =
5181
0
      ::google::protobuf::internal::DynamicCastToGenerated<const RolePermissionInfoPB>(
5182
0
          &from);
5183
0
  if (source == NULL) {
5184
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.RolePermissionInfoPB)
5185
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5186
0
  } else {
5187
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.RolePermissionInfoPB)
5188
0
    MergeFrom(*source);
5189
0
  }
5190
0
}
5191
5192
17.4k
void RolePermissionInfoPB::MergeFrom(const RolePermissionInfoPB& from) {
5193
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.RolePermissionInfoPB)
5194
17.4k
  GOOGLE_DCHECK_NE(&from, this);
5195
17.4k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
5196
17.4k
  ::google::protobuf::uint32 cached_has_bits = 0;
5197
17.4k
  (void) cached_has_bits;
5198
5199
17.4k
  resource_permissions_.MergeFrom(from.resource_permissions_);
5200
17.4k
  cached_has_bits = from._has_bits_[0];
5201
17.4k
  if (cached_has_bits & 31u) {
5202
17.4k
    if (cached_has_bits & 0x00000001u) {
5203
17.4k
      set_has_role();
5204
17.4k
      role_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.role_);
5205
17.4k
    }
5206
17.4k
    if (cached_has_bits & 0x00000002u) {
5207
17.4k
      set_has_salted_hash();
5208
17.4k
      salted_hash_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.salted_hash_);
5209
17.4k
    }
5210
17.4k
    if (cached_has_bits & 0x00000004u) {
5211
17.4k
      all_keyspaces_permissions_ = from.all_keyspaces_permissions_;
5212
17.4k
    }
5213
17.4k
    if (cached_has_bits & 0x00000008u) {
5214
17.4k
      all_roles_permissions_ = from.all_roles_permissions_;
5215
17.4k
    }
5216
17.4k
    if (cached_has_bits & 0x00000010u) {
5217
17.4k
      can_login_ = from.can_login_;
5218
17.4k
    }
5219
17.4k
    _has_bits_[0] |= cached_has_bits;
5220
17.4k
  }
5221
17.4k
}
5222
5223
0
void RolePermissionInfoPB::CopyFrom(const ::google::protobuf::Message& from) {
5224
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.RolePermissionInfoPB)
5225
0
  if (&from == this) return;
5226
0
  Clear();
5227
0
  MergeFrom(from);
5228
0
}
5229
5230
0
void RolePermissionInfoPB::CopyFrom(const RolePermissionInfoPB& from) {
5231
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.RolePermissionInfoPB)
5232
0
  if (&from == this) return;
5233
0
  Clear();
5234
0
  MergeFrom(from);
5235
0
}
5236
5237
0
bool RolePermissionInfoPB::IsInitialized() const {
5238
0
  return true;
5239
0
}
5240
5241
0
void RolePermissionInfoPB::Swap(RolePermissionInfoPB* other) {
5242
0
  if (other == this) return;
5243
0
  InternalSwap(other);
5244
0
}
5245
0
void RolePermissionInfoPB::InternalSwap(RolePermissionInfoPB* other) {
5246
0
  using std::swap;
5247
0
  resource_permissions_.InternalSwap(&other->resource_permissions_);
5248
0
  role_.Swap(&other->role_);
5249
0
  salted_hash_.Swap(&other->salted_hash_);
5250
0
  swap(all_keyspaces_permissions_, other->all_keyspaces_permissions_);
5251
0
  swap(all_roles_permissions_, other->all_roles_permissions_);
5252
0
  swap(can_login_, other->can_login_);
5253
0
  swap(_has_bits_[0], other->_has_bits_[0]);
5254
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
5255
0
  swap(_cached_size_, other->_cached_size_);
5256
0
}
5257
5258
0
::google::protobuf::Metadata RolePermissionInfoPB::GetMetadata() const {
5259
0
  protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::protobuf_AssignDescriptorsOnce();
5260
0
  return ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::file_level_metadata[kIndexInFileMessages];
5261
0
}
5262
5263
5264
// ===================================================================
5265
5266
15.8k
void GetPermissionsResponsePB::InitAsDefaultInstance() {
5267
15.8k
  ::yb::master::_GetPermissionsResponsePB_default_instance_._instance.get_mutable()->error_ = const_cast< ::yb::master::MasterErrorPB*>(
5268
15.8k
      ::yb::master::MasterErrorPB::internal_default_instance());
5269
15.8k
}
5270
0
void GetPermissionsResponsePB::clear_error() {
5271
0
  if (error_ != NULL) error_->Clear();
5272
0
  clear_has_error();
5273
0
}
5274
#if !defined(_MSC_VER) || _MSC_VER >= 1900
5275
const int GetPermissionsResponsePB::kVersionFieldNumber;
5276
const int GetPermissionsResponsePB::kErrorFieldNumber;
5277
const int GetPermissionsResponsePB::kRolePermissionsFieldNumber;
5278
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
5279
5280
GetPermissionsResponsePB::GetPermissionsResponsePB()
5281
261k
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
5282
245k
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
5283
245k
    ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::InitDefaultsGetPermissionsResponsePB();
5284
245k
  }
5285
261k
  SharedCtor();
5286
  // @@protoc_insertion_point(constructor:yb.master.GetPermissionsResponsePB)
5287
261k
}
5288
GetPermissionsResponsePB::GetPermissionsResponsePB(const GetPermissionsResponsePB& from)
5289
  : ::google::protobuf::Message(),
5290
      _internal_metadata_(NULL),
5291
      _has_bits_(from._has_bits_),
5292
      _cached_size_(0),
5293
0
      role_permissions_(from.role_permissions_) {
5294
0
  _internal_metadata_.MergeFrom(from._internal_metadata_);
5295
0
  if (from.has_error()) {
5296
0
    error_ = new ::yb::master::MasterErrorPB(*from.error_);
5297
0
  } else {
5298
0
    error_ = NULL;
5299
0
  }
5300
0
  version_ = from.version_;
5301
  // @@protoc_insertion_point(copy_constructor:yb.master.GetPermissionsResponsePB)
5302
0
}
5303
5304
260k
void GetPermissionsResponsePB::SharedCtor() {
5305
260k
  _cached_size_ = 0;
5306
260k
  ::memset(&error_, 0, static_cast<size_t>(
5307
260k
      reinterpret_cast<char*>(&version_) -
5308
260k
      reinterpret_cast<char*>(&error_)) + sizeof(version_));
5309
260k
}
5310
5311
243k
GetPermissionsResponsePB::~GetPermissionsResponsePB() {
5312
  // @@protoc_insertion_point(destructor:yb.master.GetPermissionsResponsePB)
5313
243k
  SharedDtor();
5314
243k
}
5315
5316
243k
void GetPermissionsResponsePB::SharedDtor() {
5317
243k
  if (this != internal_default_instance()) delete error_;
5318
243k
}
5319
5320
0
void GetPermissionsResponsePB::SetCachedSize(int size) const {
5321
0
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5322
0
  _cached_size_ = size;
5323
0
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5324
0
}
5325
0
const ::google::protobuf::Descriptor* GetPermissionsResponsePB::descriptor() {
5326
0
  ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::protobuf_AssignDescriptorsOnce();
5327
0
  return ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
5328
0
}
5329
5330
0
const GetPermissionsResponsePB& GetPermissionsResponsePB::default_instance() {
5331
0
  ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::InitDefaultsGetPermissionsResponsePB();
5332
0
  return *internal_default_instance();
5333
0
}
5334
5335
0
GetPermissionsResponsePB* GetPermissionsResponsePB::New(::google::protobuf::Arena* arena) const {
5336
0
  GetPermissionsResponsePB* n = new GetPermissionsResponsePB;
5337
0
  if (arena != NULL) {
5338
0
    arena->Own(n);
5339
0
  }
5340
0
  return n;
5341
0
}
5342
5343
127k
void GetPermissionsResponsePB::Clear() {
5344
// @@protoc_insertion_point(message_clear_start:yb.master.GetPermissionsResponsePB)
5345
127k
  ::google::protobuf::uint32 cached_has_bits = 0;
5346
  // Prevent compiler warnings about cached_has_bits being unused
5347
127k
  (void) cached_has_bits;
5348
5349
127k
  role_permissions_.Clear();
5350
127k
  cached_has_bits = _has_bits_[0];
5351
127k
  if (cached_has_bits & 0x00000001u) {
5352
0
    GOOGLE_DCHECK(error_ != NULL);
5353
0
    error_->Clear();
5354
0
  }
5355
127k
  version_ = GOOGLE_ULONGLONG(0);
5356
127k
  _has_bits_.Clear();
5357
127k
  _internal_metadata_.Clear();
5358
127k
}
5359
5360
bool GetPermissionsResponsePB::MergePartialFromCodedStream(
5361
117k
    ::google::protobuf::io::CodedInputStream* input) {
5362
135k
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
5363
117k
  ::google::protobuf::uint32 tag;
5364
  // @@protoc_insertion_point(parse_start:yb.master.GetPermissionsResponsePB)
5365
252k
  for (;;) {
5366
252k
    ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
5367
252k
    tag = p.first;
5368
252k
    if (!p.second) goto handle_unusual;
5369
135k
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
5370
      // optional uint64 version = 1;
5371
117k
      case 1: {
5372
117k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5373
117k
            static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
5374
117k
          set_has_version();
5375
117k
          DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
5376
117k
                   ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
5377
117k
                 input, &version_)));
5378
0
        } else {
5379
0
          goto handle_unusual;
5380
0
        }
5381
117k
        break;
5382
117k
      }
5383
5384
      // optional .yb.master.MasterErrorPB error = 2;
5385
0
      case 2: {
5386
0
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5387
0
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
5388
0
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
5389
0
               input, mutable_error()));
5390
0
        } else {
5391
0
          goto handle_unusual;
5392
0
        }
5393
0
        break;
5394
0
      }
5395
5396
      // repeated .yb.master.RolePermissionInfoPB role_permissions = 3;
5397
17.4k
      case 3: {
5398
17.4k
        if (static_cast< ::google::protobuf::uint8>(tag) ==
5399
17.4k
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
5400
17.4k
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_role_permissions()));
5401
0
        } else {
5402
0
          goto handle_unusual;
5403
0
        }
5404
17.4k
        break;
5405
117k
      }
5406
5407
0
      default: {
5408
117k
      handle_unusual:
5409
117k
        if (tag == 0) {
5410
117k
          goto success;
5411
117k
        }
5412
0
        DO_(::google::protobuf::internal::WireFormat::SkipField(
5413
0
              input, tag, _internal_metadata_.mutable_unknown_fields()));
5414
0
        break;
5415
0
      }
5416
135k
    }
5417
135k
  }
5418
117k
success:
5419
  // @@protoc_insertion_point(parse_success:yb.master.GetPermissionsResponsePB)
5420
117k
  return true;
5421
0
failure:
5422
  // @@protoc_insertion_point(parse_failure:yb.master.GetPermissionsResponsePB)
5423
0
  return false;
5424
117k
#undef DO_
5425
117k
}
5426
5427
void GetPermissionsResponsePB::SerializeWithCachedSizes(
5428
0
    ::google::protobuf::io::CodedOutputStream* output) const {
5429
  // @@protoc_insertion_point(serialize_start:yb.master.GetPermissionsResponsePB)
5430
0
  ::google::protobuf::uint32 cached_has_bits = 0;
5431
0
  (void) cached_has_bits;
5432
5433
0
  cached_has_bits = _has_bits_[0];
5434
  // optional uint64 version = 1;
5435
0
  if (cached_has_bits & 0x00000002u) {
5436
0
    ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->version(), output);
5437
0
  }
5438
5439
  // optional .yb.master.MasterErrorPB error = 2;
5440
0
  if (cached_has_bits & 0x00000001u) {
5441
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5442
0
      2, *this->error_, output);
5443
0
  }
5444
5445
  // repeated .yb.master.RolePermissionInfoPB role_permissions = 3;
5446
0
  for (unsigned int i = 0,
5447
0
      n = static_cast<unsigned int>(this->role_permissions_size()); i < n; i++) {
5448
0
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
5449
0
      3, this->role_permissions(static_cast<int>(i)), output);
5450
0
  }
5451
5452
0
  if (_internal_metadata_.have_unknown_fields()) {
5453
0
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
5454
0
        _internal_metadata_.unknown_fields(), output);
5455
0
  }
5456
  // @@protoc_insertion_point(serialize_end:yb.master.GetPermissionsResponsePB)
5457
0
}
5458
5459
::google::protobuf::uint8* GetPermissionsResponsePB::InternalSerializeWithCachedSizesToArray(
5460
117k
    bool deterministic, ::google::protobuf::uint8* target) const {
5461
117k
  (void)deterministic; // Unused
5462
  // @@protoc_insertion_point(serialize_to_array_start:yb.master.GetPermissionsResponsePB)
5463
117k
  ::google::protobuf::uint32 cached_has_bits = 0;
5464
117k
  (void) cached_has_bits;
5465
5466
117k
  cached_has_bits = _has_bits_[0];
5467
  // optional uint64 version = 1;
5468
117k
  if (cached_has_bits & 0x00000002u) {
5469
117k
    target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->version(), target);
5470
117k
  }
5471
5472
  // optional .yb.master.MasterErrorPB error = 2;
5473
117k
  if (cached_has_bits & 0x00000001u) {
5474
0
    target = ::google::protobuf::internal::WireFormatLite::
5475
0
      InternalWriteMessageToArray(
5476
0
        2, *this->error_, deterministic, target);
5477
0
  }
5478
5479
  // repeated .yb.master.RolePermissionInfoPB role_permissions = 3;
5480
117k
  for (unsigned int i = 0,
5481
135k
      n = static_cast<unsigned int>(this->role_permissions_size()); i < n; i++) {
5482
17.4k
    target = ::google::protobuf::internal::WireFormatLite::
5483
17.4k
      InternalWriteMessageToArray(
5484
17.4k
        3, this->role_permissions(static_cast<int>(i)), deterministic, target);
5485
17.4k
  }
5486
5487
117k
  if (_internal_metadata_.have_unknown_fields()) {
5488
0
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
5489
0
        _internal_metadata_.unknown_fields(), target);
5490
0
  }
5491
  // @@protoc_insertion_point(serialize_to_array_end:yb.master.GetPermissionsResponsePB)
5492
117k
  return target;
5493
117k
}
5494
5495
235k
size_t GetPermissionsResponsePB::ByteSizeLong() const {
5496
// @@protoc_insertion_point(message_byte_size_start:yb.master.GetPermissionsResponsePB)
5497
235k
  size_t total_size = 0;
5498
5499
235k
  if (_internal_metadata_.have_unknown_fields()) {
5500
0
    total_size +=
5501
0
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
5502
0
        _internal_metadata_.unknown_fields());
5503
0
  }
5504
  // repeated .yb.master.RolePermissionInfoPB role_permissions = 3;
5505
235k
  {
5506
235k
    unsigned int count = static_cast<unsigned int>(this->role_permissions_size());
5507
235k
    total_size += 1UL * count;
5508
269k
    for (unsigned int i = 0; i < count; i++) {
5509
34.7k
      total_size +=
5510
34.7k
        ::google::protobuf::internal::WireFormatLite::MessageSize(
5511
34.7k
          this->role_permissions(static_cast<int>(i)));
5512
34.7k
    }
5513
235k
  }
5514
5515
235k
  if (_has_bits_[0 / 32] & 3u) {
5516
    // optional .yb.master.MasterErrorPB error = 2;
5517
235k
    if (has_error()) {
5518
0
      total_size += 1 +
5519
0
        ::google::protobuf::internal::WireFormatLite::MessageSize(
5520
0
          *this->error_);
5521
0
    }
5522
5523
    // optional uint64 version = 1;
5524
235k
    if (has_version()) {
5525
234k
      total_size += 1 +
5526
234k
        ::google::protobuf::internal::WireFormatLite::UInt64Size(
5527
234k
          this->version());
5528
234k
    }
5529
5530
235k
  }
5531
235k
  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
5532
235k
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
5533
235k
  _cached_size_ = cached_size;
5534
235k
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
5535
235k
  return total_size;
5536
235k
}
5537
5538
0
void GetPermissionsResponsePB::MergeFrom(const ::google::protobuf::Message& from) {
5539
// @@protoc_insertion_point(generalized_merge_from_start:yb.master.GetPermissionsResponsePB)
5540
0
  GOOGLE_DCHECK_NE(&from, this);
5541
0
  const GetPermissionsResponsePB* source =
5542
0
      ::google::protobuf::internal::DynamicCastToGenerated<const GetPermissionsResponsePB>(
5543
0
          &from);
5544
0
  if (source == NULL) {
5545
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:yb.master.GetPermissionsResponsePB)
5546
0
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
5547
0
  } else {
5548
  // @@protoc_insertion_point(generalized_merge_from_cast_success:yb.master.GetPermissionsResponsePB)
5549
0
    MergeFrom(*source);
5550
0
  }
5551
0
}
5552
5553
9.44k
void GetPermissionsResponsePB::MergeFrom(const GetPermissionsResponsePB& from) {
5554
// @@protoc_insertion_point(class_specific_merge_from_start:yb.master.GetPermissionsResponsePB)
5555
9.44k
  GOOGLE_DCHECK_NE(&from, this);
5556
9.44k
  _internal_metadata_.MergeFrom(from._internal_metadata_);
5557
9.44k
  ::google::protobuf::uint32 cached_has_bits = 0;
5558
9.44k
  (void) cached_has_bits;
5559
5560
9.44k
  role_permissions_.MergeFrom(from.role_permissions_);
5561
9.44k
  cached_has_bits = from._has_bits_[0];
5562
9.44k
  if (cached_has_bits & 3u) {
5563
9.43k
    if (cached_has_bits & 0x00000001u) {
5564
0
      mutable_error()->::yb::master::MasterErrorPB::MergeFrom(from.error());
5565
0
    }
5566
9.43k
    if (cached_has_bits & 0x00000002u) {
5567
9.43k
      version_ = from.version_;
5568
9.43k
    }
5569
9.43k
    _has_bits_[0] |= cached_has_bits;
5570
9.43k
  }
5571
9.44k
}
5572
5573
0
void GetPermissionsResponsePB::CopyFrom(const ::google::protobuf::Message& from) {
5574
// @@protoc_insertion_point(generalized_copy_from_start:yb.master.GetPermissionsResponsePB)
5575
0
  if (&from == this) return;
5576
0
  Clear();
5577
0
  MergeFrom(from);
5578
0
}
5579
5580
9.44k
void GetPermissionsResponsePB::CopyFrom(const GetPermissionsResponsePB& from) {
5581
// @@protoc_insertion_point(class_specific_copy_from_start:yb.master.GetPermissionsResponsePB)
5582
9.44k
  if (&from == this) return;
5583
9.44k
  Clear();
5584
9.44k
  MergeFrom(from);
5585
9.44k
}
5586
5587
235k
bool GetPermissionsResponsePB::IsInitialized() const {
5588
235k
  if (has_error()) {
5589
0
    if (!this->error_->IsInitialized()) return false;
5590
235k
  }
5591
235k
  return true;
5592
235k
}
5593
5594
0
void GetPermissionsResponsePB::Swap(GetPermissionsResponsePB* other) {
5595
0
  if (other == this) return;
5596
0
  InternalSwap(other);
5597
0
}
5598
0
void GetPermissionsResponsePB::InternalSwap(GetPermissionsResponsePB* other) {
5599
0
  using std::swap;
5600
0
  role_permissions_.InternalSwap(&other->role_permissions_);
5601
0
  swap(error_, other->error_);
5602
0
  swap(version_, other->version_);
5603
0
  swap(_has_bits_[0], other->_has_bits_[0]);
5604
0
  _internal_metadata_.Swap(&other->_internal_metadata_);
5605
0
  swap(_cached_size_, other->_cached_size_);
5606
0
}
5607
5608
0
::google::protobuf::Metadata GetPermissionsResponsePB::GetMetadata() const {
5609
0
  protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::protobuf_AssignDescriptorsOnce();
5610
0
  return ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::file_level_metadata[kIndexInFileMessages];
5611
0
}
5612
5613
5614
// @@protoc_insertion_point(namespace_scope)
5615
}  // namespace master
5616
}  // namespace yb
5617
5618
// @@protoc_insertion_point(global_scope)