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