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