github.com/infraboard/keyauth@v0.8.1/apps/role/request.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/request.proto 6 7 package role 8 9 import ( 10 request "github.com/infraboard/mcube/http/request" 11 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 12 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 13 reflect "reflect" 14 sync "sync" 15 ) 16 17 const ( 18 // Verify that this generated code is sufficiently up-to-date. 19 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 20 // Verify that runtime/protoimpl is sufficiently up-to-date. 21 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 22 ) 23 24 // CreateRoleRequest 创建角色请求 25 type CreateRoleRequest struct { 26 state protoimpl.MessageState 27 sizeCache protoimpl.SizeCache 28 unknownFields protoimpl.UnknownFields 29 30 // 角色类型 31 // @gotags: bson:"type" json:"type" 32 Type RoleType `protobuf:"varint,1,opt,name=type,proto3,enum=infraboard.keyauth.role.RoleType" json:"type" bson:"type"` 33 // 角色名称 34 // @gotags: bson:"name" json:"name" validate:"required,lte=30" 35 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name" bson:"name" validate:"required,lte=30"` 36 // 角色描述 37 // @gotags: bson:"description" json:"description" validate:"lte=400" 38 Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description" bson:"description" validate:"lte=400"` 39 // 角色关联的其他信息,比如展示的视图 40 // @gotags: bson:"meta" json:"meta" validate:"lte=400" 41 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"` 42 // 所属域 43 // @gotags: bson:"domain" json:"domain" 44 Domain string `protobuf:"bytes,5,opt,name=domain,proto3" json:"domain" bson:"domain"` 45 // 创建者ID 46 // @gotags: bson:"create_by" json:"create_by" 47 CreateBy string `protobuf:"bytes,6,opt,name=create_by,json=createBy,proto3" json:"create_by" bson:"create_by"` 48 // 读权限 49 // @gotags: bson:"permissions" json:"permissions" 50 Permissions []*CreatePermssionRequest `protobuf:"bytes,9,rep,name=permissions,proto3" json:"permissions" bson:"permissions"` 51 } 52 53 func (x *CreateRoleRequest) Reset() { 54 *x = CreateRoleRequest{} 55 if protoimpl.UnsafeEnabled { 56 mi := &file_apps_role_pb_request_proto_msgTypes[0] 57 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 58 ms.StoreMessageInfo(mi) 59 } 60 } 61 62 func (x *CreateRoleRequest) String() string { 63 return protoimpl.X.MessageStringOf(x) 64 } 65 66 func (*CreateRoleRequest) ProtoMessage() {} 67 68 func (x *CreateRoleRequest) ProtoReflect() protoreflect.Message { 69 mi := &file_apps_role_pb_request_proto_msgTypes[0] 70 if protoimpl.UnsafeEnabled && x != nil { 71 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 72 if ms.LoadMessageInfo() == nil { 73 ms.StoreMessageInfo(mi) 74 } 75 return ms 76 } 77 return mi.MessageOf(x) 78 } 79 80 // Deprecated: Use CreateRoleRequest.ProtoReflect.Descriptor instead. 81 func (*CreateRoleRequest) Descriptor() ([]byte, []int) { 82 return file_apps_role_pb_request_proto_rawDescGZIP(), []int{0} 83 } 84 85 func (x *CreateRoleRequest) GetType() RoleType { 86 if x != nil { 87 return x.Type 88 } 89 return RoleType_NULL 90 } 91 92 func (x *CreateRoleRequest) GetName() string { 93 if x != nil { 94 return x.Name 95 } 96 return "" 97 } 98 99 func (x *CreateRoleRequest) GetDescription() string { 100 if x != nil { 101 return x.Description 102 } 103 return "" 104 } 105 106 func (x *CreateRoleRequest) GetMeta() map[string]string { 107 if x != nil { 108 return x.Meta 109 } 110 return nil 111 } 112 113 func (x *CreateRoleRequest) GetDomain() string { 114 if x != nil { 115 return x.Domain 116 } 117 return "" 118 } 119 120 func (x *CreateRoleRequest) GetCreateBy() string { 121 if x != nil { 122 return x.CreateBy 123 } 124 return "" 125 } 126 127 func (x *CreateRoleRequest) GetPermissions() []*CreatePermssionRequest { 128 if x != nil { 129 return x.Permissions 130 } 131 return nil 132 } 133 134 type CreatePermssionRequest struct { 135 state protoimpl.MessageState 136 sizeCache protoimpl.SizeCache 137 unknownFields protoimpl.UnknownFields 138 139 // 效力 140 // @gotags: bson:"effect" json:"effect" 141 Effect EffectType `protobuf:"varint,1,opt,name=effect,proto3,enum=infraboard.keyauth.role.EffectType" json:"effect" bson:"effect"` 142 // 服务ID 143 // @gotags: bson:"service_id" json:"service_id" 144 ServiceId string `protobuf:"bytes,2,opt,name=service_id,json=serviceId,proto3" json:"service_id" bson:"service_id"` 145 // 资源列表 146 // @gotags: bson:"resource_name" json:"resource_name" 147 ResourceName string `protobuf:"bytes,3,opt,name=resource_name,json=resourceName,proto3" json:"resource_name" bson:"resource_name"` 148 // 维度 149 // @gotags: bson:"label_key" json:"label_key" 150 LabelKey string `protobuf:"bytes,4,opt,name=label_key,json=labelKey,proto3" json:"label_key" bson:"label_key"` 151 // 适配所有值 152 // @gotags: bson:"match_all" json:"match_all" 153 MatchAll bool `protobuf:"varint,5,opt,name=match_all,json=matchAll,proto3" json:"match_all" bson:"match_all"` 154 // 标识值 155 // @gotags: bson:"label_values" json:"label_values" 156 LabelValues []string `protobuf:"bytes,6,rep,name=label_values,json=labelValues,proto3" json:"label_values" bson:"label_values"` 157 } 158 159 func (x *CreatePermssionRequest) Reset() { 160 *x = CreatePermssionRequest{} 161 if protoimpl.UnsafeEnabled { 162 mi := &file_apps_role_pb_request_proto_msgTypes[1] 163 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 164 ms.StoreMessageInfo(mi) 165 } 166 } 167 168 func (x *CreatePermssionRequest) String() string { 169 return protoimpl.X.MessageStringOf(x) 170 } 171 172 func (*CreatePermssionRequest) ProtoMessage() {} 173 174 func (x *CreatePermssionRequest) ProtoReflect() protoreflect.Message { 175 mi := &file_apps_role_pb_request_proto_msgTypes[1] 176 if protoimpl.UnsafeEnabled && x != nil { 177 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 178 if ms.LoadMessageInfo() == nil { 179 ms.StoreMessageInfo(mi) 180 } 181 return ms 182 } 183 return mi.MessageOf(x) 184 } 185 186 // Deprecated: Use CreatePermssionRequest.ProtoReflect.Descriptor instead. 187 func (*CreatePermssionRequest) Descriptor() ([]byte, []int) { 188 return file_apps_role_pb_request_proto_rawDescGZIP(), []int{1} 189 } 190 191 func (x *CreatePermssionRequest) GetEffect() EffectType { 192 if x != nil { 193 return x.Effect 194 } 195 return EffectType_ALLOW 196 } 197 198 func (x *CreatePermssionRequest) GetServiceId() string { 199 if x != nil { 200 return x.ServiceId 201 } 202 return "" 203 } 204 205 func (x *CreatePermssionRequest) GetResourceName() string { 206 if x != nil { 207 return x.ResourceName 208 } 209 return "" 210 } 211 212 func (x *CreatePermssionRequest) GetLabelKey() string { 213 if x != nil { 214 return x.LabelKey 215 } 216 return "" 217 } 218 219 func (x *CreatePermssionRequest) GetMatchAll() bool { 220 if x != nil { 221 return x.MatchAll 222 } 223 return false 224 } 225 226 func (x *CreatePermssionRequest) GetLabelValues() []string { 227 if x != nil { 228 return x.LabelValues 229 } 230 return nil 231 } 232 233 // QueryRoleRequest 列表查询 234 type QueryRoleRequest struct { 235 state protoimpl.MessageState 236 sizeCache protoimpl.SizeCache 237 unknownFields protoimpl.UnknownFields 238 239 // @gotags: json:"page" 240 Page *request.PageRequest `protobuf:"bytes,1,opt,name=page,proto3" json:"page"` 241 // @gotags: json:"type" 242 Type RoleType `protobuf:"varint,2,opt,name=type,proto3,enum=infraboard.keyauth.role.RoleType" json:"type"` 243 // @gotags: json:"domain" 244 Domain string `protobuf:"bytes,3,opt,name=domain,proto3" json:"domain"` 245 } 246 247 func (x *QueryRoleRequest) Reset() { 248 *x = QueryRoleRequest{} 249 if protoimpl.UnsafeEnabled { 250 mi := &file_apps_role_pb_request_proto_msgTypes[2] 251 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 252 ms.StoreMessageInfo(mi) 253 } 254 } 255 256 func (x *QueryRoleRequest) String() string { 257 return protoimpl.X.MessageStringOf(x) 258 } 259 260 func (*QueryRoleRequest) ProtoMessage() {} 261 262 func (x *QueryRoleRequest) ProtoReflect() protoreflect.Message { 263 mi := &file_apps_role_pb_request_proto_msgTypes[2] 264 if protoimpl.UnsafeEnabled && x != nil { 265 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 266 if ms.LoadMessageInfo() == nil { 267 ms.StoreMessageInfo(mi) 268 } 269 return ms 270 } 271 return mi.MessageOf(x) 272 } 273 274 // Deprecated: Use QueryRoleRequest.ProtoReflect.Descriptor instead. 275 func (*QueryRoleRequest) Descriptor() ([]byte, []int) { 276 return file_apps_role_pb_request_proto_rawDescGZIP(), []int{2} 277 } 278 279 func (x *QueryRoleRequest) GetPage() *request.PageRequest { 280 if x != nil { 281 return x.Page 282 } 283 return nil 284 } 285 286 func (x *QueryRoleRequest) GetType() RoleType { 287 if x != nil { 288 return x.Type 289 } 290 return RoleType_NULL 291 } 292 293 func (x *QueryRoleRequest) GetDomain() string { 294 if x != nil { 295 return x.Domain 296 } 297 return "" 298 } 299 300 // DescribeRoleRequest role详情 301 type DescribeRoleRequest struct { 302 state protoimpl.MessageState 303 sizeCache protoimpl.SizeCache 304 unknownFields protoimpl.UnknownFields 305 306 // @gotags: json:"id" 307 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id"` 308 // @gotags: json:"name,omitempty" validate:"required,lte=64" 309 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty" validate:"required,lte=64"` 310 // @gotags: bson:"with_permissions" json:"with_permissions" 311 WithPermissions bool `protobuf:"varint,3,opt,name=with_permissions,json=withPermissions,proto3" json:"with_permissions" bson:"with_permissions"` 312 // @gotags: bson:"type" json:"type" 313 Type RoleType `protobuf:"varint,4,opt,name=type,proto3,enum=infraboard.keyauth.role.RoleType" json:"type" bson:"type"` 314 } 315 316 func (x *DescribeRoleRequest) Reset() { 317 *x = DescribeRoleRequest{} 318 if protoimpl.UnsafeEnabled { 319 mi := &file_apps_role_pb_request_proto_msgTypes[3] 320 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 321 ms.StoreMessageInfo(mi) 322 } 323 } 324 325 func (x *DescribeRoleRequest) String() string { 326 return protoimpl.X.MessageStringOf(x) 327 } 328 329 func (*DescribeRoleRequest) ProtoMessage() {} 330 331 func (x *DescribeRoleRequest) ProtoReflect() protoreflect.Message { 332 mi := &file_apps_role_pb_request_proto_msgTypes[3] 333 if protoimpl.UnsafeEnabled && x != nil { 334 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 335 if ms.LoadMessageInfo() == nil { 336 ms.StoreMessageInfo(mi) 337 } 338 return ms 339 } 340 return mi.MessageOf(x) 341 } 342 343 // Deprecated: Use DescribeRoleRequest.ProtoReflect.Descriptor instead. 344 func (*DescribeRoleRequest) Descriptor() ([]byte, []int) { 345 return file_apps_role_pb_request_proto_rawDescGZIP(), []int{3} 346 } 347 348 func (x *DescribeRoleRequest) GetId() string { 349 if x != nil { 350 return x.Id 351 } 352 return "" 353 } 354 355 func (x *DescribeRoleRequest) GetName() string { 356 if x != nil { 357 return x.Name 358 } 359 return "" 360 } 361 362 func (x *DescribeRoleRequest) GetWithPermissions() bool { 363 if x != nil { 364 return x.WithPermissions 365 } 366 return false 367 } 368 369 func (x *DescribeRoleRequest) GetType() RoleType { 370 if x != nil { 371 return x.Type 372 } 373 return RoleType_NULL 374 } 375 376 // DeleteRoleRequest role删除 377 type DeleteRoleRequest struct { 378 state protoimpl.MessageState 379 sizeCache protoimpl.SizeCache 380 unknownFields protoimpl.UnknownFields 381 382 // @gotags: json:"id" validate:"required,lte=64" 383 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" validate:"required,lte=64"` 384 // @gotags: json:"delete_policy" 385 DeletePolicy bool `protobuf:"varint,2,opt,name=delete_policy,json=deletePolicy,proto3" json:"delete_policy"` 386 } 387 388 func (x *DeleteRoleRequest) Reset() { 389 *x = DeleteRoleRequest{} 390 if protoimpl.UnsafeEnabled { 391 mi := &file_apps_role_pb_request_proto_msgTypes[4] 392 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 393 ms.StoreMessageInfo(mi) 394 } 395 } 396 397 func (x *DeleteRoleRequest) String() string { 398 return protoimpl.X.MessageStringOf(x) 399 } 400 401 func (*DeleteRoleRequest) ProtoMessage() {} 402 403 func (x *DeleteRoleRequest) ProtoReflect() protoreflect.Message { 404 mi := &file_apps_role_pb_request_proto_msgTypes[4] 405 if protoimpl.UnsafeEnabled && x != nil { 406 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 407 if ms.LoadMessageInfo() == nil { 408 ms.StoreMessageInfo(mi) 409 } 410 return ms 411 } 412 return mi.MessageOf(x) 413 } 414 415 // Deprecated: Use DeleteRoleRequest.ProtoReflect.Descriptor instead. 416 func (*DeleteRoleRequest) Descriptor() ([]byte, []int) { 417 return file_apps_role_pb_request_proto_rawDescGZIP(), []int{4} 418 } 419 420 func (x *DeleteRoleRequest) GetId() string { 421 if x != nil { 422 return x.Id 423 } 424 return "" 425 } 426 427 func (x *DeleteRoleRequest) GetDeletePolicy() bool { 428 if x != nil { 429 return x.DeletePolicy 430 } 431 return false 432 } 433 434 type QueryPermissionRequest struct { 435 state protoimpl.MessageState 436 sizeCache protoimpl.SizeCache 437 unknownFields protoimpl.UnknownFields 438 439 // @gotags: bson:"page" json:"page" 440 Page *request.PageRequest `protobuf:"bytes,1,opt,name=page,proto3" json:"page" bson:"page"` 441 // @gotags: json:"role_id" validate:"required,lte=64" 442 RoleId string `protobuf:"bytes,2,opt,name=role_id,json=roleId,proto3" json:"role_id" validate:"required,lte=64"` 443 // @gotags: json:"skip_itmes" 444 SkipItmes bool `protobuf:"varint,3,opt,name=skip_itmes,json=skipItmes,proto3" json:"skip_itmes"` 445 } 446 447 func (x *QueryPermissionRequest) Reset() { 448 *x = QueryPermissionRequest{} 449 if protoimpl.UnsafeEnabled { 450 mi := &file_apps_role_pb_request_proto_msgTypes[5] 451 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 452 ms.StoreMessageInfo(mi) 453 } 454 } 455 456 func (x *QueryPermissionRequest) String() string { 457 return protoimpl.X.MessageStringOf(x) 458 } 459 460 func (*QueryPermissionRequest) ProtoMessage() {} 461 462 func (x *QueryPermissionRequest) ProtoReflect() protoreflect.Message { 463 mi := &file_apps_role_pb_request_proto_msgTypes[5] 464 if protoimpl.UnsafeEnabled && x != nil { 465 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 466 if ms.LoadMessageInfo() == nil { 467 ms.StoreMessageInfo(mi) 468 } 469 return ms 470 } 471 return mi.MessageOf(x) 472 } 473 474 // Deprecated: Use QueryPermissionRequest.ProtoReflect.Descriptor instead. 475 func (*QueryPermissionRequest) Descriptor() ([]byte, []int) { 476 return file_apps_role_pb_request_proto_rawDescGZIP(), []int{5} 477 } 478 479 func (x *QueryPermissionRequest) GetPage() *request.PageRequest { 480 if x != nil { 481 return x.Page 482 } 483 return nil 484 } 485 486 func (x *QueryPermissionRequest) GetRoleId() string { 487 if x != nil { 488 return x.RoleId 489 } 490 return "" 491 } 492 493 func (x *QueryPermissionRequest) GetSkipItmes() bool { 494 if x != nil { 495 return x.SkipItmes 496 } 497 return false 498 } 499 500 // DescribeRoleRequest role详情 501 type DescribePermissionRequest struct { 502 state protoimpl.MessageState 503 sizeCache protoimpl.SizeCache 504 unknownFields protoimpl.UnknownFields 505 506 // @gotags: json:"id" 507 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id"` 508 } 509 510 func (x *DescribePermissionRequest) Reset() { 511 *x = DescribePermissionRequest{} 512 if protoimpl.UnsafeEnabled { 513 mi := &file_apps_role_pb_request_proto_msgTypes[6] 514 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 515 ms.StoreMessageInfo(mi) 516 } 517 } 518 519 func (x *DescribePermissionRequest) String() string { 520 return protoimpl.X.MessageStringOf(x) 521 } 522 523 func (*DescribePermissionRequest) ProtoMessage() {} 524 525 func (x *DescribePermissionRequest) ProtoReflect() protoreflect.Message { 526 mi := &file_apps_role_pb_request_proto_msgTypes[6] 527 if protoimpl.UnsafeEnabled && x != nil { 528 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 529 if ms.LoadMessageInfo() == nil { 530 ms.StoreMessageInfo(mi) 531 } 532 return ms 533 } 534 return mi.MessageOf(x) 535 } 536 537 // Deprecated: Use DescribePermissionRequest.ProtoReflect.Descriptor instead. 538 func (*DescribePermissionRequest) Descriptor() ([]byte, []int) { 539 return file_apps_role_pb_request_proto_rawDescGZIP(), []int{6} 540 } 541 542 func (x *DescribePermissionRequest) GetId() string { 543 if x != nil { 544 return x.Id 545 } 546 return "" 547 } 548 549 type AddPermissionToRoleRequest struct { 550 state protoimpl.MessageState 551 sizeCache protoimpl.SizeCache 552 unknownFields protoimpl.UnknownFields 553 554 // 创建者ID 555 // @gotags: json:"create_by" validate:"required" 556 CreateBy string `protobuf:"bytes,3,opt,name=create_by,json=createBy,proto3" json:"create_by" validate:"required"` 557 // @gotags: json:"role_id" validate:"required,lte=64" 558 RoleId string `protobuf:"bytes,1,opt,name=role_id,json=roleId,proto3" json:"role_id" validate:"required,lte=64"` 559 // @gotags: json:"permissions" validate:"required" 560 Permissions []*CreatePermssionRequest `protobuf:"bytes,2,rep,name=permissions,proto3" json:"permissions" validate:"required"` 561 } 562 563 func (x *AddPermissionToRoleRequest) Reset() { 564 *x = AddPermissionToRoleRequest{} 565 if protoimpl.UnsafeEnabled { 566 mi := &file_apps_role_pb_request_proto_msgTypes[7] 567 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 568 ms.StoreMessageInfo(mi) 569 } 570 } 571 572 func (x *AddPermissionToRoleRequest) String() string { 573 return protoimpl.X.MessageStringOf(x) 574 } 575 576 func (*AddPermissionToRoleRequest) ProtoMessage() {} 577 578 func (x *AddPermissionToRoleRequest) ProtoReflect() protoreflect.Message { 579 mi := &file_apps_role_pb_request_proto_msgTypes[7] 580 if protoimpl.UnsafeEnabled && x != nil { 581 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 582 if ms.LoadMessageInfo() == nil { 583 ms.StoreMessageInfo(mi) 584 } 585 return ms 586 } 587 return mi.MessageOf(x) 588 } 589 590 // Deprecated: Use AddPermissionToRoleRequest.ProtoReflect.Descriptor instead. 591 func (*AddPermissionToRoleRequest) Descriptor() ([]byte, []int) { 592 return file_apps_role_pb_request_proto_rawDescGZIP(), []int{7} 593 } 594 595 func (x *AddPermissionToRoleRequest) GetCreateBy() string { 596 if x != nil { 597 return x.CreateBy 598 } 599 return "" 600 } 601 602 func (x *AddPermissionToRoleRequest) GetRoleId() string { 603 if x != nil { 604 return x.RoleId 605 } 606 return "" 607 } 608 609 func (x *AddPermissionToRoleRequest) GetPermissions() []*CreatePermssionRequest { 610 if x != nil { 611 return x.Permissions 612 } 613 return nil 614 } 615 616 type RemovePermissionFromRoleRequest struct { 617 state protoimpl.MessageState 618 sizeCache protoimpl.SizeCache 619 unknownFields protoimpl.UnknownFields 620 621 // @gotags: json:"role_id" validate:"required,lte=64" 622 RoleId string `protobuf:"bytes,1,opt,name=role_id,json=roleId,proto3" json:"role_id" validate:"required,lte=64"` 623 // @gotags: json:"remove_all" 624 RemoveAll bool `protobuf:"varint,2,opt,name=remove_all,json=removeAll,proto3" json:"remove_all"` 625 // @gotags: json:"permission_id" 626 PermissionId []string `protobuf:"bytes,3,rep,name=permission_id,json=permissionId,proto3" json:"permission_id"` 627 } 628 629 func (x *RemovePermissionFromRoleRequest) Reset() { 630 *x = RemovePermissionFromRoleRequest{} 631 if protoimpl.UnsafeEnabled { 632 mi := &file_apps_role_pb_request_proto_msgTypes[8] 633 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 634 ms.StoreMessageInfo(mi) 635 } 636 } 637 638 func (x *RemovePermissionFromRoleRequest) String() string { 639 return protoimpl.X.MessageStringOf(x) 640 } 641 642 func (*RemovePermissionFromRoleRequest) ProtoMessage() {} 643 644 func (x *RemovePermissionFromRoleRequest) ProtoReflect() protoreflect.Message { 645 mi := &file_apps_role_pb_request_proto_msgTypes[8] 646 if protoimpl.UnsafeEnabled && x != nil { 647 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 648 if ms.LoadMessageInfo() == nil { 649 ms.StoreMessageInfo(mi) 650 } 651 return ms 652 } 653 return mi.MessageOf(x) 654 } 655 656 // Deprecated: Use RemovePermissionFromRoleRequest.ProtoReflect.Descriptor instead. 657 func (*RemovePermissionFromRoleRequest) Descriptor() ([]byte, []int) { 658 return file_apps_role_pb_request_proto_rawDescGZIP(), []int{8} 659 } 660 661 func (x *RemovePermissionFromRoleRequest) GetRoleId() string { 662 if x != nil { 663 return x.RoleId 664 } 665 return "" 666 } 667 668 func (x *RemovePermissionFromRoleRequest) GetRemoveAll() bool { 669 if x != nil { 670 return x.RemoveAll 671 } 672 return false 673 } 674 675 func (x *RemovePermissionFromRoleRequest) GetPermissionId() []string { 676 if x != nil { 677 return x.PermissionId 678 } 679 return nil 680 } 681 682 type UpdatePermissionRequest struct { 683 state protoimpl.MessageState 684 sizeCache protoimpl.SizeCache 685 unknownFields protoimpl.UnknownFields 686 687 // permission id 688 // @gotags: json:"id" validate:"required,lte=64" 689 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" validate:"required,lte=64"` 690 // 维度 691 // @gotags: json:"label_key" 692 LabelKey string `protobuf:"bytes,2,opt,name=label_key,json=labelKey,proto3" json:"label_key"` 693 // 适配所有值 694 // @gotags: json:"match_all" 695 MatchAll bool `protobuf:"varint,3,opt,name=match_all,json=matchAll,proto3" json:"match_all"` 696 // 标识值 697 // @gotags: json:"label_values" 698 LabelValues []string `protobuf:"bytes,4,rep,name=label_values,json=labelValues,proto3" json:"label_values"` 699 } 700 701 func (x *UpdatePermissionRequest) Reset() { 702 *x = UpdatePermissionRequest{} 703 if protoimpl.UnsafeEnabled { 704 mi := &file_apps_role_pb_request_proto_msgTypes[9] 705 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 706 ms.StoreMessageInfo(mi) 707 } 708 } 709 710 func (x *UpdatePermissionRequest) String() string { 711 return protoimpl.X.MessageStringOf(x) 712 } 713 714 func (*UpdatePermissionRequest) ProtoMessage() {} 715 716 func (x *UpdatePermissionRequest) ProtoReflect() protoreflect.Message { 717 mi := &file_apps_role_pb_request_proto_msgTypes[9] 718 if protoimpl.UnsafeEnabled && x != nil { 719 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 720 if ms.LoadMessageInfo() == nil { 721 ms.StoreMessageInfo(mi) 722 } 723 return ms 724 } 725 return mi.MessageOf(x) 726 } 727 728 // Deprecated: Use UpdatePermissionRequest.ProtoReflect.Descriptor instead. 729 func (*UpdatePermissionRequest) Descriptor() ([]byte, []int) { 730 return file_apps_role_pb_request_proto_rawDescGZIP(), []int{9} 731 } 732 733 func (x *UpdatePermissionRequest) GetId() string { 734 if x != nil { 735 return x.Id 736 } 737 return "" 738 } 739 740 func (x *UpdatePermissionRequest) GetLabelKey() string { 741 if x != nil { 742 return x.LabelKey 743 } 744 return "" 745 } 746 747 func (x *UpdatePermissionRequest) GetMatchAll() bool { 748 if x != nil { 749 return x.MatchAll 750 } 751 return false 752 } 753 754 func (x *UpdatePermissionRequest) GetLabelValues() []string { 755 if x != nil { 756 return x.LabelValues 757 } 758 return nil 759 } 760 761 var File_apps_role_pb_request_proto protoreflect.FileDescriptor 762 763 var file_apps_role_pb_request_proto_rawDesc = []byte{ 764 0x0a, 0x1a, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x72, 0x6f, 0x6c, 0x65, 0x2f, 0x70, 0x62, 0x2f, 0x72, 765 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x69, 0x6e, 766 0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 767 0x2e, 0x72, 0x6f, 0x6c, 0x65, 0x1a, 0x17, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x72, 0x6f, 0x6c, 0x65, 768 0x2f, 0x70, 0x62, 0x2f, 0x65, 0x6e, 0x75, 0x6d, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2e, 769 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x69, 0x6e, 0x66, 0x72, 0x61, 770 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2f, 0x6d, 0x63, 0x75, 0x62, 0x65, 0x2f, 0x70, 0x62, 0x2f, 0x70, 771 0x61, 0x67, 0x65, 0x2f, 0x70, 0x61, 0x67, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8b, 772 0x03, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x71, 773 0x75, 0x65, 0x73, 0x74, 0x12, 0x35, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 774 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 775 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x72, 0x6f, 0x6c, 0x65, 0x2e, 0x52, 0x6f, 0x6c, 776 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 777 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 778 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 779 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 780 0x6e, 0x12, 0x48, 0x0a, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 781 0x34, 0x2e, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x6b, 0x65, 0x79, 782 0x61, 0x75, 0x74, 0x68, 0x2e, 0x72, 0x6f, 0x6c, 0x65, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 783 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x4d, 0x65, 0x74, 0x61, 784 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x12, 0x16, 0x0a, 0x06, 0x64, 785 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 786 0x61, 0x69, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x62, 0x79, 787 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x79, 788 0x12, 0x51, 0x0a, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 789 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 790 0x72, 0x64, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x72, 0x6f, 0x6c, 0x65, 0x2e, 791 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x65, 0x72, 0x6d, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 792 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 793 0x6f, 0x6e, 0x73, 0x1a, 0x37, 0x0a, 0x09, 0x4d, 0x65, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 794 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 795 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 796 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xf6, 0x01, 0x0a, 797 0x16, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x65, 0x72, 0x6d, 0x73, 0x73, 0x69, 0x6f, 0x6e, 798 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3b, 0x0a, 0x06, 0x65, 0x66, 0x66, 0x65, 0x63, 799 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x23, 0x2e, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 800 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x72, 0x6f, 0x6c, 801 0x65, 0x2e, 0x45, 0x66, 0x66, 0x65, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x06, 0x65, 0x66, 802 0x66, 0x65, 0x63, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 803 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 804 0x65, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 805 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 806 0x75, 0x72, 0x63, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x6c, 0x61, 0x62, 0x65, 807 0x6c, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, 0x61, 0x62, 808 0x65, 0x6c, 0x4b, 0x65, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x61, 809 0x6c, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x41, 810 0x6c, 0x6c, 0x12, 0x21, 0x0a, 0x0c, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x5f, 0x76, 0x61, 0x6c, 0x75, 811 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x56, 812 0x61, 0x6c, 0x75, 0x65, 0x73, 0x22, 0x99, 0x01, 0x0a, 0x10, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 813 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x04, 0x70, 0x61, 814 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x69, 0x6e, 0x66, 0x72, 0x61, 815 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x6d, 0x63, 0x75, 0x62, 0x65, 0x2e, 0x70, 0x61, 0x67, 0x65, 816 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x04, 0x70, 0x61, 817 0x67, 0x65, 0x12, 0x35, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 818 0x32, 0x21, 0x2e, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x6b, 0x65, 819 0x79, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x72, 0x6f, 0x6c, 0x65, 0x2e, 0x52, 0x6f, 0x6c, 0x65, 0x54, 820 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 821 0x61, 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 822 0x6e, 0x22, 0x9b, 0x01, 0x0a, 0x13, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 0x52, 0x6f, 823 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 824 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 825 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x29, 0x0a, 826 0x10, 0x77, 0x69, 0x74, 0x68, 0x5f, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 827 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x77, 0x69, 0x74, 0x68, 0x50, 0x65, 0x72, 828 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x35, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 829 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 0x6f, 830 0x61, 0x72, 0x64, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 0x2e, 0x72, 0x6f, 0x6c, 0x65, 831 0x2e, 0x52, 0x6f, 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 832 0x48, 0x0a, 0x11, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x71, 833 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 834 0x52, 0x02, 0x69, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x5f, 0x70, 835 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x64, 0x65, 0x6c, 836 0x65, 0x74, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x88, 0x01, 0x0a, 0x16, 0x51, 0x75, 837 0x65, 0x72, 0x79, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 838 0x75, 0x65, 0x73, 0x74, 0x12, 0x36, 0x0a, 0x04, 0x70, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 839 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 840 0x6d, 0x63, 0x75, 0x62, 0x65, 0x2e, 0x70, 0x61, 0x67, 0x65, 0x2e, 0x50, 0x61, 0x67, 0x65, 0x52, 841 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x04, 0x70, 0x61, 0x67, 0x65, 0x12, 0x17, 0x0a, 0x07, 842 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 843 0x6f, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x6b, 0x69, 0x70, 0x5f, 0x69, 0x74, 844 0x6d, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x73, 0x6b, 0x69, 0x70, 0x49, 845 0x74, 0x6d, 0x65, 0x73, 0x22, 0x2b, 0x0a, 0x19, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x62, 0x65, 846 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 847 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 848 0x64, 0x22, 0xa5, 0x01, 0x0a, 0x1a, 0x41, 0x64, 0x64, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 849 0x69, 0x6f, 0x6e, 0x54, 0x6f, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 850 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x62, 0x79, 0x18, 0x03, 0x20, 851 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x42, 0x79, 0x12, 0x17, 0x0a, 852 0x07, 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 853 0x72, 0x6f, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x51, 0x0a, 0x0b, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 854 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x69, 0x6e, 855 0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2e, 0x6b, 0x65, 0x79, 0x61, 0x75, 0x74, 0x68, 856 0x2e, 0x72, 0x6f, 0x6c, 0x65, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x65, 0x72, 0x6d, 857 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0b, 0x70, 0x65, 858 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x7e, 0x0a, 0x1f, 0x52, 0x65, 0x6d, 859 0x6f, 0x76, 0x65, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x46, 0x72, 0x6f, 860 0x6d, 0x52, 0x6f, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, 861 0x72, 0x6f, 0x6c, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 862 0x6f, 0x6c, 0x65, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x5f, 863 0x61, 0x6c, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x72, 0x65, 0x6d, 0x6f, 0x76, 864 0x65, 0x41, 0x6c, 0x6c, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 865 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0c, 0x70, 0x65, 0x72, 866 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x86, 0x01, 0x0a, 0x17, 0x55, 0x70, 867 0x64, 0x61, 0x74, 0x65, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 868 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 869 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x5f, 0x6b, 870 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x4b, 871 0x65, 0x79, 0x12, 0x1b, 0x0a, 0x09, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x61, 0x6c, 0x6c, 0x18, 872 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x41, 0x6c, 0x6c, 0x12, 873 0x21, 0x0a, 0x0c, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 874 0x04, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x56, 0x61, 0x6c, 0x75, 875 0x65, 0x73, 0x42, 0x29, 0x5a, 0x27, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 876 0x2f, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x62, 0x6f, 0x61, 0x72, 0x64, 0x2f, 0x6b, 0x65, 0x79, 0x61, 877 0x75, 0x74, 0x68, 0x2f, 0x61, 0x70, 0x70, 0x73, 0x2f, 0x72, 0x6f, 0x6c, 0x65, 0x62, 0x06, 0x70, 878 0x72, 0x6f, 0x74, 0x6f, 0x33, 879 } 880 881 var ( 882 file_apps_role_pb_request_proto_rawDescOnce sync.Once 883 file_apps_role_pb_request_proto_rawDescData = file_apps_role_pb_request_proto_rawDesc 884 ) 885 886 func file_apps_role_pb_request_proto_rawDescGZIP() []byte { 887 file_apps_role_pb_request_proto_rawDescOnce.Do(func() { 888 file_apps_role_pb_request_proto_rawDescData = protoimpl.X.CompressGZIP(file_apps_role_pb_request_proto_rawDescData) 889 }) 890 return file_apps_role_pb_request_proto_rawDescData 891 } 892 893 var file_apps_role_pb_request_proto_msgTypes = make([]protoimpl.MessageInfo, 11) 894 var file_apps_role_pb_request_proto_goTypes = []interface{}{ 895 (*CreateRoleRequest)(nil), // 0: infraboard.keyauth.role.CreateRoleRequest 896 (*CreatePermssionRequest)(nil), // 1: infraboard.keyauth.role.CreatePermssionRequest 897 (*QueryRoleRequest)(nil), // 2: infraboard.keyauth.role.QueryRoleRequest 898 (*DescribeRoleRequest)(nil), // 3: infraboard.keyauth.role.DescribeRoleRequest 899 (*DeleteRoleRequest)(nil), // 4: infraboard.keyauth.role.DeleteRoleRequest 900 (*QueryPermissionRequest)(nil), // 5: infraboard.keyauth.role.QueryPermissionRequest 901 (*DescribePermissionRequest)(nil), // 6: infraboard.keyauth.role.DescribePermissionRequest 902 (*AddPermissionToRoleRequest)(nil), // 7: infraboard.keyauth.role.AddPermissionToRoleRequest 903 (*RemovePermissionFromRoleRequest)(nil), // 8: infraboard.keyauth.role.RemovePermissionFromRoleRequest 904 (*UpdatePermissionRequest)(nil), // 9: infraboard.keyauth.role.UpdatePermissionRequest 905 nil, // 10: infraboard.keyauth.role.CreateRoleRequest.MetaEntry 906 (RoleType)(0), // 11: infraboard.keyauth.role.RoleType 907 (EffectType)(0), // 12: infraboard.keyauth.role.EffectType 908 (*request.PageRequest)(nil), // 13: infraboard.mcube.page.PageRequest 909 } 910 var file_apps_role_pb_request_proto_depIdxs = []int32{ 911 11, // 0: infraboard.keyauth.role.CreateRoleRequest.type:type_name -> infraboard.keyauth.role.RoleType 912 10, // 1: infraboard.keyauth.role.CreateRoleRequest.meta:type_name -> infraboard.keyauth.role.CreateRoleRequest.MetaEntry 913 1, // 2: infraboard.keyauth.role.CreateRoleRequest.permissions:type_name -> infraboard.keyauth.role.CreatePermssionRequest 914 12, // 3: infraboard.keyauth.role.CreatePermssionRequest.effect:type_name -> infraboard.keyauth.role.EffectType 915 13, // 4: infraboard.keyauth.role.QueryRoleRequest.page:type_name -> infraboard.mcube.page.PageRequest 916 11, // 5: infraboard.keyauth.role.QueryRoleRequest.type:type_name -> infraboard.keyauth.role.RoleType 917 11, // 6: infraboard.keyauth.role.DescribeRoleRequest.type:type_name -> infraboard.keyauth.role.RoleType 918 13, // 7: infraboard.keyauth.role.QueryPermissionRequest.page:type_name -> infraboard.mcube.page.PageRequest 919 1, // 8: infraboard.keyauth.role.AddPermissionToRoleRequest.permissions:type_name -> infraboard.keyauth.role.CreatePermssionRequest 920 9, // [9:9] is the sub-list for method output_type 921 9, // [9:9] is the sub-list for method input_type 922 9, // [9:9] is the sub-list for extension type_name 923 9, // [9:9] is the sub-list for extension extendee 924 0, // [0:9] is the sub-list for field type_name 925 } 926 927 func init() { file_apps_role_pb_request_proto_init() } 928 func file_apps_role_pb_request_proto_init() { 929 if File_apps_role_pb_request_proto != nil { 930 return 931 } 932 file_apps_role_pb_enum_proto_init() 933 if !protoimpl.UnsafeEnabled { 934 file_apps_role_pb_request_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 935 switch v := v.(*CreateRoleRequest); i { 936 case 0: 937 return &v.state 938 case 1: 939 return &v.sizeCache 940 case 2: 941 return &v.unknownFields 942 default: 943 return nil 944 } 945 } 946 file_apps_role_pb_request_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 947 switch v := v.(*CreatePermssionRequest); i { 948 case 0: 949 return &v.state 950 case 1: 951 return &v.sizeCache 952 case 2: 953 return &v.unknownFields 954 default: 955 return nil 956 } 957 } 958 file_apps_role_pb_request_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 959 switch v := v.(*QueryRoleRequest); i { 960 case 0: 961 return &v.state 962 case 1: 963 return &v.sizeCache 964 case 2: 965 return &v.unknownFields 966 default: 967 return nil 968 } 969 } 970 file_apps_role_pb_request_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 971 switch v := v.(*DescribeRoleRequest); i { 972 case 0: 973 return &v.state 974 case 1: 975 return &v.sizeCache 976 case 2: 977 return &v.unknownFields 978 default: 979 return nil 980 } 981 } 982 file_apps_role_pb_request_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 983 switch v := v.(*DeleteRoleRequest); i { 984 case 0: 985 return &v.state 986 case 1: 987 return &v.sizeCache 988 case 2: 989 return &v.unknownFields 990 default: 991 return nil 992 } 993 } 994 file_apps_role_pb_request_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { 995 switch v := v.(*QueryPermissionRequest); i { 996 case 0: 997 return &v.state 998 case 1: 999 return &v.sizeCache 1000 case 2: 1001 return &v.unknownFields 1002 default: 1003 return nil 1004 } 1005 } 1006 file_apps_role_pb_request_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { 1007 switch v := v.(*DescribePermissionRequest); i { 1008 case 0: 1009 return &v.state 1010 case 1: 1011 return &v.sizeCache 1012 case 2: 1013 return &v.unknownFields 1014 default: 1015 return nil 1016 } 1017 } 1018 file_apps_role_pb_request_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { 1019 switch v := v.(*AddPermissionToRoleRequest); i { 1020 case 0: 1021 return &v.state 1022 case 1: 1023 return &v.sizeCache 1024 case 2: 1025 return &v.unknownFields 1026 default: 1027 return nil 1028 } 1029 } 1030 file_apps_role_pb_request_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { 1031 switch v := v.(*RemovePermissionFromRoleRequest); i { 1032 case 0: 1033 return &v.state 1034 case 1: 1035 return &v.sizeCache 1036 case 2: 1037 return &v.unknownFields 1038 default: 1039 return nil 1040 } 1041 } 1042 file_apps_role_pb_request_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { 1043 switch v := v.(*UpdatePermissionRequest); i { 1044 case 0: 1045 return &v.state 1046 case 1: 1047 return &v.sizeCache 1048 case 2: 1049 return &v.unknownFields 1050 default: 1051 return nil 1052 } 1053 } 1054 } 1055 type x struct{} 1056 out := protoimpl.TypeBuilder{ 1057 File: protoimpl.DescBuilder{ 1058 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 1059 RawDescriptor: file_apps_role_pb_request_proto_rawDesc, 1060 NumEnums: 0, 1061 NumMessages: 11, 1062 NumExtensions: 0, 1063 NumServices: 0, 1064 }, 1065 GoTypes: file_apps_role_pb_request_proto_goTypes, 1066 DependencyIndexes: file_apps_role_pb_request_proto_depIdxs, 1067 MessageInfos: file_apps_role_pb_request_proto_msgTypes, 1068 }.Build() 1069 File_apps_role_pb_request_proto = out.File 1070 file_apps_role_pb_request_proto_rawDesc = nil 1071 file_apps_role_pb_request_proto_goTypes = nil 1072 file_apps_role_pb_request_proto_depIdxs = nil 1073 }