4 #ifndef PROTOBUF_auth_2eproto__INCLUDED
5 #define PROTOBUF_auth_2eproto__INCLUDED
9 #include <google/protobuf/stubs/common.h>
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
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.
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>
30 #include <google/protobuf/extension_set.h>
31 #include <google/protobuf/generated_enum_reflection.h>
32 #include <google/protobuf/unknown_field_set.h>
35 namespace protobuf_auth_2eproto {
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];
43 static const ::google::protobuf::uint32
offsets[];
85 return ::google::protobuf::internal::NameOfEnum(
90 return ::google::protobuf::internal::ParseNamedEnum<Permission_Type>(
95 class User :
public ::google::protobuf::Message {
109 *
this = ::std::move(from);
121 static const ::google::protobuf::Descriptor*
descriptor();
126 return reinterpret_cast<const User*
>(
139 inline User*
New() const PROTOBUF_FINAL {
return New(NULL); }
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;
146 void Clear() PROTOBUF_FINAL;
151 ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
153 ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
155 bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
171 ::google::protobuf::Metadata
GetMetadata() const PROTOBUF_FINAL;
181 const ::std::
string&
roles(
int index) const;
183 void set_roles(
int index, const ::std::
string& value);
185 void set_roles(
int index, ::std::string&& value);
187 void set_roles(
int index,
const char* value);
188 void set_roles(
int index,
const char* value,
size_t size);
190 void add_roles(const ::std::string& 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();
202 const ::std::string&
name()
const;
203 void set_name(const ::std::string& value);
205 void set_name(::std::string&& value);
208 void set_name(
const void* value,
size_t size);
216 const ::std::string&
password()
const;
231 ::google::protobuf::RepeatedPtrField< ::std::string>
roles_;
232 ::google::protobuf::internal::ArenaStringPtr
name_;
235 friend struct ::protobuf_auth_2eproto::TableStruct;
254 *
this = ::std::move(from);
266 static const ::google::protobuf::Descriptor*
descriptor();
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;
291 void Clear() PROTOBUF_FINAL;
296 ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
298 ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
300 bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
316 ::google::protobuf::Metadata
GetMetadata() const PROTOBUF_FINAL;
336 static inline const ::google::protobuf::EnumDescriptor*
353 const ::std::string&
key()
const;
354 void set_key(const ::std::string& value);
356 void set_key(::std::string&& value);
358 void set_key(
const char* value);
359 void set_key(
const void* value,
size_t size);
374 ::google::protobuf::internal::ArenaStringPtr
key_;
377 friend struct ::protobuf_auth_2eproto::TableStruct;
382 class Role :
public ::google::protobuf::Message {
396 *
this = ::std::move(from);
408 static const ::google::protobuf::Descriptor*
descriptor();
413 return reinterpret_cast<const Role*
>(
426 inline Role*
New() const PROTOBUF_FINAL {
return New(NULL); }
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;
433 void Clear() PROTOBUF_FINAL;
438 ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
440 ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
442 bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
458 ::google::protobuf::Metadata
GetMetadata() const PROTOBUF_FINAL;
471 ::google::protobuf::RepeatedPtrField< ::authpb::
Permission >*
473 const ::google::protobuf::RepeatedPtrField< ::authpb::
Permission >&
479 const ::std::
string&
name() const;
480 void set_name(const ::std::
string& value);
482 void set_name(::std::string&& value);
485 void set_name(
const void* value,
size_t size);
495 ::google::protobuf::internal::ArenaStringPtr
name_;
497 friend struct ::protobuf_auth_2eproto::TableStruct;
506 #pragma GCC diagnostic push
507 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
513 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
517 return name_.GetNoArena();
521 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
528 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
533 GOOGLE_DCHECK(value != NULL);
535 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
540 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
541 ::std::string(reinterpret_cast<const char*>(value), size));
547 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
552 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
560 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
566 password_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
574 password_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
581 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
586 GOOGLE_DCHECK(value != NULL);
588 password_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
593 password_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
594 ::std::string(reinterpret_cast<const char*>(value), size));
600 return password_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
605 return password_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
608 if (password != NULL) {
613 password_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), password);
630 return roles_.Mutable(index);
634 roles_.Mutable(index)->assign(value);
639 roles_.Mutable(index)->assign(std::move(value));
643 GOOGLE_DCHECK(value != NULL);
644 roles_.Mutable(index)->assign(value);
648 roles_.Mutable(index)->assign(
649 reinterpret_cast<const char*>(value), size);
657 roles_.Add()->assign(value);
662 roles_.Add(std::move(value));
667 GOOGLE_DCHECK(value != NULL);
668 roles_.Add()->assign(value);
672 roles_.Add()->assign(reinterpret_cast<const char*>(value), size);
675 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
680 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
692 key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
696 return key_.GetNoArena();
700 key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
707 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
712 GOOGLE_DCHECK(value != NULL);
714 key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
719 key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
720 ::std::string(reinterpret_cast<const char*>(value), size));
726 return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
731 return key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
739 key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key);
763 name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
767 return name_.GetNoArena();
771 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
778 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
783 GOOGLE_DCHECK(value != NULL);
785 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
790 name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
791 ::std::string(reinterpret_cast<const char*>(value), size));
797 return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
802 return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
810 name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
833 inline ::google::protobuf::RepeatedPtrField< ::authpb::Permission >*
838 inline const ::google::protobuf::RepeatedPtrField< ::authpb::Permission >&
845 #pragma GCC diagnostic pop
861 inline const EnumDescriptor* GetEnumDescriptor< ::authpb::Permission_Type>() {
870 #endif // PROTOBUF_auth_2eproto__INCLUDED
::google::protobuf::RepeatedPtrField< ::std::string > roles_
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages
::google::protobuf::internal::ArenaStringPtr name_
::std::string * mutable_password()
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL
static const ::google::protobuf::internal::AuxillaryParseTableField aux[]
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL
Permission & operator=(const Permission &from)
static const int kPasswordFieldNumber
class authpb::PermissionDefaultTypeInternal _Permission_default_instance_
::google::protobuf::uint8 * InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 *target) const PROTOBUF_FINAL
const ::std::string & Permission_Type_Name(Permission_Type value)
static void InitAsDefaultInstance()
::std::string * release_key()
inline::google::protobuf::Arena * GetArenaNoVirtual() const
static const Permission & default_instance()
bool IsInitialized() const PROTOBUF_FINAL
static const User & default_instance()
static bool Type_IsValid(int value)
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_
void set_name(const ::std::string &value)
void Clear() PROTOBUF_FINAL
const ::std::string & name() const
Role & operator=(const Role &from)
size_t ByteSizeLong() const PROTOBUF_FINAL
void set_allocated_name(::std::string *name)
bool IsInitialized() const PROTOBUF_FINAL
bool IsInitialized() const PROTOBUF_FINAL
void CopyFrom(const ::google::protobuf::Message &from) PROTOBUF_FINAL
::std::string * release_name()
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages
bool MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream *input) PROTOBUF_FINAL
int GetCachedSize() const PROTOBUF_FINAL
void SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream *output) const PROTOBUF_FINAL
static const ::google::protobuf::Descriptor * descriptor()
::google::protobuf::RepeatedPtrField< ::authpb::Permission > keypermission_
class authpb::UserDefaultTypeInternal _User_default_instance_
const ::google::protobuf::EnumDescriptor * Permission_Type_descriptor()
int GetCachedSize() const PROTOBUF_FINAL
void CopyFrom(const ::google::protobuf::Message &from) PROTOBUF_FINAL
void InitDefaultsPermission()
void SetCachedSize(int size) const PROTOBUF_FINAL
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_
static void InitAsDefaultInstance()
void set_name(const ::std::string &value)
size_t ByteSizeLong() const PROTOBUF_FINAL
void InternalSwap(Role *other)
static const int kPermTypeFieldNumber
::std::string * release_password()
void set_roles(int index, const ::std::string &value)
::std::string * add_roles()
bool Permission_Type_IsValid(int value)
bool MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream *input) PROTOBUF_FINAL
static const ::google::protobuf::uint32 offsets[]
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL
::std::string * release_name()
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages
::std::string * mutable_name()
const ::google::protobuf::RepeatedPtrField< ::authpb::Permission > & keypermission() const
inline::google::protobuf::Arena * GetArenaNoVirtual() const
static const Role * internal_default_instance()
void * MaybeArenaPtr() const
void SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream *output) const PROTOBUF_FINAL
static void InitAsDefaultInstance()
void * MaybeArenaPtr() const
void set_allocated_key(::std::string *key)
void MergeFrom(const ::google::protobuf::Message &from) PROTOBUF_FINAL
friend void swap(Role &a, Role &b)
void Swap(Permission *other)
bool Permission_Type_Parse(const ::std::string &name, Permission_Type *value)
static const int kKeyFieldNumber
static const Role & default_instance()
::authpb::Permission_Type permtype() const
static const ::google::protobuf::internal::ParseTable schema[3]
static const int Type_ARRAYSIZE
void clear_keypermission()
void SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream *output) const PROTOBUF_FINAL
Permission * New() const PROTOBUF_FINAL
static const Type READWRITE
inline::google::protobuf::Arena * GetArenaNoVirtual() const
static const int kRolesFieldNumber
void MergeFrom(const ::google::protobuf::Message &from) PROTOBUF_FINAL
const ::google::protobuf::RepeatedPtrField< ::std::string > & roles() const
const int Permission_Type_Type_ARRAYSIZE
::google::protobuf::RepeatedPtrField< ::authpb::Permission > * mutable_keypermission()
static const Type Type_MIN
User * New() const PROTOBUF_FINAL
void set_permtype(::authpb::Permission_Type value)
void set_password(const ::std::string &value)
static const Type Type_MAX
void MergeFrom(const ::google::protobuf::Message &from) PROTOBUF_FINAL
void CopyFrom(const ::google::protobuf::Message &from) PROTOBUF_FINAL
::google::protobuf::internal::ArenaStringPtr password_
static const ::google::protobuf::internal::SerializationTable serialization_table[]
::google::protobuf::internal::ArenaStringPtr key_
class authpb::RoleDefaultTypeInternal _Role_default_instance_
size_t ByteSizeLong() const PROTOBUF_FINAL
const ::std::string & password() const
static const int kNameFieldNumber
int GetCachedSize() const PROTOBUF_FINAL
friend void swap(User &a, User &b)
static const ::std::string & Type_Name(Type value)
void * MaybeArenaPtr() const
void InternalSwap(User *other)
void InitDefaultsPermissionImpl()
static bool Type_Parse(const ::std::string &name, Type *value)
bool MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream *input) PROTOBUF_FINAL
static const ::google::protobuf::EnumDescriptor * Type_descriptor()
void InitDefaultsRoleImpl()
void set_key(const ::std::string &value)
User & operator=(const User &from)
static const int kKeyPermissionFieldNumber
static const ::google::protobuf::Descriptor * descriptor()
int keypermission_size() const
::google::protobuf::internal::ArenaStringPtr name_
const ::std::string & key() const
void Clear() PROTOBUF_FINAL
void SetCachedSize(int size) const PROTOBUF_FINAL
static const int kNameFieldNumber
::std::string * mutable_key()
::authpb::Permission * add_keypermission()
void SetCachedSize(int size) const PROTOBUF_FINAL
void set_allocated_password(::std::string *password)
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_
::google::protobuf::RepeatedPtrField< ::std::string > * mutable_roles()
void InternalSwap(Permission *other)
static const Permission * internal_default_instance()
const ::std::string & name() const
friend void swap(Permission &a, Permission &b)
static const User * internal_default_instance()
::google::protobuf::uint8 * InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 *target) const PROTOBUF_FINAL
static const ::google::protobuf::internal::ParseTableField entries[]
::std::string * mutable_name()
Role * New() const PROTOBUF_FINAL
void InitDefaultsUserImpl()
void set_allocated_name(::std::string *name)
const Permission_Type Permission_Type_Type_MIN
const Permission_Type Permission_Type_Type_MAX
static const ::google::protobuf::internal::FieldMetadata field_metadata[]
::google::protobuf::uint8 * InternalSerializeWithCachedSizesToArray(bool deterministic,::google::protobuf::uint8 *target) const PROTOBUF_FINAL
void Clear() PROTOBUF_FINAL
static const ::google::protobuf::Descriptor * descriptor()