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