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