// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: pkg/querier/queryrange/queryrangebase/definitions/definitions.proto package definitions import ( fmt "fmt" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" io "io" math "math" math_bits "math/bits" reflect "reflect" strings "strings" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. // A compilation error at this line likely means your copy of the // proto package needs to be updated. const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // Defined here to prevent circular imports between logproto & queryrangebase type CachingOptions struct { Disabled bool `protobuf:"varint,1,opt,name=disabled,proto3" json:"disabled,omitempty"` } func (m *CachingOptions) Reset() { *m = CachingOptions{} } func (*CachingOptions) ProtoMessage() {} func (*CachingOptions) Descriptor() ([]byte, []int) { return fileDescriptor_d1a37772b6ae2c5c, []int{0} } func (m *CachingOptions) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *CachingOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_CachingOptions.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *CachingOptions) XXX_Merge(src proto.Message) { xxx_messageInfo_CachingOptions.Merge(m, src) } func (m *CachingOptions) XXX_Size() int { return m.Size() } func (m *CachingOptions) XXX_DiscardUnknown() { xxx_messageInfo_CachingOptions.DiscardUnknown(m) } var xxx_messageInfo_CachingOptions proto.InternalMessageInfo func (m *CachingOptions) GetDisabled() bool { if m != nil { return m.Disabled } return false } type PrometheusRequestHeader struct { Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"-"` Values []string `protobuf:"bytes,2,rep,name=Values,proto3" json:"-"` } func (m *PrometheusRequestHeader) Reset() { *m = PrometheusRequestHeader{} } func (*PrometheusRequestHeader) ProtoMessage() {} func (*PrometheusRequestHeader) Descriptor() ([]byte, []int) { return fileDescriptor_d1a37772b6ae2c5c, []int{1} } func (m *PrometheusRequestHeader) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *PrometheusRequestHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_PrometheusRequestHeader.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *PrometheusRequestHeader) XXX_Merge(src proto.Message) { xxx_messageInfo_PrometheusRequestHeader.Merge(m, src) } func (m *PrometheusRequestHeader) XXX_Size() int { return m.Size() } func (m *PrometheusRequestHeader) XXX_DiscardUnknown() { xxx_messageInfo_PrometheusRequestHeader.DiscardUnknown(m) } var xxx_messageInfo_PrometheusRequestHeader proto.InternalMessageInfo func (m *PrometheusRequestHeader) GetName() string { if m != nil { return m.Name } return "" } func (m *PrometheusRequestHeader) GetValues() []string { if m != nil { return m.Values } return nil } type PrometheusResponseHeader struct { Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"-"` Values []string `protobuf:"bytes,2,rep,name=Values,proto3" json:"-"` } func (m *PrometheusResponseHeader) Reset() { *m = PrometheusResponseHeader{} } func (*PrometheusResponseHeader) ProtoMessage() {} func (*PrometheusResponseHeader) Descriptor() ([]byte, []int) { return fileDescriptor_d1a37772b6ae2c5c, []int{2} } func (m *PrometheusResponseHeader) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *PrometheusResponseHeader) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_PrometheusResponseHeader.Marshal(b, m, deterministic) } else { b = b[:cap(b)] n, err := m.MarshalToSizedBuffer(b) if err != nil { return nil, err } return b[:n], nil } } func (m *PrometheusResponseHeader) XXX_Merge(src proto.Message) { xxx_messageInfo_PrometheusResponseHeader.Merge(m, src) } func (m *PrometheusResponseHeader) XXX_Size() int { return m.Size() } func (m *PrometheusResponseHeader) XXX_DiscardUnknown() { xxx_messageInfo_PrometheusResponseHeader.DiscardUnknown(m) } var xxx_messageInfo_PrometheusResponseHeader proto.InternalMessageInfo func (m *PrometheusResponseHeader) GetName() string { if m != nil { return m.Name } return "" } func (m *PrometheusResponseHeader) GetValues() []string { if m != nil { return m.Values } return nil } func init() { proto.RegisterType((*CachingOptions)(nil), "definitions.CachingOptions") proto.RegisterType((*PrometheusRequestHeader)(nil), "definitions.PrometheusRequestHeader") proto.RegisterType((*PrometheusResponseHeader)(nil), "definitions.PrometheusResponseHeader") } func init() { proto.RegisterFile("pkg/querier/queryrange/queryrangebase/definitions/definitions.proto", fileDescriptor_d1a37772b6ae2c5c) } var fileDescriptor_d1a37772b6ae2c5c = []byte{ // 298 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x51, 0xbb, 0x4e, 0x03, 0x31, 0x10, 0xb4, 0x79, 0x44, 0xc1, 0x48, 0x14, 0xd7, 0x10, 0x22, 0xb1, 0x44, 0xa9, 0x28, 0x48, 0x5c, 0xf0, 0x07, 0x49, 0x03, 0x0d, 0xa0, 0x80, 0x28, 0xe8, 0x7c, 0xb9, 0x8d, 0x63, 0x25, 0xb1, 0x2f, 0xf6, 0xb9, 0xa0, 0x82, 0x4f, 0xe0, 0x33, 0xf8, 0x14, 0xca, 0x94, 0xa9, 0x10, 0xf1, 0x35, 0x88, 0x2a, 0x9f, 0x80, 0x64, 0x10, 0x5c, 0x8b, 0xa8, 0x76, 0x66, 0x76, 0x67, 0x8a, 0x59, 0xd6, 0xcf, 0x27, 0x92, 0xcf, 0x3d, 0x5a, 0x85, 0x36, 0xce, 0x7b, 0x2b, 0xb4, 0xc4, 0x0a, 0x4c, 0x85, 0x43, 0x9e, 0xe1, 0x48, 0x69, 0x55, 0x28, 0xa3, 0x5d, 0x15, 0x77, 0x73, 0x6b, 0x0a, 0x93, 0xec, 0x56, 0xa4, 0x66, 0x47, 0xaa, 0x62, 0xec, 0xd3, 0xee, 0xd0, 0xcc, 0xb8, 0x34, 0xd2, 0xf0, 0x78, 0x93, 0xfa, 0x51, 0x64, 0x91, 0x44, 0xf4, 0xe5, 0x6d, 0x9f, 0xb0, 0xbd, 0xbe, 0x18, 0x8e, 0x95, 0x96, 0x97, 0x79, 0x0c, 0x48, 0x9a, 0xac, 0x9e, 0x29, 0x27, 0xd2, 0x29, 0x66, 0x0d, 0xda, 0xa2, 0xc7, 0xf5, 0xc1, 0x0f, 0x6f, 0x5f, 0xb3, 0xfd, 0x2b, 0x6b, 0x66, 0x58, 0x8c, 0xd1, 0xbb, 0x01, 0xce, 0x3d, 0xba, 0xe2, 0x0c, 0x45, 0x86, 0x36, 0x39, 0x60, 0x5b, 0x17, 0x62, 0x86, 0xd1, 0xb2, 0xd3, 0xdb, 0xfe, 0x78, 0x3d, 0xa2, 0x9d, 0x41, 0x94, 0x92, 0x43, 0x56, 0xbb, 0x15, 0x53, 0x8f, 0xae, 0xb1, 0xd1, 0xda, 0xfc, 0x5d, 0x7e, 0x8b, 0xed, 0x1b, 0xd6, 0xa8, 0x86, 0xba, 0xdc, 0x68, 0x87, 0xff, 0x4d, 0xed, 0x3d, 0x2c, 0x56, 0x40, 0x96, 0x2b, 0x20, 0xeb, 0x15, 0xd0, 0xc7, 0x00, 0xf4, 0x39, 0x00, 0x7d, 0x09, 0x40, 0x17, 0x01, 0xe8, 0x5b, 0x00, 0xfa, 0x1e, 0x80, 0xac, 0x03, 0xd0, 0xa7, 0x12, 0xc8, 0xa2, 0x04, 0xb2, 0x2c, 0x81, 0xdc, 0x9d, 0x57, 0xdb, 0xb3, 0x62, 0x24, 0xb4, 0xe0, 0x53, 0x33, 0x51, 0xfc, 0xcf, 0x7f, 0x4a, 0x6b, 0xb1, 0xe0, 0xd3, 0xcf, 0x00, 0x00, 0x00, 0xff, 0xff, 0xd8, 0xca, 0xce, 0x76, 0xe3, 0x01, 0x00, 0x00, } func (this *CachingOptions) Equal(that interface{}) bool { if that == nil { return this == nil } that1, ok := that.(*CachingOptions) if !ok { that2, ok := that.(CachingOptions) if ok { that1 = &that2 } else { return false } } if that1 == nil { return this == nil } else if this == nil { return false } if this.Disabled != that1.Disabled { return false } return true } func (this *PrometheusRequestHeader) Equal(that interface{}) bool { if that == nil { return this == nil } that1, ok := that.(*PrometheusRequestHeader) if !ok { that2, ok := that.(PrometheusRequestHeader) if ok { that1 = &that2 } else { return false } } if that1 == nil { return this == nil } else if this == nil { return false } if this.Name != that1.Name { return false } if len(this.Values) != len(that1.Values) { return false } for i := range this.Values { if this.Values[i] != that1.Values[i] { return false } } return true } func (this *PrometheusResponseHeader) Equal(that interface{}) bool { if that == nil { return this == nil } that1, ok := that.(*PrometheusResponseHeader) if !ok { that2, ok := that.(PrometheusResponseHeader) if ok { that1 = &that2 } else { return false } } if that1 == nil { return this == nil } else if this == nil { return false } if this.Name != that1.Name { return false } if len(this.Values) != len(that1.Values) { return false } for i := range this.Values { if this.Values[i] != that1.Values[i] { return false } } return true } func (this *CachingOptions) GoString() string { if this == nil { return "nil" } s := make([]string, 0, 5) s = append(s, "&definitions.CachingOptions{") s = append(s, "Disabled: "+fmt.Sprintf("%#v", this.Disabled)+",\n") s = append(s, "}") return strings.Join(s, "") } func (this *PrometheusRequestHeader) GoString() string { if this == nil { return "nil" } s := make([]string, 0, 6) s = append(s, "&definitions.PrometheusRequestHeader{") s = append(s, "Name: "+fmt.Sprintf("%#v", this.Name)+",\n") s = append(s, "Values: "+fmt.Sprintf("%#v", this.Values)+",\n") s = append(s, "}") return strings.Join(s, "") } func (this *PrometheusResponseHeader) GoString() string { if this == nil { return "nil" } s := make([]string, 0, 6) s = append(s, "&definitions.PrometheusResponseHeader{") s = append(s, "Name: "+fmt.Sprintf("%#v", this.Name)+",\n") s = append(s, "Values: "+fmt.Sprintf("%#v", this.Values)+",\n") s = append(s, "}") return strings.Join(s, "") } func valueToGoStringDefinitions(v interface{}, typ string) string { rv := reflect.ValueOf(v) if rv.IsNil() { return "nil" } pv := reflect.Indirect(rv).Interface() return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv) } func (m *CachingOptions) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *CachingOptions) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *CachingOptions) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Disabled { i-- if m.Disabled { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x8 } return len(dAtA) - i, nil } func (m *PrometheusRequestHeader) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *PrometheusRequestHeader) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *PrometheusRequestHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Values) > 0 { for iNdEx := len(m.Values) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.Values[iNdEx]) copy(dAtA[i:], m.Values[iNdEx]) i = encodeVarintDefinitions(dAtA, i, uint64(len(m.Values[iNdEx]))) i-- dAtA[i] = 0x12 } } if len(m.Name) > 0 { i -= len(m.Name) copy(dAtA[i:], m.Name) i = encodeVarintDefinitions(dAtA, i, uint64(len(m.Name))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *PrometheusResponseHeader) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) n, err := m.MarshalToSizedBuffer(dAtA[:size]) if err != nil { return nil, err } return dAtA[:n], nil } func (m *PrometheusResponseHeader) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *PrometheusResponseHeader) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Values) > 0 { for iNdEx := len(m.Values) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.Values[iNdEx]) copy(dAtA[i:], m.Values[iNdEx]) i = encodeVarintDefinitions(dAtA, i, uint64(len(m.Values[iNdEx]))) i-- dAtA[i] = 0x12 } } if len(m.Name) > 0 { i -= len(m.Name) copy(dAtA[i:], m.Name) i = encodeVarintDefinitions(dAtA, i, uint64(len(m.Name))) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func encodeVarintDefinitions(dAtA []byte, offset int, v uint64) int { offset -= sovDefinitions(v) base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) return base } func (m *CachingOptions) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Disabled { n += 2 } return n } func (m *PrometheusRequestHeader) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Name) if l > 0 { n += 1 + l + sovDefinitions(uint64(l)) } if len(m.Values) > 0 { for _, s := range m.Values { l = len(s) n += 1 + l + sovDefinitions(uint64(l)) } } return n } func (m *PrometheusResponseHeader) Size() (n int) { if m == nil { return 0 } var l int _ = l l = len(m.Name) if l > 0 { n += 1 + l + sovDefinitions(uint64(l)) } if len(m.Values) > 0 { for _, s := range m.Values { l = len(s) n += 1 + l + sovDefinitions(uint64(l)) } } return n } func sovDefinitions(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } func sozDefinitions(x uint64) (n int) { return sovDefinitions(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } func (this *CachingOptions) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&CachingOptions{`, `Disabled:` + fmt.Sprintf("%v", this.Disabled) + `,`, `}`, }, "") return s } func (this *PrometheusRequestHeader) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&PrometheusRequestHeader{`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `Values:` + fmt.Sprintf("%v", this.Values) + `,`, `}`, }, "") return s } func (this *PrometheusResponseHeader) String() string { if this == nil { return "nil" } s := strings.Join([]string{`&PrometheusResponseHeader{`, `Name:` + fmt.Sprintf("%v", this.Name) + `,`, `Values:` + fmt.Sprintf("%v", this.Values) + `,`, `}`, }, "") return s } func valueToStringDefinitions(v interface{}) string { rv := reflect.ValueOf(v) if rv.IsNil() { return "nil" } pv := reflect.Indirect(rv).Interface() return fmt.Sprintf("*%v", pv) } func (m *CachingOptions) Unmarshal(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 ErrIntOverflowDefinitions } 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: CachingOptions: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: CachingOptions: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Disabled", wireType) } var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowDefinitions } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ v |= int(b&0x7F) << shift if b < 0x80 { break } } m.Disabled = bool(v != 0) default: iNdEx = preIndex skippy, err := skipDefinitions(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthDefinitions } if (iNdEx + skippy) < 0 { return ErrInvalidLengthDefinitions } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *PrometheusRequestHeader) Unmarshal(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 ErrIntOverflowDefinitions } 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: PrometheusRequestHeader: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: PrometheusRequestHeader: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowDefinitions } 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 ErrInvalidLengthDefinitions } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthDefinitions } if postIndex > l { return io.ErrUnexpectedEOF } m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Values", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowDefinitions } 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 ErrInvalidLengthDefinitions } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthDefinitions } if postIndex > l { return io.ErrUnexpectedEOF } m.Values = append(m.Values, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipDefinitions(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthDefinitions } if (iNdEx + skippy) < 0 { return ErrInvalidLengthDefinitions } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *PrometheusResponseHeader) Unmarshal(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 ErrIntOverflowDefinitions } 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: PrometheusResponseHeader: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: PrometheusResponseHeader: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowDefinitions } 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 ErrInvalidLengthDefinitions } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthDefinitions } if postIndex > l { return io.ErrUnexpectedEOF } m.Name = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Values", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowDefinitions } 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 ErrInvalidLengthDefinitions } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthDefinitions } if postIndex > l { return io.ErrUnexpectedEOF } m.Values = append(m.Values, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipDefinitions(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { return ErrInvalidLengthDefinitions } if (iNdEx + skippy) < 0 { return ErrInvalidLengthDefinitions } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func skipDefinitions(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowDefinitions } if iNdEx >= l { return 0, io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ wire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } wireType := int(wire & 0x7) switch wireType { case 0: for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowDefinitions } if iNdEx >= l { return 0, io.ErrUnexpectedEOF } iNdEx++ if dAtA[iNdEx-1] < 0x80 { break } } return iNdEx, nil case 1: iNdEx += 8 return iNdEx, nil case 2: var length int for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowDefinitions } if iNdEx >= l { return 0, io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ length |= (int(b) & 0x7F) << shift if b < 0x80 { break } } if length < 0 { return 0, ErrInvalidLengthDefinitions } iNdEx += length if iNdEx < 0 { return 0, ErrInvalidLengthDefinitions } return iNdEx, nil case 3: for { var innerWire uint64 var start int = iNdEx for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowDefinitions } if iNdEx >= l { return 0, io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ innerWire |= (uint64(b) & 0x7F) << shift if b < 0x80 { break } } innerWireType := int(innerWire & 0x7) if innerWireType == 4 { break } next, err := skipDefinitions(dAtA[start:]) if err != nil { return 0, err } iNdEx = start + next if iNdEx < 0 { return 0, ErrInvalidLengthDefinitions } } return iNdEx, nil case 4: return iNdEx, nil case 5: iNdEx += 4 return iNdEx, nil default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } } panic("unreachable") } var ( ErrInvalidLengthDefinitions = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowDefinitions = fmt.Errorf("proto: integer overflow") )