/Users/deen/code/yugabyte-db/build/debugcov-clang-dynamic-arm64-ninja/src/yb/master/master_dcl.pb.h
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 | | #ifndef PROTOBUF_yb_2fmaster_2fmaster_5fdcl_2eproto__INCLUDED |
5 | | #define PROTOBUF_yb_2fmaster_2fmaster_5fdcl_2eproto__INCLUDED |
6 | | |
7 | | #include <string> |
8 | | |
9 | | #include <google/protobuf/stubs/common.h> |
10 | | |
11 | | #if GOOGLE_PROTOBUF_VERSION < 3005000 |
12 | | #error This file was generated by a newer version of protoc which is |
13 | | #error incompatible with your Protocol Buffer headers. Please update |
14 | | #error your headers. |
15 | | #endif |
16 | | #if 3005001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION |
17 | | #error This file was generated by an older version of protoc which is |
18 | | #error incompatible with your Protocol Buffer headers. Please |
19 | | #error regenerate this file with a newer version of protoc. |
20 | | #endif |
21 | | |
22 | | #include <google/protobuf/io/coded_stream.h> |
23 | | #include <google/protobuf/arena.h> |
24 | | #include <google/protobuf/arenastring.h> |
25 | | #include <google/protobuf/generated_message_table_driven.h> |
26 | | #include <google/protobuf/generated_message_util.h> |
27 | | #include <google/protobuf/metadata.h> |
28 | | #include <google/protobuf/message.h> |
29 | | #include <google/protobuf/repeated_field.h> // IWYU pragma: export |
30 | | #include <google/protobuf/extension_set.h> // IWYU pragma: export |
31 | | #include <google/protobuf/unknown_field_set.h> |
32 | | #include "yb/common/common_types.pb.h" |
33 | | #include "yb/master/master_types.pb.h" |
34 | | #include "yb/rpc/service.pb.h" |
35 | | // @@protoc_insertion_point(includes) |
36 | | |
37 | | namespace protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto { |
38 | | // Internal implementation detail -- do not use these members. |
39 | | struct TableStruct { |
40 | | static const ::google::protobuf::internal::ParseTableField entries[]; |
41 | | static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; |
42 | | static const ::google::protobuf::internal::ParseTable schema[14]; |
43 | | static const ::google::protobuf::internal::FieldMetadata field_metadata[]; |
44 | | static const ::google::protobuf::internal::SerializationTable serialization_table[]; |
45 | | static const ::google::protobuf::uint32 offsets[]; |
46 | | }; |
47 | | void AddDescriptors(); |
48 | | void InitDefaultsCreateRoleRequestPBImpl(); |
49 | | void InitDefaultsCreateRoleRequestPB(); |
50 | | void InitDefaultsCreateRoleResponsePBImpl(); |
51 | | void InitDefaultsCreateRoleResponsePB(); |
52 | | void InitDefaultsAlterRoleRequestPBImpl(); |
53 | | void InitDefaultsAlterRoleRequestPB(); |
54 | | void InitDefaultsAlterRoleResponsePBImpl(); |
55 | | void InitDefaultsAlterRoleResponsePB(); |
56 | | void InitDefaultsDeleteRoleRequestPBImpl(); |
57 | | void InitDefaultsDeleteRoleRequestPB(); |
58 | | void InitDefaultsDeleteRoleResponsePBImpl(); |
59 | | void InitDefaultsDeleteRoleResponsePB(); |
60 | | void InitDefaultsGrantRevokeRoleRequestPBImpl(); |
61 | | void InitDefaultsGrantRevokeRoleRequestPB(); |
62 | | void InitDefaultsGrantRevokeRoleResponsePBImpl(); |
63 | | void InitDefaultsGrantRevokeRoleResponsePB(); |
64 | | void InitDefaultsGrantRevokePermissionRequestPBImpl(); |
65 | | void InitDefaultsGrantRevokePermissionRequestPB(); |
66 | | void InitDefaultsGrantRevokePermissionResponsePBImpl(); |
67 | | void InitDefaultsGrantRevokePermissionResponsePB(); |
68 | | void InitDefaultsGetPermissionsRequestPBImpl(); |
69 | | void InitDefaultsGetPermissionsRequestPB(); |
70 | | void InitDefaultsResourcePermissionInfoPBImpl(); |
71 | | void InitDefaultsResourcePermissionInfoPB(); |
72 | | void InitDefaultsRolePermissionInfoPBImpl(); |
73 | | void InitDefaultsRolePermissionInfoPB(); |
74 | | void InitDefaultsGetPermissionsResponsePBImpl(); |
75 | | void InitDefaultsGetPermissionsResponsePB(); |
76 | 26.8k | inline void InitDefaults() { |
77 | 26.8k | InitDefaultsCreateRoleRequestPB(); |
78 | 26.8k | InitDefaultsCreateRoleResponsePB(); |
79 | 26.8k | InitDefaultsAlterRoleRequestPB(); |
80 | 26.8k | InitDefaultsAlterRoleResponsePB(); |
81 | 26.8k | InitDefaultsDeleteRoleRequestPB(); |
82 | 26.8k | InitDefaultsDeleteRoleResponsePB(); |
83 | 26.8k | InitDefaultsGrantRevokeRoleRequestPB(); |
84 | 26.8k | InitDefaultsGrantRevokeRoleResponsePB(); |
85 | 26.8k | InitDefaultsGrantRevokePermissionRequestPB(); |
86 | 26.8k | InitDefaultsGrantRevokePermissionResponsePB(); |
87 | 26.8k | InitDefaultsGetPermissionsRequestPB(); |
88 | 26.8k | InitDefaultsResourcePermissionInfoPB(); |
89 | 26.8k | InitDefaultsRolePermissionInfoPB(); |
90 | 26.8k | InitDefaultsGetPermissionsResponsePB(); |
91 | 26.8k | } |
92 | | } // namespace protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto |
93 | | namespace yb { |
94 | | namespace master { |
95 | | class AlterRoleRequestPB; |
96 | | class AlterRoleRequestPBDefaultTypeInternal; |
97 | | extern AlterRoleRequestPBDefaultTypeInternal _AlterRoleRequestPB_default_instance_; |
98 | | class AlterRoleResponsePB; |
99 | | class AlterRoleResponsePBDefaultTypeInternal; |
100 | | extern AlterRoleResponsePBDefaultTypeInternal _AlterRoleResponsePB_default_instance_; |
101 | | class CreateRoleRequestPB; |
102 | | class CreateRoleRequestPBDefaultTypeInternal; |
103 | | extern CreateRoleRequestPBDefaultTypeInternal _CreateRoleRequestPB_default_instance_; |
104 | | class CreateRoleResponsePB; |
105 | | class CreateRoleResponsePBDefaultTypeInternal; |
106 | | extern CreateRoleResponsePBDefaultTypeInternal _CreateRoleResponsePB_default_instance_; |
107 | | class DeleteRoleRequestPB; |
108 | | class DeleteRoleRequestPBDefaultTypeInternal; |
109 | | extern DeleteRoleRequestPBDefaultTypeInternal _DeleteRoleRequestPB_default_instance_; |
110 | | class DeleteRoleResponsePB; |
111 | | class DeleteRoleResponsePBDefaultTypeInternal; |
112 | | extern DeleteRoleResponsePBDefaultTypeInternal _DeleteRoleResponsePB_default_instance_; |
113 | | class GetPermissionsRequestPB; |
114 | | class GetPermissionsRequestPBDefaultTypeInternal; |
115 | | extern GetPermissionsRequestPBDefaultTypeInternal _GetPermissionsRequestPB_default_instance_; |
116 | | class GetPermissionsResponsePB; |
117 | | class GetPermissionsResponsePBDefaultTypeInternal; |
118 | | extern GetPermissionsResponsePBDefaultTypeInternal _GetPermissionsResponsePB_default_instance_; |
119 | | class GrantRevokePermissionRequestPB; |
120 | | class GrantRevokePermissionRequestPBDefaultTypeInternal; |
121 | | extern GrantRevokePermissionRequestPBDefaultTypeInternal _GrantRevokePermissionRequestPB_default_instance_; |
122 | | class GrantRevokePermissionResponsePB; |
123 | | class GrantRevokePermissionResponsePBDefaultTypeInternal; |
124 | | extern GrantRevokePermissionResponsePBDefaultTypeInternal _GrantRevokePermissionResponsePB_default_instance_; |
125 | | class GrantRevokeRoleRequestPB; |
126 | | class GrantRevokeRoleRequestPBDefaultTypeInternal; |
127 | | extern GrantRevokeRoleRequestPBDefaultTypeInternal _GrantRevokeRoleRequestPB_default_instance_; |
128 | | class GrantRevokeRoleResponsePB; |
129 | | class GrantRevokeRoleResponsePBDefaultTypeInternal; |
130 | | extern GrantRevokeRoleResponsePBDefaultTypeInternal _GrantRevokeRoleResponsePB_default_instance_; |
131 | | class ResourcePermissionInfoPB; |
132 | | class ResourcePermissionInfoPBDefaultTypeInternal; |
133 | | extern ResourcePermissionInfoPBDefaultTypeInternal _ResourcePermissionInfoPB_default_instance_; |
134 | | class RolePermissionInfoPB; |
135 | | class RolePermissionInfoPBDefaultTypeInternal; |
136 | | extern RolePermissionInfoPBDefaultTypeInternal _RolePermissionInfoPB_default_instance_; |
137 | | } // namespace master |
138 | | } // namespace yb |
139 | | namespace yb { |
140 | | namespace master { |
141 | | |
142 | | // =================================================================== |
143 | | |
144 | | class CreateRoleRequestPB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.master.CreateRoleRequestPB) */ { |
145 | | public: |
146 | | CreateRoleRequestPB(); |
147 | | virtual ~CreateRoleRequestPB(); |
148 | | |
149 | | CreateRoleRequestPB(const CreateRoleRequestPB& from); |
150 | | |
151 | 0 | inline CreateRoleRequestPB& operator=(const CreateRoleRequestPB& from) { |
152 | 0 | CopyFrom(from); |
153 | 0 | return *this; |
154 | 0 | } |
155 | | #if LANG_CXX11 |
156 | | CreateRoleRequestPB(CreateRoleRequestPB&& from) noexcept |
157 | 0 | : CreateRoleRequestPB() { |
158 | 0 | *this = ::std::move(from); |
159 | 0 | } |
160 | | |
161 | 0 | inline CreateRoleRequestPB& operator=(CreateRoleRequestPB&& from) noexcept { |
162 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
163 | 0 | if (this != &from) InternalSwap(&from); |
164 | 0 | } else { |
165 | 0 | CopyFrom(from); |
166 | 0 | } |
167 | 0 | return *this; |
168 | 0 | } |
169 | | #endif |
170 | 0 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
171 | 0 | return _internal_metadata_.unknown_fields(); |
172 | 0 | } |
173 | 0 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
174 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
175 | 0 | } |
176 | | |
177 | | static const ::google::protobuf::Descriptor* descriptor(); |
178 | | static const CreateRoleRequestPB& default_instance(); |
179 | | |
180 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
181 | 28.3k | static inline const CreateRoleRequestPB* internal_default_instance() { |
182 | 28.3k | return reinterpret_cast<const CreateRoleRequestPB*>( |
183 | 28.3k | &_CreateRoleRequestPB_default_instance_); |
184 | 28.3k | } |
185 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
186 | | 0; |
187 | | |
188 | | void Swap(CreateRoleRequestPB* other); |
189 | 0 | friend void swap(CreateRoleRequestPB& a, CreateRoleRequestPB& b) { |
190 | 0 | a.Swap(&b); |
191 | 0 | } |
192 | | |
193 | | // implements Message ---------------------------------------------- |
194 | | |
195 | 0 | inline CreateRoleRequestPB* New() const PROTOBUF_FINAL { return New(NULL); } |
196 | | |
197 | | CreateRoleRequestPB* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; |
198 | | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
199 | | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
200 | | void CopyFrom(const CreateRoleRequestPB& from); |
201 | | void MergeFrom(const CreateRoleRequestPB& from); |
202 | | void Clear() PROTOBUF_FINAL; |
203 | | bool IsInitialized() const PROTOBUF_FINAL; |
204 | | |
205 | | size_t ByteSizeLong() const PROTOBUF_FINAL; |
206 | | bool MergePartialFromCodedStream( |
207 | | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
208 | | void SerializeWithCachedSizes( |
209 | | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
210 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
211 | | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
212 | 0 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
213 | | private: |
214 | | void SharedCtor(); |
215 | | void SharedDtor(); |
216 | | void SetCachedSize(int size) const PROTOBUF_FINAL; |
217 | | void InternalSwap(CreateRoleRequestPB* other); |
218 | | private: |
219 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
220 | 0 | return NULL; |
221 | 0 | } |
222 | 0 | inline void* MaybeArenaPtr() const { |
223 | 0 | return NULL; |
224 | 0 | } |
225 | | public: |
226 | | |
227 | | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
228 | | |
229 | | // nested types ---------------------------------------------------- |
230 | | |
231 | | // accessors ------------------------------------------------------- |
232 | | |
233 | | // optional string name = 1; |
234 | | bool has_name() const; |
235 | | void clear_name(); |
236 | | static const int kNameFieldNumber = 1; |
237 | | const ::std::string& name() const; |
238 | | void set_name(const ::std::string& value); |
239 | | #if LANG_CXX11 |
240 | | void set_name(::std::string&& value); |
241 | | #endif |
242 | | void set_name(const char* value); |
243 | | void set_name(const char* value, size_t size); |
244 | | ::std::string* mutable_name(); |
245 | | ::std::string* release_name(); |
246 | | void set_allocated_name(::std::string* name); |
247 | | |
248 | | // optional string salted_hash = 2; |
249 | | bool has_salted_hash() const; |
250 | | void clear_salted_hash(); |
251 | | static const int kSaltedHashFieldNumber = 2; |
252 | | const ::std::string& salted_hash() const; |
253 | | void set_salted_hash(const ::std::string& value); |
254 | | #if LANG_CXX11 |
255 | | void set_salted_hash(::std::string&& value); |
256 | | #endif |
257 | | void set_salted_hash(const char* value); |
258 | | void set_salted_hash(const char* value, size_t size); |
259 | | ::std::string* mutable_salted_hash(); |
260 | | ::std::string* release_salted_hash(); |
261 | | void set_allocated_salted_hash(::std::string* salted_hash); |
262 | | |
263 | | // optional string creator_role_name = 5; |
264 | | bool has_creator_role_name() const; |
265 | | void clear_creator_role_name(); |
266 | | static const int kCreatorRoleNameFieldNumber = 5; |
267 | | const ::std::string& creator_role_name() const; |
268 | | void set_creator_role_name(const ::std::string& value); |
269 | | #if LANG_CXX11 |
270 | | void set_creator_role_name(::std::string&& value); |
271 | | #endif |
272 | | void set_creator_role_name(const char* value); |
273 | | void set_creator_role_name(const char* value, size_t size); |
274 | | ::std::string* mutable_creator_role_name(); |
275 | | ::std::string* release_creator_role_name(); |
276 | | void set_allocated_creator_role_name(::std::string* creator_role_name); |
277 | | |
278 | | // optional bool login = 3; |
279 | | bool has_login() const; |
280 | | void clear_login(); |
281 | | static const int kLoginFieldNumber = 3; |
282 | | bool login() const; |
283 | | void set_login(bool value); |
284 | | |
285 | | // optional bool superuser = 4; |
286 | | bool has_superuser() const; |
287 | | void clear_superuser(); |
288 | | static const int kSuperuserFieldNumber = 4; |
289 | | bool superuser() const; |
290 | | void set_superuser(bool value); |
291 | | |
292 | | // @@protoc_insertion_point(class_scope:yb.master.CreateRoleRequestPB) |
293 | | private: |
294 | | void set_has_name(); |
295 | | void clear_has_name(); |
296 | | void set_has_salted_hash(); |
297 | | void clear_has_salted_hash(); |
298 | | void set_has_login(); |
299 | | void clear_has_login(); |
300 | | void set_has_superuser(); |
301 | | void clear_has_superuser(); |
302 | | void set_has_creator_role_name(); |
303 | | void clear_has_creator_role_name(); |
304 | | |
305 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
306 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
307 | | mutable int _cached_size_; |
308 | | ::google::protobuf::internal::ArenaStringPtr name_; |
309 | | ::google::protobuf::internal::ArenaStringPtr salted_hash_; |
310 | | ::google::protobuf::internal::ArenaStringPtr creator_role_name_; |
311 | | bool login_; |
312 | | bool superuser_; |
313 | | friend struct ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::TableStruct; |
314 | | friend void ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::InitDefaultsCreateRoleRequestPBImpl(); |
315 | | }; |
316 | | // ------------------------------------------------------------------- |
317 | | |
318 | | class CreateRoleResponsePB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.master.CreateRoleResponsePB) */ { |
319 | | public: |
320 | | CreateRoleResponsePB(); |
321 | | virtual ~CreateRoleResponsePB(); |
322 | | |
323 | | CreateRoleResponsePB(const CreateRoleResponsePB& from); |
324 | | |
325 | 0 | inline CreateRoleResponsePB& operator=(const CreateRoleResponsePB& from) { |
326 | 0 | CopyFrom(from); |
327 | 0 | return *this; |
328 | 0 | } |
329 | | #if LANG_CXX11 |
330 | | CreateRoleResponsePB(CreateRoleResponsePB&& from) noexcept |
331 | 0 | : CreateRoleResponsePB() { |
332 | 0 | *this = ::std::move(from); |
333 | 0 | } |
334 | | |
335 | 0 | inline CreateRoleResponsePB& operator=(CreateRoleResponsePB&& from) noexcept { |
336 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
337 | 0 | if (this != &from) InternalSwap(&from); |
338 | 0 | } else { |
339 | 0 | CopyFrom(from); |
340 | 0 | } |
341 | 0 | return *this; |
342 | 0 | } |
343 | | #endif |
344 | 0 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
345 | 0 | return _internal_metadata_.unknown_fields(); |
346 | 0 | } |
347 | 0 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
348 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
349 | 0 | } |
350 | | |
351 | | static const ::google::protobuf::Descriptor* descriptor(); |
352 | | static const CreateRoleResponsePB& default_instance(); |
353 | | |
354 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
355 | 29.8k | static inline const CreateRoleResponsePB* internal_default_instance() { |
356 | 29.8k | return reinterpret_cast<const CreateRoleResponsePB*>( |
357 | 29.8k | &_CreateRoleResponsePB_default_instance_); |
358 | 29.8k | } |
359 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
360 | | 1; |
361 | | |
362 | | void Swap(CreateRoleResponsePB* other); |
363 | 0 | friend void swap(CreateRoleResponsePB& a, CreateRoleResponsePB& b) { |
364 | 0 | a.Swap(&b); |
365 | 0 | } |
366 | | |
367 | | // implements Message ---------------------------------------------- |
368 | | |
369 | 0 | inline CreateRoleResponsePB* New() const PROTOBUF_FINAL { return New(NULL); } |
370 | | |
371 | | CreateRoleResponsePB* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; |
372 | | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
373 | | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
374 | | void CopyFrom(const CreateRoleResponsePB& from); |
375 | | void MergeFrom(const CreateRoleResponsePB& from); |
376 | | void Clear() PROTOBUF_FINAL; |
377 | | bool IsInitialized() const PROTOBUF_FINAL; |
378 | | |
379 | | size_t ByteSizeLong() const PROTOBUF_FINAL; |
380 | | bool MergePartialFromCodedStream( |
381 | | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
382 | | void SerializeWithCachedSizes( |
383 | | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
384 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
385 | | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
386 | 0 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
387 | | private: |
388 | | void SharedCtor(); |
389 | | void SharedDtor(); |
390 | | void SetCachedSize(int size) const PROTOBUF_FINAL; |
391 | | void InternalSwap(CreateRoleResponsePB* other); |
392 | | private: |
393 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
394 | 0 | return NULL; |
395 | 0 | } |
396 | 0 | inline void* MaybeArenaPtr() const { |
397 | 0 | return NULL; |
398 | 0 | } |
399 | | public: |
400 | | |
401 | | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
402 | | |
403 | | // nested types ---------------------------------------------------- |
404 | | |
405 | | // accessors ------------------------------------------------------- |
406 | | |
407 | | // optional .yb.master.MasterErrorPB error = 1; |
408 | | bool has_error() const; |
409 | | void clear_error(); |
410 | | static const int kErrorFieldNumber = 1; |
411 | | const ::yb::master::MasterErrorPB& error() const; |
412 | | ::yb::master::MasterErrorPB* release_error(); |
413 | | ::yb::master::MasterErrorPB* mutable_error(); |
414 | | void set_allocated_error(::yb::master::MasterErrorPB* error); |
415 | | |
416 | | // @@protoc_insertion_point(class_scope:yb.master.CreateRoleResponsePB) |
417 | | private: |
418 | | void set_has_error(); |
419 | | void clear_has_error(); |
420 | | |
421 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
422 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
423 | | mutable int _cached_size_; |
424 | | ::yb::master::MasterErrorPB* error_; |
425 | | friend struct ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::TableStruct; |
426 | | friend void ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::InitDefaultsCreateRoleResponsePBImpl(); |
427 | | }; |
428 | | // ------------------------------------------------------------------- |
429 | | |
430 | | class AlterRoleRequestPB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.master.AlterRoleRequestPB) */ { |
431 | | public: |
432 | | AlterRoleRequestPB(); |
433 | | virtual ~AlterRoleRequestPB(); |
434 | | |
435 | | AlterRoleRequestPB(const AlterRoleRequestPB& from); |
436 | | |
437 | 0 | inline AlterRoleRequestPB& operator=(const AlterRoleRequestPB& from) { |
438 | 0 | CopyFrom(from); |
439 | 0 | return *this; |
440 | 0 | } |
441 | | #if LANG_CXX11 |
442 | | AlterRoleRequestPB(AlterRoleRequestPB&& from) noexcept |
443 | 0 | : AlterRoleRequestPB() { |
444 | 0 | *this = ::std::move(from); |
445 | 0 | } |
446 | | |
447 | 0 | inline AlterRoleRequestPB& operator=(AlterRoleRequestPB&& from) noexcept { |
448 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
449 | 0 | if (this != &from) InternalSwap(&from); |
450 | 0 | } else { |
451 | 0 | CopyFrom(from); |
452 | 0 | } |
453 | 0 | return *this; |
454 | 0 | } |
455 | | #endif |
456 | 0 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
457 | 0 | return _internal_metadata_.unknown_fields(); |
458 | 0 | } |
459 | 0 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
460 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
461 | 0 | } |
462 | | |
463 | | static const ::google::protobuf::Descriptor* descriptor(); |
464 | | static const AlterRoleRequestPB& default_instance(); |
465 | | |
466 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
467 | 26.9k | static inline const AlterRoleRequestPB* internal_default_instance() { |
468 | 26.9k | return reinterpret_cast<const AlterRoleRequestPB*>( |
469 | 26.9k | &_AlterRoleRequestPB_default_instance_); |
470 | 26.9k | } |
471 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
472 | | 2; |
473 | | |
474 | | void Swap(AlterRoleRequestPB* other); |
475 | 0 | friend void swap(AlterRoleRequestPB& a, AlterRoleRequestPB& b) { |
476 | 0 | a.Swap(&b); |
477 | 0 | } |
478 | | |
479 | | // implements Message ---------------------------------------------- |
480 | | |
481 | 0 | inline AlterRoleRequestPB* New() const PROTOBUF_FINAL { return New(NULL); } |
482 | | |
483 | | AlterRoleRequestPB* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; |
484 | | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
485 | | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
486 | | void CopyFrom(const AlterRoleRequestPB& from); |
487 | | void MergeFrom(const AlterRoleRequestPB& from); |
488 | | void Clear() PROTOBUF_FINAL; |
489 | | bool IsInitialized() const PROTOBUF_FINAL; |
490 | | |
491 | | size_t ByteSizeLong() const PROTOBUF_FINAL; |
492 | | bool MergePartialFromCodedStream( |
493 | | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
494 | | void SerializeWithCachedSizes( |
495 | | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
496 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
497 | | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
498 | 0 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
499 | | private: |
500 | | void SharedCtor(); |
501 | | void SharedDtor(); |
502 | | void SetCachedSize(int size) const PROTOBUF_FINAL; |
503 | | void InternalSwap(AlterRoleRequestPB* other); |
504 | | private: |
505 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
506 | 0 | return NULL; |
507 | 0 | } |
508 | 0 | inline void* MaybeArenaPtr() const { |
509 | 0 | return NULL; |
510 | 0 | } |
511 | | public: |
512 | | |
513 | | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
514 | | |
515 | | // nested types ---------------------------------------------------- |
516 | | |
517 | | // accessors ------------------------------------------------------- |
518 | | |
519 | | // optional string name = 1; |
520 | | bool has_name() const; |
521 | | void clear_name(); |
522 | | static const int kNameFieldNumber = 1; |
523 | | const ::std::string& name() const; |
524 | | void set_name(const ::std::string& value); |
525 | | #if LANG_CXX11 |
526 | | void set_name(::std::string&& value); |
527 | | #endif |
528 | | void set_name(const char* value); |
529 | | void set_name(const char* value, size_t size); |
530 | | ::std::string* mutable_name(); |
531 | | ::std::string* release_name(); |
532 | | void set_allocated_name(::std::string* name); |
533 | | |
534 | | // optional string salted_hash = 2; |
535 | | bool has_salted_hash() const; |
536 | | void clear_salted_hash(); |
537 | | static const int kSaltedHashFieldNumber = 2; |
538 | | const ::std::string& salted_hash() const; |
539 | | void set_salted_hash(const ::std::string& value); |
540 | | #if LANG_CXX11 |
541 | | void set_salted_hash(::std::string&& value); |
542 | | #endif |
543 | | void set_salted_hash(const char* value); |
544 | | void set_salted_hash(const char* value, size_t size); |
545 | | ::std::string* mutable_salted_hash(); |
546 | | ::std::string* release_salted_hash(); |
547 | | void set_allocated_salted_hash(::std::string* salted_hash); |
548 | | |
549 | | // optional string current_role = 5; |
550 | | bool has_current_role() const; |
551 | | void clear_current_role(); |
552 | | static const int kCurrentRoleFieldNumber = 5; |
553 | | const ::std::string& current_role() const; |
554 | | void set_current_role(const ::std::string& value); |
555 | | #if LANG_CXX11 |
556 | | void set_current_role(::std::string&& value); |
557 | | #endif |
558 | | void set_current_role(const char* value); |
559 | | void set_current_role(const char* value, size_t size); |
560 | | ::std::string* mutable_current_role(); |
561 | | ::std::string* release_current_role(); |
562 | | void set_allocated_current_role(::std::string* current_role); |
563 | | |
564 | | // optional bool login = 3; |
565 | | bool has_login() const; |
566 | | void clear_login(); |
567 | | static const int kLoginFieldNumber = 3; |
568 | | bool login() const; |
569 | | void set_login(bool value); |
570 | | |
571 | | // optional bool superuser = 4; |
572 | | bool has_superuser() const; |
573 | | void clear_superuser(); |
574 | | static const int kSuperuserFieldNumber = 4; |
575 | | bool superuser() const; |
576 | | void set_superuser(bool value); |
577 | | |
578 | | // @@protoc_insertion_point(class_scope:yb.master.AlterRoleRequestPB) |
579 | | private: |
580 | | void set_has_name(); |
581 | | void clear_has_name(); |
582 | | void set_has_salted_hash(); |
583 | | void clear_has_salted_hash(); |
584 | | void set_has_login(); |
585 | | void clear_has_login(); |
586 | | void set_has_superuser(); |
587 | | void clear_has_superuser(); |
588 | | void set_has_current_role(); |
589 | | void clear_has_current_role(); |
590 | | |
591 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
592 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
593 | | mutable int _cached_size_; |
594 | | ::google::protobuf::internal::ArenaStringPtr name_; |
595 | | ::google::protobuf::internal::ArenaStringPtr salted_hash_; |
596 | | ::google::protobuf::internal::ArenaStringPtr current_role_; |
597 | | bool login_; |
598 | | bool superuser_; |
599 | | friend struct ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::TableStruct; |
600 | | friend void ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::InitDefaultsAlterRoleRequestPBImpl(); |
601 | | }; |
602 | | // ------------------------------------------------------------------- |
603 | | |
604 | | class AlterRoleResponsePB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.master.AlterRoleResponsePB) */ { |
605 | | public: |
606 | | AlterRoleResponsePB(); |
607 | | virtual ~AlterRoleResponsePB(); |
608 | | |
609 | | AlterRoleResponsePB(const AlterRoleResponsePB& from); |
610 | | |
611 | 0 | inline AlterRoleResponsePB& operator=(const AlterRoleResponsePB& from) { |
612 | 0 | CopyFrom(from); |
613 | 0 | return *this; |
614 | 0 | } |
615 | | #if LANG_CXX11 |
616 | | AlterRoleResponsePB(AlterRoleResponsePB&& from) noexcept |
617 | 0 | : AlterRoleResponsePB() { |
618 | 0 | *this = ::std::move(from); |
619 | 0 | } |
620 | | |
621 | 0 | inline AlterRoleResponsePB& operator=(AlterRoleResponsePB&& from) noexcept { |
622 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
623 | 0 | if (this != &from) InternalSwap(&from); |
624 | 0 | } else { |
625 | 0 | CopyFrom(from); |
626 | 0 | } |
627 | 0 | return *this; |
628 | 0 | } |
629 | | #endif |
630 | 0 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
631 | 0 | return _internal_metadata_.unknown_fields(); |
632 | 0 | } |
633 | 0 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
634 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
635 | 0 | } |
636 | | |
637 | | static const ::google::protobuf::Descriptor* descriptor(); |
638 | | static const AlterRoleResponsePB& default_instance(); |
639 | | |
640 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
641 | 27.0k | static inline const AlterRoleResponsePB* internal_default_instance() { |
642 | 27.0k | return reinterpret_cast<const AlterRoleResponsePB*>( |
643 | 27.0k | &_AlterRoleResponsePB_default_instance_); |
644 | 27.0k | } |
645 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
646 | | 3; |
647 | | |
648 | | void Swap(AlterRoleResponsePB* other); |
649 | 0 | friend void swap(AlterRoleResponsePB& a, AlterRoleResponsePB& b) { |
650 | 0 | a.Swap(&b); |
651 | 0 | } |
652 | | |
653 | | // implements Message ---------------------------------------------- |
654 | | |
655 | 0 | inline AlterRoleResponsePB* New() const PROTOBUF_FINAL { return New(NULL); } |
656 | | |
657 | | AlterRoleResponsePB* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; |
658 | | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
659 | | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
660 | | void CopyFrom(const AlterRoleResponsePB& from); |
661 | | void MergeFrom(const AlterRoleResponsePB& from); |
662 | | void Clear() PROTOBUF_FINAL; |
663 | | bool IsInitialized() const PROTOBUF_FINAL; |
664 | | |
665 | | size_t ByteSizeLong() const PROTOBUF_FINAL; |
666 | | bool MergePartialFromCodedStream( |
667 | | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
668 | | void SerializeWithCachedSizes( |
669 | | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
670 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
671 | | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
672 | 0 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
673 | | private: |
674 | | void SharedCtor(); |
675 | | void SharedDtor(); |
676 | | void SetCachedSize(int size) const PROTOBUF_FINAL; |
677 | | void InternalSwap(AlterRoleResponsePB* other); |
678 | | private: |
679 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
680 | 0 | return NULL; |
681 | 0 | } |
682 | 0 | inline void* MaybeArenaPtr() const { |
683 | 0 | return NULL; |
684 | 0 | } |
685 | | public: |
686 | | |
687 | | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
688 | | |
689 | | // nested types ---------------------------------------------------- |
690 | | |
691 | | // accessors ------------------------------------------------------- |
692 | | |
693 | | // optional .yb.master.MasterErrorPB error = 1; |
694 | | bool has_error() const; |
695 | | void clear_error(); |
696 | | static const int kErrorFieldNumber = 1; |
697 | | const ::yb::master::MasterErrorPB& error() const; |
698 | | ::yb::master::MasterErrorPB* release_error(); |
699 | | ::yb::master::MasterErrorPB* mutable_error(); |
700 | | void set_allocated_error(::yb::master::MasterErrorPB* error); |
701 | | |
702 | | // @@protoc_insertion_point(class_scope:yb.master.AlterRoleResponsePB) |
703 | | private: |
704 | | void set_has_error(); |
705 | | void clear_has_error(); |
706 | | |
707 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
708 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
709 | | mutable int _cached_size_; |
710 | | ::yb::master::MasterErrorPB* error_; |
711 | | friend struct ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::TableStruct; |
712 | | friend void ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::InitDefaultsAlterRoleResponsePBImpl(); |
713 | | }; |
714 | | // ------------------------------------------------------------------- |
715 | | |
716 | | class DeleteRoleRequestPB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.master.DeleteRoleRequestPB) */ { |
717 | | public: |
718 | | DeleteRoleRequestPB(); |
719 | | virtual ~DeleteRoleRequestPB(); |
720 | | |
721 | | DeleteRoleRequestPB(const DeleteRoleRequestPB& from); |
722 | | |
723 | 0 | inline DeleteRoleRequestPB& operator=(const DeleteRoleRequestPB& from) { |
724 | 0 | CopyFrom(from); |
725 | 0 | return *this; |
726 | 0 | } |
727 | | #if LANG_CXX11 |
728 | | DeleteRoleRequestPB(DeleteRoleRequestPB&& from) noexcept |
729 | 0 | : DeleteRoleRequestPB() { |
730 | 0 | *this = ::std::move(from); |
731 | 0 | } |
732 | | |
733 | 0 | inline DeleteRoleRequestPB& operator=(DeleteRoleRequestPB&& from) noexcept { |
734 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
735 | 0 | if (this != &from) InternalSwap(&from); |
736 | 0 | } else { |
737 | 0 | CopyFrom(from); |
738 | 0 | } |
739 | 0 | return *this; |
740 | 0 | } |
741 | | #endif |
742 | 0 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
743 | 0 | return _internal_metadata_.unknown_fields(); |
744 | 0 | } |
745 | 0 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
746 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
747 | 0 | } |
748 | | |
749 | | static const ::google::protobuf::Descriptor* descriptor(); |
750 | | static const DeleteRoleRequestPB& default_instance(); |
751 | | |
752 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
753 | 28.3k | static inline const DeleteRoleRequestPB* internal_default_instance() { |
754 | 28.3k | return reinterpret_cast<const DeleteRoleRequestPB*>( |
755 | 28.3k | &_DeleteRoleRequestPB_default_instance_); |
756 | 28.3k | } |
757 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
758 | | 4; |
759 | | |
760 | | void Swap(DeleteRoleRequestPB* other); |
761 | 0 | friend void swap(DeleteRoleRequestPB& a, DeleteRoleRequestPB& b) { |
762 | 0 | a.Swap(&b); |
763 | 0 | } |
764 | | |
765 | | // implements Message ---------------------------------------------- |
766 | | |
767 | 0 | inline DeleteRoleRequestPB* New() const PROTOBUF_FINAL { return New(NULL); } |
768 | | |
769 | | DeleteRoleRequestPB* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; |
770 | | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
771 | | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
772 | | void CopyFrom(const DeleteRoleRequestPB& from); |
773 | | void MergeFrom(const DeleteRoleRequestPB& from); |
774 | | void Clear() PROTOBUF_FINAL; |
775 | | bool IsInitialized() const PROTOBUF_FINAL; |
776 | | |
777 | | size_t ByteSizeLong() const PROTOBUF_FINAL; |
778 | | bool MergePartialFromCodedStream( |
779 | | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
780 | | void SerializeWithCachedSizes( |
781 | | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
782 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
783 | | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
784 | 0 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
785 | | private: |
786 | | void SharedCtor(); |
787 | | void SharedDtor(); |
788 | | void SetCachedSize(int size) const PROTOBUF_FINAL; |
789 | | void InternalSwap(DeleteRoleRequestPB* other); |
790 | | private: |
791 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
792 | 0 | return NULL; |
793 | 0 | } |
794 | 0 | inline void* MaybeArenaPtr() const { |
795 | 0 | return NULL; |
796 | 0 | } |
797 | | public: |
798 | | |
799 | | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
800 | | |
801 | | // nested types ---------------------------------------------------- |
802 | | |
803 | | // accessors ------------------------------------------------------- |
804 | | |
805 | | // optional string name = 1; |
806 | | bool has_name() const; |
807 | | void clear_name(); |
808 | | static const int kNameFieldNumber = 1; |
809 | | const ::std::string& name() const; |
810 | | void set_name(const ::std::string& value); |
811 | | #if LANG_CXX11 |
812 | | void set_name(::std::string&& value); |
813 | | #endif |
814 | | void set_name(const char* value); |
815 | | void set_name(const char* value, size_t size); |
816 | | ::std::string* mutable_name(); |
817 | | ::std::string* release_name(); |
818 | | void set_allocated_name(::std::string* name); |
819 | | |
820 | | // optional string current_role = 2; |
821 | | bool has_current_role() const; |
822 | | void clear_current_role(); |
823 | | static const int kCurrentRoleFieldNumber = 2; |
824 | | const ::std::string& current_role() const; |
825 | | void set_current_role(const ::std::string& value); |
826 | | #if LANG_CXX11 |
827 | | void set_current_role(::std::string&& value); |
828 | | #endif |
829 | | void set_current_role(const char* value); |
830 | | void set_current_role(const char* value, size_t size); |
831 | | ::std::string* mutable_current_role(); |
832 | | ::std::string* release_current_role(); |
833 | | void set_allocated_current_role(::std::string* current_role); |
834 | | |
835 | | // @@protoc_insertion_point(class_scope:yb.master.DeleteRoleRequestPB) |
836 | | private: |
837 | | void set_has_name(); |
838 | | void clear_has_name(); |
839 | | void set_has_current_role(); |
840 | | void clear_has_current_role(); |
841 | | |
842 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
843 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
844 | | mutable int _cached_size_; |
845 | | ::google::protobuf::internal::ArenaStringPtr name_; |
846 | | ::google::protobuf::internal::ArenaStringPtr current_role_; |
847 | | friend struct ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::TableStruct; |
848 | | friend void ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::InitDefaultsDeleteRoleRequestPBImpl(); |
849 | | }; |
850 | | // ------------------------------------------------------------------- |
851 | | |
852 | | class DeleteRoleResponsePB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.master.DeleteRoleResponsePB) */ { |
853 | | public: |
854 | | DeleteRoleResponsePB(); |
855 | | virtual ~DeleteRoleResponsePB(); |
856 | | |
857 | | DeleteRoleResponsePB(const DeleteRoleResponsePB& from); |
858 | | |
859 | 0 | inline DeleteRoleResponsePB& operator=(const DeleteRoleResponsePB& from) { |
860 | 0 | CopyFrom(from); |
861 | 0 | return *this; |
862 | 0 | } |
863 | | #if LANG_CXX11 |
864 | | DeleteRoleResponsePB(DeleteRoleResponsePB&& from) noexcept |
865 | 0 | : DeleteRoleResponsePB() { |
866 | 0 | *this = ::std::move(from); |
867 | 0 | } |
868 | | |
869 | 0 | inline DeleteRoleResponsePB& operator=(DeleteRoleResponsePB&& from) noexcept { |
870 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
871 | 0 | if (this != &from) InternalSwap(&from); |
872 | 0 | } else { |
873 | 0 | CopyFrom(from); |
874 | 0 | } |
875 | 0 | return *this; |
876 | 0 | } |
877 | | #endif |
878 | 0 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
879 | 0 | return _internal_metadata_.unknown_fields(); |
880 | 0 | } |
881 | 0 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
882 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
883 | 0 | } |
884 | | |
885 | | static const ::google::protobuf::Descriptor* descriptor(); |
886 | | static const DeleteRoleResponsePB& default_instance(); |
887 | | |
888 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
889 | 29.7k | static inline const DeleteRoleResponsePB* internal_default_instance() { |
890 | 29.7k | return reinterpret_cast<const DeleteRoleResponsePB*>( |
891 | 29.7k | &_DeleteRoleResponsePB_default_instance_); |
892 | 29.7k | } |
893 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
894 | | 5; |
895 | | |
896 | | void Swap(DeleteRoleResponsePB* other); |
897 | 0 | friend void swap(DeleteRoleResponsePB& a, DeleteRoleResponsePB& b) { |
898 | 0 | a.Swap(&b); |
899 | 0 | } |
900 | | |
901 | | // implements Message ---------------------------------------------- |
902 | | |
903 | 0 | inline DeleteRoleResponsePB* New() const PROTOBUF_FINAL { return New(NULL); } |
904 | | |
905 | | DeleteRoleResponsePB* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; |
906 | | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
907 | | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
908 | | void CopyFrom(const DeleteRoleResponsePB& from); |
909 | | void MergeFrom(const DeleteRoleResponsePB& from); |
910 | | void Clear() PROTOBUF_FINAL; |
911 | | bool IsInitialized() const PROTOBUF_FINAL; |
912 | | |
913 | | size_t ByteSizeLong() const PROTOBUF_FINAL; |
914 | | bool MergePartialFromCodedStream( |
915 | | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
916 | | void SerializeWithCachedSizes( |
917 | | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
918 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
919 | | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
920 | 0 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
921 | | private: |
922 | | void SharedCtor(); |
923 | | void SharedDtor(); |
924 | | void SetCachedSize(int size) const PROTOBUF_FINAL; |
925 | | void InternalSwap(DeleteRoleResponsePB* other); |
926 | | private: |
927 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
928 | 0 | return NULL; |
929 | 0 | } |
930 | 0 | inline void* MaybeArenaPtr() const { |
931 | 0 | return NULL; |
932 | 0 | } |
933 | | public: |
934 | | |
935 | | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
936 | | |
937 | | // nested types ---------------------------------------------------- |
938 | | |
939 | | // accessors ------------------------------------------------------- |
940 | | |
941 | | // optional .yb.master.MasterErrorPB error = 1; |
942 | | bool has_error() const; |
943 | | void clear_error(); |
944 | | static const int kErrorFieldNumber = 1; |
945 | | const ::yb::master::MasterErrorPB& error() const; |
946 | | ::yb::master::MasterErrorPB* release_error(); |
947 | | ::yb::master::MasterErrorPB* mutable_error(); |
948 | | void set_allocated_error(::yb::master::MasterErrorPB* error); |
949 | | |
950 | | // @@protoc_insertion_point(class_scope:yb.master.DeleteRoleResponsePB) |
951 | | private: |
952 | | void set_has_error(); |
953 | | void clear_has_error(); |
954 | | |
955 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
956 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
957 | | mutable int _cached_size_; |
958 | | ::yb::master::MasterErrorPB* error_; |
959 | | friend struct ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::TableStruct; |
960 | | friend void ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::InitDefaultsDeleteRoleResponsePBImpl(); |
961 | | }; |
962 | | // ------------------------------------------------------------------- |
963 | | |
964 | | class GrantRevokeRoleRequestPB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.master.GrantRevokeRoleRequestPB) */ { |
965 | | public: |
966 | | GrantRevokeRoleRequestPB(); |
967 | | virtual ~GrantRevokeRoleRequestPB(); |
968 | | |
969 | | GrantRevokeRoleRequestPB(const GrantRevokeRoleRequestPB& from); |
970 | | |
971 | 0 | inline GrantRevokeRoleRequestPB& operator=(const GrantRevokeRoleRequestPB& from) { |
972 | 0 | CopyFrom(from); |
973 | 0 | return *this; |
974 | 0 | } |
975 | | #if LANG_CXX11 |
976 | | GrantRevokeRoleRequestPB(GrantRevokeRoleRequestPB&& from) noexcept |
977 | 0 | : GrantRevokeRoleRequestPB() { |
978 | 0 | *this = ::std::move(from); |
979 | 0 | } |
980 | | |
981 | 0 | inline GrantRevokeRoleRequestPB& operator=(GrantRevokeRoleRequestPB&& from) noexcept { |
982 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
983 | 0 | if (this != &from) InternalSwap(&from); |
984 | 0 | } else { |
985 | 0 | CopyFrom(from); |
986 | 0 | } |
987 | 0 | return *this; |
988 | 0 | } |
989 | | #endif |
990 | 0 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
991 | 0 | return _internal_metadata_.unknown_fields(); |
992 | 0 | } |
993 | 0 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
994 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
995 | 0 | } |
996 | | |
997 | | static const ::google::protobuf::Descriptor* descriptor(); |
998 | | static const GrantRevokeRoleRequestPB& default_instance(); |
999 | | |
1000 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
1001 | 26.9k | static inline const GrantRevokeRoleRequestPB* internal_default_instance() { |
1002 | 26.9k | return reinterpret_cast<const GrantRevokeRoleRequestPB*>( |
1003 | 26.9k | &_GrantRevokeRoleRequestPB_default_instance_); |
1004 | 26.9k | } |
1005 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
1006 | | 6; |
1007 | | |
1008 | | void Swap(GrantRevokeRoleRequestPB* other); |
1009 | 0 | friend void swap(GrantRevokeRoleRequestPB& a, GrantRevokeRoleRequestPB& b) { |
1010 | 0 | a.Swap(&b); |
1011 | 0 | } |
1012 | | |
1013 | | // implements Message ---------------------------------------------- |
1014 | | |
1015 | 0 | inline GrantRevokeRoleRequestPB* New() const PROTOBUF_FINAL { return New(NULL); } |
1016 | | |
1017 | | GrantRevokeRoleRequestPB* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; |
1018 | | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
1019 | | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
1020 | | void CopyFrom(const GrantRevokeRoleRequestPB& from); |
1021 | | void MergeFrom(const GrantRevokeRoleRequestPB& from); |
1022 | | void Clear() PROTOBUF_FINAL; |
1023 | | bool IsInitialized() const PROTOBUF_FINAL; |
1024 | | |
1025 | | size_t ByteSizeLong() const PROTOBUF_FINAL; |
1026 | | bool MergePartialFromCodedStream( |
1027 | | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
1028 | | void SerializeWithCachedSizes( |
1029 | | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
1030 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
1031 | | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
1032 | 0 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
1033 | | private: |
1034 | | void SharedCtor(); |
1035 | | void SharedDtor(); |
1036 | | void SetCachedSize(int size) const PROTOBUF_FINAL; |
1037 | | void InternalSwap(GrantRevokeRoleRequestPB* other); |
1038 | | private: |
1039 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
1040 | 0 | return NULL; |
1041 | 0 | } |
1042 | 0 | inline void* MaybeArenaPtr() const { |
1043 | 0 | return NULL; |
1044 | 0 | } |
1045 | | public: |
1046 | | |
1047 | | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
1048 | | |
1049 | | // nested types ---------------------------------------------------- |
1050 | | |
1051 | | // accessors ------------------------------------------------------- |
1052 | | |
1053 | | // optional string granted_role = 1; |
1054 | | bool has_granted_role() const; |
1055 | | void clear_granted_role(); |
1056 | | static const int kGrantedRoleFieldNumber = 1; |
1057 | | const ::std::string& granted_role() const; |
1058 | | void set_granted_role(const ::std::string& value); |
1059 | | #if LANG_CXX11 |
1060 | | void set_granted_role(::std::string&& value); |
1061 | | #endif |
1062 | | void set_granted_role(const char* value); |
1063 | | void set_granted_role(const char* value, size_t size); |
1064 | | ::std::string* mutable_granted_role(); |
1065 | | ::std::string* release_granted_role(); |
1066 | | void set_allocated_granted_role(::std::string* granted_role); |
1067 | | |
1068 | | // optional string recipient_role = 2; |
1069 | | bool has_recipient_role() const; |
1070 | | void clear_recipient_role(); |
1071 | | static const int kRecipientRoleFieldNumber = 2; |
1072 | | const ::std::string& recipient_role() const; |
1073 | | void set_recipient_role(const ::std::string& value); |
1074 | | #if LANG_CXX11 |
1075 | | void set_recipient_role(::std::string&& value); |
1076 | | #endif |
1077 | | void set_recipient_role(const char* value); |
1078 | | void set_recipient_role(const char* value, size_t size); |
1079 | | ::std::string* mutable_recipient_role(); |
1080 | | ::std::string* release_recipient_role(); |
1081 | | void set_allocated_recipient_role(::std::string* recipient_role); |
1082 | | |
1083 | | // optional bool revoke = 3 [default = false]; |
1084 | | bool has_revoke() const; |
1085 | | void clear_revoke(); |
1086 | | static const int kRevokeFieldNumber = 3; |
1087 | | bool revoke() const; |
1088 | | void set_revoke(bool value); |
1089 | | |
1090 | | // @@protoc_insertion_point(class_scope:yb.master.GrantRevokeRoleRequestPB) |
1091 | | private: |
1092 | | void set_has_granted_role(); |
1093 | | void clear_has_granted_role(); |
1094 | | void set_has_recipient_role(); |
1095 | | void clear_has_recipient_role(); |
1096 | | void set_has_revoke(); |
1097 | | void clear_has_revoke(); |
1098 | | |
1099 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
1100 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
1101 | | mutable int _cached_size_; |
1102 | | ::google::protobuf::internal::ArenaStringPtr granted_role_; |
1103 | | ::google::protobuf::internal::ArenaStringPtr recipient_role_; |
1104 | | bool revoke_; |
1105 | | friend struct ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::TableStruct; |
1106 | | friend void ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::InitDefaultsGrantRevokeRoleRequestPBImpl(); |
1107 | | }; |
1108 | | // ------------------------------------------------------------------- |
1109 | | |
1110 | | class GrantRevokeRoleResponsePB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.master.GrantRevokeRoleResponsePB) */ { |
1111 | | public: |
1112 | | GrantRevokeRoleResponsePB(); |
1113 | | virtual ~GrantRevokeRoleResponsePB(); |
1114 | | |
1115 | | GrantRevokeRoleResponsePB(const GrantRevokeRoleResponsePB& from); |
1116 | | |
1117 | 0 | inline GrantRevokeRoleResponsePB& operator=(const GrantRevokeRoleResponsePB& from) { |
1118 | 0 | CopyFrom(from); |
1119 | 0 | return *this; |
1120 | 0 | } |
1121 | | #if LANG_CXX11 |
1122 | | GrantRevokeRoleResponsePB(GrantRevokeRoleResponsePB&& from) noexcept |
1123 | 0 | : GrantRevokeRoleResponsePB() { |
1124 | 0 | *this = ::std::move(from); |
1125 | 0 | } |
1126 | | |
1127 | 0 | inline GrantRevokeRoleResponsePB& operator=(GrantRevokeRoleResponsePB&& from) noexcept { |
1128 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
1129 | 0 | if (this != &from) InternalSwap(&from); |
1130 | 0 | } else { |
1131 | 0 | CopyFrom(from); |
1132 | 0 | } |
1133 | 0 | return *this; |
1134 | 0 | } |
1135 | | #endif |
1136 | 0 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
1137 | 0 | return _internal_metadata_.unknown_fields(); |
1138 | 0 | } |
1139 | 0 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
1140 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
1141 | 0 | } |
1142 | | |
1143 | | static const ::google::protobuf::Descriptor* descriptor(); |
1144 | | static const GrantRevokeRoleResponsePB& default_instance(); |
1145 | | |
1146 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
1147 | 27.0k | static inline const GrantRevokeRoleResponsePB* internal_default_instance() { |
1148 | 27.0k | return reinterpret_cast<const GrantRevokeRoleResponsePB*>( |
1149 | 27.0k | &_GrantRevokeRoleResponsePB_default_instance_); |
1150 | 27.0k | } |
1151 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
1152 | | 7; |
1153 | | |
1154 | | void Swap(GrantRevokeRoleResponsePB* other); |
1155 | 0 | friend void swap(GrantRevokeRoleResponsePB& a, GrantRevokeRoleResponsePB& b) { |
1156 | 0 | a.Swap(&b); |
1157 | 0 | } |
1158 | | |
1159 | | // implements Message ---------------------------------------------- |
1160 | | |
1161 | 0 | inline GrantRevokeRoleResponsePB* New() const PROTOBUF_FINAL { return New(NULL); } |
1162 | | |
1163 | | GrantRevokeRoleResponsePB* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; |
1164 | | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
1165 | | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
1166 | | void CopyFrom(const GrantRevokeRoleResponsePB& from); |
1167 | | void MergeFrom(const GrantRevokeRoleResponsePB& from); |
1168 | | void Clear() PROTOBUF_FINAL; |
1169 | | bool IsInitialized() const PROTOBUF_FINAL; |
1170 | | |
1171 | | size_t ByteSizeLong() const PROTOBUF_FINAL; |
1172 | | bool MergePartialFromCodedStream( |
1173 | | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
1174 | | void SerializeWithCachedSizes( |
1175 | | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
1176 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
1177 | | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
1178 | 0 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
1179 | | private: |
1180 | | void SharedCtor(); |
1181 | | void SharedDtor(); |
1182 | | void SetCachedSize(int size) const PROTOBUF_FINAL; |
1183 | | void InternalSwap(GrantRevokeRoleResponsePB* other); |
1184 | | private: |
1185 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
1186 | 0 | return NULL; |
1187 | 0 | } |
1188 | 0 | inline void* MaybeArenaPtr() const { |
1189 | 0 | return NULL; |
1190 | 0 | } |
1191 | | public: |
1192 | | |
1193 | | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
1194 | | |
1195 | | // nested types ---------------------------------------------------- |
1196 | | |
1197 | | // accessors ------------------------------------------------------- |
1198 | | |
1199 | | // optional .yb.master.MasterErrorPB error = 1; |
1200 | | bool has_error() const; |
1201 | | void clear_error(); |
1202 | | static const int kErrorFieldNumber = 1; |
1203 | | const ::yb::master::MasterErrorPB& error() const; |
1204 | | ::yb::master::MasterErrorPB* release_error(); |
1205 | | ::yb::master::MasterErrorPB* mutable_error(); |
1206 | | void set_allocated_error(::yb::master::MasterErrorPB* error); |
1207 | | |
1208 | | // @@protoc_insertion_point(class_scope:yb.master.GrantRevokeRoleResponsePB) |
1209 | | private: |
1210 | | void set_has_error(); |
1211 | | void clear_has_error(); |
1212 | | |
1213 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
1214 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
1215 | | mutable int _cached_size_; |
1216 | | ::yb::master::MasterErrorPB* error_; |
1217 | | friend struct ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::TableStruct; |
1218 | | friend void ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::InitDefaultsGrantRevokeRoleResponsePBImpl(); |
1219 | | }; |
1220 | | // ------------------------------------------------------------------- |
1221 | | |
1222 | | class GrantRevokePermissionRequestPB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.master.GrantRevokePermissionRequestPB) */ { |
1223 | | public: |
1224 | | GrantRevokePermissionRequestPB(); |
1225 | | virtual ~GrantRevokePermissionRequestPB(); |
1226 | | |
1227 | | GrantRevokePermissionRequestPB(const GrantRevokePermissionRequestPB& from); |
1228 | | |
1229 | 0 | inline GrantRevokePermissionRequestPB& operator=(const GrantRevokePermissionRequestPB& from) { |
1230 | 0 | CopyFrom(from); |
1231 | 0 | return *this; |
1232 | 0 | } |
1233 | | #if LANG_CXX11 |
1234 | | GrantRevokePermissionRequestPB(GrantRevokePermissionRequestPB&& from) noexcept |
1235 | 0 | : GrantRevokePermissionRequestPB() { |
1236 | 0 | *this = ::std::move(from); |
1237 | 0 | } |
1238 | | |
1239 | 0 | inline GrantRevokePermissionRequestPB& operator=(GrantRevokePermissionRequestPB&& from) noexcept { |
1240 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
1241 | 0 | if (this != &from) InternalSwap(&from); |
1242 | 0 | } else { |
1243 | 0 | CopyFrom(from); |
1244 | 0 | } |
1245 | 0 | return *this; |
1246 | 0 | } |
1247 | | #endif |
1248 | 0 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
1249 | 0 | return _internal_metadata_.unknown_fields(); |
1250 | 0 | } |
1251 | 0 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
1252 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
1253 | 0 | } |
1254 | | |
1255 | | static const ::google::protobuf::Descriptor* descriptor(); |
1256 | | static const GrantRevokePermissionRequestPB& default_instance(); |
1257 | | |
1258 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
1259 | 29.7k | static inline const GrantRevokePermissionRequestPB* internal_default_instance() { |
1260 | 29.7k | return reinterpret_cast<const GrantRevokePermissionRequestPB*>( |
1261 | 29.7k | &_GrantRevokePermissionRequestPB_default_instance_); |
1262 | 29.7k | } |
1263 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
1264 | | 8; |
1265 | | |
1266 | | void Swap(GrantRevokePermissionRequestPB* other); |
1267 | 0 | friend void swap(GrantRevokePermissionRequestPB& a, GrantRevokePermissionRequestPB& b) { |
1268 | 0 | a.Swap(&b); |
1269 | 0 | } |
1270 | | |
1271 | | // implements Message ---------------------------------------------- |
1272 | | |
1273 | 0 | inline GrantRevokePermissionRequestPB* New() const PROTOBUF_FINAL { return New(NULL); } |
1274 | | |
1275 | | GrantRevokePermissionRequestPB* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; |
1276 | | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
1277 | | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
1278 | | void CopyFrom(const GrantRevokePermissionRequestPB& from); |
1279 | | void MergeFrom(const GrantRevokePermissionRequestPB& from); |
1280 | | void Clear() PROTOBUF_FINAL; |
1281 | | bool IsInitialized() const PROTOBUF_FINAL; |
1282 | | |
1283 | | size_t ByteSizeLong() const PROTOBUF_FINAL; |
1284 | | bool MergePartialFromCodedStream( |
1285 | | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
1286 | | void SerializeWithCachedSizes( |
1287 | | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
1288 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
1289 | | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
1290 | 0 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
1291 | | private: |
1292 | | void SharedCtor(); |
1293 | | void SharedDtor(); |
1294 | | void SetCachedSize(int size) const PROTOBUF_FINAL; |
1295 | | void InternalSwap(GrantRevokePermissionRequestPB* other); |
1296 | | private: |
1297 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
1298 | 0 | return NULL; |
1299 | 0 | } |
1300 | 0 | inline void* MaybeArenaPtr() const { |
1301 | 0 | return NULL; |
1302 | 0 | } |
1303 | | public: |
1304 | | |
1305 | | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
1306 | | |
1307 | | // nested types ---------------------------------------------------- |
1308 | | |
1309 | | // accessors ------------------------------------------------------- |
1310 | | |
1311 | | // optional string canonical_resource = 3; |
1312 | | bool has_canonical_resource() const; |
1313 | | void clear_canonical_resource(); |
1314 | | static const int kCanonicalResourceFieldNumber = 3; |
1315 | | const ::std::string& canonical_resource() const; |
1316 | | void set_canonical_resource(const ::std::string& value); |
1317 | | #if LANG_CXX11 |
1318 | | void set_canonical_resource(::std::string&& value); |
1319 | | #endif |
1320 | | void set_canonical_resource(const char* value); |
1321 | | void set_canonical_resource(const char* value, size_t size); |
1322 | | ::std::string* mutable_canonical_resource(); |
1323 | | ::std::string* release_canonical_resource(); |
1324 | | void set_allocated_canonical_resource(::std::string* canonical_resource); |
1325 | | |
1326 | | // optional string resource_name = 4; |
1327 | | bool has_resource_name() const; |
1328 | | void clear_resource_name(); |
1329 | | static const int kResourceNameFieldNumber = 4; |
1330 | | const ::std::string& resource_name() const; |
1331 | | void set_resource_name(const ::std::string& value); |
1332 | | #if LANG_CXX11 |
1333 | | void set_resource_name(::std::string&& value); |
1334 | | #endif |
1335 | | void set_resource_name(const char* value); |
1336 | | void set_resource_name(const char* value, size_t size); |
1337 | | ::std::string* mutable_resource_name(); |
1338 | | ::std::string* release_resource_name(); |
1339 | | void set_allocated_resource_name(::std::string* resource_name); |
1340 | | |
1341 | | // optional string role_name = 6; |
1342 | | bool has_role_name() const; |
1343 | | void clear_role_name(); |
1344 | | static const int kRoleNameFieldNumber = 6; |
1345 | | const ::std::string& role_name() const; |
1346 | | void set_role_name(const ::std::string& value); |
1347 | | #if LANG_CXX11 |
1348 | | void set_role_name(::std::string&& value); |
1349 | | #endif |
1350 | | void set_role_name(const char* value); |
1351 | | void set_role_name(const char* value, size_t size); |
1352 | | ::std::string* mutable_role_name(); |
1353 | | ::std::string* release_role_name(); |
1354 | | void set_allocated_role_name(::std::string* role_name); |
1355 | | |
1356 | | // optional .yb.master.NamespaceIdentifierPB namespace = 5; |
1357 | | bool has_namespace_() const; |
1358 | | void clear_namespace_(); |
1359 | | static const int kNamespaceFieldNumber = 5; |
1360 | | const ::yb::master::NamespaceIdentifierPB& namespace_() const; |
1361 | | ::yb::master::NamespaceIdentifierPB* release_namespace_(); |
1362 | | ::yb::master::NamespaceIdentifierPB* mutable_namespace_(); |
1363 | | void set_allocated_namespace_(::yb::master::NamespaceIdentifierPB* namespace_); |
1364 | | |
1365 | | // optional .yb.PermissionType permission = 1; |
1366 | | bool has_permission() const; |
1367 | | void clear_permission(); |
1368 | | static const int kPermissionFieldNumber = 1; |
1369 | | ::yb::PermissionType permission() const; |
1370 | | void set_permission(::yb::PermissionType value); |
1371 | | |
1372 | | // optional bool revoke = 7 [default = false]; |
1373 | | bool has_revoke() const; |
1374 | | void clear_revoke(); |
1375 | | static const int kRevokeFieldNumber = 7; |
1376 | | bool revoke() const; |
1377 | | void set_revoke(bool value); |
1378 | | |
1379 | | // optional .yb.ResourceType resource_type = 2; |
1380 | | bool has_resource_type() const; |
1381 | | void clear_resource_type(); |
1382 | | static const int kResourceTypeFieldNumber = 2; |
1383 | | ::yb::ResourceType resource_type() const; |
1384 | | void set_resource_type(::yb::ResourceType value); |
1385 | | |
1386 | | // @@protoc_insertion_point(class_scope:yb.master.GrantRevokePermissionRequestPB) |
1387 | | private: |
1388 | | void set_has_permission(); |
1389 | | void clear_has_permission(); |
1390 | | void set_has_resource_type(); |
1391 | | void clear_has_resource_type(); |
1392 | | void set_has_canonical_resource(); |
1393 | | void clear_has_canonical_resource(); |
1394 | | void set_has_resource_name(); |
1395 | | void clear_has_resource_name(); |
1396 | | void set_has_namespace_(); |
1397 | | void clear_has_namespace_(); |
1398 | | void set_has_role_name(); |
1399 | | void clear_has_role_name(); |
1400 | | void set_has_revoke(); |
1401 | | void clear_has_revoke(); |
1402 | | |
1403 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
1404 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
1405 | | mutable int _cached_size_; |
1406 | | ::google::protobuf::internal::ArenaStringPtr canonical_resource_; |
1407 | | ::google::protobuf::internal::ArenaStringPtr resource_name_; |
1408 | | ::google::protobuf::internal::ArenaStringPtr role_name_; |
1409 | | ::yb::master::NamespaceIdentifierPB* namespace__; |
1410 | | int permission_; |
1411 | | bool revoke_; |
1412 | | int resource_type_; |
1413 | | friend struct ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::TableStruct; |
1414 | | friend void ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::InitDefaultsGrantRevokePermissionRequestPBImpl(); |
1415 | | }; |
1416 | | // ------------------------------------------------------------------- |
1417 | | |
1418 | | class GrantRevokePermissionResponsePB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.master.GrantRevokePermissionResponsePB) */ { |
1419 | | public: |
1420 | | GrantRevokePermissionResponsePB(); |
1421 | | virtual ~GrantRevokePermissionResponsePB(); |
1422 | | |
1423 | | GrantRevokePermissionResponsePB(const GrantRevokePermissionResponsePB& from); |
1424 | | |
1425 | 0 | inline GrantRevokePermissionResponsePB& operator=(const GrantRevokePermissionResponsePB& from) { |
1426 | 0 | CopyFrom(from); |
1427 | 0 | return *this; |
1428 | 0 | } |
1429 | | #if LANG_CXX11 |
1430 | | GrantRevokePermissionResponsePB(GrantRevokePermissionResponsePB&& from) noexcept |
1431 | 0 | : GrantRevokePermissionResponsePB() { |
1432 | 0 | *this = ::std::move(from); |
1433 | 0 | } |
1434 | | |
1435 | 0 | inline GrantRevokePermissionResponsePB& operator=(GrantRevokePermissionResponsePB&& from) noexcept { |
1436 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
1437 | 0 | if (this != &from) InternalSwap(&from); |
1438 | 0 | } else { |
1439 | 0 | CopyFrom(from); |
1440 | 0 | } |
1441 | 0 | return *this; |
1442 | 0 | } |
1443 | | #endif |
1444 | 0 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
1445 | 0 | return _internal_metadata_.unknown_fields(); |
1446 | 0 | } |
1447 | 0 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
1448 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
1449 | 0 | } |
1450 | | |
1451 | | static const ::google::protobuf::Descriptor* descriptor(); |
1452 | | static const GrantRevokePermissionResponsePB& default_instance(); |
1453 | | |
1454 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
1455 | 29.7k | static inline const GrantRevokePermissionResponsePB* internal_default_instance() { |
1456 | 29.7k | return reinterpret_cast<const GrantRevokePermissionResponsePB*>( |
1457 | 29.7k | &_GrantRevokePermissionResponsePB_default_instance_); |
1458 | 29.7k | } |
1459 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
1460 | | 9; |
1461 | | |
1462 | | void Swap(GrantRevokePermissionResponsePB* other); |
1463 | 0 | friend void swap(GrantRevokePermissionResponsePB& a, GrantRevokePermissionResponsePB& b) { |
1464 | 0 | a.Swap(&b); |
1465 | 0 | } |
1466 | | |
1467 | | // implements Message ---------------------------------------------- |
1468 | | |
1469 | 0 | inline GrantRevokePermissionResponsePB* New() const PROTOBUF_FINAL { return New(NULL); } |
1470 | | |
1471 | | GrantRevokePermissionResponsePB* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; |
1472 | | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
1473 | | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
1474 | | void CopyFrom(const GrantRevokePermissionResponsePB& from); |
1475 | | void MergeFrom(const GrantRevokePermissionResponsePB& from); |
1476 | | void Clear() PROTOBUF_FINAL; |
1477 | | bool IsInitialized() const PROTOBUF_FINAL; |
1478 | | |
1479 | | size_t ByteSizeLong() const PROTOBUF_FINAL; |
1480 | | bool MergePartialFromCodedStream( |
1481 | | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
1482 | | void SerializeWithCachedSizes( |
1483 | | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
1484 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
1485 | | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
1486 | 0 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
1487 | | private: |
1488 | | void SharedCtor(); |
1489 | | void SharedDtor(); |
1490 | | void SetCachedSize(int size) const PROTOBUF_FINAL; |
1491 | | void InternalSwap(GrantRevokePermissionResponsePB* other); |
1492 | | private: |
1493 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
1494 | 0 | return NULL; |
1495 | 0 | } |
1496 | 0 | inline void* MaybeArenaPtr() const { |
1497 | 0 | return NULL; |
1498 | 0 | } |
1499 | | public: |
1500 | | |
1501 | | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
1502 | | |
1503 | | // nested types ---------------------------------------------------- |
1504 | | |
1505 | | // accessors ------------------------------------------------------- |
1506 | | |
1507 | | // optional .yb.master.MasterErrorPB error = 1; |
1508 | | bool has_error() const; |
1509 | | void clear_error(); |
1510 | | static const int kErrorFieldNumber = 1; |
1511 | | const ::yb::master::MasterErrorPB& error() const; |
1512 | | ::yb::master::MasterErrorPB* release_error(); |
1513 | | ::yb::master::MasterErrorPB* mutable_error(); |
1514 | | void set_allocated_error(::yb::master::MasterErrorPB* error); |
1515 | | |
1516 | | // @@protoc_insertion_point(class_scope:yb.master.GrantRevokePermissionResponsePB) |
1517 | | private: |
1518 | | void set_has_error(); |
1519 | | void clear_has_error(); |
1520 | | |
1521 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
1522 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
1523 | | mutable int _cached_size_; |
1524 | | ::yb::master::MasterErrorPB* error_; |
1525 | | friend struct ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::TableStruct; |
1526 | | friend void ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::InitDefaultsGrantRevokePermissionResponsePBImpl(); |
1527 | | }; |
1528 | | // ------------------------------------------------------------------- |
1529 | | |
1530 | | class GetPermissionsRequestPB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.master.GetPermissionsRequestPB) */ { |
1531 | | public: |
1532 | | GetPermissionsRequestPB(); |
1533 | | virtual ~GetPermissionsRequestPB(); |
1534 | | |
1535 | | GetPermissionsRequestPB(const GetPermissionsRequestPB& from); |
1536 | | |
1537 | 0 | inline GetPermissionsRequestPB& operator=(const GetPermissionsRequestPB& from) { |
1538 | 0 | CopyFrom(from); |
1539 | 0 | return *this; |
1540 | 0 | } |
1541 | | #if LANG_CXX11 |
1542 | | GetPermissionsRequestPB(GetPermissionsRequestPB&& from) noexcept |
1543 | 0 | : GetPermissionsRequestPB() { |
1544 | 0 | *this = ::std::move(from); |
1545 | 0 | } |
1546 | | |
1547 | 0 | inline GetPermissionsRequestPB& operator=(GetPermissionsRequestPB&& from) noexcept { |
1548 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
1549 | 0 | if (this != &from) InternalSwap(&from); |
1550 | 0 | } else { |
1551 | 0 | CopyFrom(from); |
1552 | 0 | } |
1553 | 0 | return *this; |
1554 | 0 | } |
1555 | | #endif |
1556 | 0 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
1557 | 0 | return _internal_metadata_.unknown_fields(); |
1558 | 0 | } |
1559 | 0 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
1560 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
1561 | 0 | } |
1562 | | |
1563 | | static const ::google::protobuf::Descriptor* descriptor(); |
1564 | | static const GetPermissionsRequestPB& default_instance(); |
1565 | | |
1566 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
1567 | 260k | static inline const GetPermissionsRequestPB* internal_default_instance() { |
1568 | 260k | return reinterpret_cast<const GetPermissionsRequestPB*>( |
1569 | 260k | &_GetPermissionsRequestPB_default_instance_); |
1570 | 260k | } |
1571 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
1572 | | 10; |
1573 | | |
1574 | | void Swap(GetPermissionsRequestPB* other); |
1575 | 0 | friend void swap(GetPermissionsRequestPB& a, GetPermissionsRequestPB& b) { |
1576 | 0 | a.Swap(&b); |
1577 | 0 | } |
1578 | | |
1579 | | // implements Message ---------------------------------------------- |
1580 | | |
1581 | 0 | inline GetPermissionsRequestPB* New() const PROTOBUF_FINAL { return New(NULL); } |
1582 | | |
1583 | | GetPermissionsRequestPB* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; |
1584 | | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
1585 | | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
1586 | | void CopyFrom(const GetPermissionsRequestPB& from); |
1587 | | void MergeFrom(const GetPermissionsRequestPB& from); |
1588 | | void Clear() PROTOBUF_FINAL; |
1589 | | bool IsInitialized() const PROTOBUF_FINAL; |
1590 | | |
1591 | | size_t ByteSizeLong() const PROTOBUF_FINAL; |
1592 | | bool MergePartialFromCodedStream( |
1593 | | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
1594 | | void SerializeWithCachedSizes( |
1595 | | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
1596 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
1597 | | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
1598 | 0 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
1599 | | private: |
1600 | | void SharedCtor(); |
1601 | | void SharedDtor(); |
1602 | | void SetCachedSize(int size) const PROTOBUF_FINAL; |
1603 | | void InternalSwap(GetPermissionsRequestPB* other); |
1604 | | private: |
1605 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
1606 | 0 | return NULL; |
1607 | 0 | } |
1608 | 0 | inline void* MaybeArenaPtr() const { |
1609 | 0 | return NULL; |
1610 | 0 | } |
1611 | | public: |
1612 | | |
1613 | | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
1614 | | |
1615 | | // nested types ---------------------------------------------------- |
1616 | | |
1617 | | // accessors ------------------------------------------------------- |
1618 | | |
1619 | | // optional uint64 if_version_greater_than = 1; |
1620 | | bool has_if_version_greater_than() const; |
1621 | | void clear_if_version_greater_than(); |
1622 | | static const int kIfVersionGreaterThanFieldNumber = 1; |
1623 | | ::google::protobuf::uint64 if_version_greater_than() const; |
1624 | | void set_if_version_greater_than(::google::protobuf::uint64 value); |
1625 | | |
1626 | | // @@protoc_insertion_point(class_scope:yb.master.GetPermissionsRequestPB) |
1627 | | private: |
1628 | | void set_has_if_version_greater_than(); |
1629 | | void clear_has_if_version_greater_than(); |
1630 | | |
1631 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
1632 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
1633 | | mutable int _cached_size_; |
1634 | | ::google::protobuf::uint64 if_version_greater_than_; |
1635 | | friend struct ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::TableStruct; |
1636 | | friend void ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::InitDefaultsGetPermissionsRequestPBImpl(); |
1637 | | }; |
1638 | | // ------------------------------------------------------------------- |
1639 | | |
1640 | | class ResourcePermissionInfoPB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.master.ResourcePermissionInfoPB) */ { |
1641 | | public: |
1642 | | ResourcePermissionInfoPB(); |
1643 | | virtual ~ResourcePermissionInfoPB(); |
1644 | | |
1645 | | ResourcePermissionInfoPB(const ResourcePermissionInfoPB& from); |
1646 | | |
1647 | 0 | inline ResourcePermissionInfoPB& operator=(const ResourcePermissionInfoPB& from) { |
1648 | 0 | CopyFrom(from); |
1649 | 0 | return *this; |
1650 | 0 | } |
1651 | | #if LANG_CXX11 |
1652 | | ResourcePermissionInfoPB(ResourcePermissionInfoPB&& from) noexcept |
1653 | 0 | : ResourcePermissionInfoPB() { |
1654 | 0 | *this = ::std::move(from); |
1655 | 0 | } |
1656 | | |
1657 | 0 | inline ResourcePermissionInfoPB& operator=(ResourcePermissionInfoPB&& from) noexcept { |
1658 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
1659 | 0 | if (this != &from) InternalSwap(&from); |
1660 | 0 | } else { |
1661 | 0 | CopyFrom(from); |
1662 | 0 | } |
1663 | 0 | return *this; |
1664 | 0 | } |
1665 | | #endif |
1666 | 0 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
1667 | 0 | return _internal_metadata_.unknown_fields(); |
1668 | 0 | } |
1669 | 0 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
1670 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
1671 | 0 | } |
1672 | | |
1673 | | static const ::google::protobuf::Descriptor* descriptor(); |
1674 | | static const ResourcePermissionInfoPB& default_instance(); |
1675 | | |
1676 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
1677 | 84.4k | static inline const ResourcePermissionInfoPB* internal_default_instance() { |
1678 | 84.4k | return reinterpret_cast<const ResourcePermissionInfoPB*>( |
1679 | 84.4k | &_ResourcePermissionInfoPB_default_instance_); |
1680 | 84.4k | } |
1681 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
1682 | | 11; |
1683 | | |
1684 | | void Swap(ResourcePermissionInfoPB* other); |
1685 | 0 | friend void swap(ResourcePermissionInfoPB& a, ResourcePermissionInfoPB& b) { |
1686 | 0 | a.Swap(&b); |
1687 | 0 | } |
1688 | | |
1689 | | // implements Message ---------------------------------------------- |
1690 | | |
1691 | 0 | inline ResourcePermissionInfoPB* New() const PROTOBUF_FINAL { return New(NULL); } |
1692 | | |
1693 | | ResourcePermissionInfoPB* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; |
1694 | | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
1695 | | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
1696 | | void CopyFrom(const ResourcePermissionInfoPB& from); |
1697 | | void MergeFrom(const ResourcePermissionInfoPB& from); |
1698 | | void Clear() PROTOBUF_FINAL; |
1699 | | bool IsInitialized() const PROTOBUF_FINAL; |
1700 | | |
1701 | | size_t ByteSizeLong() const PROTOBUF_FINAL; |
1702 | | bool MergePartialFromCodedStream( |
1703 | | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
1704 | | void SerializeWithCachedSizes( |
1705 | | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
1706 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
1707 | | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
1708 | 20.8k | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
1709 | | private: |
1710 | | void SharedCtor(); |
1711 | | void SharedDtor(); |
1712 | | void SetCachedSize(int size) const PROTOBUF_FINAL; |
1713 | | void InternalSwap(ResourcePermissionInfoPB* other); |
1714 | | private: |
1715 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
1716 | 0 | return NULL; |
1717 | 0 | } |
1718 | 0 | inline void* MaybeArenaPtr() const { |
1719 | 0 | return NULL; |
1720 | 0 | } |
1721 | | public: |
1722 | | |
1723 | | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
1724 | | |
1725 | | // nested types ---------------------------------------------------- |
1726 | | |
1727 | | // accessors ------------------------------------------------------- |
1728 | | |
1729 | | // optional string canonical_resource = 1; |
1730 | | bool has_canonical_resource() const; |
1731 | | void clear_canonical_resource(); |
1732 | | static const int kCanonicalResourceFieldNumber = 1; |
1733 | | const ::std::string& canonical_resource() const; |
1734 | | void set_canonical_resource(const ::std::string& value); |
1735 | | #if LANG_CXX11 |
1736 | | void set_canonical_resource(::std::string&& value); |
1737 | | #endif |
1738 | | void set_canonical_resource(const char* value); |
1739 | | void set_canonical_resource(const char* value, size_t size); |
1740 | | ::std::string* mutable_canonical_resource(); |
1741 | | ::std::string* release_canonical_resource(); |
1742 | | void set_allocated_canonical_resource(::std::string* canonical_resource); |
1743 | | |
1744 | | // optional uint32 permissions = 2; |
1745 | | bool has_permissions() const; |
1746 | | void clear_permissions(); |
1747 | | static const int kPermissionsFieldNumber = 2; |
1748 | | ::google::protobuf::uint32 permissions() const; |
1749 | | void set_permissions(::google::protobuf::uint32 value); |
1750 | | |
1751 | | // @@protoc_insertion_point(class_scope:yb.master.ResourcePermissionInfoPB) |
1752 | | private: |
1753 | | void set_has_canonical_resource(); |
1754 | | void clear_has_canonical_resource(); |
1755 | | void set_has_permissions(); |
1756 | | void clear_has_permissions(); |
1757 | | |
1758 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
1759 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
1760 | | mutable int _cached_size_; |
1761 | | ::google::protobuf::internal::ArenaStringPtr canonical_resource_; |
1762 | | ::google::protobuf::uint32 permissions_; |
1763 | | friend struct ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::TableStruct; |
1764 | | friend void ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::InitDefaultsResourcePermissionInfoPBImpl(); |
1765 | | }; |
1766 | | // ------------------------------------------------------------------- |
1767 | | |
1768 | | class RolePermissionInfoPB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.master.RolePermissionInfoPB) */ { |
1769 | | public: |
1770 | | RolePermissionInfoPB(); |
1771 | | virtual ~RolePermissionInfoPB(); |
1772 | | |
1773 | | RolePermissionInfoPB(const RolePermissionInfoPB& from); |
1774 | | |
1775 | 0 | inline RolePermissionInfoPB& operator=(const RolePermissionInfoPB& from) { |
1776 | 0 | CopyFrom(from); |
1777 | 0 | return *this; |
1778 | 0 | } |
1779 | | #if LANG_CXX11 |
1780 | | RolePermissionInfoPB(RolePermissionInfoPB&& from) noexcept |
1781 | 0 | : RolePermissionInfoPB() { |
1782 | 0 | *this = ::std::move(from); |
1783 | 0 | } |
1784 | | |
1785 | 0 | inline RolePermissionInfoPB& operator=(RolePermissionInfoPB&& from) noexcept { |
1786 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
1787 | 0 | if (this != &from) InternalSwap(&from); |
1788 | 0 | } else { |
1789 | 0 | CopyFrom(from); |
1790 | 0 | } |
1791 | 0 | return *this; |
1792 | 0 | } |
1793 | | #endif |
1794 | 0 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
1795 | 0 | return _internal_metadata_.unknown_fields(); |
1796 | 0 | } |
1797 | 0 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
1798 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
1799 | 0 | } |
1800 | | |
1801 | | static const ::google::protobuf::Descriptor* descriptor(); |
1802 | | static const RolePermissionInfoPB& default_instance(); |
1803 | | |
1804 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
1805 | 80.7k | static inline const RolePermissionInfoPB* internal_default_instance() { |
1806 | 80.7k | return reinterpret_cast<const RolePermissionInfoPB*>( |
1807 | 80.7k | &_RolePermissionInfoPB_default_instance_); |
1808 | 80.7k | } |
1809 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
1810 | | 12; |
1811 | | |
1812 | | void Swap(RolePermissionInfoPB* other); |
1813 | 0 | friend void swap(RolePermissionInfoPB& a, RolePermissionInfoPB& b) { |
1814 | 0 | a.Swap(&b); |
1815 | 0 | } |
1816 | | |
1817 | | // implements Message ---------------------------------------------- |
1818 | | |
1819 | 0 | inline RolePermissionInfoPB* New() const PROTOBUF_FINAL { return New(NULL); } |
1820 | | |
1821 | | RolePermissionInfoPB* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; |
1822 | | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
1823 | | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
1824 | | void CopyFrom(const RolePermissionInfoPB& from); |
1825 | | void MergeFrom(const RolePermissionInfoPB& from); |
1826 | | void Clear() PROTOBUF_FINAL; |
1827 | | bool IsInitialized() const PROTOBUF_FINAL; |
1828 | | |
1829 | | size_t ByteSizeLong() const PROTOBUF_FINAL; |
1830 | | bool MergePartialFromCodedStream( |
1831 | | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
1832 | | void SerializeWithCachedSizes( |
1833 | | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
1834 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
1835 | | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
1836 | 17.6k | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
1837 | | private: |
1838 | | void SharedCtor(); |
1839 | | void SharedDtor(); |
1840 | | void SetCachedSize(int size) const PROTOBUF_FINAL; |
1841 | | void InternalSwap(RolePermissionInfoPB* other); |
1842 | | private: |
1843 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
1844 | 0 | return NULL; |
1845 | 0 | } |
1846 | 0 | inline void* MaybeArenaPtr() const { |
1847 | 0 | return NULL; |
1848 | 0 | } |
1849 | | public: |
1850 | | |
1851 | | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
1852 | | |
1853 | | // nested types ---------------------------------------------------- |
1854 | | |
1855 | | // accessors ------------------------------------------------------- |
1856 | | |
1857 | | // repeated .yb.master.ResourcePermissionInfoPB resource_permissions = 4; |
1858 | | int resource_permissions_size() const; |
1859 | | void clear_resource_permissions(); |
1860 | | static const int kResourcePermissionsFieldNumber = 4; |
1861 | | const ::yb::master::ResourcePermissionInfoPB& resource_permissions(int index) const; |
1862 | | ::yb::master::ResourcePermissionInfoPB* mutable_resource_permissions(int index); |
1863 | | ::yb::master::ResourcePermissionInfoPB* add_resource_permissions(); |
1864 | | ::google::protobuf::RepeatedPtrField< ::yb::master::ResourcePermissionInfoPB >* |
1865 | | mutable_resource_permissions(); |
1866 | | const ::google::protobuf::RepeatedPtrField< ::yb::master::ResourcePermissionInfoPB >& |
1867 | | resource_permissions() const; |
1868 | | |
1869 | | // optional string role = 1; |
1870 | | bool has_role() const; |
1871 | | void clear_role(); |
1872 | | static const int kRoleFieldNumber = 1; |
1873 | | const ::std::string& role() const; |
1874 | | void set_role(const ::std::string& value); |
1875 | | #if LANG_CXX11 |
1876 | | void set_role(::std::string&& value); |
1877 | | #endif |
1878 | | void set_role(const char* value); |
1879 | | void set_role(const char* value, size_t size); |
1880 | | ::std::string* mutable_role(); |
1881 | | ::std::string* release_role(); |
1882 | | void set_allocated_role(::std::string* role); |
1883 | | |
1884 | | // optional string salted_hash = 5; |
1885 | | bool has_salted_hash() const; |
1886 | | void clear_salted_hash(); |
1887 | | static const int kSaltedHashFieldNumber = 5; |
1888 | | const ::std::string& salted_hash() const; |
1889 | | void set_salted_hash(const ::std::string& value); |
1890 | | #if LANG_CXX11 |
1891 | | void set_salted_hash(::std::string&& value); |
1892 | | #endif |
1893 | | void set_salted_hash(const char* value); |
1894 | | void set_salted_hash(const char* value, size_t size); |
1895 | | ::std::string* mutable_salted_hash(); |
1896 | | ::std::string* release_salted_hash(); |
1897 | | void set_allocated_salted_hash(::std::string* salted_hash); |
1898 | | |
1899 | | // optional uint32 all_keyspaces_permissions = 2; |
1900 | | bool has_all_keyspaces_permissions() const; |
1901 | | void clear_all_keyspaces_permissions(); |
1902 | | static const int kAllKeyspacesPermissionsFieldNumber = 2; |
1903 | | ::google::protobuf::uint32 all_keyspaces_permissions() const; |
1904 | | void set_all_keyspaces_permissions(::google::protobuf::uint32 value); |
1905 | | |
1906 | | // optional uint32 all_roles_permissions = 3; |
1907 | | bool has_all_roles_permissions() const; |
1908 | | void clear_all_roles_permissions(); |
1909 | | static const int kAllRolesPermissionsFieldNumber = 3; |
1910 | | ::google::protobuf::uint32 all_roles_permissions() const; |
1911 | | void set_all_roles_permissions(::google::protobuf::uint32 value); |
1912 | | |
1913 | | // optional bool can_login = 6; |
1914 | | bool has_can_login() const; |
1915 | | void clear_can_login(); |
1916 | | static const int kCanLoginFieldNumber = 6; |
1917 | | bool can_login() const; |
1918 | | void set_can_login(bool value); |
1919 | | |
1920 | | // @@protoc_insertion_point(class_scope:yb.master.RolePermissionInfoPB) |
1921 | | private: |
1922 | | void set_has_role(); |
1923 | | void clear_has_role(); |
1924 | | void set_has_all_keyspaces_permissions(); |
1925 | | void clear_has_all_keyspaces_permissions(); |
1926 | | void set_has_all_roles_permissions(); |
1927 | | void clear_has_all_roles_permissions(); |
1928 | | void set_has_salted_hash(); |
1929 | | void clear_has_salted_hash(); |
1930 | | void set_has_can_login(); |
1931 | | void clear_has_can_login(); |
1932 | | |
1933 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
1934 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
1935 | | mutable int _cached_size_; |
1936 | | ::google::protobuf::RepeatedPtrField< ::yb::master::ResourcePermissionInfoPB > resource_permissions_; |
1937 | | ::google::protobuf::internal::ArenaStringPtr role_; |
1938 | | ::google::protobuf::internal::ArenaStringPtr salted_hash_; |
1939 | | ::google::protobuf::uint32 all_keyspaces_permissions_; |
1940 | | ::google::protobuf::uint32 all_roles_permissions_; |
1941 | | bool can_login_; |
1942 | | friend struct ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::TableStruct; |
1943 | | friend void ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::InitDefaultsRolePermissionInfoPBImpl(); |
1944 | | }; |
1945 | | // ------------------------------------------------------------------- |
1946 | | |
1947 | | class GetPermissionsResponsePB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.master.GetPermissionsResponsePB) */ { |
1948 | | public: |
1949 | | GetPermissionsResponsePB(); |
1950 | | virtual ~GetPermissionsResponsePB(); |
1951 | | |
1952 | | GetPermissionsResponsePB(const GetPermissionsResponsePB& from); |
1953 | | |
1954 | 0 | inline GetPermissionsResponsePB& operator=(const GetPermissionsResponsePB& from) { |
1955 | 0 | CopyFrom(from); |
1956 | 0 | return *this; |
1957 | 0 | } |
1958 | | #if LANG_CXX11 |
1959 | | GetPermissionsResponsePB(GetPermissionsResponsePB&& from) noexcept |
1960 | 0 | : GetPermissionsResponsePB() { |
1961 | 0 | *this = ::std::move(from); |
1962 | 0 | } |
1963 | | |
1964 | 0 | inline GetPermissionsResponsePB& operator=(GetPermissionsResponsePB&& from) noexcept { |
1965 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
1966 | 0 | if (this != &from) InternalSwap(&from); |
1967 | 0 | } else { |
1968 | 0 | CopyFrom(from); |
1969 | 0 | } |
1970 | 0 | return *this; |
1971 | 0 | } |
1972 | | #endif |
1973 | 0 | inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const { |
1974 | 0 | return _internal_metadata_.unknown_fields(); |
1975 | 0 | } |
1976 | 0 | inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() { |
1977 | 0 | return _internal_metadata_.mutable_unknown_fields(); |
1978 | 0 | } |
1979 | | |
1980 | | static const ::google::protobuf::Descriptor* descriptor(); |
1981 | | static const GetPermissionsResponsePB& default_instance(); |
1982 | | |
1983 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
1984 | 514k | static inline const GetPermissionsResponsePB* internal_default_instance() { |
1985 | 514k | return reinterpret_cast<const GetPermissionsResponsePB*>( |
1986 | 514k | &_GetPermissionsResponsePB_default_instance_); |
1987 | 514k | } |
1988 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
1989 | | 13; |
1990 | | |
1991 | | void Swap(GetPermissionsResponsePB* other); |
1992 | 0 | friend void swap(GetPermissionsResponsePB& a, GetPermissionsResponsePB& b) { |
1993 | 0 | a.Swap(&b); |
1994 | 0 | } |
1995 | | |
1996 | | // implements Message ---------------------------------------------- |
1997 | | |
1998 | 0 | inline GetPermissionsResponsePB* New() const PROTOBUF_FINAL { return New(NULL); } |
1999 | | |
2000 | | GetPermissionsResponsePB* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; |
2001 | | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
2002 | | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
2003 | | void CopyFrom(const GetPermissionsResponsePB& from); |
2004 | | void MergeFrom(const GetPermissionsResponsePB& from); |
2005 | | void Clear() PROTOBUF_FINAL; |
2006 | | bool IsInitialized() const PROTOBUF_FINAL; |
2007 | | |
2008 | | size_t ByteSizeLong() const PROTOBUF_FINAL; |
2009 | | bool MergePartialFromCodedStream( |
2010 | | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
2011 | | void SerializeWithCachedSizes( |
2012 | | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
2013 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
2014 | | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
2015 | 0 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
2016 | | private: |
2017 | | void SharedCtor(); |
2018 | | void SharedDtor(); |
2019 | | void SetCachedSize(int size) const PROTOBUF_FINAL; |
2020 | | void InternalSwap(GetPermissionsResponsePB* other); |
2021 | | private: |
2022 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
2023 | 0 | return NULL; |
2024 | 0 | } |
2025 | 0 | inline void* MaybeArenaPtr() const { |
2026 | 0 | return NULL; |
2027 | 0 | } |
2028 | | public: |
2029 | | |
2030 | | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
2031 | | |
2032 | | // nested types ---------------------------------------------------- |
2033 | | |
2034 | | // accessors ------------------------------------------------------- |
2035 | | |
2036 | | // repeated .yb.master.RolePermissionInfoPB role_permissions = 3; |
2037 | | int role_permissions_size() const; |
2038 | | void clear_role_permissions(); |
2039 | | static const int kRolePermissionsFieldNumber = 3; |
2040 | | const ::yb::master::RolePermissionInfoPB& role_permissions(int index) const; |
2041 | | ::yb::master::RolePermissionInfoPB* mutable_role_permissions(int index); |
2042 | | ::yb::master::RolePermissionInfoPB* add_role_permissions(); |
2043 | | ::google::protobuf::RepeatedPtrField< ::yb::master::RolePermissionInfoPB >* |
2044 | | mutable_role_permissions(); |
2045 | | const ::google::protobuf::RepeatedPtrField< ::yb::master::RolePermissionInfoPB >& |
2046 | | role_permissions() const; |
2047 | | |
2048 | | // optional .yb.master.MasterErrorPB error = 2; |
2049 | | bool has_error() const; |
2050 | | void clear_error(); |
2051 | | static const int kErrorFieldNumber = 2; |
2052 | | const ::yb::master::MasterErrorPB& error() const; |
2053 | | ::yb::master::MasterErrorPB* release_error(); |
2054 | | ::yb::master::MasterErrorPB* mutable_error(); |
2055 | | void set_allocated_error(::yb::master::MasterErrorPB* error); |
2056 | | |
2057 | | // optional uint64 version = 1; |
2058 | | bool has_version() const; |
2059 | | void clear_version(); |
2060 | | static const int kVersionFieldNumber = 1; |
2061 | | ::google::protobuf::uint64 version() const; |
2062 | | void set_version(::google::protobuf::uint64 value); |
2063 | | |
2064 | | // @@protoc_insertion_point(class_scope:yb.master.GetPermissionsResponsePB) |
2065 | | private: |
2066 | | void set_has_version(); |
2067 | | void clear_has_version(); |
2068 | | void set_has_error(); |
2069 | | void clear_has_error(); |
2070 | | |
2071 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
2072 | | ::google::protobuf::internal::HasBits<1> _has_bits_; |
2073 | | mutable int _cached_size_; |
2074 | | ::google::protobuf::RepeatedPtrField< ::yb::master::RolePermissionInfoPB > role_permissions_; |
2075 | | ::yb::master::MasterErrorPB* error_; |
2076 | | ::google::protobuf::uint64 version_; |
2077 | | friend struct ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::TableStruct; |
2078 | | friend void ::protobuf_yb_2fmaster_2fmaster_5fdcl_2eproto::InitDefaultsGetPermissionsResponsePBImpl(); |
2079 | | }; |
2080 | | // =================================================================== |
2081 | | |
2082 | | |
2083 | | // =================================================================== |
2084 | | |
2085 | | #ifdef __GNUC__ |
2086 | | #pragma GCC diagnostic push |
2087 | | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
2088 | | #endif // __GNUC__ |
2089 | | // CreateRoleRequestPB |
2090 | | |
2091 | | // optional string name = 1; |
2092 | 1.51k | inline bool CreateRoleRequestPB::has_name() const { |
2093 | 1.51k | return (_has_bits_[0] & 0x00000001u) != 0; |
2094 | 1.51k | } |
2095 | 1.51k | inline void CreateRoleRequestPB::set_has_name() { |
2096 | 1.51k | _has_bits_[0] |= 0x00000001u; |
2097 | 1.51k | } |
2098 | 0 | inline void CreateRoleRequestPB::clear_has_name() { |
2099 | 0 | _has_bits_[0] &= ~0x00000001u; |
2100 | 0 | } |
2101 | 0 | inline void CreateRoleRequestPB::clear_name() { |
2102 | 0 | name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2103 | 0 | clear_has_name(); |
2104 | 0 | } |
2105 | 9.05k | inline const ::std::string& CreateRoleRequestPB::name() const { |
2106 | | // @@protoc_insertion_point(field_get:yb.master.CreateRoleRequestPB.name) |
2107 | 9.05k | return name_.GetNoArena(); |
2108 | 9.05k | } |
2109 | 757 | inline void CreateRoleRequestPB::set_name(const ::std::string& value) { |
2110 | 757 | set_has_name(); |
2111 | 757 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
2112 | | // @@protoc_insertion_point(field_set:yb.master.CreateRoleRequestPB.name) |
2113 | 757 | } |
2114 | | #if LANG_CXX11 |
2115 | 0 | inline void CreateRoleRequestPB::set_name(::std::string&& value) { |
2116 | 0 | set_has_name(); |
2117 | 0 | name_.SetNoArena( |
2118 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
2119 | 0 | // @@protoc_insertion_point(field_set_rvalue:yb.master.CreateRoleRequestPB.name) |
2120 | 0 | } |
2121 | | #endif |
2122 | 0 | inline void CreateRoleRequestPB::set_name(const char* value) { |
2123 | 0 | GOOGLE_DCHECK(value != NULL); |
2124 | 0 | set_has_name(); |
2125 | 0 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
2126 | 0 | // @@protoc_insertion_point(field_set_char:yb.master.CreateRoleRequestPB.name) |
2127 | 0 | } |
2128 | 0 | inline void CreateRoleRequestPB::set_name(const char* value, size_t size) { |
2129 | 0 | set_has_name(); |
2130 | 0 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
2131 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
2132 | 0 | // @@protoc_insertion_point(field_set_pointer:yb.master.CreateRoleRequestPB.name) |
2133 | 0 | } |
2134 | 757 | inline ::std::string* CreateRoleRequestPB::mutable_name() { |
2135 | 757 | set_has_name(); |
2136 | | // @@protoc_insertion_point(field_mutable:yb.master.CreateRoleRequestPB.name) |
2137 | 757 | return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2138 | 757 | } |
2139 | 0 | inline ::std::string* CreateRoleRequestPB::release_name() { |
2140 | 0 | // @@protoc_insertion_point(field_release:yb.master.CreateRoleRequestPB.name) |
2141 | 0 | clear_has_name(); |
2142 | 0 | return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2143 | 0 | } |
2144 | 0 | inline void CreateRoleRequestPB::set_allocated_name(::std::string* name) { |
2145 | 0 | if (name != NULL) { |
2146 | 0 | set_has_name(); |
2147 | 0 | } else { |
2148 | 0 | clear_has_name(); |
2149 | 0 | } |
2150 | 0 | name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); |
2151 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.master.CreateRoleRequestPB.name) |
2152 | 0 | } |
2153 | | |
2154 | | // optional string salted_hash = 2; |
2155 | 1.51k | inline bool CreateRoleRequestPB::has_salted_hash() const { |
2156 | 1.51k | return (_has_bits_[0] & 0x00000002u) != 0; |
2157 | 1.51k | } |
2158 | 1.51k | inline void CreateRoleRequestPB::set_has_salted_hash() { |
2159 | 1.51k | _has_bits_[0] |= 0x00000002u; |
2160 | 1.51k | } |
2161 | 0 | inline void CreateRoleRequestPB::clear_has_salted_hash() { |
2162 | 0 | _has_bits_[0] &= ~0x00000002u; |
2163 | 0 | } |
2164 | 0 | inline void CreateRoleRequestPB::clear_salted_hash() { |
2165 | 0 | salted_hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2166 | 0 | clear_has_salted_hash(); |
2167 | 0 | } |
2168 | 6.05k | inline const ::std::string& CreateRoleRequestPB::salted_hash() const { |
2169 | | // @@protoc_insertion_point(field_get:yb.master.CreateRoleRequestPB.salted_hash) |
2170 | 6.05k | return salted_hash_.GetNoArena(); |
2171 | 6.05k | } |
2172 | 757 | inline void CreateRoleRequestPB::set_salted_hash(const ::std::string& value) { |
2173 | 757 | set_has_salted_hash(); |
2174 | 757 | salted_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
2175 | | // @@protoc_insertion_point(field_set:yb.master.CreateRoleRequestPB.salted_hash) |
2176 | 757 | } |
2177 | | #if LANG_CXX11 |
2178 | 0 | inline void CreateRoleRequestPB::set_salted_hash(::std::string&& value) { |
2179 | 0 | set_has_salted_hash(); |
2180 | 0 | salted_hash_.SetNoArena( |
2181 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
2182 | 0 | // @@protoc_insertion_point(field_set_rvalue:yb.master.CreateRoleRequestPB.salted_hash) |
2183 | 0 | } |
2184 | | #endif |
2185 | 0 | inline void CreateRoleRequestPB::set_salted_hash(const char* value) { |
2186 | 0 | GOOGLE_DCHECK(value != NULL); |
2187 | 0 | set_has_salted_hash(); |
2188 | 0 | salted_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
2189 | 0 | // @@protoc_insertion_point(field_set_char:yb.master.CreateRoleRequestPB.salted_hash) |
2190 | 0 | } |
2191 | 0 | inline void CreateRoleRequestPB::set_salted_hash(const char* value, size_t size) { |
2192 | 0 | set_has_salted_hash(); |
2193 | 0 | salted_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
2194 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
2195 | 0 | // @@protoc_insertion_point(field_set_pointer:yb.master.CreateRoleRequestPB.salted_hash) |
2196 | 0 | } |
2197 | 757 | inline ::std::string* CreateRoleRequestPB::mutable_salted_hash() { |
2198 | 757 | set_has_salted_hash(); |
2199 | | // @@protoc_insertion_point(field_mutable:yb.master.CreateRoleRequestPB.salted_hash) |
2200 | 757 | return salted_hash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2201 | 757 | } |
2202 | 0 | inline ::std::string* CreateRoleRequestPB::release_salted_hash() { |
2203 | 0 | // @@protoc_insertion_point(field_release:yb.master.CreateRoleRequestPB.salted_hash) |
2204 | 0 | clear_has_salted_hash(); |
2205 | 0 | return salted_hash_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2206 | 0 | } |
2207 | 0 | inline void CreateRoleRequestPB::set_allocated_salted_hash(::std::string* salted_hash) { |
2208 | 0 | if (salted_hash != NULL) { |
2209 | 0 | set_has_salted_hash(); |
2210 | 0 | } else { |
2211 | 0 | clear_has_salted_hash(); |
2212 | 0 | } |
2213 | 0 | salted_hash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), salted_hash); |
2214 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.master.CreateRoleRequestPB.salted_hash) |
2215 | 0 | } |
2216 | | |
2217 | | // optional bool login = 3; |
2218 | 1.51k | inline bool CreateRoleRequestPB::has_login() const { |
2219 | 1.51k | return (_has_bits_[0] & 0x00000008u) != 0; |
2220 | 1.51k | } |
2221 | 1.51k | inline void CreateRoleRequestPB::set_has_login() { |
2222 | 1.51k | _has_bits_[0] |= 0x00000008u; |
2223 | 1.51k | } |
2224 | 0 | inline void CreateRoleRequestPB::clear_has_login() { |
2225 | 0 | _has_bits_[0] &= ~0x00000008u; |
2226 | 0 | } |
2227 | 0 | inline void CreateRoleRequestPB::clear_login() { |
2228 | 0 | login_ = false; |
2229 | 0 | clear_has_login(); |
2230 | 0 | } |
2231 | 1.50k | inline bool CreateRoleRequestPB::login() const { |
2232 | | // @@protoc_insertion_point(field_get:yb.master.CreateRoleRequestPB.login) |
2233 | 1.50k | return login_; |
2234 | 1.50k | } |
2235 | 757 | inline void CreateRoleRequestPB::set_login(bool value) { |
2236 | 757 | set_has_login(); |
2237 | 757 | login_ = value; |
2238 | | // @@protoc_insertion_point(field_set:yb.master.CreateRoleRequestPB.login) |
2239 | 757 | } |
2240 | | |
2241 | | // optional bool superuser = 4; |
2242 | 1.51k | inline bool CreateRoleRequestPB::has_superuser() const { |
2243 | 1.51k | return (_has_bits_[0] & 0x00000010u) != 0; |
2244 | 1.51k | } |
2245 | 1.51k | inline void CreateRoleRequestPB::set_has_superuser() { |
2246 | 1.51k | _has_bits_[0] |= 0x00000010u; |
2247 | 1.51k | } |
2248 | 0 | inline void CreateRoleRequestPB::clear_has_superuser() { |
2249 | 0 | _has_bits_[0] &= ~0x00000010u; |
2250 | 0 | } |
2251 | 0 | inline void CreateRoleRequestPB::clear_superuser() { |
2252 | 0 | superuser_ = false; |
2253 | 0 | clear_has_superuser(); |
2254 | 0 | } |
2255 | 2.26k | inline bool CreateRoleRequestPB::superuser() const { |
2256 | | // @@protoc_insertion_point(field_get:yb.master.CreateRoleRequestPB.superuser) |
2257 | 2.26k | return superuser_; |
2258 | 2.26k | } |
2259 | 757 | inline void CreateRoleRequestPB::set_superuser(bool value) { |
2260 | 757 | set_has_superuser(); |
2261 | 757 | superuser_ = value; |
2262 | | // @@protoc_insertion_point(field_set:yb.master.CreateRoleRequestPB.superuser) |
2263 | 757 | } |
2264 | | |
2265 | | // optional string creator_role_name = 5; |
2266 | 2.26k | inline bool CreateRoleRequestPB::has_creator_role_name() const { |
2267 | 2.26k | return (_has_bits_[0] & 0x00000004u) != 0; |
2268 | 2.26k | } |
2269 | 1.51k | inline void CreateRoleRequestPB::set_has_creator_role_name() { |
2270 | 1.51k | _has_bits_[0] |= 0x00000004u; |
2271 | 1.51k | } |
2272 | 0 | inline void CreateRoleRequestPB::clear_has_creator_role_name() { |
2273 | 0 | _has_bits_[0] &= ~0x00000004u; |
2274 | 0 | } |
2275 | 0 | inline void CreateRoleRequestPB::clear_creator_role_name() { |
2276 | 0 | creator_role_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2277 | 0 | clear_has_creator_role_name(); |
2278 | 0 | } |
2279 | 6.10k | inline const ::std::string& CreateRoleRequestPB::creator_role_name() const { |
2280 | | // @@protoc_insertion_point(field_get:yb.master.CreateRoleRequestPB.creator_role_name) |
2281 | 6.10k | return creator_role_name_.GetNoArena(); |
2282 | 6.10k | } |
2283 | 757 | inline void CreateRoleRequestPB::set_creator_role_name(const ::std::string& value) { |
2284 | 757 | set_has_creator_role_name(); |
2285 | 757 | creator_role_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
2286 | | // @@protoc_insertion_point(field_set:yb.master.CreateRoleRequestPB.creator_role_name) |
2287 | 757 | } |
2288 | | #if LANG_CXX11 |
2289 | 0 | inline void CreateRoleRequestPB::set_creator_role_name(::std::string&& value) { |
2290 | 0 | set_has_creator_role_name(); |
2291 | 0 | creator_role_name_.SetNoArena( |
2292 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
2293 | 0 | // @@protoc_insertion_point(field_set_rvalue:yb.master.CreateRoleRequestPB.creator_role_name) |
2294 | 0 | } |
2295 | | #endif |
2296 | 0 | inline void CreateRoleRequestPB::set_creator_role_name(const char* value) { |
2297 | 0 | GOOGLE_DCHECK(value != NULL); |
2298 | 0 | set_has_creator_role_name(); |
2299 | 0 | creator_role_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
2300 | 0 | // @@protoc_insertion_point(field_set_char:yb.master.CreateRoleRequestPB.creator_role_name) |
2301 | 0 | } |
2302 | 0 | inline void CreateRoleRequestPB::set_creator_role_name(const char* value, size_t size) { |
2303 | 0 | set_has_creator_role_name(); |
2304 | 0 | creator_role_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
2305 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
2306 | 0 | // @@protoc_insertion_point(field_set_pointer:yb.master.CreateRoleRequestPB.creator_role_name) |
2307 | 0 | } |
2308 | 757 | inline ::std::string* CreateRoleRequestPB::mutable_creator_role_name() { |
2309 | 757 | set_has_creator_role_name(); |
2310 | | // @@protoc_insertion_point(field_mutable:yb.master.CreateRoleRequestPB.creator_role_name) |
2311 | 757 | return creator_role_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2312 | 757 | } |
2313 | 0 | inline ::std::string* CreateRoleRequestPB::release_creator_role_name() { |
2314 | 0 | // @@protoc_insertion_point(field_release:yb.master.CreateRoleRequestPB.creator_role_name) |
2315 | 0 | clear_has_creator_role_name(); |
2316 | 0 | return creator_role_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2317 | 0 | } |
2318 | 0 | inline void CreateRoleRequestPB::set_allocated_creator_role_name(::std::string* creator_role_name) { |
2319 | 0 | if (creator_role_name != NULL) { |
2320 | 0 | set_has_creator_role_name(); |
2321 | 0 | } else { |
2322 | 0 | clear_has_creator_role_name(); |
2323 | 0 | } |
2324 | 0 | creator_role_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), creator_role_name); |
2325 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.master.CreateRoleRequestPB.creator_role_name) |
2326 | 0 | } |
2327 | | |
2328 | | // ------------------------------------------------------------------- |
2329 | | |
2330 | | // CreateRoleResponsePB |
2331 | | |
2332 | | // optional .yb.master.MasterErrorPB error = 1; |
2333 | 3.79k | inline bool CreateRoleResponsePB::has_error() const { |
2334 | 3.79k | return (_has_bits_[0] & 0x00000001u) != 0; |
2335 | 3.79k | } |
2336 | 12 | inline void CreateRoleResponsePB::set_has_error() { |
2337 | 12 | _has_bits_[0] |= 0x00000001u; |
2338 | 12 | } |
2339 | 0 | inline void CreateRoleResponsePB::clear_has_error() { |
2340 | 0 | _has_bits_[0] &= ~0x00000001u; |
2341 | 0 | } |
2342 | 24 | inline const ::yb::master::MasterErrorPB& CreateRoleResponsePB::error() const { |
2343 | 24 | const ::yb::master::MasterErrorPB* p = error_; |
2344 | | // @@protoc_insertion_point(field_get:yb.master.CreateRoleResponsePB.error) |
2345 | 24 | return p != NULL ? *p : *reinterpret_cast<const ::yb::master::MasterErrorPB*>( |
2346 | 0 | &::yb::master::_MasterErrorPB_default_instance_); |
2347 | 24 | } |
2348 | 0 | inline ::yb::master::MasterErrorPB* CreateRoleResponsePB::release_error() { |
2349 | 0 | // @@protoc_insertion_point(field_release:yb.master.CreateRoleResponsePB.error) |
2350 | 0 | clear_has_error(); |
2351 | 0 | ::yb::master::MasterErrorPB* temp = error_; |
2352 | 0 | error_ = NULL; |
2353 | 0 | return temp; |
2354 | 0 | } |
2355 | 12 | inline ::yb::master::MasterErrorPB* CreateRoleResponsePB::mutable_error() { |
2356 | 12 | set_has_error(); |
2357 | 12 | if (error_ == NULL) { |
2358 | 12 | error_ = new ::yb::master::MasterErrorPB; |
2359 | 12 | } |
2360 | | // @@protoc_insertion_point(field_mutable:yb.master.CreateRoleResponsePB.error) |
2361 | 12 | return error_; |
2362 | 12 | } |
2363 | 0 | inline void CreateRoleResponsePB::set_allocated_error(::yb::master::MasterErrorPB* error) { |
2364 | 0 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
2365 | 0 | if (message_arena == NULL) { |
2366 | 0 | delete reinterpret_cast< ::google::protobuf::MessageLite*>(error_); |
2367 | 0 | } |
2368 | 0 | if (error) { |
2369 | 0 | ::google::protobuf::Arena* submessage_arena = NULL; |
2370 | 0 | if (message_arena != submessage_arena) { |
2371 | 0 | error = ::google::protobuf::internal::GetOwnedMessage( |
2372 | 0 | message_arena, error, submessage_arena); |
2373 | 0 | } |
2374 | 0 | set_has_error(); |
2375 | 0 | } else { |
2376 | 0 | clear_has_error(); |
2377 | 0 | } |
2378 | 0 | error_ = error; |
2379 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.master.CreateRoleResponsePB.error) |
2380 | 0 | } |
2381 | | |
2382 | | // ------------------------------------------------------------------- |
2383 | | |
2384 | | // AlterRoleRequestPB |
2385 | | |
2386 | | // optional string name = 1; |
2387 | 116 | inline bool AlterRoleRequestPB::has_name() const { |
2388 | 116 | return (_has_bits_[0] & 0x00000001u) != 0; |
2389 | 116 | } |
2390 | 116 | inline void AlterRoleRequestPB::set_has_name() { |
2391 | 116 | _has_bits_[0] |= 0x00000001u; |
2392 | 116 | } |
2393 | 0 | inline void AlterRoleRequestPB::clear_has_name() { |
2394 | 0 | _has_bits_[0] &= ~0x00000001u; |
2395 | 0 | } |
2396 | 0 | inline void AlterRoleRequestPB::clear_name() { |
2397 | 0 | name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2398 | 0 | clear_has_name(); |
2399 | 0 | } |
2400 | 467 | inline const ::std::string& AlterRoleRequestPB::name() const { |
2401 | | // @@protoc_insertion_point(field_get:yb.master.AlterRoleRequestPB.name) |
2402 | 467 | return name_.GetNoArena(); |
2403 | 467 | } |
2404 | 58 | inline void AlterRoleRequestPB::set_name(const ::std::string& value) { |
2405 | 58 | set_has_name(); |
2406 | 58 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
2407 | | // @@protoc_insertion_point(field_set:yb.master.AlterRoleRequestPB.name) |
2408 | 58 | } |
2409 | | #if LANG_CXX11 |
2410 | 0 | inline void AlterRoleRequestPB::set_name(::std::string&& value) { |
2411 | 0 | set_has_name(); |
2412 | 0 | name_.SetNoArena( |
2413 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
2414 | 0 | // @@protoc_insertion_point(field_set_rvalue:yb.master.AlterRoleRequestPB.name) |
2415 | 0 | } |
2416 | | #endif |
2417 | 0 | inline void AlterRoleRequestPB::set_name(const char* value) { |
2418 | 0 | GOOGLE_DCHECK(value != NULL); |
2419 | 0 | set_has_name(); |
2420 | 0 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
2421 | 0 | // @@protoc_insertion_point(field_set_char:yb.master.AlterRoleRequestPB.name) |
2422 | 0 | } |
2423 | 0 | inline void AlterRoleRequestPB::set_name(const char* value, size_t size) { |
2424 | 0 | set_has_name(); |
2425 | 0 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
2426 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
2427 | 0 | // @@protoc_insertion_point(field_set_pointer:yb.master.AlterRoleRequestPB.name) |
2428 | 0 | } |
2429 | 58 | inline ::std::string* AlterRoleRequestPB::mutable_name() { |
2430 | 58 | set_has_name(); |
2431 | | // @@protoc_insertion_point(field_mutable:yb.master.AlterRoleRequestPB.name) |
2432 | 58 | return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2433 | 58 | } |
2434 | 0 | inline ::std::string* AlterRoleRequestPB::release_name() { |
2435 | 0 | // @@protoc_insertion_point(field_release:yb.master.AlterRoleRequestPB.name) |
2436 | 0 | clear_has_name(); |
2437 | 0 | return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2438 | 0 | } |
2439 | 0 | inline void AlterRoleRequestPB::set_allocated_name(::std::string* name) { |
2440 | 0 | if (name != NULL) { |
2441 | 0 | set_has_name(); |
2442 | 0 | } else { |
2443 | 0 | clear_has_name(); |
2444 | 0 | } |
2445 | 0 | name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); |
2446 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.master.AlterRoleRequestPB.name) |
2447 | 0 | } |
2448 | | |
2449 | | // optional string salted_hash = 2; |
2450 | 161 | inline bool AlterRoleRequestPB::has_salted_hash() const { |
2451 | 161 | return (_has_bits_[0] & 0x00000002u) != 0; |
2452 | 161 | } |
2453 | 18 | inline void AlterRoleRequestPB::set_has_salted_hash() { |
2454 | 18 | _has_bits_[0] |= 0x00000002u; |
2455 | 18 | } |
2456 | 0 | inline void AlterRoleRequestPB::clear_has_salted_hash() { |
2457 | 0 | _has_bits_[0] &= ~0x00000002u; |
2458 | 0 | } |
2459 | 0 | inline void AlterRoleRequestPB::clear_salted_hash() { |
2460 | 0 | salted_hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2461 | 0 | clear_has_salted_hash(); |
2462 | 0 | } |
2463 | 72 | inline const ::std::string& AlterRoleRequestPB::salted_hash() const { |
2464 | | // @@protoc_insertion_point(field_get:yb.master.AlterRoleRequestPB.salted_hash) |
2465 | 72 | return salted_hash_.GetNoArena(); |
2466 | 72 | } |
2467 | 9 | inline void AlterRoleRequestPB::set_salted_hash(const ::std::string& value) { |
2468 | 9 | set_has_salted_hash(); |
2469 | 9 | salted_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
2470 | | // @@protoc_insertion_point(field_set:yb.master.AlterRoleRequestPB.salted_hash) |
2471 | 9 | } |
2472 | | #if LANG_CXX11 |
2473 | 0 | inline void AlterRoleRequestPB::set_salted_hash(::std::string&& value) { |
2474 | 0 | set_has_salted_hash(); |
2475 | 0 | salted_hash_.SetNoArena( |
2476 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
2477 | 0 | // @@protoc_insertion_point(field_set_rvalue:yb.master.AlterRoleRequestPB.salted_hash) |
2478 | 0 | } |
2479 | | #endif |
2480 | 0 | inline void AlterRoleRequestPB::set_salted_hash(const char* value) { |
2481 | 0 | GOOGLE_DCHECK(value != NULL); |
2482 | 0 | set_has_salted_hash(); |
2483 | 0 | salted_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
2484 | 0 | // @@protoc_insertion_point(field_set_char:yb.master.AlterRoleRequestPB.salted_hash) |
2485 | 0 | } |
2486 | 0 | inline void AlterRoleRequestPB::set_salted_hash(const char* value, size_t size) { |
2487 | 0 | set_has_salted_hash(); |
2488 | 0 | salted_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
2489 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
2490 | 0 | // @@protoc_insertion_point(field_set_pointer:yb.master.AlterRoleRequestPB.salted_hash) |
2491 | 0 | } |
2492 | 9 | inline ::std::string* AlterRoleRequestPB::mutable_salted_hash() { |
2493 | 9 | set_has_salted_hash(); |
2494 | | // @@protoc_insertion_point(field_mutable:yb.master.AlterRoleRequestPB.salted_hash) |
2495 | 9 | return salted_hash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2496 | 9 | } |
2497 | 0 | inline ::std::string* AlterRoleRequestPB::release_salted_hash() { |
2498 | 0 | // @@protoc_insertion_point(field_release:yb.master.AlterRoleRequestPB.salted_hash) |
2499 | 0 | clear_has_salted_hash(); |
2500 | 0 | return salted_hash_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2501 | 0 | } |
2502 | 0 | inline void AlterRoleRequestPB::set_allocated_salted_hash(::std::string* salted_hash) { |
2503 | 0 | if (salted_hash != NULL) { |
2504 | 0 | set_has_salted_hash(); |
2505 | 0 | } else { |
2506 | 0 | clear_has_salted_hash(); |
2507 | 0 | } |
2508 | 0 | salted_hash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), salted_hash); |
2509 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.master.AlterRoleRequestPB.salted_hash) |
2510 | 0 | } |
2511 | | |
2512 | | // optional bool login = 3; |
2513 | 161 | inline bool AlterRoleRequestPB::has_login() const { |
2514 | 161 | return (_has_bits_[0] & 0x00000008u) != 0; |
2515 | 161 | } |
2516 | 26 | inline void AlterRoleRequestPB::set_has_login() { |
2517 | 26 | _has_bits_[0] |= 0x00000008u; |
2518 | 26 | } |
2519 | 0 | inline void AlterRoleRequestPB::clear_has_login() { |
2520 | 0 | _has_bits_[0] &= ~0x00000008u; |
2521 | 0 | } |
2522 | 0 | inline void AlterRoleRequestPB::clear_login() { |
2523 | 0 | login_ = false; |
2524 | 0 | clear_has_login(); |
2525 | 0 | } |
2526 | 23 | inline bool AlterRoleRequestPB::login() const { |
2527 | | // @@protoc_insertion_point(field_get:yb.master.AlterRoleRequestPB.login) |
2528 | 23 | return login_; |
2529 | 23 | } |
2530 | 13 | inline void AlterRoleRequestPB::set_login(bool value) { |
2531 | 13 | set_has_login(); |
2532 | 13 | login_ = value; |
2533 | | // @@protoc_insertion_point(field_set:yb.master.AlterRoleRequestPB.login) |
2534 | 13 | } |
2535 | | |
2536 | | // optional bool superuser = 4; |
2537 | 216 | inline bool AlterRoleRequestPB::has_superuser() const { |
2538 | 216 | return (_has_bits_[0] & 0x00000010u) != 0; |
2539 | 216 | } |
2540 | 92 | inline void AlterRoleRequestPB::set_has_superuser() { |
2541 | 92 | _has_bits_[0] |= 0x00000010u; |
2542 | 92 | } |
2543 | 0 | inline void AlterRoleRequestPB::clear_has_superuser() { |
2544 | 0 | _has_bits_[0] &= ~0x00000010u; |
2545 | 0 | } |
2546 | 0 | inline void AlterRoleRequestPB::clear_superuser() { |
2547 | 0 | superuser_ = false; |
2548 | 0 | clear_has_superuser(); |
2549 | 0 | } |
2550 | 82 | inline bool AlterRoleRequestPB::superuser() const { |
2551 | | // @@protoc_insertion_point(field_get:yb.master.AlterRoleRequestPB.superuser) |
2552 | 82 | return superuser_; |
2553 | 82 | } |
2554 | 46 | inline void AlterRoleRequestPB::set_superuser(bool value) { |
2555 | 46 | set_has_superuser(); |
2556 | 46 | superuser_ = value; |
2557 | | // @@protoc_insertion_point(field_set:yb.master.AlterRoleRequestPB.superuser) |
2558 | 46 | } |
2559 | | |
2560 | | // optional string current_role = 5; |
2561 | 116 | inline bool AlterRoleRequestPB::has_current_role() const { |
2562 | 116 | return (_has_bits_[0] & 0x00000004u) != 0; |
2563 | 116 | } |
2564 | 116 | inline void AlterRoleRequestPB::set_has_current_role() { |
2565 | 116 | _has_bits_[0] |= 0x00000004u; |
2566 | 116 | } |
2567 | 0 | inline void AlterRoleRequestPB::clear_has_current_role() { |
2568 | 0 | _has_bits_[0] &= ~0x00000004u; |
2569 | 0 | } |
2570 | 0 | inline void AlterRoleRequestPB::clear_current_role() { |
2571 | 0 | current_role_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2572 | 0 | clear_has_current_role(); |
2573 | 0 | } |
2574 | 542 | inline const ::std::string& AlterRoleRequestPB::current_role() const { |
2575 | | // @@protoc_insertion_point(field_get:yb.master.AlterRoleRequestPB.current_role) |
2576 | 542 | return current_role_.GetNoArena(); |
2577 | 542 | } |
2578 | 58 | inline void AlterRoleRequestPB::set_current_role(const ::std::string& value) { |
2579 | 58 | set_has_current_role(); |
2580 | 58 | current_role_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
2581 | | // @@protoc_insertion_point(field_set:yb.master.AlterRoleRequestPB.current_role) |
2582 | 58 | } |
2583 | | #if LANG_CXX11 |
2584 | 0 | inline void AlterRoleRequestPB::set_current_role(::std::string&& value) { |
2585 | 0 | set_has_current_role(); |
2586 | 0 | current_role_.SetNoArena( |
2587 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
2588 | 0 | // @@protoc_insertion_point(field_set_rvalue:yb.master.AlterRoleRequestPB.current_role) |
2589 | 0 | } |
2590 | | #endif |
2591 | 0 | inline void AlterRoleRequestPB::set_current_role(const char* value) { |
2592 | 0 | GOOGLE_DCHECK(value != NULL); |
2593 | 0 | set_has_current_role(); |
2594 | 0 | current_role_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
2595 | 0 | // @@protoc_insertion_point(field_set_char:yb.master.AlterRoleRequestPB.current_role) |
2596 | 0 | } |
2597 | 0 | inline void AlterRoleRequestPB::set_current_role(const char* value, size_t size) { |
2598 | 0 | set_has_current_role(); |
2599 | 0 | current_role_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
2600 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
2601 | 0 | // @@protoc_insertion_point(field_set_pointer:yb.master.AlterRoleRequestPB.current_role) |
2602 | 0 | } |
2603 | 58 | inline ::std::string* AlterRoleRequestPB::mutable_current_role() { |
2604 | 58 | set_has_current_role(); |
2605 | | // @@protoc_insertion_point(field_mutable:yb.master.AlterRoleRequestPB.current_role) |
2606 | 58 | return current_role_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2607 | 58 | } |
2608 | 0 | inline ::std::string* AlterRoleRequestPB::release_current_role() { |
2609 | 0 | // @@protoc_insertion_point(field_release:yb.master.AlterRoleRequestPB.current_role) |
2610 | 0 | clear_has_current_role(); |
2611 | 0 | return current_role_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2612 | 0 | } |
2613 | 0 | inline void AlterRoleRequestPB::set_allocated_current_role(::std::string* current_role) { |
2614 | 0 | if (current_role != NULL) { |
2615 | 0 | set_has_current_role(); |
2616 | 0 | } else { |
2617 | 0 | clear_has_current_role(); |
2618 | 0 | } |
2619 | 0 | current_role_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), current_role); |
2620 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.master.AlterRoleRequestPB.current_role) |
2621 | 0 | } |
2622 | | |
2623 | | // ------------------------------------------------------------------- |
2624 | | |
2625 | | // AlterRoleResponsePB |
2626 | | |
2627 | | // optional .yb.master.MasterErrorPB error = 1; |
2628 | 303 | inline bool AlterRoleResponsePB::has_error() const { |
2629 | 303 | return (_has_bits_[0] & 0x00000001u) != 0; |
2630 | 303 | } |
2631 | 26 | inline void AlterRoleResponsePB::set_has_error() { |
2632 | 26 | _has_bits_[0] |= 0x00000001u; |
2633 | 26 | } |
2634 | 0 | inline void AlterRoleResponsePB::clear_has_error() { |
2635 | 0 | _has_bits_[0] &= ~0x00000001u; |
2636 | 0 | } |
2637 | 52 | inline const ::yb::master::MasterErrorPB& AlterRoleResponsePB::error() const { |
2638 | 52 | const ::yb::master::MasterErrorPB* p = error_; |
2639 | | // @@protoc_insertion_point(field_get:yb.master.AlterRoleResponsePB.error) |
2640 | 52 | return p != NULL ? *p : *reinterpret_cast<const ::yb::master::MasterErrorPB*>( |
2641 | 0 | &::yb::master::_MasterErrorPB_default_instance_); |
2642 | 52 | } |
2643 | 0 | inline ::yb::master::MasterErrorPB* AlterRoleResponsePB::release_error() { |
2644 | 0 | // @@protoc_insertion_point(field_release:yb.master.AlterRoleResponsePB.error) |
2645 | 0 | clear_has_error(); |
2646 | 0 | ::yb::master::MasterErrorPB* temp = error_; |
2647 | 0 | error_ = NULL; |
2648 | 0 | return temp; |
2649 | 0 | } |
2650 | 26 | inline ::yb::master::MasterErrorPB* AlterRoleResponsePB::mutable_error() { |
2651 | 26 | set_has_error(); |
2652 | 26 | if (error_ == NULL) { |
2653 | 26 | error_ = new ::yb::master::MasterErrorPB; |
2654 | 26 | } |
2655 | | // @@protoc_insertion_point(field_mutable:yb.master.AlterRoleResponsePB.error) |
2656 | 26 | return error_; |
2657 | 26 | } |
2658 | 0 | inline void AlterRoleResponsePB::set_allocated_error(::yb::master::MasterErrorPB* error) { |
2659 | 0 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
2660 | 0 | if (message_arena == NULL) { |
2661 | 0 | delete reinterpret_cast< ::google::protobuf::MessageLite*>(error_); |
2662 | 0 | } |
2663 | 0 | if (error) { |
2664 | 0 | ::google::protobuf::Arena* submessage_arena = NULL; |
2665 | 0 | if (message_arena != submessage_arena) { |
2666 | 0 | error = ::google::protobuf::internal::GetOwnedMessage( |
2667 | 0 | message_arena, error, submessage_arena); |
2668 | 0 | } |
2669 | 0 | set_has_error(); |
2670 | 0 | } else { |
2671 | 0 | clear_has_error(); |
2672 | 0 | } |
2673 | 0 | error_ = error; |
2674 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.master.AlterRoleResponsePB.error) |
2675 | 0 | } |
2676 | | |
2677 | | // ------------------------------------------------------------------- |
2678 | | |
2679 | | // DeleteRoleRequestPB |
2680 | | |
2681 | | // optional string name = 1; |
2682 | 2.19k | inline bool DeleteRoleRequestPB::has_name() const { |
2683 | 2.19k | return (_has_bits_[0] & 0x00000001u) != 0; |
2684 | 2.19k | } |
2685 | 1.46k | inline void DeleteRoleRequestPB::set_has_name() { |
2686 | 1.46k | _has_bits_[0] |= 0x00000001u; |
2687 | 1.46k | } |
2688 | 0 | inline void DeleteRoleRequestPB::clear_has_name() { |
2689 | 0 | _has_bits_[0] &= ~0x00000001u; |
2690 | 0 | } |
2691 | 0 | inline void DeleteRoleRequestPB::clear_name() { |
2692 | 0 | name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2693 | 0 | clear_has_name(); |
2694 | 0 | } |
2695 | 7.31k | inline const ::std::string& DeleteRoleRequestPB::name() const { |
2696 | | // @@protoc_insertion_point(field_get:yb.master.DeleteRoleRequestPB.name) |
2697 | 7.31k | return name_.GetNoArena(); |
2698 | 7.31k | } |
2699 | 730 | inline void DeleteRoleRequestPB::set_name(const ::std::string& value) { |
2700 | 730 | set_has_name(); |
2701 | 730 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
2702 | | // @@protoc_insertion_point(field_set:yb.master.DeleteRoleRequestPB.name) |
2703 | 730 | } |
2704 | | #if LANG_CXX11 |
2705 | 0 | inline void DeleteRoleRequestPB::set_name(::std::string&& value) { |
2706 | 0 | set_has_name(); |
2707 | 0 | name_.SetNoArena( |
2708 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
2709 | 0 | // @@protoc_insertion_point(field_set_rvalue:yb.master.DeleteRoleRequestPB.name) |
2710 | 0 | } |
2711 | | #endif |
2712 | 0 | inline void DeleteRoleRequestPB::set_name(const char* value) { |
2713 | 0 | GOOGLE_DCHECK(value != NULL); |
2714 | 0 | set_has_name(); |
2715 | 0 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
2716 | 0 | // @@protoc_insertion_point(field_set_char:yb.master.DeleteRoleRequestPB.name) |
2717 | 0 | } |
2718 | 0 | inline void DeleteRoleRequestPB::set_name(const char* value, size_t size) { |
2719 | 0 | set_has_name(); |
2720 | 0 | name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
2721 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
2722 | 0 | // @@protoc_insertion_point(field_set_pointer:yb.master.DeleteRoleRequestPB.name) |
2723 | 0 | } |
2724 | 730 | inline ::std::string* DeleteRoleRequestPB::mutable_name() { |
2725 | 730 | set_has_name(); |
2726 | | // @@protoc_insertion_point(field_mutable:yb.master.DeleteRoleRequestPB.name) |
2727 | 730 | return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2728 | 730 | } |
2729 | 0 | inline ::std::string* DeleteRoleRequestPB::release_name() { |
2730 | 0 | // @@protoc_insertion_point(field_release:yb.master.DeleteRoleRequestPB.name) |
2731 | 0 | clear_has_name(); |
2732 | 0 | return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2733 | 0 | } |
2734 | 0 | inline void DeleteRoleRequestPB::set_allocated_name(::std::string* name) { |
2735 | 0 | if (name != NULL) { |
2736 | 0 | set_has_name(); |
2737 | 0 | } else { |
2738 | 0 | clear_has_name(); |
2739 | 0 | } |
2740 | 0 | name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name); |
2741 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.master.DeleteRoleRequestPB.name) |
2742 | 0 | } |
2743 | | |
2744 | | // optional string current_role = 2; |
2745 | 1.46k | inline bool DeleteRoleRequestPB::has_current_role() const { |
2746 | 1.46k | return (_has_bits_[0] & 0x00000002u) != 0; |
2747 | 1.46k | } |
2748 | 1.46k | inline void DeleteRoleRequestPB::set_has_current_role() { |
2749 | 1.46k | _has_bits_[0] |= 0x00000002u; |
2750 | 1.46k | } |
2751 | 0 | inline void DeleteRoleRequestPB::clear_has_current_role() { |
2752 | 0 | _has_bits_[0] &= ~0x00000002u; |
2753 | 0 | } |
2754 | 0 | inline void DeleteRoleRequestPB::clear_current_role() { |
2755 | 0 | current_role_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2756 | 0 | clear_has_current_role(); |
2757 | 0 | } |
2758 | 5.16k | inline const ::std::string& DeleteRoleRequestPB::current_role() const { |
2759 | | // @@protoc_insertion_point(field_get:yb.master.DeleteRoleRequestPB.current_role) |
2760 | 5.16k | return current_role_.GetNoArena(); |
2761 | 5.16k | } |
2762 | 730 | inline void DeleteRoleRequestPB::set_current_role(const ::std::string& value) { |
2763 | 730 | set_has_current_role(); |
2764 | 730 | current_role_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
2765 | | // @@protoc_insertion_point(field_set:yb.master.DeleteRoleRequestPB.current_role) |
2766 | 730 | } |
2767 | | #if LANG_CXX11 |
2768 | 0 | inline void DeleteRoleRequestPB::set_current_role(::std::string&& value) { |
2769 | 0 | set_has_current_role(); |
2770 | 0 | current_role_.SetNoArena( |
2771 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
2772 | 0 | // @@protoc_insertion_point(field_set_rvalue:yb.master.DeleteRoleRequestPB.current_role) |
2773 | 0 | } |
2774 | | #endif |
2775 | 0 | inline void DeleteRoleRequestPB::set_current_role(const char* value) { |
2776 | 0 | GOOGLE_DCHECK(value != NULL); |
2777 | 0 | set_has_current_role(); |
2778 | 0 | current_role_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
2779 | 0 | // @@protoc_insertion_point(field_set_char:yb.master.DeleteRoleRequestPB.current_role) |
2780 | 0 | } |
2781 | 0 | inline void DeleteRoleRequestPB::set_current_role(const char* value, size_t size) { |
2782 | 0 | set_has_current_role(); |
2783 | 0 | current_role_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
2784 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
2785 | 0 | // @@protoc_insertion_point(field_set_pointer:yb.master.DeleteRoleRequestPB.current_role) |
2786 | 0 | } |
2787 | 730 | inline ::std::string* DeleteRoleRequestPB::mutable_current_role() { |
2788 | 730 | set_has_current_role(); |
2789 | | // @@protoc_insertion_point(field_mutable:yb.master.DeleteRoleRequestPB.current_role) |
2790 | 730 | return current_role_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2791 | 730 | } |
2792 | 0 | inline ::std::string* DeleteRoleRequestPB::release_current_role() { |
2793 | 0 | // @@protoc_insertion_point(field_release:yb.master.DeleteRoleRequestPB.current_role) |
2794 | 0 | clear_has_current_role(); |
2795 | 0 | return current_role_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2796 | 0 | } |
2797 | 0 | inline void DeleteRoleRequestPB::set_allocated_current_role(::std::string* current_role) { |
2798 | 0 | if (current_role != NULL) { |
2799 | 0 | set_has_current_role(); |
2800 | 0 | } else { |
2801 | 0 | clear_has_current_role(); |
2802 | 0 | } |
2803 | 0 | current_role_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), current_role); |
2804 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.master.DeleteRoleRequestPB.current_role) |
2805 | 0 | } |
2806 | | |
2807 | | // ------------------------------------------------------------------- |
2808 | | |
2809 | | // DeleteRoleResponsePB |
2810 | | |
2811 | | // optional .yb.master.MasterErrorPB error = 1; |
2812 | 3.65k | inline bool DeleteRoleResponsePB::has_error() const { |
2813 | 3.65k | return (_has_bits_[0] & 0x00000001u) != 0; |
2814 | 3.65k | } |
2815 | 12 | inline void DeleteRoleResponsePB::set_has_error() { |
2816 | 12 | _has_bits_[0] |= 0x00000001u; |
2817 | 12 | } |
2818 | 0 | inline void DeleteRoleResponsePB::clear_has_error() { |
2819 | 0 | _has_bits_[0] &= ~0x00000001u; |
2820 | 0 | } |
2821 | 24 | inline const ::yb::master::MasterErrorPB& DeleteRoleResponsePB::error() const { |
2822 | 24 | const ::yb::master::MasterErrorPB* p = error_; |
2823 | | // @@protoc_insertion_point(field_get:yb.master.DeleteRoleResponsePB.error) |
2824 | 24 | return p != NULL ? *p : *reinterpret_cast<const ::yb::master::MasterErrorPB*>( |
2825 | 0 | &::yb::master::_MasterErrorPB_default_instance_); |
2826 | 24 | } |
2827 | 0 | inline ::yb::master::MasterErrorPB* DeleteRoleResponsePB::release_error() { |
2828 | 0 | // @@protoc_insertion_point(field_release:yb.master.DeleteRoleResponsePB.error) |
2829 | 0 | clear_has_error(); |
2830 | 0 | ::yb::master::MasterErrorPB* temp = error_; |
2831 | 0 | error_ = NULL; |
2832 | 0 | return temp; |
2833 | 0 | } |
2834 | 12 | inline ::yb::master::MasterErrorPB* DeleteRoleResponsePB::mutable_error() { |
2835 | 12 | set_has_error(); |
2836 | 12 | if (error_ == NULL) { |
2837 | 12 | error_ = new ::yb::master::MasterErrorPB; |
2838 | 12 | } |
2839 | | // @@protoc_insertion_point(field_mutable:yb.master.DeleteRoleResponsePB.error) |
2840 | 12 | return error_; |
2841 | 12 | } |
2842 | 0 | inline void DeleteRoleResponsePB::set_allocated_error(::yb::master::MasterErrorPB* error) { |
2843 | 0 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
2844 | 0 | if (message_arena == NULL) { |
2845 | 0 | delete reinterpret_cast< ::google::protobuf::MessageLite*>(error_); |
2846 | 0 | } |
2847 | 0 | if (error) { |
2848 | 0 | ::google::protobuf::Arena* submessage_arena = NULL; |
2849 | 0 | if (message_arena != submessage_arena) { |
2850 | 0 | error = ::google::protobuf::internal::GetOwnedMessage( |
2851 | 0 | message_arena, error, submessage_arena); |
2852 | 0 | } |
2853 | 0 | set_has_error(); |
2854 | 0 | } else { |
2855 | 0 | clear_has_error(); |
2856 | 0 | } |
2857 | 0 | error_ = error; |
2858 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.master.DeleteRoleResponsePB.error) |
2859 | 0 | } |
2860 | | |
2861 | | // ------------------------------------------------------------------- |
2862 | | |
2863 | | // GrantRevokeRoleRequestPB |
2864 | | |
2865 | | // optional string granted_role = 1; |
2866 | 154 | inline bool GrantRevokeRoleRequestPB::has_granted_role() const { |
2867 | 154 | return (_has_bits_[0] & 0x00000001u) != 0; |
2868 | 154 | } |
2869 | 104 | inline void GrantRevokeRoleRequestPB::set_has_granted_role() { |
2870 | 104 | _has_bits_[0] |= 0x00000001u; |
2871 | 104 | } |
2872 | 0 | inline void GrantRevokeRoleRequestPB::clear_has_granted_role() { |
2873 | 0 | _has_bits_[0] &= ~0x00000001u; |
2874 | 0 | } |
2875 | 0 | inline void GrantRevokeRoleRequestPB::clear_granted_role() { |
2876 | 0 | granted_role_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2877 | 0 | clear_has_granted_role(); |
2878 | 0 | } |
2879 | 645 | inline const ::std::string& GrantRevokeRoleRequestPB::granted_role() const { |
2880 | | // @@protoc_insertion_point(field_get:yb.master.GrantRevokeRoleRequestPB.granted_role) |
2881 | 645 | return granted_role_.GetNoArena(); |
2882 | 645 | } |
2883 | 52 | inline void GrantRevokeRoleRequestPB::set_granted_role(const ::std::string& value) { |
2884 | 52 | set_has_granted_role(); |
2885 | 52 | granted_role_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
2886 | | // @@protoc_insertion_point(field_set:yb.master.GrantRevokeRoleRequestPB.granted_role) |
2887 | 52 | } |
2888 | | #if LANG_CXX11 |
2889 | 0 | inline void GrantRevokeRoleRequestPB::set_granted_role(::std::string&& value) { |
2890 | 0 | set_has_granted_role(); |
2891 | 0 | granted_role_.SetNoArena( |
2892 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
2893 | 0 | // @@protoc_insertion_point(field_set_rvalue:yb.master.GrantRevokeRoleRequestPB.granted_role) |
2894 | 0 | } |
2895 | | #endif |
2896 | 0 | inline void GrantRevokeRoleRequestPB::set_granted_role(const char* value) { |
2897 | 0 | GOOGLE_DCHECK(value != NULL); |
2898 | 0 | set_has_granted_role(); |
2899 | 0 | granted_role_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
2900 | 0 | // @@protoc_insertion_point(field_set_char:yb.master.GrantRevokeRoleRequestPB.granted_role) |
2901 | 0 | } |
2902 | 0 | inline void GrantRevokeRoleRequestPB::set_granted_role(const char* value, size_t size) { |
2903 | 0 | set_has_granted_role(); |
2904 | 0 | granted_role_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
2905 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
2906 | 0 | // @@protoc_insertion_point(field_set_pointer:yb.master.GrantRevokeRoleRequestPB.granted_role) |
2907 | 0 | } |
2908 | 52 | inline ::std::string* GrantRevokeRoleRequestPB::mutable_granted_role() { |
2909 | 52 | set_has_granted_role(); |
2910 | | // @@protoc_insertion_point(field_mutable:yb.master.GrantRevokeRoleRequestPB.granted_role) |
2911 | 52 | return granted_role_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2912 | 52 | } |
2913 | 0 | inline ::std::string* GrantRevokeRoleRequestPB::release_granted_role() { |
2914 | 0 | // @@protoc_insertion_point(field_release:yb.master.GrantRevokeRoleRequestPB.granted_role) |
2915 | 0 | clear_has_granted_role(); |
2916 | 0 | return granted_role_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2917 | 0 | } |
2918 | 0 | inline void GrantRevokeRoleRequestPB::set_allocated_granted_role(::std::string* granted_role) { |
2919 | 0 | if (granted_role != NULL) { |
2920 | 0 | set_has_granted_role(); |
2921 | 0 | } else { |
2922 | 0 | clear_has_granted_role(); |
2923 | 0 | } |
2924 | 0 | granted_role_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), granted_role); |
2925 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.master.GrantRevokeRoleRequestPB.granted_role) |
2926 | 0 | } |
2927 | | |
2928 | | // optional string recipient_role = 2; |
2929 | 154 | inline bool GrantRevokeRoleRequestPB::has_recipient_role() const { |
2930 | 154 | return (_has_bits_[0] & 0x00000002u) != 0; |
2931 | 154 | } |
2932 | 104 | inline void GrantRevokeRoleRequestPB::set_has_recipient_role() { |
2933 | 104 | _has_bits_[0] |= 0x00000002u; |
2934 | 104 | } |
2935 | 0 | inline void GrantRevokeRoleRequestPB::clear_has_recipient_role() { |
2936 | 0 | _has_bits_[0] &= ~0x00000002u; |
2937 | 0 | } |
2938 | 0 | inline void GrantRevokeRoleRequestPB::clear_recipient_role() { |
2939 | 0 | recipient_role_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2940 | 0 | clear_has_recipient_role(); |
2941 | 0 | } |
2942 | 592 | inline const ::std::string& GrantRevokeRoleRequestPB::recipient_role() const { |
2943 | | // @@protoc_insertion_point(field_get:yb.master.GrantRevokeRoleRequestPB.recipient_role) |
2944 | 592 | return recipient_role_.GetNoArena(); |
2945 | 592 | } |
2946 | 52 | inline void GrantRevokeRoleRequestPB::set_recipient_role(const ::std::string& value) { |
2947 | 52 | set_has_recipient_role(); |
2948 | 52 | recipient_role_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
2949 | | // @@protoc_insertion_point(field_set:yb.master.GrantRevokeRoleRequestPB.recipient_role) |
2950 | 52 | } |
2951 | | #if LANG_CXX11 |
2952 | 0 | inline void GrantRevokeRoleRequestPB::set_recipient_role(::std::string&& value) { |
2953 | 0 | set_has_recipient_role(); |
2954 | 0 | recipient_role_.SetNoArena( |
2955 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
2956 | 0 | // @@protoc_insertion_point(field_set_rvalue:yb.master.GrantRevokeRoleRequestPB.recipient_role) |
2957 | 0 | } |
2958 | | #endif |
2959 | 0 | inline void GrantRevokeRoleRequestPB::set_recipient_role(const char* value) { |
2960 | 0 | GOOGLE_DCHECK(value != NULL); |
2961 | 0 | set_has_recipient_role(); |
2962 | 0 | recipient_role_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
2963 | 0 | // @@protoc_insertion_point(field_set_char:yb.master.GrantRevokeRoleRequestPB.recipient_role) |
2964 | 0 | } |
2965 | 0 | inline void GrantRevokeRoleRequestPB::set_recipient_role(const char* value, size_t size) { |
2966 | 0 | set_has_recipient_role(); |
2967 | 0 | recipient_role_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
2968 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
2969 | 0 | // @@protoc_insertion_point(field_set_pointer:yb.master.GrantRevokeRoleRequestPB.recipient_role) |
2970 | 0 | } |
2971 | 52 | inline ::std::string* GrantRevokeRoleRequestPB::mutable_recipient_role() { |
2972 | 52 | set_has_recipient_role(); |
2973 | | // @@protoc_insertion_point(field_mutable:yb.master.GrantRevokeRoleRequestPB.recipient_role) |
2974 | 52 | return recipient_role_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2975 | 52 | } |
2976 | 0 | inline ::std::string* GrantRevokeRoleRequestPB::release_recipient_role() { |
2977 | 0 | // @@protoc_insertion_point(field_release:yb.master.GrantRevokeRoleRequestPB.recipient_role) |
2978 | 0 | clear_has_recipient_role(); |
2979 | 0 | return recipient_role_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
2980 | 0 | } |
2981 | 0 | inline void GrantRevokeRoleRequestPB::set_allocated_recipient_role(::std::string* recipient_role) { |
2982 | 0 | if (recipient_role != NULL) { |
2983 | 0 | set_has_recipient_role(); |
2984 | 0 | } else { |
2985 | 0 | clear_has_recipient_role(); |
2986 | 0 | } |
2987 | 0 | recipient_role_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), recipient_role); |
2988 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.master.GrantRevokeRoleRequestPB.recipient_role) |
2989 | 0 | } |
2990 | | |
2991 | | // optional bool revoke = 3 [default = false]; |
2992 | 104 | inline bool GrantRevokeRoleRequestPB::has_revoke() const { |
2993 | 104 | return (_has_bits_[0] & 0x00000004u) != 0; |
2994 | 104 | } |
2995 | 104 | inline void GrantRevokeRoleRequestPB::set_has_revoke() { |
2996 | 104 | _has_bits_[0] |= 0x00000004u; |
2997 | 104 | } |
2998 | 0 | inline void GrantRevokeRoleRequestPB::clear_has_revoke() { |
2999 | 0 | _has_bits_[0] &= ~0x00000004u; |
3000 | 0 | } |
3001 | 0 | inline void GrantRevokeRoleRequestPB::clear_revoke() { |
3002 | 0 | revoke_ = false; |
3003 | 0 | clear_has_revoke(); |
3004 | 0 | } |
3005 | 158 | inline bool GrantRevokeRoleRequestPB::revoke() const { |
3006 | | // @@protoc_insertion_point(field_get:yb.master.GrantRevokeRoleRequestPB.revoke) |
3007 | 158 | return revoke_; |
3008 | 158 | } |
3009 | 52 | inline void GrantRevokeRoleRequestPB::set_revoke(bool value) { |
3010 | 52 | set_has_revoke(); |
3011 | 52 | revoke_ = value; |
3012 | | // @@protoc_insertion_point(field_set:yb.master.GrantRevokeRoleRequestPB.revoke) |
3013 | 52 | } |
3014 | | |
3015 | | // ------------------------------------------------------------------- |
3016 | | |
3017 | | // GrantRevokeRoleResponsePB |
3018 | | |
3019 | | // optional .yb.master.MasterErrorPB error = 1; |
3020 | 263 | inline bool GrantRevokeRoleResponsePB::has_error() const { |
3021 | 263 | return (_has_bits_[0] & 0x00000001u) != 0; |
3022 | 263 | } |
3023 | 6 | inline void GrantRevokeRoleResponsePB::set_has_error() { |
3024 | 6 | _has_bits_[0] |= 0x00000001u; |
3025 | 6 | } |
3026 | 0 | inline void GrantRevokeRoleResponsePB::clear_has_error() { |
3027 | 0 | _has_bits_[0] &= ~0x00000001u; |
3028 | 0 | } |
3029 | 12 | inline const ::yb::master::MasterErrorPB& GrantRevokeRoleResponsePB::error() const { |
3030 | 12 | const ::yb::master::MasterErrorPB* p = error_; |
3031 | | // @@protoc_insertion_point(field_get:yb.master.GrantRevokeRoleResponsePB.error) |
3032 | 12 | return p != NULL ? *p : *reinterpret_cast<const ::yb::master::MasterErrorPB*>( |
3033 | 0 | &::yb::master::_MasterErrorPB_default_instance_); |
3034 | 12 | } |
3035 | 0 | inline ::yb::master::MasterErrorPB* GrantRevokeRoleResponsePB::release_error() { |
3036 | 0 | // @@protoc_insertion_point(field_release:yb.master.GrantRevokeRoleResponsePB.error) |
3037 | 0 | clear_has_error(); |
3038 | 0 | ::yb::master::MasterErrorPB* temp = error_; |
3039 | 0 | error_ = NULL; |
3040 | 0 | return temp; |
3041 | 0 | } |
3042 | 6 | inline ::yb::master::MasterErrorPB* GrantRevokeRoleResponsePB::mutable_error() { |
3043 | 6 | set_has_error(); |
3044 | 6 | if (error_ == NULL) { |
3045 | 6 | error_ = new ::yb::master::MasterErrorPB; |
3046 | 6 | } |
3047 | | // @@protoc_insertion_point(field_mutable:yb.master.GrantRevokeRoleResponsePB.error) |
3048 | 6 | return error_; |
3049 | 6 | } |
3050 | 0 | inline void GrantRevokeRoleResponsePB::set_allocated_error(::yb::master::MasterErrorPB* error) { |
3051 | 0 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
3052 | 0 | if (message_arena == NULL) { |
3053 | 0 | delete reinterpret_cast< ::google::protobuf::MessageLite*>(error_); |
3054 | 0 | } |
3055 | 0 | if (error) { |
3056 | 0 | ::google::protobuf::Arena* submessage_arena = NULL; |
3057 | 0 | if (message_arena != submessage_arena) { |
3058 | 0 | error = ::google::protobuf::internal::GetOwnedMessage( |
3059 | 0 | message_arena, error, submessage_arena); |
3060 | 0 | } |
3061 | 0 | set_has_error(); |
3062 | 0 | } else { |
3063 | 0 | clear_has_error(); |
3064 | 0 | } |
3065 | 0 | error_ = error; |
3066 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.master.GrantRevokeRoleResponsePB.error) |
3067 | 0 | } |
3068 | | |
3069 | | // ------------------------------------------------------------------- |
3070 | | |
3071 | | // GrantRevokePermissionRequestPB |
3072 | | |
3073 | | // optional .yb.PermissionType permission = 1; |
3074 | 1.44k | inline bool GrantRevokePermissionRequestPB::has_permission() const { |
3075 | 1.44k | return (_has_bits_[0] & 0x00000010u) != 0; |
3076 | 1.44k | } |
3077 | 1.44k | inline void GrantRevokePermissionRequestPB::set_has_permission() { |
3078 | 1.44k | _has_bits_[0] |= 0x00000010u; |
3079 | 1.44k | } |
3080 | 0 | inline void GrantRevokePermissionRequestPB::clear_has_permission() { |
3081 | 0 | _has_bits_[0] &= ~0x00000010u; |
3082 | 0 | } |
3083 | 0 | inline void GrantRevokePermissionRequestPB::clear_permission() { |
3084 | 0 | permission_ = 0; |
3085 | 0 | clear_has_permission(); |
3086 | 0 | } |
3087 | 4.55k | inline ::yb::PermissionType GrantRevokePermissionRequestPB::permission() const { |
3088 | | // @@protoc_insertion_point(field_get:yb.master.GrantRevokePermissionRequestPB.permission) |
3089 | 4.55k | return static_cast< ::yb::PermissionType >(permission_); |
3090 | 4.55k | } |
3091 | 1.44k | inline void GrantRevokePermissionRequestPB::set_permission(::yb::PermissionType value) { |
3092 | 1.44k | assert(::yb::PermissionType_IsValid(value)); |
3093 | 0 | set_has_permission(); |
3094 | 1.44k | permission_ = value; |
3095 | | // @@protoc_insertion_point(field_set:yb.master.GrantRevokePermissionRequestPB.permission) |
3096 | 1.44k | } |
3097 | | |
3098 | | // optional .yb.ResourceType resource_type = 2; |
3099 | 1.44k | inline bool GrantRevokePermissionRequestPB::has_resource_type() const { |
3100 | 1.44k | return (_has_bits_[0] & 0x00000040u) != 0; |
3101 | 1.44k | } |
3102 | 1.44k | inline void GrantRevokePermissionRequestPB::set_has_resource_type() { |
3103 | 1.44k | _has_bits_[0] |= 0x00000040u; |
3104 | 1.44k | } |
3105 | 0 | inline void GrantRevokePermissionRequestPB::clear_has_resource_type() { |
3106 | 0 | _has_bits_[0] &= ~0x00000040u; |
3107 | 0 | } |
3108 | 0 | inline void GrantRevokePermissionRequestPB::clear_resource_type() { |
3109 | 0 | resource_type_ = 1; |
3110 | 0 | clear_has_resource_type(); |
3111 | 0 | } |
3112 | 5.52k | inline ::yb::ResourceType GrantRevokePermissionRequestPB::resource_type() const { |
3113 | | // @@protoc_insertion_point(field_get:yb.master.GrantRevokePermissionRequestPB.resource_type) |
3114 | 5.52k | return static_cast< ::yb::ResourceType >(resource_type_); |
3115 | 5.52k | } |
3116 | 1.44k | inline void GrantRevokePermissionRequestPB::set_resource_type(::yb::ResourceType value) { |
3117 | 1.44k | assert(::yb::ResourceType_IsValid(value)); |
3118 | 0 | set_has_resource_type(); |
3119 | 1.44k | resource_type_ = value; |
3120 | | // @@protoc_insertion_point(field_set:yb.master.GrantRevokePermissionRequestPB.resource_type) |
3121 | 1.44k | } |
3122 | | |
3123 | | // optional string canonical_resource = 3; |
3124 | 1.44k | inline bool GrantRevokePermissionRequestPB::has_canonical_resource() const { |
3125 | 1.44k | return (_has_bits_[0] & 0x00000001u) != 0; |
3126 | 1.44k | } |
3127 | 1.44k | inline void GrantRevokePermissionRequestPB::set_has_canonical_resource() { |
3128 | 1.44k | _has_bits_[0] |= 0x00000001u; |
3129 | 1.44k | } |
3130 | 0 | inline void GrantRevokePermissionRequestPB::clear_has_canonical_resource() { |
3131 | 0 | _has_bits_[0] &= ~0x00000001u; |
3132 | 0 | } |
3133 | 0 | inline void GrantRevokePermissionRequestPB::clear_canonical_resource() { |
3134 | 0 | canonical_resource_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3135 | 0 | clear_has_canonical_resource(); |
3136 | 0 | } |
3137 | 5.80k | inline const ::std::string& GrantRevokePermissionRequestPB::canonical_resource() const { |
3138 | | // @@protoc_insertion_point(field_get:yb.master.GrantRevokePermissionRequestPB.canonical_resource) |
3139 | 5.80k | return canonical_resource_.GetNoArena(); |
3140 | 5.80k | } |
3141 | 721 | inline void GrantRevokePermissionRequestPB::set_canonical_resource(const ::std::string& value) { |
3142 | 721 | set_has_canonical_resource(); |
3143 | 721 | canonical_resource_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
3144 | | // @@protoc_insertion_point(field_set:yb.master.GrantRevokePermissionRequestPB.canonical_resource) |
3145 | 721 | } |
3146 | | #if LANG_CXX11 |
3147 | 0 | inline void GrantRevokePermissionRequestPB::set_canonical_resource(::std::string&& value) { |
3148 | 0 | set_has_canonical_resource(); |
3149 | 0 | canonical_resource_.SetNoArena( |
3150 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
3151 | 0 | // @@protoc_insertion_point(field_set_rvalue:yb.master.GrantRevokePermissionRequestPB.canonical_resource) |
3152 | 0 | } |
3153 | | #endif |
3154 | 0 | inline void GrantRevokePermissionRequestPB::set_canonical_resource(const char* value) { |
3155 | 0 | GOOGLE_DCHECK(value != NULL); |
3156 | 0 | set_has_canonical_resource(); |
3157 | 0 | canonical_resource_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
3158 | 0 | // @@protoc_insertion_point(field_set_char:yb.master.GrantRevokePermissionRequestPB.canonical_resource) |
3159 | 0 | } |
3160 | 0 | inline void GrantRevokePermissionRequestPB::set_canonical_resource(const char* value, size_t size) { |
3161 | 0 | set_has_canonical_resource(); |
3162 | 0 | canonical_resource_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
3163 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
3164 | 0 | // @@protoc_insertion_point(field_set_pointer:yb.master.GrantRevokePermissionRequestPB.canonical_resource) |
3165 | 0 | } |
3166 | 721 | inline ::std::string* GrantRevokePermissionRequestPB::mutable_canonical_resource() { |
3167 | 721 | set_has_canonical_resource(); |
3168 | | // @@protoc_insertion_point(field_mutable:yb.master.GrantRevokePermissionRequestPB.canonical_resource) |
3169 | 721 | return canonical_resource_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3170 | 721 | } |
3171 | 0 | inline ::std::string* GrantRevokePermissionRequestPB::release_canonical_resource() { |
3172 | 0 | // @@protoc_insertion_point(field_release:yb.master.GrantRevokePermissionRequestPB.canonical_resource) |
3173 | 0 | clear_has_canonical_resource(); |
3174 | 0 | return canonical_resource_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3175 | 0 | } |
3176 | 0 | inline void GrantRevokePermissionRequestPB::set_allocated_canonical_resource(::std::string* canonical_resource) { |
3177 | 0 | if (canonical_resource != NULL) { |
3178 | 0 | set_has_canonical_resource(); |
3179 | 0 | } else { |
3180 | 0 | clear_has_canonical_resource(); |
3181 | 0 | } |
3182 | 0 | canonical_resource_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), canonical_resource); |
3183 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.master.GrantRevokePermissionRequestPB.canonical_resource) |
3184 | 0 | } |
3185 | | |
3186 | | // optional string resource_name = 4; |
3187 | 1.81k | inline bool GrantRevokePermissionRequestPB::has_resource_name() const { |
3188 | 1.81k | return (_has_bits_[0] & 0x00000002u) != 0; |
3189 | 1.81k | } |
3190 | 1.04k | inline void GrantRevokePermissionRequestPB::set_has_resource_name() { |
3191 | 1.04k | _has_bits_[0] |= 0x00000002u; |
3192 | 1.04k | } |
3193 | 0 | inline void GrantRevokePermissionRequestPB::clear_has_resource_name() { |
3194 | 0 | _has_bits_[0] &= ~0x00000002u; |
3195 | 0 | } |
3196 | 0 | inline void GrantRevokePermissionRequestPB::clear_resource_name() { |
3197 | 0 | resource_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3198 | 0 | clear_has_resource_name(); |
3199 | 0 | } |
3200 | 4.20k | inline const ::std::string& GrantRevokePermissionRequestPB::resource_name() const { |
3201 | | // @@protoc_insertion_point(field_get:yb.master.GrantRevokePermissionRequestPB.resource_name) |
3202 | 4.20k | return resource_name_.GetNoArena(); |
3203 | 4.20k | } |
3204 | 0 | inline void GrantRevokePermissionRequestPB::set_resource_name(const ::std::string& value) { |
3205 | 0 | set_has_resource_name(); |
3206 | 0 | resource_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
3207 | 0 | // @@protoc_insertion_point(field_set:yb.master.GrantRevokePermissionRequestPB.resource_name) |
3208 | 0 | } |
3209 | | #if LANG_CXX11 |
3210 | 0 | inline void GrantRevokePermissionRequestPB::set_resource_name(::std::string&& value) { |
3211 | 0 | set_has_resource_name(); |
3212 | 0 | resource_name_.SetNoArena( |
3213 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
3214 | 0 | // @@protoc_insertion_point(field_set_rvalue:yb.master.GrantRevokePermissionRequestPB.resource_name) |
3215 | 0 | } |
3216 | | #endif |
3217 | 520 | inline void GrantRevokePermissionRequestPB::set_resource_name(const char* value) { |
3218 | 520 | GOOGLE_DCHECK(value != NULL); |
3219 | 520 | set_has_resource_name(); |
3220 | 520 | resource_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
3221 | | // @@protoc_insertion_point(field_set_char:yb.master.GrantRevokePermissionRequestPB.resource_name) |
3222 | 520 | } |
3223 | 0 | inline void GrantRevokePermissionRequestPB::set_resource_name(const char* value, size_t size) { |
3224 | 0 | set_has_resource_name(); |
3225 | 0 | resource_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
3226 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
3227 | 0 | // @@protoc_insertion_point(field_set_pointer:yb.master.GrantRevokePermissionRequestPB.resource_name) |
3228 | 0 | } |
3229 | 520 | inline ::std::string* GrantRevokePermissionRequestPB::mutable_resource_name() { |
3230 | 520 | set_has_resource_name(); |
3231 | | // @@protoc_insertion_point(field_mutable:yb.master.GrantRevokePermissionRequestPB.resource_name) |
3232 | 520 | return resource_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3233 | 520 | } |
3234 | 0 | inline ::std::string* GrantRevokePermissionRequestPB::release_resource_name() { |
3235 | 0 | // @@protoc_insertion_point(field_release:yb.master.GrantRevokePermissionRequestPB.resource_name) |
3236 | 0 | clear_has_resource_name(); |
3237 | 0 | return resource_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3238 | 0 | } |
3239 | 0 | inline void GrantRevokePermissionRequestPB::set_allocated_resource_name(::std::string* resource_name) { |
3240 | 0 | if (resource_name != NULL) { |
3241 | 0 | set_has_resource_name(); |
3242 | 0 | } else { |
3243 | 0 | clear_has_resource_name(); |
3244 | 0 | } |
3245 | 0 | resource_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), resource_name); |
3246 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.master.GrantRevokePermissionRequestPB.resource_name) |
3247 | 0 | } |
3248 | | |
3249 | | // optional .yb.master.NamespaceIdentifierPB namespace = 5; |
3250 | 2.24k | inline bool GrantRevokePermissionRequestPB::has_namespace_() const { |
3251 | 2.24k | return (_has_bits_[0] & 0x00000008u) != 0; |
3252 | 2.24k | } |
3253 | 870 | inline void GrantRevokePermissionRequestPB::set_has_namespace_() { |
3254 | 870 | _has_bits_[0] |= 0x00000008u; |
3255 | 870 | } |
3256 | 0 | inline void GrantRevokePermissionRequestPB::clear_has_namespace_() { |
3257 | 0 | _has_bits_[0] &= ~0x00000008u; |
3258 | 0 | } |
3259 | 669 | inline const ::yb::master::NamespaceIdentifierPB& GrantRevokePermissionRequestPB::namespace_() const { |
3260 | 669 | const ::yb::master::NamespaceIdentifierPB* p = namespace__; |
3261 | | // @@protoc_insertion_point(field_get:yb.master.GrantRevokePermissionRequestPB.namespace) |
3262 | 669 | return p != NULL ? *p : *reinterpret_cast<const ::yb::master::NamespaceIdentifierPB*>( |
3263 | 0 | &::yb::master::_NamespaceIdentifierPB_default_instance_); |
3264 | 669 | } |
3265 | 0 | inline ::yb::master::NamespaceIdentifierPB* GrantRevokePermissionRequestPB::release_namespace_() { |
3266 | 0 | // @@protoc_insertion_point(field_release:yb.master.GrantRevokePermissionRequestPB.namespace) |
3267 | 0 | clear_has_namespace_(); |
3268 | 0 | ::yb::master::NamespaceIdentifierPB* temp = namespace__; |
3269 | 0 | namespace__ = NULL; |
3270 | 0 | return temp; |
3271 | 0 | } |
3272 | 870 | inline ::yb::master::NamespaceIdentifierPB* GrantRevokePermissionRequestPB::mutable_namespace_() { |
3273 | 870 | set_has_namespace_(); |
3274 | 870 | if (namespace__ == NULL) { |
3275 | 870 | namespace__ = new ::yb::master::NamespaceIdentifierPB; |
3276 | 870 | } |
3277 | | // @@protoc_insertion_point(field_mutable:yb.master.GrantRevokePermissionRequestPB.namespace) |
3278 | 870 | return namespace__; |
3279 | 870 | } |
3280 | 0 | inline void GrantRevokePermissionRequestPB::set_allocated_namespace_(::yb::master::NamespaceIdentifierPB* namespace_) { |
3281 | 0 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
3282 | 0 | if (message_arena == NULL) { |
3283 | 0 | delete reinterpret_cast< ::google::protobuf::MessageLite*>(namespace__); |
3284 | 0 | } |
3285 | 0 | if (namespace_) { |
3286 | 0 | ::google::protobuf::Arena* submessage_arena = NULL; |
3287 | 0 | if (message_arena != submessage_arena) { |
3288 | 0 | namespace_ = ::google::protobuf::internal::GetOwnedMessage( |
3289 | 0 | message_arena, namespace_, submessage_arena); |
3290 | 0 | } |
3291 | 0 | set_has_namespace_(); |
3292 | 0 | } else { |
3293 | 0 | clear_has_namespace_(); |
3294 | 0 | } |
3295 | 0 | namespace__ = namespace_; |
3296 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.master.GrantRevokePermissionRequestPB.namespace) |
3297 | 0 | } |
3298 | | |
3299 | | // optional string role_name = 6; |
3300 | 1.44k | inline bool GrantRevokePermissionRequestPB::has_role_name() const { |
3301 | 1.44k | return (_has_bits_[0] & 0x00000004u) != 0; |
3302 | 1.44k | } |
3303 | 1.44k | inline void GrantRevokePermissionRequestPB::set_has_role_name() { |
3304 | 1.44k | _has_bits_[0] |= 0x00000004u; |
3305 | 1.44k | } |
3306 | 0 | inline void GrantRevokePermissionRequestPB::clear_has_role_name() { |
3307 | 0 | _has_bits_[0] &= ~0x00000004u; |
3308 | 0 | } |
3309 | 0 | inline void GrantRevokePermissionRequestPB::clear_role_name() { |
3310 | 0 | role_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3311 | 0 | clear_has_role_name(); |
3312 | 0 | } |
3313 | 5.76k | inline const ::std::string& GrantRevokePermissionRequestPB::role_name() const { |
3314 | | // @@protoc_insertion_point(field_get:yb.master.GrantRevokePermissionRequestPB.role_name) |
3315 | 5.76k | return role_name_.GetNoArena(); |
3316 | 5.76k | } |
3317 | 721 | inline void GrantRevokePermissionRequestPB::set_role_name(const ::std::string& value) { |
3318 | 721 | set_has_role_name(); |
3319 | 721 | role_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
3320 | | // @@protoc_insertion_point(field_set:yb.master.GrantRevokePermissionRequestPB.role_name) |
3321 | 721 | } |
3322 | | #if LANG_CXX11 |
3323 | 0 | inline void GrantRevokePermissionRequestPB::set_role_name(::std::string&& value) { |
3324 | 0 | set_has_role_name(); |
3325 | 0 | role_name_.SetNoArena( |
3326 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
3327 | 0 | // @@protoc_insertion_point(field_set_rvalue:yb.master.GrantRevokePermissionRequestPB.role_name) |
3328 | 0 | } |
3329 | | #endif |
3330 | 0 | inline void GrantRevokePermissionRequestPB::set_role_name(const char* value) { |
3331 | 0 | GOOGLE_DCHECK(value != NULL); |
3332 | 0 | set_has_role_name(); |
3333 | 0 | role_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
3334 | 0 | // @@protoc_insertion_point(field_set_char:yb.master.GrantRevokePermissionRequestPB.role_name) |
3335 | 0 | } |
3336 | 0 | inline void GrantRevokePermissionRequestPB::set_role_name(const char* value, size_t size) { |
3337 | 0 | set_has_role_name(); |
3338 | 0 | role_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
3339 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
3340 | 0 | // @@protoc_insertion_point(field_set_pointer:yb.master.GrantRevokePermissionRequestPB.role_name) |
3341 | 0 | } |
3342 | 721 | inline ::std::string* GrantRevokePermissionRequestPB::mutable_role_name() { |
3343 | 721 | set_has_role_name(); |
3344 | | // @@protoc_insertion_point(field_mutable:yb.master.GrantRevokePermissionRequestPB.role_name) |
3345 | 721 | return role_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3346 | 721 | } |
3347 | 0 | inline ::std::string* GrantRevokePermissionRequestPB::release_role_name() { |
3348 | 0 | // @@protoc_insertion_point(field_release:yb.master.GrantRevokePermissionRequestPB.role_name) |
3349 | 0 | clear_has_role_name(); |
3350 | 0 | return role_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3351 | 0 | } |
3352 | 0 | inline void GrantRevokePermissionRequestPB::set_allocated_role_name(::std::string* role_name) { |
3353 | 0 | if (role_name != NULL) { |
3354 | 0 | set_has_role_name(); |
3355 | 0 | } else { |
3356 | 0 | clear_has_role_name(); |
3357 | 0 | } |
3358 | 0 | role_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), role_name); |
3359 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.master.GrantRevokePermissionRequestPB.role_name) |
3360 | 0 | } |
3361 | | |
3362 | | // optional bool revoke = 7 [default = false]; |
3363 | 1.44k | inline bool GrantRevokePermissionRequestPB::has_revoke() const { |
3364 | 1.44k | return (_has_bits_[0] & 0x00000020u) != 0; |
3365 | 1.44k | } |
3366 | 1.44k | inline void GrantRevokePermissionRequestPB::set_has_revoke() { |
3367 | 1.44k | _has_bits_[0] |= 0x00000020u; |
3368 | 1.44k | } |
3369 | 0 | inline void GrantRevokePermissionRequestPB::clear_has_revoke() { |
3370 | 0 | _has_bits_[0] &= ~0x00000020u; |
3371 | 0 | } |
3372 | 0 | inline void GrantRevokePermissionRequestPB::clear_revoke() { |
3373 | 0 | revoke_ = false; |
3374 | 0 | clear_has_revoke(); |
3375 | 0 | } |
3376 | 2.53k | inline bool GrantRevokePermissionRequestPB::revoke() const { |
3377 | | // @@protoc_insertion_point(field_get:yb.master.GrantRevokePermissionRequestPB.revoke) |
3378 | 2.53k | return revoke_; |
3379 | 2.53k | } |
3380 | 721 | inline void GrantRevokePermissionRequestPB::set_revoke(bool value) { |
3381 | 721 | set_has_revoke(); |
3382 | 721 | revoke_ = value; |
3383 | | // @@protoc_insertion_point(field_set:yb.master.GrantRevokePermissionRequestPB.revoke) |
3384 | 721 | } |
3385 | | |
3386 | | // ------------------------------------------------------------------- |
3387 | | |
3388 | | // GrantRevokePermissionResponsePB |
3389 | | |
3390 | | // optional .yb.master.MasterErrorPB error = 1; |
3391 | 3.60k | inline bool GrantRevokePermissionResponsePB::has_error() const { |
3392 | 3.60k | return (_has_bits_[0] & 0x00000001u) != 0; |
3393 | 3.60k | } |
3394 | 0 | inline void GrantRevokePermissionResponsePB::set_has_error() { |
3395 | 0 | _has_bits_[0] |= 0x00000001u; |
3396 | 0 | } |
3397 | 0 | inline void GrantRevokePermissionResponsePB::clear_has_error() { |
3398 | 0 | _has_bits_[0] &= ~0x00000001u; |
3399 | 0 | } |
3400 | 0 | inline const ::yb::master::MasterErrorPB& GrantRevokePermissionResponsePB::error() const { |
3401 | 0 | const ::yb::master::MasterErrorPB* p = error_; |
3402 | 0 | // @@protoc_insertion_point(field_get:yb.master.GrantRevokePermissionResponsePB.error) |
3403 | 0 | return p != NULL ? *p : *reinterpret_cast<const ::yb::master::MasterErrorPB*>( |
3404 | 0 | &::yb::master::_MasterErrorPB_default_instance_); |
3405 | 0 | } |
3406 | 0 | inline ::yb::master::MasterErrorPB* GrantRevokePermissionResponsePB::release_error() { |
3407 | 0 | // @@protoc_insertion_point(field_release:yb.master.GrantRevokePermissionResponsePB.error) |
3408 | 0 | clear_has_error(); |
3409 | 0 | ::yb::master::MasterErrorPB* temp = error_; |
3410 | 0 | error_ = NULL; |
3411 | 0 | return temp; |
3412 | 0 | } |
3413 | 0 | inline ::yb::master::MasterErrorPB* GrantRevokePermissionResponsePB::mutable_error() { |
3414 | 0 | set_has_error(); |
3415 | 0 | if (error_ == NULL) { |
3416 | 0 | error_ = new ::yb::master::MasterErrorPB; |
3417 | 0 | } |
3418 | | // @@protoc_insertion_point(field_mutable:yb.master.GrantRevokePermissionResponsePB.error) |
3419 | 0 | return error_; |
3420 | 0 | } |
3421 | 0 | inline void GrantRevokePermissionResponsePB::set_allocated_error(::yb::master::MasterErrorPB* error) { |
3422 | 0 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
3423 | 0 | if (message_arena == NULL) { |
3424 | 0 | delete reinterpret_cast< ::google::protobuf::MessageLite*>(error_); |
3425 | 0 | } |
3426 | 0 | if (error) { |
3427 | 0 | ::google::protobuf::Arena* submessage_arena = NULL; |
3428 | 0 | if (message_arena != submessage_arena) { |
3429 | 0 | error = ::google::protobuf::internal::GetOwnedMessage( |
3430 | 0 | message_arena, error, submessage_arena); |
3431 | 0 | } |
3432 | 0 | set_has_error(); |
3433 | 0 | } else { |
3434 | 0 | clear_has_error(); |
3435 | 0 | } |
3436 | 0 | error_ = error; |
3437 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.master.GrantRevokePermissionResponsePB.error) |
3438 | 0 | } |
3439 | | |
3440 | | // ------------------------------------------------------------------- |
3441 | | |
3442 | | // GetPermissionsRequestPB |
3443 | | |
3444 | | // optional uint64 if_version_greater_than = 1; |
3445 | 351k | inline bool GetPermissionsRequestPB::has_if_version_greater_than() const { |
3446 | 351k | return (_has_bits_[0] & 0x00000001u) != 0; |
3447 | 351k | } |
3448 | 231k | inline void GetPermissionsRequestPB::set_has_if_version_greater_than() { |
3449 | 231k | _has_bits_[0] |= 0x00000001u; |
3450 | 231k | } |
3451 | 0 | inline void GetPermissionsRequestPB::clear_has_if_version_greater_than() { |
3452 | 0 | _has_bits_[0] &= ~0x00000001u; |
3453 | 0 | } |
3454 | 0 | inline void GetPermissionsRequestPB::clear_if_version_greater_than() { |
3455 | 0 | if_version_greater_than_ = GOOGLE_ULONGLONG(0); |
3456 | 0 | clear_has_if_version_greater_than(); |
3457 | 0 | } |
3458 | 463k | inline ::google::protobuf::uint64 GetPermissionsRequestPB::if_version_greater_than() const { |
3459 | | // @@protoc_insertion_point(field_get:yb.master.GetPermissionsRequestPB.if_version_greater_than) |
3460 | 463k | return if_version_greater_than_; |
3461 | 463k | } |
3462 | 115k | inline void GetPermissionsRequestPB::set_if_version_greater_than(::google::protobuf::uint64 value) { |
3463 | 115k | set_has_if_version_greater_than(); |
3464 | 115k | if_version_greater_than_ = value; |
3465 | | // @@protoc_insertion_point(field_set:yb.master.GetPermissionsRequestPB.if_version_greater_than) |
3466 | 115k | } |
3467 | | |
3468 | | // ------------------------------------------------------------------- |
3469 | | |
3470 | | // ResourcePermissionInfoPB |
3471 | | |
3472 | | // optional string canonical_resource = 1; |
3473 | 41.6k | inline bool ResourcePermissionInfoPB::has_canonical_resource() const { |
3474 | 41.6k | return (_has_bits_[0] & 0x00000001u) != 0; |
3475 | 41.6k | } |
3476 | 57.5k | inline void ResourcePermissionInfoPB::set_has_canonical_resource() { |
3477 | 57.5k | _has_bits_[0] |= 0x00000001u; |
3478 | 57.5k | } |
3479 | 0 | inline void ResourcePermissionInfoPB::clear_has_canonical_resource() { |
3480 | 0 | _has_bits_[0] &= ~0x00000001u; |
3481 | 0 | } |
3482 | 0 | inline void ResourcePermissionInfoPB::clear_canonical_resource() { |
3483 | 0 | canonical_resource_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3484 | 0 | clear_has_canonical_resource(); |
3485 | 0 | } |
3486 | 187k | inline const ::std::string& ResourcePermissionInfoPB::canonical_resource() const { |
3487 | | // @@protoc_insertion_point(field_get:yb.master.ResourcePermissionInfoPB.canonical_resource) |
3488 | 187k | return canonical_resource_.GetNoArena(); |
3489 | 187k | } |
3490 | 15.7k | inline void ResourcePermissionInfoPB::set_canonical_resource(const ::std::string& value) { |
3491 | 15.7k | set_has_canonical_resource(); |
3492 | 15.7k | canonical_resource_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
3493 | | // @@protoc_insertion_point(field_set:yb.master.ResourcePermissionInfoPB.canonical_resource) |
3494 | 15.7k | } |
3495 | | #if LANG_CXX11 |
3496 | 0 | inline void ResourcePermissionInfoPB::set_canonical_resource(::std::string&& value) { |
3497 | 0 | set_has_canonical_resource(); |
3498 | 0 | canonical_resource_.SetNoArena( |
3499 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
3500 | 0 | // @@protoc_insertion_point(field_set_rvalue:yb.master.ResourcePermissionInfoPB.canonical_resource) |
3501 | 0 | } |
3502 | | #endif |
3503 | 0 | inline void ResourcePermissionInfoPB::set_canonical_resource(const char* value) { |
3504 | 0 | GOOGLE_DCHECK(value != NULL); |
3505 | 0 | set_has_canonical_resource(); |
3506 | 0 | canonical_resource_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
3507 | 0 | // @@protoc_insertion_point(field_set_char:yb.master.ResourcePermissionInfoPB.canonical_resource) |
3508 | 0 | } |
3509 | 0 | inline void ResourcePermissionInfoPB::set_canonical_resource(const char* value, size_t size) { |
3510 | 0 | set_has_canonical_resource(); |
3511 | 0 | canonical_resource_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
3512 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
3513 | 0 | // @@protoc_insertion_point(field_set_pointer:yb.master.ResourcePermissionInfoPB.canonical_resource) |
3514 | 0 | } |
3515 | 20.9k | inline ::std::string* ResourcePermissionInfoPB::mutable_canonical_resource() { |
3516 | 20.9k | set_has_canonical_resource(); |
3517 | | // @@protoc_insertion_point(field_mutable:yb.master.ResourcePermissionInfoPB.canonical_resource) |
3518 | 20.9k | return canonical_resource_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3519 | 20.9k | } |
3520 | 0 | inline ::std::string* ResourcePermissionInfoPB::release_canonical_resource() { |
3521 | 0 | // @@protoc_insertion_point(field_release:yb.master.ResourcePermissionInfoPB.canonical_resource) |
3522 | 0 | clear_has_canonical_resource(); |
3523 | 0 | return canonical_resource_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3524 | 0 | } |
3525 | 0 | inline void ResourcePermissionInfoPB::set_allocated_canonical_resource(::std::string* canonical_resource) { |
3526 | 0 | if (canonical_resource != NULL) { |
3527 | 0 | set_has_canonical_resource(); |
3528 | 0 | } else { |
3529 | 0 | clear_has_canonical_resource(); |
3530 | 0 | } |
3531 | 0 | canonical_resource_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), canonical_resource); |
3532 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.master.ResourcePermissionInfoPB.canonical_resource) |
3533 | 0 | } |
3534 | | |
3535 | | // optional uint32 permissions = 2; |
3536 | 62.5k | inline bool ResourcePermissionInfoPB::has_permissions() const { |
3537 | 62.5k | return (_has_bits_[0] & 0x00000002u) != 0; |
3538 | 62.5k | } |
3539 | 36.6k | inline void ResourcePermissionInfoPB::set_has_permissions() { |
3540 | 36.6k | _has_bits_[0] |= 0x00000002u; |
3541 | 36.6k | } |
3542 | 0 | inline void ResourcePermissionInfoPB::clear_has_permissions() { |
3543 | 0 | _has_bits_[0] &= ~0x00000002u; |
3544 | 0 | } |
3545 | 0 | inline void ResourcePermissionInfoPB::clear_permissions() { |
3546 | 0 | permissions_ = 0u; |
3547 | 0 | clear_has_permissions(); |
3548 | 0 | } |
3549 | 83.4k | inline ::google::protobuf::uint32 ResourcePermissionInfoPB::permissions() const { |
3550 | | // @@protoc_insertion_point(field_get:yb.master.ResourcePermissionInfoPB.permissions) |
3551 | 83.4k | return permissions_; |
3552 | 83.4k | } |
3553 | 15.7k | inline void ResourcePermissionInfoPB::set_permissions(::google::protobuf::uint32 value) { |
3554 | 15.7k | set_has_permissions(); |
3555 | 15.7k | permissions_ = value; |
3556 | | // @@protoc_insertion_point(field_set:yb.master.ResourcePermissionInfoPB.permissions) |
3557 | 15.7k | } |
3558 | | |
3559 | | // ------------------------------------------------------------------- |
3560 | | |
3561 | | // RolePermissionInfoPB |
3562 | | |
3563 | | // optional string role = 1; |
3564 | 35.0k | inline bool RolePermissionInfoPB::has_role() const { |
3565 | 35.0k | return (_has_bits_[0] & 0x00000001u) != 0; |
3566 | 35.0k | } |
3567 | 53.9k | inline void RolePermissionInfoPB::set_has_role() { |
3568 | 53.9k | _has_bits_[0] |= 0x00000001u; |
3569 | 53.9k | } |
3570 | 0 | inline void RolePermissionInfoPB::clear_has_role() { |
3571 | 0 | _has_bits_[0] &= ~0x00000001u; |
3572 | 0 | } |
3573 | 0 | inline void RolePermissionInfoPB::clear_role() { |
3574 | 0 | role_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3575 | 0 | clear_has_role(); |
3576 | 0 | } |
3577 | 158k | inline const ::std::string& RolePermissionInfoPB::role() const { |
3578 | | // @@protoc_insertion_point(field_get:yb.master.RolePermissionInfoPB.role) |
3579 | 158k | return role_.GetNoArena(); |
3580 | 158k | } |
3581 | 18.6k | inline void RolePermissionInfoPB::set_role(const ::std::string& value) { |
3582 | 18.6k | set_has_role(); |
3583 | 18.6k | role_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
3584 | | // @@protoc_insertion_point(field_set:yb.master.RolePermissionInfoPB.role) |
3585 | 18.6k | } |
3586 | | #if LANG_CXX11 |
3587 | 0 | inline void RolePermissionInfoPB::set_role(::std::string&& value) { |
3588 | 0 | set_has_role(); |
3589 | 0 | role_.SetNoArena( |
3590 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
3591 | 0 | // @@protoc_insertion_point(field_set_rvalue:yb.master.RolePermissionInfoPB.role) |
3592 | 0 | } |
3593 | | #endif |
3594 | 0 | inline void RolePermissionInfoPB::set_role(const char* value) { |
3595 | 0 | GOOGLE_DCHECK(value != NULL); |
3596 | 0 | set_has_role(); |
3597 | 0 | role_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
3598 | 0 | // @@protoc_insertion_point(field_set_char:yb.master.RolePermissionInfoPB.role) |
3599 | 0 | } |
3600 | 0 | inline void RolePermissionInfoPB::set_role(const char* value, size_t size) { |
3601 | 0 | set_has_role(); |
3602 | 0 | role_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
3603 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
3604 | 0 | // @@protoc_insertion_point(field_set_pointer:yb.master.RolePermissionInfoPB.role) |
3605 | 0 | } |
3606 | 17.6k | inline ::std::string* RolePermissionInfoPB::mutable_role() { |
3607 | 17.6k | set_has_role(); |
3608 | | // @@protoc_insertion_point(field_mutable:yb.master.RolePermissionInfoPB.role) |
3609 | 17.6k | return role_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3610 | 17.6k | } |
3611 | 0 | inline ::std::string* RolePermissionInfoPB::release_role() { |
3612 | 0 | // @@protoc_insertion_point(field_release:yb.master.RolePermissionInfoPB.role) |
3613 | 0 | clear_has_role(); |
3614 | 0 | return role_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3615 | 0 | } |
3616 | 0 | inline void RolePermissionInfoPB::set_allocated_role(::std::string* role) { |
3617 | 0 | if (role != NULL) { |
3618 | 0 | set_has_role(); |
3619 | 0 | } else { |
3620 | 0 | clear_has_role(); |
3621 | 0 | } |
3622 | 0 | role_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), role); |
3623 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.master.RolePermissionInfoPB.role) |
3624 | 0 | } |
3625 | | |
3626 | | // optional uint32 all_keyspaces_permissions = 2; |
3627 | 52.7k | inline bool RolePermissionInfoPB::has_all_keyspaces_permissions() const { |
3628 | 52.7k | return (_has_bits_[0] & 0x00000004u) != 0; |
3629 | 52.7k | } |
3630 | 66.8k | inline void RolePermissionInfoPB::set_has_all_keyspaces_permissions() { |
3631 | 66.8k | _has_bits_[0] |= 0x00000004u; |
3632 | 66.8k | } |
3633 | 0 | inline void RolePermissionInfoPB::clear_has_all_keyspaces_permissions() { |
3634 | 0 | _has_bits_[0] &= ~0x00000004u; |
3635 | 0 | } |
3636 | 0 | inline void RolePermissionInfoPB::clear_all_keyspaces_permissions() { |
3637 | 0 | all_keyspaces_permissions_ = 0u; |
3638 | 0 | clear_has_all_keyspaces_permissions(); |
3639 | 0 | } |
3640 | 89.3k | inline ::google::protobuf::uint32 RolePermissionInfoPB::all_keyspaces_permissions() const { |
3641 | | // @@protoc_insertion_point(field_get:yb.master.RolePermissionInfoPB.all_keyspaces_permissions) |
3642 | 89.3k | return all_keyspaces_permissions_; |
3643 | 89.3k | } |
3644 | 49.2k | inline void RolePermissionInfoPB::set_all_keyspaces_permissions(::google::protobuf::uint32 value) { |
3645 | 49.2k | set_has_all_keyspaces_permissions(); |
3646 | 49.2k | all_keyspaces_permissions_ = value; |
3647 | | // @@protoc_insertion_point(field_set:yb.master.RolePermissionInfoPB.all_keyspaces_permissions) |
3648 | 49.2k | } |
3649 | | |
3650 | | // optional uint32 all_roles_permissions = 3; |
3651 | 52.6k | inline bool RolePermissionInfoPB::has_all_roles_permissions() const { |
3652 | 52.6k | return (_has_bits_[0] & 0x00000008u) != 0; |
3653 | 52.6k | } |
3654 | 66.8k | inline void RolePermissionInfoPB::set_has_all_roles_permissions() { |
3655 | 66.8k | _has_bits_[0] |= 0x00000008u; |
3656 | 66.8k | } |
3657 | 0 | inline void RolePermissionInfoPB::clear_has_all_roles_permissions() { |
3658 | 0 | _has_bits_[0] &= ~0x00000008u; |
3659 | 0 | } |
3660 | 0 | inline void RolePermissionInfoPB::clear_all_roles_permissions() { |
3661 | 0 | all_roles_permissions_ = 0u; |
3662 | 0 | clear_has_all_roles_permissions(); |
3663 | 0 | } |
3664 | 89.3k | inline ::google::protobuf::uint32 RolePermissionInfoPB::all_roles_permissions() const { |
3665 | | // @@protoc_insertion_point(field_get:yb.master.RolePermissionInfoPB.all_roles_permissions) |
3666 | 89.3k | return all_roles_permissions_; |
3667 | 89.3k | } |
3668 | 49.2k | inline void RolePermissionInfoPB::set_all_roles_permissions(::google::protobuf::uint32 value) { |
3669 | 49.2k | set_has_all_roles_permissions(); |
3670 | 49.2k | all_roles_permissions_ = value; |
3671 | | // @@protoc_insertion_point(field_set:yb.master.RolePermissionInfoPB.all_roles_permissions) |
3672 | 49.2k | } |
3673 | | |
3674 | | // repeated .yb.master.ResourcePermissionInfoPB resource_permissions = 4; |
3675 | 52.6k | inline int RolePermissionInfoPB::resource_permissions_size() const { |
3676 | 52.6k | return resource_permissions_.size(); |
3677 | 52.6k | } |
3678 | 0 | inline void RolePermissionInfoPB::clear_resource_permissions() { |
3679 | 0 | resource_permissions_.Clear(); |
3680 | 0 | } |
3681 | 62.4k | inline const ::yb::master::ResourcePermissionInfoPB& RolePermissionInfoPB::resource_permissions(int index) const { |
3682 | | // @@protoc_insertion_point(field_get:yb.master.RolePermissionInfoPB.resource_permissions) |
3683 | 62.4k | return resource_permissions_.Get(index); |
3684 | 62.4k | } |
3685 | 0 | inline ::yb::master::ResourcePermissionInfoPB* RolePermissionInfoPB::mutable_resource_permissions(int index) { |
3686 | 0 | // @@protoc_insertion_point(field_mutable:yb.master.RolePermissionInfoPB.resource_permissions) |
3687 | 0 | return resource_permissions_.Mutable(index); |
3688 | 0 | } |
3689 | 36.6k | inline ::yb::master::ResourcePermissionInfoPB* RolePermissionInfoPB::add_resource_permissions() { |
3690 | | // @@protoc_insertion_point(field_add:yb.master.RolePermissionInfoPB.resource_permissions) |
3691 | 36.6k | return resource_permissions_.Add(); |
3692 | 36.6k | } |
3693 | | inline ::google::protobuf::RepeatedPtrField< ::yb::master::ResourcePermissionInfoPB >* |
3694 | 0 | RolePermissionInfoPB::mutable_resource_permissions() { |
3695 | 0 | // @@protoc_insertion_point(field_mutable_list:yb.master.RolePermissionInfoPB.resource_permissions) |
3696 | 0 | return &resource_permissions_; |
3697 | 0 | } |
3698 | | inline const ::google::protobuf::RepeatedPtrField< ::yb::master::ResourcePermissionInfoPB >& |
3699 | 17.6k | RolePermissionInfoPB::resource_permissions() const { |
3700 | | // @@protoc_insertion_point(field_list:yb.master.RolePermissionInfoPB.resource_permissions) |
3701 | 17.6k | return resource_permissions_; |
3702 | 17.6k | } |
3703 | | |
3704 | | // optional string salted_hash = 5; |
3705 | 35.0k | inline bool RolePermissionInfoPB::has_salted_hash() const { |
3706 | 35.0k | return (_has_bits_[0] & 0x00000002u) != 0; |
3707 | 35.0k | } |
3708 | 53.8k | inline void RolePermissionInfoPB::set_has_salted_hash() { |
3709 | 53.8k | _has_bits_[0] |= 0x00000002u; |
3710 | 53.8k | } |
3711 | 0 | inline void RolePermissionInfoPB::clear_has_salted_hash() { |
3712 | 0 | _has_bits_[0] &= ~0x00000002u; |
3713 | 0 | } |
3714 | 0 | inline void RolePermissionInfoPB::clear_salted_hash() { |
3715 | 0 | salted_hash_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3716 | 0 | clear_has_salted_hash(); |
3717 | 0 | } |
3718 | 140k | inline const ::std::string& RolePermissionInfoPB::salted_hash() const { |
3719 | | // @@protoc_insertion_point(field_get:yb.master.RolePermissionInfoPB.salted_hash) |
3720 | 140k | return salted_hash_.GetNoArena(); |
3721 | 140k | } |
3722 | 18.6k | inline void RolePermissionInfoPB::set_salted_hash(const ::std::string& value) { |
3723 | 18.6k | set_has_salted_hash(); |
3724 | 18.6k | salted_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
3725 | | // @@protoc_insertion_point(field_set:yb.master.RolePermissionInfoPB.salted_hash) |
3726 | 18.6k | } |
3727 | | #if LANG_CXX11 |
3728 | 0 | inline void RolePermissionInfoPB::set_salted_hash(::std::string&& value) { |
3729 | 0 | set_has_salted_hash(); |
3730 | 0 | salted_hash_.SetNoArena( |
3731 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
3732 | 0 | // @@protoc_insertion_point(field_set_rvalue:yb.master.RolePermissionInfoPB.salted_hash) |
3733 | 0 | } |
3734 | | #endif |
3735 | 0 | inline void RolePermissionInfoPB::set_salted_hash(const char* value) { |
3736 | 0 | GOOGLE_DCHECK(value != NULL); |
3737 | 0 | set_has_salted_hash(); |
3738 | 0 | salted_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
3739 | 0 | // @@protoc_insertion_point(field_set_char:yb.master.RolePermissionInfoPB.salted_hash) |
3740 | 0 | } |
3741 | 0 | inline void RolePermissionInfoPB::set_salted_hash(const char* value, size_t size) { |
3742 | 0 | set_has_salted_hash(); |
3743 | 0 | salted_hash_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
3744 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
3745 | 0 | // @@protoc_insertion_point(field_set_pointer:yb.master.RolePermissionInfoPB.salted_hash) |
3746 | 0 | } |
3747 | 17.6k | inline ::std::string* RolePermissionInfoPB::mutable_salted_hash() { |
3748 | 17.6k | set_has_salted_hash(); |
3749 | | // @@protoc_insertion_point(field_mutable:yb.master.RolePermissionInfoPB.salted_hash) |
3750 | 17.6k | return salted_hash_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3751 | 17.6k | } |
3752 | 0 | inline ::std::string* RolePermissionInfoPB::release_salted_hash() { |
3753 | 0 | // @@protoc_insertion_point(field_release:yb.master.RolePermissionInfoPB.salted_hash) |
3754 | 0 | clear_has_salted_hash(); |
3755 | 0 | return salted_hash_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
3756 | 0 | } |
3757 | 0 | inline void RolePermissionInfoPB::set_allocated_salted_hash(::std::string* salted_hash) { |
3758 | 0 | if (salted_hash != NULL) { |
3759 | 0 | set_has_salted_hash(); |
3760 | 0 | } else { |
3761 | 0 | clear_has_salted_hash(); |
3762 | 0 | } |
3763 | 0 | salted_hash_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), salted_hash); |
3764 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.master.RolePermissionInfoPB.salted_hash) |
3765 | 0 | } |
3766 | | |
3767 | | // optional bool can_login = 6; |
3768 | 35.0k | inline bool RolePermissionInfoPB::has_can_login() const { |
3769 | 35.0k | return (_has_bits_[0] & 0x00000010u) != 0; |
3770 | 35.0k | } |
3771 | 36.3k | inline void RolePermissionInfoPB::set_has_can_login() { |
3772 | 36.3k | _has_bits_[0] |= 0x00000010u; |
3773 | 36.3k | } |
3774 | 0 | inline void RolePermissionInfoPB::clear_has_can_login() { |
3775 | 0 | _has_bits_[0] &= ~0x00000010u; |
3776 | 0 | } |
3777 | 0 | inline void RolePermissionInfoPB::clear_can_login() { |
3778 | 0 | can_login_ = false; |
3779 | 0 | clear_has_can_login(); |
3780 | 0 | } |
3781 | 35.2k | inline bool RolePermissionInfoPB::can_login() const { |
3782 | | // @@protoc_insertion_point(field_get:yb.master.RolePermissionInfoPB.can_login) |
3783 | 35.2k | return can_login_; |
3784 | 35.2k | } |
3785 | 18.6k | inline void RolePermissionInfoPB::set_can_login(bool value) { |
3786 | 18.6k | set_has_can_login(); |
3787 | 18.6k | can_login_ = value; |
3788 | | // @@protoc_insertion_point(field_set:yb.master.RolePermissionInfoPB.can_login) |
3789 | 18.6k | } |
3790 | | |
3791 | | // ------------------------------------------------------------------- |
3792 | | |
3793 | | // GetPermissionsResponsePB |
3794 | | |
3795 | | // optional uint64 version = 1; |
3796 | 233k | inline bool GetPermissionsResponsePB::has_version() const { |
3797 | 233k | return (_has_bits_[0] & 0x00000002u) != 0; |
3798 | 233k | } |
3799 | 235k | inline void GetPermissionsResponsePB::set_has_version() { |
3800 | 235k | _has_bits_[0] |= 0x00000002u; |
3801 | 235k | } |
3802 | 0 | inline void GetPermissionsResponsePB::clear_has_version() { |
3803 | 0 | _has_bits_[0] &= ~0x00000002u; |
3804 | 0 | } |
3805 | 0 | inline void GetPermissionsResponsePB::clear_version() { |
3806 | 0 | version_ = GOOGLE_ULONGLONG(0); |
3807 | 0 | clear_has_version(); |
3808 | 0 | } |
3809 | 723k | inline ::google::protobuf::uint64 GetPermissionsResponsePB::version() const { |
3810 | | // @@protoc_insertion_point(field_get:yb.master.GetPermissionsResponsePB.version) |
3811 | 723k | return version_; |
3812 | 723k | } |
3813 | 118k | inline void GetPermissionsResponsePB::set_version(::google::protobuf::uint64 value) { |
3814 | 118k | set_has_version(); |
3815 | 118k | version_ = value; |
3816 | | // @@protoc_insertion_point(field_set:yb.master.GetPermissionsResponsePB.version) |
3817 | 118k | } |
3818 | | |
3819 | | // optional .yb.master.MasterErrorPB error = 2; |
3820 | 583k | inline bool GetPermissionsResponsePB::has_error() const { |
3821 | 583k | return (_has_bits_[0] & 0x00000001u) != 0; |
3822 | 583k | } |
3823 | 0 | inline void GetPermissionsResponsePB::set_has_error() { |
3824 | 0 | _has_bits_[0] |= 0x00000001u; |
3825 | 0 | } |
3826 | 0 | inline void GetPermissionsResponsePB::clear_has_error() { |
3827 | 0 | _has_bits_[0] &= ~0x00000001u; |
3828 | 0 | } |
3829 | 0 | inline const ::yb::master::MasterErrorPB& GetPermissionsResponsePB::error() const { |
3830 | 0 | const ::yb::master::MasterErrorPB* p = error_; |
3831 | 0 | // @@protoc_insertion_point(field_get:yb.master.GetPermissionsResponsePB.error) |
3832 | 0 | return p != NULL ? *p : *reinterpret_cast<const ::yb::master::MasterErrorPB*>( |
3833 | 0 | &::yb::master::_MasterErrorPB_default_instance_); |
3834 | 0 | } |
3835 | 0 | inline ::yb::master::MasterErrorPB* GetPermissionsResponsePB::release_error() { |
3836 | 0 | // @@protoc_insertion_point(field_release:yb.master.GetPermissionsResponsePB.error) |
3837 | 0 | clear_has_error(); |
3838 | 0 | ::yb::master::MasterErrorPB* temp = error_; |
3839 | 0 | error_ = NULL; |
3840 | 0 | return temp; |
3841 | 0 | } |
3842 | 0 | inline ::yb::master::MasterErrorPB* GetPermissionsResponsePB::mutable_error() { |
3843 | 0 | set_has_error(); |
3844 | 0 | if (error_ == NULL) { |
3845 | 0 | error_ = new ::yb::master::MasterErrorPB; |
3846 | 0 | } |
3847 | | // @@protoc_insertion_point(field_mutable:yb.master.GetPermissionsResponsePB.error) |
3848 | 0 | return error_; |
3849 | 0 | } |
3850 | 0 | inline void GetPermissionsResponsePB::set_allocated_error(::yb::master::MasterErrorPB* error) { |
3851 | 0 | ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); |
3852 | 0 | if (message_arena == NULL) { |
3853 | 0 | delete reinterpret_cast< ::google::protobuf::MessageLite*>(error_); |
3854 | 0 | } |
3855 | 0 | if (error) { |
3856 | 0 | ::google::protobuf::Arena* submessage_arena = NULL; |
3857 | 0 | if (message_arena != submessage_arena) { |
3858 | 0 | error = ::google::protobuf::internal::GetOwnedMessage( |
3859 | 0 | message_arena, error, submessage_arena); |
3860 | 0 | } |
3861 | 0 | set_has_error(); |
3862 | 0 | } else { |
3863 | 0 | clear_has_error(); |
3864 | 0 | } |
3865 | 0 | error_ = error; |
3866 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.master.GetPermissionsResponsePB.error) |
3867 | 0 | } |
3868 | | |
3869 | | // repeated .yb.master.RolePermissionInfoPB role_permissions = 3; |
3870 | 459k | inline int GetPermissionsResponsePB::role_permissions_size() const { |
3871 | 459k | return role_permissions_.size(); |
3872 | 459k | } |
3873 | 0 | inline void GetPermissionsResponsePB::clear_role_permissions() { |
3874 | 0 | role_permissions_.Clear(); |
3875 | 0 | } |
3876 | 52.6k | inline const ::yb::master::RolePermissionInfoPB& GetPermissionsResponsePB::role_permissions(int index) const { |
3877 | | // @@protoc_insertion_point(field_get:yb.master.GetPermissionsResponsePB.role_permissions) |
3878 | 52.6k | return role_permissions_.Get(index); |
3879 | 52.6k | } |
3880 | 0 | inline ::yb::master::RolePermissionInfoPB* GetPermissionsResponsePB::mutable_role_permissions(int index) { |
3881 | 0 | // @@protoc_insertion_point(field_mutable:yb.master.GetPermissionsResponsePB.role_permissions) |
3882 | 0 | return role_permissions_.Mutable(index); |
3883 | 0 | } |
3884 | 36.3k | inline ::yb::master::RolePermissionInfoPB* GetPermissionsResponsePB::add_role_permissions() { |
3885 | | // @@protoc_insertion_point(field_add:yb.master.GetPermissionsResponsePB.role_permissions) |
3886 | 36.3k | return role_permissions_.Add(); |
3887 | 36.3k | } |
3888 | | inline ::google::protobuf::RepeatedPtrField< ::yb::master::RolePermissionInfoPB >* |
3889 | 0 | GetPermissionsResponsePB::mutable_role_permissions() { |
3890 | 0 | // @@protoc_insertion_point(field_mutable_list:yb.master.GetPermissionsResponsePB.role_permissions) |
3891 | 0 | return &role_permissions_; |
3892 | 0 | } |
3893 | | inline const ::google::protobuf::RepeatedPtrField< ::yb::master::RolePermissionInfoPB >& |
3894 | 9.51k | GetPermissionsResponsePB::role_permissions() const { |
3895 | | // @@protoc_insertion_point(field_list:yb.master.GetPermissionsResponsePB.role_permissions) |
3896 | 9.51k | return role_permissions_; |
3897 | 9.51k | } |
3898 | | |
3899 | | #ifdef __GNUC__ |
3900 | | #pragma GCC diagnostic pop |
3901 | | #endif // __GNUC__ |
3902 | | // ------------------------------------------------------------------- |
3903 | | |
3904 | | // ------------------------------------------------------------------- |
3905 | | |
3906 | | // ------------------------------------------------------------------- |
3907 | | |
3908 | | // ------------------------------------------------------------------- |
3909 | | |
3910 | | // ------------------------------------------------------------------- |
3911 | | |
3912 | | // ------------------------------------------------------------------- |
3913 | | |
3914 | | // ------------------------------------------------------------------- |
3915 | | |
3916 | | // ------------------------------------------------------------------- |
3917 | | |
3918 | | // ------------------------------------------------------------------- |
3919 | | |
3920 | | // ------------------------------------------------------------------- |
3921 | | |
3922 | | // ------------------------------------------------------------------- |
3923 | | |
3924 | | // ------------------------------------------------------------------- |
3925 | | |
3926 | | // ------------------------------------------------------------------- |
3927 | | |
3928 | | |
3929 | | // @@protoc_insertion_point(namespace_scope) |
3930 | | |
3931 | | } // namespace master |
3932 | | } // namespace yb |
3933 | | |
3934 | | // @@protoc_insertion_point(global_scope) |
3935 | | |
3936 | | #endif // PROTOBUF_yb_2fmaster_2fmaster_5fdcl_2eproto__INCLUDED |