github.com/infraboard/keyauth@v0.8.1/apps/role/role.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.27.1
     4  // 	protoc        v3.19.1
     5  // source: apps/role/pb/role.proto
     6  
     7  package role
     8  
     9  import (
    10  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    11  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    12  	reflect "reflect"
    13  	sync "sync"
    14  )
    15  
    16  const (
    17  	// Verify that this generated code is sufficiently up-to-date.
    18  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    19  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    20  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    21  )
    22  
    23  // Role is rbac's role
    24  type Role struct {
    25  	state         protoimpl.MessageState
    26  	sizeCache     protoimpl.SizeCache
    27  	unknownFields protoimpl.UnknownFields
    28  
    29  	// 角色ID
    30  	// @gotags: bson:"_id" json:"id"
    31  	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" bson:"_id"`
    32  	// 创建时间
    33  	// @gotags: bson:"create_at" json:"create_at"
    34  	CreateAt int64 `protobuf:"varint,2,opt,name=create_at,json=createAt,proto3" json:"create_at" bson:"create_at"`
    35  	// 更新时间
    36  	// @gotags: bson:"update_at" json:"update_at"
    37  	UpdateAt int64 `protobuf:"varint,3,opt,name=update_at,json=updateAt,proto3" json:"update_at" bson:"update_at"`
    38  	// 角色所属域
    39  	// @gotags: bson:"domain" json:"domain"
    40  	Domain string `protobuf:"bytes,4,opt,name=domain,proto3" json:"domain" bson:"domain"`
    41  	// 创建人
    42  	// @gotags: bson:"creater" json:"creater"
    43  	Creater string `protobuf:"bytes,5,opt,name=creater,proto3" json:"creater" bson:"creater"`
    44  	// 角色类型
    45  	// @gotags: bson:"type" json:"type"
    46  	Type RoleType `protobuf:"varint,6,opt,name=type,proto3,enum=infraboard.keyauth.role.RoleType" json:"type" bson:"type"`
    47  	// 应用名称
    48  	// @gotags: bson:"name" json:"name"
    49  	Name string `protobuf:"bytes,7,opt,name=name,proto3" json:"name" bson:"name"`
    50  	// 应用简单的描述
    51  	// @gotags: bson:"description" json:"description"
    52  	Description string `protobuf:"bytes,8,opt,name=description,proto3" json:"description" bson:"description"`
    53  	// 角色关联的一些额外的meta信息, 比如前端视图
    54  	// @gotags: bson:"meta" json:"meta"
    55  	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"`
    56  	// 读权限
    57  	// @gotags: bson:"-" json:"permissions,omitempty"
    58  	Permissions []*Permission `protobuf:"bytes,9,rep,name=permissions,proto3" json:"permissions,omitempty" bson:"-"`
    59  	// 范围, 角色范围限制, 由策略引擎动态补充
    60  	// @gotags: bson:"-" json:"scope"
    61  	Scope string `protobuf:"bytes,11,opt,name=scope,proto3" json:"scope" bson:"-"`
    62  }
    63  
    64  func (x *Role) Reset() {
    65  	*x = Role{}
    66  	if protoimpl.UnsafeEnabled {
    67  		mi := &file_apps_role_pb_role_proto_msgTypes[0]
    68  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    69  		ms.StoreMessageInfo(mi)
    70  	}
    71  }
    72  
    73  func (x *Role) String() string {
    74  	return protoimpl.X.MessageStringOf(x)
    75  }
    76  
    77  func (*Role) ProtoMessage() {}
    78  
    79  func (x *Role) ProtoReflect() protoreflect.Message {
    80  	mi := &file_apps_role_pb_role_proto_msgTypes[0]
    81  	if protoimpl.UnsafeEnabled && x != nil {
    82  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    83  		if ms.LoadMessageInfo() == nil {
    84  			ms.StoreMessageInfo(mi)
    85  		}
    86  		return ms
    87  	}
    88  	return mi.MessageOf(x)
    89  }
    90  
    91  // Deprecated: Use Role.ProtoReflect.Descriptor instead.
    92  func (*Role) Descriptor() ([]byte, []int) {
    93  	return file_apps_role_pb_role_proto_rawDescGZIP(), []int{0}
    94  }
    95  
    96  func (x *Role) GetId() string {
    97  	if x != nil {
    98  		return x.Id
    99  	}
   100  	return ""
   101  }
   102  
   103  func (x *Role) GetCreateAt() int64 {
   104  	if x != nil {
   105  		return x.CreateAt
   106  	}
   107  	return 0
   108  }
   109  
   110  func (x *Role) GetUpdateAt() int64 {
   111  	if x != nil {
   112  		return x.UpdateAt
   113  	}
   114  	return 0
   115  }
   116  
   117  func (x *Role) GetDomain() string {
   118  	if x != nil {
   119  		return x.Domain
   120  	}
   121  	return ""
   122  }
   123  
   124  func (x *Role) GetCreater() string {
   125  	if x != nil {
   126  		return x.Creater
   127  	}
   128  	return ""
   129  }
   130  
   131  func (x *Role) GetType() RoleType {
   132  	if x != nil {
   133  		return x.Type
   134  	}
   135  	return RoleType_NULL
   136  }
   137  
   138  func (x *Role) GetName() string {
   139  	if x != nil {
   140  		return x.Name
   141  	}
   142  	return ""
   143  }
   144  
   145  func (x *Role) GetDescription() string {
   146  	if x != nil {
   147  		return x.Description
   148  	}
   149  	return ""
   150  }
   151  
   152  func (x *Role) GetMeta() map[string]string {
   153  	if x != nil {
   154  		return x.Meta
   155  	}
   156  	return nil
   157  }
   158  
   159  func (x *Role) GetPermissions() []*Permission {
   160  	if x != nil {
   161  		return x.Permissions
   162  	}
   163  	return nil
   164  }
   165  
   166  func (x *Role) GetScope() string {
   167  	if x != nil {
   168  		return x.Scope
   169  	}
   170  	return ""
   171  }
   172  
   173  // Permission 权限
   174  type Permission struct {
   175  	state         protoimpl.MessageState
   176  	sizeCache     protoimpl.SizeCache
   177  	unknownFields protoimpl.UnknownFields
   178  
   179  	// id
   180  	// @gotags: bson:"_id" json:"id"
   181  	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" bson:"_id"`
   182  	// 关联角色ID
   183  	// @gotags: bson:"role_id" json:"role_id"
   184  	RoleId string `protobuf:"bytes,2,opt,name=role_id,json=roleId,proto3" json:"role_id" bson:"role_id"`
   185  	// 创建时间
   186  	// @gotags: bson:"create_at" json:"create_at"
   187  	CreateAt int64 `protobuf:"varint,3,opt,name=create_at,json=createAt,proto3" json:"create_at" bson:"create_at"`
   188  	// 创建人
   189  	// @gotags: bson:"creater" json:"creater"
   190  	Creater string `protobuf:"bytes,4,opt,name=creater,proto3" json:"creater" bson:"creater"`
   191  	// 效力
   192  	// @gotags: bson:"effect" json:"effect"
   193  	Effect EffectType `protobuf:"varint,5,opt,name=effect,proto3,enum=infraboard.keyauth.role.EffectType" json:"effect" bson:"effect"`
   194  	// 服务ID
   195  	// @gotags: bson:"service_id" json:"service_id"
   196  	ServiceId string `protobuf:"bytes,6,opt,name=service_id,json=serviceId,proto3" json:"service_id" bson:"service_id"`
   197  	// 资源列表
   198  	// @gotags: bson:"resource_name" json:"resource_name"
   199  	ResourceName string `protobuf:"bytes,7,opt,name=resource_name,json=resourceName,proto3" json:"resource_name" bson:"resource_name"`
   200  	// 维度
   201  	// @gotags: bson:"label_key" json:"label_key"
   202  	LabelKey string `protobuf:"bytes,8,opt,name=label_key,json=labelKey,proto3" json:"label_key" bson:"label_key"`
   203  	// 适配所有值
   204  	// @gotags: bson:"match_all" json:"match_all"
   205  	MatchAll bool `protobuf:"varint,9,opt,name=match_all,json=matchAll,proto3" json:"match_all" bson:"match_all"`
   206  	// 标识值
   207  	// @gotags: bson:"label_values" json:"label_values"
   208  	LabelValues []string `protobuf:"bytes,10,rep,name=label_values,json=labelValues,proto3" json:"label_values" bson:"label_values"`
   209  	// 范围, 角色范围限制, 由策略引擎动态补充
   210  	// @gotags: bson:"-" json:"scope"
   211  	Scope string `protobuf:"bytes,11,opt,name=scope,proto3" json:"scope" bson:"-"`
   212  	// 权限描述
   213  	// @gotags: bson:"desc" json:"desc"
   214  	Desc string `protobuf:"bytes,12,opt,name=desc,proto3" json:"desc" bson:"desc"`
   215  }
   216  
   217  func (x *Permission) Reset() {
   218  	*x = Permission{}
   219  	if protoimpl.UnsafeEnabled {
   220  		mi := &file_apps_role_pb_role_proto_msgTypes[1]
   221  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   222  		ms.StoreMessageInfo(mi)
   223  	}
   224  }
   225  
   226  func (x *Permission) String() string {
   227  	return protoimpl.X.MessageStringOf(x)
   228  }
   229  
   230  func (*Permission) ProtoMessage() {}
   231  
   232  func (x *Permission) ProtoReflect() protoreflect.Message {
   233  	mi := &file_apps_role_pb_role_proto_msgTypes[1]
   234  	if protoimpl.UnsafeEnabled && x != nil {
   235  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   236  		if ms.LoadMessageInfo() == nil {
   237  			ms.StoreMessageInfo(mi)
   238  		}
   239  		return ms
   240  	}
   241  	return mi.MessageOf(x)
   242  }
   243  
   244  // Deprecated: Use Permission.ProtoReflect.Descriptor instead.
   245  func (*Permission) Descriptor() ([]byte, []int) {
   246  	return file_apps_role_pb_role_proto_rawDescGZIP(), []int{1}
   247  }
   248  
   249  func (x *Permission) GetId() string {
   250  	if x != nil {
   251  		return x.Id
   252  	}
   253  	return ""
   254  }
   255  
   256  func (x *Permission) GetRoleId() string {
   257  	if x != nil {
   258  		return x.RoleId
   259  	}
   260  	return ""
   261  }
   262  
   263  func (x *Permission) GetCreateAt() int64 {
   264  	if x != nil {
   265  		return x.CreateAt
   266  	}
   267  	return 0
   268  }
   269  
   270  func (x *Permission) GetCreater() string {
   271  	if x != nil {
   272  		return x.Creater
   273  	}
   274  	return ""
   275  }
   276  
   277  func (x *Permission) GetEffect() EffectType {
   278  	if x != nil {
   279  		return x.Effect
   280  	}
   281  	return EffectType_ALLOW
   282  }
   283  
   284  func (x *Permission) GetServiceId() string {
   285  	if x != nil {
   286  		return x.ServiceId
   287  	}
   288  	return ""
   289  }
   290  
   291  func (x *Permission) GetResourceName() string {
   292  	if x != nil {
   293  		return x.ResourceName
   294  	}
   295  	return ""
   296  }
   297  
   298  func (x *Permission) GetLabelKey() string {
   299  	if x != nil {
   300  		return x.LabelKey
   301  	}
   302  	return ""
   303  }
   304  
   305  func (x *Permission) GetMatchAll() bool {
   306  	if x != nil {
   307  		return x.MatchAll
   308  	}
   309  	return false
   310  }
   311  
   312  func (x *Permission) GetLabelValues() []string {
   313  	if x != nil {
   314  		return x.LabelValues
   315  	}
   316  	return nil
   317  }
   318  
   319  func (x *Permission) GetScope() string {
   320  	if x != nil {
   321  		return x.Scope
   322  	}
   323  	return ""
   324  }
   325  
   326  func (x *Permission) GetDesc() string {
   327  	if x != nil {
   328  		return x.Desc
   329  	}
   330  	return ""
   331  }
   332  
   333  type Set struct {
   334  	state         protoimpl.MessageState
   335  	sizeCache     protoimpl.SizeCache
   336  	unknownFields protoimpl.UnknownFields
   337  
   338  	// @gotags: bson:"total" json:"total"
   339  	Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total" bson:"total"`
   340  	// @gotags: bson:"items" json:"items"
   341  	Items []*Role `protobuf:"bytes,2,rep,name=items,proto3" json:"items" bson:"items"`
   342  }
   343  
   344  func (x *Set) Reset() {
   345  	*x = Set{}
   346  	if protoimpl.UnsafeEnabled {
   347  		mi := &file_apps_role_pb_role_proto_msgTypes[2]
   348  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   349  		ms.StoreMessageInfo(mi)
   350  	}
   351  }
   352  
   353  func (x *Set) String() string {
   354  	return protoimpl.X.MessageStringOf(x)
   355  }
   356  
   357  func (*Set) ProtoMessage() {}
   358  
   359  func (x *Set) ProtoReflect() protoreflect.Message {
   360  	mi := &file_apps_role_pb_role_proto_msgTypes[2]
   361  	if protoimpl.UnsafeEnabled && x != nil {
   362  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   363  		if ms.LoadMessageInfo() == nil {
   364  			ms.StoreMessageInfo(mi)
   365  		}
   366  		return ms
   367  	}
   368  	return mi.MessageOf(x)
   369  }
   370  
   371  // Deprecated: Use Set.ProtoReflect.Descriptor instead.
   372  func (*Set) Descriptor() ([]byte, []int) {
   373  	return file_apps_role_pb_role_proto_rawDescGZIP(), []int{2}
   374  }
   375  
   376  func (x *Set) GetTotal() int64 {
   377  	if x != nil {
   378  		return x.Total
   379  	}
   380  	return 0
   381  }
   382  
   383  func (x *Set) GetItems() []*Role {
   384  	if x != nil {
   385  		return x.Items
   386  	}
   387  	return nil
   388  }
   389  
   390  // PermissionSet 用户列表
   391  type PermissionSet struct {
   392  	state         protoimpl.MessageState
   393  	sizeCache     protoimpl.SizeCache
   394  	unknownFields protoimpl.UnknownFields
   395  
   396  	// @gotags: bson:"total" json:"total"
   397  	Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total" bson:"total"`
   398  	// @gotags: bson:"items" json:"items"
   399  	Items []*Permission `protobuf:"bytes,2,rep,name=items,proto3" json:"items" bson:"items"`
   400  }
   401  
   402  func (x *PermissionSet) Reset() {
   403  	*x = PermissionSet{}
   404  	if protoimpl.UnsafeEnabled {
   405  		mi := &file_apps_role_pb_role_proto_msgTypes[3]
   406  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   407  		ms.StoreMessageInfo(mi)
   408  	}
   409  }
   410  
   411  func (x *PermissionSet) String() string {
   412  	return protoimpl.X.MessageStringOf(x)
   413  }
   414  
   415  func (*PermissionSet) ProtoMessage() {}
   416  
   417  func (x *PermissionSet) ProtoReflect() protoreflect.Message {
   418  	mi := &file_apps_role_pb_role_proto_msgTypes[3]
   419  	if protoimpl.UnsafeEnabled && x != nil {
   420  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   421  		if ms.LoadMessageInfo() == nil {
   422  			ms.StoreMessageInfo(mi)
   423  		}
   424  		return ms
   425  	}
   426  	return mi.MessageOf(x)
   427  }
   428  
   429  // Deprecated: Use PermissionSet.ProtoReflect.Descriptor instead.
   430  func (*PermissionSet) Descriptor() ([]byte, []int) {
   431  	return file_apps_role_pb_role_proto_rawDescGZIP(), []int{3}
   432  }
   433  
   434  func (x *PermissionSet) GetTotal() int64 {
   435  	if x != nil {
   436  		return x.Total
   437  	}
   438  	return 0
   439  }
   440  
   441  func (x *PermissionSet) GetItems() []*Permission {
   442  	if x != nil {
   443  		return x.Items
   444  	}
   445  	return nil
   446  }
   447  
   448  var File_apps_role_pb_role_proto protoreflect.FileDescriptor
   449  
   450  var file_apps_role_pb_role_proto_rawDesc = []byte{
   451  	0x0a, 0x17, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x72, 0x6f, 0x6c, 0x65, 0x2f, 0x70, 0x62, 0x2f, 0x72,
   452  	0x6f, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x69, 0x6e, 0x66, 0x72, 0x61,
   453  	0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x72, 0x6f,
   454  	0x6c, 0x65, 0x1a, 0x17, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x72, 0x6f, 0x6c, 0x65, 0x2f, 0x70, 0x62,
   455  	0x2f, 0x65, 0x6e, 0x75, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc2, 0x03, 0x0a, 0x04,
   456  	0x52, 0x6f, 0x6c, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
   457  	0x52, 0x02, 0x69, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x61,
   458  	0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41,
   459  	0x74, 0x12, 0x1b, 0x0a, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x61, 0x74, 0x18, 0x03,
   460  	0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x74, 0x12, 0x16,
   461  	0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
   462  	0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65,
   463  	0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x72,
   464  	0x12, 0x35, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21,
   465  	0x2e, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x6b, 0x65, 0x79, 0x61,
   466  	0x75, 0x74, 0x68, 0x2e, 0x72, 0x6f, 0x6c, 0x65, 0x2e, 0x52, 0x6f, 0x6c, 0x65, 0x54, 0x79, 0x70,
   467  	0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,
   468  	0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64,
   469  	0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09,
   470  	0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3b, 0x0a,
   471  	0x04, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x69, 0x6e,
   472  	0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68,
   473  	0x2e, 0x72, 0x6f, 0x6c, 0x65, 0x2e, 0x52, 0x6f, 0x6c, 0x65, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x45,
   474  	0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x12, 0x45, 0x0a, 0x0b, 0x70, 0x65,
   475  	0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32,
   476  	0x23, 0x2e, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x6b, 0x65, 0x79,
   477  	0x61, 0x75, 0x74, 0x68, 0x2e, 0x72, 0x6f, 0x6c, 0x65, 0x2e, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73,
   478  	0x73, 0x69, 0x6f, 0x6e, 0x52, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e,
   479  	0x73, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09,
   480  	0x52, 0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x1a, 0x37, 0x0a, 0x09, 0x4d, 0x65, 0x74, 0x61, 0x45,
   481  	0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28,
   482  	0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,
   483  	0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01,
   484  	0x22, 0xf4, 0x02, 0x0a, 0x0a, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12,
   485  	0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12,
   486  	0x17, 0x0a, 0x07, 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
   487  	0x52, 0x06, 0x72, 0x6f, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x72, 0x65, 0x61,
   488  	0x74, 0x65, 0x5f, 0x61, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x63, 0x72, 0x65,
   489  	0x61, 0x74, 0x65, 0x41, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x72,
   490  	0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x72, 0x12,
   491  	0x3b, 0x0a, 0x06, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32,
   492  	0x23, 0x2e, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x6b, 0x65, 0x79,
   493  	0x61, 0x75, 0x74, 0x68, 0x2e, 0x72, 0x6f, 0x6c, 0x65, 0x2e, 0x45, 0x66, 0x66, 0x65, 0x63, 0x74,
   494  	0x54, 0x79, 0x70, 0x65, 0x52, 0x06, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x12, 0x1d, 0x0a, 0x0a,
   495  	0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09,
   496  	0x52, 0x09, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x72,
   497  	0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01,
   498  	0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65,
   499  	0x12, 0x1b, 0x0a, 0x09, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x08, 0x20,
   500  	0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x4b, 0x65, 0x79, 0x12, 0x1b, 0x0a,
   501  	0x09, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x61, 0x6c, 0x6c, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08,
   502  	0x52, 0x08, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x41, 0x6c, 0x6c, 0x12, 0x21, 0x0a, 0x0c, 0x6c, 0x61,
   503  	0x62, 0x65, 0x6c, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x09,
   504  	0x52, 0x0b, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x14, 0x0a,
   505  	0x05, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x63,
   506  	0x6f, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x65, 0x73, 0x63, 0x18, 0x0c, 0x20, 0x01, 0x28,
   507  	0x09, 0x52, 0x04, 0x64, 0x65, 0x73, 0x63, 0x22, 0x50, 0x0a, 0x03, 0x53, 0x65, 0x74, 0x12, 0x14,
   508  	0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x74,
   509  	0x6f, 0x74, 0x61, 0x6c, 0x12, 0x33, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x02, 0x20,
   510  	0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64,
   511  	0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x72, 0x6f, 0x6c, 0x65, 0x2e, 0x52, 0x6f,
   512  	0x6c, 0x65, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x22, 0x60, 0x0a, 0x0d, 0x50, 0x65, 0x72,
   513  	0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f,
   514  	0x74, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c,
   515  	0x12, 0x39, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32,
   516  	0x23, 0x2e, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x6b, 0x65, 0x79,
   517  	0x61, 0x75, 0x74, 0x68, 0x2e, 0x72, 0x6f, 0x6c, 0x65, 0x2e, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73,
   518  	0x73, 0x69, 0x6f, 0x6e, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x42, 0x29, 0x5a, 0x27, 0x67,
   519  	0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62,
   520  	0x6f, 0x61, 0x72, 0x64, 0x2f, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x61, 0x70, 0x70,
   521  	0x73, 0x2f, 0x72, 0x6f, 0x6c, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   522  }
   523  
   524  var (
   525  	file_apps_role_pb_role_proto_rawDescOnce sync.Once
   526  	file_apps_role_pb_role_proto_rawDescData = file_apps_role_pb_role_proto_rawDesc
   527  )
   528  
   529  func file_apps_role_pb_role_proto_rawDescGZIP() []byte {
   530  	file_apps_role_pb_role_proto_rawDescOnce.Do(func() {
   531  		file_apps_role_pb_role_proto_rawDescData = protoimpl.X.CompressGZIP(file_apps_role_pb_role_proto_rawDescData)
   532  	})
   533  	return file_apps_role_pb_role_proto_rawDescData
   534  }
   535  
   536  var file_apps_role_pb_role_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
   537  var file_apps_role_pb_role_proto_goTypes = []interface{}{
   538  	(*Role)(nil),          // 0: infraboard.keyauth.role.Role
   539  	(*Permission)(nil),    // 1: infraboard.keyauth.role.Permission
   540  	(*Set)(nil),           // 2: infraboard.keyauth.role.Set
   541  	(*PermissionSet)(nil), // 3: infraboard.keyauth.role.PermissionSet
   542  	nil,                   // 4: infraboard.keyauth.role.Role.MetaEntry
   543  	(RoleType)(0),         // 5: infraboard.keyauth.role.RoleType
   544  	(EffectType)(0),       // 6: infraboard.keyauth.role.EffectType
   545  }
   546  var file_apps_role_pb_role_proto_depIdxs = []int32{
   547  	5, // 0: infraboard.keyauth.role.Role.type:type_name -> infraboard.keyauth.role.RoleType
   548  	4, // 1: infraboard.keyauth.role.Role.meta:type_name -> infraboard.keyauth.role.Role.MetaEntry
   549  	1, // 2: infraboard.keyauth.role.Role.permissions:type_name -> infraboard.keyauth.role.Permission
   550  	6, // 3: infraboard.keyauth.role.Permission.effect:type_name -> infraboard.keyauth.role.EffectType
   551  	0, // 4: infraboard.keyauth.role.Set.items:type_name -> infraboard.keyauth.role.Role
   552  	1, // 5: infraboard.keyauth.role.PermissionSet.items:type_name -> infraboard.keyauth.role.Permission
   553  	6, // [6:6] is the sub-list for method output_type
   554  	6, // [6:6] is the sub-list for method input_type
   555  	6, // [6:6] is the sub-list for extension type_name
   556  	6, // [6:6] is the sub-list for extension extendee
   557  	0, // [0:6] is the sub-list for field type_name
   558  }
   559  
   560  func init() { file_apps_role_pb_role_proto_init() }
   561  func file_apps_role_pb_role_proto_init() {
   562  	if File_apps_role_pb_role_proto != nil {
   563  		return
   564  	}
   565  	file_apps_role_pb_enum_proto_init()
   566  	if !protoimpl.UnsafeEnabled {
   567  		file_apps_role_pb_role_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   568  			switch v := v.(*Role); i {
   569  			case 0:
   570  				return &v.state
   571  			case 1:
   572  				return &v.sizeCache
   573  			case 2:
   574  				return &v.unknownFields
   575  			default:
   576  				return nil
   577  			}
   578  		}
   579  		file_apps_role_pb_role_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   580  			switch v := v.(*Permission); i {
   581  			case 0:
   582  				return &v.state
   583  			case 1:
   584  				return &v.sizeCache
   585  			case 2:
   586  				return &v.unknownFields
   587  			default:
   588  				return nil
   589  			}
   590  		}
   591  		file_apps_role_pb_role_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   592  			switch v := v.(*Set); i {
   593  			case 0:
   594  				return &v.state
   595  			case 1:
   596  				return &v.sizeCache
   597  			case 2:
   598  				return &v.unknownFields
   599  			default:
   600  				return nil
   601  			}
   602  		}
   603  		file_apps_role_pb_role_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
   604  			switch v := v.(*PermissionSet); i {
   605  			case 0:
   606  				return &v.state
   607  			case 1:
   608  				return &v.sizeCache
   609  			case 2:
   610  				return &v.unknownFields
   611  			default:
   612  				return nil
   613  			}
   614  		}
   615  	}
   616  	type x struct{}
   617  	out := protoimpl.TypeBuilder{
   618  		File: protoimpl.DescBuilder{
   619  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   620  			RawDescriptor: file_apps_role_pb_role_proto_rawDesc,
   621  			NumEnums:      0,
   622  			NumMessages:   5,
   623  			NumExtensions: 0,
   624  			NumServices:   0,
   625  		},
   626  		GoTypes:           file_apps_role_pb_role_proto_goTypes,
   627  		DependencyIndexes: file_apps_role_pb_role_proto_depIdxs,
   628  		MessageInfos:      file_apps_role_pb_role_proto_msgTypes,
   629  	}.Build()
   630  	File_apps_role_pb_role_proto = out.File
   631  	file_apps_role_pb_role_proto_rawDesc = nil
   632  	file_apps_role_pb_role_proto_goTypes = nil
   633  	file_apps_role_pb_role_proto_depIdxs = nil
   634  }