// Code generated by protoc-gen-go-vtproto. DO NOT EDIT. // protoc-gen-go-vtproto version: v0.6.1-0.20240409071808-615f978279ca // source: developer/v1/developer.proto package developerv1 import ( fmt "fmt" v12 "github.com/authzed/authzed-go/proto/authzed/api/v1" v1 "github.com/authzed/spicedb/pkg/proto/core/v1" v11 "github.com/authzed/spicedb/pkg/proto/dispatch/v1" protohelpers "github.com/planetscale/vtprotobuf/protohelpers" structpb1 "github.com/planetscale/vtprotobuf/types/known/structpb" proto "google.golang.org/protobuf/proto" protoimpl "google.golang.org/protobuf/runtime/protoimpl" structpb "google.golang.org/protobuf/types/known/structpb" io "io" ) const ( // Verify that this generated code is sufficiently up-to-date. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) // Verify that runtime/protoimpl is sufficiently up-to-date. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) func (m *DeveloperRequest) CloneVT() *DeveloperRequest { if m == nil { return (*DeveloperRequest)(nil) } r := new(DeveloperRequest) r.Context = m.Context.CloneVT() if rhs := m.Operations; rhs != nil { tmpContainer := make([]*Operation, len(rhs)) for k, v := range rhs { tmpContainer[k] = v.CloneVT() } r.Operations = tmpContainer } if len(m.unknownFields) > 0 { r.unknownFields = make([]byte, len(m.unknownFields)) copy(r.unknownFields, m.unknownFields) } return r } func (m *DeveloperRequest) CloneMessageVT() proto.Message { return m.CloneVT() } func (m *DeveloperResponse) CloneVT() *DeveloperResponse { if m == nil { return (*DeveloperResponse)(nil) } r := new(DeveloperResponse) r.InternalError = m.InternalError r.DeveloperErrors = m.DeveloperErrors.CloneVT() r.OperationsResults = m.OperationsResults.CloneVT() if len(m.unknownFields) > 0 { r.unknownFields = make([]byte, len(m.unknownFields)) copy(r.unknownFields, m.unknownFields) } return r } func (m *DeveloperResponse) CloneMessageVT() proto.Message { return m.CloneVT() } func (m *RequestContext) CloneVT() *RequestContext { if m == nil { return (*RequestContext)(nil) } r := new(RequestContext) r.Schema = m.Schema if rhs := m.Relationships; rhs != nil { tmpContainer := make([]*v1.RelationTuple, len(rhs)) for k, v := range rhs { if vtpb, ok := interface{}(v).(interface{ CloneVT() *v1.RelationTuple }); ok { tmpContainer[k] = vtpb.CloneVT() } else { tmpContainer[k] = proto.Clone(v).(*v1.RelationTuple) } } r.Relationships = tmpContainer } if len(m.unknownFields) > 0 { r.unknownFields = make([]byte, len(m.unknownFields)) copy(r.unknownFields, m.unknownFields) } return r } func (m *RequestContext) CloneMessageVT() proto.Message { return m.CloneVT() } func (m *Operation) CloneVT() *Operation { if m == nil { return (*Operation)(nil) } r := new(Operation) r.CheckParameters = m.CheckParameters.CloneVT() r.AssertionsParameters = m.AssertionsParameters.CloneVT() r.ValidationParameters = m.ValidationParameters.CloneVT() r.FormatSchemaParameters = m.FormatSchemaParameters.CloneVT() r.SchemaWarningsParameters = m.SchemaWarningsParameters.CloneVT() if len(m.unknownFields) > 0 { r.unknownFields = make([]byte, len(m.unknownFields)) copy(r.unknownFields, m.unknownFields) } return r } func (m *Operation) CloneMessageVT() proto.Message { return m.CloneVT() } func (m *OperationsResults) CloneVT() *OperationsResults { if m == nil { return (*OperationsResults)(nil) } r := new(OperationsResults) if rhs := m.Results; rhs != nil { tmpContainer := make(map[uint64]*OperationResult, len(rhs)) for k, v := range rhs { tmpContainer[k] = v.CloneVT() } r.Results = tmpContainer } if len(m.unknownFields) > 0 { r.unknownFields = make([]byte, len(m.unknownFields)) copy(r.unknownFields, m.unknownFields) } return r } func (m *OperationsResults) CloneMessageVT() proto.Message { return m.CloneVT() } func (m *OperationResult) CloneVT() *OperationResult { if m == nil { return (*OperationResult)(nil) } r := new(OperationResult) r.CheckResult = m.CheckResult.CloneVT() r.AssertionsResult = m.AssertionsResult.CloneVT() r.ValidationResult = m.ValidationResult.CloneVT() r.FormatSchemaResult = m.FormatSchemaResult.CloneVT() r.SchemaWarningsResult = m.SchemaWarningsResult.CloneVT() if len(m.unknownFields) > 0 { r.unknownFields = make([]byte, len(m.unknownFields)) copy(r.unknownFields, m.unknownFields) } return r } func (m *OperationResult) CloneMessageVT() proto.Message { return m.CloneVT() } func (m *DeveloperWarning) CloneVT() *DeveloperWarning { if m == nil { return (*DeveloperWarning)(nil) } r := new(DeveloperWarning) r.Message = m.Message r.Line = m.Line r.Column = m.Column r.SourceCode = m.SourceCode if len(m.unknownFields) > 0 { r.unknownFields = make([]byte, len(m.unknownFields)) copy(r.unknownFields, m.unknownFields) } return r } func (m *DeveloperWarning) CloneMessageVT() proto.Message { return m.CloneVT() } func (m *DeveloperError) CloneVT() *DeveloperError { if m == nil { return (*DeveloperError)(nil) } r := new(DeveloperError) r.Message = m.Message r.Line = m.Line r.Column = m.Column r.Source = m.Source r.Kind = m.Kind r.Context = m.Context if rhs := m.Path; rhs != nil { tmpContainer := make([]string, len(rhs)) copy(tmpContainer, rhs) r.Path = tmpContainer } if rhs := m.CheckDebugInformation; rhs != nil { if vtpb, ok := interface{}(rhs).(interface{ CloneVT() *v11.DebugInformation }); ok { r.CheckDebugInformation = vtpb.CloneVT() } else { r.CheckDebugInformation = proto.Clone(rhs).(*v11.DebugInformation) } } if rhs := m.CheckResolvedDebugInformation; rhs != nil { if vtpb, ok := interface{}(rhs).(interface{ CloneVT() *v12.DebugInformation }); ok { r.CheckResolvedDebugInformation = vtpb.CloneVT() } else { r.CheckResolvedDebugInformation = proto.Clone(rhs).(*v12.DebugInformation) } } if len(m.unknownFields) > 0 { r.unknownFields = make([]byte, len(m.unknownFields)) copy(r.unknownFields, m.unknownFields) } return r } func (m *DeveloperError) CloneMessageVT() proto.Message { return m.CloneVT() } func (m *DeveloperErrors) CloneVT() *DeveloperErrors { if m == nil { return (*DeveloperErrors)(nil) } r := new(DeveloperErrors) if rhs := m.InputErrors; rhs != nil { tmpContainer := make([]*DeveloperError, len(rhs)) for k, v := range rhs { tmpContainer[k] = v.CloneVT() } r.InputErrors = tmpContainer } if len(m.unknownFields) > 0 { r.unknownFields = make([]byte, len(m.unknownFields)) copy(r.unknownFields, m.unknownFields) } return r } func (m *DeveloperErrors) CloneMessageVT() proto.Message { return m.CloneVT() } func (m *CheckOperationParameters) CloneVT() *CheckOperationParameters { if m == nil { return (*CheckOperationParameters)(nil) } r := new(CheckOperationParameters) r.CaveatContext = (*structpb.Struct)((*structpb1.Struct)(m.CaveatContext).CloneVT()) if rhs := m.Resource; rhs != nil { if vtpb, ok := interface{}(rhs).(interface{ CloneVT() *v1.ObjectAndRelation }); ok { r.Resource = vtpb.CloneVT() } else { r.Resource = proto.Clone(rhs).(*v1.ObjectAndRelation) } } if rhs := m.Subject; rhs != nil { if vtpb, ok := interface{}(rhs).(interface{ CloneVT() *v1.ObjectAndRelation }); ok { r.Subject = vtpb.CloneVT() } else { r.Subject = proto.Clone(rhs).(*v1.ObjectAndRelation) } } if len(m.unknownFields) > 0 { r.unknownFields = make([]byte, len(m.unknownFields)) copy(r.unknownFields, m.unknownFields) } return r } func (m *CheckOperationParameters) CloneMessageVT() proto.Message { return m.CloneVT() } func (m *CheckOperationsResult) CloneVT() *CheckOperationsResult { if m == nil { return (*CheckOperationsResult)(nil) } r := new(CheckOperationsResult) r.Membership = m.Membership r.CheckError = m.CheckError.CloneVT() r.PartialCaveatInfo = m.PartialCaveatInfo.CloneVT() if rhs := m.DebugInformation; rhs != nil { if vtpb, ok := interface{}(rhs).(interface{ CloneVT() *v11.DebugInformation }); ok { r.DebugInformation = vtpb.CloneVT() } else { r.DebugInformation = proto.Clone(rhs).(*v11.DebugInformation) } } if rhs := m.ResolvedDebugInformation; rhs != nil { if vtpb, ok := interface{}(rhs).(interface{ CloneVT() *v12.DebugInformation }); ok { r.ResolvedDebugInformation = vtpb.CloneVT() } else { r.ResolvedDebugInformation = proto.Clone(rhs).(*v12.DebugInformation) } } if len(m.unknownFields) > 0 { r.unknownFields = make([]byte, len(m.unknownFields)) copy(r.unknownFields, m.unknownFields) } return r } func (m *CheckOperationsResult) CloneMessageVT() proto.Message { return m.CloneVT() } func (m *PartialCaveatInfo) CloneVT() *PartialCaveatInfo { if m == nil { return (*PartialCaveatInfo)(nil) } r := new(PartialCaveatInfo) if rhs := m.MissingRequiredContext; rhs != nil { tmpContainer := make([]string, len(rhs)) copy(tmpContainer, rhs) r.MissingRequiredContext = tmpContainer } if len(m.unknownFields) > 0 { r.unknownFields = make([]byte, len(m.unknownFields)) copy(r.unknownFields, m.unknownFields) } return r } func (m *PartialCaveatInfo) CloneMessageVT() proto.Message { return m.CloneVT() } func (m *RunAssertionsParameters) CloneVT() *RunAssertionsParameters { if m == nil { return (*RunAssertionsParameters)(nil) } r := new(RunAssertionsParameters) r.AssertionsYaml = m.AssertionsYaml if len(m.unknownFields) > 0 { r.unknownFields = make([]byte, len(m.unknownFields)) copy(r.unknownFields, m.unknownFields) } return r } func (m *RunAssertionsParameters) CloneMessageVT() proto.Message { return m.CloneVT() } func (m *RunAssertionsResult) CloneVT() *RunAssertionsResult { if m == nil { return (*RunAssertionsResult)(nil) } r := new(RunAssertionsResult) r.InputError = m.InputError.CloneVT() if rhs := m.ValidationErrors; rhs != nil { tmpContainer := make([]*DeveloperError, len(rhs)) for k, v := range rhs { tmpContainer[k] = v.CloneVT() } r.ValidationErrors = tmpContainer } if len(m.unknownFields) > 0 { r.unknownFields = make([]byte, len(m.unknownFields)) copy(r.unknownFields, m.unknownFields) } return r } func (m *RunAssertionsResult) CloneMessageVT() proto.Message { return m.CloneVT() } func (m *RunValidationParameters) CloneVT() *RunValidationParameters { if m == nil { return (*RunValidationParameters)(nil) } r := new(RunValidationParameters) r.ValidationYaml = m.ValidationYaml if len(m.unknownFields) > 0 { r.unknownFields = make([]byte, len(m.unknownFields)) copy(r.unknownFields, m.unknownFields) } return r } func (m *RunValidationParameters) CloneMessageVT() proto.Message { return m.CloneVT() } func (m *RunValidationResult) CloneVT() *RunValidationResult { if m == nil { return (*RunValidationResult)(nil) } r := new(RunValidationResult) r.InputError = m.InputError.CloneVT() r.UpdatedValidationYaml = m.UpdatedValidationYaml if rhs := m.ValidationErrors; rhs != nil { tmpContainer := make([]*DeveloperError, len(rhs)) for k, v := range rhs { tmpContainer[k] = v.CloneVT() } r.ValidationErrors = tmpContainer } if len(m.unknownFields) > 0 { r.unknownFields = make([]byte, len(m.unknownFields)) copy(r.unknownFields, m.unknownFields) } return r } func (m *RunValidationResult) CloneMessageVT() proto.Message { return m.CloneVT() } func (m *FormatSchemaParameters) CloneVT() *FormatSchemaParameters { if m == nil { return (*FormatSchemaParameters)(nil) } r := new(FormatSchemaParameters) if len(m.unknownFields) > 0 { r.unknownFields = make([]byte, len(m.unknownFields)) copy(r.unknownFields, m.unknownFields) } return r } func (m *FormatSchemaParameters) CloneMessageVT() proto.Message { return m.CloneVT() } func (m *FormatSchemaResult) CloneVT() *FormatSchemaResult { if m == nil { return (*FormatSchemaResult)(nil) } r := new(FormatSchemaResult) r.FormattedSchema = m.FormattedSchema if len(m.unknownFields) > 0 { r.unknownFields = make([]byte, len(m.unknownFields)) copy(r.unknownFields, m.unknownFields) } return r } func (m *FormatSchemaResult) CloneMessageVT() proto.Message { return m.CloneVT() } func (m *SchemaWarningsParameters) CloneVT() *SchemaWarningsParameters { if m == nil { return (*SchemaWarningsParameters)(nil) } r := new(SchemaWarningsParameters) if len(m.unknownFields) > 0 { r.unknownFields = make([]byte, len(m.unknownFields)) copy(r.unknownFields, m.unknownFields) } return r } func (m *SchemaWarningsParameters) CloneMessageVT() proto.Message { return m.CloneVT() } func (m *SchemaWarningsResult) CloneVT() *SchemaWarningsResult { if m == nil { return (*SchemaWarningsResult)(nil) } r := new(SchemaWarningsResult) if rhs := m.Warnings; rhs != nil { tmpContainer := make([]*DeveloperWarning, len(rhs)) for k, v := range rhs { tmpContainer[k] = v.CloneVT() } r.Warnings = tmpContainer } if len(m.unknownFields) > 0 { r.unknownFields = make([]byte, len(m.unknownFields)) copy(r.unknownFields, m.unknownFields) } return r } func (m *SchemaWarningsResult) CloneMessageVT() proto.Message { return m.CloneVT() } func (this *DeveloperRequest) EqualVT(that *DeveloperRequest) bool { if this == that { return true } else if this == nil || that == nil { return false } if !this.Context.EqualVT(that.Context) { return false } if len(this.Operations) != len(that.Operations) { return false } for i, vx := range this.Operations { vy := that.Operations[i] if p, q := vx, vy; p != q { if p == nil { p = &Operation{} } if q == nil { q = &Operation{} } if !p.EqualVT(q) { return false } } } return string(this.unknownFields) == string(that.unknownFields) } func (this *DeveloperRequest) EqualMessageVT(thatMsg proto.Message) bool { that, ok := thatMsg.(*DeveloperRequest) if !ok { return false } return this.EqualVT(that) } func (this *DeveloperResponse) EqualVT(that *DeveloperResponse) bool { if this == that { return true } else if this == nil || that == nil { return false } if this.InternalError != that.InternalError { return false } if !this.DeveloperErrors.EqualVT(that.DeveloperErrors) { return false } if !this.OperationsResults.EqualVT(that.OperationsResults) { return false } return string(this.unknownFields) == string(that.unknownFields) } func (this *DeveloperResponse) EqualMessageVT(thatMsg proto.Message) bool { that, ok := thatMsg.(*DeveloperResponse) if !ok { return false } return this.EqualVT(that) } func (this *RequestContext) EqualVT(that *RequestContext) bool { if this == that { return true } else if this == nil || that == nil { return false } if this.Schema != that.Schema { return false } if len(this.Relationships) != len(that.Relationships) { return false } for i, vx := range this.Relationships { vy := that.Relationships[i] if p, q := vx, vy; p != q { if p == nil { p = &v1.RelationTuple{} } if q == nil { q = &v1.RelationTuple{} } if equal, ok := interface{}(p).(interface{ EqualVT(*v1.RelationTuple) bool }); ok { if !equal.EqualVT(q) { return false } } else if !proto.Equal(p, q) { return false } } } return string(this.unknownFields) == string(that.unknownFields) } func (this *RequestContext) EqualMessageVT(thatMsg proto.Message) bool { that, ok := thatMsg.(*RequestContext) if !ok { return false } return this.EqualVT(that) } func (this *Operation) EqualVT(that *Operation) bool { if this == that { return true } else if this == nil || that == nil { return false } if !this.CheckParameters.EqualVT(that.CheckParameters) { return false } if !this.AssertionsParameters.EqualVT(that.AssertionsParameters) { return false } if !this.ValidationParameters.EqualVT(that.ValidationParameters) { return false } if !this.FormatSchemaParameters.EqualVT(that.FormatSchemaParameters) { return false } if !this.SchemaWarningsParameters.EqualVT(that.SchemaWarningsParameters) { return false } return string(this.unknownFields) == string(that.unknownFields) } func (this *Operation) EqualMessageVT(thatMsg proto.Message) bool { that, ok := thatMsg.(*Operation) if !ok { return false } return this.EqualVT(that) } func (this *OperationsResults) EqualVT(that *OperationsResults) bool { if this == that { return true } else if this == nil || that == nil { return false } if len(this.Results) != len(that.Results) { return false } for i, vx := range this.Results { vy, ok := that.Results[i] if !ok { return false } if p, q := vx, vy; p != q { if p == nil { p = &OperationResult{} } if q == nil { q = &OperationResult{} } if !p.EqualVT(q) { return false } } } return string(this.unknownFields) == string(that.unknownFields) } func (this *OperationsResults) EqualMessageVT(thatMsg proto.Message) bool { that, ok := thatMsg.(*OperationsResults) if !ok { return false } return this.EqualVT(that) } func (this *OperationResult) EqualVT(that *OperationResult) bool { if this == that { return true } else if this == nil || that == nil { return false } if !this.CheckResult.EqualVT(that.CheckResult) { return false } if !this.AssertionsResult.EqualVT(that.AssertionsResult) { return false } if !this.ValidationResult.EqualVT(that.ValidationResult) { return false } if !this.FormatSchemaResult.EqualVT(that.FormatSchemaResult) { return false } if !this.SchemaWarningsResult.EqualVT(that.SchemaWarningsResult) { return false } return string(this.unknownFields) == string(that.unknownFields) } func (this *OperationResult) EqualMessageVT(thatMsg proto.Message) bool { that, ok := thatMsg.(*OperationResult) if !ok { return false } return this.EqualVT(that) } func (this *DeveloperWarning) EqualVT(that *DeveloperWarning) bool { if this == that { return true } else if this == nil || that == nil { return false } if this.Message != that.Message { return false } if this.Line != that.Line { return false } if this.Column != that.Column { return false } if this.SourceCode != that.SourceCode { return false } return string(this.unknownFields) == string(that.unknownFields) } func (this *DeveloperWarning) EqualMessageVT(thatMsg proto.Message) bool { that, ok := thatMsg.(*DeveloperWarning) if !ok { return false } return this.EqualVT(that) } func (this *DeveloperError) EqualVT(that *DeveloperError) bool { if this == that { return true } else if this == nil || that == nil { return false } if this.Message != that.Message { return false } if this.Line != that.Line { return false } if this.Column != that.Column { return false } if this.Source != that.Source { return false } if this.Kind != that.Kind { return false } if len(this.Path) != len(that.Path) { return false } for i, vx := range this.Path { vy := that.Path[i] if vx != vy { return false } } if this.Context != that.Context { return false } if equal, ok := interface{}(this.CheckDebugInformation).(interface { EqualVT(*v11.DebugInformation) bool }); ok { if !equal.EqualVT(that.CheckDebugInformation) { return false } } else if !proto.Equal(this.CheckDebugInformation, that.CheckDebugInformation) { return false } if equal, ok := interface{}(this.CheckResolvedDebugInformation).(interface { EqualVT(*v12.DebugInformation) bool }); ok { if !equal.EqualVT(that.CheckResolvedDebugInformation) { return false } } else if !proto.Equal(this.CheckResolvedDebugInformation, that.CheckResolvedDebugInformation) { return false } return string(this.unknownFields) == string(that.unknownFields) } func (this *DeveloperError) EqualMessageVT(thatMsg proto.Message) bool { that, ok := thatMsg.(*DeveloperError) if !ok { return false } return this.EqualVT(that) } func (this *DeveloperErrors) EqualVT(that *DeveloperErrors) bool { if this == that { return true } else if this == nil || that == nil { return false } if len(this.InputErrors) != len(that.InputErrors) { return false } for i, vx := range this.InputErrors { vy := that.InputErrors[i] if p, q := vx, vy; p != q { if p == nil { p = &DeveloperError{} } if q == nil { q = &DeveloperError{} } if !p.EqualVT(q) { return false } } } return string(this.unknownFields) == string(that.unknownFields) } func (this *DeveloperErrors) EqualMessageVT(thatMsg proto.Message) bool { that, ok := thatMsg.(*DeveloperErrors) if !ok { return false } return this.EqualVT(that) } func (this *CheckOperationParameters) EqualVT(that *CheckOperationParameters) bool { if this == that { return true } else if this == nil || that == nil { return false } if equal, ok := interface{}(this.Resource).(interface { EqualVT(*v1.ObjectAndRelation) bool }); ok { if !equal.EqualVT(that.Resource) { return false } } else if !proto.Equal(this.Resource, that.Resource) { return false } if equal, ok := interface{}(this.Subject).(interface { EqualVT(*v1.ObjectAndRelation) bool }); ok { if !equal.EqualVT(that.Subject) { return false } } else if !proto.Equal(this.Subject, that.Subject) { return false } if !(*structpb1.Struct)(this.CaveatContext).EqualVT((*structpb1.Struct)(that.CaveatContext)) { return false } return string(this.unknownFields) == string(that.unknownFields) } func (this *CheckOperationParameters) EqualMessageVT(thatMsg proto.Message) bool { that, ok := thatMsg.(*CheckOperationParameters) if !ok { return false } return this.EqualVT(that) } func (this *CheckOperationsResult) EqualVT(that *CheckOperationsResult) bool { if this == that { return true } else if this == nil || that == nil { return false } if this.Membership != that.Membership { return false } if !this.CheckError.EqualVT(that.CheckError) { return false } if equal, ok := interface{}(this.DebugInformation).(interface { EqualVT(*v11.DebugInformation) bool }); ok { if !equal.EqualVT(that.DebugInformation) { return false } } else if !proto.Equal(this.DebugInformation, that.DebugInformation) { return false } if !this.PartialCaveatInfo.EqualVT(that.PartialCaveatInfo) { return false } if equal, ok := interface{}(this.ResolvedDebugInformation).(interface { EqualVT(*v12.DebugInformation) bool }); ok { if !equal.EqualVT(that.ResolvedDebugInformation) { return false } } else if !proto.Equal(this.ResolvedDebugInformation, that.ResolvedDebugInformation) { return false } return string(this.unknownFields) == string(that.unknownFields) } func (this *CheckOperationsResult) EqualMessageVT(thatMsg proto.Message) bool { that, ok := thatMsg.(*CheckOperationsResult) if !ok { return false } return this.EqualVT(that) } func (this *PartialCaveatInfo) EqualVT(that *PartialCaveatInfo) bool { if this == that { return true } else if this == nil || that == nil { return false } if len(this.MissingRequiredContext) != len(that.MissingRequiredContext) { return false } for i, vx := range this.MissingRequiredContext { vy := that.MissingRequiredContext[i] if vx != vy { return false } } return string(this.unknownFields) == string(that.unknownFields) } func (this *PartialCaveatInfo) EqualMessageVT(thatMsg proto.Message) bool { that, ok := thatMsg.(*PartialCaveatInfo) if !ok { return false } return this.EqualVT(that) } func (this *RunAssertionsParameters) EqualVT(that *RunAssertionsParameters) bool { if this == that { return true } else if this == nil || that == nil { return false } if this.AssertionsYaml != that.AssertionsYaml { return false } return string(this.unknownFields) == string(that.unknownFields) } func (this *RunAssertionsParameters) EqualMessageVT(thatMsg proto.Message) bool { that, ok := thatMsg.(*RunAssertionsParameters) if !ok { return false } return this.EqualVT(that) } func (this *RunAssertionsResult) EqualVT(that *RunAssertionsResult) bool { if this == that { return true } else if this == nil || that == nil { return false } if !this.InputError.EqualVT(that.InputError) { return false } if len(this.ValidationErrors) != len(that.ValidationErrors) { return false } for i, vx := range this.ValidationErrors { vy := that.ValidationErrors[i] if p, q := vx, vy; p != q { if p == nil { p = &DeveloperError{} } if q == nil { q = &DeveloperError{} } if !p.EqualVT(q) { return false } } } return string(this.unknownFields) == string(that.unknownFields) } func (this *RunAssertionsResult) EqualMessageVT(thatMsg proto.Message) bool { that, ok := thatMsg.(*RunAssertionsResult) if !ok { return false } return this.EqualVT(that) } func (this *RunValidationParameters) EqualVT(that *RunValidationParameters) bool { if this == that { return true } else if this == nil || that == nil { return false } if this.ValidationYaml != that.ValidationYaml { return false } return string(this.unknownFields) == string(that.unknownFields) } func (this *RunValidationParameters) EqualMessageVT(thatMsg proto.Message) bool { that, ok := thatMsg.(*RunValidationParameters) if !ok { return false } return this.EqualVT(that) } func (this *RunValidationResult) EqualVT(that *RunValidationResult) bool { if this == that { return true } else if this == nil || that == nil { return false } if !this.InputError.EqualVT(that.InputError) { return false } if this.UpdatedValidationYaml != that.UpdatedValidationYaml { return false } if len(this.ValidationErrors) != len(that.ValidationErrors) { return false } for i, vx := range this.ValidationErrors { vy := that.ValidationErrors[i] if p, q := vx, vy; p != q { if p == nil { p = &DeveloperError{} } if q == nil { q = &DeveloperError{} } if !p.EqualVT(q) { return false } } } return string(this.unknownFields) == string(that.unknownFields) } func (this *RunValidationResult) EqualMessageVT(thatMsg proto.Message) bool { that, ok := thatMsg.(*RunValidationResult) if !ok { return false } return this.EqualVT(that) } func (this *FormatSchemaParameters) EqualVT(that *FormatSchemaParameters) bool { if this == that { return true } else if this == nil || that == nil { return false } return string(this.unknownFields) == string(that.unknownFields) } func (this *FormatSchemaParameters) EqualMessageVT(thatMsg proto.Message) bool { that, ok := thatMsg.(*FormatSchemaParameters) if !ok { return false } return this.EqualVT(that) } func (this *FormatSchemaResult) EqualVT(that *FormatSchemaResult) bool { if this == that { return true } else if this == nil || that == nil { return false } if this.FormattedSchema != that.FormattedSchema { return false } return string(this.unknownFields) == string(that.unknownFields) } func (this *FormatSchemaResult) EqualMessageVT(thatMsg proto.Message) bool { that, ok := thatMsg.(*FormatSchemaResult) if !ok { return false } return this.EqualVT(that) } func (this *SchemaWarningsParameters) EqualVT(that *SchemaWarningsParameters) bool { if this == that { return true } else if this == nil || that == nil { return false } return string(this.unknownFields) == string(that.unknownFields) } func (this *SchemaWarningsParameters) EqualMessageVT(thatMsg proto.Message) bool { that, ok := thatMsg.(*SchemaWarningsParameters) if !ok { return false } return this.EqualVT(that) } func (this *SchemaWarningsResult) EqualVT(that *SchemaWarningsResult) bool { if this == that { return true } else if this == nil || that == nil { return false } if len(this.Warnings) != len(that.Warnings) { return false } for i, vx := range this.Warnings { vy := that.Warnings[i] if p, q := vx, vy; p != q { if p == nil { p = &DeveloperWarning{} } if q == nil { q = &DeveloperWarning{} } if !p.EqualVT(q) { return false } } } return string(this.unknownFields) == string(that.unknownFields) } func (this *SchemaWarningsResult) EqualMessageVT(thatMsg proto.Message) bool { that, ok := thatMsg.(*SchemaWarningsResult) if !ok { return false } return this.EqualVT(that) } func (m *DeveloperRequest) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } size := m.SizeVT() dAtA = make([]byte, size) n, err := m.MarshalToSizedBufferVT(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *DeveloperRequest) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } func (m *DeveloperRequest) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } i := len(dAtA) _ = i var l int _ = l if m.unknownFields != nil { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } if len(m.Operations) > 0 { for iNdEx := len(m.Operations) - 1; iNdEx >= 0; iNdEx-- { size, err := m.Operations[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } i -= size i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x12 } } if m.Context != nil { size, err := m.Context.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } i -= size i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *DeveloperResponse) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } size := m.SizeVT() dAtA = make([]byte, size) n, err := m.MarshalToSizedBufferVT(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *DeveloperResponse) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } func (m *DeveloperResponse) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } i := len(dAtA) _ = i var l int _ = l if m.unknownFields != nil { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } if m.OperationsResults != nil { size, err := m.OperationsResults.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } i -= size i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x1a } if m.DeveloperErrors != nil { size, err := m.DeveloperErrors.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } i -= size i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x12 } if len(m.InternalError) > 0 { i -= len(m.InternalError) copy(dAtA[i:], m.InternalError) i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.InternalError))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *RequestContext) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } size := m.SizeVT() dAtA = make([]byte, size) n, err := m.MarshalToSizedBufferVT(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *RequestContext) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } func (m *RequestContext) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } i := len(dAtA) _ = i var l int _ = l if m.unknownFields != nil { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } if len(m.Relationships) > 0 { for iNdEx := len(m.Relationships) - 1; iNdEx >= 0; iNdEx-- { if vtmsg, ok := interface{}(m.Relationships[iNdEx]).(interface { MarshalToSizedBufferVT([]byte) (int, error) }); ok { size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } i -= size i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) } else { encoded, err := proto.Marshal(m.Relationships[iNdEx]) if err != nil { return 0, err } i -= len(encoded) copy(dAtA[i:], encoded) i = protohelpers.EncodeVarint(dAtA, i, uint64(len(encoded))) } i-- dAtA[i] = 0x12 } } if len(m.Schema) > 0 { i -= len(m.Schema) copy(dAtA[i:], m.Schema) i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Schema))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *Operation) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } size := m.SizeVT() dAtA = make([]byte, size) n, err := m.MarshalToSizedBufferVT(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *Operation) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } func (m *Operation) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } i := len(dAtA) _ = i var l int _ = l if m.unknownFields != nil { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } if m.SchemaWarningsParameters != nil { size, err := m.SchemaWarningsParameters.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } i -= size i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x2a } if m.FormatSchemaParameters != nil { size, err := m.FormatSchemaParameters.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } i -= size i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x22 } if m.ValidationParameters != nil { size, err := m.ValidationParameters.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } i -= size i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x1a } if m.AssertionsParameters != nil { size, err := m.AssertionsParameters.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } i -= size i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x12 } if m.CheckParameters != nil { size, err := m.CheckParameters.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } i -= size i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *OperationsResults) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } size := m.SizeVT() dAtA = make([]byte, size) n, err := m.MarshalToSizedBufferVT(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *OperationsResults) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } func (m *OperationsResults) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } i := len(dAtA) _ = i var l int _ = l if m.unknownFields != nil { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } if len(m.Results) > 0 { for k := range m.Results { v := m.Results[k] baseI := i size, err := v.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } i -= size i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x12 i = protohelpers.EncodeVarint(dAtA, i, uint64(k)) i-- dAtA[i] = 0x8 i = protohelpers.EncodeVarint(dAtA, i, uint64(baseI-i)) i-- dAtA[i] = 0xa } } return len(dAtA) - i, nil } func (m *OperationResult) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } size := m.SizeVT() dAtA = make([]byte, size) n, err := m.MarshalToSizedBufferVT(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *OperationResult) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } func (m *OperationResult) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } i := len(dAtA) _ = i var l int _ = l if m.unknownFields != nil { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } if m.SchemaWarningsResult != nil { size, err := m.SchemaWarningsResult.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } i -= size i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x2a } if m.FormatSchemaResult != nil { size, err := m.FormatSchemaResult.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } i -= size i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x22 } if m.ValidationResult != nil { size, err := m.ValidationResult.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } i -= size i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x1a } if m.AssertionsResult != nil { size, err := m.AssertionsResult.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } i -= size i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x12 } if m.CheckResult != nil { size, err := m.CheckResult.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } i -= size i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *DeveloperWarning) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } size := m.SizeVT() dAtA = make([]byte, size) n, err := m.MarshalToSizedBufferVT(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *DeveloperWarning) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } func (m *DeveloperWarning) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } i := len(dAtA) _ = i var l int _ = l if m.unknownFields != nil { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } if len(m.SourceCode) > 0 { i -= len(m.SourceCode) copy(dAtA[i:], m.SourceCode) i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.SourceCode))) i-- dAtA[i] = 0x22 } if m.Column != 0 { i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Column)) i-- dAtA[i] = 0x18 } if m.Line != 0 { i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Line)) i-- dAtA[i] = 0x10 } if len(m.Message) > 0 { i -= len(m.Message) copy(dAtA[i:], m.Message) i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Message))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *DeveloperError) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } size := m.SizeVT() dAtA = make([]byte, size) n, err := m.MarshalToSizedBufferVT(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *DeveloperError) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } func (m *DeveloperError) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } i := len(dAtA) _ = i var l int _ = l if m.unknownFields != nil { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } if m.CheckResolvedDebugInformation != nil { if vtmsg, ok := interface{}(m.CheckResolvedDebugInformation).(interface { MarshalToSizedBufferVT([]byte) (int, error) }); ok { size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } i -= size i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) } else { encoded, err := proto.Marshal(m.CheckResolvedDebugInformation) if err != nil { return 0, err } i -= len(encoded) copy(dAtA[i:], encoded) i = protohelpers.EncodeVarint(dAtA, i, uint64(len(encoded))) } i-- dAtA[i] = 0x4a } if m.CheckDebugInformation != nil { if vtmsg, ok := interface{}(m.CheckDebugInformation).(interface { MarshalToSizedBufferVT([]byte) (int, error) }); ok { size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } i -= size i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) } else { encoded, err := proto.Marshal(m.CheckDebugInformation) if err != nil { return 0, err } i -= len(encoded) copy(dAtA[i:], encoded) i = protohelpers.EncodeVarint(dAtA, i, uint64(len(encoded))) } i-- dAtA[i] = 0x42 } if len(m.Context) > 0 { i -= len(m.Context) copy(dAtA[i:], m.Context) i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Context))) i-- dAtA[i] = 0x3a } if len(m.Path) > 0 { for iNdEx := len(m.Path) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.Path[iNdEx]) copy(dAtA[i:], m.Path[iNdEx]) i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Path[iNdEx]))) i-- dAtA[i] = 0x32 } } if m.Kind != 0 { i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Kind)) i-- dAtA[i] = 0x28 } if m.Source != 0 { i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Source)) i-- dAtA[i] = 0x20 } if m.Column != 0 { i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Column)) i-- dAtA[i] = 0x18 } if m.Line != 0 { i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Line)) i-- dAtA[i] = 0x10 } if len(m.Message) > 0 { i -= len(m.Message) copy(dAtA[i:], m.Message) i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.Message))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *DeveloperErrors) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } size := m.SizeVT() dAtA = make([]byte, size) n, err := m.MarshalToSizedBufferVT(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *DeveloperErrors) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } func (m *DeveloperErrors) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } i := len(dAtA) _ = i var l int _ = l if m.unknownFields != nil { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } if len(m.InputErrors) > 0 { for iNdEx := len(m.InputErrors) - 1; iNdEx >= 0; iNdEx-- { size, err := m.InputErrors[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } i -= size i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0xa } } return len(dAtA) - i, nil } func (m *CheckOperationParameters) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } size := m.SizeVT() dAtA = make([]byte, size) n, err := m.MarshalToSizedBufferVT(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *CheckOperationParameters) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } func (m *CheckOperationParameters) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } i := len(dAtA) _ = i var l int _ = l if m.unknownFields != nil { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } if m.CaveatContext != nil { size, err := (*structpb1.Struct)(m.CaveatContext).MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } i -= size i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x1a } if m.Subject != nil { if vtmsg, ok := interface{}(m.Subject).(interface { MarshalToSizedBufferVT([]byte) (int, error) }); ok { size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } i -= size i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) } else { encoded, err := proto.Marshal(m.Subject) if err != nil { return 0, err } i -= len(encoded) copy(dAtA[i:], encoded) i = protohelpers.EncodeVarint(dAtA, i, uint64(len(encoded))) } i-- dAtA[i] = 0x12 } if m.Resource != nil { if vtmsg, ok := interface{}(m.Resource).(interface { MarshalToSizedBufferVT([]byte) (int, error) }); ok { size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } i -= size i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) } else { encoded, err := proto.Marshal(m.Resource) if err != nil { return 0, err } i -= len(encoded) copy(dAtA[i:], encoded) i = protohelpers.EncodeVarint(dAtA, i, uint64(len(encoded))) } i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *CheckOperationsResult) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } size := m.SizeVT() dAtA = make([]byte, size) n, err := m.MarshalToSizedBufferVT(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *CheckOperationsResult) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } func (m *CheckOperationsResult) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } i := len(dAtA) _ = i var l int _ = l if m.unknownFields != nil { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } if m.ResolvedDebugInformation != nil { if vtmsg, ok := interface{}(m.ResolvedDebugInformation).(interface { MarshalToSizedBufferVT([]byte) (int, error) }); ok { size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } i -= size i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) } else { encoded, err := proto.Marshal(m.ResolvedDebugInformation) if err != nil { return 0, err } i -= len(encoded) copy(dAtA[i:], encoded) i = protohelpers.EncodeVarint(dAtA, i, uint64(len(encoded))) } i-- dAtA[i] = 0x2a } if m.PartialCaveatInfo != nil { size, err := m.PartialCaveatInfo.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } i -= size i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x22 } if m.DebugInformation != nil { if vtmsg, ok := interface{}(m.DebugInformation).(interface { MarshalToSizedBufferVT([]byte) (int, error) }); ok { size, err := vtmsg.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } i -= size i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) } else { encoded, err := proto.Marshal(m.DebugInformation) if err != nil { return 0, err } i -= len(encoded) copy(dAtA[i:], encoded) i = protohelpers.EncodeVarint(dAtA, i, uint64(len(encoded))) } i-- dAtA[i] = 0x1a } if m.CheckError != nil { size, err := m.CheckError.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } i -= size i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x12 } if m.Membership != 0 { i = protohelpers.EncodeVarint(dAtA, i, uint64(m.Membership)) i-- dAtA[i] = 0x8 } return len(dAtA) - i, nil } func (m *PartialCaveatInfo) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } size := m.SizeVT() dAtA = make([]byte, size) n, err := m.MarshalToSizedBufferVT(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *PartialCaveatInfo) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } func (m *PartialCaveatInfo) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } i := len(dAtA) _ = i var l int _ = l if m.unknownFields != nil { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } if len(m.MissingRequiredContext) > 0 { for iNdEx := len(m.MissingRequiredContext) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.MissingRequiredContext[iNdEx]) copy(dAtA[i:], m.MissingRequiredContext[iNdEx]) i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.MissingRequiredContext[iNdEx]))) i-- dAtA[i] = 0xa } } return len(dAtA) - i, nil } func (m *RunAssertionsParameters) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } size := m.SizeVT() dAtA = make([]byte, size) n, err := m.MarshalToSizedBufferVT(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *RunAssertionsParameters) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } func (m *RunAssertionsParameters) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } i := len(dAtA) _ = i var l int _ = l if m.unknownFields != nil { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } if len(m.AssertionsYaml) > 0 { i -= len(m.AssertionsYaml) copy(dAtA[i:], m.AssertionsYaml) i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.AssertionsYaml))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *RunAssertionsResult) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } size := m.SizeVT() dAtA = make([]byte, size) n, err := m.MarshalToSizedBufferVT(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *RunAssertionsResult) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } func (m *RunAssertionsResult) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } i := len(dAtA) _ = i var l int _ = l if m.unknownFields != nil { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } if len(m.ValidationErrors) > 0 { for iNdEx := len(m.ValidationErrors) - 1; iNdEx >= 0; iNdEx-- { size, err := m.ValidationErrors[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } i -= size i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x12 } } if m.InputError != nil { size, err := m.InputError.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } i -= size i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *RunValidationParameters) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } size := m.SizeVT() dAtA = make([]byte, size) n, err := m.MarshalToSizedBufferVT(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *RunValidationParameters) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } func (m *RunValidationParameters) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } i := len(dAtA) _ = i var l int _ = l if m.unknownFields != nil { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } if len(m.ValidationYaml) > 0 { i -= len(m.ValidationYaml) copy(dAtA[i:], m.ValidationYaml) i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.ValidationYaml))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *RunValidationResult) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } size := m.SizeVT() dAtA = make([]byte, size) n, err := m.MarshalToSizedBufferVT(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *RunValidationResult) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } func (m *RunValidationResult) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } i := len(dAtA) _ = i var l int _ = l if m.unknownFields != nil { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } if len(m.ValidationErrors) > 0 { for iNdEx := len(m.ValidationErrors) - 1; iNdEx >= 0; iNdEx-- { size, err := m.ValidationErrors[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } i -= size i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0x1a } } if len(m.UpdatedValidationYaml) > 0 { i -= len(m.UpdatedValidationYaml) copy(dAtA[i:], m.UpdatedValidationYaml) i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.UpdatedValidationYaml))) i-- dAtA[i] = 0x12 } if m.InputError != nil { size, err := m.InputError.MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } i -= size i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *FormatSchemaParameters) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } size := m.SizeVT() dAtA = make([]byte, size) n, err := m.MarshalToSizedBufferVT(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *FormatSchemaParameters) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } func (m *FormatSchemaParameters) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } i := len(dAtA) _ = i var l int _ = l if m.unknownFields != nil { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } return len(dAtA) - i, nil } func (m *FormatSchemaResult) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } size := m.SizeVT() dAtA = make([]byte, size) n, err := m.MarshalToSizedBufferVT(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *FormatSchemaResult) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } func (m *FormatSchemaResult) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } i := len(dAtA) _ = i var l int _ = l if m.unknownFields != nil { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } if len(m.FormattedSchema) > 0 { i -= len(m.FormattedSchema) copy(dAtA[i:], m.FormattedSchema) i = protohelpers.EncodeVarint(dAtA, i, uint64(len(m.FormattedSchema))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *SchemaWarningsParameters) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } size := m.SizeVT() dAtA = make([]byte, size) n, err := m.MarshalToSizedBufferVT(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *SchemaWarningsParameters) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } func (m *SchemaWarningsParameters) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } i := len(dAtA) _ = i var l int _ = l if m.unknownFields != nil { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } return len(dAtA) - i, nil } func (m *SchemaWarningsResult) MarshalVT() (dAtA []byte, err error) { if m == nil { return nil, nil } size := m.SizeVT() dAtA = make([]byte, size) n, err := m.MarshalToSizedBufferVT(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *SchemaWarningsResult) MarshalToVT(dAtA []byte) (int, error) { size := m.SizeVT() return m.MarshalToSizedBufferVT(dAtA[:size]) } func (m *SchemaWarningsResult) MarshalToSizedBufferVT(dAtA []byte) (int, error) { if m == nil { return 0, nil } i := len(dAtA) _ = i var l int _ = l if m.unknownFields != nil { i -= len(m.unknownFields) copy(dAtA[i:], m.unknownFields) } if len(m.Warnings) > 0 { for iNdEx := len(m.Warnings) - 1; iNdEx >= 0; iNdEx-- { size, err := m.Warnings[iNdEx].MarshalToSizedBufferVT(dAtA[:i]) if err != nil { return 0, err } i -= size i = protohelpers.EncodeVarint(dAtA, i, uint64(size)) i-- dAtA[i] = 0xa } } return len(dAtA) - i, nil } func (m *DeveloperRequest) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l if m.Context != nil { l = m.Context.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if len(m.Operations) > 0 { for _, e := range m.Operations { l = e.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } n += len(m.unknownFields) return n } func (m *DeveloperResponse) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.InternalError) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.DeveloperErrors != nil { l = m.DeveloperErrors.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.OperationsResults != nil { l = m.OperationsResults.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } func (m *RequestContext) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Schema) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if len(m.Relationships) > 0 { for _, e := range m.Relationships { if size, ok := interface{}(e).(interface { SizeVT() int }); ok { l = size.SizeVT() } else { l = proto.Size(e) } n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } n += len(m.unknownFields) return n } func (m *Operation) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l if m.CheckParameters != nil { l = m.CheckParameters.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.AssertionsParameters != nil { l = m.AssertionsParameters.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.ValidationParameters != nil { l = m.ValidationParameters.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.FormatSchemaParameters != nil { l = m.FormatSchemaParameters.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.SchemaWarningsParameters != nil { l = m.SchemaWarningsParameters.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } func (m *OperationsResults) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l if len(m.Results) > 0 { for k, v := range m.Results { _ = k _ = v l = 0 if v != nil { l = v.SizeVT() } l += 1 + protohelpers.SizeOfVarint(uint64(l)) mapEntrySize := 1 + protohelpers.SizeOfVarint(uint64(k)) + l n += mapEntrySize + 1 + protohelpers.SizeOfVarint(uint64(mapEntrySize)) } } n += len(m.unknownFields) return n } func (m *OperationResult) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l if m.CheckResult != nil { l = m.CheckResult.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.AssertionsResult != nil { l = m.AssertionsResult.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.ValidationResult != nil { l = m.ValidationResult.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.FormatSchemaResult != nil { l = m.FormatSchemaResult.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.SchemaWarningsResult != nil { l = m.SchemaWarningsResult.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } func (m *DeveloperWarning) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Message) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.Line != 0 { n += 1 + protohelpers.SizeOfVarint(uint64(m.Line)) } if m.Column != 0 { n += 1 + protohelpers.SizeOfVarint(uint64(m.Column)) } l = len(m.SourceCode) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } func (m *DeveloperError) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Message) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.Line != 0 { n += 1 + protohelpers.SizeOfVarint(uint64(m.Line)) } if m.Column != 0 { n += 1 + protohelpers.SizeOfVarint(uint64(m.Column)) } if m.Source != 0 { n += 1 + protohelpers.SizeOfVarint(uint64(m.Source)) } if m.Kind != 0 { n += 1 + protohelpers.SizeOfVarint(uint64(m.Kind)) } if len(m.Path) > 0 { for _, s := range m.Path { l = len(s) n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } l = len(m.Context) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.CheckDebugInformation != nil { if size, ok := interface{}(m.CheckDebugInformation).(interface { SizeVT() int }); ok { l = size.SizeVT() } else { l = proto.Size(m.CheckDebugInformation) } n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.CheckResolvedDebugInformation != nil { if size, ok := interface{}(m.CheckResolvedDebugInformation).(interface { SizeVT() int }); ok { l = size.SizeVT() } else { l = proto.Size(m.CheckResolvedDebugInformation) } n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } func (m *DeveloperErrors) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l if len(m.InputErrors) > 0 { for _, e := range m.InputErrors { l = e.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } n += len(m.unknownFields) return n } func (m *CheckOperationParameters) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l if m.Resource != nil { if size, ok := interface{}(m.Resource).(interface { SizeVT() int }); ok { l = size.SizeVT() } else { l = proto.Size(m.Resource) } n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.Subject != nil { if size, ok := interface{}(m.Subject).(interface { SizeVT() int }); ok { l = size.SizeVT() } else { l = proto.Size(m.Subject) } n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.CaveatContext != nil { l = (*structpb1.Struct)(m.CaveatContext).SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } func (m *CheckOperationsResult) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l if m.Membership != 0 { n += 1 + protohelpers.SizeOfVarint(uint64(m.Membership)) } if m.CheckError != nil { l = m.CheckError.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.DebugInformation != nil { if size, ok := interface{}(m.DebugInformation).(interface { SizeVT() int }); ok { l = size.SizeVT() } else { l = proto.Size(m.DebugInformation) } n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.PartialCaveatInfo != nil { l = m.PartialCaveatInfo.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if m.ResolvedDebugInformation != nil { if size, ok := interface{}(m.ResolvedDebugInformation).(interface { SizeVT() int }); ok { l = size.SizeVT() } else { l = proto.Size(m.ResolvedDebugInformation) } n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } func (m *PartialCaveatInfo) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l if len(m.MissingRequiredContext) > 0 { for _, s := range m.MissingRequiredContext { l = len(s) n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } n += len(m.unknownFields) return n } func (m *RunAssertionsParameters) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.AssertionsYaml) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } func (m *RunAssertionsResult) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l if m.InputError != nil { l = m.InputError.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if len(m.ValidationErrors) > 0 { for _, e := range m.ValidationErrors { l = e.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } n += len(m.unknownFields) return n } func (m *RunValidationParameters) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.ValidationYaml) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } func (m *RunValidationResult) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l if m.InputError != nil { l = m.InputError.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } l = len(m.UpdatedValidationYaml) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } if len(m.ValidationErrors) > 0 { for _, e := range m.ValidationErrors { l = e.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } n += len(m.unknownFields) return n } func (m *FormatSchemaParameters) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l n += len(m.unknownFields) return n } func (m *FormatSchemaResult) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.FormattedSchema) if l > 0 { n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } n += len(m.unknownFields) return n } func (m *SchemaWarningsParameters) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l n += len(m.unknownFields) return n } func (m *SchemaWarningsResult) SizeVT() (n int) { if m == nil { return 0 } var l int _ = l if len(m.Warnings) > 0 { for _, e := range m.Warnings { l = e.SizeVT() n += 1 + l + protohelpers.SizeOfVarint(uint64(l)) } } n += len(m.unknownFields) return n } func (m *DeveloperRequest) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: DeveloperRequest: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: DeveloperRequest: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Context", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } if m.Context == nil { m.Context = &RequestContext{} } if err := m.Context.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Operations", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } m.Operations = append(m.Operations, &Operation{}) if err := m.Operations[len(m.Operations)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *DeveloperResponse) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: DeveloperResponse: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: DeveloperResponse: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field InternalError", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } m.InternalError = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field DeveloperErrors", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } if m.DeveloperErrors == nil { m.DeveloperErrors = &DeveloperErrors{} } if err := m.DeveloperErrors.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field OperationsResults", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } if m.OperationsResults == nil { m.OperationsResults = &OperationsResults{} } if err := m.OperationsResults.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *RequestContext) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: RequestContext: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: RequestContext: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Schema", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } m.Schema = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Relationships", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } m.Relationships = append(m.Relationships, &v1.RelationTuple{}) if unmarshal, ok := interface{}(m.Relationships[len(m.Relationships)-1]).(interface { UnmarshalVT([]byte) error }); ok { if err := unmarshal.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } } else { if err := proto.Unmarshal(dAtA[iNdEx:postIndex], m.Relationships[len(m.Relationships)-1]); err != nil { return err } } iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *Operation) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: Operation: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: Operation: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field CheckParameters", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } if m.CheckParameters == nil { m.CheckParameters = &CheckOperationParameters{} } if err := m.CheckParameters.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AssertionsParameters", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } if m.AssertionsParameters == nil { m.AssertionsParameters = &RunAssertionsParameters{} } if err := m.AssertionsParameters.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ValidationParameters", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } if m.ValidationParameters == nil { m.ValidationParameters = &RunValidationParameters{} } if err := m.ValidationParameters.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field FormatSchemaParameters", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } if m.FormatSchemaParameters == nil { m.FormatSchemaParameters = &FormatSchemaParameters{} } if err := m.FormatSchemaParameters.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field SchemaWarningsParameters", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } if m.SchemaWarningsParameters == nil { m.SchemaWarningsParameters = &SchemaWarningsParameters{} } if err := m.SchemaWarningsParameters.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *OperationsResults) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: OperationsResults: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: OperationsResults: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Results", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } if m.Results == nil { m.Results = make(map[uint64]*OperationResult) } var mapkey uint64 var mapvalue *OperationResult for iNdEx < postIndex { entryPreIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) if fieldNum == 1 { for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ mapkey |= uint64(b&0x7F) << shift if b < 0x80 { break } } } else if fieldNum == 2 { var mapmsglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ mapmsglen |= int(b&0x7F) << shift if b < 0x80 { break } } if mapmsglen < 0 { return protohelpers.ErrInvalidLength } postmsgIndex := iNdEx + mapmsglen if postmsgIndex < 0 { return protohelpers.ErrInvalidLength } if postmsgIndex > l { return io.ErrUnexpectedEOF } mapvalue = &OperationResult{} if err := mapvalue.UnmarshalVT(dAtA[iNdEx:postmsgIndex]); err != nil { return err } iNdEx = postmsgIndex } else { iNdEx = entryPreIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > postIndex { return io.ErrUnexpectedEOF } iNdEx += skippy } } m.Results[mapkey] = mapvalue iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *OperationResult) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: OperationResult: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: OperationResult: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field CheckResult", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } if m.CheckResult == nil { m.CheckResult = &CheckOperationsResult{} } if err := m.CheckResult.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AssertionsResult", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } if m.AssertionsResult == nil { m.AssertionsResult = &RunAssertionsResult{} } if err := m.AssertionsResult.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ValidationResult", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } if m.ValidationResult == nil { m.ValidationResult = &RunValidationResult{} } if err := m.ValidationResult.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field FormatSchemaResult", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } if m.FormatSchemaResult == nil { m.FormatSchemaResult = &FormatSchemaResult{} } if err := m.FormatSchemaResult.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field SchemaWarningsResult", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } if m.SchemaWarningsResult == nil { m.SchemaWarningsResult = &SchemaWarningsResult{} } if err := m.SchemaWarningsResult.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *DeveloperWarning) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: DeveloperWarning: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: DeveloperWarning: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } m.Message = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Line", wireType) } m.Line = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Line |= uint32(b&0x7F) << shift if b < 0x80 { break } } case 3: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Column", wireType) } m.Column = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Column |= uint32(b&0x7F) << shift if b < 0x80 { break } } case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field SourceCode", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } m.SourceCode = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *DeveloperError) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: DeveloperError: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: DeveloperError: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Message", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } m.Message = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Line", wireType) } m.Line = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Line |= uint32(b&0x7F) << shift if b < 0x80 { break } } case 3: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Column", wireType) } m.Column = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Column |= uint32(b&0x7F) << shift if b < 0x80 { break } } case 4: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Source", wireType) } m.Source = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Source |= DeveloperError_Source(b&0x7F) << shift if b < 0x80 { break } } case 5: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType) } m.Kind = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Kind |= DeveloperError_ErrorKind(b&0x7F) << shift if b < 0x80 { break } } case 6: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } m.Path = append(m.Path, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 7: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Context", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } m.Context = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 8: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field CheckDebugInformation", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } if m.CheckDebugInformation == nil { m.CheckDebugInformation = &v11.DebugInformation{} } if unmarshal, ok := interface{}(m.CheckDebugInformation).(interface { UnmarshalVT([]byte) error }); ok { if err := unmarshal.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } } else { if err := proto.Unmarshal(dAtA[iNdEx:postIndex], m.CheckDebugInformation); err != nil { return err } } iNdEx = postIndex case 9: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field CheckResolvedDebugInformation", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } if m.CheckResolvedDebugInformation == nil { m.CheckResolvedDebugInformation = &v12.DebugInformation{} } if unmarshal, ok := interface{}(m.CheckResolvedDebugInformation).(interface { UnmarshalVT([]byte) error }); ok { if err := unmarshal.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } } else { if err := proto.Unmarshal(dAtA[iNdEx:postIndex], m.CheckResolvedDebugInformation); err != nil { return err } } iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *DeveloperErrors) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: DeveloperErrors: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: DeveloperErrors: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field InputErrors", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } m.InputErrors = append(m.InputErrors, &DeveloperError{}) if err := m.InputErrors[len(m.InputErrors)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *CheckOperationParameters) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: CheckOperationParameters: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: CheckOperationParameters: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Resource", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } if m.Resource == nil { m.Resource = &v1.ObjectAndRelation{} } if unmarshal, ok := interface{}(m.Resource).(interface { UnmarshalVT([]byte) error }); ok { if err := unmarshal.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } } else { if err := proto.Unmarshal(dAtA[iNdEx:postIndex], m.Resource); err != nil { return err } } iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Subject", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } if m.Subject == nil { m.Subject = &v1.ObjectAndRelation{} } if unmarshal, ok := interface{}(m.Subject).(interface { UnmarshalVT([]byte) error }); ok { if err := unmarshal.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } } else { if err := proto.Unmarshal(dAtA[iNdEx:postIndex], m.Subject); err != nil { return err } } iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field CaveatContext", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } if m.CaveatContext == nil { m.CaveatContext = &structpb.Struct{} } if err := (*structpb1.Struct)(m.CaveatContext).UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *CheckOperationsResult) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: CheckOperationsResult: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: CheckOperationsResult: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Membership", wireType) } m.Membership = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Membership |= CheckOperationsResult_Membership(b&0x7F) << shift if b < 0x80 { break } } case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field CheckError", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } if m.CheckError == nil { m.CheckError = &DeveloperError{} } if err := m.CheckError.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field DebugInformation", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } if m.DebugInformation == nil { m.DebugInformation = &v11.DebugInformation{} } if unmarshal, ok := interface{}(m.DebugInformation).(interface { UnmarshalVT([]byte) error }); ok { if err := unmarshal.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } } else { if err := proto.Unmarshal(dAtA[iNdEx:postIndex], m.DebugInformation); err != nil { return err } } iNdEx = postIndex case 4: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field PartialCaveatInfo", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } if m.PartialCaveatInfo == nil { m.PartialCaveatInfo = &PartialCaveatInfo{} } if err := m.PartialCaveatInfo.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 5: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ResolvedDebugInformation", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } if m.ResolvedDebugInformation == nil { m.ResolvedDebugInformation = &v12.DebugInformation{} } if unmarshal, ok := interface{}(m.ResolvedDebugInformation).(interface { UnmarshalVT([]byte) error }); ok { if err := unmarshal.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } } else { if err := proto.Unmarshal(dAtA[iNdEx:postIndex], m.ResolvedDebugInformation); err != nil { return err } } iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *PartialCaveatInfo) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: PartialCaveatInfo: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: PartialCaveatInfo: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field MissingRequiredContext", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } m.MissingRequiredContext = append(m.MissingRequiredContext, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *RunAssertionsParameters) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: RunAssertionsParameters: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: RunAssertionsParameters: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field AssertionsYaml", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } m.AssertionsYaml = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *RunAssertionsResult) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: RunAssertionsResult: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: RunAssertionsResult: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field InputError", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } if m.InputError == nil { m.InputError = &DeveloperError{} } if err := m.InputError.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ValidationErrors", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } m.ValidationErrors = append(m.ValidationErrors, &DeveloperError{}) if err := m.ValidationErrors[len(m.ValidationErrors)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *RunValidationParameters) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: RunValidationParameters: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: RunValidationParameters: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ValidationYaml", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } m.ValidationYaml = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *RunValidationResult) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: RunValidationResult: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: RunValidationResult: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field InputError", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } if m.InputError == nil { m.InputError = &DeveloperError{} } if err := m.InputError.UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field UpdatedValidationYaml", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } m.UpdatedValidationYaml = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 3: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field ValidationErrors", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } m.ValidationErrors = append(m.ValidationErrors, &DeveloperError{}) if err := m.ValidationErrors[len(m.ValidationErrors)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *FormatSchemaParameters) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: FormatSchemaParameters: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: FormatSchemaParameters: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *FormatSchemaResult) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: FormatSchemaResult: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: FormatSchemaResult: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field FormattedSchema", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ stringLen |= uint64(b&0x7F) << shift if b < 0x80 { break } } intStringLen := int(stringLen) if intStringLen < 0 { return protohelpers.ErrInvalidLength } postIndex := iNdEx + intStringLen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } m.FormattedSchema = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *SchemaWarningsParameters) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: SchemaWarningsParameters: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: SchemaWarningsParameters: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *SchemaWarningsResult) UnmarshalVT(dAtA []byte) error { l := len(dAtA) iNdEx := 0 for iNdEx < l { preIndex := iNdEx var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= uint64(b&0x7F) << shift if b < 0x80 { break } } fieldNum := int32(wire >> 3) wireType := int(wire & 0x7) if wireType == 4 { return fmt.Errorf("proto: SchemaWarningsResult: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: SchemaWarningsResult: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Warnings", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return protohelpers.ErrIntOverflow } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return protohelpers.ErrInvalidLength } postIndex := iNdEx + msglen if postIndex < 0 { return protohelpers.ErrInvalidLength } if postIndex > l { return io.ErrUnexpectedEOF } m.Warnings = append(m.Warnings, &DeveloperWarning{}) if err := m.Warnings[len(m.Warnings)-1].UnmarshalVT(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := protohelpers.Skip(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return protohelpers.ErrInvalidLength } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } m.unknownFields = append(m.unknownFields, dAtA[iNdEx:iNdEx+skippy]...) iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil }