func (*PermissionSet) Descriptor() ([]byte, []int) {
	return file_pkg_role_pb_role_proto_rawDescGZIP(), []int{3}
}
Deprecated: Use PermissionSet.ProtoReflect.Descriptor instead.
package role
import (
	_ "github.com/infraboard/mcube/cmd/protoc-gen-go-ext/extension/tag"
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	reflect "reflect"
	sync "sync"
)
const (
	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type Role struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" bson:"_id"`
	CreateAt int64 `protobuf:"varint,2,opt,name=create_at,json=createAt,proto3" json:"create_at" bson:"create_at"`
	UpdateAt int64 `protobuf:"varint,3,opt,name=update_at,json=updateAt,proto3" json:"update_at" bson:"update_at"`
	Domain string `protobuf:"bytes,4,opt,name=domain,proto3" json:"domain" bson:"domain"`
	Creater string `protobuf:"bytes,5,opt,name=creater,proto3" json:"creater" bson:"creater"`
	Type RoleType `protobuf:"varint,6,opt,name=type,proto3,enum=keyauth.role.RoleType" json:"type" bson:"type"`
	Name string `protobuf:"bytes,7,opt,name=name,proto3" json:"name" bson:"name"`
	Description string `protobuf:"bytes,8,opt,name=description,proto3" json:"description" bson:"description"`
	Meta map[string]string `protobuf:"bytes,10,rep,name=meta,proto3" json:"meta" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3" bson:"meta"`
	Permissions []*Permission `protobuf:"bytes,9,rep,name=permissions,proto3" json:"permissions,omitempty" bson:"-"`
	Scope string `protobuf:"bytes,11,opt,name=scope,proto3" json:"scope" bson:"-"`
}
func (x *Role) Reset() {
	*x = Role{}
	if protoimpl.UnsafeEnabled {
		mi := &file_pkg_role_pb_role_proto_msgTypes[0]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}
func (x *Role) String() string {
	return protoimpl.X.MessageStringOf(x)
}
func (*Role) ProtoMessage() {}
func (x *Role) ProtoReflect() protoreflect.Message {
	mi := &file_pkg_role_pb_role_proto_msgTypes[0]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}
func (*Role) Descriptor() ([]byte, []int) {
	return file_pkg_role_pb_role_proto_rawDescGZIP(), []int{0}
}
func (x *Role) GetId() string {
	if x != nil {
		return x.Id
	}
	return ""
}
func (x *Role) GetCreateAt() int64 {
	if x != nil {
		return x.CreateAt
	}
	return 0
}
func (x *Role) GetUpdateAt() int64 {
	if x != nil {
		return x.UpdateAt
	}
	return 0
}
func (x *Role) GetDomain() string {
	if x != nil {
		return x.Domain
	}
	return ""
}
func (x *Role) GetCreater() string {
	if x != nil {
		return x.Creater
	}
	return ""
}
func (x *Role) GetType() RoleType {
	if x != nil {
		return x.Type
	}
	return RoleType_NULL
}
func (x *Role) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}
func (x *Role) GetDescription() string {
	if x != nil {
		return x.Description
	}
	return ""
}
func (x *Role) GetMeta() map[string]string {
	if x != nil {
		return x.Meta
	}
	return nil
}
func (x *Role) GetPermissions() []*Permission {
	if x != nil {
		return x.Permissions
	}
	return nil
}
func (x *Role) GetScope() string {
	if x != nil {
		return x.Scope
	}
	return ""
}
type Permission struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" bson:"_id"`
	RoleId string `protobuf:"bytes,2,opt,name=role_id,json=roleId,proto3" json:"role_id" bson:"role_id"`
	CreateAt int64 `protobuf:"varint,3,opt,name=create_at,json=createAt,proto3" json:"create_at" bson:"create_at"`
	Creater string `protobuf:"bytes,4,opt,name=creater,proto3" json:"creater" bson:"creater"`
	Effect EffectType `protobuf:"varint,5,opt,name=effect,proto3,enum=keyauth.role.EffectType" json:"effect" bson:"effect"`
	ServiceId string `protobuf:"bytes,6,opt,name=service_id,json=serviceId,proto3" json:"service_id" bson:"service_id"`
	ResourceName string `protobuf:"bytes,7,opt,name=resource_name,json=resourceName,proto3" json:"resource_name" bson:"resource_name"`
	LabelKey string `protobuf:"bytes,8,opt,name=label_key,json=labelKey,proto3" json:"label_key" bson:"label_key"`
	MatchAll bool `protobuf:"varint,9,opt,name=match_all,json=matchAll,proto3" json:"match_all" bson:"match_all"`
	LabelValues []string `protobuf:"bytes,10,rep,name=label_values,json=labelValues,proto3" json:"label_values" bson:"label_values"`
	Scope string `protobuf:"bytes,11,opt,name=scope,proto3" json:"scope" bson:"-"`
	Desc string `protobuf:"bytes,12,opt,name=desc,proto3" json:"desc" bson:"desc"`
}
func (x *Permission) Reset() {
	*x = Permission{}
	if protoimpl.UnsafeEnabled {
		mi := &file_pkg_role_pb_role_proto_msgTypes[1]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}
func (x *Permission) String() string {
	return protoimpl.X.MessageStringOf(x)
}
func (*Permission) ProtoMessage() {}
func (x *Permission) ProtoReflect() protoreflect.Message {
	mi := &file_pkg_role_pb_role_proto_msgTypes[1]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}
func (*Permission) Descriptor() ([]byte, []int) {
	return file_pkg_role_pb_role_proto_rawDescGZIP(), []int{1}
}
func (x *Permission) GetId() string {
	if x != nil {
		return x.Id
	}
	return ""
}
func (x *Permission) GetRoleId() string {
	if x != nil {
		return x.RoleId
	}
	return ""
}
func (x *Permission) GetCreateAt() int64 {
	if x != nil {
		return x.CreateAt
	}
	return 0
}
func (x *Permission) GetCreater() string {
	if x != nil {
		return x.Creater
	}
	return ""
}
func (x *Permission) GetEffect() EffectType {
	if x != nil {
		return x.Effect
	}
	return EffectType_ALLOW
}
func (x *Permission) GetServiceId() string {
	if x != nil {
		return x.ServiceId
	}
	return ""
}
func (x *Permission) GetResourceName() string {
	if x != nil {
		return x.ResourceName
	}
	return ""
}
func (x *Permission) GetLabelKey() string {
	if x != nil {
		return x.LabelKey
	}
	return ""
}
func (x *Permission) GetMatchAll() bool {
	if x != nil {
		return x.MatchAll
	}
	return false
}
func (x *Permission) GetLabelValues() []string {
	if x != nil {
		return x.LabelValues
	}
	return nil
}
func (x *Permission) GetScope() string {
	if x != nil {
		return x.Scope
	}
	return ""
}
func (x *Permission) GetDesc() string {
	if x != nil {
		return x.Desc
	}
	return ""
}
type Set struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields
	Total int64   `protobuf:"varint,1,opt,name=total,proto3" json:"total" bson:"total"`
	Items []*Role `protobuf:"bytes,2,rep,name=items,proto3" json:"items" bson:"items"`
}
func (x *Set) Reset() {
	*x = Set{}
	if protoimpl.UnsafeEnabled {
		mi := &file_pkg_role_pb_role_proto_msgTypes[2]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}
func (x *Set) String() string {
	return protoimpl.X.MessageStringOf(x)
}
func (*Set) ProtoMessage() {}
func (x *Set) ProtoReflect() protoreflect.Message {
	mi := &file_pkg_role_pb_role_proto_msgTypes[2]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}
func (*Set) Descriptor() ([]byte, []int) {
	return file_pkg_role_pb_role_proto_rawDescGZIP(), []int{2}
}
func (x *Set) GetTotal() int64 {
	if x != nil {
		return x.Total
	}
	return 0
}
func (x *Set) GetItems() []*Role {
	if x != nil {
		return x.Items
	}
	return nil
}
type PermissionSet struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields
	Total int64         `protobuf:"varint,1,opt,name=total,proto3" json:"total" bson:"total"`
	Items []*Permission `protobuf:"bytes,2,rep,name=items,proto3" json:"items" bson:"items"`
}
func (x *PermissionSet) Reset() {
	*x = PermissionSet{}
	if protoimpl.UnsafeEnabled {
		mi := &file_pkg_role_pb_role_proto_msgTypes[3]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}
func (x *PermissionSet) String() string {
	return protoimpl.X.MessageStringOf(x)
}
func (*PermissionSet) ProtoMessage() {}
func (x *PermissionSet) ProtoReflect() protoreflect.Message {
	mi := &file_pkg_role_pb_role_proto_msgTypes[3]
	if protoimpl.UnsafeEnabled && x != nil {
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		if ms.LoadMessageInfo() == nil {
			ms.StoreMessageInfo(mi)
		}
		return ms
	}
	return mi.MessageOf(x)
}