func (*DescribeRoleRequest) Descriptor() ([]byte, []int) {
	return file_pkg_role_pb_request_proto_rawDescGZIP(), []int{3}
}
Deprecated: Use DescribeRoleRequest.ProtoReflect.Descriptor instead.
package role
import (
	_ "github.com/infraboard/mcube/cmd/protoc-gen-go-ext/extension/tag"
	page "github.com/infraboard/mcube/pb/page"
	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 CreateRoleRequest struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields
	Type RoleType `protobuf:"varint,1,opt,name=type,proto3,enum=keyauth.role.RoleType" json:"type" bson:"type"`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name" bson:"name" validate:"required,lte=30"`
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description" bson:"description" validate:"lte=400"`
	Meta map[string]string `protobuf:"bytes,4,rep,name=meta,proto3" json:"meta" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3" bson:"meta" validate:"lte=400"`
	Permissions []*CreatePermssionRequest `protobuf:"bytes,9,rep,name=permissions,proto3" json:"permissions" bson:"permissions"`
}
func (x *CreateRoleRequest) Reset() {
	*x = CreateRoleRequest{}
	if protoimpl.UnsafeEnabled {
		mi := &file_pkg_role_pb_request_proto_msgTypes[0]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}
func (x *CreateRoleRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}
func (*CreateRoleRequest) ProtoMessage() {}
func (x *CreateRoleRequest) ProtoReflect() protoreflect.Message {
	mi := &file_pkg_role_pb_request_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 (*CreateRoleRequest) Descriptor() ([]byte, []int) {
	return file_pkg_role_pb_request_proto_rawDescGZIP(), []int{0}
}
func (x *CreateRoleRequest) GetType() RoleType {
	if x != nil {
		return x.Type
	}
	return RoleType_NULL
}
func (x *CreateRoleRequest) GetName() string {
	if x != nil {
		return x.Name
	}
	return ""
}
func (x *CreateRoleRequest) GetDescription() string {
	if x != nil {
		return x.Description
	}
	return ""
}
func (x *CreateRoleRequest) GetMeta() map[string]string {
	if x != nil {
		return x.Meta
	}
	return nil
}
func (x *CreateRoleRequest) GetPermissions() []*CreatePermssionRequest {
	if x != nil {
		return x.Permissions
	}
	return nil
}
type CreatePermssionRequest struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields
	Effect EffectType `protobuf:"varint,1,opt,name=effect,proto3,enum=keyauth.role.EffectType" json:"effect" bson:"effect"`
	ServiceId string `protobuf:"bytes,2,opt,name=service_id,json=serviceId,proto3" json:"service_id" bson:"service_id"`
	ResourceName string `protobuf:"bytes,3,opt,name=resource_name,json=resourceName,proto3" json:"resource_name" bson:"resource_name"`
	LabelKey string `protobuf:"bytes,4,opt,name=label_key,json=labelKey,proto3" json:"label_key" bson:"label_key"`
	MatchAll bool `protobuf:"varint,5,opt,name=match_all,json=matchAll,proto3" json:"match_all" bson:"match_all"`
	LabelValues []string `protobuf:"bytes,6,rep,name=label_values,json=labelValues,proto3" json:"label_values" bson:"label_values"`
}
func (x *CreatePermssionRequest) Reset() {
	*x = CreatePermssionRequest{}
	if protoimpl.UnsafeEnabled {
		mi := &file_pkg_role_pb_request_proto_msgTypes[1]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}
func (x *CreatePermssionRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}
func (*CreatePermssionRequest) ProtoMessage() {}
func (x *CreatePermssionRequest) ProtoReflect() protoreflect.Message {
	mi := &file_pkg_role_pb_request_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 (*CreatePermssionRequest) Descriptor() ([]byte, []int) {
	return file_pkg_role_pb_request_proto_rawDescGZIP(), []int{1}
}
func (x *CreatePermssionRequest) GetEffect() EffectType {
	if x != nil {
		return x.Effect
	}
	return EffectType_ALLOW
}
func (x *CreatePermssionRequest) GetServiceId() string {
	if x != nil {
		return x.ServiceId
	}
	return ""
}
func (x *CreatePermssionRequest) GetResourceName() string {
	if x != nil {
		return x.ResourceName
	}
	return ""
}
func (x *CreatePermssionRequest) GetLabelKey() string {
	if x != nil {
		return x.LabelKey
	}
	return ""
}
func (x *CreatePermssionRequest) GetMatchAll() bool {
	if x != nil {
		return x.MatchAll
	}
	return false
}
func (x *CreatePermssionRequest) GetLabelValues() []string {
	if x != nil {
		return x.LabelValues
	}
	return nil
}
type QueryRoleRequest struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields
	Page   *page.PageRequest `protobuf:"bytes,1,opt,name=page,proto3" json:"page"`
	Type   RoleType          `protobuf:"varint,2,opt,name=type,proto3,enum=keyauth.role.RoleType" json:"type,omitempty"`
	Domain string            `protobuf:"bytes,3,opt,name=domain,proto3" json:"domain,omitempty"`
}
func (x *QueryRoleRequest) Reset() {
	*x = QueryRoleRequest{}
	if protoimpl.UnsafeEnabled {
		mi := &file_pkg_role_pb_request_proto_msgTypes[2]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}
func (x *QueryRoleRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}
func (*QueryRoleRequest) ProtoMessage() {}
func (x *QueryRoleRequest) ProtoReflect() protoreflect.Message {
	mi := &file_pkg_role_pb_request_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 (*QueryRoleRequest) Descriptor() ([]byte, []int) {
	return file_pkg_role_pb_request_proto_rawDescGZIP(), []int{2}
}
func (x *QueryRoleRequest) GetPage() *page.PageRequest {
	if x != nil {
		return x.Page
	}
	return nil
}
func (x *QueryRoleRequest) GetType() RoleType {
	if x != nil {
		return x.Type
	}
	return RoleType_NULL
}
func (x *QueryRoleRequest) GetDomain() string {
	if x != nil {
		return x.Domain
	}
	return ""
}
type DescribeRoleRequest struct {
	state         protoimpl.MessageState
	sizeCache     protoimpl.SizeCache
	unknownFields protoimpl.UnknownFields
	Id              string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id"`
	Name            string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty" validate:"required,lte=64"`
	WithPermissions bool     `protobuf:"varint,3,opt,name=with_permissions,json=withPermissions,proto3" json:"with_permissions" bson:"with_permissions"`
	Type            RoleType `protobuf:"varint,4,opt,name=type,proto3,enum=keyauth.role.RoleType" json:"type" bson:"type"`
}
func (x *DescribeRoleRequest) Reset() {
	*x = DescribeRoleRequest{}
	if protoimpl.UnsafeEnabled {
		mi := &file_pkg_role_pb_request_proto_msgTypes[3]
		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
		ms.StoreMessageInfo(mi)
	}
}
func (x *DescribeRoleRequest) String() string {
	return protoimpl.X.MessageStringOf(x)
}
func (*DescribeRoleRequest) ProtoMessage() {}
func (x *DescribeRoleRequest) ProtoReflect() protoreflect.Message {
	mi := &file_pkg_role_pb_request_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)
}