github.com/authzed/spicedb@v1.32.1-0.20240520085336-ebda56537386/pkg/proto/developer/v1/developer_vtproto.pb.go (about) 1 // Code generated by protoc-gen-go-vtproto. DO NOT EDIT. 2 // protoc-gen-go-vtproto version: v0.5.1-0.20231212170721-e7d721933795 3 // source: developer/v1/developer.proto 4 5 package developerv1 6 7 import ( 8 fmt "fmt" 9 v12 "github.com/authzed/authzed-go/proto/authzed/api/v1" 10 v1 "github.com/authzed/spicedb/pkg/proto/core/v1" 11 v11 "github.com/authzed/spicedb/pkg/proto/dispatch/v1" 12 protohelpers "github.com/planetscale/vtprotobuf/protohelpers" 13 structpb1 "github.com/planetscale/vtprotobuf/types/known/structpb" 14 proto "google.golang.org/protobuf/proto" 15 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 16 structpb "google.golang.org/protobuf/types/known/structpb" 17 io "io" 18 ) 19 20 const ( 21 // Verify that this generated code is sufficiently up-to-date. 22 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 23 // Verify that runtime/protoimpl is sufficiently up-to-date. 24 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 25 ) 26 27 func (m *DeveloperRequest) CloneVT() *DeveloperRequest { 28 if m == nil { 29 return (*DeveloperRequest)(nil) 30 } 31 r := new(DeveloperRequest) 32 r.Context = m.Context.CloneVT() 33 if rhs := m.Operations; rhs != nil { 34 tmpContainer := make([]*Operation, len(rhs)) 35 for k, v := range rhs { 36 tmpContainer[k] = v.CloneVT() 37 } 38 r.Operations = tmpContainer 39 } 40 if len(m.unknownFields) > 0 { 41 r.unknownFields = make([]byte, len(m.unknownFields)) 42 copy(r.unknownFields, m.unknownFields) 43 } 44 return r 45 } 46 47 func (m *DeveloperRequest) CloneMessageVT() proto.Message { 48 return m.CloneVT() 49 } 50 51 func (m *DeveloperResponse) CloneVT() *DeveloperResponse { 52 if m == nil { 53 return (*DeveloperResponse)(nil) 54 } 55 r := new(DeveloperResponse) 56 r.InternalError = m.InternalError 57 r.DeveloperErrors = m.DeveloperErrors.CloneVT() 58 r.OperationsResults = m.OperationsResults.CloneVT() 59 if len(m.unknownFields) > 0 { 60 r.unknownFields = make([]byte, len(m.unknownFields)) 61 copy(r.unknownFields, m.unknownFields) 62 } 63 return r 64 } 65 66 func (m *DeveloperResponse) CloneMessageVT() proto.Message { 67 return m.CloneVT() 68 } 69 70 func (m *RequestContext) CloneVT() *RequestContext { 71 if m == nil { 72 return (*RequestContext)(nil) 73 } 74 r := new(RequestContext) 75 r.Schema = m.Schema 76 if rhs := m.Relationships; rhs != nil { 77 tmpContainer := make([]*v1.RelationTuple, len(rhs)) 78 for k, v := range rhs { 79 if vtpb, ok := interface{}(v).(interface{ CloneVT() *v1.RelationTuple }); ok { 80 tmpContainer[k] = vtpb.CloneVT() 81 } else { 82 tmpContainer[k] = proto.Clone(v).(*v1.RelationTuple) 83 } 84 } 85 r.Relationships = tmpContainer 86 } 87 if len(m.unknownFields) > 0 { 88 r.unknownFields = make([]byte, len(m.unknownFields)) 89 copy(r.unknownFields, m.unknownFields) 90 } 91 return r 92 } 93 94 func (m *RequestContext) CloneMessageVT() proto.Message { 95 return m.CloneVT() 96 } 97 98 func (m *Operation) CloneVT() *Operation { 99 if m == nil { 100 return (*Operation)(nil) 101 } 102 r := new(Operation) 103 r.CheckParameters = m.CheckParameters.CloneVT() 104 r.AssertionsParameters = m.AssertionsParameters.CloneVT() 105 r.ValidationParameters = m.ValidationParameters.CloneVT() 106 r.FormatSchemaParameters = m.FormatSchemaParameters.CloneVT() 107 if len(m.unknownFields) > 0 { 108 r.unknownFields = make([]byte, len(m.unknownFields)) 109 copy(r.unknownFields, m.unknownFields) 110 } 111 return r 112 } 113 114 func (m *Operation) CloneMessageVT() proto.Message { 115 return m.CloneVT() 116 } 117 118 func (m *OperationsResults) CloneVT() *OperationsResults { 119 if m == nil { 120 return (*OperationsResults)(nil) 121 } 122 r := new(OperationsResults) 123 if rhs := m.Results; rhs != nil { 124 tmpContainer := make(map[uint64]*OperationResult, len(rhs)) 125 for k, v := range rhs { 126 tmpContainer[k] = v.CloneVT() 127 } 128 r.Results = tmpContainer 129 } 130 if len(m.unknownFields) > 0 { 131 r.unknownFields = make([]byte, len(m.unknownFields)) 132 copy(r.unknownFields, m.unknownFields) 133 } 134 return r 135 } 136 137 func (m *OperationsResults) CloneMessageVT() proto.Message { 138 return m.CloneVT() 139 } 140 141 func (m *OperationResult) CloneVT() *OperationResult { 142 if m == nil { 143 return (*OperationResult)(nil) 144 } 145 r := new(OperationResult) 146 r.CheckResult = m.CheckResult.CloneVT() 147 r.AssertionsResult = m.AssertionsResult.CloneVT() 148 r.ValidationResult = m.ValidationResult.CloneVT() 149 r.FormatSchemaResult = m.FormatSchemaResult.CloneVT() 150 if len(m.unknownFields) > 0 { 151 r.unknownFields = make([]byte, len(m.unknownFields)) 152 copy(r.unknownFields, m.unknownFields) 153 } 154 return r 155 } 156 157 func (m *OperationResult) CloneMessageVT() proto.Message { 158 return m.CloneVT() 159 } 160 161 func (m *DeveloperWarning) CloneVT() *DeveloperWarning { 162 if m == nil { 163 return (*DeveloperWarning)(nil) 164 } 165 r := new(DeveloperWarning) 166 r.Message = m.Message 167 r.Line = m.Line 168 r.Column = m.Column 169 if len(m.unknownFields) > 0 { 170 r.unknownFields = make([]byte, len(m.unknownFields)) 171 copy(r.unknownFields, m.unknownFields) 172 } 173 return r 174 } 175 176 func (m *DeveloperWarning) CloneMessageVT() proto.Message { 177 return m.CloneVT() 178 } 179 180 func (m *DeveloperError) CloneVT() *DeveloperError { 181 if m == nil { 182 return (*DeveloperError)(nil) 183 } 184 r := new(DeveloperError) 185 r.Message = m.Message 186 r.Line = m.Line 187 r.Column = m.Column 188 r.Source = m.Source 189 r.Kind = m.Kind 190 r.Context = m.Context 191 if rhs := m.Path; rhs != nil { 192 tmpContainer := make([]string, len(rhs)) 193 copy(tmpContainer, rhs) 194 r.Path = tmpContainer 195 } 196 if rhs := m.CheckDebugInformation; rhs != nil { 197 if vtpb, ok := interface{}(rhs).(interface{ CloneVT() *v11.DebugInformation }); ok { 198 r.CheckDebugInformation = vtpb.CloneVT() 199 } else { 200 r.CheckDebugInformation = proto.Clone(rhs).(*v11.DebugInformation) 201 } 202 } 203 if rhs := m.CheckResolvedDebugInformation; rhs != nil { 204 if vtpb, ok := interface{}(rhs).(interface{ CloneVT() *v12.DebugInformation }); ok { 205 r.CheckResolvedDebugInformation = vtpb.CloneVT() 206 } else { 207 r.CheckResolvedDebugInformation = proto.Clone(rhs).(*v12.DebugInformation) 208 } 209 } 210 if len(m.unknownFields) > 0 { 211 r.unknownFields = make([]byte, len(m.unknownFields)) 212 copy(r.unknownFields, m.unknownFields) 213 } 214 return r 215 } 216 217 func (m *DeveloperError) CloneMessageVT() proto.Message { 218 return m.CloneVT() 219 } 220 221 func (m *DeveloperErrors) CloneVT() *DeveloperErrors { 222 if m == nil { 223 return (*DeveloperErrors)(nil) 224 } 225 r := new(DeveloperErrors) 226 if rhs := m.InputErrors; rhs != nil { 227 tmpContainer := make([]*DeveloperError, len(rhs)) 228 for k, v := range rhs { 229 tmpContainer[k] = v.CloneVT() 230 } 231 r.InputErrors = tmpContainer 232 } 233 if len(m.unknownFields) > 0 { 234 r.unknownFields = make([]byte, len(m.unknownFields)) 235 copy(r.unknownFields, m.unknownFields) 236 } 237 return r 238 } 239 240 func (m *DeveloperErrors) CloneMessageVT() proto.Message { 241 return m.CloneVT() 242 } 243 244 func (m *CheckOperationParameters) CloneVT() *CheckOperationParameters { 245 if m == nil { 246 return (*CheckOperationParameters)(nil) 247 } 248 r := new(CheckOperationParameters) 249 r.CaveatContext = (*structpb.Struct)((*structpb1.Struct)(m.CaveatContext).CloneVT()) 250 if rhs := m.Resource; rhs != nil { 251 if vtpb, ok := interface{}(rhs).(interface{ CloneVT() *v1.ObjectAndRelation }); ok { 252 r.Resource = vtpb.CloneVT() 253 } else { 254 r.Resource = proto.Clone(rhs).(*v1.ObjectAndRelation) 255 } 256 } 257 if rhs := m.Subject; rhs != nil { 258 if vtpb, ok := interface{}(rhs).(interface{ CloneVT() *v1.ObjectAndRelation }); ok { 259 r.Subject = vtpb.CloneVT() 260 } else { 261 r.Subject = proto.Clone(rhs).(*v1.ObjectAndRelation) 262 } 263 } 264 if len(m.unknownFields) > 0 { 265 r.unknownFields = make([]byte, len(m.unknownFields)) 266 copy(r.unknownFields, m.unknownFields) 267 } 268 return r 269 } 270 271 func (m *CheckOperationParameters) CloneMessageVT() proto.Message { 272 return m.CloneVT() 273 } 274 275 func (m *CheckOperationsResult) CloneVT() *CheckOperationsResult { 276 if m == nil { 277 return (*CheckOperationsResult)(nil) 278 } 279 r := new(CheckOperationsResult) 280 r.Membership = m.Membership 281 r.CheckError = m.CheckError.CloneVT() 282 r.PartialCaveatInfo = m.PartialCaveatInfo.CloneVT() 283 if rhs := m.DebugInformation; rhs != nil { 284 if vtpb, ok := interface{}(rhs).(interface{ CloneVT() *v11.DebugInformation }); ok { 285 r.DebugInformation = vtpb.CloneVT() 286 } else { 287 r.DebugInformation = proto.Clone(rhs).(*v11.DebugInformation) 288 } 289 } 290 if rhs := m.ResolvedDebugInformation; rhs != nil { 291 if vtpb, ok := interface{}(rhs).(interface{ CloneVT() *v12.DebugInformation }); ok { 292 r.ResolvedDebugInformation = vtpb.CloneVT() 293 } else { 294 r.ResolvedDebugInformation = proto.Clone(rhs).(*v12.DebugInformation) 295 } 296 } 297 if len(m.unknownFields) > 0 { 298 r.unknownFields = make([]byte, len(m.unknownFields)) 299 copy(r.unknownFields, m.unknownFields) 300 } 301 return r 302 } 303 304 func (m *CheckOperationsResult) CloneMessageVT() proto.Message { 305 return m.CloneVT() 306 } 307 308 func (m *PartialCaveatInfo) CloneVT() *PartialCaveatInfo { 309 if m == nil { 310 return (*PartialCaveatInfo)(nil) 311 } 312 r := new(PartialCaveatInfo) 313 if rhs := m.MissingRequiredContext; rhs != nil { 314 tmpContainer := make([]string, len(rhs)) 315 copy(tmpContainer, rhs) 316 r.MissingRequiredContext = tmpContainer 317 } 318 if len(m.unknownFields) > 0 { 319 r.unknownFields = make([]byte, len(m.unknownFields)) 320 copy(r.unknownFields, m.unknownFields) 321 } 322 return r 323 } 324 325 func (m *PartialCaveatInfo) CloneMessageVT() proto.Message { 326 return m.CloneVT() 327 } 328 329 func (m *RunAssertionsParameters) CloneVT() *RunAssertionsParameters { 330 if m == nil { 331 return (*RunAssertionsParameters)(nil) 332 } 333 r := new(RunAssertionsParameters) 334 r.AssertionsYaml = m.AssertionsYaml 335 if len(m.unknownFields) > 0 { 336 r.unknownFields = make([]byte, len(m.unknownFields)) 337 copy(r.unknownFields, m.unknownFields) 338 } 339 return r 340 } 341 342 func (m *RunAssertionsParameters) CloneMessageVT() proto.Message { 343 return m.CloneVT() 344 } 345 346 func (m *RunAssertionsResult) CloneVT() *RunAssertionsResult { 347 if m == nil { 348 return (*RunAssertionsResult)(nil) 349 } 350 r := new(RunAssertionsResult) 351 r.InputError = m.InputError.CloneVT() 352 if rhs := m.ValidationErrors; rhs != nil { 353 tmpContainer := make([]*DeveloperError, len(rhs)) 354 for k, v := range rhs { 355 tmpContainer[k] = v.CloneVT() 356 } 357 r.ValidationErrors = tmpContainer 358 } 359 if len(m.unknownFields) > 0 { 360 r.unknownFields = make([]byte, len(m.unknownFields)) 361 copy(r.unknownFields, m.unknownFields) 362 } 363 return r 364 } 365 366 func (m *RunAssertionsResult) CloneMessageVT() proto.Message { 367 return m.CloneVT() 368 } 369 370 func (m *RunValidationParameters) CloneVT() *RunValidationParameters { 371 if m == nil { 372 return (*RunValidationParameters)(nil) 373 } 374 r := new(RunValidationParameters) 375 r.ValidationYaml = m.ValidationYaml 376 if len(m.unknownFields) > 0 { 377 r.unknownFields = make([]byte, len(m.unknownFields)) 378 copy(r.unknownFields, m.unknownFields) 379 } 380 return r 381 } 382 383 func (m *RunValidationParameters) CloneMessageVT() proto.Message { 384 return m.CloneVT() 385 } 386 387 func (m *RunValidationResult) CloneVT() *RunValidationResult { 388 if m == nil { 389 return (*RunValidationResult)(nil) 390 } 391 r := new(RunValidationResult) 392 r.InputError = m.InputError.CloneVT() 393 r.UpdatedValidationYaml = m.UpdatedValidationYaml 394 if rhs := m.ValidationErrors; rhs != nil { 395 tmpContainer := make([]*DeveloperError, len(rhs)) 396 for k, v := range rhs { 397 tmpContainer[k] = v.CloneVT() 398 } 399 r.ValidationErrors = tmpContainer 400 } 401 if len(m.unknownFields) > 0 { 402 r.unknownFields = make([]byte, len(m.unknownFields)) 403 copy(r.unknownFields, m.unknownFields) 404 } 405 return r 406 } 407 408 func (m *RunValidationResult) CloneMessageVT() proto.Message { 409 return m.CloneVT() 410 } 411 412 func (m *FormatSchemaParameters) CloneVT() *FormatSchemaParameters { 413 if m == nil { 414 return (*FormatSchemaParameters)(nil) 415 } 416 r := new(FormatSchemaParameters) 417 if len(m.unknownFields) > 0 { 418 r.unknownFields = make([]byte, len(m.unknownFields)) 419 copy(r.unknownFields, m.unknownFields) 420 } 421 return r 422 } 423 424 func (m *FormatSchemaParameters) CloneMessageVT() proto.Message { 425 return m.CloneVT() 426 } 427 428 func (m *FormatSchemaResult) CloneVT() *FormatSchemaResult { 429 if m == nil { 430 return (*FormatSchemaResult)(nil) 431 } 432 r := new(FormatSchemaResult) 433 r.FormattedSchema = m.FormattedSchema 434 if len(m.unknownFields) > 0 { 435 r.unknownFields = make([]byte, len(m.unknownFields)) 436 copy(r.unknownFields, m.unknownFields) 437 } 438 return r 439 } 440 441 func (m *FormatSchemaResult) CloneMessageVT() proto.Message { 442 return m.CloneVT() 443 } 444 445 func (this *DeveloperRequest) EqualVT(that *DeveloperRequest) bool { 446 if this == that { 447 return true 448 } else if this == nil || that == nil { 449 return false 450 } 451 if !this.Context.EqualVT(that.Context) { 452 return false 453 } 454 if len(this.Operations) != len(that.Operations) { 455 return false 456 } 457 for i, vx := range this.Operations { 458 vy := that.Operations[i] 459 if p, q := vx, vy; p != q { 460 if p == nil { 461 p = &Operation{} 462 } 463 if q == nil { 464 q = &Operation{} 465 } 466 if !p.EqualVT(q) { 467 return false 468 } 469 } 470 } 471 return string(this.unknownFields) == string(that.unknownFields) 472 } 473 474 func (this *DeveloperRequest) EqualMessageVT(thatMsg proto.Message) bool { 475 that, ok := thatMsg.(*DeveloperRequest) 476 if !ok { 477 return false 478 } 479 return this.EqualVT(that) 480 } 481 func (this *DeveloperResponse) EqualVT(that *DeveloperResponse) bool { 482 if this == that { 483 return true 484 } else if this == nil || that == nil { 485 return false 486 } 487 if this.InternalError != that.InternalError { 488 return false 489 } 490 if !this.DeveloperErrors.EqualVT(that.DeveloperErrors) { 491 return false 492 } 493 if !this.OperationsResults.EqualVT(that.OperationsResults) { 494 return false 495 } 496 return string(this.unknownFields) == string(that.unknownFields) 497 } 498 499 func (this *DeveloperResponse) EqualMessageVT(thatMsg proto.Message) bool { 500 that, ok := thatMsg.(*DeveloperResponse) 501 if !ok { 502 return false 503 } 504 return this.EqualVT(that) 505 } 506 func (this *RequestContext) EqualVT(that *RequestContext) bool { 507 if this == that { 508 return true 509 } else if this == nil || that == nil { 510 return false 511 } 512 if this.Schema != that.Schema { 513 return false 514 } 515 if len(this.Relationships) != len(that.Relationships) { 516 return false 517 } 518 for i, vx := range this.Relationships { 519 vy := that.Relationships[i] 520 if p, q := vx, vy; p != q { 521 if p == nil { 522 p = &v1.RelationTuple{} 523 } 524 if q == nil { 525 q = &v1.RelationTuple{} 526 } 527 if equal, ok := interface{}(p).(interface{ EqualVT(*v1.RelationTuple) bool }); ok { 528 if !equal.EqualVT(q) { 529 return false 530 } 531 } else if !proto.Equal(p, q) { 532 return false 533 } 534 } 535 } 536 return string(this.unknownFields) == string(that.unknownFields) 537 } 538 539 func (this *RequestContext) EqualMessageVT(thatMsg proto.Message) bool { 540 that, ok := thatMsg.(*RequestContext) 541 if !ok { 542 return false 543 } 544 return this.EqualVT(that) 545 } 546 func (this *Operation) EqualVT(that *Operation) bool { 547 if this == that { 548 return true 549 } else if this == nil || that == nil { 550 return false 551 } 552 if !this.CheckParameters.EqualVT(that.CheckParameters) { 553 return false 554 } 555 if !this.AssertionsParameters.EqualVT(that.AssertionsParameters) { 556 return false 557 } 558 if !this.ValidationParameters.EqualVT(that.ValidationParameters) { 559 return false 560 } 561 if !this.FormatSchemaParameters.EqualVT(that.FormatSchemaParameters) { 562 return false 563 } 564 return string(this.unknownFields) == string(that.unknownFields) 565 } 566 567 func (this *Operation) EqualMessageVT(thatMsg proto.Message) bool { 568 that, ok := thatMsg.(*Operation) 569 if !ok { 570 return false 571 } 572 return this.EqualVT(that) 573 } 574 func (this *OperationsResults) EqualVT(that *OperationsResults) bool { 575 if this == that { 576 return true 577 } else if this == nil || that == nil { 578 return false 579 } 580 if len(this.Results) != len(that.Results) { 581 return false 582 } 583 for i, vx := range this.Results { 584 vy, ok := that.Results[i] 585 if !ok { 586 return false 587 } 588 if p, q := vx, vy; p != q { 589 if p == nil { 590 p = &OperationResult{} 591 } 592 if q == nil { 593 q = &OperationResult{} 594 } 595 if !p.EqualVT(q) { 596 return false 597 } 598 } 599 } 600 return string(this.unknownFields) == string(that.unknownFields) 601 } 602 603 func (this *OperationsResults) EqualMessageVT(thatMsg proto.Message) bool { 604 that, ok := thatMsg.(*OperationsResults) 605 if !ok { 606 return false 607 } 608 return this.EqualVT(that) 609 } 610 func (this *OperationResult) EqualVT(that *OperationResult) bool { 611 if this == that { 612 return true 613 } else if this == nil || that == nil { 614 return false 615 } 616 if !this.CheckResult.EqualVT(that.CheckResult) { 617 return false 618 } 619 if !this.AssertionsResult.EqualVT(that.AssertionsResult) { 620 return false 621 } 622 if !this.ValidationResult.EqualVT(that.ValidationResult) { 623 return false 624 } 625 if !this.FormatSchemaResult.EqualVT(that.FormatSchemaResult) { 626 return false 627 } 628 return string(this.unknownFields) == string(that.unknownFields) 629 } 630 631 func (this *OperationResult) EqualMessageVT(thatMsg proto.Message) bool { 632 that, ok := thatMsg.(*OperationResult) 633 if !ok { 634 return false 635 } 636 return this.EqualVT(that) 637 } 638 func (this *DeveloperWarning) EqualVT(that *DeveloperWarning) bool { 639 if this == that { 640 return true 641 } else if this == nil || that == nil { 642 return false 643 } 644 if this.Message != that.Message { 645 return false 646 } 647 if this.Line != that.Line { 648 return false 649 } 650 if this.Column != that.Column { 651 return false 652 } 653 return string(this.unknownFields) == string(that.unknownFields) 654 } 655 656 func (this *DeveloperWarning) EqualMessageVT(thatMsg proto.Message) bool { 657 that, ok := thatMsg.(*DeveloperWarning) 658 if !ok { 659 return false 660 } 661 return this.EqualVT(that) 662 } 663 func (this *DeveloperError) EqualVT(that *DeveloperError) bool { 664 if this == that { 665 return true 666 } else if this == nil || that == nil { 667 return false 668 } 669 if this.Message != that.Message { 670 return false 671 } 672 if this.Line != that.Line { 673 return false 674 } 675 if this.Column != that.Column { 676 return false 677 } 678 if this.Source != that.Source { 679 return false 680 } 681 if this.Kind != that.Kind { 682 return false 683 } 684 if len(this.Path) != len(that.Path) { 685 return false 686 } 687 for i, vx := range this.Path { 688 vy := that.Path[i] 689 if vx != vy { 690 return false 691 } 692 } 693 if this.Context != that.Context { 694 return false 695 } 696 if equal, ok := interface{}(this.CheckDebugInformation).(interface { 697 EqualVT(*v11.DebugInformation) bool 698 }); ok { 699 if !equal.EqualVT(that.CheckDebugInformation) { 700 return false 701 } 702 } else if !proto.Equal(this.CheckDebugInformation, that.CheckDebugInformation) { 703 return false 704 } 705 if equal, ok := interface{}(this.CheckResolvedDebugInformation).(interface { 706 EqualVT(*v12.DebugInformation) bool 707 }); ok { 708 if !equal.EqualVT(that.CheckResolvedDebugInformation) { 709 return false 710 } 711 } else if !proto.Equal(this.CheckResolvedDebugInformation, that.CheckResolvedDebugInformation) { 712 return false 713 } 714 return string(this.unknownFields) == string(that.unknownFields) 715 } 716 717 func (this *DeveloperError) EqualMessageVT(thatMsg proto.Message) bool { 718 that, ok := thatMsg.(*DeveloperError) 719 if !ok { 720 return false 721 } 722 return this.EqualVT(that) 723 } 724 func (this *DeveloperErrors) EqualVT(that *DeveloperErrors) bool { 725 if this == that { 726 return true 727 } else if this == nil || that == nil { 728 return false 729 } 730 if len(this.InputErrors) != len(that.InputErrors) { 731 return false 732 } 733 for i, vx := range this.InputErrors { 734 vy := that.InputErrors[i] 735 if p, q := vx, vy; p != q { 736 if p == nil { 737 p = &DeveloperError{} 738 } 739 if q == nil { 740 q = &DeveloperError{} 741 } 742 if !p.EqualVT(q) { 743 return false 744 } 745 } 746 } 747 return string(this.unknownFields) == string(that.unknownFields) 748 } 749 750 func (this *DeveloperErrors) EqualMessageVT(thatMsg proto.Message) bool { 751 that, ok := thatMsg.(*DeveloperErrors) 752 if !ok { 753 return false 754 } 755 return this.EqualVT(that) 756 } 757 func (this *CheckOperationParameters) EqualVT(that *CheckOperationParameters) bool { 758 if this == that { 759 return true 760 } else if this == nil || that == nil { 761 return false 762 } 763 if equal, ok := interface{}(this.Resource).(interface { 764 EqualVT(*v1.ObjectAndRelation) bool 765 }); ok { 766 if !equal.EqualVT(that.Resource) { 767 return false 768 } 769 } else if !proto.Equal(this.Resource, that.Resource) { 770 return false 771 } 772 if equal, ok := interface{}(this.Subject).(interface { 773 EqualVT(*v1.ObjectAndRelation) bool 774 }); ok { 775 if !equal.EqualVT(that.Subject) { 776 return false 777 } 778 } else if !proto.Equal(this.Subject, that.Subject) { 779 return false 780 } 781 if !(*structpb1.Struct)(this.CaveatContext).EqualVT((*structpb1.Struct)(that.CaveatContext)) { 782 return false 783 } 784 return string(this.unknownFields) == string(that.unknownFields) 785 } 786 787 func (this *CheckOperationParameters) EqualMessageVT(thatMsg proto.Message) bool { 788 that, ok := thatMsg.(*CheckOperationParameters) 789 if !ok { 790 return false 791 } 792 return this.EqualVT(that) 793 } 794 func (this *CheckOperationsResult) EqualVT(that *CheckOperationsResult) bool { 795 if this == that { 796 return true 797 } else if this == nil || that == nil { 798 return false 799 } 800 if this.Membership != that.Membership { 801 return false 802 } 803 if !this.CheckError.EqualVT(that.CheckError) { 804 return false 805 } 806 if equal, ok := interface{}(this.DebugInformation).(interface { 807 EqualVT(*v11.DebugInformation) bool 808 }); ok { 809 if !equal.EqualVT(that.DebugInformation) { 810 return false 811 } 812 } else if !proto.Equal(this.DebugInformation, that.DebugInformation) { 813 return false 814 } 815 if !this.PartialCaveatInfo.EqualVT(that.PartialCaveatInfo) { 816 return false 817 } 818 if equal, ok := interface{}(this.ResolvedDebugInformation).(interface { 819 EqualVT(*v12.DebugInformation) bool 820 }); ok { 821 if !equal.EqualVT(that.ResolvedDebugInformation) { 822 return false 823 } 824 } else if !proto.Equal(this.ResolvedDebugInformation, that.ResolvedDebugInformation) { 825 return false 826 } 827 return string(this.unknownFields) == string(that.unknownFields) 828 } 829 830 func (this *CheckOperationsResult) EqualMessageVT(thatMsg proto.Message) bool { 831 that, ok := thatMsg.(*CheckOperationsResult) 832 if !ok { 833 return false 834 } 835 return this.EqualVT(that) 836 } 837 func (this *PartialCaveatInfo) EqualVT(that *PartialCaveatInfo) bool { 838 if this == that { 839 return true 840 } else if this == nil || that == nil { 841 return false 842 } 843 if len(this.MissingRequiredContext) != len(that.MissingRequiredContext) { 844 return false 845 } 846 for i, vx := range this.MissingRequiredContext { 847 vy := that.MissingRequiredContext[i] 848 if vx != vy { 849 return false 850 } 851 } 852 return string(this.unknownFields) == string(that.unknownFields) 853 } 854 855 func (this *PartialCaveatInfo) EqualMessageVT(thatMsg proto.Message) bool { 856 that, ok := thatMsg.(*PartialCaveatInfo) 857 if !ok { 858 return false 859 } 860 return this.EqualVT(that) 861 } 862 func (this *RunAssertionsParameters) EqualVT(that *RunAssertionsParameters) bool { 863 if this == that { 864 return true 865 } else if this == nil || that == nil { 866 return false 867 } 868 if this.AssertionsYaml != that.AssertionsYaml { 869 return false 870 } 871 return string(this.unknownFields) == string(that.unknownFields) 872 } 873 874 func (this *RunAssertionsParameters) EqualMessageVT(thatMsg proto.Message) bool { 875 that, ok := thatMsg.(*RunAssertionsParameters) 876 if !ok { 877 return false 878 } 879 return this.EqualVT(that) 880 } 881 func (this *RunAssertionsResult) EqualVT(that *RunAssertionsResult) bool { 882 if this == that { 883 return true 884 } else if this == nil || that == nil { 885 return false 886 } 887 if !this.InputError.EqualVT(that.InputError) { 888 return false 889 } 890 if len(this.ValidationErrors) != len(that.ValidationErrors) { 891 return false 892 } 893 for i, vx := range this.ValidationErrors { 894 vy := that.ValidationErrors[i] 895 if p, q := vx, vy; p != q { 896 if p == nil { 897 p = &DeveloperError{} 898 } 899 if q == nil { 900 q = &DeveloperError{} 901 } 902 if !p.EqualVT(q) { 903 return false 904 } 905 } 906 } 907 return string(this.unknownFields) == string(that.unknownFields) 908 } 909 910 func (this *RunAssertionsResult) EqualMessageVT(thatMsg proto.Message) bool { 911 that, ok := thatMsg.(*RunAssertionsResult) 912 if !ok { 913 return false 914 } 915 return this.EqualVT(that) 916 } 917 func (this *RunValidationParameters) EqualVT(that *RunValidationParameters) bool { 918 if this == that { 919 return true 920 } else if this == nil || that == nil { 921 return false 922 } 923 if this.ValidationYaml != that.ValidationYaml { 924 return false 925 } 926 return string(this.unknownFields) == string(that.unknownFields) 927 } 928 929 func (this *RunValidationParameters) EqualMessageVT(thatMsg proto.Message) bool { 930 that, ok := thatMsg.(*RunValidationParameters) 931 if !ok { 932 return false 933 } 934 return this.EqualVT(that) 935 } 936 func (this *RunValidationResult) EqualVT(that *RunValidationResult) bool { 937 if this == that { 938 return true 939 } else if this == nil || that == nil { 940 return false 941 } 942 if !this.InputError.EqualVT(that.InputError) { 943 return false 944 } 945 if this.UpdatedValidationYaml != that.UpdatedValidationYaml { 946 return false 947 } 948 if len(this.ValidationErrors) != len(that.ValidationErrors) { 949 return false 950 } 951 for i, vx := range this.ValidationErrors { 952 vy := that.ValidationErrors[i] 953 if p, q := vx, vy; p != q { 954 if p == nil { 955 p = &DeveloperError{} 956 } 957 if q == nil { 958 q = &DeveloperError{} 959 } 960 if !p.EqualVT(q) { 961 return false 962 } 963 } 964 } 965 return string(this.unknownFields) == string(that.unknownFields) 966 } 967 968 func (this *RunValidationResult) EqualMessageVT(thatMsg proto.Message) bool { 969 that, ok := thatMsg.(*RunValidationResult) 970 if !ok { 971 return false 972 } 973 return this.EqualVT(that) 974 } 975 func (this *FormatSchemaParameters) EqualVT(that *FormatSchemaParameters) bool { 976 if this == that { 977 return true 978 } else if this == nil || that == nil { 979 return false 980 } 981 return string(this.unknownFields) == string(that.unknownFields) 982 } 983 984 func (this *FormatSchemaParameters) EqualMessageVT(thatMsg proto.Message) bool { 985 that, ok := thatMsg.(*FormatSchemaParameters) 986 if !ok { 987 return false 988 } 989 return this.EqualVT(that) 990 } 991 func (this *FormatSchemaResult) EqualVT(that *FormatSchemaResult) bool { 992 if this == that { 993 return true 994 } else if this == nil || that == nil { 995 return false 996 } 997 if this.FormattedSchema != that.FormattedSchema { 998 return false 999 } 1000 return string(this.unknownFields) == string(that.unknownFields) 1001 } 1002 1003 func (this *FormatSchemaResult) EqualMessageVT(thatMsg proto.Message) bool { 1004 that, ok := thatMsg.(*FormatSchemaResult) 1005 if !ok { 1006 return false 1007 } 1008 return this.EqualVT(that) 1009 } 1010 func (m *DeveloperRequest) MarshalVT() (dAtA []byte, err error) { 1011 if m == nil { 1012 return nil, nil 1013 } 1014 size := m.SizeVT() 1015 dAtA = make([]byte, size) 1016 n, err := m.MarshalToSizedBufferVT(dAtA[:size]) 1017 if err != nil { 1018 return nil, err 1019 } 1020 return dAtA[:n], nil 1021 } 1022 1023 func (m *DeveloperRequest) MarshalToVT(dAtA []byte) (int, error) { 1024 size := m.SizeVT() 1025 return m.MarshalToSizedBufferVT(dAtA[:size]) 1026 } 1027 1028 func (m *DeveloperRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { 1029 if m == nil { 1030 return 0, nil 1031 } 1032 i := len(dAtA) 1033 _ = i 1034 var l int 1035 _ = l 1036 if m.unknownFields != nil { 1037 i -= len(m.unknownFields) 1038 copy(dAtA[i:], m.unknownFields) 1039 } 1040 if len(m.Operations) > 0 { 1041 for iNdEx := len(m.Operations) - 1; iNdEx >= 0; iNdEx-- { 1042 size, err := m.Operations[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) 1043 if err != nil { 1044 return 0, err 1045 } 1046 i -= size 1047 i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) 1048 i-- 1049 dAtA[i] = 0x12 1050 } 1051 } 1052 if m.Context != nil { 1053 size, err := m.Context.MarshalToSizedBufferVT(dAtA[:i]) 1054 if err != nil { 1055 return 0, err 1056 } 1057 i -= size 1058 i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) 1059 i-- 1060 dAtA[i] = 0xa 1061 } 1062 return len(dAtA) - i, nil 1063 } 1064 1065 func (m *DeveloperResponse) MarshalVT() (dAtA []byte, err error) { 1066 if m == nil { 1067 return nil, nil 1068 } 1069 size := m.SizeVT() 1070 dAtA = make([]byte, size) 1071 n, err := m.MarshalToSizedBufferVT(dAtA[:size]) 1072 if err != nil { 1073 return nil, err 1074 } 1075 return dAtA[:n], nil 1076 } 1077 1078 func (m *DeveloperResponse) MarshalToVT(dAtA []byte) (int, error) { 1079 size := m.SizeVT() 1080 return m.MarshalToSizedBufferVT(dAtA[:size]) 1081 } 1082 1083 func (m *DeveloperResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { 1084 if m == nil { 1085 return 0, nil 1086 } 1087 i := len(dAtA) 1088 _ = i 1089 var l int 1090 _ = l 1091 if m.unknownFields != nil { 1092 i -= len(m.unknownFields) 1093 copy(dAtA[i:], m.unknownFields) 1094 } 1095 if m.OperationsResults != nil { 1096 size, err := m.OperationsResults.MarshalToSizedBufferVT(dAtA[:i]) 1097 if err != nil { 1098 return 0, err 1099 } 1100 i -= size 1101 i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) 1102 i-- 1103 dAtA[i] = 0x1a 1104 } 1105 if m.DeveloperErrors != nil { 1106 size, err := m.DeveloperErrors.MarshalToSizedBufferVT(dAtA[:i]) 1107 if err != nil { 1108 return 0, err 1109 } 1110 i -= size 1111 i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) 1112 i-- 1113 dAtA[i] = 0x12 1114 } 1115 if len(m.InternalError) > 0 { 1116 i -= len(m.InternalError) 1117 copy(dAtA[i:], m.InternalError) 1118 i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.InternalError))) 1119 i-- 1120 dAtA[i] = 0xa 1121 } 1122 return len(dAtA) - i, nil 1123 } 1124 1125 func (m *RequestContext) MarshalVT() (dAtA []byte, err error) { 1126 if m == nil { 1127 return nil, nil 1128 } 1129 size := m.SizeVT() 1130 dAtA = make([]byte, size) 1131 n, err := m.MarshalToSizedBufferVT(dAtA[:size]) 1132 if err != nil { 1133 return nil, err 1134 } 1135 return dAtA[:n], nil 1136 } 1137 1138 func (m *RequestContext) MarshalToVT(dAtA []byte) (int, error) { 1139 size := m.SizeVT() 1140 return m.MarshalToSizedBufferVT(dAtA[:size]) 1141 } 1142 1143 func (m *RequestContext) MarshalToSizedBufferVT(dAtA []byte) (int, error) { 1144 if m == nil { 1145 return 0, nil 1146 } 1147 i := len(dAtA) 1148 _ = i 1149 var l int 1150 _ = l 1151 if m.unknownFields != nil { 1152 i -= len(m.unknownFields) 1153 copy(dAtA[i:], m.unknownFields) 1154 } 1155 if len(m.Relationships) > 0 { 1156 for iNdEx := len(m.Relationships) - 1; iNdEx >= 0; iNdEx-- { 1157 if vtmsg, ok := interface{}(m.Relationships[iNdEx]).(interface { 1158 MarshalToSizedBufferVT([]byte) (int, error) 1159 }); ok { 1160 size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) 1161 if err != nil { 1162 return 0, err 1163 } 1164 i -= size 1165 i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) 1166 } else { 1167 encoded, err := proto.Marshal(m.Relationships[iNdEx]) 1168 if err != nil { 1169 return 0, err 1170 } 1171 i -= len(encoded) 1172 copy(dAtA[i:], encoded) 1173 i = protohelpers.EncodeVarint(dAtA, i, uint64(len(encoded))) 1174 } 1175 i-- 1176 dAtA[i] = 0x12 1177 } 1178 } 1179 if len(m.Schema) > 0 { 1180 i -= len(m.Schema) 1181 copy(dAtA[i:], m.Schema) 1182 i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Schema))) 1183 i-- 1184 dAtA[i] = 0xa 1185 } 1186 return len(dAtA) - i, nil 1187 } 1188 1189 func (m *Operation) MarshalVT() (dAtA []byte, err error) { 1190 if m == nil { 1191 return nil, nil 1192 } 1193 size := m.SizeVT() 1194 dAtA = make([]byte, size) 1195 n, err := m.MarshalToSizedBufferVT(dAtA[:size]) 1196 if err != nil { 1197 return nil, err 1198 } 1199 return dAtA[:n], nil 1200 } 1201 1202 func (m *Operation) MarshalToVT(dAtA []byte) (int, error) { 1203 size := m.SizeVT() 1204 return m.MarshalToSizedBufferVT(dAtA[:size]) 1205 } 1206 1207 func (m *Operation) MarshalToSizedBufferVT(dAtA []byte) (int, error) { 1208 if m == nil { 1209 return 0, nil 1210 } 1211 i := len(dAtA) 1212 _ = i 1213 var l int 1214 _ = l 1215 if m.unknownFields != nil { 1216 i -= len(m.unknownFields) 1217 copy(dAtA[i:], m.unknownFields) 1218 } 1219 if m.FormatSchemaParameters != nil { 1220 size, err := m.FormatSchemaParameters.MarshalToSizedBufferVT(dAtA[:i]) 1221 if err != nil { 1222 return 0, err 1223 } 1224 i -= size 1225 i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) 1226 i-- 1227 dAtA[i] = 0x22 1228 } 1229 if m.ValidationParameters != nil { 1230 size, err := m.ValidationParameters.MarshalToSizedBufferVT(dAtA[:i]) 1231 if err != nil { 1232 return 0, err 1233 } 1234 i -= size 1235 i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) 1236 i-- 1237 dAtA[i] = 0x1a 1238 } 1239 if m.AssertionsParameters != nil { 1240 size, err := m.AssertionsParameters.MarshalToSizedBufferVT(dAtA[:i]) 1241 if err != nil { 1242 return 0, err 1243 } 1244 i -= size 1245 i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) 1246 i-- 1247 dAtA[i] = 0x12 1248 } 1249 if m.CheckParameters != nil { 1250 size, err := m.CheckParameters.MarshalToSizedBufferVT(dAtA[:i]) 1251 if err != nil { 1252 return 0, err 1253 } 1254 i -= size 1255 i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) 1256 i-- 1257 dAtA[i] = 0xa 1258 } 1259 return len(dAtA) - i, nil 1260 } 1261 1262 func (m *OperationsResults) MarshalVT() (dAtA []byte, err error) { 1263 if m == nil { 1264 return nil, nil 1265 } 1266 size := m.SizeVT() 1267 dAtA = make([]byte, size) 1268 n, err := m.MarshalToSizedBufferVT(dAtA[:size]) 1269 if err != nil { 1270 return nil, err 1271 } 1272 return dAtA[:n], nil 1273 } 1274 1275 func (m *OperationsResults) MarshalToVT(dAtA []byte) (int, error) { 1276 size := m.SizeVT() 1277 return m.MarshalToSizedBufferVT(dAtA[:size]) 1278 } 1279 1280 func (m *OperationsResults) MarshalToSizedBufferVT(dAtA []byte) (int, error) { 1281 if m == nil { 1282 return 0, nil 1283 } 1284 i := len(dAtA) 1285 _ = i 1286 var l int 1287 _ = l 1288 if m.unknownFields != nil { 1289 i -= len(m.unknownFields) 1290 copy(dAtA[i:], m.unknownFields) 1291 } 1292 if len(m.Results) > 0 { 1293 for k := range m.Results { 1294 v := m.Results[k] 1295 baseI := i 1296 size, err := v.MarshalToSizedBufferVT(dAtA[:i]) 1297 if err != nil { 1298 return 0, err 1299 } 1300 i -= size 1301 i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) 1302 i-- 1303 dAtA[i] = 0x12 1304 i = protohelpers.EncodeVarint(dAtA, i, uint64(k)) 1305 i-- 1306 dAtA[i] = 0x8 1307 i = protohelpers.EncodeVarint(dAtA, i, uint64(baseI-i)) 1308 i-- 1309 dAtA[i] = 0xa 1310 } 1311 } 1312 return len(dAtA) - i, nil 1313 } 1314 1315 func (m *OperationResult) MarshalVT() (dAtA []byte, err error) { 1316 if m == nil { 1317 return nil, nil 1318 } 1319 size := m.SizeVT() 1320 dAtA = make([]byte, size) 1321 n, err := m.MarshalToSizedBufferVT(dAtA[:size]) 1322 if err != nil { 1323 return nil, err 1324 } 1325 return dAtA[:n], nil 1326 } 1327 1328 func (m *OperationResult) MarshalToVT(dAtA []byte) (int, error) { 1329 size := m.SizeVT() 1330 return m.MarshalToSizedBufferVT(dAtA[:size]) 1331 } 1332 1333 func (m *OperationResult) MarshalToSizedBufferVT(dAtA []byte) (int, error) { 1334 if m == nil { 1335 return 0, nil 1336 } 1337 i := len(dAtA) 1338 _ = i 1339 var l int 1340 _ = l 1341 if m.unknownFields != nil { 1342 i -= len(m.unknownFields) 1343 copy(dAtA[i:], m.unknownFields) 1344 } 1345 if m.FormatSchemaResult != nil { 1346 size, err := m.FormatSchemaResult.MarshalToSizedBufferVT(dAtA[:i]) 1347 if err != nil { 1348 return 0, err 1349 } 1350 i -= size 1351 i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) 1352 i-- 1353 dAtA[i] = 0x22 1354 } 1355 if m.ValidationResult != nil { 1356 size, err := m.ValidationResult.MarshalToSizedBufferVT(dAtA[:i]) 1357 if err != nil { 1358 return 0, err 1359 } 1360 i -= size 1361 i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) 1362 i-- 1363 dAtA[i] = 0x1a 1364 } 1365 if m.AssertionsResult != nil { 1366 size, err := m.AssertionsResult.MarshalToSizedBufferVT(dAtA[:i]) 1367 if err != nil { 1368 return 0, err 1369 } 1370 i -= size 1371 i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) 1372 i-- 1373 dAtA[i] = 0x12 1374 } 1375 if m.CheckResult != nil { 1376 size, err := m.CheckResult.MarshalToSizedBufferVT(dAtA[:i]) 1377 if err != nil { 1378 return 0, err 1379 } 1380 i -= size 1381 i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) 1382 i-- 1383 dAtA[i] = 0xa 1384 } 1385 return len(dAtA) - i, nil 1386 } 1387 1388 func (m *DeveloperWarning) MarshalVT() (dAtA []byte, err error) { 1389 if m == nil { 1390 return nil, nil 1391 } 1392 size := m.SizeVT() 1393 dAtA = make([]byte, size) 1394 n, err := m.MarshalToSizedBufferVT(dAtA[:size]) 1395 if err != nil { 1396 return nil, err 1397 } 1398 return dAtA[:n], nil 1399 } 1400 1401 func (m *DeveloperWarning) MarshalToVT(dAtA []byte) (int, error) { 1402 size := m.SizeVT() 1403 return m.MarshalToSizedBufferVT(dAtA[:size]) 1404 } 1405 1406 func (m *DeveloperWarning) MarshalToSizedBufferVT(dAtA []byte) (int, error) { 1407 if m == nil { 1408 return 0, nil 1409 } 1410 i := len(dAtA) 1411 _ = i 1412 var l int 1413 _ = l 1414 if m.unknownFields != nil { 1415 i -= len(m.unknownFields) 1416 copy(dAtA[i:], m.unknownFields) 1417 } 1418 if m.Column != 0 { 1419 i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Column)) 1420 i-- 1421 dAtA[i] = 0x18 1422 } 1423 if m.Line != 0 { 1424 i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Line)) 1425 i-- 1426 dAtA[i] = 0x10 1427 } 1428 if len(m.Message) > 0 { 1429 i -= len(m.Message) 1430 copy(dAtA[i:], m.Message) 1431 i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Message))) 1432 i-- 1433 dAtA[i] = 0xa 1434 } 1435 return len(dAtA) - i, nil 1436 } 1437 1438 func (m *DeveloperError) MarshalVT() (dAtA []byte, err error) { 1439 if m == nil { 1440 return nil, nil 1441 } 1442 size := m.SizeVT() 1443 dAtA = make([]byte, size) 1444 n, err := m.MarshalToSizedBufferVT(dAtA[:size]) 1445 if err != nil { 1446 return nil, err 1447 } 1448 return dAtA[:n], nil 1449 } 1450 1451 func (m *DeveloperError) MarshalToVT(dAtA []byte) (int, error) { 1452 size := m.SizeVT() 1453 return m.MarshalToSizedBufferVT(dAtA[:size]) 1454 } 1455 1456 func (m *DeveloperError) MarshalToSizedBufferVT(dAtA []byte) (int, error) { 1457 if m == nil { 1458 return 0, nil 1459 } 1460 i := len(dAtA) 1461 _ = i 1462 var l int 1463 _ = l 1464 if m.unknownFields != nil { 1465 i -= len(m.unknownFields) 1466 copy(dAtA[i:], m.unknownFields) 1467 } 1468 if m.CheckResolvedDebugInformation != nil { 1469 if vtmsg, ok := interface{}(m.CheckResolvedDebugInformation).(interface { 1470 MarshalToSizedBufferVT([]byte) (int, error) 1471 }); ok { 1472 size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) 1473 if err != nil { 1474 return 0, err 1475 } 1476 i -= size 1477 i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) 1478 } else { 1479 encoded, err := proto.Marshal(m.CheckResolvedDebugInformation) 1480 if err != nil { 1481 return 0, err 1482 } 1483 i -= len(encoded) 1484 copy(dAtA[i:], encoded) 1485 i = protohelpers.EncodeVarint(dAtA, i, uint64(len(encoded))) 1486 } 1487 i-- 1488 dAtA[i] = 0x4a 1489 } 1490 if m.CheckDebugInformation != nil { 1491 if vtmsg, ok := interface{}(m.CheckDebugInformation).(interface { 1492 MarshalToSizedBufferVT([]byte) (int, error) 1493 }); ok { 1494 size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) 1495 if err != nil { 1496 return 0, err 1497 } 1498 i -= size 1499 i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) 1500 } else { 1501 encoded, err := proto.Marshal(m.CheckDebugInformation) 1502 if err != nil { 1503 return 0, err 1504 } 1505 i -= len(encoded) 1506 copy(dAtA[i:], encoded) 1507 i = protohelpers.EncodeVarint(dAtA, i, uint64(len(encoded))) 1508 } 1509 i-- 1510 dAtA[i] = 0x42 1511 } 1512 if len(m.Context) > 0 { 1513 i -= len(m.Context) 1514 copy(dAtA[i:], m.Context) 1515 i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Context))) 1516 i-- 1517 dAtA[i] = 0x3a 1518 } 1519 if len(m.Path) > 0 { 1520 for iNdEx := len(m.Path) - 1; iNdEx >= 0; iNdEx-- { 1521 i -= len(m.Path[iNdEx]) 1522 copy(dAtA[i:], m.Path[iNdEx]) 1523 i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Path[iNdEx]))) 1524 i-- 1525 dAtA[i] = 0x32 1526 } 1527 } 1528 if m.Kind != 0 { 1529 i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Kind)) 1530 i-- 1531 dAtA[i] = 0x28 1532 } 1533 if m.Source != 0 { 1534 i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Source)) 1535 i-- 1536 dAtA[i] = 0x20 1537 } 1538 if m.Column != 0 { 1539 i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Column)) 1540 i-- 1541 dAtA[i] = 0x18 1542 } 1543 if m.Line != 0 { 1544 i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Line)) 1545 i-- 1546 dAtA[i] = 0x10 1547 } 1548 if len(m.Message) > 0 { 1549 i -= len(m.Message) 1550 copy(dAtA[i:], m.Message) 1551 i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Message))) 1552 i-- 1553 dAtA[i] = 0xa 1554 } 1555 return len(dAtA) - i, nil 1556 } 1557 1558 func (m *DeveloperErrors) MarshalVT() (dAtA []byte, err error) { 1559 if m == nil { 1560 return nil, nil 1561 } 1562 size := m.SizeVT() 1563 dAtA = make([]byte, size) 1564 n, err := m.MarshalToSizedBufferVT(dAtA[:size]) 1565 if err != nil { 1566 return nil, err 1567 } 1568 return dAtA[:n], nil 1569 } 1570 1571 func (m *DeveloperErrors) MarshalToVT(dAtA []byte) (int, error) { 1572 size := m.SizeVT() 1573 return m.MarshalToSizedBufferVT(dAtA[:size]) 1574 } 1575 1576 func (m *DeveloperErrors) MarshalToSizedBufferVT(dAtA []byte) (int, error) { 1577 if m == nil { 1578 return 0, nil 1579 } 1580 i := len(dAtA) 1581 _ = i 1582 var l int 1583 _ = l 1584 if m.unknownFields != nil { 1585 i -= len(m.unknownFields) 1586 copy(dAtA[i:], m.unknownFields) 1587 } 1588 if len(m.InputErrors) > 0 { 1589 for iNdEx := len(m.InputErrors) - 1; iNdEx >= 0; iNdEx-- { 1590 size, err := m.InputErrors[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) 1591 if err != nil { 1592 return 0, err 1593 } 1594 i -= size 1595 i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) 1596 i-- 1597 dAtA[i] = 0xa 1598 } 1599 } 1600 return len(dAtA) - i, nil 1601 } 1602 1603 func (m *CheckOperationParameters) MarshalVT() (dAtA []byte, err error) { 1604 if m == nil { 1605 return nil, nil 1606 } 1607 size := m.SizeVT() 1608 dAtA = make([]byte, size) 1609 n, err := m.MarshalToSizedBufferVT(dAtA[:size]) 1610 if err != nil { 1611 return nil, err 1612 } 1613 return dAtA[:n], nil 1614 } 1615 1616 func (m *CheckOperationParameters) MarshalToVT(dAtA []byte) (int, error) { 1617 size := m.SizeVT() 1618 return m.MarshalToSizedBufferVT(dAtA[:size]) 1619 } 1620 1621 func (m *CheckOperationParameters) MarshalToSizedBufferVT(dAtA []byte) (int, error) { 1622 if m == nil { 1623 return 0, nil 1624 } 1625 i := len(dAtA) 1626 _ = i 1627 var l int 1628 _ = l 1629 if m.unknownFields != nil { 1630 i -= len(m.unknownFields) 1631 copy(dAtA[i:], m.unknownFields) 1632 } 1633 if m.CaveatContext != nil { 1634 size, err := (*structpb1.Struct)(m.CaveatContext).MarshalToSizedBufferVT(dAtA[:i]) 1635 if err != nil { 1636 return 0, err 1637 } 1638 i -= size 1639 i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) 1640 i-- 1641 dAtA[i] = 0x1a 1642 } 1643 if m.Subject != nil { 1644 if vtmsg, ok := interface{}(m.Subject).(interface { 1645 MarshalToSizedBufferVT([]byte) (int, error) 1646 }); ok { 1647 size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) 1648 if err != nil { 1649 return 0, err 1650 } 1651 i -= size 1652 i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) 1653 } else { 1654 encoded, err := proto.Marshal(m.Subject) 1655 if err != nil { 1656 return 0, err 1657 } 1658 i -= len(encoded) 1659 copy(dAtA[i:], encoded) 1660 i = protohelpers.EncodeVarint(dAtA, i, uint64(len(encoded))) 1661 } 1662 i-- 1663 dAtA[i] = 0x12 1664 } 1665 if m.Resource != nil { 1666 if vtmsg, ok := interface{}(m.Resource).(interface { 1667 MarshalToSizedBufferVT([]byte) (int, error) 1668 }); ok { 1669 size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) 1670 if err != nil { 1671 return 0, err 1672 } 1673 i -= size 1674 i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) 1675 } else { 1676 encoded, err := proto.Marshal(m.Resource) 1677 if err != nil { 1678 return 0, err 1679 } 1680 i -= len(encoded) 1681 copy(dAtA[i:], encoded) 1682 i = protohelpers.EncodeVarint(dAtA, i, uint64(len(encoded))) 1683 } 1684 i-- 1685 dAtA[i] = 0xa 1686 } 1687 return len(dAtA) - i, nil 1688 } 1689 1690 func (m *CheckOperationsResult) MarshalVT() (dAtA []byte, err error) { 1691 if m == nil { 1692 return nil, nil 1693 } 1694 size := m.SizeVT() 1695 dAtA = make([]byte, size) 1696 n, err := m.MarshalToSizedBufferVT(dAtA[:size]) 1697 if err != nil { 1698 return nil, err 1699 } 1700 return dAtA[:n], nil 1701 } 1702 1703 func (m *CheckOperationsResult) MarshalToVT(dAtA []byte) (int, error) { 1704 size := m.SizeVT() 1705 return m.MarshalToSizedBufferVT(dAtA[:size]) 1706 } 1707 1708 func (m *CheckOperationsResult) MarshalToSizedBufferVT(dAtA []byte) (int, error) { 1709 if m == nil { 1710 return 0, nil 1711 } 1712 i := len(dAtA) 1713 _ = i 1714 var l int 1715 _ = l 1716 if m.unknownFields != nil { 1717 i -= len(m.unknownFields) 1718 copy(dAtA[i:], m.unknownFields) 1719 } 1720 if m.ResolvedDebugInformation != nil { 1721 if vtmsg, ok := interface{}(m.ResolvedDebugInformation).(interface { 1722 MarshalToSizedBufferVT([]byte) (int, error) 1723 }); ok { 1724 size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) 1725 if err != nil { 1726 return 0, err 1727 } 1728 i -= size 1729 i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) 1730 } else { 1731 encoded, err := proto.Marshal(m.ResolvedDebugInformation) 1732 if err != nil { 1733 return 0, err 1734 } 1735 i -= len(encoded) 1736 copy(dAtA[i:], encoded) 1737 i = protohelpers.EncodeVarint(dAtA, i, uint64(len(encoded))) 1738 } 1739 i-- 1740 dAtA[i] = 0x2a 1741 } 1742 if m.PartialCaveatInfo != nil { 1743 size, err := m.PartialCaveatInfo.MarshalToSizedBufferVT(dAtA[:i]) 1744 if err != nil { 1745 return 0, err 1746 } 1747 i -= size 1748 i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) 1749 i-- 1750 dAtA[i] = 0x22 1751 } 1752 if m.DebugInformation != nil { 1753 if vtmsg, ok := interface{}(m.DebugInformation).(interface { 1754 MarshalToSizedBufferVT([]byte) (int, error) 1755 }); ok { 1756 size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) 1757 if err != nil { 1758 return 0, err 1759 } 1760 i -= size 1761 i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) 1762 } else { 1763 encoded, err := proto.Marshal(m.DebugInformation) 1764 if err != nil { 1765 return 0, err 1766 } 1767 i -= len(encoded) 1768 copy(dAtA[i:], encoded) 1769 i = protohelpers.EncodeVarint(dAtA, i, uint64(len(encoded))) 1770 } 1771 i-- 1772 dAtA[i] = 0x1a 1773 } 1774 if m.CheckError != nil { 1775 size, err := m.CheckError.MarshalToSizedBufferVT(dAtA[:i]) 1776 if err != nil { 1777 return 0, err 1778 } 1779 i -= size 1780 i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) 1781 i-- 1782 dAtA[i] = 0x12 1783 } 1784 if m.Membership != 0 { 1785 i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Membership)) 1786 i-- 1787 dAtA[i] = 0x8 1788 } 1789 return len(dAtA) - i, nil 1790 } 1791 1792 func (m *PartialCaveatInfo) MarshalVT() (dAtA []byte, err error) { 1793 if m == nil { 1794 return nil, nil 1795 } 1796 size := m.SizeVT() 1797 dAtA = make([]byte, size) 1798 n, err := m.MarshalToSizedBufferVT(dAtA[:size]) 1799 if err != nil { 1800 return nil, err 1801 } 1802 return dAtA[:n], nil 1803 } 1804 1805 func (m *PartialCaveatInfo) MarshalToVT(dAtA []byte) (int, error) { 1806 size := m.SizeVT() 1807 return m.MarshalToSizedBufferVT(dAtA[:size]) 1808 } 1809 1810 func (m *PartialCaveatInfo) MarshalToSizedBufferVT(dAtA []byte) (int, error) { 1811 if m == nil { 1812 return 0, nil 1813 } 1814 i := len(dAtA) 1815 _ = i 1816 var l int 1817 _ = l 1818 if m.unknownFields != nil { 1819 i -= len(m.unknownFields) 1820 copy(dAtA[i:], m.unknownFields) 1821 } 1822 if len(m.MissingRequiredContext) > 0 { 1823 for iNdEx := len(m.MissingRequiredContext) - 1; iNdEx >= 0; iNdEx-- { 1824 i -= len(m.MissingRequiredContext[iNdEx]) 1825 copy(dAtA[i:], m.MissingRequiredContext[iNdEx]) 1826 i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.MissingRequiredContext[iNdEx]))) 1827 i-- 1828 dAtA[i] = 0xa 1829 } 1830 } 1831 return len(dAtA) - i, nil 1832 } 1833 1834 func (m *RunAssertionsParameters) MarshalVT() (dAtA []byte, err error) { 1835 if m == nil { 1836 return nil, nil 1837 } 1838 size := m.SizeVT() 1839 dAtA = make([]byte, size) 1840 n, err := m.MarshalToSizedBufferVT(dAtA[:size]) 1841 if err != nil { 1842 return nil, err 1843 } 1844 return dAtA[:n], nil 1845 } 1846 1847 func (m *RunAssertionsParameters) MarshalToVT(dAtA []byte) (int, error) { 1848 size := m.SizeVT() 1849 return m.MarshalToSizedBufferVT(dAtA[:size]) 1850 } 1851 1852 func (m *RunAssertionsParameters) MarshalToSizedBufferVT(dAtA []byte) (int, error) { 1853 if m == nil { 1854 return 0, nil 1855 } 1856 i := len(dAtA) 1857 _ = i 1858 var l int 1859 _ = l 1860 if m.unknownFields != nil { 1861 i -= len(m.unknownFields) 1862 copy(dAtA[i:], m.unknownFields) 1863 } 1864 if len(m.AssertionsYaml) > 0 { 1865 i -= len(m.AssertionsYaml) 1866 copy(dAtA[i:], m.AssertionsYaml) 1867 i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.AssertionsYaml))) 1868 i-- 1869 dAtA[i] = 0xa 1870 } 1871 return len(dAtA) - i, nil 1872 } 1873 1874 func (m *RunAssertionsResult) MarshalVT() (dAtA []byte, err error) { 1875 if m == nil { 1876 return nil, nil 1877 } 1878 size := m.SizeVT() 1879 dAtA = make([]byte, size) 1880 n, err := m.MarshalToSizedBufferVT(dAtA[:size]) 1881 if err != nil { 1882 return nil, err 1883 } 1884 return dAtA[:n], nil 1885 } 1886 1887 func (m *RunAssertionsResult) MarshalToVT(dAtA []byte) (int, error) { 1888 size := m.SizeVT() 1889 return m.MarshalToSizedBufferVT(dAtA[:size]) 1890 } 1891 1892 func (m *RunAssertionsResult) MarshalToSizedBufferVT(dAtA []byte) (int, error) { 1893 if m == nil { 1894 return 0, nil 1895 } 1896 i := len(dAtA) 1897 _ = i 1898 var l int 1899 _ = l 1900 if m.unknownFields != nil { 1901 i -= len(m.unknownFields) 1902 copy(dAtA[i:], m.unknownFields) 1903 } 1904 if len(m.ValidationErrors) > 0 { 1905 for iNdEx := len(m.ValidationErrors) - 1; iNdEx >= 0; iNdEx-- { 1906 size, err := m.ValidationErrors[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) 1907 if err != nil { 1908 return 0, err 1909 } 1910 i -= size 1911 i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) 1912 i-- 1913 dAtA[i] = 0x12 1914 } 1915 } 1916 if m.InputError != nil { 1917 size, err := m.InputError.MarshalToSizedBufferVT(dAtA[:i]) 1918 if err != nil { 1919 return 0, err 1920 } 1921 i -= size 1922 i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) 1923 i-- 1924 dAtA[i] = 0xa 1925 } 1926 return len(dAtA) - i, nil 1927 } 1928 1929 func (m *RunValidationParameters) MarshalVT() (dAtA []byte, err error) { 1930 if m == nil { 1931 return nil, nil 1932 } 1933 size := m.SizeVT() 1934 dAtA = make([]byte, size) 1935 n, err := m.MarshalToSizedBufferVT(dAtA[:size]) 1936 if err != nil { 1937 return nil, err 1938 } 1939 return dAtA[:n], nil 1940 } 1941 1942 func (m *RunValidationParameters) MarshalToVT(dAtA []byte) (int, error) { 1943 size := m.SizeVT() 1944 return m.MarshalToSizedBufferVT(dAtA[:size]) 1945 } 1946 1947 func (m *RunValidationParameters) MarshalToSizedBufferVT(dAtA []byte) (int, error) { 1948 if m == nil { 1949 return 0, nil 1950 } 1951 i := len(dAtA) 1952 _ = i 1953 var l int 1954 _ = l 1955 if m.unknownFields != nil { 1956 i -= len(m.unknownFields) 1957 copy(dAtA[i:], m.unknownFields) 1958 } 1959 if len(m.ValidationYaml) > 0 { 1960 i -= len(m.ValidationYaml) 1961 copy(dAtA[i:], m.ValidationYaml) 1962 i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ValidationYaml))) 1963 i-- 1964 dAtA[i] = 0xa 1965 } 1966 return len(dAtA) - i, nil 1967 } 1968 1969 func (m *RunValidationResult) MarshalVT() (dAtA []byte, err error) { 1970 if m == nil { 1971 return nil, nil 1972 } 1973 size := m.SizeVT() 1974 dAtA = make([]byte, size) 1975 n, err := m.MarshalToSizedBufferVT(dAtA[:size]) 1976 if err != nil { 1977 return nil, err 1978 } 1979 return dAtA[:n], nil 1980 } 1981 1982 func (m *RunValidationResult) MarshalToVT(dAtA []byte) (int, error) { 1983 size := m.SizeVT() 1984 return m.MarshalToSizedBufferVT(dAtA[:size]) 1985 } 1986 1987 func (m *RunValidationResult) MarshalToSizedBufferVT(dAtA []byte) (int, error) { 1988 if m == nil { 1989 return 0, nil 1990 } 1991 i := len(dAtA) 1992 _ = i 1993 var l int 1994 _ = l 1995 if m.unknownFields != nil { 1996 i -= len(m.unknownFields) 1997 copy(dAtA[i:], m.unknownFields) 1998 } 1999 if len(m.ValidationErrors) > 0 { 2000 for iNdEx := len(m.ValidationErrors) - 1; iNdEx >= 0; iNdEx-- { 2001 size, err := m.ValidationErrors[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) 2002 if err != nil { 2003 return 0, err 2004 } 2005 i -= size 2006 i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) 2007 i-- 2008 dAtA[i] = 0x1a 2009 } 2010 } 2011 if len(m.UpdatedValidationYaml) > 0 { 2012 i -= len(m.UpdatedValidationYaml) 2013 copy(dAtA[i:], m.UpdatedValidationYaml) 2014 i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.UpdatedValidationYaml))) 2015 i-- 2016 dAtA[i] = 0x12 2017 } 2018 if m.InputError != nil { 2019 size, err := m.InputError.MarshalToSizedBufferVT(dAtA[:i]) 2020 if err != nil { 2021 return 0, err 2022 } 2023 i -= size 2024 i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) 2025 i-- 2026 dAtA[i] = 0xa 2027 } 2028 return len(dAtA) - i, nil 2029 } 2030 2031 func (m *FormatSchemaParameters) MarshalVT() (dAtA []byte, err error) { 2032 if m == nil { 2033 return nil, nil 2034 } 2035 size := m.SizeVT() 2036 dAtA = make([]byte, size) 2037 n, err := m.MarshalToSizedBufferVT(dAtA[:size]) 2038 if err != nil { 2039 return nil, err 2040 } 2041 return dAtA[:n], nil 2042 } 2043 2044 func (m *FormatSchemaParameters) MarshalToVT(dAtA []byte) (int, error) { 2045 size := m.SizeVT() 2046 return m.MarshalToSizedBufferVT(dAtA[:size]) 2047 } 2048 2049 func (m *FormatSchemaParameters) MarshalToSizedBufferVT(dAtA []byte) (int, error) { 2050 if m == nil { 2051 return 0, nil 2052 } 2053 i := len(dAtA) 2054 _ = i 2055 var l int 2056 _ = l 2057 if m.unknownFields != nil { 2058 i -= len(m.unknownFields) 2059 copy(dAtA[i:], m.unknownFields) 2060 } 2061 return len(dAtA) - i, nil 2062 } 2063 2064 func (m *FormatSchemaResult) MarshalVT() (dAtA []byte, err error) { 2065 if m == nil { 2066 return nil, nil 2067 } 2068 size := m.SizeVT() 2069 dAtA = make([]byte, size) 2070 n, err := m.MarshalToSizedBufferVT(dAtA[:size]) 2071 if err != nil { 2072 return nil, err 2073 } 2074 return dAtA[:n], nil 2075 } 2076 2077 func (m *FormatSchemaResult) MarshalToVT(dAtA []byte) (int, error) { 2078 size := m.SizeVT() 2079 return m.MarshalToSizedBufferVT(dAtA[:size]) 2080 } 2081 2082 func (m *FormatSchemaResult) MarshalToSizedBufferVT(dAtA []byte) (int, error) { 2083 if m == nil { 2084 return 0, nil 2085 } 2086 i := len(dAtA) 2087 _ = i 2088 var l int 2089 _ = l 2090 if m.unknownFields != nil { 2091 i -= len(m.unknownFields) 2092 copy(dAtA[i:], m.unknownFields) 2093 } 2094 if len(m.FormattedSchema) > 0 { 2095 i -= len(m.FormattedSchema) 2096 copy(dAtA[i:], m.FormattedSchema) 2097 i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.FormattedSchema))) 2098 i-- 2099 dAtA[i] = 0xa 2100 } 2101 return len(dAtA) - i, nil 2102 } 2103 2104 func (m *DeveloperRequest) SizeVT() (n int) { 2105 if m == nil { 2106 return 0 2107 } 2108 var l int 2109 _ = l 2110 if m.Context != nil { 2111 l = m.Context.SizeVT() 2112 n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) 2113 } 2114 if len(m.Operations) > 0 { 2115 for _, e := range m.Operations { 2116 l = e.SizeVT() 2117 n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) 2118 } 2119 } 2120 n += len(m.unknownFields) 2121 return n 2122 } 2123 2124 func (m *DeveloperResponse) SizeVT() (n int) { 2125 if m == nil { 2126 return 0 2127 } 2128 var l int 2129 _ = l 2130 l = len(m.InternalError) 2131 if l > 0 { 2132 n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) 2133 } 2134 if m.DeveloperErrors != nil { 2135 l = m.DeveloperErrors.SizeVT() 2136 n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) 2137 } 2138 if m.OperationsResults != nil { 2139 l = m.OperationsResults.SizeVT() 2140 n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) 2141 } 2142 n += len(m.unknownFields) 2143 return n 2144 } 2145 2146 func (m *RequestContext) SizeVT() (n int) { 2147 if m == nil { 2148 return 0 2149 } 2150 var l int 2151 _ = l 2152 l = len(m.Schema) 2153 if l > 0 { 2154 n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) 2155 } 2156 if len(m.Relationships) > 0 { 2157 for _, e := range m.Relationships { 2158 if size, ok := interface{}(e).(interface { 2159 SizeVT() int 2160 }); ok { 2161 l = size.SizeVT() 2162 } else { 2163 l = proto.Size(e) 2164 } 2165 n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) 2166 } 2167 } 2168 n += len(m.unknownFields) 2169 return n 2170 } 2171 2172 func (m *Operation) SizeVT() (n int) { 2173 if m == nil { 2174 return 0 2175 } 2176 var l int 2177 _ = l 2178 if m.CheckParameters != nil { 2179 l = m.CheckParameters.SizeVT() 2180 n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) 2181 } 2182 if m.AssertionsParameters != nil { 2183 l = m.AssertionsParameters.SizeVT() 2184 n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) 2185 } 2186 if m.ValidationParameters != nil { 2187 l = m.ValidationParameters.SizeVT() 2188 n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) 2189 } 2190 if m.FormatSchemaParameters != nil { 2191 l = m.FormatSchemaParameters.SizeVT() 2192 n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) 2193 } 2194 n += len(m.unknownFields) 2195 return n 2196 } 2197 2198 func (m *OperationsResults) SizeVT() (n int) { 2199 if m == nil { 2200 return 0 2201 } 2202 var l int 2203 _ = l 2204 if len(m.Results) > 0 { 2205 for k, v := range m.Results { 2206 _ = k 2207 _ = v 2208 l = 0 2209 if v != nil { 2210 l = v.SizeVT() 2211 } 2212 l += 1 + protohelpers.SizeOfVarint(uint64(l)) 2213 mapEntrySize := 1 + protohelpers.SizeOfVarint(uint64(k)) + l 2214 n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) 2215 } 2216 } 2217 n += len(m.unknownFields) 2218 return n 2219 } 2220 2221 func (m *OperationResult) SizeVT() (n int) { 2222 if m == nil { 2223 return 0 2224 } 2225 var l int 2226 _ = l 2227 if m.CheckResult != nil { 2228 l = m.CheckResult.SizeVT() 2229 n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) 2230 } 2231 if m.AssertionsResult != nil { 2232 l = m.AssertionsResult.SizeVT() 2233 n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) 2234 } 2235 if m.ValidationResult != nil { 2236 l = m.ValidationResult.SizeVT() 2237 n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) 2238 } 2239 if m.FormatSchemaResult != nil { 2240 l = m.FormatSchemaResult.SizeVT() 2241 n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) 2242 } 2243 n += len(m.unknownFields) 2244 return n 2245 } 2246 2247 func (m *DeveloperWarning) SizeVT() (n int) { 2248 if m == nil { 2249 return 0 2250 } 2251 var l int 2252 _ = l 2253 l = len(m.Message) 2254 if l > 0 { 2255 n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) 2256 } 2257 if m.Line != 0 { 2258 n += 1 + protohelpers.SizeOfVarint(uint64(m.Line)) 2259 } 2260 if m.Column != 0 { 2261 n += 1 + protohelpers.SizeOfVarint(uint64(m.Column)) 2262 } 2263 n += len(m.unknownFields) 2264 return n 2265 } 2266 2267 func (m *DeveloperError) SizeVT() (n int) { 2268 if m == nil { 2269 return 0 2270 } 2271 var l int 2272 _ = l 2273 l = len(m.Message) 2274 if l > 0 { 2275 n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) 2276 } 2277 if m.Line != 0 { 2278 n += 1 + protohelpers.SizeOfVarint(uint64(m.Line)) 2279 } 2280 if m.Column != 0 { 2281 n += 1 + protohelpers.SizeOfVarint(uint64(m.Column)) 2282 } 2283 if m.Source != 0 { 2284 n += 1 + protohelpers.SizeOfVarint(uint64(m.Source)) 2285 } 2286 if m.Kind != 0 { 2287 n += 1 + protohelpers.SizeOfVarint(uint64(m.Kind)) 2288 } 2289 if len(m.Path) > 0 { 2290 for _, s := range m.Path { 2291 l = len(s) 2292 n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) 2293 } 2294 } 2295 l = len(m.Context) 2296 if l > 0 { 2297 n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) 2298 } 2299 if m.CheckDebugInformation != nil { 2300 if size, ok := interface{}(m.CheckDebugInformation).(interface { 2301 SizeVT() int 2302 }); ok { 2303 l = size.SizeVT() 2304 } else { 2305 l = proto.Size(m.CheckDebugInformation) 2306 } 2307 n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) 2308 } 2309 if m.CheckResolvedDebugInformation != nil { 2310 if size, ok := interface{}(m.CheckResolvedDebugInformation).(interface { 2311 SizeVT() int 2312 }); ok { 2313 l = size.SizeVT() 2314 } else { 2315 l = proto.Size(m.CheckResolvedDebugInformation) 2316 } 2317 n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) 2318 } 2319 n += len(m.unknownFields) 2320 return n 2321 } 2322 2323 func (m *DeveloperErrors) SizeVT() (n int) { 2324 if m == nil { 2325 return 0 2326 } 2327 var l int 2328 _ = l 2329 if len(m.InputErrors) > 0 { 2330 for _, e := range m.InputErrors { 2331 l = e.SizeVT() 2332 n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) 2333 } 2334 } 2335 n += len(m.unknownFields) 2336 return n 2337 } 2338 2339 func (m *CheckOperationParameters) SizeVT() (n int) { 2340 if m == nil { 2341 return 0 2342 } 2343 var l int 2344 _ = l 2345 if m.Resource != nil { 2346 if size, ok := interface{}(m.Resource).(interface { 2347 SizeVT() int 2348 }); ok { 2349 l = size.SizeVT() 2350 } else { 2351 l = proto.Size(m.Resource) 2352 } 2353 n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) 2354 } 2355 if m.Subject != nil { 2356 if size, ok := interface{}(m.Subject).(interface { 2357 SizeVT() int 2358 }); ok { 2359 l = size.SizeVT() 2360 } else { 2361 l = proto.Size(m.Subject) 2362 } 2363 n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) 2364 } 2365 if m.CaveatContext != nil { 2366 l = (*structpb1.Struct)(m.CaveatContext).SizeVT() 2367 n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) 2368 } 2369 n += len(m.unknownFields) 2370 return n 2371 } 2372 2373 func (m *CheckOperationsResult) SizeVT() (n int) { 2374 if m == nil { 2375 return 0 2376 } 2377 var l int 2378 _ = l 2379 if m.Membership != 0 { 2380 n += 1 + protohelpers.SizeOfVarint(uint64(m.Membership)) 2381 } 2382 if m.CheckError != nil { 2383 l = m.CheckError.SizeVT() 2384 n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) 2385 } 2386 if m.DebugInformation != nil { 2387 if size, ok := interface{}(m.DebugInformation).(interface { 2388 SizeVT() int 2389 }); ok { 2390 l = size.SizeVT() 2391 } else { 2392 l = proto.Size(m.DebugInformation) 2393 } 2394 n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) 2395 } 2396 if m.PartialCaveatInfo != nil { 2397 l = m.PartialCaveatInfo.SizeVT() 2398 n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) 2399 } 2400 if m.ResolvedDebugInformation != nil { 2401 if size, ok := interface{}(m.ResolvedDebugInformation).(interface { 2402 SizeVT() int 2403 }); ok { 2404 l = size.SizeVT() 2405 } else { 2406 l = proto.Size(m.ResolvedDebugInformation) 2407 } 2408 n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) 2409 } 2410 n += len(m.unknownFields) 2411 return n 2412 } 2413 2414 func (m *PartialCaveatInfo) SizeVT() (n int) { 2415 if m == nil { 2416 return 0 2417 } 2418 var l int 2419 _ = l 2420 if len(m.MissingRequiredContext) > 0 { 2421 for _, s := range m.MissingRequiredContext { 2422 l = len(s) 2423 n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) 2424 } 2425 } 2426 n += len(m.unknownFields) 2427 return n 2428 } 2429 2430 func (m *RunAssertionsParameters) SizeVT() (n int) { 2431 if m == nil { 2432 return 0 2433 } 2434 var l int 2435 _ = l 2436 l = len(m.AssertionsYaml) 2437 if l > 0 { 2438 n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) 2439 } 2440 n += len(m.unknownFields) 2441 return n 2442 } 2443 2444 func (m *RunAssertionsResult) SizeVT() (n int) { 2445 if m == nil { 2446 return 0 2447 } 2448 var l int 2449 _ = l 2450 if m.InputError != nil { 2451 l = m.InputError.SizeVT() 2452 n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) 2453 } 2454 if len(m.ValidationErrors) > 0 { 2455 for _, e := range m.ValidationErrors { 2456 l = e.SizeVT() 2457 n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) 2458 } 2459 } 2460 n += len(m.unknownFields) 2461 return n 2462 } 2463 2464 func (m *RunValidationParameters) SizeVT() (n int) { 2465 if m == nil { 2466 return 0 2467 } 2468 var l int 2469 _ = l 2470 l = len(m.ValidationYaml) 2471 if l > 0 { 2472 n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) 2473 } 2474 n += len(m.unknownFields) 2475 return n 2476 } 2477 2478 func (m *RunValidationResult) SizeVT() (n int) { 2479 if m == nil { 2480 return 0 2481 } 2482 var l int 2483 _ = l 2484 if m.InputError != nil { 2485 l = m.InputError.SizeVT() 2486 n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) 2487 } 2488 l = len(m.UpdatedValidationYaml) 2489 if l > 0 { 2490 n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) 2491 } 2492 if len(m.ValidationErrors) > 0 { 2493 for _, e := range m.ValidationErrors { 2494 l = e.SizeVT() 2495 n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) 2496 } 2497 } 2498 n += len(m.unknownFields) 2499 return n 2500 } 2501 2502 func (m *FormatSchemaParameters) SizeVT() (n int) { 2503 if m == nil { 2504 return 0 2505 } 2506 var l int 2507 _ = l 2508 n += len(m.unknownFields) 2509 return n 2510 } 2511 2512 func (m *FormatSchemaResult) SizeVT() (n int) { 2513 if m == nil { 2514 return 0 2515 } 2516 var l int 2517 _ = l 2518 l = len(m.FormattedSchema) 2519 if l > 0 { 2520 n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) 2521 } 2522 n += len(m.unknownFields) 2523 return n 2524 } 2525 2526 func (m *DeveloperRequest) UnmarshalVT(dAtA []byte) error { 2527 l := len(dAtA) 2528 iNdEx := 0 2529 for iNdEx < l { 2530 preIndex := iNdEx 2531 var wire uint64 2532 for shift := uint(0); ; shift += 7 { 2533 if shift >= 64 { 2534 return protohelpers.ErrIntOverflow 2535 } 2536 if iNdEx >= l { 2537 return io.ErrUnexpectedEOF 2538 } 2539 b := dAtA[iNdEx] 2540 iNdEx++ 2541 wire |= uint64(b&0x7F) << shift 2542 if b < 0x80 { 2543 break 2544 } 2545 } 2546 fieldNum := int32(wire >> 3) 2547 wireType := int(wire & 0x7) 2548 if wireType == 4 { 2549 return fmt.Errorf("proto: DeveloperRequest: wiretype end group for non-group") 2550 } 2551 if fieldNum <= 0 { 2552 return fmt.Errorf("proto: DeveloperRequest: illegal tag %d (wire type %d)", fieldNum, wire) 2553 } 2554 switch fieldNum { 2555 case 1: 2556 if wireType != 2 { 2557 return fmt.Errorf("proto: wrong wireType = %d for field Context", wireType) 2558 } 2559 var msglen int 2560 for shift := uint(0); ; shift += 7 { 2561 if shift >= 64 { 2562 return protohelpers.ErrIntOverflow 2563 } 2564 if iNdEx >= l { 2565 return io.ErrUnexpectedEOF 2566 } 2567 b := dAtA[iNdEx] 2568 iNdEx++ 2569 msglen |= int(b&0x7F) << shift 2570 if b < 0x80 { 2571 break 2572 } 2573 } 2574 if msglen < 0 { 2575 return protohelpers.ErrInvalidLength 2576 } 2577 postIndex := iNdEx + msglen 2578 if postIndex < 0 { 2579 return protohelpers.ErrInvalidLength 2580 } 2581 if postIndex > l { 2582 return io.ErrUnexpectedEOF 2583 } 2584 if m.Context == nil { 2585 m.Context = &RequestContext{} 2586 } 2587 if err := m.Context.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { 2588 return err 2589 } 2590 iNdEx = postIndex 2591 case 2: 2592 if wireType != 2 { 2593 return fmt.Errorf("proto: wrong wireType = %d for field Operations", wireType) 2594 } 2595 var msglen int 2596 for shift := uint(0); ; shift += 7 { 2597 if shift >= 64 { 2598 return protohelpers.ErrIntOverflow 2599 } 2600 if iNdEx >= l { 2601 return io.ErrUnexpectedEOF 2602 } 2603 b := dAtA[iNdEx] 2604 iNdEx++ 2605 msglen |= int(b&0x7F) << shift 2606 if b < 0x80 { 2607 break 2608 } 2609 } 2610 if msglen < 0 { 2611 return protohelpers.ErrInvalidLength 2612 } 2613 postIndex := iNdEx + msglen 2614 if postIndex < 0 { 2615 return protohelpers.ErrInvalidLength 2616 } 2617 if postIndex > l { 2618 return io.ErrUnexpectedEOF 2619 } 2620 m.Operations = append(m.Operations, &Operation{}) 2621 if err := m.Operations[len(m.Operations)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { 2622 return err 2623 } 2624 iNdEx = postIndex 2625 default: 2626 iNdEx = preIndex 2627 skippy, err := protohelpers.Skip(dAtA[iNdEx:]) 2628 if err != nil { 2629 return err 2630 } 2631 if (skippy < 0) || (iNdEx+skippy) < 0 { 2632 return protohelpers.ErrInvalidLength 2633 } 2634 if (iNdEx + skippy) > l { 2635 return io.ErrUnexpectedEOF 2636 } 2637 m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) 2638 iNdEx += skippy 2639 } 2640 } 2641 2642 if iNdEx > l { 2643 return io.ErrUnexpectedEOF 2644 } 2645 return nil 2646 } 2647 func (m *DeveloperResponse) UnmarshalVT(dAtA []byte) error { 2648 l := len(dAtA) 2649 iNdEx := 0 2650 for iNdEx < l { 2651 preIndex := iNdEx 2652 var wire uint64 2653 for shift := uint(0); ; shift += 7 { 2654 if shift >= 64 { 2655 return protohelpers.ErrIntOverflow 2656 } 2657 if iNdEx >= l { 2658 return io.ErrUnexpectedEOF 2659 } 2660 b := dAtA[iNdEx] 2661 iNdEx++ 2662 wire |= uint64(b&0x7F) << shift 2663 if b < 0x80 { 2664 break 2665 } 2666 } 2667 fieldNum := int32(wire >> 3) 2668 wireType := int(wire & 0x7) 2669 if wireType == 4 { 2670 return fmt.Errorf("proto: DeveloperResponse: wiretype end group for non-group") 2671 } 2672 if fieldNum <= 0 { 2673 return fmt.Errorf("proto: DeveloperResponse: illegal tag %d (wire type %d)", fieldNum, wire) 2674 } 2675 switch fieldNum { 2676 case 1: 2677 if wireType != 2 { 2678 return fmt.Errorf("proto: wrong wireType = %d for field InternalError", wireType) 2679 } 2680 var stringLen uint64 2681 for shift := uint(0); ; shift += 7 { 2682 if shift >= 64 { 2683 return protohelpers.ErrIntOverflow 2684 } 2685 if iNdEx >= l { 2686 return io.ErrUnexpectedEOF 2687 } 2688 b := dAtA[iNdEx] 2689 iNdEx++ 2690 stringLen |= uint64(b&0x7F) << shift 2691 if b < 0x80 { 2692 break 2693 } 2694 } 2695 intStringLen := int(stringLen) 2696 if intStringLen < 0 { 2697 return protohelpers.ErrInvalidLength 2698 } 2699 postIndex := iNdEx + intStringLen 2700 if postIndex < 0 { 2701 return protohelpers.ErrInvalidLength 2702 } 2703 if postIndex > l { 2704 return io.ErrUnexpectedEOF 2705 } 2706 m.InternalError = string(dAtA[iNdEx:postIndex]) 2707 iNdEx = postIndex 2708 case 2: 2709 if wireType != 2 { 2710 return fmt.Errorf("proto: wrong wireType = %d for field DeveloperErrors", wireType) 2711 } 2712 var msglen int 2713 for shift := uint(0); ; shift += 7 { 2714 if shift >= 64 { 2715 return protohelpers.ErrIntOverflow 2716 } 2717 if iNdEx >= l { 2718 return io.ErrUnexpectedEOF 2719 } 2720 b := dAtA[iNdEx] 2721 iNdEx++ 2722 msglen |= int(b&0x7F) << shift 2723 if b < 0x80 { 2724 break 2725 } 2726 } 2727 if msglen < 0 { 2728 return protohelpers.ErrInvalidLength 2729 } 2730 postIndex := iNdEx + msglen 2731 if postIndex < 0 { 2732 return protohelpers.ErrInvalidLength 2733 } 2734 if postIndex > l { 2735 return io.ErrUnexpectedEOF 2736 } 2737 if m.DeveloperErrors == nil { 2738 m.DeveloperErrors = &DeveloperErrors{} 2739 } 2740 if err := m.DeveloperErrors.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { 2741 return err 2742 } 2743 iNdEx = postIndex 2744 case 3: 2745 if wireType != 2 { 2746 return fmt.Errorf("proto: wrong wireType = %d for field OperationsResults", wireType) 2747 } 2748 var msglen int 2749 for shift := uint(0); ; shift += 7 { 2750 if shift >= 64 { 2751 return protohelpers.ErrIntOverflow 2752 } 2753 if iNdEx >= l { 2754 return io.ErrUnexpectedEOF 2755 } 2756 b := dAtA[iNdEx] 2757 iNdEx++ 2758 msglen |= int(b&0x7F) << shift 2759 if b < 0x80 { 2760 break 2761 } 2762 } 2763 if msglen < 0 { 2764 return protohelpers.ErrInvalidLength 2765 } 2766 postIndex := iNdEx + msglen 2767 if postIndex < 0 { 2768 return protohelpers.ErrInvalidLength 2769 } 2770 if postIndex > l { 2771 return io.ErrUnexpectedEOF 2772 } 2773 if m.OperationsResults == nil { 2774 m.OperationsResults = &OperationsResults{} 2775 } 2776 if err := m.OperationsResults.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { 2777 return err 2778 } 2779 iNdEx = postIndex 2780 default: 2781 iNdEx = preIndex 2782 skippy, err := protohelpers.Skip(dAtA[iNdEx:]) 2783 if err != nil { 2784 return err 2785 } 2786 if (skippy < 0) || (iNdEx+skippy) < 0 { 2787 return protohelpers.ErrInvalidLength 2788 } 2789 if (iNdEx + skippy) > l { 2790 return io.ErrUnexpectedEOF 2791 } 2792 m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) 2793 iNdEx += skippy 2794 } 2795 } 2796 2797 if iNdEx > l { 2798 return io.ErrUnexpectedEOF 2799 } 2800 return nil 2801 } 2802 func (m *RequestContext) UnmarshalVT(dAtA []byte) error { 2803 l := len(dAtA) 2804 iNdEx := 0 2805 for iNdEx < l { 2806 preIndex := iNdEx 2807 var wire uint64 2808 for shift := uint(0); ; shift += 7 { 2809 if shift >= 64 { 2810 return protohelpers.ErrIntOverflow 2811 } 2812 if iNdEx >= l { 2813 return io.ErrUnexpectedEOF 2814 } 2815 b := dAtA[iNdEx] 2816 iNdEx++ 2817 wire |= uint64(b&0x7F) << shift 2818 if b < 0x80 { 2819 break 2820 } 2821 } 2822 fieldNum := int32(wire >> 3) 2823 wireType := int(wire & 0x7) 2824 if wireType == 4 { 2825 return fmt.Errorf("proto: RequestContext: wiretype end group for non-group") 2826 } 2827 if fieldNum <= 0 { 2828 return fmt.Errorf("proto: RequestContext: illegal tag %d (wire type %d)", fieldNum, wire) 2829 } 2830 switch fieldNum { 2831 case 1: 2832 if wireType != 2 { 2833 return fmt.Errorf("proto: wrong wireType = %d for field Schema", wireType) 2834 } 2835 var stringLen uint64 2836 for shift := uint(0); ; shift += 7 { 2837 if shift >= 64 { 2838 return protohelpers.ErrIntOverflow 2839 } 2840 if iNdEx >= l { 2841 return io.ErrUnexpectedEOF 2842 } 2843 b := dAtA[iNdEx] 2844 iNdEx++ 2845 stringLen |= uint64(b&0x7F) << shift 2846 if b < 0x80 { 2847 break 2848 } 2849 } 2850 intStringLen := int(stringLen) 2851 if intStringLen < 0 { 2852 return protohelpers.ErrInvalidLength 2853 } 2854 postIndex := iNdEx + intStringLen 2855 if postIndex < 0 { 2856 return protohelpers.ErrInvalidLength 2857 } 2858 if postIndex > l { 2859 return io.ErrUnexpectedEOF 2860 } 2861 m.Schema = string(dAtA[iNdEx:postIndex]) 2862 iNdEx = postIndex 2863 case 2: 2864 if wireType != 2 { 2865 return fmt.Errorf("proto: wrong wireType = %d for field Relationships", wireType) 2866 } 2867 var msglen int 2868 for shift := uint(0); ; shift += 7 { 2869 if shift >= 64 { 2870 return protohelpers.ErrIntOverflow 2871 } 2872 if iNdEx >= l { 2873 return io.ErrUnexpectedEOF 2874 } 2875 b := dAtA[iNdEx] 2876 iNdEx++ 2877 msglen |= int(b&0x7F) << shift 2878 if b < 0x80 { 2879 break 2880 } 2881 } 2882 if msglen < 0 { 2883 return protohelpers.ErrInvalidLength 2884 } 2885 postIndex := iNdEx + msglen 2886 if postIndex < 0 { 2887 return protohelpers.ErrInvalidLength 2888 } 2889 if postIndex > l { 2890 return io.ErrUnexpectedEOF 2891 } 2892 m.Relationships = append(m.Relationships, &v1.RelationTuple{}) 2893 if unmarshal, ok := interface{}(m.Relationships[len(m.Relationships)-1]).(interface { 2894 UnmarshalVT([]byte) error 2895 }); ok { 2896 if err := unmarshal.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { 2897 return err 2898 } 2899 } else { 2900 if err := proto.Unmarshal(dAtA[iNdEx:postIndex], m.Relationships[len(m.Relationships)-1]); err != nil { 2901 return err 2902 } 2903 } 2904 iNdEx = postIndex 2905 default: 2906 iNdEx = preIndex 2907 skippy, err := protohelpers.Skip(dAtA[iNdEx:]) 2908 if err != nil { 2909 return err 2910 } 2911 if (skippy < 0) || (iNdEx+skippy) < 0 { 2912 return protohelpers.ErrInvalidLength 2913 } 2914 if (iNdEx + skippy) > l { 2915 return io.ErrUnexpectedEOF 2916 } 2917 m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) 2918 iNdEx += skippy 2919 } 2920 } 2921 2922 if iNdEx > l { 2923 return io.ErrUnexpectedEOF 2924 } 2925 return nil 2926 } 2927 func (m *Operation) UnmarshalVT(dAtA []byte) error { 2928 l := len(dAtA) 2929 iNdEx := 0 2930 for iNdEx < l { 2931 preIndex := iNdEx 2932 var wire uint64 2933 for shift := uint(0); ; shift += 7 { 2934 if shift >= 64 { 2935 return protohelpers.ErrIntOverflow 2936 } 2937 if iNdEx >= l { 2938 return io.ErrUnexpectedEOF 2939 } 2940 b := dAtA[iNdEx] 2941 iNdEx++ 2942 wire |= uint64(b&0x7F) << shift 2943 if b < 0x80 { 2944 break 2945 } 2946 } 2947 fieldNum := int32(wire >> 3) 2948 wireType := int(wire & 0x7) 2949 if wireType == 4 { 2950 return fmt.Errorf("proto: Operation: wiretype end group for non-group") 2951 } 2952 if fieldNum <= 0 { 2953 return fmt.Errorf("proto: Operation: illegal tag %d (wire type %d)", fieldNum, wire) 2954 } 2955 switch fieldNum { 2956 case 1: 2957 if wireType != 2 { 2958 return fmt.Errorf("proto: wrong wireType = %d for field CheckParameters", wireType) 2959 } 2960 var msglen int 2961 for shift := uint(0); ; shift += 7 { 2962 if shift >= 64 { 2963 return protohelpers.ErrIntOverflow 2964 } 2965 if iNdEx >= l { 2966 return io.ErrUnexpectedEOF 2967 } 2968 b := dAtA[iNdEx] 2969 iNdEx++ 2970 msglen |= int(b&0x7F) << shift 2971 if b < 0x80 { 2972 break 2973 } 2974 } 2975 if msglen < 0 { 2976 return protohelpers.ErrInvalidLength 2977 } 2978 postIndex := iNdEx + msglen 2979 if postIndex < 0 { 2980 return protohelpers.ErrInvalidLength 2981 } 2982 if postIndex > l { 2983 return io.ErrUnexpectedEOF 2984 } 2985 if m.CheckParameters == nil { 2986 m.CheckParameters = &CheckOperationParameters{} 2987 } 2988 if err := m.CheckParameters.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { 2989 return err 2990 } 2991 iNdEx = postIndex 2992 case 2: 2993 if wireType != 2 { 2994 return fmt.Errorf("proto: wrong wireType = %d for field AssertionsParameters", wireType) 2995 } 2996 var msglen int 2997 for shift := uint(0); ; shift += 7 { 2998 if shift >= 64 { 2999 return protohelpers.ErrIntOverflow 3000 } 3001 if iNdEx >= l { 3002 return io.ErrUnexpectedEOF 3003 } 3004 b := dAtA[iNdEx] 3005 iNdEx++ 3006 msglen |= int(b&0x7F) << shift 3007 if b < 0x80 { 3008 break 3009 } 3010 } 3011 if msglen < 0 { 3012 return protohelpers.ErrInvalidLength 3013 } 3014 postIndex := iNdEx + msglen 3015 if postIndex < 0 { 3016 return protohelpers.ErrInvalidLength 3017 } 3018 if postIndex > l { 3019 return io.ErrUnexpectedEOF 3020 } 3021 if m.AssertionsParameters == nil { 3022 m.AssertionsParameters = &RunAssertionsParameters{} 3023 } 3024 if err := m.AssertionsParameters.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { 3025 return err 3026 } 3027 iNdEx = postIndex 3028 case 3: 3029 if wireType != 2 { 3030 return fmt.Errorf("proto: wrong wireType = %d for field ValidationParameters", wireType) 3031 } 3032 var msglen int 3033 for shift := uint(0); ; shift += 7 { 3034 if shift >= 64 { 3035 return protohelpers.ErrIntOverflow 3036 } 3037 if iNdEx >= l { 3038 return io.ErrUnexpectedEOF 3039 } 3040 b := dAtA[iNdEx] 3041 iNdEx++ 3042 msglen |= int(b&0x7F) << shift 3043 if b < 0x80 { 3044 break 3045 } 3046 } 3047 if msglen < 0 { 3048 return protohelpers.ErrInvalidLength 3049 } 3050 postIndex := iNdEx + msglen 3051 if postIndex < 0 { 3052 return protohelpers.ErrInvalidLength 3053 } 3054 if postIndex > l { 3055 return io.ErrUnexpectedEOF 3056 } 3057 if m.ValidationParameters == nil { 3058 m.ValidationParameters = &RunValidationParameters{} 3059 } 3060 if err := m.ValidationParameters.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { 3061 return err 3062 } 3063 iNdEx = postIndex 3064 case 4: 3065 if wireType != 2 { 3066 return fmt.Errorf("proto: wrong wireType = %d for field FormatSchemaParameters", wireType) 3067 } 3068 var msglen int 3069 for shift := uint(0); ; shift += 7 { 3070 if shift >= 64 { 3071 return protohelpers.ErrIntOverflow 3072 } 3073 if iNdEx >= l { 3074 return io.ErrUnexpectedEOF 3075 } 3076 b := dAtA[iNdEx] 3077 iNdEx++ 3078 msglen |= int(b&0x7F) << shift 3079 if b < 0x80 { 3080 break 3081 } 3082 } 3083 if msglen < 0 { 3084 return protohelpers.ErrInvalidLength 3085 } 3086 postIndex := iNdEx + msglen 3087 if postIndex < 0 { 3088 return protohelpers.ErrInvalidLength 3089 } 3090 if postIndex > l { 3091 return io.ErrUnexpectedEOF 3092 } 3093 if m.FormatSchemaParameters == nil { 3094 m.FormatSchemaParameters = &FormatSchemaParameters{} 3095 } 3096 if err := m.FormatSchemaParameters.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { 3097 return err 3098 } 3099 iNdEx = postIndex 3100 default: 3101 iNdEx = preIndex 3102 skippy, err := protohelpers.Skip(dAtA[iNdEx:]) 3103 if err != nil { 3104 return err 3105 } 3106 if (skippy < 0) || (iNdEx+skippy) < 0 { 3107 return protohelpers.ErrInvalidLength 3108 } 3109 if (iNdEx + skippy) > l { 3110 return io.ErrUnexpectedEOF 3111 } 3112 m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) 3113 iNdEx += skippy 3114 } 3115 } 3116 3117 if iNdEx > l { 3118 return io.ErrUnexpectedEOF 3119 } 3120 return nil 3121 } 3122 func (m *OperationsResults) UnmarshalVT(dAtA []byte) error { 3123 l := len(dAtA) 3124 iNdEx := 0 3125 for iNdEx < l { 3126 preIndex := iNdEx 3127 var wire uint64 3128 for shift := uint(0); ; shift += 7 { 3129 if shift >= 64 { 3130 return protohelpers.ErrIntOverflow 3131 } 3132 if iNdEx >= l { 3133 return io.ErrUnexpectedEOF 3134 } 3135 b := dAtA[iNdEx] 3136 iNdEx++ 3137 wire |= uint64(b&0x7F) << shift 3138 if b < 0x80 { 3139 break 3140 } 3141 } 3142 fieldNum := int32(wire >> 3) 3143 wireType := int(wire & 0x7) 3144 if wireType == 4 { 3145 return fmt.Errorf("proto: OperationsResults: wiretype end group for non-group") 3146 } 3147 if fieldNum <= 0 { 3148 return fmt.Errorf("proto: OperationsResults: illegal tag %d (wire type %d)", fieldNum, wire) 3149 } 3150 switch fieldNum { 3151 case 1: 3152 if wireType != 2 { 3153 return fmt.Errorf("proto: wrong wireType = %d for field Results", wireType) 3154 } 3155 var msglen int 3156 for shift := uint(0); ; shift += 7 { 3157 if shift >= 64 { 3158 return protohelpers.ErrIntOverflow 3159 } 3160 if iNdEx >= l { 3161 return io.ErrUnexpectedEOF 3162 } 3163 b := dAtA[iNdEx] 3164 iNdEx++ 3165 msglen |= int(b&0x7F) << shift 3166 if b < 0x80 { 3167 break 3168 } 3169 } 3170 if msglen < 0 { 3171 return protohelpers.ErrInvalidLength 3172 } 3173 postIndex := iNdEx + msglen 3174 if postIndex < 0 { 3175 return protohelpers.ErrInvalidLength 3176 } 3177 if postIndex > l { 3178 return io.ErrUnexpectedEOF 3179 } 3180 if m.Results == nil { 3181 m.Results = make(map[uint64]*OperationResult) 3182 } 3183 var mapkey uint64 3184 var mapvalue *OperationResult 3185 for iNdEx < postIndex { 3186 entryPreIndex := iNdEx 3187 var wire uint64 3188 for shift := uint(0); ; shift += 7 { 3189 if shift >= 64 { 3190 return protohelpers.ErrIntOverflow 3191 } 3192 if iNdEx >= l { 3193 return io.ErrUnexpectedEOF 3194 } 3195 b := dAtA[iNdEx] 3196 iNdEx++ 3197 wire |= uint64(b&0x7F) << shift 3198 if b < 0x80 { 3199 break 3200 } 3201 } 3202 fieldNum := int32(wire >> 3) 3203 if fieldNum == 1 { 3204 for shift := uint(0); ; shift += 7 { 3205 if shift >= 64 { 3206 return protohelpers.ErrIntOverflow 3207 } 3208 if iNdEx >= l { 3209 return io.ErrUnexpectedEOF 3210 } 3211 b := dAtA[iNdEx] 3212 iNdEx++ 3213 mapkey |= uint64(b&0x7F) << shift 3214 if b < 0x80 { 3215 break 3216 } 3217 } 3218 } else if fieldNum == 2 { 3219 var mapmsglen int 3220 for shift := uint(0); ; shift += 7 { 3221 if shift >= 64 { 3222 return protohelpers.ErrIntOverflow 3223 } 3224 if iNdEx >= l { 3225 return io.ErrUnexpectedEOF 3226 } 3227 b := dAtA[iNdEx] 3228 iNdEx++ 3229 mapmsglen |= int(b&0x7F) << shift 3230 if b < 0x80 { 3231 break 3232 } 3233 } 3234 if mapmsglen < 0 { 3235 return protohelpers.ErrInvalidLength 3236 } 3237 postmsgIndex := iNdEx + mapmsglen 3238 if postmsgIndex < 0 { 3239 return protohelpers.ErrInvalidLength 3240 } 3241 if postmsgIndex > l { 3242 return io.ErrUnexpectedEOF 3243 } 3244 mapvalue = &OperationResult{} 3245 if err := mapvalue.UnmarshalVT(dAtA[iNdEx:postmsgIndex]); err != nil { 3246 return err 3247 } 3248 iNdEx = postmsgIndex 3249 } else { 3250 iNdEx = entryPreIndex 3251 skippy, err := protohelpers.Skip(dAtA[iNdEx:]) 3252 if err != nil { 3253 return err 3254 } 3255 if (skippy < 0) || (iNdEx+skippy) < 0 { 3256 return protohelpers.ErrInvalidLength 3257 } 3258 if (iNdEx + skippy) > postIndex { 3259 return io.ErrUnexpectedEOF 3260 } 3261 iNdEx += skippy 3262 } 3263 } 3264 m.Results[mapkey] = mapvalue 3265 iNdEx = postIndex 3266 default: 3267 iNdEx = preIndex 3268 skippy, err := protohelpers.Skip(dAtA[iNdEx:]) 3269 if err != nil { 3270 return err 3271 } 3272 if (skippy < 0) || (iNdEx+skippy) < 0 { 3273 return protohelpers.ErrInvalidLength 3274 } 3275 if (iNdEx + skippy) > l { 3276 return io.ErrUnexpectedEOF 3277 } 3278 m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) 3279 iNdEx += skippy 3280 } 3281 } 3282 3283 if iNdEx > l { 3284 return io.ErrUnexpectedEOF 3285 } 3286 return nil 3287 } 3288 func (m *OperationResult) UnmarshalVT(dAtA []byte) error { 3289 l := len(dAtA) 3290 iNdEx := 0 3291 for iNdEx < l { 3292 preIndex := iNdEx 3293 var wire uint64 3294 for shift := uint(0); ; shift += 7 { 3295 if shift >= 64 { 3296 return protohelpers.ErrIntOverflow 3297 } 3298 if iNdEx >= l { 3299 return io.ErrUnexpectedEOF 3300 } 3301 b := dAtA[iNdEx] 3302 iNdEx++ 3303 wire |= uint64(b&0x7F) << shift 3304 if b < 0x80 { 3305 break 3306 } 3307 } 3308 fieldNum := int32(wire >> 3) 3309 wireType := int(wire & 0x7) 3310 if wireType == 4 { 3311 return fmt.Errorf("proto: OperationResult: wiretype end group for non-group") 3312 } 3313 if fieldNum <= 0 { 3314 return fmt.Errorf("proto: OperationResult: illegal tag %d (wire type %d)", fieldNum, wire) 3315 } 3316 switch fieldNum { 3317 case 1: 3318 if wireType != 2 { 3319 return fmt.Errorf("proto: wrong wireType = %d for field CheckResult", wireType) 3320 } 3321 var msglen int 3322 for shift := uint(0); ; shift += 7 { 3323 if shift >= 64 { 3324 return protohelpers.ErrIntOverflow 3325 } 3326 if iNdEx >= l { 3327 return io.ErrUnexpectedEOF 3328 } 3329 b := dAtA[iNdEx] 3330 iNdEx++ 3331 msglen |= int(b&0x7F) << shift 3332 if b < 0x80 { 3333 break 3334 } 3335 } 3336 if msglen < 0 { 3337 return protohelpers.ErrInvalidLength 3338 } 3339 postIndex := iNdEx + msglen 3340 if postIndex < 0 { 3341 return protohelpers.ErrInvalidLength 3342 } 3343 if postIndex > l { 3344 return io.ErrUnexpectedEOF 3345 } 3346 if m.CheckResult == nil { 3347 m.CheckResult = &CheckOperationsResult{} 3348 } 3349 if err := m.CheckResult.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { 3350 return err 3351 } 3352 iNdEx = postIndex 3353 case 2: 3354 if wireType != 2 { 3355 return fmt.Errorf("proto: wrong wireType = %d for field AssertionsResult", wireType) 3356 } 3357 var msglen int 3358 for shift := uint(0); ; shift += 7 { 3359 if shift >= 64 { 3360 return protohelpers.ErrIntOverflow 3361 } 3362 if iNdEx >= l { 3363 return io.ErrUnexpectedEOF 3364 } 3365 b := dAtA[iNdEx] 3366 iNdEx++ 3367 msglen |= int(b&0x7F) << shift 3368 if b < 0x80 { 3369 break 3370 } 3371 } 3372 if msglen < 0 { 3373 return protohelpers.ErrInvalidLength 3374 } 3375 postIndex := iNdEx + msglen 3376 if postIndex < 0 { 3377 return protohelpers.ErrInvalidLength 3378 } 3379 if postIndex > l { 3380 return io.ErrUnexpectedEOF 3381 } 3382 if m.AssertionsResult == nil { 3383 m.AssertionsResult = &RunAssertionsResult{} 3384 } 3385 if err := m.AssertionsResult.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { 3386 return err 3387 } 3388 iNdEx = postIndex 3389 case 3: 3390 if wireType != 2 { 3391 return fmt.Errorf("proto: wrong wireType = %d for field ValidationResult", wireType) 3392 } 3393 var msglen int 3394 for shift := uint(0); ; shift += 7 { 3395 if shift >= 64 { 3396 return protohelpers.ErrIntOverflow 3397 } 3398 if iNdEx >= l { 3399 return io.ErrUnexpectedEOF 3400 } 3401 b := dAtA[iNdEx] 3402 iNdEx++ 3403 msglen |= int(b&0x7F) << shift 3404 if b < 0x80 { 3405 break 3406 } 3407 } 3408 if msglen < 0 { 3409 return protohelpers.ErrInvalidLength 3410 } 3411 postIndex := iNdEx + msglen 3412 if postIndex < 0 { 3413 return protohelpers.ErrInvalidLength 3414 } 3415 if postIndex > l { 3416 return io.ErrUnexpectedEOF 3417 } 3418 if m.ValidationResult == nil { 3419 m.ValidationResult = &RunValidationResult{} 3420 } 3421 if err := m.ValidationResult.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { 3422 return err 3423 } 3424 iNdEx = postIndex 3425 case 4: 3426 if wireType != 2 { 3427 return fmt.Errorf("proto: wrong wireType = %d for field FormatSchemaResult", wireType) 3428 } 3429 var msglen int 3430 for shift := uint(0); ; shift += 7 { 3431 if shift >= 64 { 3432 return protohelpers.ErrIntOverflow 3433 } 3434 if iNdEx >= l { 3435 return io.ErrUnexpectedEOF 3436 } 3437 b := dAtA[iNdEx] 3438 iNdEx++ 3439 msglen |= int(b&0x7F) << shift 3440 if b < 0x80 { 3441 break 3442 } 3443 } 3444 if msglen < 0 { 3445 return protohelpers.ErrInvalidLength 3446 } 3447 postIndex := iNdEx + msglen 3448 if postIndex < 0 { 3449 return protohelpers.ErrInvalidLength 3450 } 3451 if postIndex > l { 3452 return io.ErrUnexpectedEOF 3453 } 3454 if m.FormatSchemaResult == nil { 3455 m.FormatSchemaResult = &FormatSchemaResult{} 3456 } 3457 if err := m.FormatSchemaResult.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { 3458 return err 3459 } 3460 iNdEx = postIndex 3461 default: 3462 iNdEx = preIndex 3463 skippy, err := protohelpers.Skip(dAtA[iNdEx:]) 3464 if err != nil { 3465 return err 3466 } 3467 if (skippy < 0) || (iNdEx+skippy) < 0 { 3468 return protohelpers.ErrInvalidLength 3469 } 3470 if (iNdEx + skippy) > l { 3471 return io.ErrUnexpectedEOF 3472 } 3473 m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) 3474 iNdEx += skippy 3475 } 3476 } 3477 3478 if iNdEx > l { 3479 return io.ErrUnexpectedEOF 3480 } 3481 return nil 3482 } 3483 func (m *DeveloperWarning) UnmarshalVT(dAtA []byte) error { 3484 l := len(dAtA) 3485 iNdEx := 0 3486 for iNdEx < l { 3487 preIndex := iNdEx 3488 var wire uint64 3489 for shift := uint(0); ; shift += 7 { 3490 if shift >= 64 { 3491 return protohelpers.ErrIntOverflow 3492 } 3493 if iNdEx >= l { 3494 return io.ErrUnexpectedEOF 3495 } 3496 b := dAtA[iNdEx] 3497 iNdEx++ 3498 wire |= uint64(b&0x7F) << shift 3499 if b < 0x80 { 3500 break 3501 } 3502 } 3503 fieldNum := int32(wire >> 3) 3504 wireType := int(wire & 0x7) 3505 if wireType == 4 { 3506 return fmt.Errorf("proto: DeveloperWarning: wiretype end group for non-group") 3507 } 3508 if fieldNum <= 0 { 3509 return fmt.Errorf("proto: DeveloperWarning: illegal tag %d (wire type %d)", fieldNum, wire) 3510 } 3511 switch fieldNum { 3512 case 1: 3513 if wireType != 2 { 3514 return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) 3515 } 3516 var stringLen uint64 3517 for shift := uint(0); ; shift += 7 { 3518 if shift >= 64 { 3519 return protohelpers.ErrIntOverflow 3520 } 3521 if iNdEx >= l { 3522 return io.ErrUnexpectedEOF 3523 } 3524 b := dAtA[iNdEx] 3525 iNdEx++ 3526 stringLen |= uint64(b&0x7F) << shift 3527 if b < 0x80 { 3528 break 3529 } 3530 } 3531 intStringLen := int(stringLen) 3532 if intStringLen < 0 { 3533 return protohelpers.ErrInvalidLength 3534 } 3535 postIndex := iNdEx + intStringLen 3536 if postIndex < 0 { 3537 return protohelpers.ErrInvalidLength 3538 } 3539 if postIndex > l { 3540 return io.ErrUnexpectedEOF 3541 } 3542 m.Message = string(dAtA[iNdEx:postIndex]) 3543 iNdEx = postIndex 3544 case 2: 3545 if wireType != 0 { 3546 return fmt.Errorf("proto: wrong wireType = %d for field Line", wireType) 3547 } 3548 m.Line = 0 3549 for shift := uint(0); ; shift += 7 { 3550 if shift >= 64 { 3551 return protohelpers.ErrIntOverflow 3552 } 3553 if iNdEx >= l { 3554 return io.ErrUnexpectedEOF 3555 } 3556 b := dAtA[iNdEx] 3557 iNdEx++ 3558 m.Line |= uint32(b&0x7F) << shift 3559 if b < 0x80 { 3560 break 3561 } 3562 } 3563 case 3: 3564 if wireType != 0 { 3565 return fmt.Errorf("proto: wrong wireType = %d for field Column", wireType) 3566 } 3567 m.Column = 0 3568 for shift := uint(0); ; shift += 7 { 3569 if shift >= 64 { 3570 return protohelpers.ErrIntOverflow 3571 } 3572 if iNdEx >= l { 3573 return io.ErrUnexpectedEOF 3574 } 3575 b := dAtA[iNdEx] 3576 iNdEx++ 3577 m.Column |= uint32(b&0x7F) << shift 3578 if b < 0x80 { 3579 break 3580 } 3581 } 3582 default: 3583 iNdEx = preIndex 3584 skippy, err := protohelpers.Skip(dAtA[iNdEx:]) 3585 if err != nil { 3586 return err 3587 } 3588 if (skippy < 0) || (iNdEx+skippy) < 0 { 3589 return protohelpers.ErrInvalidLength 3590 } 3591 if (iNdEx + skippy) > l { 3592 return io.ErrUnexpectedEOF 3593 } 3594 m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) 3595 iNdEx += skippy 3596 } 3597 } 3598 3599 if iNdEx > l { 3600 return io.ErrUnexpectedEOF 3601 } 3602 return nil 3603 } 3604 func (m *DeveloperError) UnmarshalVT(dAtA []byte) error { 3605 l := len(dAtA) 3606 iNdEx := 0 3607 for iNdEx < l { 3608 preIndex := iNdEx 3609 var wire uint64 3610 for shift := uint(0); ; shift += 7 { 3611 if shift >= 64 { 3612 return protohelpers.ErrIntOverflow 3613 } 3614 if iNdEx >= l { 3615 return io.ErrUnexpectedEOF 3616 } 3617 b := dAtA[iNdEx] 3618 iNdEx++ 3619 wire |= uint64(b&0x7F) << shift 3620 if b < 0x80 { 3621 break 3622 } 3623 } 3624 fieldNum := int32(wire >> 3) 3625 wireType := int(wire & 0x7) 3626 if wireType == 4 { 3627 return fmt.Errorf("proto: DeveloperError: wiretype end group for non-group") 3628 } 3629 if fieldNum <= 0 { 3630 return fmt.Errorf("proto: DeveloperError: illegal tag %d (wire type %d)", fieldNum, wire) 3631 } 3632 switch fieldNum { 3633 case 1: 3634 if wireType != 2 { 3635 return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) 3636 } 3637 var stringLen uint64 3638 for shift := uint(0); ; shift += 7 { 3639 if shift >= 64 { 3640 return protohelpers.ErrIntOverflow 3641 } 3642 if iNdEx >= l { 3643 return io.ErrUnexpectedEOF 3644 } 3645 b := dAtA[iNdEx] 3646 iNdEx++ 3647 stringLen |= uint64(b&0x7F) << shift 3648 if b < 0x80 { 3649 break 3650 } 3651 } 3652 intStringLen := int(stringLen) 3653 if intStringLen < 0 { 3654 return protohelpers.ErrInvalidLength 3655 } 3656 postIndex := iNdEx + intStringLen 3657 if postIndex < 0 { 3658 return protohelpers.ErrInvalidLength 3659 } 3660 if postIndex > l { 3661 return io.ErrUnexpectedEOF 3662 } 3663 m.Message = string(dAtA[iNdEx:postIndex]) 3664 iNdEx = postIndex 3665 case 2: 3666 if wireType != 0 { 3667 return fmt.Errorf("proto: wrong wireType = %d for field Line", wireType) 3668 } 3669 m.Line = 0 3670 for shift := uint(0); ; shift += 7 { 3671 if shift >= 64 { 3672 return protohelpers.ErrIntOverflow 3673 } 3674 if iNdEx >= l { 3675 return io.ErrUnexpectedEOF 3676 } 3677 b := dAtA[iNdEx] 3678 iNdEx++ 3679 m.Line |= uint32(b&0x7F) << shift 3680 if b < 0x80 { 3681 break 3682 } 3683 } 3684 case 3: 3685 if wireType != 0 { 3686 return fmt.Errorf("proto: wrong wireType = %d for field Column", wireType) 3687 } 3688 m.Column = 0 3689 for shift := uint(0); ; shift += 7 { 3690 if shift >= 64 { 3691 return protohelpers.ErrIntOverflow 3692 } 3693 if iNdEx >= l { 3694 return io.ErrUnexpectedEOF 3695 } 3696 b := dAtA[iNdEx] 3697 iNdEx++ 3698 m.Column |= uint32(b&0x7F) << shift 3699 if b < 0x80 { 3700 break 3701 } 3702 } 3703 case 4: 3704 if wireType != 0 { 3705 return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) 3706 } 3707 m.Source = 0 3708 for shift := uint(0); ; shift += 7 { 3709 if shift >= 64 { 3710 return protohelpers.ErrIntOverflow 3711 } 3712 if iNdEx >= l { 3713 return io.ErrUnexpectedEOF 3714 } 3715 b := dAtA[iNdEx] 3716 iNdEx++ 3717 m.Source |= DeveloperError_Source(b&0x7F) << shift 3718 if b < 0x80 { 3719 break 3720 } 3721 } 3722 case 5: 3723 if wireType != 0 { 3724 return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) 3725 } 3726 m.Kind = 0 3727 for shift := uint(0); ; shift += 7 { 3728 if shift >= 64 { 3729 return protohelpers.ErrIntOverflow 3730 } 3731 if iNdEx >= l { 3732 return io.ErrUnexpectedEOF 3733 } 3734 b := dAtA[iNdEx] 3735 iNdEx++ 3736 m.Kind |= DeveloperError_ErrorKind(b&0x7F) << shift 3737 if b < 0x80 { 3738 break 3739 } 3740 } 3741 case 6: 3742 if wireType != 2 { 3743 return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) 3744 } 3745 var stringLen uint64 3746 for shift := uint(0); ; shift += 7 { 3747 if shift >= 64 { 3748 return protohelpers.ErrIntOverflow 3749 } 3750 if iNdEx >= l { 3751 return io.ErrUnexpectedEOF 3752 } 3753 b := dAtA[iNdEx] 3754 iNdEx++ 3755 stringLen |= uint64(b&0x7F) << shift 3756 if b < 0x80 { 3757 break 3758 } 3759 } 3760 intStringLen := int(stringLen) 3761 if intStringLen < 0 { 3762 return protohelpers.ErrInvalidLength 3763 } 3764 postIndex := iNdEx + intStringLen 3765 if postIndex < 0 { 3766 return protohelpers.ErrInvalidLength 3767 } 3768 if postIndex > l { 3769 return io.ErrUnexpectedEOF 3770 } 3771 m.Path = append(m.Path, string(dAtA[iNdEx:postIndex])) 3772 iNdEx = postIndex 3773 case 7: 3774 if wireType != 2 { 3775 return fmt.Errorf("proto: wrong wireType = %d for field Context", wireType) 3776 } 3777 var stringLen uint64 3778 for shift := uint(0); ; shift += 7 { 3779 if shift >= 64 { 3780 return protohelpers.ErrIntOverflow 3781 } 3782 if iNdEx >= l { 3783 return io.ErrUnexpectedEOF 3784 } 3785 b := dAtA[iNdEx] 3786 iNdEx++ 3787 stringLen |= uint64(b&0x7F) << shift 3788 if b < 0x80 { 3789 break 3790 } 3791 } 3792 intStringLen := int(stringLen) 3793 if intStringLen < 0 { 3794 return protohelpers.ErrInvalidLength 3795 } 3796 postIndex := iNdEx + intStringLen 3797 if postIndex < 0 { 3798 return protohelpers.ErrInvalidLength 3799 } 3800 if postIndex > l { 3801 return io.ErrUnexpectedEOF 3802 } 3803 m.Context = string(dAtA[iNdEx:postIndex]) 3804 iNdEx = postIndex 3805 case 8: 3806 if wireType != 2 { 3807 return fmt.Errorf("proto: wrong wireType = %d for field CheckDebugInformation", wireType) 3808 } 3809 var msglen int 3810 for shift := uint(0); ; shift += 7 { 3811 if shift >= 64 { 3812 return protohelpers.ErrIntOverflow 3813 } 3814 if iNdEx >= l { 3815 return io.ErrUnexpectedEOF 3816 } 3817 b := dAtA[iNdEx] 3818 iNdEx++ 3819 msglen |= int(b&0x7F) << shift 3820 if b < 0x80 { 3821 break 3822 } 3823 } 3824 if msglen < 0 { 3825 return protohelpers.ErrInvalidLength 3826 } 3827 postIndex := iNdEx + msglen 3828 if postIndex < 0 { 3829 return protohelpers.ErrInvalidLength 3830 } 3831 if postIndex > l { 3832 return io.ErrUnexpectedEOF 3833 } 3834 if m.CheckDebugInformation == nil { 3835 m.CheckDebugInformation = &v11.DebugInformation{} 3836 } 3837 if unmarshal, ok := interface{}(m.CheckDebugInformation).(interface { 3838 UnmarshalVT([]byte) error 3839 }); ok { 3840 if err := unmarshal.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { 3841 return err 3842 } 3843 } else { 3844 if err := proto.Unmarshal(dAtA[iNdEx:postIndex], m.CheckDebugInformation); err != nil { 3845 return err 3846 } 3847 } 3848 iNdEx = postIndex 3849 case 9: 3850 if wireType != 2 { 3851 return fmt.Errorf("proto: wrong wireType = %d for field CheckResolvedDebugInformation", wireType) 3852 } 3853 var msglen int 3854 for shift := uint(0); ; shift += 7 { 3855 if shift >= 64 { 3856 return protohelpers.ErrIntOverflow 3857 } 3858 if iNdEx >= l { 3859 return io.ErrUnexpectedEOF 3860 } 3861 b := dAtA[iNdEx] 3862 iNdEx++ 3863 msglen |= int(b&0x7F) << shift 3864 if b < 0x80 { 3865 break 3866 } 3867 } 3868 if msglen < 0 { 3869 return protohelpers.ErrInvalidLength 3870 } 3871 postIndex := iNdEx + msglen 3872 if postIndex < 0 { 3873 return protohelpers.ErrInvalidLength 3874 } 3875 if postIndex > l { 3876 return io.ErrUnexpectedEOF 3877 } 3878 if m.CheckResolvedDebugInformation == nil { 3879 m.CheckResolvedDebugInformation = &v12.DebugInformation{} 3880 } 3881 if unmarshal, ok := interface{}(m.CheckResolvedDebugInformation).(interface { 3882 UnmarshalVT([]byte) error 3883 }); ok { 3884 if err := unmarshal.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { 3885 return err 3886 } 3887 } else { 3888 if err := proto.Unmarshal(dAtA[iNdEx:postIndex], m.CheckResolvedDebugInformation); err != nil { 3889 return err 3890 } 3891 } 3892 iNdEx = postIndex 3893 default: 3894 iNdEx = preIndex 3895 skippy, err := protohelpers.Skip(dAtA[iNdEx:]) 3896 if err != nil { 3897 return err 3898 } 3899 if (skippy < 0) || (iNdEx+skippy) < 0 { 3900 return protohelpers.ErrInvalidLength 3901 } 3902 if (iNdEx + skippy) > l { 3903 return io.ErrUnexpectedEOF 3904 } 3905 m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) 3906 iNdEx += skippy 3907 } 3908 } 3909 3910 if iNdEx > l { 3911 return io.ErrUnexpectedEOF 3912 } 3913 return nil 3914 } 3915 func (m *DeveloperErrors) UnmarshalVT(dAtA []byte) error { 3916 l := len(dAtA) 3917 iNdEx := 0 3918 for iNdEx < l { 3919 preIndex := iNdEx 3920 var wire uint64 3921 for shift := uint(0); ; shift += 7 { 3922 if shift >= 64 { 3923 return protohelpers.ErrIntOverflow 3924 } 3925 if iNdEx >= l { 3926 return io.ErrUnexpectedEOF 3927 } 3928 b := dAtA[iNdEx] 3929 iNdEx++ 3930 wire |= uint64(b&0x7F) << shift 3931 if b < 0x80 { 3932 break 3933 } 3934 } 3935 fieldNum := int32(wire >> 3) 3936 wireType := int(wire & 0x7) 3937 if wireType == 4 { 3938 return fmt.Errorf("proto: DeveloperErrors: wiretype end group for non-group") 3939 } 3940 if fieldNum <= 0 { 3941 return fmt.Errorf("proto: DeveloperErrors: illegal tag %d (wire type %d)", fieldNum, wire) 3942 } 3943 switch fieldNum { 3944 case 1: 3945 if wireType != 2 { 3946 return fmt.Errorf("proto: wrong wireType = %d for field InputErrors", wireType) 3947 } 3948 var msglen int 3949 for shift := uint(0); ; shift += 7 { 3950 if shift >= 64 { 3951 return protohelpers.ErrIntOverflow 3952 } 3953 if iNdEx >= l { 3954 return io.ErrUnexpectedEOF 3955 } 3956 b := dAtA[iNdEx] 3957 iNdEx++ 3958 msglen |= int(b&0x7F) << shift 3959 if b < 0x80 { 3960 break 3961 } 3962 } 3963 if msglen < 0 { 3964 return protohelpers.ErrInvalidLength 3965 } 3966 postIndex := iNdEx + msglen 3967 if postIndex < 0 { 3968 return protohelpers.ErrInvalidLength 3969 } 3970 if postIndex > l { 3971 return io.ErrUnexpectedEOF 3972 } 3973 m.InputErrors = append(m.InputErrors, &DeveloperError{}) 3974 if err := m.InputErrors[len(m.InputErrors)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { 3975 return err 3976 } 3977 iNdEx = postIndex 3978 default: 3979 iNdEx = preIndex 3980 skippy, err := protohelpers.Skip(dAtA[iNdEx:]) 3981 if err != nil { 3982 return err 3983 } 3984 if (skippy < 0) || (iNdEx+skippy) < 0 { 3985 return protohelpers.ErrInvalidLength 3986 } 3987 if (iNdEx + skippy) > l { 3988 return io.ErrUnexpectedEOF 3989 } 3990 m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) 3991 iNdEx += skippy 3992 } 3993 } 3994 3995 if iNdEx > l { 3996 return io.ErrUnexpectedEOF 3997 } 3998 return nil 3999 } 4000 func (m *CheckOperationParameters) UnmarshalVT(dAtA []byte) error { 4001 l := len(dAtA) 4002 iNdEx := 0 4003 for iNdEx < l { 4004 preIndex := iNdEx 4005 var wire uint64 4006 for shift := uint(0); ; shift += 7 { 4007 if shift >= 64 { 4008 return protohelpers.ErrIntOverflow 4009 } 4010 if iNdEx >= l { 4011 return io.ErrUnexpectedEOF 4012 } 4013 b := dAtA[iNdEx] 4014 iNdEx++ 4015 wire |= uint64(b&0x7F) << shift 4016 if b < 0x80 { 4017 break 4018 } 4019 } 4020 fieldNum := int32(wire >> 3) 4021 wireType := int(wire & 0x7) 4022 if wireType == 4 { 4023 return fmt.Errorf("proto: CheckOperationParameters: wiretype end group for non-group") 4024 } 4025 if fieldNum <= 0 { 4026 return fmt.Errorf("proto: CheckOperationParameters: illegal tag %d (wire type %d)", fieldNum, wire) 4027 } 4028 switch fieldNum { 4029 case 1: 4030 if wireType != 2 { 4031 return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType) 4032 } 4033 var msglen int 4034 for shift := uint(0); ; shift += 7 { 4035 if shift >= 64 { 4036 return protohelpers.ErrIntOverflow 4037 } 4038 if iNdEx >= l { 4039 return io.ErrUnexpectedEOF 4040 } 4041 b := dAtA[iNdEx] 4042 iNdEx++ 4043 msglen |= int(b&0x7F) << shift 4044 if b < 0x80 { 4045 break 4046 } 4047 } 4048 if msglen < 0 { 4049 return protohelpers.ErrInvalidLength 4050 } 4051 postIndex := iNdEx + msglen 4052 if postIndex < 0 { 4053 return protohelpers.ErrInvalidLength 4054 } 4055 if postIndex > l { 4056 return io.ErrUnexpectedEOF 4057 } 4058 if m.Resource == nil { 4059 m.Resource = &v1.ObjectAndRelation{} 4060 } 4061 if unmarshal, ok := interface{}(m.Resource).(interface { 4062 UnmarshalVT([]byte) error 4063 }); ok { 4064 if err := unmarshal.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { 4065 return err 4066 } 4067 } else { 4068 if err := proto.Unmarshal(dAtA[iNdEx:postIndex], m.Resource); err != nil { 4069 return err 4070 } 4071 } 4072 iNdEx = postIndex 4073 case 2: 4074 if wireType != 2 { 4075 return fmt.Errorf("proto: wrong wireType = %d for field Subject", wireType) 4076 } 4077 var msglen int 4078 for shift := uint(0); ; shift += 7 { 4079 if shift >= 64 { 4080 return protohelpers.ErrIntOverflow 4081 } 4082 if iNdEx >= l { 4083 return io.ErrUnexpectedEOF 4084 } 4085 b := dAtA[iNdEx] 4086 iNdEx++ 4087 msglen |= int(b&0x7F) << shift 4088 if b < 0x80 { 4089 break 4090 } 4091 } 4092 if msglen < 0 { 4093 return protohelpers.ErrInvalidLength 4094 } 4095 postIndex := iNdEx + msglen 4096 if postIndex < 0 { 4097 return protohelpers.ErrInvalidLength 4098 } 4099 if postIndex > l { 4100 return io.ErrUnexpectedEOF 4101 } 4102 if m.Subject == nil { 4103 m.Subject = &v1.ObjectAndRelation{} 4104 } 4105 if unmarshal, ok := interface{}(m.Subject).(interface { 4106 UnmarshalVT([]byte) error 4107 }); ok { 4108 if err := unmarshal.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { 4109 return err 4110 } 4111 } else { 4112 if err := proto.Unmarshal(dAtA[iNdEx:postIndex], m.Subject); err != nil { 4113 return err 4114 } 4115 } 4116 iNdEx = postIndex 4117 case 3: 4118 if wireType != 2 { 4119 return fmt.Errorf("proto: wrong wireType = %d for field CaveatContext", wireType) 4120 } 4121 var msglen int 4122 for shift := uint(0); ; shift += 7 { 4123 if shift >= 64 { 4124 return protohelpers.ErrIntOverflow 4125 } 4126 if iNdEx >= l { 4127 return io.ErrUnexpectedEOF 4128 } 4129 b := dAtA[iNdEx] 4130 iNdEx++ 4131 msglen |= int(b&0x7F) << shift 4132 if b < 0x80 { 4133 break 4134 } 4135 } 4136 if msglen < 0 { 4137 return protohelpers.ErrInvalidLength 4138 } 4139 postIndex := iNdEx + msglen 4140 if postIndex < 0 { 4141 return protohelpers.ErrInvalidLength 4142 } 4143 if postIndex > l { 4144 return io.ErrUnexpectedEOF 4145 } 4146 if m.CaveatContext == nil { 4147 m.CaveatContext = &structpb.Struct{} 4148 } 4149 if err := (*structpb1.Struct)(m.CaveatContext).UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { 4150 return err 4151 } 4152 iNdEx = postIndex 4153 default: 4154 iNdEx = preIndex 4155 skippy, err := protohelpers.Skip(dAtA[iNdEx:]) 4156 if err != nil { 4157 return err 4158 } 4159 if (skippy < 0) || (iNdEx+skippy) < 0 { 4160 return protohelpers.ErrInvalidLength 4161 } 4162 if (iNdEx + skippy) > l { 4163 return io.ErrUnexpectedEOF 4164 } 4165 m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) 4166 iNdEx += skippy 4167 } 4168 } 4169 4170 if iNdEx > l { 4171 return io.ErrUnexpectedEOF 4172 } 4173 return nil 4174 } 4175 func (m *CheckOperationsResult) UnmarshalVT(dAtA []byte) error { 4176 l := len(dAtA) 4177 iNdEx := 0 4178 for iNdEx < l { 4179 preIndex := iNdEx 4180 var wire uint64 4181 for shift := uint(0); ; shift += 7 { 4182 if shift >= 64 { 4183 return protohelpers.ErrIntOverflow 4184 } 4185 if iNdEx >= l { 4186 return io.ErrUnexpectedEOF 4187 } 4188 b := dAtA[iNdEx] 4189 iNdEx++ 4190 wire |= uint64(b&0x7F) << shift 4191 if b < 0x80 { 4192 break 4193 } 4194 } 4195 fieldNum := int32(wire >> 3) 4196 wireType := int(wire & 0x7) 4197 if wireType == 4 { 4198 return fmt.Errorf("proto: CheckOperationsResult: wiretype end group for non-group") 4199 } 4200 if fieldNum <= 0 { 4201 return fmt.Errorf("proto: CheckOperationsResult: illegal tag %d (wire type %d)", fieldNum, wire) 4202 } 4203 switch fieldNum { 4204 case 1: 4205 if wireType != 0 { 4206 return fmt.Errorf("proto: wrong wireType = %d for field Membership", wireType) 4207 } 4208 m.Membership = 0 4209 for shift := uint(0); ; shift += 7 { 4210 if shift >= 64 { 4211 return protohelpers.ErrIntOverflow 4212 } 4213 if iNdEx >= l { 4214 return io.ErrUnexpectedEOF 4215 } 4216 b := dAtA[iNdEx] 4217 iNdEx++ 4218 m.Membership |= CheckOperationsResult_Membership(b&0x7F) << shift 4219 if b < 0x80 { 4220 break 4221 } 4222 } 4223 case 2: 4224 if wireType != 2 { 4225 return fmt.Errorf("proto: wrong wireType = %d for field CheckError", wireType) 4226 } 4227 var msglen int 4228 for shift := uint(0); ; shift += 7 { 4229 if shift >= 64 { 4230 return protohelpers.ErrIntOverflow 4231 } 4232 if iNdEx >= l { 4233 return io.ErrUnexpectedEOF 4234 } 4235 b := dAtA[iNdEx] 4236 iNdEx++ 4237 msglen |= int(b&0x7F) << shift 4238 if b < 0x80 { 4239 break 4240 } 4241 } 4242 if msglen < 0 { 4243 return protohelpers.ErrInvalidLength 4244 } 4245 postIndex := iNdEx + msglen 4246 if postIndex < 0 { 4247 return protohelpers.ErrInvalidLength 4248 } 4249 if postIndex > l { 4250 return io.ErrUnexpectedEOF 4251 } 4252 if m.CheckError == nil { 4253 m.CheckError = &DeveloperError{} 4254 } 4255 if err := m.CheckError.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { 4256 return err 4257 } 4258 iNdEx = postIndex 4259 case 3: 4260 if wireType != 2 { 4261 return fmt.Errorf("proto: wrong wireType = %d for field DebugInformation", wireType) 4262 } 4263 var msglen int 4264 for shift := uint(0); ; shift += 7 { 4265 if shift >= 64 { 4266 return protohelpers.ErrIntOverflow 4267 } 4268 if iNdEx >= l { 4269 return io.ErrUnexpectedEOF 4270 } 4271 b := dAtA[iNdEx] 4272 iNdEx++ 4273 msglen |= int(b&0x7F) << shift 4274 if b < 0x80 { 4275 break 4276 } 4277 } 4278 if msglen < 0 { 4279 return protohelpers.ErrInvalidLength 4280 } 4281 postIndex := iNdEx + msglen 4282 if postIndex < 0 { 4283 return protohelpers.ErrInvalidLength 4284 } 4285 if postIndex > l { 4286 return io.ErrUnexpectedEOF 4287 } 4288 if m.DebugInformation == nil { 4289 m.DebugInformation = &v11.DebugInformation{} 4290 } 4291 if unmarshal, ok := interface{}(m.DebugInformation).(interface { 4292 UnmarshalVT([]byte) error 4293 }); ok { 4294 if err := unmarshal.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { 4295 return err 4296 } 4297 } else { 4298 if err := proto.Unmarshal(dAtA[iNdEx:postIndex], m.DebugInformation); err != nil { 4299 return err 4300 } 4301 } 4302 iNdEx = postIndex 4303 case 4: 4304 if wireType != 2 { 4305 return fmt.Errorf("proto: wrong wireType = %d for field PartialCaveatInfo", wireType) 4306 } 4307 var msglen int 4308 for shift := uint(0); ; shift += 7 { 4309 if shift >= 64 { 4310 return protohelpers.ErrIntOverflow 4311 } 4312 if iNdEx >= l { 4313 return io.ErrUnexpectedEOF 4314 } 4315 b := dAtA[iNdEx] 4316 iNdEx++ 4317 msglen |= int(b&0x7F) << shift 4318 if b < 0x80 { 4319 break 4320 } 4321 } 4322 if msglen < 0 { 4323 return protohelpers.ErrInvalidLength 4324 } 4325 postIndex := iNdEx + msglen 4326 if postIndex < 0 { 4327 return protohelpers.ErrInvalidLength 4328 } 4329 if postIndex > l { 4330 return io.ErrUnexpectedEOF 4331 } 4332 if m.PartialCaveatInfo == nil { 4333 m.PartialCaveatInfo = &PartialCaveatInfo{} 4334 } 4335 if err := m.PartialCaveatInfo.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { 4336 return err 4337 } 4338 iNdEx = postIndex 4339 case 5: 4340 if wireType != 2 { 4341 return fmt.Errorf("proto: wrong wireType = %d for field ResolvedDebugInformation", wireType) 4342 } 4343 var msglen int 4344 for shift := uint(0); ; shift += 7 { 4345 if shift >= 64 { 4346 return protohelpers.ErrIntOverflow 4347 } 4348 if iNdEx >= l { 4349 return io.ErrUnexpectedEOF 4350 } 4351 b := dAtA[iNdEx] 4352 iNdEx++ 4353 msglen |= int(b&0x7F) << shift 4354 if b < 0x80 { 4355 break 4356 } 4357 } 4358 if msglen < 0 { 4359 return protohelpers.ErrInvalidLength 4360 } 4361 postIndex := iNdEx + msglen 4362 if postIndex < 0 { 4363 return protohelpers.ErrInvalidLength 4364 } 4365 if postIndex > l { 4366 return io.ErrUnexpectedEOF 4367 } 4368 if m.ResolvedDebugInformation == nil { 4369 m.ResolvedDebugInformation = &v12.DebugInformation{} 4370 } 4371 if unmarshal, ok := interface{}(m.ResolvedDebugInformation).(interface { 4372 UnmarshalVT([]byte) error 4373 }); ok { 4374 if err := unmarshal.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { 4375 return err 4376 } 4377 } else { 4378 if err := proto.Unmarshal(dAtA[iNdEx:postIndex], m.ResolvedDebugInformation); err != nil { 4379 return err 4380 } 4381 } 4382 iNdEx = postIndex 4383 default: 4384 iNdEx = preIndex 4385 skippy, err := protohelpers.Skip(dAtA[iNdEx:]) 4386 if err != nil { 4387 return err 4388 } 4389 if (skippy < 0) || (iNdEx+skippy) < 0 { 4390 return protohelpers.ErrInvalidLength 4391 } 4392 if (iNdEx + skippy) > l { 4393 return io.ErrUnexpectedEOF 4394 } 4395 m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) 4396 iNdEx += skippy 4397 } 4398 } 4399 4400 if iNdEx > l { 4401 return io.ErrUnexpectedEOF 4402 } 4403 return nil 4404 } 4405 func (m *PartialCaveatInfo) UnmarshalVT(dAtA []byte) error { 4406 l := len(dAtA) 4407 iNdEx := 0 4408 for iNdEx < l { 4409 preIndex := iNdEx 4410 var wire uint64 4411 for shift := uint(0); ; shift += 7 { 4412 if shift >= 64 { 4413 return protohelpers.ErrIntOverflow 4414 } 4415 if iNdEx >= l { 4416 return io.ErrUnexpectedEOF 4417 } 4418 b := dAtA[iNdEx] 4419 iNdEx++ 4420 wire |= uint64(b&0x7F) << shift 4421 if b < 0x80 { 4422 break 4423 } 4424 } 4425 fieldNum := int32(wire >> 3) 4426 wireType := int(wire & 0x7) 4427 if wireType == 4 { 4428 return fmt.Errorf("proto: PartialCaveatInfo: wiretype end group for non-group") 4429 } 4430 if fieldNum <= 0 { 4431 return fmt.Errorf("proto: PartialCaveatInfo: illegal tag %d (wire type %d)", fieldNum, wire) 4432 } 4433 switch fieldNum { 4434 case 1: 4435 if wireType != 2 { 4436 return fmt.Errorf("proto: wrong wireType = %d for field MissingRequiredContext", wireType) 4437 } 4438 var stringLen uint64 4439 for shift := uint(0); ; shift += 7 { 4440 if shift >= 64 { 4441 return protohelpers.ErrIntOverflow 4442 } 4443 if iNdEx >= l { 4444 return io.ErrUnexpectedEOF 4445 } 4446 b := dAtA[iNdEx] 4447 iNdEx++ 4448 stringLen |= uint64(b&0x7F) << shift 4449 if b < 0x80 { 4450 break 4451 } 4452 } 4453 intStringLen := int(stringLen) 4454 if intStringLen < 0 { 4455 return protohelpers.ErrInvalidLength 4456 } 4457 postIndex := iNdEx + intStringLen 4458 if postIndex < 0 { 4459 return protohelpers.ErrInvalidLength 4460 } 4461 if postIndex > l { 4462 return io.ErrUnexpectedEOF 4463 } 4464 m.MissingRequiredContext = append(m.MissingRequiredContext, string(dAtA[iNdEx:postIndex])) 4465 iNdEx = postIndex 4466 default: 4467 iNdEx = preIndex 4468 skippy, err := protohelpers.Skip(dAtA[iNdEx:]) 4469 if err != nil { 4470 return err 4471 } 4472 if (skippy < 0) || (iNdEx+skippy) < 0 { 4473 return protohelpers.ErrInvalidLength 4474 } 4475 if (iNdEx + skippy) > l { 4476 return io.ErrUnexpectedEOF 4477 } 4478 m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) 4479 iNdEx += skippy 4480 } 4481 } 4482 4483 if iNdEx > l { 4484 return io.ErrUnexpectedEOF 4485 } 4486 return nil 4487 } 4488 func (m *RunAssertionsParameters) UnmarshalVT(dAtA []byte) error { 4489 l := len(dAtA) 4490 iNdEx := 0 4491 for iNdEx < l { 4492 preIndex := iNdEx 4493 var wire uint64 4494 for shift := uint(0); ; shift += 7 { 4495 if shift >= 64 { 4496 return protohelpers.ErrIntOverflow 4497 } 4498 if iNdEx >= l { 4499 return io.ErrUnexpectedEOF 4500 } 4501 b := dAtA[iNdEx] 4502 iNdEx++ 4503 wire |= uint64(b&0x7F) << shift 4504 if b < 0x80 { 4505 break 4506 } 4507 } 4508 fieldNum := int32(wire >> 3) 4509 wireType := int(wire & 0x7) 4510 if wireType == 4 { 4511 return fmt.Errorf("proto: RunAssertionsParameters: wiretype end group for non-group") 4512 } 4513 if fieldNum <= 0 { 4514 return fmt.Errorf("proto: RunAssertionsParameters: illegal tag %d (wire type %d)", fieldNum, wire) 4515 } 4516 switch fieldNum { 4517 case 1: 4518 if wireType != 2 { 4519 return fmt.Errorf("proto: wrong wireType = %d for field AssertionsYaml", wireType) 4520 } 4521 var stringLen uint64 4522 for shift := uint(0); ; shift += 7 { 4523 if shift >= 64 { 4524 return protohelpers.ErrIntOverflow 4525 } 4526 if iNdEx >= l { 4527 return io.ErrUnexpectedEOF 4528 } 4529 b := dAtA[iNdEx] 4530 iNdEx++ 4531 stringLen |= uint64(b&0x7F) << shift 4532 if b < 0x80 { 4533 break 4534 } 4535 } 4536 intStringLen := int(stringLen) 4537 if intStringLen < 0 { 4538 return protohelpers.ErrInvalidLength 4539 } 4540 postIndex := iNdEx + intStringLen 4541 if postIndex < 0 { 4542 return protohelpers.ErrInvalidLength 4543 } 4544 if postIndex > l { 4545 return io.ErrUnexpectedEOF 4546 } 4547 m.AssertionsYaml = string(dAtA[iNdEx:postIndex]) 4548 iNdEx = postIndex 4549 default: 4550 iNdEx = preIndex 4551 skippy, err := protohelpers.Skip(dAtA[iNdEx:]) 4552 if err != nil { 4553 return err 4554 } 4555 if (skippy < 0) || (iNdEx+skippy) < 0 { 4556 return protohelpers.ErrInvalidLength 4557 } 4558 if (iNdEx + skippy) > l { 4559 return io.ErrUnexpectedEOF 4560 } 4561 m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) 4562 iNdEx += skippy 4563 } 4564 } 4565 4566 if iNdEx > l { 4567 return io.ErrUnexpectedEOF 4568 } 4569 return nil 4570 } 4571 func (m *RunAssertionsResult) UnmarshalVT(dAtA []byte) error { 4572 l := len(dAtA) 4573 iNdEx := 0 4574 for iNdEx < l { 4575 preIndex := iNdEx 4576 var wire uint64 4577 for shift := uint(0); ; shift += 7 { 4578 if shift >= 64 { 4579 return protohelpers.ErrIntOverflow 4580 } 4581 if iNdEx >= l { 4582 return io.ErrUnexpectedEOF 4583 } 4584 b := dAtA[iNdEx] 4585 iNdEx++ 4586 wire |= uint64(b&0x7F) << shift 4587 if b < 0x80 { 4588 break 4589 } 4590 } 4591 fieldNum := int32(wire >> 3) 4592 wireType := int(wire & 0x7) 4593 if wireType == 4 { 4594 return fmt.Errorf("proto: RunAssertionsResult: wiretype end group for non-group") 4595 } 4596 if fieldNum <= 0 { 4597 return fmt.Errorf("proto: RunAssertionsResult: illegal tag %d (wire type %d)", fieldNum, wire) 4598 } 4599 switch fieldNum { 4600 case 1: 4601 if wireType != 2 { 4602 return fmt.Errorf("proto: wrong wireType = %d for field InputError", wireType) 4603 } 4604 var msglen int 4605 for shift := uint(0); ; shift += 7 { 4606 if shift >= 64 { 4607 return protohelpers.ErrIntOverflow 4608 } 4609 if iNdEx >= l { 4610 return io.ErrUnexpectedEOF 4611 } 4612 b := dAtA[iNdEx] 4613 iNdEx++ 4614 msglen |= int(b&0x7F) << shift 4615 if b < 0x80 { 4616 break 4617 } 4618 } 4619 if msglen < 0 { 4620 return protohelpers.ErrInvalidLength 4621 } 4622 postIndex := iNdEx + msglen 4623 if postIndex < 0 { 4624 return protohelpers.ErrInvalidLength 4625 } 4626 if postIndex > l { 4627 return io.ErrUnexpectedEOF 4628 } 4629 if m.InputError == nil { 4630 m.InputError = &DeveloperError{} 4631 } 4632 if err := m.InputError.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { 4633 return err 4634 } 4635 iNdEx = postIndex 4636 case 2: 4637 if wireType != 2 { 4638 return fmt.Errorf("proto: wrong wireType = %d for field ValidationErrors", wireType) 4639 } 4640 var msglen int 4641 for shift := uint(0); ; shift += 7 { 4642 if shift >= 64 { 4643 return protohelpers.ErrIntOverflow 4644 } 4645 if iNdEx >= l { 4646 return io.ErrUnexpectedEOF 4647 } 4648 b := dAtA[iNdEx] 4649 iNdEx++ 4650 msglen |= int(b&0x7F) << shift 4651 if b < 0x80 { 4652 break 4653 } 4654 } 4655 if msglen < 0 { 4656 return protohelpers.ErrInvalidLength 4657 } 4658 postIndex := iNdEx + msglen 4659 if postIndex < 0 { 4660 return protohelpers.ErrInvalidLength 4661 } 4662 if postIndex > l { 4663 return io.ErrUnexpectedEOF 4664 } 4665 m.ValidationErrors = append(m.ValidationErrors, &DeveloperError{}) 4666 if err := m.ValidationErrors[len(m.ValidationErrors)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { 4667 return err 4668 } 4669 iNdEx = postIndex 4670 default: 4671 iNdEx = preIndex 4672 skippy, err := protohelpers.Skip(dAtA[iNdEx:]) 4673 if err != nil { 4674 return err 4675 } 4676 if (skippy < 0) || (iNdEx+skippy) < 0 { 4677 return protohelpers.ErrInvalidLength 4678 } 4679 if (iNdEx + skippy) > l { 4680 return io.ErrUnexpectedEOF 4681 } 4682 m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) 4683 iNdEx += skippy 4684 } 4685 } 4686 4687 if iNdEx > l { 4688 return io.ErrUnexpectedEOF 4689 } 4690 return nil 4691 } 4692 func (m *RunValidationParameters) UnmarshalVT(dAtA []byte) error { 4693 l := len(dAtA) 4694 iNdEx := 0 4695 for iNdEx < l { 4696 preIndex := iNdEx 4697 var wire uint64 4698 for shift := uint(0); ; shift += 7 { 4699 if shift >= 64 { 4700 return protohelpers.ErrIntOverflow 4701 } 4702 if iNdEx >= l { 4703 return io.ErrUnexpectedEOF 4704 } 4705 b := dAtA[iNdEx] 4706 iNdEx++ 4707 wire |= uint64(b&0x7F) << shift 4708 if b < 0x80 { 4709 break 4710 } 4711 } 4712 fieldNum := int32(wire >> 3) 4713 wireType := int(wire & 0x7) 4714 if wireType == 4 { 4715 return fmt.Errorf("proto: RunValidationParameters: wiretype end group for non-group") 4716 } 4717 if fieldNum <= 0 { 4718 return fmt.Errorf("proto: RunValidationParameters: illegal tag %d (wire type %d)", fieldNum, wire) 4719 } 4720 switch fieldNum { 4721 case 1: 4722 if wireType != 2 { 4723 return fmt.Errorf("proto: wrong wireType = %d for field ValidationYaml", wireType) 4724 } 4725 var stringLen uint64 4726 for shift := uint(0); ; shift += 7 { 4727 if shift >= 64 { 4728 return protohelpers.ErrIntOverflow 4729 } 4730 if iNdEx >= l { 4731 return io.ErrUnexpectedEOF 4732 } 4733 b := dAtA[iNdEx] 4734 iNdEx++ 4735 stringLen |= uint64(b&0x7F) << shift 4736 if b < 0x80 { 4737 break 4738 } 4739 } 4740 intStringLen := int(stringLen) 4741 if intStringLen < 0 { 4742 return protohelpers.ErrInvalidLength 4743 } 4744 postIndex := iNdEx + intStringLen 4745 if postIndex < 0 { 4746 return protohelpers.ErrInvalidLength 4747 } 4748 if postIndex > l { 4749 return io.ErrUnexpectedEOF 4750 } 4751 m.ValidationYaml = string(dAtA[iNdEx:postIndex]) 4752 iNdEx = postIndex 4753 default: 4754 iNdEx = preIndex 4755 skippy, err := protohelpers.Skip(dAtA[iNdEx:]) 4756 if err != nil { 4757 return err 4758 } 4759 if (skippy < 0) || (iNdEx+skippy) < 0 { 4760 return protohelpers.ErrInvalidLength 4761 } 4762 if (iNdEx + skippy) > l { 4763 return io.ErrUnexpectedEOF 4764 } 4765 m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) 4766 iNdEx += skippy 4767 } 4768 } 4769 4770 if iNdEx > l { 4771 return io.ErrUnexpectedEOF 4772 } 4773 return nil 4774 } 4775 func (m *RunValidationResult) UnmarshalVT(dAtA []byte) error { 4776 l := len(dAtA) 4777 iNdEx := 0 4778 for iNdEx < l { 4779 preIndex := iNdEx 4780 var wire uint64 4781 for shift := uint(0); ; shift += 7 { 4782 if shift >= 64 { 4783 return protohelpers.ErrIntOverflow 4784 } 4785 if iNdEx >= l { 4786 return io.ErrUnexpectedEOF 4787 } 4788 b := dAtA[iNdEx] 4789 iNdEx++ 4790 wire |= uint64(b&0x7F) << shift 4791 if b < 0x80 { 4792 break 4793 } 4794 } 4795 fieldNum := int32(wire >> 3) 4796 wireType := int(wire & 0x7) 4797 if wireType == 4 { 4798 return fmt.Errorf("proto: RunValidationResult: wiretype end group for non-group") 4799 } 4800 if fieldNum <= 0 { 4801 return fmt.Errorf("proto: RunValidationResult: illegal tag %d (wire type %d)", fieldNum, wire) 4802 } 4803 switch fieldNum { 4804 case 1: 4805 if wireType != 2 { 4806 return fmt.Errorf("proto: wrong wireType = %d for field InputError", wireType) 4807 } 4808 var msglen int 4809 for shift := uint(0); ; shift += 7 { 4810 if shift >= 64 { 4811 return protohelpers.ErrIntOverflow 4812 } 4813 if iNdEx >= l { 4814 return io.ErrUnexpectedEOF 4815 } 4816 b := dAtA[iNdEx] 4817 iNdEx++ 4818 msglen |= int(b&0x7F) << shift 4819 if b < 0x80 { 4820 break 4821 } 4822 } 4823 if msglen < 0 { 4824 return protohelpers.ErrInvalidLength 4825 } 4826 postIndex := iNdEx + msglen 4827 if postIndex < 0 { 4828 return protohelpers.ErrInvalidLength 4829 } 4830 if postIndex > l { 4831 return io.ErrUnexpectedEOF 4832 } 4833 if m.InputError == nil { 4834 m.InputError = &DeveloperError{} 4835 } 4836 if err := m.InputError.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { 4837 return err 4838 } 4839 iNdEx = postIndex 4840 case 2: 4841 if wireType != 2 { 4842 return fmt.Errorf("proto: wrong wireType = %d for field UpdatedValidationYaml", wireType) 4843 } 4844 var stringLen uint64 4845 for shift := uint(0); ; shift += 7 { 4846 if shift >= 64 { 4847 return protohelpers.ErrIntOverflow 4848 } 4849 if iNdEx >= l { 4850 return io.ErrUnexpectedEOF 4851 } 4852 b := dAtA[iNdEx] 4853 iNdEx++ 4854 stringLen |= uint64(b&0x7F) << shift 4855 if b < 0x80 { 4856 break 4857 } 4858 } 4859 intStringLen := int(stringLen) 4860 if intStringLen < 0 { 4861 return protohelpers.ErrInvalidLength 4862 } 4863 postIndex := iNdEx + intStringLen 4864 if postIndex < 0 { 4865 return protohelpers.ErrInvalidLength 4866 } 4867 if postIndex > l { 4868 return io.ErrUnexpectedEOF 4869 } 4870 m.UpdatedValidationYaml = string(dAtA[iNdEx:postIndex]) 4871 iNdEx = postIndex 4872 case 3: 4873 if wireType != 2 { 4874 return fmt.Errorf("proto: wrong wireType = %d for field ValidationErrors", wireType) 4875 } 4876 var msglen int 4877 for shift := uint(0); ; shift += 7 { 4878 if shift >= 64 { 4879 return protohelpers.ErrIntOverflow 4880 } 4881 if iNdEx >= l { 4882 return io.ErrUnexpectedEOF 4883 } 4884 b := dAtA[iNdEx] 4885 iNdEx++ 4886 msglen |= int(b&0x7F) << shift 4887 if b < 0x80 { 4888 break 4889 } 4890 } 4891 if msglen < 0 { 4892 return protohelpers.ErrInvalidLength 4893 } 4894 postIndex := iNdEx + msglen 4895 if postIndex < 0 { 4896 return protohelpers.ErrInvalidLength 4897 } 4898 if postIndex > l { 4899 return io.ErrUnexpectedEOF 4900 } 4901 m.ValidationErrors = append(m.ValidationErrors, &DeveloperError{}) 4902 if err := m.ValidationErrors[len(m.ValidationErrors)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { 4903 return err 4904 } 4905 iNdEx = postIndex 4906 default: 4907 iNdEx = preIndex 4908 skippy, err := protohelpers.Skip(dAtA[iNdEx:]) 4909 if err != nil { 4910 return err 4911 } 4912 if (skippy < 0) || (iNdEx+skippy) < 0 { 4913 return protohelpers.ErrInvalidLength 4914 } 4915 if (iNdEx + skippy) > l { 4916 return io.ErrUnexpectedEOF 4917 } 4918 m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) 4919 iNdEx += skippy 4920 } 4921 } 4922 4923 if iNdEx > l { 4924 return io.ErrUnexpectedEOF 4925 } 4926 return nil 4927 } 4928 func (m *FormatSchemaParameters) UnmarshalVT(dAtA []byte) error { 4929 l := len(dAtA) 4930 iNdEx := 0 4931 for iNdEx < l { 4932 preIndex := iNdEx 4933 var wire uint64 4934 for shift := uint(0); ; shift += 7 { 4935 if shift >= 64 { 4936 return protohelpers.ErrIntOverflow 4937 } 4938 if iNdEx >= l { 4939 return io.ErrUnexpectedEOF 4940 } 4941 b := dAtA[iNdEx] 4942 iNdEx++ 4943 wire |= uint64(b&0x7F) << shift 4944 if b < 0x80 { 4945 break 4946 } 4947 } 4948 fieldNum := int32(wire >> 3) 4949 wireType := int(wire & 0x7) 4950 if wireType == 4 { 4951 return fmt.Errorf("proto: FormatSchemaParameters: wiretype end group for non-group") 4952 } 4953 if fieldNum <= 0 { 4954 return fmt.Errorf("proto: FormatSchemaParameters: illegal tag %d (wire type %d)", fieldNum, wire) 4955 } 4956 switch fieldNum { 4957 default: 4958 iNdEx = preIndex 4959 skippy, err := protohelpers.Skip(dAtA[iNdEx:]) 4960 if err != nil { 4961 return err 4962 } 4963 if (skippy < 0) || (iNdEx+skippy) < 0 { 4964 return protohelpers.ErrInvalidLength 4965 } 4966 if (iNdEx + skippy) > l { 4967 return io.ErrUnexpectedEOF 4968 } 4969 m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) 4970 iNdEx += skippy 4971 } 4972 } 4973 4974 if iNdEx > l { 4975 return io.ErrUnexpectedEOF 4976 } 4977 return nil 4978 } 4979 func (m *FormatSchemaResult) UnmarshalVT(dAtA []byte) error { 4980 l := len(dAtA) 4981 iNdEx := 0 4982 for iNdEx < l { 4983 preIndex := iNdEx 4984 var wire uint64 4985 for shift := uint(0); ; shift += 7 { 4986 if shift >= 64 { 4987 return protohelpers.ErrIntOverflow 4988 } 4989 if iNdEx >= l { 4990 return io.ErrUnexpectedEOF 4991 } 4992 b := dAtA[iNdEx] 4993 iNdEx++ 4994 wire |= uint64(b&0x7F) << shift 4995 if b < 0x80 { 4996 break 4997 } 4998 } 4999 fieldNum := int32(wire >> 3) 5000 wireType := int(wire & 0x7) 5001 if wireType == 4 { 5002 return fmt.Errorf("proto: FormatSchemaResult: wiretype end group for non-group") 5003 } 5004 if fieldNum <= 0 { 5005 return fmt.Errorf("proto: FormatSchemaResult: illegal tag %d (wire type %d)", fieldNum, wire) 5006 } 5007 switch fieldNum { 5008 case 1: 5009 if wireType != 2 { 5010 return fmt.Errorf("proto: wrong wireType = %d for field FormattedSchema", wireType) 5011 } 5012 var stringLen uint64 5013 for shift := uint(0); ; shift += 7 { 5014 if shift >= 64 { 5015 return protohelpers.ErrIntOverflow 5016 } 5017 if iNdEx >= l { 5018 return io.ErrUnexpectedEOF 5019 } 5020 b := dAtA[iNdEx] 5021 iNdEx++ 5022 stringLen |= uint64(b&0x7F) << shift 5023 if b < 0x80 { 5024 break 5025 } 5026 } 5027 intStringLen := int(stringLen) 5028 if intStringLen < 0 { 5029 return protohelpers.ErrInvalidLength 5030 } 5031 postIndex := iNdEx + intStringLen 5032 if postIndex < 0 { 5033 return protohelpers.ErrInvalidLength 5034 } 5035 if postIndex > l { 5036 return io.ErrUnexpectedEOF 5037 } 5038 m.FormattedSchema = string(dAtA[iNdEx:postIndex]) 5039 iNdEx = postIndex 5040 default: 5041 iNdEx = preIndex 5042 skippy, err := protohelpers.Skip(dAtA[iNdEx:]) 5043 if err != nil { 5044 return err 5045 } 5046 if (skippy < 0) || (iNdEx+skippy) < 0 { 5047 return protohelpers.ErrInvalidLength 5048 } 5049 if (iNdEx + skippy) > l { 5050 return io.ErrUnexpectedEOF 5051 } 5052 m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) 5053 iNdEx += skippy 5054 } 5055 } 5056 5057 if iNdEx > l { 5058 return io.ErrUnexpectedEOF 5059 } 5060 return nil 5061 }