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