OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
auth.pb.cc
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: auth.proto
3 
4 #include "auth.pb.h"
5 
6 #include <algorithm>
7 
8 #include <google/protobuf/stubs/common.h>
9 #include <google/protobuf/stubs/port.h>
10 #include <google/protobuf/stubs/once.h>
11 #include <google/protobuf/io/coded_stream.h>
12 #include <google/protobuf/wire_format_lite_inl.h>
13 #include <google/protobuf/descriptor.h>
14 #include <google/protobuf/generated_message_reflection.h>
15 #include <google/protobuf/reflection_ops.h>
16 #include <google/protobuf/wire_format.h>
17 // This is a temporary google only hack
18 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
19 #include "third_party/protobuf/version.h"
20 #endif
21 // @@protoc_insertion_point(includes)
22 namespace authpb {
24  public:
25  ::google::protobuf::internal::ExplicitlyConstructed<User>
29  public:
30  ::google::protobuf::internal::ExplicitlyConstructed<Permission>
34  public:
35  ::google::protobuf::internal::ExplicitlyConstructed<Role>
38 } // namespace authpb
39 namespace protobuf_auth_2eproto {
41  GOOGLE_PROTOBUF_VERIFY_VERSION;
42 
43 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
44  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
45 #else
46  ::google::protobuf::internal::InitProtobufDefaults();
47 #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
48  {
50  new (ptr) ::authpb::User();
51  ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
52  }
54 }
55 
57  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
58  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsUserImpl);
59 }
60 
62  GOOGLE_PROTOBUF_VERIFY_VERSION;
63 
64 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
65  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
66 #else
67  ::google::protobuf::internal::InitProtobufDefaults();
68 #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
69  {
71  new (ptr) ::authpb::Permission();
72  ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
73  }
75 }
76 
78  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
79  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsPermissionImpl);
80 }
81 
83  GOOGLE_PROTOBUF_VERIFY_VERSION;
84 
85 #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
86  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
87 #else
88  ::google::protobuf::internal::InitProtobufDefaults();
89 #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
91  {
93  new (ptr) ::authpb::Role();
94  ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
95  }
97 }
98 
100  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
101  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsRoleImpl);
102 }
103 
104 ::google::protobuf::Metadata file_level_metadata[3];
105 const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1];
106 
107 const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
108  ~0u, // no _has_bits_
109  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::authpb::User, _internal_metadata_),
110  ~0u, // no _extensions_
111  ~0u, // no _oneof_case_
112  ~0u, // no _weak_field_map_
113  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::authpb::User, name_),
114  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::authpb::User, password_),
115  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::authpb::User, roles_),
116  ~0u, // no _has_bits_
117  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::authpb::Permission, _internal_metadata_),
118  ~0u, // no _extensions_
119  ~0u, // no _oneof_case_
120  ~0u, // no _weak_field_map_
121  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::authpb::Permission, key_),
122  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::authpb::Permission, permtype_),
123  ~0u, // no _has_bits_
124  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::authpb::Role, _internal_metadata_),
125  ~0u, // no _extensions_
126  ~0u, // no _oneof_case_
127  ~0u, // no _weak_field_map_
128  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::authpb::Role, name_),
129  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::authpb::Role, keypermission_),
130 };
131 static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
132  { 0, -1, sizeof(::authpb::User)},
133  { 8, -1, sizeof(::authpb::Permission)},
134  { 15, -1, sizeof(::authpb::Role)},
135 };
136 
137 static ::google::protobuf::Message const * const file_default_instances[] = {
138  reinterpret_cast<const ::google::protobuf::Message*>(&::authpb::_User_default_instance_),
139  reinterpret_cast<const ::google::protobuf::Message*>(&::authpb::_Permission_default_instance_),
140  reinterpret_cast<const ::google::protobuf::Message*>(&::authpb::_Role_default_instance_),
141 };
142 
144  AddDescriptors();
145  ::google::protobuf::MessageFactory* factory = NULL;
146  AssignDescriptors(
147  "auth.proto", schemas, file_default_instances, TableStruct::offsets, factory,
149 }
150 
152  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
153  ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
154 }
155 
156 void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
157 void protobuf_RegisterTypes(const ::std::string&) {
159  ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 3);
160 }
161 
163  InitDefaults();
164  static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
165  "\n\nauth.proto\022\006authpb\"5\n\004User\022\014\n\004name\030\001 \001"
166  "(\014\022\020\n\010password\030\002 \001(\014\022\r\n\005roles\030\003 \003(\t\"p\n\nP"
167  "ermission\022\013\n\003key\030\001 \001(\014\022)\n\010permType\030\002 \001(\016"
168  "2\027.authpb.Permission.Type\"*\n\004Type\022\010\n\004REA"
169  "D\020\000\022\t\n\005WRITE\020\001\022\r\n\tREADWRITE\020\002\"\?\n\004Role\022\014\n"
170  "\004name\030\001 \001(\014\022)\n\rkeyPermission\030\002 \003(\0132\022.aut"
171  "hpb.Permissionb\006proto3"
172  };
173  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
174  descriptor, 262);
175  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
176  "auth.proto", &protobuf_RegisterTypes);
177 }
178 
180  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
181  ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
182 }
183 // Force AddDescriptors() to be called at dynamic initialization time.
186  AddDescriptors();
187  }
189 } // namespace protobuf_auth_2eproto
190 namespace authpb {
191 const ::google::protobuf::EnumDescriptor* Permission_Type_descriptor() {
194 }
195 bool Permission_Type_IsValid(int value) {
196  switch (value) {
197  case 0:
198  case 1:
199  case 2:
200  return true;
201  default:
202  return false;
203  }
204 }
205 
206 #if !defined(_MSC_VER) || _MSC_VER >= 1900
207 const Permission_Type Permission::READ;
208 const Permission_Type Permission::WRITE;
209 const Permission_Type Permission::READWRITE;
210 const Permission_Type Permission::Type_MIN;
211 const Permission_Type Permission::Type_MAX;
212 const int Permission::Type_ARRAYSIZE;
213 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
214 
215 // ===================================================================
216 
217 void User::InitAsDefaultInstance() {
218 }
219 #if !defined(_MSC_VER) || _MSC_VER >= 1900
220 const int User::kNameFieldNumber;
221 const int User::kPasswordFieldNumber;
222 const int User::kRolesFieldNumber;
223 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
224 
225 User::User()
226  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
227  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
229  }
230  SharedCtor();
231  // @@protoc_insertion_point(constructor:authpb.User)
232 }
233 User::User(const User& from)
234  : ::google::protobuf::Message(),
235  _internal_metadata_(NULL),
236  roles_(from.roles_),
237  _cached_size_(0) {
239  name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
240  if (from.name().size() > 0) {
241  name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
242  }
243  password_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
244  if (from.password().size() > 0) {
245  password_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.password_);
246  }
247  // @@protoc_insertion_point(copy_constructor:authpb.User)
248 }
249 
251  name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
252  password_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
253  _cached_size_ = 0;
254 }
255 
257  // @@protoc_insertion_point(destructor:authpb.User)
258  SharedDtor();
259 }
260 
262  name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
263  password_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
264 }
265 
266 void User::SetCachedSize(int size) const {
267  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
268  _cached_size_ = size;
269  GOOGLE_SAFE_CONCURRENT_WRITES_END();
270 }
271 const ::google::protobuf::Descriptor* User::descriptor() {
274 }
275 
278  return *internal_default_instance();
279 }
280 
281 User* User::New(::google::protobuf::Arena* arena) const {
282  User* n = new User;
283  if (arena != NULL) {
284  arena->Own(n);
285  }
286  return n;
287 }
288 
289 void User::Clear() {
290 // @@protoc_insertion_point(message_clear_start:authpb.User)
291  ::google::protobuf::uint32 cached_has_bits = 0;
292  // Prevent compiler warnings about cached_has_bits being unused
293  (void) cached_has_bits;
294 
295  roles_.Clear();
296  name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
297  password_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
298  _internal_metadata_.Clear();
299 }
300 
302  ::google::protobuf::io::CodedInputStream* input) {
303 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
304  ::google::protobuf::uint32 tag;
305  // @@protoc_insertion_point(parse_start:authpb.User)
306  for (;;) {
307  ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
308  tag = p.first;
309  if (!p.second) goto handle_unusual;
310  switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
311  // bytes name = 1;
312  case 1: {
313  if (static_cast< ::google::protobuf::uint8>(tag) ==
314  static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
315  DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
316  input, this->mutable_name()));
317  } else {
318  goto handle_unusual;
319  }
320  break;
321  }
322 
323  // bytes password = 2;
324  case 2: {
325  if (static_cast< ::google::protobuf::uint8>(tag) ==
326  static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
327  DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
328  input, this->mutable_password()));
329  } else {
330  goto handle_unusual;
331  }
332  break;
333  }
334 
335  // repeated string roles = 3;
336  case 3: {
337  if (static_cast< ::google::protobuf::uint8>(tag) ==
338  static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
339  DO_(::google::protobuf::internal::WireFormatLite::ReadString(
340  input, this->add_roles()));
341  DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
342  this->roles(this->roles_size() - 1).data(),
343  static_cast<int>(this->roles(this->roles_size() - 1).length()),
344  ::google::protobuf::internal::WireFormatLite::PARSE,
345  "authpb.User.roles"));
346  } else {
347  goto handle_unusual;
348  }
349  break;
350  }
351 
352  default: {
353  handle_unusual:
354  if (tag == 0) {
355  goto success;
356  }
357  DO_(::google::protobuf::internal::WireFormat::SkipField(
358  input, tag, _internal_metadata_.mutable_unknown_fields()));
359  break;
360  }
361  }
362  }
363 success:
364  // @@protoc_insertion_point(parse_success:authpb.User)
365  return true;
366 failure:
367  // @@protoc_insertion_point(parse_failure:authpb.User)
368  return false;
369 #undef DO_
370 }
371 
373  ::google::protobuf::io::CodedOutputStream* output) const {
374  // @@protoc_insertion_point(serialize_start:authpb.User)
375  ::google::protobuf::uint32 cached_has_bits = 0;
376  (void) cached_has_bits;
377 
378  // bytes name = 1;
379  if (this->name().size() > 0) {
380  ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
381  1, this->name(), output);
382  }
383 
384  // bytes password = 2;
385  if (this->password().size() > 0) {
386  ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
387  2, this->password(), output);
388  }
389 
390  // repeated string roles = 3;
391  for (int i = 0, n = this->roles_size(); i < n; i++) {
392  ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
393  this->roles(i).data(), static_cast<int>(this->roles(i).length()),
394  ::google::protobuf::internal::WireFormatLite::SERIALIZE,
395  "authpb.User.roles");
396  ::google::protobuf::internal::WireFormatLite::WriteString(
397  3, this->roles(i), output);
398  }
399 
400  if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
401  ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
402  (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
403  }
404  // @@protoc_insertion_point(serialize_end:authpb.User)
405 }
406 
408  bool deterministic, ::google::protobuf::uint8* target) const {
409  (void)deterministic; // Unused
410  // @@protoc_insertion_point(serialize_to_array_start:authpb.User)
411  ::google::protobuf::uint32 cached_has_bits = 0;
412  (void) cached_has_bits;
413 
414  // bytes name = 1;
415  if (this->name().size() > 0) {
416  target =
417  ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
418  1, this->name(), target);
419  }
420 
421  // bytes password = 2;
422  if (this->password().size() > 0) {
423  target =
424  ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
425  2, this->password(), target);
426  }
427 
428  // repeated string roles = 3;
429  for (int i = 0, n = this->roles_size(); i < n; i++) {
430  ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
431  this->roles(i).data(), static_cast<int>(this->roles(i).length()),
432  ::google::protobuf::internal::WireFormatLite::SERIALIZE,
433  "authpb.User.roles");
434  target = ::google::protobuf::internal::WireFormatLite::
435  WriteStringToArray(3, this->roles(i), target);
436  }
437 
438  if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
439  target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
440  (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
441  }
442  // @@protoc_insertion_point(serialize_to_array_end:authpb.User)
443  return target;
444 }
445 
446 size_t User::ByteSizeLong() const {
447 // @@protoc_insertion_point(message_byte_size_start:authpb.User)
448  size_t total_size = 0;
449 
450  if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
451  total_size +=
452  ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
453  (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
454  }
455  // repeated string roles = 3;
456  total_size += 1 *
457  ::google::protobuf::internal::FromIntSize(this->roles_size());
458  for (int i = 0, n = this->roles_size(); i < n; i++) {
459  total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
460  this->roles(i));
461  }
462 
463  // bytes name = 1;
464  if (this->name().size() > 0) {
465  total_size += 1 +
466  ::google::protobuf::internal::WireFormatLite::BytesSize(
467  this->name());
468  }
469 
470  // bytes password = 2;
471  if (this->password().size() > 0) {
472  total_size += 1 +
473  ::google::protobuf::internal::WireFormatLite::BytesSize(
474  this->password());
475  }
476 
477  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
478  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
479  _cached_size_ = cached_size;
480  GOOGLE_SAFE_CONCURRENT_WRITES_END();
481  return total_size;
482 }
483 
484 void User::MergeFrom(const ::google::protobuf::Message& from) {
485 // @@protoc_insertion_point(generalized_merge_from_start:authpb.User)
486  GOOGLE_DCHECK_NE(&from, this);
487  const User* source =
488  ::google::protobuf::internal::DynamicCastToGenerated<const User>(
489  &from);
490  if (source == NULL) {
491  // @@protoc_insertion_point(generalized_merge_from_cast_fail:authpb.User)
492  ::google::protobuf::internal::ReflectionOps::Merge(from, this);
493  } else {
494  // @@protoc_insertion_point(generalized_merge_from_cast_success:authpb.User)
495  MergeFrom(*source);
496  }
497 }
498 
499 void User::MergeFrom(const User& from) {
500 // @@protoc_insertion_point(class_specific_merge_from_start:authpb.User)
501  GOOGLE_DCHECK_NE(&from, this);
503  ::google::protobuf::uint32 cached_has_bits = 0;
504  (void) cached_has_bits;
505 
506  roles_.MergeFrom(from.roles_);
507  if (from.name().size() > 0) {
508 
509  name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
510  }
511  if (from.password().size() > 0) {
512 
513  password_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.password_);
514  }
515 }
516 
517 void User::CopyFrom(const ::google::protobuf::Message& from) {
518 // @@protoc_insertion_point(generalized_copy_from_start:authpb.User)
519  if (&from == this) return;
520  Clear();
521  MergeFrom(from);
522 }
523 
524 void User::CopyFrom(const User& from) {
525 // @@protoc_insertion_point(class_specific_copy_from_start:authpb.User)
526  if (&from == this) return;
527  Clear();
528  MergeFrom(from);
529 }
530 
531 bool User::IsInitialized() const {
532  return true;
533 }
534 
535 void User::Swap(User* other) {
536  if (other == this) return;
537  InternalSwap(other);
538 }
539 void User::InternalSwap(User* other) {
540  using std::swap;
541  roles_.InternalSwap(&other->roles_);
542  name_.Swap(&other->name_);
543  password_.Swap(&other->password_);
546 }
547 
548 ::google::protobuf::Metadata User::GetMetadata() const {
551 }
552 
553 
554 // ===================================================================
555 
557 }
558 #if !defined(_MSC_VER) || _MSC_VER >= 1900
561 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
562 
564  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
565  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
567  }
568  SharedCtor();
569  // @@protoc_insertion_point(constructor:authpb.Permission)
570 }
572  : ::google::protobuf::Message(),
573  _internal_metadata_(NULL),
574  _cached_size_(0) {
576  key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
577  if (from.key().size() > 0) {
578  key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_);
579  }
580  permtype_ = from.permtype_;
581  // @@protoc_insertion_point(copy_constructor:authpb.Permission)
582 }
583 
585  key_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
586  permtype_ = 0;
587  _cached_size_ = 0;
588 }
589 
591  // @@protoc_insertion_point(destructor:authpb.Permission)
592  SharedDtor();
593 }
594 
596  key_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
597 }
598 
599 void Permission::SetCachedSize(int size) const {
600  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
601  _cached_size_ = size;
602  GOOGLE_SAFE_CONCURRENT_WRITES_END();
603 }
604 const ::google::protobuf::Descriptor* Permission::descriptor() {
607 }
608 
611  return *internal_default_instance();
612 }
613 
614 Permission* Permission::New(::google::protobuf::Arena* arena) const {
615  Permission* n = new Permission;
616  if (arena != NULL) {
617  arena->Own(n);
618  }
619  return n;
620 }
621 
623 // @@protoc_insertion_point(message_clear_start:authpb.Permission)
624  ::google::protobuf::uint32 cached_has_bits = 0;
625  // Prevent compiler warnings about cached_has_bits being unused
626  (void) cached_has_bits;
627 
628  key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
629  permtype_ = 0;
630  _internal_metadata_.Clear();
631 }
632 
634  ::google::protobuf::io::CodedInputStream* input) {
635 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
636  ::google::protobuf::uint32 tag;
637  // @@protoc_insertion_point(parse_start:authpb.Permission)
638  for (;;) {
639  ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
640  tag = p.first;
641  if (!p.second) goto handle_unusual;
642  switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
643  // bytes key = 1;
644  case 1: {
645  if (static_cast< ::google::protobuf::uint8>(tag) ==
646  static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
647  DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
648  input, this->mutable_key()));
649  } else {
650  goto handle_unusual;
651  }
652  break;
653  }
654 
655  // .authpb.Permission.Type permType = 2;
656  case 2: {
657  if (static_cast< ::google::protobuf::uint8>(tag) ==
658  static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
659  int value;
660  DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
661  int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
662  input, &value)));
663  set_permtype(static_cast< ::authpb::Permission_Type >(value));
664  } else {
665  goto handle_unusual;
666  }
667  break;
668  }
669 
670  default: {
671  handle_unusual:
672  if (tag == 0) {
673  goto success;
674  }
675  DO_(::google::protobuf::internal::WireFormat::SkipField(
676  input, tag, _internal_metadata_.mutable_unknown_fields()));
677  break;
678  }
679  }
680  }
681 success:
682  // @@protoc_insertion_point(parse_success:authpb.Permission)
683  return true;
684 failure:
685  // @@protoc_insertion_point(parse_failure:authpb.Permission)
686  return false;
687 #undef DO_
688 }
689 
691  ::google::protobuf::io::CodedOutputStream* output) const {
692  // @@protoc_insertion_point(serialize_start:authpb.Permission)
693  ::google::protobuf::uint32 cached_has_bits = 0;
694  (void) cached_has_bits;
695 
696  // bytes key = 1;
697  if (this->key().size() > 0) {
698  ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
699  1, this->key(), output);
700  }
701 
702  // .authpb.Permission.Type permType = 2;
703  if (this->permtype() != 0) {
704  ::google::protobuf::internal::WireFormatLite::WriteEnum(
705  2, this->permtype(), output);
706  }
707 
708  if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
709  ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
710  (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
711  }
712  // @@protoc_insertion_point(serialize_end:authpb.Permission)
713 }
714 
716  bool deterministic, ::google::protobuf::uint8* target) const {
717  (void)deterministic; // Unused
718  // @@protoc_insertion_point(serialize_to_array_start:authpb.Permission)
719  ::google::protobuf::uint32 cached_has_bits = 0;
720  (void) cached_has_bits;
721 
722  // bytes key = 1;
723  if (this->key().size() > 0) {
724  target =
725  ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
726  1, this->key(), target);
727  }
728 
729  // .authpb.Permission.Type permType = 2;
730  if (this->permtype() != 0) {
731  target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
732  2, this->permtype(), target);
733  }
734 
735  if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
736  target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
737  (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
738  }
739  // @@protoc_insertion_point(serialize_to_array_end:authpb.Permission)
740  return target;
741 }
742 
743 size_t Permission::ByteSizeLong() const {
744 // @@protoc_insertion_point(message_byte_size_start:authpb.Permission)
745  size_t total_size = 0;
746 
747  if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
748  total_size +=
749  ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
750  (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
751  }
752  // bytes key = 1;
753  if (this->key().size() > 0) {
754  total_size += 1 +
755  ::google::protobuf::internal::WireFormatLite::BytesSize(
756  this->key());
757  }
758 
759  // .authpb.Permission.Type permType = 2;
760  if (this->permtype() != 0) {
761  total_size += 1 +
762  ::google::protobuf::internal::WireFormatLite::EnumSize(this->permtype());
763  }
764 
765  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
766  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
767  _cached_size_ = cached_size;
768  GOOGLE_SAFE_CONCURRENT_WRITES_END();
769  return total_size;
770 }
771 
772 void Permission::MergeFrom(const ::google::protobuf::Message& from) {
773 // @@protoc_insertion_point(generalized_merge_from_start:authpb.Permission)
774  GOOGLE_DCHECK_NE(&from, this);
775  const Permission* source =
776  ::google::protobuf::internal::DynamicCastToGenerated<const Permission>(
777  &from);
778  if (source == NULL) {
779  // @@protoc_insertion_point(generalized_merge_from_cast_fail:authpb.Permission)
780  ::google::protobuf::internal::ReflectionOps::Merge(from, this);
781  } else {
782  // @@protoc_insertion_point(generalized_merge_from_cast_success:authpb.Permission)
783  MergeFrom(*source);
784  }
785 }
786 
788 // @@protoc_insertion_point(class_specific_merge_from_start:authpb.Permission)
789  GOOGLE_DCHECK_NE(&from, this);
791  ::google::protobuf::uint32 cached_has_bits = 0;
792  (void) cached_has_bits;
793 
794  if (from.key().size() > 0) {
795 
796  key_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.key_);
797  }
798  if (from.permtype() != 0) {
799  set_permtype(from.permtype());
800  }
801 }
802 
803 void Permission::CopyFrom(const ::google::protobuf::Message& from) {
804 // @@protoc_insertion_point(generalized_copy_from_start:authpb.Permission)
805  if (&from == this) return;
806  Clear();
807  MergeFrom(from);
808 }
809 
810 void Permission::CopyFrom(const Permission& from) {
811 // @@protoc_insertion_point(class_specific_copy_from_start:authpb.Permission)
812  if (&from == this) return;
813  Clear();
814  MergeFrom(from);
815 }
816 
818  return true;
819 }
820 
822  if (other == this) return;
823  InternalSwap(other);
824 }
826  using std::swap;
827  key_.Swap(&other->key_);
828  swap(permtype_, other->permtype_);
831 }
832 
833 ::google::protobuf::Metadata Permission::GetMetadata() const {
836 }
837 
838 
839 // ===================================================================
840 
842 }
843 #if !defined(_MSC_VER) || _MSC_VER >= 1900
844 const int Role::kNameFieldNumber;
846 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
847 
849  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
850  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
852  }
853  SharedCtor();
854  // @@protoc_insertion_point(constructor:authpb.Role)
855 }
856 Role::Role(const Role& from)
857  : ::google::protobuf::Message(),
858  _internal_metadata_(NULL),
859  keypermission_(from.keypermission_),
860  _cached_size_(0) {
862  name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
863  if (from.name().size() > 0) {
864  name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
865  }
866  // @@protoc_insertion_point(copy_constructor:authpb.Role)
867 }
868 
870  name_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
871  _cached_size_ = 0;
872 }
873 
875  // @@protoc_insertion_point(destructor:authpb.Role)
876  SharedDtor();
877 }
878 
880  name_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
881 }
882 
883 void Role::SetCachedSize(int size) const {
884  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
885  _cached_size_ = size;
886  GOOGLE_SAFE_CONCURRENT_WRITES_END();
887 }
888 const ::google::protobuf::Descriptor* Role::descriptor() {
891 }
892 
895  return *internal_default_instance();
896 }
897 
898 Role* Role::New(::google::protobuf::Arena* arena) const {
899  Role* n = new Role;
900  if (arena != NULL) {
901  arena->Own(n);
902  }
903  return n;
904 }
905 
906 void Role::Clear() {
907 // @@protoc_insertion_point(message_clear_start:authpb.Role)
908  ::google::protobuf::uint32 cached_has_bits = 0;
909  // Prevent compiler warnings about cached_has_bits being unused
910  (void) cached_has_bits;
911 
912  keypermission_.Clear();
913  name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
914  _internal_metadata_.Clear();
915 }
916 
918  ::google::protobuf::io::CodedInputStream* input) {
919 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
920  ::google::protobuf::uint32 tag;
921  // @@protoc_insertion_point(parse_start:authpb.Role)
922  for (;;) {
923  ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
924  tag = p.first;
925  if (!p.second) goto handle_unusual;
926  switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
927  // bytes name = 1;
928  case 1: {
929  if (static_cast< ::google::protobuf::uint8>(tag) ==
930  static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
931  DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
932  input, this->mutable_name()));
933  } else {
934  goto handle_unusual;
935  }
936  break;
937  }
938 
939  // repeated .authpb.Permission keyPermission = 2;
940  case 2: {
941  if (static_cast< ::google::protobuf::uint8>(tag) ==
942  static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
943  DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_keypermission()));
944  } else {
945  goto handle_unusual;
946  }
947  break;
948  }
949 
950  default: {
951  handle_unusual:
952  if (tag == 0) {
953  goto success;
954  }
955  DO_(::google::protobuf::internal::WireFormat::SkipField(
956  input, tag, _internal_metadata_.mutable_unknown_fields()));
957  break;
958  }
959  }
960  }
961 success:
962  // @@protoc_insertion_point(parse_success:authpb.Role)
963  return true;
964 failure:
965  // @@protoc_insertion_point(parse_failure:authpb.Role)
966  return false;
967 #undef DO_
968 }
969 
971  ::google::protobuf::io::CodedOutputStream* output) const {
972  // @@protoc_insertion_point(serialize_start:authpb.Role)
973  ::google::protobuf::uint32 cached_has_bits = 0;
974  (void) cached_has_bits;
975 
976  // bytes name = 1;
977  if (this->name().size() > 0) {
978  ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
979  1, this->name(), output);
980  }
981 
982  // repeated .authpb.Permission keyPermission = 2;
983  for (unsigned int i = 0,
984  n = static_cast<unsigned int>(this->keypermission_size()); i < n; i++) {
985  ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
986  2, this->keypermission(static_cast<int>(i)), output);
987  }
988 
989  if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
990  ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
991  (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
992  }
993  // @@protoc_insertion_point(serialize_end:authpb.Role)
994 }
995 
997  bool deterministic, ::google::protobuf::uint8* target) const {
998  (void)deterministic; // Unused
999  // @@protoc_insertion_point(serialize_to_array_start:authpb.Role)
1000  ::google::protobuf::uint32 cached_has_bits = 0;
1001  (void) cached_has_bits;
1002 
1003  // bytes name = 1;
1004  if (this->name().size() > 0) {
1005  target =
1006  ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
1007  1, this->name(), target);
1008  }
1009 
1010  // repeated .authpb.Permission keyPermission = 2;
1011  for (unsigned int i = 0,
1012  n = static_cast<unsigned int>(this->keypermission_size()); i < n; i++) {
1013  target = ::google::protobuf::internal::WireFormatLite::
1014  InternalWriteMessageToArray(
1015  2, this->keypermission(static_cast<int>(i)), deterministic, target);
1016  }
1017 
1018  if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
1019  target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1020  (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
1021  }
1022  // @@protoc_insertion_point(serialize_to_array_end:authpb.Role)
1023  return target;
1024 }
1025 
1026 size_t Role::ByteSizeLong() const {
1027 // @@protoc_insertion_point(message_byte_size_start:authpb.Role)
1028  size_t total_size = 0;
1029 
1030  if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
1031  total_size +=
1032  ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1033  (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
1034  }
1035  // repeated .authpb.Permission keyPermission = 2;
1036  {
1037  unsigned int count = static_cast<unsigned int>(this->keypermission_size());
1038  total_size += 1UL * count;
1039  for (unsigned int i = 0; i < count; i++) {
1040  total_size +=
1041  ::google::protobuf::internal::WireFormatLite::MessageSize(
1042  this->keypermission(static_cast<int>(i)));
1043  }
1044  }
1045 
1046  // bytes name = 1;
1047  if (this->name().size() > 0) {
1048  total_size += 1 +
1049  ::google::protobuf::internal::WireFormatLite::BytesSize(
1050  this->name());
1051  }
1052 
1053  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
1054  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1055  _cached_size_ = cached_size;
1056  GOOGLE_SAFE_CONCURRENT_WRITES_END();
1057  return total_size;
1058 }
1059 
1060 void Role::MergeFrom(const ::google::protobuf::Message& from) {
1061 // @@protoc_insertion_point(generalized_merge_from_start:authpb.Role)
1062  GOOGLE_DCHECK_NE(&from, this);
1063  const Role* source =
1064  ::google::protobuf::internal::DynamicCastToGenerated<const Role>(
1065  &from);
1066  if (source == NULL) {
1067  // @@protoc_insertion_point(generalized_merge_from_cast_fail:authpb.Role)
1068  ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1069  } else {
1070  // @@protoc_insertion_point(generalized_merge_from_cast_success:authpb.Role)
1071  MergeFrom(*source);
1072  }
1073 }
1074 
1075 void Role::MergeFrom(const Role& from) {
1076 // @@protoc_insertion_point(class_specific_merge_from_start:authpb.Role)
1077  GOOGLE_DCHECK_NE(&from, this);
1078  _internal_metadata_.MergeFrom(from._internal_metadata_);
1079  ::google::protobuf::uint32 cached_has_bits = 0;
1080  (void) cached_has_bits;
1081 
1082  keypermission_.MergeFrom(from.keypermission_);
1083  if (from.name().size() > 0) {
1084 
1085  name_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.name_);
1086  }
1087 }
1088 
1089 void Role::CopyFrom(const ::google::protobuf::Message& from) {
1090 // @@protoc_insertion_point(generalized_copy_from_start:authpb.Role)
1091  if (&from == this) return;
1092  Clear();
1093  MergeFrom(from);
1094 }
1095 
1096 void Role::CopyFrom(const Role& from) {
1097 // @@protoc_insertion_point(class_specific_copy_from_start:authpb.Role)
1098  if (&from == this) return;
1099  Clear();
1100  MergeFrom(from);
1101 }
1102 
1103 bool Role::IsInitialized() const {
1104  return true;
1105 }
1106 
1107 void Role::Swap(Role* other) {
1108  if (other == this) return;
1109  InternalSwap(other);
1110 }
1111 void Role::InternalSwap(Role* other) {
1112  using std::swap;
1113  keypermission_.InternalSwap(&other->keypermission_);
1114  name_.Swap(&other->name_);
1116  swap(_cached_size_, other->_cached_size_);
1117 }
1118 
1119 ::google::protobuf::Metadata Role::GetMetadata() const {
1122 }
1123 
1124 
1125 // @@protoc_insertion_point(namespace_scope)
1126 } // namespace authpb
1127 
1128 // @@protoc_insertion_point(global_scope)
::google::protobuf::RepeatedPtrField< ::std::string > roles_
Definition: auth.pb.h:231
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages
Definition: auth.pb.h:274
virtual ~Role()
Definition: auth.pb.cc:874
::google::protobuf::internal::ArenaStringPtr name_
Definition: auth.pb.h:232
::std::string * mutable_password()
Definition: auth.pb.h:597
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL
Definition: auth.pb.cc:833
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL
Definition: auth.pb.cc:548
void failure(const char *fmt,...)
class authpb::PermissionDefaultTypeInternal _Permission_default_instance_
Definition: auth.pb.h:60
::google::protobuf::uint8 * InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 *target) const PROTOBUF_FINAL
Definition: auth.pb.cc:996
#define DO_(EXPRESSION)
static void InitAsDefaultInstance()
Definition: auth.pb.cc:217
int _cached_size_
Definition: auth.pb.h:496
void Swap(User *other)
Definition: auth.pb.cc:535
static const Permission & default_instance()
Definition: auth.pb.cc:609
bool IsInitialized() const PROTOBUF_FINAL
Definition: auth.pb.cc:1103
static const User & default_instance()
Definition: auth.pb.cc:276
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_
Definition: auth.pb.h:373
void Clear() PROTOBUF_FINAL
Definition: auth.pb.cc:289
::google::protobuf::internal::ExplicitlyConstructed< User > _instance
Definition: auth.pb.cc:26
const ::std::string & name() const
Definition: auth.pb.h:765
size_t ByteSizeLong() const PROTOBUF_FINAL
Definition: auth.pb.cc:743
bool IsInitialized() const PROTOBUF_FINAL
Definition: auth.pb.cc:531
bool IsInitialized() const PROTOBUF_FINAL
Definition: auth.pb.cc:817
void CopyFrom(const ::google::protobuf::Message &from) PROTOBUF_FINAL
Definition: auth.pb.cc:517
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages
Definition: auth.pb.h:416
bool MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream *input) PROTOBUF_FINAL
Definition: auth.pb.cc:301
virtual ~Permission()
Definition: auth.pb.cc:590
void SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream *output) const PROTOBUF_FINAL
Definition: auth.pb.cc:690
void SharedDtor()
Definition: auth.pb.cc:879
static const ::google::protobuf::Descriptor * descriptor()
Definition: auth.pb.cc:888
::google::protobuf::RepeatedPtrField< ::authpb::Permission > keypermission_
Definition: auth.pb.h:494
class authpb::UserDefaultTypeInternal _User_default_instance_
Definition: auth.pb.h:66
const ::google::protobuf::EnumDescriptor * Permission_Type_descriptor()
Definition: auth.pb.cc:191
void CopyFrom(const ::google::protobuf::Message &from) PROTOBUF_FINAL
Definition: auth.pb.cc:803
void InitDefaultsPermission()
Definition: auth.pb.cc:77
void SetCachedSize(int size) const PROTOBUF_FINAL
Definition: auth.pb.cc:266
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_
Definition: auth.pb.h:493
static void InitAsDefaultInstance()
Definition: auth.pb.cc:556
size_t ByteSizeLong() const PROTOBUF_FINAL
Definition: auth.pb.cc:1026
void InternalSwap(Role *other)
Definition: auth.pb.cc:1111
static const int kPermTypeFieldNumber
Definition: auth.pb.h:366
struct protobuf_auth_2eproto::StaticDescriptorInitializer static_descriptor_initializer
::std::string * add_roles()
Definition: auth.pb.h:652
bool Permission_Type_IsValid(int value)
Definition: auth.pb.cc:195
bool MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream *input) PROTOBUF_FINAL
Definition: auth.pb.cc:917
int _cached_size_
Definition: auth.pb.h:234
static const ::google::protobuf::uint32 offsets[]
Definition: auth.pb.h:43
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL
Definition: auth.pb.cc:1119
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages
Definition: auth.pb.h:129
::std::string * mutable_name()
Definition: auth.pb.h:794
void Swap(Role *other)
Definition: auth.pb.cc:1107
const ::google::protobuf::RepeatedPtrField< ::authpb::Permission > & keypermission() const
Definition: auth.pb.h:839
static const Role * internal_default_instance()
Definition: auth.pb.h:412
void SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream *output) const PROTOBUF_FINAL
Definition: auth.pb.cc:970
static void InitAsDefaultInstance()
Definition: auth.pb.cc:841
const ::google::protobuf::EnumDescriptor * file_level_enum_descriptors[1]
Definition: auth.pb.cc:105
void MergeFrom(const ::google::protobuf::Message &from) PROTOBUF_FINAL
Definition: auth.pb.cc:484
friend void swap(Role &a, Role &b)
Definition: auth.pb.h:420
void Swap(Permission *other)
Definition: auth.pb.cc:821
void protobuf_RegisterTypes(const ::std::string &) GOOGLE_PROTOBUF_ATTRIBUTE_COLD
Definition: auth.pb.cc:157
static const int kKeyFieldNumber
Definition: auth.pb.h:352
static const Role & default_instance()
Definition: auth.pb.cc:893
::authpb::Permission_Type permtype() const
Definition: auth.pb.h:747
void SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream *output) const PROTOBUF_FINAL
Definition: auth.pb.cc:372
::google::protobuf::internal::ExplicitlyConstructed< Role > _instance
Definition: auth.pb.cc:36
Permission * New() const PROTOBUF_FINAL
Definition: auth.pb.h:284
void protobuf_AssignDescriptorsOnce()
Definition: auth.pb.cc:151
void MergeFrom(const ::google::protobuf::Message &from) PROTOBUF_FINAL
Definition: auth.pb.cc:772
const ::google::protobuf::RepeatedPtrField< ::std::string > & roles() const
Definition: auth.pb.h:676
virtual ~User()
Definition: auth.pb.cc:256
Permission_Type
Definition: auth.pb.h:71
User * New() const PROTOBUF_FINAL
Definition: auth.pb.h:139
void set_permtype(::authpb::Permission_Type value)
Definition: auth.pb.h:751
void MergeFrom(const ::google::protobuf::Message &from) PROTOBUF_FINAL
Definition: auth.pb.cc:1060
void CopyFrom(const ::google::protobuf::Message &from) PROTOBUF_FINAL
Definition: auth.pb.cc:1089
::google::protobuf::internal::ArenaStringPtr password_
Definition: auth.pb.h:233
::google::protobuf::internal::ArenaStringPtr key_
Definition: auth.pb.h:374
class authpb::RoleDefaultTypeInternal _Role_default_instance_
Definition: auth.pb.h:63
size_t ByteSizeLong() const PROTOBUF_FINAL
Definition: auth.pb.cc:446
const ::std::string & password() const
Definition: auth.pb.h:568
void SharedCtor()
Definition: auth.pb.cc:250
friend void swap(User &a, User &b)
Definition: auth.pb.h:133
void InternalSwap(User *other)
Definition: auth.pb.cc:539
void InitDefaultsPermissionImpl()
Definition: auth.pb.cc:61
::google::protobuf::internal::ExplicitlyConstructed< Permission > _instance
Definition: auth.pb.cc:31
void InitDefaultsUser()
Definition: auth.pb.cc:56
bool MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream *input) PROTOBUF_FINAL
Definition: auth.pb.cc:633
void InitDefaultsRole()
Definition: auth.pb.cc:99
void InitDefaultsRoleImpl()
Definition: auth.pb.cc:82
static const int kKeyPermissionFieldNumber
Definition: auth.pb.h:467
static const ::google::protobuf::Descriptor * descriptor()
Definition: auth.pb.cc:604
void protobuf_AssignDescriptors()
Definition: auth.pb.cc:143
int keypermission_size() const
Definition: auth.pb.h:815
::google::protobuf::internal::ArenaStringPtr name_
Definition: auth.pb.h:495
const ::std::string & key() const
Definition: auth.pb.h:694
void Clear() PROTOBUF_FINAL
Definition: auth.pb.cc:622
void SetCachedSize(int size) const PROTOBUF_FINAL
Definition: auth.pb.cc:883
static const int kNameFieldNumber
Definition: auth.pb.h:478
void SharedDtor()
Definition: auth.pb.cc:261
::google::protobuf::Message const *const file_default_instances[]
Definition: auth.pb.cc:137
::std::string * mutable_key()
Definition: auth.pb.h:723
::authpb::Permission * add_keypermission()
Definition: auth.pb.h:829
void SetCachedSize(int size) const PROTOBUF_FINAL
Definition: auth.pb.cc:599
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_
Definition: auth.pb.h:230
void InternalSwap(Permission *other)
Definition: auth.pb.cc:825
static const Permission * internal_default_instance()
Definition: auth.pb.h:270
const ::std::string & name() const
Definition: auth.pb.h:515
int roles_size() const
Definition: auth.pb.h:618
friend void swap(Permission &a, Permission &b)
Definition: auth.pb.h:278
static const User * internal_default_instance()
Definition: auth.pb.h:125
::google::protobuf::uint8 * InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 *target) const PROTOBUF_FINAL
Definition: auth.pb.cc:407
::google::protobuf::Metadata file_level_metadata[3]
Definition: auth.pb.cc:104
::std::string * mutable_name()
Definition: auth.pb.h:544
Role * New() const PROTOBUF_FINAL
Definition: auth.pb.h:426
void InitDefaultsUserImpl()
Definition: auth.pb.cc:40
void SharedCtor()
Definition: auth.pb.cc:869
const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold)
::google::protobuf::uint8 * InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 *target) const PROTOBUF_FINAL
Definition: auth.pb.cc:715
void Clear() PROTOBUF_FINAL
Definition: auth.pb.cc:906
static const ::google::protobuf::Descriptor * descriptor()
Definition: auth.pb.cc:271
void AddDescriptorsImpl()
Definition: auth.pb.cc:162