OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
auth.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: auth.proto
3 
4 #ifndef PROTOBUF_auth_2eproto__INCLUDED
5 #define PROTOBUF_auth_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/generated_enum_reflection.h>
32 #include <google/protobuf/unknown_field_set.h>
33 // @@protoc_insertion_point(includes)
34 
35 namespace protobuf_auth_2eproto {
36 // Internal implementation detail -- do not use these members.
37 struct TableStruct {
38  static const ::google::protobuf::internal::ParseTableField entries[];
39  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
40  static const ::google::protobuf::internal::ParseTable schema[3];
41  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
42  static const ::google::protobuf::internal::SerializationTable serialization_table[];
43  static const ::google::protobuf::uint32 offsets[];
44 };
45 void AddDescriptors();
47 void InitDefaultsUser();
51 void InitDefaultsRole();
52 inline void InitDefaults() {
56 }
57 } // namespace protobuf_auth_2eproto
58 namespace authpb {
59 class Permission;
62 class Role;
65 class User;
68 } // namespace authpb
69 namespace authpb {
70 
77 };
78 bool Permission_Type_IsValid(int value);
82 
83 const ::google::protobuf::EnumDescriptor* Permission_Type_descriptor();
84 inline const ::std::string& Permission_Type_Name(Permission_Type value) {
85  return ::google::protobuf::internal::NameOfEnum(
87 }
89  const ::std::string& name, Permission_Type* value) {
90  return ::google::protobuf::internal::ParseNamedEnum<Permission_Type>(
91  Permission_Type_descriptor(), name, value);
92 }
93 // ===================================================================
94 
95 class User : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:authpb.User) */ {
96  public:
97  User();
98  virtual ~User();
99 
100  User(const User& from);
101 
102  inline User& operator=(const User& from) {
103  CopyFrom(from);
104  return *this;
105  }
106  #if LANG_CXX11
107  User(User&& from) noexcept
108  : User() {
109  *this = ::std::move(from);
110  }
111 
112  inline User& operator=(User&& from) noexcept {
113  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
114  if (this != &from) InternalSwap(&from);
115  } else {
116  CopyFrom(from);
117  }
118  return *this;
119  }
120  #endif
121  static const ::google::protobuf::Descriptor* descriptor();
122  static const User& default_instance();
123 
124  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
125  static inline const User* internal_default_instance() {
126  return reinterpret_cast<const User*>(
128  }
129  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
130  0;
131 
132  void Swap(User* other);
133  friend void swap(User& a, User& b) {
134  a.Swap(&b);
135  }
136 
137  // implements Message ----------------------------------------------
138 
139  inline User* New() const PROTOBUF_FINAL { return New(NULL); }
140 
141  User* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
142  void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
143  void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
144  void CopyFrom(const User& from);
145  void MergeFrom(const User& from);
146  void Clear() PROTOBUF_FINAL;
147  bool IsInitialized() const PROTOBUF_FINAL;
148 
149  size_t ByteSizeLong() const PROTOBUF_FINAL;
151  ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
153  ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
154  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
155  bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
156  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
157  private:
158  void SharedCtor();
159  void SharedDtor();
160  void SetCachedSize(int size) const PROTOBUF_FINAL;
161  void InternalSwap(User* other);
162  private:
163  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
164  return NULL;
165  }
166  inline void* MaybeArenaPtr() const {
167  return NULL;
168  }
169  public:
170 
171  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
172 
173  // nested types ----------------------------------------------------
174 
175  // accessors -------------------------------------------------------
176 
177  // repeated string roles = 3;
178  int roles_size() const;
179  void clear_roles();
180  static const int kRolesFieldNumber = 3;
181  const ::std::string& roles(int index) const;
182  ::std::string* mutable_roles(int index);
183  void set_roles(int index, const ::std::string& value);
184  #if LANG_CXX11
185  void set_roles(int index, ::std::string&& value);
186  #endif
187  void set_roles(int index, const char* value);
188  void set_roles(int index, const char* value, size_t size);
189  ::std::string* add_roles();
190  void add_roles(const ::std::string& value);
191  #if LANG_CXX11
192  void add_roles(::std::string&& value);
193  #endif
194  void add_roles(const char* value);
195  void add_roles(const char* value, size_t size);
196  const ::google::protobuf::RepeatedPtrField< ::std::string>& roles() const;
197  ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_roles();
198 
199  // bytes name = 1;
200  void clear_name();
201  static const int kNameFieldNumber = 1;
202  const ::std::string& name() const;
203  void set_name(const ::std::string& value);
204  #if LANG_CXX11
205  void set_name(::std::string&& value);
206  #endif
207  void set_name(const char* value);
208  void set_name(const void* value, size_t size);
209  ::std::string* mutable_name();
210  ::std::string* release_name();
211  void set_allocated_name(::std::string* name);
212 
213  // bytes password = 2;
214  void clear_password();
215  static const int kPasswordFieldNumber = 2;
216  const ::std::string& password() const;
217  void set_password(const ::std::string& value);
218  #if LANG_CXX11
219  void set_password(::std::string&& value);
220  #endif
221  void set_password(const char* value);
222  void set_password(const void* value, size_t size);
223  ::std::string* mutable_password();
224  ::std::string* release_password();
225  void set_allocated_password(::std::string* password);
226 
227  // @@protoc_insertion_point(class_scope:authpb.User)
228  private:
229 
230  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
231  ::google::protobuf::RepeatedPtrField< ::std::string> roles_;
232  ::google::protobuf::internal::ArenaStringPtr name_;
233  ::google::protobuf::internal::ArenaStringPtr password_;
234  mutable int _cached_size_;
235  friend struct ::protobuf_auth_2eproto::TableStruct;
237 };
238 // -------------------------------------------------------------------
239 
240 class Permission : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:authpb.Permission) */ {
241  public:
242  Permission();
243  virtual ~Permission();
244 
245  Permission(const Permission& from);
246 
247  inline Permission& operator=(const Permission& from) {
248  CopyFrom(from);
249  return *this;
250  }
251  #if LANG_CXX11
252  Permission(Permission&& from) noexcept
253  : Permission() {
254  *this = ::std::move(from);
255  }
256 
257  inline Permission& operator=(Permission&& from) noexcept {
258  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
259  if (this != &from) InternalSwap(&from);
260  } else {
261  CopyFrom(from);
262  }
263  return *this;
264  }
265  #endif
266  static const ::google::protobuf::Descriptor* descriptor();
267  static const Permission& default_instance();
268 
269  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
270  static inline const Permission* internal_default_instance() {
271  return reinterpret_cast<const Permission*>(
273  }
274  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
275  1;
276 
277  void Swap(Permission* other);
278  friend void swap(Permission& a, Permission& b) {
279  a.Swap(&b);
280  }
281 
282  // implements Message ----------------------------------------------
283 
284  inline Permission* New() const PROTOBUF_FINAL { return New(NULL); }
285 
286  Permission* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
287  void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
288  void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
289  void CopyFrom(const Permission& from);
290  void MergeFrom(const Permission& from);
291  void Clear() PROTOBUF_FINAL;
292  bool IsInitialized() const PROTOBUF_FINAL;
293 
294  size_t ByteSizeLong() const PROTOBUF_FINAL;
296  ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
298  ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
299  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
300  bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
301  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
302  private:
303  void SharedCtor();
304  void SharedDtor();
305  void SetCachedSize(int size) const PROTOBUF_FINAL;
306  void InternalSwap(Permission* other);
307  private:
308  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
309  return NULL;
310  }
311  inline void* MaybeArenaPtr() const {
312  return NULL;
313  }
314  public:
315 
316  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
317 
318  // nested types ----------------------------------------------------
319 
321  static const Type READ =
323  static const Type WRITE =
325  static const Type READWRITE =
327  static inline bool Type_IsValid(int value) {
328  return Permission_Type_IsValid(value);
329  }
330  static const Type Type_MIN =
332  static const Type Type_MAX =
334  static const int Type_ARRAYSIZE =
336  static inline const ::google::protobuf::EnumDescriptor*
339  }
340  static inline const ::std::string& Type_Name(Type value) {
341  return Permission_Type_Name(value);
342  }
343  static inline bool Type_Parse(const ::std::string& name,
344  Type* value) {
345  return Permission_Type_Parse(name, value);
346  }
347 
348  // accessors -------------------------------------------------------
349 
350  // bytes key = 1;
351  void clear_key();
352  static const int kKeyFieldNumber = 1;
353  const ::std::string& key() const;
354  void set_key(const ::std::string& value);
355  #if LANG_CXX11
356  void set_key(::std::string&& value);
357  #endif
358  void set_key(const char* value);
359  void set_key(const void* value, size_t size);
360  ::std::string* mutable_key();
361  ::std::string* release_key();
362  void set_allocated_key(::std::string* key);
363 
364  // .authpb.Permission.Type permType = 2;
365  void clear_permtype();
366  static const int kPermTypeFieldNumber = 2;
369 
370  // @@protoc_insertion_point(class_scope:authpb.Permission)
371  private:
372 
373  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
374  ::google::protobuf::internal::ArenaStringPtr key_;
376  mutable int _cached_size_;
377  friend struct ::protobuf_auth_2eproto::TableStruct;
379 };
380 // -------------------------------------------------------------------
381 
382 class Role : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:authpb.Role) */ {
383  public:
384  Role();
385  virtual ~Role();
386 
387  Role(const Role& from);
388 
389  inline Role& operator=(const Role& from) {
390  CopyFrom(from);
391  return *this;
392  }
393  #if LANG_CXX11
394  Role(Role&& from) noexcept
395  : Role() {
396  *this = ::std::move(from);
397  }
398 
399  inline Role& operator=(Role&& from) noexcept {
400  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
401  if (this != &from) InternalSwap(&from);
402  } else {
403  CopyFrom(from);
404  }
405  return *this;
406  }
407  #endif
408  static const ::google::protobuf::Descriptor* descriptor();
409  static const Role& default_instance();
410 
411  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
412  static inline const Role* internal_default_instance() {
413  return reinterpret_cast<const Role*>(
415  }
416  static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
417  2;
418 
419  void Swap(Role* other);
420  friend void swap(Role& a, Role& b) {
421  a.Swap(&b);
422  }
423 
424  // implements Message ----------------------------------------------
425 
426  inline Role* New() const PROTOBUF_FINAL { return New(NULL); }
427 
428  Role* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
429  void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
430  void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
431  void CopyFrom(const Role& from);
432  void MergeFrom(const Role& from);
433  void Clear() PROTOBUF_FINAL;
434  bool IsInitialized() const PROTOBUF_FINAL;
435 
436  size_t ByteSizeLong() const PROTOBUF_FINAL;
438  ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
440  ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
441  ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
442  bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
443  int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
444  private:
445  void SharedCtor();
446  void SharedDtor();
447  void SetCachedSize(int size) const PROTOBUF_FINAL;
448  void InternalSwap(Role* other);
449  private:
450  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
451  return NULL;
452  }
453  inline void* MaybeArenaPtr() const {
454  return NULL;
455  }
456  public:
457 
458  ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
459 
460  // nested types ----------------------------------------------------
461 
462  // accessors -------------------------------------------------------
463 
464  // repeated .authpb.Permission keyPermission = 2;
465  int keypermission_size() const;
466  void clear_keypermission();
467  static const int kKeyPermissionFieldNumber = 2;
468  const ::authpb::Permission& keypermission(int index) const;
469  ::authpb::Permission* mutable_keypermission(int index);
470  ::authpb::Permission* add_keypermission();
471  ::google::protobuf::RepeatedPtrField< ::authpb::Permission >*
473  const ::google::protobuf::RepeatedPtrField< ::authpb::Permission >&
474  keypermission() const;
475 
476  // bytes name = 1;
477  void clear_name();
478  static const int kNameFieldNumber = 1;
479  const ::std::string& name() const;
480  void set_name(const ::std::string& value);
481  #if LANG_CXX11
482  void set_name(::std::string&& value);
483  #endif
484  void set_name(const char* value);
485  void set_name(const void* value, size_t size);
486  ::std::string* mutable_name();
487  ::std::string* release_name();
488  void set_allocated_name(::std::string* name);
489 
490  // @@protoc_insertion_point(class_scope:authpb.Role)
491  private:
492 
493  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
494  ::google::protobuf::RepeatedPtrField< ::authpb::Permission > keypermission_;
495  ::google::protobuf::internal::ArenaStringPtr name_;
496  mutable int _cached_size_;
497  friend struct ::protobuf_auth_2eproto::TableStruct;
499 };
500 // ===================================================================
501 
502 
503 // ===================================================================
504 
505 #ifdef __GNUC__
506  #pragma GCC diagnostic push
507  #pragma GCC diagnostic ignored "-Wstrict-aliasing"
508 #endif // __GNUC__
509 // User
510 
511 // bytes name = 1;
512 inline void User::clear_name() {
513  name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
514 }
515 inline const ::std::string& User::name() const {
516  // @@protoc_insertion_point(field_get:authpb.User.name)
517  return name_.GetNoArena();
518 }
519 inline void User::set_name(const ::std::string& value) {
520 
521  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
522  // @@protoc_insertion_point(field_set:authpb.User.name)
523 }
524 #if LANG_CXX11
525 inline void User::set_name(::std::string&& value) {
526 
527  name_.SetNoArena(
528  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
529  // @@protoc_insertion_point(field_set_rvalue:authpb.User.name)
530 }
531 #endif
532 inline void User::set_name(const char* value) {
533  GOOGLE_DCHECK(value != NULL);
534 
535  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
536  // @@protoc_insertion_point(field_set_char:authpb.User.name)
537 }
538 inline void User::set_name(const void* value, size_t size) {
539 
540  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
541  ::std::string(reinterpret_cast<const char*>(value), size));
542  // @@protoc_insertion_point(field_set_pointer:authpb.User.name)
543 }
544 inline ::std::string* User::mutable_name() {
545 
546  // @@protoc_insertion_point(field_mutable:authpb.User.name)
547  return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
548 }
549 inline ::std::string* User::release_name() {
550  // @@protoc_insertion_point(field_release:authpb.User.name)
551 
552  return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
553 }
554 inline void User::set_allocated_name(::std::string* name) {
555  if (name != NULL) {
556 
557  } else {
558 
559  }
560  name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
561  // @@protoc_insertion_point(field_set_allocated:authpb.User.name)
562 }
563 
564 // bytes password = 2;
565 inline void User::clear_password() {
566  password_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
567 }
568 inline const ::std::string& User::password() const {
569  // @@protoc_insertion_point(field_get:authpb.User.password)
570  return password_.GetNoArena();
571 }
572 inline void User::set_password(const ::std::string& value) {
573 
574  password_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
575  // @@protoc_insertion_point(field_set:authpb.User.password)
576 }
577 #if LANG_CXX11
578 inline void User::set_password(::std::string&& value) {
579 
580  password_.SetNoArena(
581  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
582  // @@protoc_insertion_point(field_set_rvalue:authpb.User.password)
583 }
584 #endif
585 inline void User::set_password(const char* value) {
586  GOOGLE_DCHECK(value != NULL);
587 
588  password_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
589  // @@protoc_insertion_point(field_set_char:authpb.User.password)
590 }
591 inline void User::set_password(const void* value, size_t size) {
592 
593  password_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
594  ::std::string(reinterpret_cast<const char*>(value), size));
595  // @@protoc_insertion_point(field_set_pointer:authpb.User.password)
596 }
597 inline ::std::string* User::mutable_password() {
598 
599  // @@protoc_insertion_point(field_mutable:authpb.User.password)
600  return password_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
601 }
602 inline ::std::string* User::release_password() {
603  // @@protoc_insertion_point(field_release:authpb.User.password)
604 
605  return password_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
606 }
607 inline void User::set_allocated_password(::std::string* password) {
608  if (password != NULL) {
609 
610  } else {
611 
612  }
613  password_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), password);
614  // @@protoc_insertion_point(field_set_allocated:authpb.User.password)
615 }
616 
617 // repeated string roles = 3;
618 inline int User::roles_size() const {
619  return roles_.size();
620 }
621 inline void User::clear_roles() {
622  roles_.Clear();
623 }
624 inline const ::std::string& User::roles(int index) const {
625  // @@protoc_insertion_point(field_get:authpb.User.roles)
626  return roles_.Get(index);
627 }
628 inline ::std::string* User::mutable_roles(int index) {
629  // @@protoc_insertion_point(field_mutable:authpb.User.roles)
630  return roles_.Mutable(index);
631 }
632 inline void User::set_roles(int index, const ::std::string& value) {
633  // @@protoc_insertion_point(field_set:authpb.User.roles)
634  roles_.Mutable(index)->assign(value);
635 }
636 #if LANG_CXX11
637 inline void User::set_roles(int index, ::std::string&& value) {
638  // @@protoc_insertion_point(field_set:authpb.User.roles)
639  roles_.Mutable(index)->assign(std::move(value));
640 }
641 #endif
642 inline void User::set_roles(int index, const char* value) {
643  GOOGLE_DCHECK(value != NULL);
644  roles_.Mutable(index)->assign(value);
645  // @@protoc_insertion_point(field_set_char:authpb.User.roles)
646 }
647 inline void User::set_roles(int index, const char* value, size_t size) {
648  roles_.Mutable(index)->assign(
649  reinterpret_cast<const char*>(value), size);
650  // @@protoc_insertion_point(field_set_pointer:authpb.User.roles)
651 }
652 inline ::std::string* User::add_roles() {
653  // @@protoc_insertion_point(field_add_mutable:authpb.User.roles)
654  return roles_.Add();
655 }
656 inline void User::add_roles(const ::std::string& value) {
657  roles_.Add()->assign(value);
658  // @@protoc_insertion_point(field_add:authpb.User.roles)
659 }
660 #if LANG_CXX11
661 inline void User::add_roles(::std::string&& value) {
662  roles_.Add(std::move(value));
663  // @@protoc_insertion_point(field_add:authpb.User.roles)
664 }
665 #endif
666 inline void User::add_roles(const char* value) {
667  GOOGLE_DCHECK(value != NULL);
668  roles_.Add()->assign(value);
669  // @@protoc_insertion_point(field_add_char:authpb.User.roles)
670 }
671 inline void User::add_roles(const char* value, size_t size) {
672  roles_.Add()->assign(reinterpret_cast<const char*>(value), size);
673  // @@protoc_insertion_point(field_add_pointer:authpb.User.roles)
674 }
675 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
676 User::roles() const {
677  // @@protoc_insertion_point(field_list:authpb.User.roles)
678  return roles_;
679 }
680 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
682  // @@protoc_insertion_point(field_mutable_list:authpb.User.roles)
683  return &roles_;
684 }
685 
686 // -------------------------------------------------------------------
687 
688 // Permission
689 
690 // bytes key = 1;
691 inline void Permission::clear_key() {
692  key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
693 }
694 inline const ::std::string& Permission::key() const {
695  // @@protoc_insertion_point(field_get:authpb.Permission.key)
696  return key_.GetNoArena();
697 }
698 inline void Permission::set_key(const ::std::string& value) {
699 
700  key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
701  // @@protoc_insertion_point(field_set:authpb.Permission.key)
702 }
703 #if LANG_CXX11
704 inline void Permission::set_key(::std::string&& value) {
705 
706  key_.SetNoArena(
707  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
708  // @@protoc_insertion_point(field_set_rvalue:authpb.Permission.key)
709 }
710 #endif
711 inline void Permission::set_key(const char* value) {
712  GOOGLE_DCHECK(value != NULL);
713 
714  key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
715  // @@protoc_insertion_point(field_set_char:authpb.Permission.key)
716 }
717 inline void Permission::set_key(const void* value, size_t size) {
718 
719  key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
720  ::std::string(reinterpret_cast<const char*>(value), size));
721  // @@protoc_insertion_point(field_set_pointer:authpb.Permission.key)
722 }
723 inline ::std::string* Permission::mutable_key() {
724 
725  // @@protoc_insertion_point(field_mutable:authpb.Permission.key)
726  return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
727 }
728 inline ::std::string* Permission::release_key() {
729  // @@protoc_insertion_point(field_release:authpb.Permission.key)
730 
731  return key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
732 }
733 inline void Permission::set_allocated_key(::std::string* key) {
734  if (key != NULL) {
735 
736  } else {
737 
738  }
739  key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key);
740  // @@protoc_insertion_point(field_set_allocated:authpb.Permission.key)
741 }
742 
743 // .authpb.Permission.Type permType = 2;
745  permtype_ = 0;
746 }
748  // @@protoc_insertion_point(field_get:authpb.Permission.permType)
749  return static_cast< ::authpb::Permission_Type >(permtype_);
750 }
752 
753  permtype_ = value;
754  // @@protoc_insertion_point(field_set:authpb.Permission.permType)
755 }
756 
757 // -------------------------------------------------------------------
758 
759 // Role
760 
761 // bytes name = 1;
762 inline void Role::clear_name() {
763  name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
764 }
765 inline const ::std::string& Role::name() const {
766  // @@protoc_insertion_point(field_get:authpb.Role.name)
767  return name_.GetNoArena();
768 }
769 inline void Role::set_name(const ::std::string& value) {
770 
771  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
772  // @@protoc_insertion_point(field_set:authpb.Role.name)
773 }
774 #if LANG_CXX11
775 inline void Role::set_name(::std::string&& value) {
776 
777  name_.SetNoArena(
778  &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
779  // @@protoc_insertion_point(field_set_rvalue:authpb.Role.name)
780 }
781 #endif
782 inline void Role::set_name(const char* value) {
783  GOOGLE_DCHECK(value != NULL);
784 
785  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
786  // @@protoc_insertion_point(field_set_char:authpb.Role.name)
787 }
788 inline void Role::set_name(const void* value, size_t size) {
789 
790  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
791  ::std::string(reinterpret_cast<const char*>(value), size));
792  // @@protoc_insertion_point(field_set_pointer:authpb.Role.name)
793 }
794 inline ::std::string* Role::mutable_name() {
795 
796  // @@protoc_insertion_point(field_mutable:authpb.Role.name)
797  return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
798 }
799 inline ::std::string* Role::release_name() {
800  // @@protoc_insertion_point(field_release:authpb.Role.name)
801 
802  return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
803 }
804 inline void Role::set_allocated_name(::std::string* name) {
805  if (name != NULL) {
806 
807  } else {
808 
809  }
810  name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
811  // @@protoc_insertion_point(field_set_allocated:authpb.Role.name)
812 }
813 
814 // repeated .authpb.Permission keyPermission = 2;
815 inline int Role::keypermission_size() const {
816  return keypermission_.size();
817 }
819  keypermission_.Clear();
820 }
821 inline const ::authpb::Permission& Role::keypermission(int index) const {
822  // @@protoc_insertion_point(field_get:authpb.Role.keyPermission)
823  return keypermission_.Get(index);
824 }
825 inline ::authpb::Permission* Role::mutable_keypermission(int index) {
826  // @@protoc_insertion_point(field_mutable:authpb.Role.keyPermission)
827  return keypermission_.Mutable(index);
828 }
829 inline ::authpb::Permission* Role::add_keypermission() {
830  // @@protoc_insertion_point(field_add:authpb.Role.keyPermission)
831  return keypermission_.Add();
832 }
833 inline ::google::protobuf::RepeatedPtrField< ::authpb::Permission >*
835  // @@protoc_insertion_point(field_mutable_list:authpb.Role.keyPermission)
836  return &keypermission_;
837 }
838 inline const ::google::protobuf::RepeatedPtrField< ::authpb::Permission >&
840  // @@protoc_insertion_point(field_list:authpb.Role.keyPermission)
841  return keypermission_;
842 }
843 
844 #ifdef __GNUC__
845  #pragma GCC diagnostic pop
846 #endif // __GNUC__
847 // -------------------------------------------------------------------
848 
849 // -------------------------------------------------------------------
850 
851 
852 // @@protoc_insertion_point(namespace_scope)
853 
854 } // namespace authpb
855 
856 namespace google {
857 namespace protobuf {
858 
859 template <> struct is_proto_enum< ::authpb::Permission_Type> : ::google::protobuf::internal::true_type {};
860 template <>
861 inline const EnumDescriptor* GetEnumDescriptor< ::authpb::Permission_Type>() {
863 }
864 
865 } // namespace protobuf
866 } // namespace google
867 
868 // @@protoc_insertion_point(global_scope)
869 
870 #endif // PROTOBUF_auth_2eproto__INCLUDED
::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
static const Type READ
Definition: auth.pb.h:321
static const ::google::protobuf::internal::AuxillaryParseTableField aux[]
Definition: auth.pb.h:39
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL
Definition: auth.pb.cc:548
Permission & operator=(const Permission &from)
Definition: auth.pb.h:247
static const int kPasswordFieldNumber
Definition: auth.pb.h:215
void clear_name()
Definition: auth.pb.h:512
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
const ::std::string & Permission_Type_Name(Permission_Type value)
Definition: auth.pb.h:84
static void InitAsDefaultInstance()
Definition: auth.pb.cc:217
::std::string * release_key()
Definition: auth.pb.h:728
int _cached_size_
Definition: auth.pb.h:496
inline::google::protobuf::Arena * GetArenaNoVirtual() const
Definition: auth.pb.h:308
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
static bool Type_IsValid(int value)
Definition: auth.pb.h:327
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_
Definition: auth.pb.h:373
void set_name(const ::std::string &value)
Definition: auth.pb.h:769
void Clear() PROTOBUF_FINAL
Definition: auth.pb.cc:289
const ::std::string & name() const
Definition: auth.pb.h:765
void clear_name()
Definition: auth.pb.h:762
Role & operator=(const Role &from)
Definition: auth.pb.h:389
size_t ByteSizeLong() const PROTOBUF_FINAL
Definition: auth.pb.cc:743
void set_allocated_name(::std::string *name)
Definition: auth.pb.h:804
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
::std::string * release_name()
Definition: auth.pb.h:549
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
int GetCachedSize() const PROTOBUF_FINAL
Definition: auth.pb.h: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
int GetCachedSize() const PROTOBUF_FINAL
Definition: auth.pb.h:156
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
void set_name(const ::std::string &value)
Definition: auth.pb.h:519
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
::std::string * release_password()
Definition: auth.pb.h:602
void set_roles(int index, const ::std::string &value)
Definition: auth.pb.h:632
::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
::std::string * release_name()
Definition: auth.pb.h:799
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages
Definition: auth.pb.h:129
void clear_key()
Definition: auth.pb.h:691
::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
inline::google::protobuf::Arena * GetArenaNoVirtual() const
Definition: auth.pb.h:163
static const Role * internal_default_instance()
Definition: auth.pb.h:412
void * MaybeArenaPtr() const
Definition: auth.pb.h:453
void SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream *output) const PROTOBUF_FINAL
Definition: auth.pb.cc:970
static void InitAsDefaultInstance()
Definition: auth.pb.cc:841
void * MaybeArenaPtr() const
Definition: auth.pb.h:311
void set_allocated_key(::std::string *key)
Definition: auth.pb.h:733
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
bool Permission_Type_Parse(const ::std::string &name, Permission_Type *value)
Definition: auth.pb.h:88
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
static const ::google::protobuf::internal::ParseTable schema[3]
Definition: auth.pb.h:40
static const int Type_ARRAYSIZE
Definition: auth.pb.h:334
void clear_keypermission()
Definition: auth.pb.h:818
void clear_permtype()
Definition: auth.pb.h:744
void SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream *output) const PROTOBUF_FINAL
Definition: auth.pb.cc:372
Permission * New() const PROTOBUF_FINAL
Definition: auth.pb.h:284
static const Type READWRITE
Definition: auth.pb.h:325
inline::google::protobuf::Arena * GetArenaNoVirtual() const
Definition: auth.pb.h:450
static const int kRolesFieldNumber
Definition: auth.pb.h:180
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
const int Permission_Type_Type_ARRAYSIZE
Definition: auth.pb.h:81
static const Type WRITE
Definition: auth.pb.h:323
::google::protobuf::RepeatedPtrField< ::authpb::Permission > * mutable_keypermission()
Definition: auth.pb.h:834
static const Type Type_MIN
Definition: auth.pb.h:330
User * New() const PROTOBUF_FINAL
Definition: auth.pb.h:139
void set_permtype(::authpb::Permission_Type value)
Definition: auth.pb.h:751
void set_password(const ::std::string &value)
Definition: auth.pb.h:572
static const Type Type_MAX
Definition: auth.pb.h:332
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
static const ::google::protobuf::internal::SerializationTable serialization_table[]
Definition: auth.pb.h:42
::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
static const int kNameFieldNumber
Definition: auth.pb.h:201
int GetCachedSize() const PROTOBUF_FINAL
Definition: auth.pb.h:443
void SharedCtor()
Definition: auth.pb.cc:250
friend void swap(User &a, User &b)
Definition: auth.pb.h:133
static const ::std::string & Type_Name(Type value)
Definition: auth.pb.h:340
void * MaybeArenaPtr() const
Definition: auth.pb.h:166
void InternalSwap(User *other)
Definition: auth.pb.cc:539
void clear_roles()
Definition: auth.pb.h:621
void InitDefaultsPermissionImpl()
Definition: auth.pb.cc:61
void InitDefaultsUser()
Definition: auth.pb.cc:56
static bool Type_Parse(const ::std::string &name, Type *value)
Definition: auth.pb.h:343
bool MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream *input) PROTOBUF_FINAL
Definition: auth.pb.cc:633
void InitDefaultsRole()
Definition: auth.pb.cc:99
static const ::google::protobuf::EnumDescriptor * Type_descriptor()
Definition: auth.pb.h:337
void InitDefaultsRoleImpl()
Definition: auth.pb.cc:82
void set_key(const ::std::string &value)
Definition: auth.pb.h:698
User & operator=(const User &from)
Definition: auth.pb.h:102
static const int kKeyPermissionFieldNumber
Definition: auth.pb.h:467
static const ::google::protobuf::Descriptor * descriptor()
Definition: auth.pb.cc:604
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
::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
void clear_password()
Definition: auth.pb.h:565
void set_allocated_password(::std::string *password)
Definition: auth.pb.h:607
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_
Definition: auth.pb.h:230
::google::protobuf::RepeatedPtrField< ::std::string > * mutable_roles()
Definition: auth.pb.h:681
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
static const ::google::protobuf::internal::ParseTableField entries[]
Definition: auth.pb.h:38
::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 set_allocated_name(::std::string *name)
Definition: auth.pb.h:554
void SharedCtor()
Definition: auth.pb.cc:869
const Permission_Type Permission_Type_Type_MIN
Definition: auth.pb.h:79
const Permission_Type Permission_Type_Type_MAX
Definition: auth.pb.h:80
static const ::google::protobuf::internal::FieldMetadata field_metadata[]
Definition: auth.pb.h:41
::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