github.com/cloudwan/edgelq-sdk@v1.15.4/iam/client/v1alpha2/permission/permission_service.pb.descriptors.go (about) 1 // Code generated by protoc-gen-goten-client 2 // API: PermissionService 3 // DO NOT EDIT!!! 4 5 package permission_client 6 7 import ( 8 "google.golang.org/protobuf/proto" 9 10 gotenclient "github.com/cloudwan/goten-sdk/runtime/client" 11 gotenresource "github.com/cloudwan/goten-sdk/runtime/resource" 12 ) 13 14 // proto imports 15 import ( 16 permission "github.com/cloudwan/edgelq-sdk/iam/resources/v1alpha2/permission" 17 emptypb "google.golang.org/protobuf/types/known/emptypb" 18 ) 19 20 // Reference imports to suppress errors if they are not otherwise used. 21 var ( 22 _ = new(proto.Message) 23 _ = new(gotenclient.MethodDescriptor) 24 _ = gotenresource.WildcardId 25 ) 26 27 // make sure we're using proto imports 28 var ( 29 _ = &permission.Permission{} 30 _ = &emptypb.Empty{} 31 ) 32 33 var ( 34 descriptorsInitialized bool 35 permissionServiceDescriptor *PermissionServiceDescriptor 36 getPermissionDescriptor *GetPermissionDescriptor 37 batchGetPermissionsDescriptor *BatchGetPermissionsDescriptor 38 listPermissionsDescriptor *ListPermissionsDescriptor 39 watchPermissionDescriptor *WatchPermissionDescriptor 40 watchPermissionsDescriptor *WatchPermissionsDescriptor 41 createPermissionDescriptor *CreatePermissionDescriptor 42 updatePermissionDescriptor *UpdatePermissionDescriptor 43 deletePermissionDescriptor *DeletePermissionDescriptor 44 ) 45 46 type GetPermissionDescriptor struct{} 47 48 type GetPermissionDescriptorClientMsgHandle struct{} 49 50 type GetPermissionDescriptorServerMsgHandle struct{} 51 52 func (d *GetPermissionDescriptor) NewEmptyClientMsg() proto.Message { 53 return &GetPermissionRequest{} 54 } 55 56 func (d *GetPermissionDescriptor) NewEmptyServerMsg() proto.Message { 57 return &permission.Permission{} 58 } 59 60 func (d *GetPermissionDescriptor) IsUnary() bool { 61 return true 62 } 63 64 func (d *GetPermissionDescriptor) IsClientStream() bool { 65 return false 66 } 67 68 func (d *GetPermissionDescriptor) IsServerStream() bool { 69 return false 70 } 71 72 func (d *GetPermissionDescriptor) IsCollection() bool { 73 return false 74 } 75 76 func (d *GetPermissionDescriptor) IsPlural() bool { 77 return false 78 } 79 80 func (d *GetPermissionDescriptor) HasResource() bool { 81 return true 82 } 83 84 func (d *GetPermissionDescriptor) RequestHasResourceBody() bool { 85 return false 86 } 87 88 func (d *GetPermissionDescriptor) GetVerb() string { 89 return "get" 90 } 91 92 func (d *GetPermissionDescriptor) GetMethodName() string { 93 return "GetPermission" 94 } 95 96 func (d *GetPermissionDescriptor) GetFullMethodName() string { 97 return "/ntt.iam.v1alpha2.PermissionService/GetPermission" 98 } 99 100 func (d *GetPermissionDescriptor) GetProtoPkgName() string { 101 return "ntt.iam.v1alpha2" 102 } 103 104 func (d *GetPermissionDescriptor) GetApiName() string { 105 return "PermissionService" 106 } 107 108 func (d *GetPermissionDescriptor) GetServiceDomain() string { 109 return "iam.edgelq.com" 110 } 111 112 func (d *GetPermissionDescriptor) GetServiceVersion() string { 113 return "v1alpha2" 114 } 115 116 func (d *GetPermissionDescriptor) GetApiDescriptor() gotenclient.ApiDescriptor { 117 return permissionServiceDescriptor 118 } 119 120 func (d *GetPermissionDescriptor) GetResourceDescriptor() gotenresource.Descriptor { 121 return permission.GetDescriptor() 122 } 123 124 func (d *GetPermissionDescriptor) GetClientMsgReflectHandle() gotenclient.MethodMsgHandle { 125 return &GetPermissionDescriptorClientMsgHandle{} 126 } 127 128 func (d *GetPermissionDescriptor) GetServerMsgReflectHandle() gotenclient.MethodMsgHandle { 129 return &GetPermissionDescriptorServerMsgHandle{} 130 } 131 132 func (h *GetPermissionDescriptorClientMsgHandle) ExtractResourceName(msg proto.Message) gotenresource.Name { 133 typedMsg := msg.(*GetPermissionRequest) 134 var asInterface interface{} = h 135 override, ok := asInterface.(interface { 136 OverrideExtractResourceName(*GetPermissionRequest) *permission.Name 137 }) 138 if ok { 139 return override.OverrideExtractResourceName(typedMsg) 140 } 141 { 142 if name := typedMsg.GetName(); name != nil { 143 return name 144 } 145 } 146 return (*permission.Name)(nil) 147 } 148 149 func (h *GetPermissionDescriptorClientMsgHandle) ExtractResourceNames(msg proto.Message) gotenresource.NameList { 150 typedMsg := msg.(*GetPermissionRequest) 151 var asInterface interface{} = h 152 override, ok := asInterface.(interface { 153 OverrideExtractResourceNames(*GetPermissionRequest) []*permission.Name 154 }) 155 if ok { 156 return permission.PermissionNameList(override.OverrideExtractResourceNames(typedMsg)) 157 } 158 return nil 159 } 160 161 func (h *GetPermissionDescriptorClientMsgHandle) ExtractCollectionName(msg proto.Message) gotenresource.Name { 162 return nil 163 } 164 165 func (h *GetPermissionDescriptorClientMsgHandle) ExtractResourceBody(msg proto.Message) gotenresource.Resource { 166 typedMsg := msg.(*GetPermissionRequest) 167 var asInterface interface{} = h 168 override, ok := asInterface.(interface { 169 OverrideExtractResourceBody(*GetPermissionRequest) *permission.Permission 170 }) 171 if ok { 172 return override.OverrideExtractResourceBody(typedMsg) 173 } 174 return nil 175 } 176 177 func (h *GetPermissionDescriptorClientMsgHandle) ExtractResourceBodies(msg proto.Message) gotenresource.ResourceList { 178 typedMsg := msg.(*GetPermissionRequest) 179 var asInterface interface{} = h 180 override, ok := asInterface.(interface { 181 OverrideExtractResourceBodies(*GetPermissionRequest) []*permission.Permission 182 }) 183 if ok { 184 return permission.PermissionList(override.OverrideExtractResourceBodies(typedMsg)) 185 } 186 return nil 187 } 188 189 func (h *GetPermissionDescriptorServerMsgHandle) ExtractResourceName(msg proto.Message) gotenresource.Name { 190 typedMsg := msg.(*permission.Permission) 191 var asInterface interface{} = h 192 override, ok := asInterface.(interface { 193 OverrideExtractResourceName(*permission.Permission) *permission.Name 194 }) 195 if ok { 196 return override.OverrideExtractResourceName(typedMsg) 197 } 198 { 199 if name := typedMsg.GetName(); name != nil { 200 return name 201 } 202 } 203 return (*permission.Name)(nil) 204 } 205 206 func (h *GetPermissionDescriptorServerMsgHandle) ExtractResourceNames(msg proto.Message) gotenresource.NameList { 207 typedMsg := msg.(*permission.Permission) 208 var asInterface interface{} = h 209 override, ok := asInterface.(interface { 210 OverrideExtractResourceNames(*permission.Permission) []*permission.Name 211 }) 212 if ok { 213 return permission.PermissionNameList(override.OverrideExtractResourceNames(typedMsg)) 214 } 215 return nil 216 } 217 218 func (h *GetPermissionDescriptorServerMsgHandle) ExtractCollectionName(msg proto.Message) gotenresource.Name { 219 return nil 220 } 221 222 func (h *GetPermissionDescriptorServerMsgHandle) ExtractResourceBody(msg proto.Message) gotenresource.Resource { 223 return msg.(*permission.Permission) 224 } 225 226 func (h *GetPermissionDescriptorServerMsgHandle) ExtractResourceBodies(msg proto.Message) gotenresource.ResourceList { 227 typedMsg := msg.(*permission.Permission) 228 var asInterface interface{} = h 229 override, ok := asInterface.(interface { 230 OverrideExtractResourceBodies(*permission.Permission) []*permission.Permission 231 }) 232 if ok { 233 return permission.PermissionList(override.OverrideExtractResourceBodies(typedMsg)) 234 } 235 return nil 236 } 237 238 func GetGetPermissionDescriptor() *GetPermissionDescriptor { 239 return getPermissionDescriptor 240 } 241 242 type BatchGetPermissionsDescriptor struct{} 243 244 type BatchGetPermissionsDescriptorClientMsgHandle struct{} 245 246 type BatchGetPermissionsDescriptorServerMsgHandle struct{} 247 248 func (d *BatchGetPermissionsDescriptor) NewEmptyClientMsg() proto.Message { 249 return &BatchGetPermissionsRequest{} 250 } 251 252 func (d *BatchGetPermissionsDescriptor) NewEmptyServerMsg() proto.Message { 253 return &BatchGetPermissionsResponse{} 254 } 255 256 func (d *BatchGetPermissionsDescriptor) IsUnary() bool { 257 return true 258 } 259 260 func (d *BatchGetPermissionsDescriptor) IsClientStream() bool { 261 return false 262 } 263 264 func (d *BatchGetPermissionsDescriptor) IsServerStream() bool { 265 return false 266 } 267 268 func (d *BatchGetPermissionsDescriptor) IsCollection() bool { 269 return false 270 } 271 272 func (d *BatchGetPermissionsDescriptor) IsPlural() bool { 273 return true 274 } 275 276 func (d *BatchGetPermissionsDescriptor) HasResource() bool { 277 return true 278 } 279 280 func (d *BatchGetPermissionsDescriptor) RequestHasResourceBody() bool { 281 return false 282 } 283 284 func (d *BatchGetPermissionsDescriptor) GetVerb() string { 285 return "batchGet" 286 } 287 288 func (d *BatchGetPermissionsDescriptor) GetMethodName() string { 289 return "BatchGetPermissions" 290 } 291 292 func (d *BatchGetPermissionsDescriptor) GetFullMethodName() string { 293 return "/ntt.iam.v1alpha2.PermissionService/BatchGetPermissions" 294 } 295 296 func (d *BatchGetPermissionsDescriptor) GetProtoPkgName() string { 297 return "ntt.iam.v1alpha2" 298 } 299 300 func (d *BatchGetPermissionsDescriptor) GetApiName() string { 301 return "PermissionService" 302 } 303 304 func (d *BatchGetPermissionsDescriptor) GetServiceDomain() string { 305 return "iam.edgelq.com" 306 } 307 308 func (d *BatchGetPermissionsDescriptor) GetServiceVersion() string { 309 return "v1alpha2" 310 } 311 312 func (d *BatchGetPermissionsDescriptor) GetApiDescriptor() gotenclient.ApiDescriptor { 313 return permissionServiceDescriptor 314 } 315 316 func (d *BatchGetPermissionsDescriptor) GetResourceDescriptor() gotenresource.Descriptor { 317 return permission.GetDescriptor() 318 } 319 320 func (d *BatchGetPermissionsDescriptor) GetClientMsgReflectHandle() gotenclient.MethodMsgHandle { 321 return &BatchGetPermissionsDescriptorClientMsgHandle{} 322 } 323 324 func (d *BatchGetPermissionsDescriptor) GetServerMsgReflectHandle() gotenclient.MethodMsgHandle { 325 return &BatchGetPermissionsDescriptorServerMsgHandle{} 326 } 327 328 func (h *BatchGetPermissionsDescriptorClientMsgHandle) ExtractResourceName(msg proto.Message) gotenresource.Name { 329 typedMsg := msg.(*BatchGetPermissionsRequest) 330 var asInterface interface{} = h 331 override, ok := asInterface.(interface { 332 OverrideExtractResourceName(*BatchGetPermissionsRequest) *permission.Name 333 }) 334 if ok { 335 return override.OverrideExtractResourceName(typedMsg) 336 } 337 return nil 338 } 339 340 func (h *BatchGetPermissionsDescriptorClientMsgHandle) ExtractResourceNames(msg proto.Message) gotenresource.NameList { 341 typedMsg := msg.(*BatchGetPermissionsRequest) 342 var asInterface interface{} = h 343 override, ok := asInterface.(interface { 344 OverrideExtractResourceNames(*BatchGetPermissionsRequest) []*permission.Name 345 }) 346 if ok { 347 return permission.PermissionNameList(override.OverrideExtractResourceNames(typedMsg)) 348 } 349 { 350 if names := typedMsg.GetNames(); len(names) > 0 { 351 return permission.PermissionNameList(names) 352 } 353 } 354 return (permission.PermissionNameList)(nil) 355 } 356 357 func (h *BatchGetPermissionsDescriptorClientMsgHandle) ExtractCollectionName(msg proto.Message) gotenresource.Name { 358 return nil 359 } 360 361 func (h *BatchGetPermissionsDescriptorClientMsgHandle) ExtractResourceBody(msg proto.Message) gotenresource.Resource { 362 typedMsg := msg.(*BatchGetPermissionsRequest) 363 var asInterface interface{} = h 364 override, ok := asInterface.(interface { 365 OverrideExtractResourceBody(*BatchGetPermissionsRequest) *permission.Permission 366 }) 367 if ok { 368 return override.OverrideExtractResourceBody(typedMsg) 369 } 370 return nil 371 } 372 373 func (h *BatchGetPermissionsDescriptorClientMsgHandle) ExtractResourceBodies(msg proto.Message) gotenresource.ResourceList { 374 typedMsg := msg.(*BatchGetPermissionsRequest) 375 var asInterface interface{} = h 376 override, ok := asInterface.(interface { 377 OverrideExtractResourceBodies(*BatchGetPermissionsRequest) []*permission.Permission 378 }) 379 if ok { 380 return permission.PermissionList(override.OverrideExtractResourceBodies(typedMsg)) 381 } 382 return nil 383 } 384 385 func (h *BatchGetPermissionsDescriptorServerMsgHandle) ExtractResourceName(msg proto.Message) gotenresource.Name { 386 typedMsg := msg.(*BatchGetPermissionsResponse) 387 var asInterface interface{} = h 388 override, ok := asInterface.(interface { 389 OverrideExtractResourceName(*BatchGetPermissionsResponse) *permission.Name 390 }) 391 if ok { 392 return override.OverrideExtractResourceName(typedMsg) 393 } 394 return nil 395 } 396 397 func (h *BatchGetPermissionsDescriptorServerMsgHandle) ExtractResourceNames(msg proto.Message) gotenresource.NameList { 398 typedMsg := msg.(*BatchGetPermissionsResponse) 399 var asInterface interface{} = h 400 override, ok := asInterface.(interface { 401 OverrideExtractResourceNames(*BatchGetPermissionsResponse) []*permission.Name 402 }) 403 if ok { 404 return permission.PermissionNameList(override.OverrideExtractResourceNames(typedMsg)) 405 } 406 { 407 if resources := typedMsg.GetPermissions(); len(resources) > 0 { 408 list := make(permission.PermissionNameList, 0, len(resources)) 409 for _, res := range resources { 410 list = append(list, res.GetName()) 411 } 412 return list 413 } 414 } 415 return (permission.PermissionNameList)(nil) 416 } 417 418 func (h *BatchGetPermissionsDescriptorServerMsgHandle) ExtractCollectionName(msg proto.Message) gotenresource.Name { 419 return nil 420 } 421 422 func (h *BatchGetPermissionsDescriptorServerMsgHandle) ExtractResourceBody(msg proto.Message) gotenresource.Resource { 423 typedMsg := msg.(*BatchGetPermissionsResponse) 424 var asInterface interface{} = h 425 override, ok := asInterface.(interface { 426 OverrideExtractResourceBody(*BatchGetPermissionsResponse) *permission.Permission 427 }) 428 if ok { 429 return override.OverrideExtractResourceBody(typedMsg) 430 } 431 return nil 432 } 433 434 func (h *BatchGetPermissionsDescriptorServerMsgHandle) ExtractResourceBodies(msg proto.Message) gotenresource.ResourceList { 435 typedMsg := msg.(*BatchGetPermissionsResponse) 436 var asInterface interface{} = h 437 override, ok := asInterface.(interface { 438 OverrideExtractResourceBodies(*BatchGetPermissionsResponse) []*permission.Permission 439 }) 440 if ok { 441 return permission.PermissionList(override.OverrideExtractResourceBodies(typedMsg)) 442 } 443 { 444 if resources := typedMsg.GetPermissions(); len(resources) > 0 { 445 return permission.PermissionList(resources) 446 } 447 } 448 return (permission.PermissionList)(nil) 449 } 450 451 func GetBatchGetPermissionsDescriptor() *BatchGetPermissionsDescriptor { 452 return batchGetPermissionsDescriptor 453 } 454 455 type ListPermissionsDescriptor struct{} 456 457 type ListPermissionsDescriptorClientMsgHandle struct{} 458 459 type ListPermissionsDescriptorServerMsgHandle struct{} 460 461 func (d *ListPermissionsDescriptor) NewEmptyClientMsg() proto.Message { 462 return &ListPermissionsRequest{} 463 } 464 465 func (d *ListPermissionsDescriptor) NewEmptyServerMsg() proto.Message { 466 return &ListPermissionsResponse{} 467 } 468 469 func (d *ListPermissionsDescriptor) IsUnary() bool { 470 return true 471 } 472 473 func (d *ListPermissionsDescriptor) IsClientStream() bool { 474 return false 475 } 476 477 func (d *ListPermissionsDescriptor) IsServerStream() bool { 478 return false 479 } 480 481 func (d *ListPermissionsDescriptor) IsCollection() bool { 482 return true 483 } 484 485 func (d *ListPermissionsDescriptor) IsPlural() bool { 486 return true 487 } 488 489 func (d *ListPermissionsDescriptor) HasResource() bool { 490 return true 491 } 492 493 func (d *ListPermissionsDescriptor) RequestHasResourceBody() bool { 494 return false 495 } 496 497 func (d *ListPermissionsDescriptor) GetVerb() string { 498 return "list" 499 } 500 501 func (d *ListPermissionsDescriptor) GetMethodName() string { 502 return "ListPermissions" 503 } 504 505 func (d *ListPermissionsDescriptor) GetFullMethodName() string { 506 return "/ntt.iam.v1alpha2.PermissionService/ListPermissions" 507 } 508 509 func (d *ListPermissionsDescriptor) GetProtoPkgName() string { 510 return "ntt.iam.v1alpha2" 511 } 512 513 func (d *ListPermissionsDescriptor) GetApiName() string { 514 return "PermissionService" 515 } 516 517 func (d *ListPermissionsDescriptor) GetServiceDomain() string { 518 return "iam.edgelq.com" 519 } 520 521 func (d *ListPermissionsDescriptor) GetServiceVersion() string { 522 return "v1alpha2" 523 } 524 525 func (d *ListPermissionsDescriptor) GetApiDescriptor() gotenclient.ApiDescriptor { 526 return permissionServiceDescriptor 527 } 528 529 func (d *ListPermissionsDescriptor) GetResourceDescriptor() gotenresource.Descriptor { 530 return permission.GetDescriptor() 531 } 532 533 func (d *ListPermissionsDescriptor) GetClientMsgReflectHandle() gotenclient.MethodMsgHandle { 534 return &ListPermissionsDescriptorClientMsgHandle{} 535 } 536 537 func (d *ListPermissionsDescriptor) GetServerMsgReflectHandle() gotenclient.MethodMsgHandle { 538 return &ListPermissionsDescriptorServerMsgHandle{} 539 } 540 541 func (h *ListPermissionsDescriptorClientMsgHandle) ExtractResourceName(msg proto.Message) gotenresource.Name { 542 typedMsg := msg.(*ListPermissionsRequest) 543 var asInterface interface{} = h 544 override, ok := asInterface.(interface { 545 OverrideExtractResourceName(*ListPermissionsRequest) *permission.Name 546 }) 547 if ok { 548 return override.OverrideExtractResourceName(typedMsg) 549 } 550 return nil 551 } 552 553 func (h *ListPermissionsDescriptorClientMsgHandle) ExtractResourceNames(msg proto.Message) gotenresource.NameList { 554 typedMsg := msg.(*ListPermissionsRequest) 555 var asInterface interface{} = h 556 override, ok := asInterface.(interface { 557 OverrideExtractResourceNames(*ListPermissionsRequest) []*permission.Name 558 }) 559 if ok { 560 return permission.PermissionNameList(override.OverrideExtractResourceNames(typedMsg)) 561 } 562 return nil 563 } 564 565 func (h *ListPermissionsDescriptorClientMsgHandle) ExtractCollectionName(msg proto.Message) gotenresource.Name { 566 return nil 567 } 568 569 func (h *ListPermissionsDescriptorClientMsgHandle) ExtractResourceBody(msg proto.Message) gotenresource.Resource { 570 typedMsg := msg.(*ListPermissionsRequest) 571 var asInterface interface{} = h 572 override, ok := asInterface.(interface { 573 OverrideExtractResourceBody(*ListPermissionsRequest) *permission.Permission 574 }) 575 if ok { 576 return override.OverrideExtractResourceBody(typedMsg) 577 } 578 return nil 579 } 580 581 func (h *ListPermissionsDescriptorClientMsgHandle) ExtractResourceBodies(msg proto.Message) gotenresource.ResourceList { 582 typedMsg := msg.(*ListPermissionsRequest) 583 var asInterface interface{} = h 584 override, ok := asInterface.(interface { 585 OverrideExtractResourceBodies(*ListPermissionsRequest) []*permission.Permission 586 }) 587 if ok { 588 return permission.PermissionList(override.OverrideExtractResourceBodies(typedMsg)) 589 } 590 return nil 591 } 592 593 func (h *ListPermissionsDescriptorServerMsgHandle) ExtractResourceName(msg proto.Message) gotenresource.Name { 594 typedMsg := msg.(*ListPermissionsResponse) 595 var asInterface interface{} = h 596 override, ok := asInterface.(interface { 597 OverrideExtractResourceName(*ListPermissionsResponse) *permission.Name 598 }) 599 if ok { 600 return override.OverrideExtractResourceName(typedMsg) 601 } 602 return nil 603 } 604 605 func (h *ListPermissionsDescriptorServerMsgHandle) ExtractResourceNames(msg proto.Message) gotenresource.NameList { 606 typedMsg := msg.(*ListPermissionsResponse) 607 var asInterface interface{} = h 608 override, ok := asInterface.(interface { 609 OverrideExtractResourceNames(*ListPermissionsResponse) []*permission.Name 610 }) 611 if ok { 612 return permission.PermissionNameList(override.OverrideExtractResourceNames(typedMsg)) 613 } 614 { 615 if resources := typedMsg.GetPermissions(); len(resources) > 0 { 616 list := make(permission.PermissionNameList, 0, len(resources)) 617 for _, res := range resources { 618 list = append(list, res.GetName()) 619 } 620 return list 621 } 622 } 623 return (permission.PermissionNameList)(nil) 624 } 625 626 func (h *ListPermissionsDescriptorServerMsgHandle) ExtractCollectionName(msg proto.Message) gotenresource.Name { 627 return nil 628 } 629 630 func (h *ListPermissionsDescriptorServerMsgHandle) ExtractResourceBody(msg proto.Message) gotenresource.Resource { 631 typedMsg := msg.(*ListPermissionsResponse) 632 var asInterface interface{} = h 633 override, ok := asInterface.(interface { 634 OverrideExtractResourceBody(*ListPermissionsResponse) *permission.Permission 635 }) 636 if ok { 637 return override.OverrideExtractResourceBody(typedMsg) 638 } 639 return nil 640 } 641 642 func (h *ListPermissionsDescriptorServerMsgHandle) ExtractResourceBodies(msg proto.Message) gotenresource.ResourceList { 643 typedMsg := msg.(*ListPermissionsResponse) 644 var asInterface interface{} = h 645 override, ok := asInterface.(interface { 646 OverrideExtractResourceBodies(*ListPermissionsResponse) []*permission.Permission 647 }) 648 if ok { 649 return permission.PermissionList(override.OverrideExtractResourceBodies(typedMsg)) 650 } 651 { 652 if resources := typedMsg.GetPermissions(); len(resources) > 0 { 653 return permission.PermissionList(resources) 654 } 655 } 656 return (permission.PermissionList)(nil) 657 } 658 659 func GetListPermissionsDescriptor() *ListPermissionsDescriptor { 660 return listPermissionsDescriptor 661 } 662 663 type WatchPermissionDescriptor struct{} 664 665 type WatchPermissionDescriptorClientMsgHandle struct{} 666 667 type WatchPermissionDescriptorServerMsgHandle struct{} 668 669 func (d *WatchPermissionDescriptor) NewEmptyClientMsg() proto.Message { 670 return &WatchPermissionRequest{} 671 } 672 673 func (d *WatchPermissionDescriptor) NewEmptyServerMsg() proto.Message { 674 return &WatchPermissionResponse{} 675 } 676 677 func (d *WatchPermissionDescriptor) IsUnary() bool { 678 return false 679 } 680 681 func (d *WatchPermissionDescriptor) IsClientStream() bool { 682 return false 683 } 684 685 func (d *WatchPermissionDescriptor) IsServerStream() bool { 686 return true 687 } 688 689 func (d *WatchPermissionDescriptor) IsCollection() bool { 690 return false 691 } 692 693 func (d *WatchPermissionDescriptor) IsPlural() bool { 694 return false 695 } 696 697 func (d *WatchPermissionDescriptor) HasResource() bool { 698 return true 699 } 700 701 func (d *WatchPermissionDescriptor) RequestHasResourceBody() bool { 702 return false 703 } 704 705 func (d *WatchPermissionDescriptor) GetVerb() string { 706 return "watch" 707 } 708 709 func (d *WatchPermissionDescriptor) GetMethodName() string { 710 return "WatchPermission" 711 } 712 713 func (d *WatchPermissionDescriptor) GetFullMethodName() string { 714 return "/ntt.iam.v1alpha2.PermissionService/WatchPermission" 715 } 716 717 func (d *WatchPermissionDescriptor) GetProtoPkgName() string { 718 return "ntt.iam.v1alpha2" 719 } 720 721 func (d *WatchPermissionDescriptor) GetApiName() string { 722 return "PermissionService" 723 } 724 725 func (d *WatchPermissionDescriptor) GetServiceDomain() string { 726 return "iam.edgelq.com" 727 } 728 729 func (d *WatchPermissionDescriptor) GetServiceVersion() string { 730 return "v1alpha2" 731 } 732 733 func (d *WatchPermissionDescriptor) GetApiDescriptor() gotenclient.ApiDescriptor { 734 return permissionServiceDescriptor 735 } 736 737 func (d *WatchPermissionDescriptor) GetResourceDescriptor() gotenresource.Descriptor { 738 return permission.GetDescriptor() 739 } 740 741 func (d *WatchPermissionDescriptor) GetClientMsgReflectHandle() gotenclient.MethodMsgHandle { 742 return &WatchPermissionDescriptorClientMsgHandle{} 743 } 744 745 func (d *WatchPermissionDescriptor) GetServerMsgReflectHandle() gotenclient.MethodMsgHandle { 746 return &WatchPermissionDescriptorServerMsgHandle{} 747 } 748 749 func (h *WatchPermissionDescriptorClientMsgHandle) ExtractResourceName(msg proto.Message) gotenresource.Name { 750 typedMsg := msg.(*WatchPermissionRequest) 751 var asInterface interface{} = h 752 override, ok := asInterface.(interface { 753 OverrideExtractResourceName(*WatchPermissionRequest) *permission.Name 754 }) 755 if ok { 756 return override.OverrideExtractResourceName(typedMsg) 757 } 758 { 759 if name := typedMsg.GetName(); name != nil { 760 return name 761 } 762 } 763 return (*permission.Name)(nil) 764 } 765 766 func (h *WatchPermissionDescriptorClientMsgHandle) ExtractResourceNames(msg proto.Message) gotenresource.NameList { 767 typedMsg := msg.(*WatchPermissionRequest) 768 var asInterface interface{} = h 769 override, ok := asInterface.(interface { 770 OverrideExtractResourceNames(*WatchPermissionRequest) []*permission.Name 771 }) 772 if ok { 773 return permission.PermissionNameList(override.OverrideExtractResourceNames(typedMsg)) 774 } 775 return nil 776 } 777 778 func (h *WatchPermissionDescriptorClientMsgHandle) ExtractCollectionName(msg proto.Message) gotenresource.Name { 779 return nil 780 } 781 782 func (h *WatchPermissionDescriptorClientMsgHandle) ExtractResourceBody(msg proto.Message) gotenresource.Resource { 783 typedMsg := msg.(*WatchPermissionRequest) 784 var asInterface interface{} = h 785 override, ok := asInterface.(interface { 786 OverrideExtractResourceBody(*WatchPermissionRequest) *permission.Permission 787 }) 788 if ok { 789 return override.OverrideExtractResourceBody(typedMsg) 790 } 791 return nil 792 } 793 794 func (h *WatchPermissionDescriptorClientMsgHandle) ExtractResourceBodies(msg proto.Message) gotenresource.ResourceList { 795 typedMsg := msg.(*WatchPermissionRequest) 796 var asInterface interface{} = h 797 override, ok := asInterface.(interface { 798 OverrideExtractResourceBodies(*WatchPermissionRequest) []*permission.Permission 799 }) 800 if ok { 801 return permission.PermissionList(override.OverrideExtractResourceBodies(typedMsg)) 802 } 803 return nil 804 } 805 806 func (h *WatchPermissionDescriptorServerMsgHandle) ExtractResourceName(msg proto.Message) gotenresource.Name { 807 typedMsg := msg.(*WatchPermissionResponse) 808 var asInterface interface{} = h 809 override, ok := asInterface.(interface { 810 OverrideExtractResourceName(*WatchPermissionResponse) *permission.Name 811 }) 812 if ok { 813 return override.OverrideExtractResourceName(typedMsg) 814 } 815 { 816 if resChange := typedMsg.GetChange(); resChange != nil { 817 switch tResChange := resChange.ChangeType.(type) { 818 case *permission.PermissionChange_Added_: 819 return tResChange.Added.GetPermission().GetName() 820 case *permission.PermissionChange_Modified_: 821 return tResChange.Modified.GetName() 822 case *permission.PermissionChange_Removed_: 823 return tResChange.Removed.GetName() 824 case *permission.PermissionChange_Current_: 825 return tResChange.Current.GetPermission().GetName() 826 } 827 } 828 } 829 return (*permission.Name)(nil) 830 } 831 832 func (h *WatchPermissionDescriptorServerMsgHandle) ExtractResourceNames(msg proto.Message) gotenresource.NameList { 833 typedMsg := msg.(*WatchPermissionResponse) 834 var asInterface interface{} = h 835 override, ok := asInterface.(interface { 836 OverrideExtractResourceNames(*WatchPermissionResponse) []*permission.Name 837 }) 838 if ok { 839 return permission.PermissionNameList(override.OverrideExtractResourceNames(typedMsg)) 840 } 841 return nil 842 } 843 844 func (h *WatchPermissionDescriptorServerMsgHandle) ExtractCollectionName(msg proto.Message) gotenresource.Name { 845 return nil 846 } 847 848 func (h *WatchPermissionDescriptorServerMsgHandle) ExtractResourceBody(msg proto.Message) gotenresource.Resource { 849 typedMsg := msg.(*WatchPermissionResponse) 850 var asInterface interface{} = h 851 override, ok := asInterface.(interface { 852 OverrideExtractResourceBody(*WatchPermissionResponse) *permission.Permission 853 }) 854 if ok { 855 return override.OverrideExtractResourceBody(typedMsg) 856 } 857 { 858 if resChange := typedMsg.GetChange(); resChange != nil { 859 switch tResChange := resChange.ChangeType.(type) { 860 case *permission.PermissionChange_Added_: 861 return tResChange.Added.GetPermission() 862 case *permission.PermissionChange_Modified_: 863 return tResChange.Modified.GetPermission() 864 case *permission.PermissionChange_Current_: 865 return tResChange.Current.GetPermission() 866 } 867 } 868 } 869 return (*permission.Permission)(nil) 870 } 871 872 func (h *WatchPermissionDescriptorServerMsgHandle) ExtractResourceBodies(msg proto.Message) gotenresource.ResourceList { 873 typedMsg := msg.(*WatchPermissionResponse) 874 var asInterface interface{} = h 875 override, ok := asInterface.(interface { 876 OverrideExtractResourceBodies(*WatchPermissionResponse) []*permission.Permission 877 }) 878 if ok { 879 return permission.PermissionList(override.OverrideExtractResourceBodies(typedMsg)) 880 } 881 return nil 882 } 883 884 func GetWatchPermissionDescriptor() *WatchPermissionDescriptor { 885 return watchPermissionDescriptor 886 } 887 888 type WatchPermissionsDescriptor struct{} 889 890 type WatchPermissionsDescriptorClientMsgHandle struct{} 891 892 type WatchPermissionsDescriptorServerMsgHandle struct{} 893 894 func (d *WatchPermissionsDescriptor) NewEmptyClientMsg() proto.Message { 895 return &WatchPermissionsRequest{} 896 } 897 898 func (d *WatchPermissionsDescriptor) NewEmptyServerMsg() proto.Message { 899 return &WatchPermissionsResponse{} 900 } 901 902 func (d *WatchPermissionsDescriptor) IsUnary() bool { 903 return false 904 } 905 906 func (d *WatchPermissionsDescriptor) IsClientStream() bool { 907 return false 908 } 909 910 func (d *WatchPermissionsDescriptor) IsServerStream() bool { 911 return true 912 } 913 914 func (d *WatchPermissionsDescriptor) IsCollection() bool { 915 return true 916 } 917 918 func (d *WatchPermissionsDescriptor) IsPlural() bool { 919 return true 920 } 921 922 func (d *WatchPermissionsDescriptor) HasResource() bool { 923 return true 924 } 925 926 func (d *WatchPermissionsDescriptor) RequestHasResourceBody() bool { 927 return false 928 } 929 930 func (d *WatchPermissionsDescriptor) GetVerb() string { 931 return "watch" 932 } 933 934 func (d *WatchPermissionsDescriptor) GetMethodName() string { 935 return "WatchPermissions" 936 } 937 938 func (d *WatchPermissionsDescriptor) GetFullMethodName() string { 939 return "/ntt.iam.v1alpha2.PermissionService/WatchPermissions" 940 } 941 942 func (d *WatchPermissionsDescriptor) GetProtoPkgName() string { 943 return "ntt.iam.v1alpha2" 944 } 945 946 func (d *WatchPermissionsDescriptor) GetApiName() string { 947 return "PermissionService" 948 } 949 950 func (d *WatchPermissionsDescriptor) GetServiceDomain() string { 951 return "iam.edgelq.com" 952 } 953 954 func (d *WatchPermissionsDescriptor) GetServiceVersion() string { 955 return "v1alpha2" 956 } 957 958 func (d *WatchPermissionsDescriptor) GetApiDescriptor() gotenclient.ApiDescriptor { 959 return permissionServiceDescriptor 960 } 961 962 func (d *WatchPermissionsDescriptor) GetResourceDescriptor() gotenresource.Descriptor { 963 return permission.GetDescriptor() 964 } 965 966 func (d *WatchPermissionsDescriptor) GetClientMsgReflectHandle() gotenclient.MethodMsgHandle { 967 return &WatchPermissionsDescriptorClientMsgHandle{} 968 } 969 970 func (d *WatchPermissionsDescriptor) GetServerMsgReflectHandle() gotenclient.MethodMsgHandle { 971 return &WatchPermissionsDescriptorServerMsgHandle{} 972 } 973 974 func (h *WatchPermissionsDescriptorClientMsgHandle) ExtractResourceName(msg proto.Message) gotenresource.Name { 975 typedMsg := msg.(*WatchPermissionsRequest) 976 var asInterface interface{} = h 977 override, ok := asInterface.(interface { 978 OverrideExtractResourceName(*WatchPermissionsRequest) *permission.Name 979 }) 980 if ok { 981 return override.OverrideExtractResourceName(typedMsg) 982 } 983 return nil 984 } 985 986 func (h *WatchPermissionsDescriptorClientMsgHandle) ExtractResourceNames(msg proto.Message) gotenresource.NameList { 987 typedMsg := msg.(*WatchPermissionsRequest) 988 var asInterface interface{} = h 989 override, ok := asInterface.(interface { 990 OverrideExtractResourceNames(*WatchPermissionsRequest) []*permission.Name 991 }) 992 if ok { 993 return permission.PermissionNameList(override.OverrideExtractResourceNames(typedMsg)) 994 } 995 return nil 996 } 997 998 func (h *WatchPermissionsDescriptorClientMsgHandle) ExtractCollectionName(msg proto.Message) gotenresource.Name { 999 return nil 1000 } 1001 1002 func (h *WatchPermissionsDescriptorClientMsgHandle) ExtractResourceBody(msg proto.Message) gotenresource.Resource { 1003 typedMsg := msg.(*WatchPermissionsRequest) 1004 var asInterface interface{} = h 1005 override, ok := asInterface.(interface { 1006 OverrideExtractResourceBody(*WatchPermissionsRequest) *permission.Permission 1007 }) 1008 if ok { 1009 return override.OverrideExtractResourceBody(typedMsg) 1010 } 1011 return nil 1012 } 1013 1014 func (h *WatchPermissionsDescriptorClientMsgHandle) ExtractResourceBodies(msg proto.Message) gotenresource.ResourceList { 1015 typedMsg := msg.(*WatchPermissionsRequest) 1016 var asInterface interface{} = h 1017 override, ok := asInterface.(interface { 1018 OverrideExtractResourceBodies(*WatchPermissionsRequest) []*permission.Permission 1019 }) 1020 if ok { 1021 return permission.PermissionList(override.OverrideExtractResourceBodies(typedMsg)) 1022 } 1023 return nil 1024 } 1025 1026 func (h *WatchPermissionsDescriptorServerMsgHandle) ExtractResourceName(msg proto.Message) gotenresource.Name { 1027 typedMsg := msg.(*WatchPermissionsResponse) 1028 var asInterface interface{} = h 1029 override, ok := asInterface.(interface { 1030 OverrideExtractResourceName(*WatchPermissionsResponse) *permission.Name 1031 }) 1032 if ok { 1033 return override.OverrideExtractResourceName(typedMsg) 1034 } 1035 return nil 1036 } 1037 1038 func (h *WatchPermissionsDescriptorServerMsgHandle) ExtractResourceNames(msg proto.Message) gotenresource.NameList { 1039 typedMsg := msg.(*WatchPermissionsResponse) 1040 var asInterface interface{} = h 1041 override, ok := asInterface.(interface { 1042 OverrideExtractResourceNames(*WatchPermissionsResponse) []*permission.Name 1043 }) 1044 if ok { 1045 return permission.PermissionNameList(override.OverrideExtractResourceNames(typedMsg)) 1046 } 1047 { 1048 if resChanges := typedMsg.GetPermissionChanges(); len(resChanges) > 0 { 1049 list := make(permission.PermissionNameList, 0, len(resChanges)) 1050 for _, resChange := range resChanges { 1051 switch tResChange := resChange.ChangeType.(type) { 1052 case *permission.PermissionChange_Added_: 1053 list = append(list, tResChange.Added.GetPermission().GetName()) 1054 case *permission.PermissionChange_Modified_: 1055 list = append(list, tResChange.Modified.GetName()) 1056 case *permission.PermissionChange_Removed_: 1057 list = append(list, tResChange.Removed.GetName()) 1058 case *permission.PermissionChange_Current_: 1059 list = append(list, tResChange.Current.GetPermission().GetName()) 1060 } 1061 } 1062 return list 1063 } 1064 } 1065 return (permission.PermissionNameList)(nil) 1066 } 1067 1068 func (h *WatchPermissionsDescriptorServerMsgHandle) ExtractCollectionName(msg proto.Message) gotenresource.Name { 1069 return nil 1070 } 1071 1072 func (h *WatchPermissionsDescriptorServerMsgHandle) ExtractResourceBody(msg proto.Message) gotenresource.Resource { 1073 typedMsg := msg.(*WatchPermissionsResponse) 1074 var asInterface interface{} = h 1075 override, ok := asInterface.(interface { 1076 OverrideExtractResourceBody(*WatchPermissionsResponse) *permission.Permission 1077 }) 1078 if ok { 1079 return override.OverrideExtractResourceBody(typedMsg) 1080 } 1081 return nil 1082 } 1083 1084 func (h *WatchPermissionsDescriptorServerMsgHandle) ExtractResourceBodies(msg proto.Message) gotenresource.ResourceList { 1085 typedMsg := msg.(*WatchPermissionsResponse) 1086 var asInterface interface{} = h 1087 override, ok := asInterface.(interface { 1088 OverrideExtractResourceBodies(*WatchPermissionsResponse) []*permission.Permission 1089 }) 1090 if ok { 1091 return permission.PermissionList(override.OverrideExtractResourceBodies(typedMsg)) 1092 } 1093 { 1094 if resChanges := typedMsg.GetPermissionChanges(); len(resChanges) > 0 { 1095 list := make(permission.PermissionList, 0, len(resChanges)) 1096 for _, resChange := range resChanges { 1097 switch tResChange := resChange.ChangeType.(type) { 1098 case *permission.PermissionChange_Added_: 1099 list = append(list, tResChange.Added.GetPermission()) 1100 case *permission.PermissionChange_Modified_: 1101 list = append(list, tResChange.Modified.GetPermission()) 1102 case *permission.PermissionChange_Current_: 1103 list = append(list, tResChange.Current.GetPermission()) 1104 } 1105 } 1106 return list 1107 } 1108 } 1109 return (permission.PermissionList)(nil) 1110 } 1111 1112 func GetWatchPermissionsDescriptor() *WatchPermissionsDescriptor { 1113 return watchPermissionsDescriptor 1114 } 1115 1116 type CreatePermissionDescriptor struct{} 1117 1118 type CreatePermissionDescriptorClientMsgHandle struct{} 1119 1120 type CreatePermissionDescriptorServerMsgHandle struct{} 1121 1122 func (d *CreatePermissionDescriptor) NewEmptyClientMsg() proto.Message { 1123 return &CreatePermissionRequest{} 1124 } 1125 1126 func (d *CreatePermissionDescriptor) NewEmptyServerMsg() proto.Message { 1127 return &permission.Permission{} 1128 } 1129 1130 func (d *CreatePermissionDescriptor) IsUnary() bool { 1131 return true 1132 } 1133 1134 func (d *CreatePermissionDescriptor) IsClientStream() bool { 1135 return false 1136 } 1137 1138 func (d *CreatePermissionDescriptor) IsServerStream() bool { 1139 return false 1140 } 1141 1142 func (d *CreatePermissionDescriptor) IsCollection() bool { 1143 return true 1144 } 1145 1146 func (d *CreatePermissionDescriptor) IsPlural() bool { 1147 return false 1148 } 1149 1150 func (d *CreatePermissionDescriptor) HasResource() bool { 1151 return true 1152 } 1153 1154 func (d *CreatePermissionDescriptor) RequestHasResourceBody() bool { 1155 return true 1156 } 1157 1158 func (d *CreatePermissionDescriptor) GetVerb() string { 1159 return "create" 1160 } 1161 1162 func (d *CreatePermissionDescriptor) GetMethodName() string { 1163 return "CreatePermission" 1164 } 1165 1166 func (d *CreatePermissionDescriptor) GetFullMethodName() string { 1167 return "/ntt.iam.v1alpha2.PermissionService/CreatePermission" 1168 } 1169 1170 func (d *CreatePermissionDescriptor) GetProtoPkgName() string { 1171 return "ntt.iam.v1alpha2" 1172 } 1173 1174 func (d *CreatePermissionDescriptor) GetApiName() string { 1175 return "PermissionService" 1176 } 1177 1178 func (d *CreatePermissionDescriptor) GetServiceDomain() string { 1179 return "iam.edgelq.com" 1180 } 1181 1182 func (d *CreatePermissionDescriptor) GetServiceVersion() string { 1183 return "v1alpha2" 1184 } 1185 1186 func (d *CreatePermissionDescriptor) GetApiDescriptor() gotenclient.ApiDescriptor { 1187 return permissionServiceDescriptor 1188 } 1189 1190 func (d *CreatePermissionDescriptor) GetResourceDescriptor() gotenresource.Descriptor { 1191 return permission.GetDescriptor() 1192 } 1193 1194 func (d *CreatePermissionDescriptor) GetClientMsgReflectHandle() gotenclient.MethodMsgHandle { 1195 return &CreatePermissionDescriptorClientMsgHandle{} 1196 } 1197 1198 func (d *CreatePermissionDescriptor) GetServerMsgReflectHandle() gotenclient.MethodMsgHandle { 1199 return &CreatePermissionDescriptorServerMsgHandle{} 1200 } 1201 1202 func (h *CreatePermissionDescriptorClientMsgHandle) ExtractResourceName(msg proto.Message) gotenresource.Name { 1203 typedMsg := msg.(*CreatePermissionRequest) 1204 var asInterface interface{} = h 1205 override, ok := asInterface.(interface { 1206 OverrideExtractResourceName(*CreatePermissionRequest) *permission.Name 1207 }) 1208 if ok { 1209 return override.OverrideExtractResourceName(typedMsg) 1210 } 1211 { 1212 res := typedMsg.GetPermission() 1213 if name := res.GetName(); name != nil { 1214 return name 1215 } 1216 } 1217 return (*permission.Name)(nil) 1218 } 1219 1220 func (h *CreatePermissionDescriptorClientMsgHandle) ExtractResourceNames(msg proto.Message) gotenresource.NameList { 1221 typedMsg := msg.(*CreatePermissionRequest) 1222 var asInterface interface{} = h 1223 override, ok := asInterface.(interface { 1224 OverrideExtractResourceNames(*CreatePermissionRequest) []*permission.Name 1225 }) 1226 if ok { 1227 return permission.PermissionNameList(override.OverrideExtractResourceNames(typedMsg)) 1228 } 1229 return nil 1230 } 1231 1232 func (h *CreatePermissionDescriptorClientMsgHandle) ExtractCollectionName(msg proto.Message) gotenresource.Name { 1233 return nil 1234 } 1235 1236 func (h *CreatePermissionDescriptorClientMsgHandle) ExtractResourceBody(msg proto.Message) gotenresource.Resource { 1237 typedMsg := msg.(*CreatePermissionRequest) 1238 var asInterface interface{} = h 1239 override, ok := asInterface.(interface { 1240 OverrideExtractResourceBody(*CreatePermissionRequest) *permission.Permission 1241 }) 1242 if ok { 1243 return override.OverrideExtractResourceBody(typedMsg) 1244 } 1245 { 1246 return typedMsg.GetPermission() 1247 } 1248 return (*permission.Permission)(nil) 1249 } 1250 1251 func (h *CreatePermissionDescriptorClientMsgHandle) ExtractResourceBodies(msg proto.Message) gotenresource.ResourceList { 1252 typedMsg := msg.(*CreatePermissionRequest) 1253 var asInterface interface{} = h 1254 override, ok := asInterface.(interface { 1255 OverrideExtractResourceBodies(*CreatePermissionRequest) []*permission.Permission 1256 }) 1257 if ok { 1258 return permission.PermissionList(override.OverrideExtractResourceBodies(typedMsg)) 1259 } 1260 return nil 1261 } 1262 1263 func (h *CreatePermissionDescriptorServerMsgHandle) ExtractResourceName(msg proto.Message) gotenresource.Name { 1264 typedMsg := msg.(*permission.Permission) 1265 var asInterface interface{} = h 1266 override, ok := asInterface.(interface { 1267 OverrideExtractResourceName(*permission.Permission) *permission.Name 1268 }) 1269 if ok { 1270 return override.OverrideExtractResourceName(typedMsg) 1271 } 1272 { 1273 if name := typedMsg.GetName(); name != nil { 1274 return name 1275 } 1276 } 1277 return (*permission.Name)(nil) 1278 } 1279 1280 func (h *CreatePermissionDescriptorServerMsgHandle) ExtractResourceNames(msg proto.Message) gotenresource.NameList { 1281 typedMsg := msg.(*permission.Permission) 1282 var asInterface interface{} = h 1283 override, ok := asInterface.(interface { 1284 OverrideExtractResourceNames(*permission.Permission) []*permission.Name 1285 }) 1286 if ok { 1287 return permission.PermissionNameList(override.OverrideExtractResourceNames(typedMsg)) 1288 } 1289 return nil 1290 } 1291 1292 func (h *CreatePermissionDescriptorServerMsgHandle) ExtractCollectionName(msg proto.Message) gotenresource.Name { 1293 return nil 1294 } 1295 1296 func (h *CreatePermissionDescriptorServerMsgHandle) ExtractResourceBody(msg proto.Message) gotenresource.Resource { 1297 return msg.(*permission.Permission) 1298 } 1299 1300 func (h *CreatePermissionDescriptorServerMsgHandle) ExtractResourceBodies(msg proto.Message) gotenresource.ResourceList { 1301 typedMsg := msg.(*permission.Permission) 1302 var asInterface interface{} = h 1303 override, ok := asInterface.(interface { 1304 OverrideExtractResourceBodies(*permission.Permission) []*permission.Permission 1305 }) 1306 if ok { 1307 return permission.PermissionList(override.OverrideExtractResourceBodies(typedMsg)) 1308 } 1309 return nil 1310 } 1311 1312 func GetCreatePermissionDescriptor() *CreatePermissionDescriptor { 1313 return createPermissionDescriptor 1314 } 1315 1316 type UpdatePermissionDescriptor struct{} 1317 1318 type UpdatePermissionDescriptorClientMsgHandle struct{} 1319 1320 type UpdatePermissionDescriptorServerMsgHandle struct{} 1321 1322 func (d *UpdatePermissionDescriptor) NewEmptyClientMsg() proto.Message { 1323 return &UpdatePermissionRequest{} 1324 } 1325 1326 func (d *UpdatePermissionDescriptor) NewEmptyServerMsg() proto.Message { 1327 return &permission.Permission{} 1328 } 1329 1330 func (d *UpdatePermissionDescriptor) IsUnary() bool { 1331 return true 1332 } 1333 1334 func (d *UpdatePermissionDescriptor) IsClientStream() bool { 1335 return false 1336 } 1337 1338 func (d *UpdatePermissionDescriptor) IsServerStream() bool { 1339 return false 1340 } 1341 1342 func (d *UpdatePermissionDescriptor) IsCollection() bool { 1343 return false 1344 } 1345 1346 func (d *UpdatePermissionDescriptor) IsPlural() bool { 1347 return false 1348 } 1349 1350 func (d *UpdatePermissionDescriptor) HasResource() bool { 1351 return true 1352 } 1353 1354 func (d *UpdatePermissionDescriptor) RequestHasResourceBody() bool { 1355 return true 1356 } 1357 1358 func (d *UpdatePermissionDescriptor) GetVerb() string { 1359 return "update" 1360 } 1361 1362 func (d *UpdatePermissionDescriptor) GetMethodName() string { 1363 return "UpdatePermission" 1364 } 1365 1366 func (d *UpdatePermissionDescriptor) GetFullMethodName() string { 1367 return "/ntt.iam.v1alpha2.PermissionService/UpdatePermission" 1368 } 1369 1370 func (d *UpdatePermissionDescriptor) GetProtoPkgName() string { 1371 return "ntt.iam.v1alpha2" 1372 } 1373 1374 func (d *UpdatePermissionDescriptor) GetApiName() string { 1375 return "PermissionService" 1376 } 1377 1378 func (d *UpdatePermissionDescriptor) GetServiceDomain() string { 1379 return "iam.edgelq.com" 1380 } 1381 1382 func (d *UpdatePermissionDescriptor) GetServiceVersion() string { 1383 return "v1alpha2" 1384 } 1385 1386 func (d *UpdatePermissionDescriptor) GetApiDescriptor() gotenclient.ApiDescriptor { 1387 return permissionServiceDescriptor 1388 } 1389 1390 func (d *UpdatePermissionDescriptor) GetResourceDescriptor() gotenresource.Descriptor { 1391 return permission.GetDescriptor() 1392 } 1393 1394 func (d *UpdatePermissionDescriptor) GetClientMsgReflectHandle() gotenclient.MethodMsgHandle { 1395 return &UpdatePermissionDescriptorClientMsgHandle{} 1396 } 1397 1398 func (d *UpdatePermissionDescriptor) GetServerMsgReflectHandle() gotenclient.MethodMsgHandle { 1399 return &UpdatePermissionDescriptorServerMsgHandle{} 1400 } 1401 1402 func (h *UpdatePermissionDescriptorClientMsgHandle) ExtractResourceName(msg proto.Message) gotenresource.Name { 1403 typedMsg := msg.(*UpdatePermissionRequest) 1404 var asInterface interface{} = h 1405 override, ok := asInterface.(interface { 1406 OverrideExtractResourceName(*UpdatePermissionRequest) *permission.Name 1407 }) 1408 if ok { 1409 return override.OverrideExtractResourceName(typedMsg) 1410 } 1411 { 1412 res := typedMsg.GetPermission() 1413 if name := res.GetName(); name != nil { 1414 return name 1415 } 1416 } 1417 return (*permission.Name)(nil) 1418 } 1419 1420 func (h *UpdatePermissionDescriptorClientMsgHandle) ExtractResourceNames(msg proto.Message) gotenresource.NameList { 1421 typedMsg := msg.(*UpdatePermissionRequest) 1422 var asInterface interface{} = h 1423 override, ok := asInterface.(interface { 1424 OverrideExtractResourceNames(*UpdatePermissionRequest) []*permission.Name 1425 }) 1426 if ok { 1427 return permission.PermissionNameList(override.OverrideExtractResourceNames(typedMsg)) 1428 } 1429 return nil 1430 } 1431 1432 func (h *UpdatePermissionDescriptorClientMsgHandle) ExtractCollectionName(msg proto.Message) gotenresource.Name { 1433 return nil 1434 } 1435 1436 func (h *UpdatePermissionDescriptorClientMsgHandle) ExtractResourceBody(msg proto.Message) gotenresource.Resource { 1437 typedMsg := msg.(*UpdatePermissionRequest) 1438 var asInterface interface{} = h 1439 override, ok := asInterface.(interface { 1440 OverrideExtractResourceBody(*UpdatePermissionRequest) *permission.Permission 1441 }) 1442 if ok { 1443 return override.OverrideExtractResourceBody(typedMsg) 1444 } 1445 { 1446 return typedMsg.GetPermission() 1447 } 1448 return (*permission.Permission)(nil) 1449 } 1450 1451 func (h *UpdatePermissionDescriptorClientMsgHandle) ExtractResourceBodies(msg proto.Message) gotenresource.ResourceList { 1452 typedMsg := msg.(*UpdatePermissionRequest) 1453 var asInterface interface{} = h 1454 override, ok := asInterface.(interface { 1455 OverrideExtractResourceBodies(*UpdatePermissionRequest) []*permission.Permission 1456 }) 1457 if ok { 1458 return permission.PermissionList(override.OverrideExtractResourceBodies(typedMsg)) 1459 } 1460 return nil 1461 } 1462 1463 func (h *UpdatePermissionDescriptorServerMsgHandle) ExtractResourceName(msg proto.Message) gotenresource.Name { 1464 typedMsg := msg.(*permission.Permission) 1465 var asInterface interface{} = h 1466 override, ok := asInterface.(interface { 1467 OverrideExtractResourceName(*permission.Permission) *permission.Name 1468 }) 1469 if ok { 1470 return override.OverrideExtractResourceName(typedMsg) 1471 } 1472 { 1473 if name := typedMsg.GetName(); name != nil { 1474 return name 1475 } 1476 } 1477 return (*permission.Name)(nil) 1478 } 1479 1480 func (h *UpdatePermissionDescriptorServerMsgHandle) ExtractResourceNames(msg proto.Message) gotenresource.NameList { 1481 typedMsg := msg.(*permission.Permission) 1482 var asInterface interface{} = h 1483 override, ok := asInterface.(interface { 1484 OverrideExtractResourceNames(*permission.Permission) []*permission.Name 1485 }) 1486 if ok { 1487 return permission.PermissionNameList(override.OverrideExtractResourceNames(typedMsg)) 1488 } 1489 return nil 1490 } 1491 1492 func (h *UpdatePermissionDescriptorServerMsgHandle) ExtractCollectionName(msg proto.Message) gotenresource.Name { 1493 return nil 1494 } 1495 1496 func (h *UpdatePermissionDescriptorServerMsgHandle) ExtractResourceBody(msg proto.Message) gotenresource.Resource { 1497 return msg.(*permission.Permission) 1498 } 1499 1500 func (h *UpdatePermissionDescriptorServerMsgHandle) ExtractResourceBodies(msg proto.Message) gotenresource.ResourceList { 1501 typedMsg := msg.(*permission.Permission) 1502 var asInterface interface{} = h 1503 override, ok := asInterface.(interface { 1504 OverrideExtractResourceBodies(*permission.Permission) []*permission.Permission 1505 }) 1506 if ok { 1507 return permission.PermissionList(override.OverrideExtractResourceBodies(typedMsg)) 1508 } 1509 return nil 1510 } 1511 1512 func GetUpdatePermissionDescriptor() *UpdatePermissionDescriptor { 1513 return updatePermissionDescriptor 1514 } 1515 1516 type DeletePermissionDescriptor struct{} 1517 1518 type DeletePermissionDescriptorClientMsgHandle struct{} 1519 1520 type DeletePermissionDescriptorServerMsgHandle struct{} 1521 1522 func (d *DeletePermissionDescriptor) NewEmptyClientMsg() proto.Message { 1523 return &DeletePermissionRequest{} 1524 } 1525 1526 func (d *DeletePermissionDescriptor) NewEmptyServerMsg() proto.Message { 1527 return &emptypb.Empty{} 1528 } 1529 1530 func (d *DeletePermissionDescriptor) IsUnary() bool { 1531 return true 1532 } 1533 1534 func (d *DeletePermissionDescriptor) IsClientStream() bool { 1535 return false 1536 } 1537 1538 func (d *DeletePermissionDescriptor) IsServerStream() bool { 1539 return false 1540 } 1541 1542 func (d *DeletePermissionDescriptor) IsCollection() bool { 1543 return false 1544 } 1545 1546 func (d *DeletePermissionDescriptor) IsPlural() bool { 1547 return false 1548 } 1549 1550 func (d *DeletePermissionDescriptor) HasResource() bool { 1551 return true 1552 } 1553 1554 func (d *DeletePermissionDescriptor) RequestHasResourceBody() bool { 1555 return false 1556 } 1557 1558 func (d *DeletePermissionDescriptor) GetVerb() string { 1559 return "delete" 1560 } 1561 1562 func (d *DeletePermissionDescriptor) GetMethodName() string { 1563 return "DeletePermission" 1564 } 1565 1566 func (d *DeletePermissionDescriptor) GetFullMethodName() string { 1567 return "/ntt.iam.v1alpha2.PermissionService/DeletePermission" 1568 } 1569 1570 func (d *DeletePermissionDescriptor) GetProtoPkgName() string { 1571 return "ntt.iam.v1alpha2" 1572 } 1573 1574 func (d *DeletePermissionDescriptor) GetApiName() string { 1575 return "PermissionService" 1576 } 1577 1578 func (d *DeletePermissionDescriptor) GetServiceDomain() string { 1579 return "iam.edgelq.com" 1580 } 1581 1582 func (d *DeletePermissionDescriptor) GetServiceVersion() string { 1583 return "v1alpha2" 1584 } 1585 1586 func (d *DeletePermissionDescriptor) GetApiDescriptor() gotenclient.ApiDescriptor { 1587 return permissionServiceDescriptor 1588 } 1589 1590 func (d *DeletePermissionDescriptor) GetResourceDescriptor() gotenresource.Descriptor { 1591 return permission.GetDescriptor() 1592 } 1593 1594 func (d *DeletePermissionDescriptor) GetClientMsgReflectHandle() gotenclient.MethodMsgHandle { 1595 return &DeletePermissionDescriptorClientMsgHandle{} 1596 } 1597 1598 func (d *DeletePermissionDescriptor) GetServerMsgReflectHandle() gotenclient.MethodMsgHandle { 1599 return &DeletePermissionDescriptorServerMsgHandle{} 1600 } 1601 1602 func (h *DeletePermissionDescriptorClientMsgHandle) ExtractResourceName(msg proto.Message) gotenresource.Name { 1603 typedMsg := msg.(*DeletePermissionRequest) 1604 var asInterface interface{} = h 1605 override, ok := asInterface.(interface { 1606 OverrideExtractResourceName(*DeletePermissionRequest) *permission.Name 1607 }) 1608 if ok { 1609 return override.OverrideExtractResourceName(typedMsg) 1610 } 1611 { 1612 if name := typedMsg.GetName(); name != nil { 1613 return name 1614 } 1615 } 1616 return (*permission.Name)(nil) 1617 } 1618 1619 func (h *DeletePermissionDescriptorClientMsgHandle) ExtractResourceNames(msg proto.Message) gotenresource.NameList { 1620 typedMsg := msg.(*DeletePermissionRequest) 1621 var asInterface interface{} = h 1622 override, ok := asInterface.(interface { 1623 OverrideExtractResourceNames(*DeletePermissionRequest) []*permission.Name 1624 }) 1625 if ok { 1626 return permission.PermissionNameList(override.OverrideExtractResourceNames(typedMsg)) 1627 } 1628 return nil 1629 } 1630 1631 func (h *DeletePermissionDescriptorClientMsgHandle) ExtractCollectionName(msg proto.Message) gotenresource.Name { 1632 return nil 1633 } 1634 1635 func (h *DeletePermissionDescriptorClientMsgHandle) ExtractResourceBody(msg proto.Message) gotenresource.Resource { 1636 typedMsg := msg.(*DeletePermissionRequest) 1637 var asInterface interface{} = h 1638 override, ok := asInterface.(interface { 1639 OverrideExtractResourceBody(*DeletePermissionRequest) *permission.Permission 1640 }) 1641 if ok { 1642 return override.OverrideExtractResourceBody(typedMsg) 1643 } 1644 return nil 1645 } 1646 1647 func (h *DeletePermissionDescriptorClientMsgHandle) ExtractResourceBodies(msg proto.Message) gotenresource.ResourceList { 1648 typedMsg := msg.(*DeletePermissionRequest) 1649 var asInterface interface{} = h 1650 override, ok := asInterface.(interface { 1651 OverrideExtractResourceBodies(*DeletePermissionRequest) []*permission.Permission 1652 }) 1653 if ok { 1654 return permission.PermissionList(override.OverrideExtractResourceBodies(typedMsg)) 1655 } 1656 return nil 1657 } 1658 1659 func (h *DeletePermissionDescriptorServerMsgHandle) ExtractResourceName(msg proto.Message) gotenresource.Name { 1660 typedMsg := msg.(*emptypb.Empty) 1661 var asInterface interface{} = h 1662 override, ok := asInterface.(interface { 1663 OverrideExtractResourceName(*emptypb.Empty) *permission.Name 1664 }) 1665 if ok { 1666 return override.OverrideExtractResourceName(typedMsg) 1667 } 1668 return nil 1669 } 1670 1671 func (h *DeletePermissionDescriptorServerMsgHandle) ExtractResourceNames(msg proto.Message) gotenresource.NameList { 1672 typedMsg := msg.(*emptypb.Empty) 1673 var asInterface interface{} = h 1674 override, ok := asInterface.(interface { 1675 OverrideExtractResourceNames(*emptypb.Empty) []*permission.Name 1676 }) 1677 if ok { 1678 return permission.PermissionNameList(override.OverrideExtractResourceNames(typedMsg)) 1679 } 1680 return nil 1681 } 1682 1683 func (h *DeletePermissionDescriptorServerMsgHandle) ExtractCollectionName(msg proto.Message) gotenresource.Name { 1684 return nil 1685 } 1686 1687 func (h *DeletePermissionDescriptorServerMsgHandle) ExtractResourceBody(msg proto.Message) gotenresource.Resource { 1688 typedMsg := msg.(*emptypb.Empty) 1689 var asInterface interface{} = h 1690 override, ok := asInterface.(interface { 1691 OverrideExtractResourceBody(*emptypb.Empty) *permission.Permission 1692 }) 1693 if ok { 1694 return override.OverrideExtractResourceBody(typedMsg) 1695 } 1696 return nil 1697 } 1698 1699 func (h *DeletePermissionDescriptorServerMsgHandle) ExtractResourceBodies(msg proto.Message) gotenresource.ResourceList { 1700 typedMsg := msg.(*emptypb.Empty) 1701 var asInterface interface{} = h 1702 override, ok := asInterface.(interface { 1703 OverrideExtractResourceBodies(*emptypb.Empty) []*permission.Permission 1704 }) 1705 if ok { 1706 return permission.PermissionList(override.OverrideExtractResourceBodies(typedMsg)) 1707 } 1708 return nil 1709 } 1710 1711 func GetDeletePermissionDescriptor() *DeletePermissionDescriptor { 1712 return deletePermissionDescriptor 1713 } 1714 1715 type PermissionServiceDescriptor struct{} 1716 1717 func (d *PermissionServiceDescriptor) AllMethodDescriptors() []gotenclient.MethodDescriptor { 1718 return []gotenclient.MethodDescriptor{ 1719 getPermissionDescriptor, 1720 batchGetPermissionsDescriptor, 1721 listPermissionsDescriptor, 1722 watchPermissionDescriptor, 1723 watchPermissionsDescriptor, 1724 createPermissionDescriptor, 1725 updatePermissionDescriptor, 1726 deletePermissionDescriptor, 1727 } 1728 } 1729 1730 func (d *PermissionServiceDescriptor) GetFullAPIName() string { 1731 return "/ntt.iam.v1alpha2.PermissionService" 1732 } 1733 1734 func (d *PermissionServiceDescriptor) GetProtoPkgName() string { 1735 return "ntt.iam.v1alpha2" 1736 } 1737 1738 func (d *PermissionServiceDescriptor) GetApiName() string { 1739 return "PermissionService" 1740 } 1741 1742 func (d *PermissionServiceDescriptor) GetServiceDomain() string { 1743 return "iam.edgelq.com" 1744 } 1745 1746 func (d *PermissionServiceDescriptor) GetServiceVersion() string { 1747 return "v1alpha2" 1748 } 1749 1750 func GetPermissionServiceDescriptor() *PermissionServiceDescriptor { 1751 return permissionServiceDescriptor 1752 } 1753 1754 func initDescriptors() { 1755 permissionServiceDescriptor = &PermissionServiceDescriptor{} 1756 getPermissionDescriptor = &GetPermissionDescriptor{} 1757 batchGetPermissionsDescriptor = &BatchGetPermissionsDescriptor{} 1758 listPermissionsDescriptor = &ListPermissionsDescriptor{} 1759 watchPermissionDescriptor = &WatchPermissionDescriptor{} 1760 watchPermissionsDescriptor = &WatchPermissionsDescriptor{} 1761 createPermissionDescriptor = &CreatePermissionDescriptor{} 1762 updatePermissionDescriptor = &UpdatePermissionDescriptor{} 1763 deletePermissionDescriptor = &DeletePermissionDescriptor{} 1764 gotenclient.GetRegistry().RegisterApiDescriptor(permissionServiceDescriptor) 1765 gotenclient.GetRegistry().RegisterMethodDescriptor(getPermissionDescriptor) 1766 gotenclient.GetRegistry().RegisterMethodDescriptor(batchGetPermissionsDescriptor) 1767 gotenclient.GetRegistry().RegisterMethodDescriptor(listPermissionsDescriptor) 1768 gotenclient.GetRegistry().RegisterMethodDescriptor(watchPermissionDescriptor) 1769 gotenclient.GetRegistry().RegisterMethodDescriptor(watchPermissionsDescriptor) 1770 gotenclient.GetRegistry().RegisterMethodDescriptor(createPermissionDescriptor) 1771 gotenclient.GetRegistry().RegisterMethodDescriptor(updatePermissionDescriptor) 1772 gotenclient.GetRegistry().RegisterMethodDescriptor(deletePermissionDescriptor) 1773 } 1774 1775 func init() { 1776 if !descriptorsInitialized { 1777 initDescriptors() 1778 descriptorsInitialized = true 1779 } 1780 }