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>
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[];
60 class PermissionDefaultTypeInternal;
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;
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;
479 const ::
std::
string&
name() const;
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());
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>() {
::google::protobuf::internal::ArenaStringPtr key_
void set_permtype(::authpb::Permission_Type value)
static bool Type_IsValid(int value)
size_t ByteSizeLong() const PROTOBUF_FINAL
static const ::google::protobuf::EnumDescriptor * Type_descriptor()
static const Type Type_MIN
void SetCachedSize(int size) const PROTOBUF_FINAL
static void InitAsDefaultInstance()
inline ::google::protobuf::Arena * GetArenaNoVirtual() const
void set_key(const ::std::string &value)
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL
bool MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream *input) PROTOBUF_FINAL
void * MaybeArenaPtr() const
static const ::std::string & Type_Name(Type value)
int GetCachedSize() const PROTOBUF_FINAL
void CopyFrom(const ::google::protobuf::Message &from) PROTOBUF_FINAL
static const Type READWRITE
static const int kPermTypeFieldNumber
::std::string * mutable_key()
static const int Type_ARRAYSIZE
static const Permission & default_instance()
static const int kKeyFieldNumber
void MergeFrom(const ::google::protobuf::Message &from) PROTOBUF_FINAL
const ::std::string & key() const
void set_allocated_key(::std::string *key)
void InternalSwap(Permission *other)
void Clear() PROTOBUF_FINAL
void SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream *output) const PROTOBUF_FINAL
friend void swap(Permission &a, Permission &b)
bool IsInitialized() const PROTOBUF_FINAL
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_
Permission & operator=(const Permission &from)
::google::protobuf::uint8 * InternalSerializeWithCachedSizesToArray(bool deterministic, ::google::protobuf::uint8 *target) const PROTOBUF_FINAL
static bool Type_Parse(const ::std::string &name, Type *value)
static const Type Type_MAX
Permission * New() const PROTOBUF_FINAL
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages
static const ::google::protobuf::Descriptor * descriptor()
::authpb::Permission_Type permtype() const
static const Permission * internal_default_instance()
::std::string * release_key()
void Swap(Permission *other)
bool MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream *input) PROTOBUF_FINAL
void Clear() PROTOBUF_FINAL
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_
void MergeFrom(const ::google::protobuf::Message &from) PROTOBUF_FINAL
inline ::google::protobuf::Arena * GetArenaNoVirtual() const
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages
void CopyFrom(const ::google::protobuf::Message &from) PROTOBUF_FINAL
Role * New() const PROTOBUF_FINAL
static const int kNameFieldNumber
static const ::google::protobuf::Descriptor * descriptor()
static void InitAsDefaultInstance()
::std::string * mutable_name()
friend void swap(Role &a, Role &b)
void clear_keypermission()
::google::protobuf::internal::ArenaStringPtr name_
::google::protobuf::uint8 * InternalSerializeWithCachedSizesToArray(bool deterministic, ::google::protobuf::uint8 *target) const PROTOBUF_FINAL
void SetCachedSize(int size) const PROTOBUF_FINAL
void set_allocated_name(::std::string *name)
Role & operator=(const Role &from)
const ::std::string & name() const
size_t ByteSizeLong() const PROTOBUF_FINAL
void set_name(const ::std::string &value)
static const Role * internal_default_instance()
static const Role & default_instance()
static const int kKeyPermissionFieldNumber
void * MaybeArenaPtr() const
void SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream *output) const PROTOBUF_FINAL
bool IsInitialized() const PROTOBUF_FINAL
const ::google::protobuf::RepeatedPtrField< ::authpb::Permission > & keypermission() const
int GetCachedSize() const PROTOBUF_FINAL
::std::string * release_name()
void InternalSwap(Role *other)
::google::protobuf::RepeatedPtrField< ::authpb::Permission > keypermission_
::authpb::Permission * add_keypermission()
int keypermission_size() const
::google::protobuf::RepeatedPtrField< ::authpb::Permission > * mutable_keypermission()
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL
::std::string * mutable_name()
::google::protobuf::uint8 * InternalSerializeWithCachedSizesToArray(bool deterministic, ::google::protobuf::uint8 *target) const PROTOBUF_FINAL
static void InitAsDefaultInstance()
static const User * internal_default_instance()
static const User & default_instance()
void InternalSwap(User *other)
void * MaybeArenaPtr() const
inline ::google::protobuf::Arena * GetArenaNoVirtual() const
void CopyFrom(const ::google::protobuf::Message &from) PROTOBUF_FINAL
static const int kNameFieldNumber
::google::protobuf::RepeatedPtrField< ::std::string > * mutable_roles()
User * New() const PROTOBUF_FINAL
const ::std::string & password() const
const ::std::string & name() const
::std::string * add_roles()
::std::string * release_name()
::std::string * release_password()
void Clear() PROTOBUF_FINAL
friend void swap(User &a, User &b)
::google::protobuf::RepeatedPtrField< ::std::string > roles_
const ::google::protobuf::RepeatedPtrField< ::std::string > & roles() const
static const int kRolesFieldNumber
void set_name(const ::std::string &value)
int GetCachedSize() const PROTOBUF_FINAL
bool IsInitialized() const PROTOBUF_FINAL
size_t ByteSizeLong() const PROTOBUF_FINAL
void set_password(const ::std::string &value)
void SetCachedSize(int size) const PROTOBUF_FINAL
::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL
void set_allocated_name(::std::string *name)
::std::string * mutable_password()
User & operator=(const User &from)
void SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream *output) const PROTOBUF_FINAL
static const int kPasswordFieldNumber
void set_allocated_password(::std::string *password)
::google::protobuf::internal::ArenaStringPtr name_
void set_roles(int index, const ::std::string &value)
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_
bool MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream *input) PROTOBUF_FINAL
static PROTOBUF_CONSTEXPR int const kIndexInFileMessages
void MergeFrom(const ::google::protobuf::Message &from) PROTOBUF_FINAL
::google::protobuf::internal::ArenaStringPtr password_
static const ::google::protobuf::Descriptor * descriptor()
bool Permission_Type_IsValid(int value)
@ Permission_Type_Permission_Type_INT_MIN_SENTINEL_DO_NOT_USE_
@ Permission_Type_READWRITE
@ Permission_Type_Permission_Type_INT_MAX_SENTINEL_DO_NOT_USE_
const ::google::protobuf::EnumDescriptor * Permission_Type_descriptor()
class authpb::PermissionDefaultTypeInternal _Permission_default_instance_
const Permission_Type Permission_Type_Type_MAX
class authpb::RoleDefaultTypeInternal _Role_default_instance_
class authpb::UserDefaultTypeInternal _User_default_instance_
const int Permission_Type_Type_ARRAYSIZE
const Permission_Type Permission_Type_Type_MIN
bool Permission_Type_Parse(const ::std::string &name, Permission_Type *value)
const ::std::string & Permission_Type_Name(Permission_Type value)
void InitDefaultsRoleImpl()
void InitDefaultsUserImpl()
void InitDefaultsPermission()
void InitDefaultsPermissionImpl()
static const ::google::protobuf::internal::SerializationTable serialization_table[]
static const ::google::protobuf::internal::FieldMetadata field_metadata[]
static const ::google::protobuf::uint32 offsets[]
static const ::google::protobuf::internal::ParseTable schema[3]
static const ::google::protobuf::internal::ParseTableField entries[]