// Code generated by protoc-gen-gogo. DO NOT EDIT. // source: basic.proto package pb import ( fmt "fmt" io "io" math "math" math_bits "math/bits" proto "github.com/gogo/protobuf/proto" ) // Reference imports to suppress errors if they are not otherwise used. var ( _ = proto.Marshal _ = fmt.Errorf _ = 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 type Uint64Slice struct { Slice []uint64 `protobuf:"varint,1,rep,packed,name=slice,proto3" json:"slice,omitempty"` } func (m *Uint64Slice) Reset() { *m = Uint64Slice{} } func (m *Uint64Slice) String() string { return proto.CompactTextString(m) } func (*Uint64Slice) ProtoMessage() {} func (*Uint64Slice) Descriptor() ([]byte, []int) { return fileDescriptor_0cc45f6ac745dd88, []int{0} } func (m *Uint64Slice) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *Uint64Slice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_Uint64Slice.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 *Uint64Slice) XXX_Merge(src proto.Message) { xxx_messageInfo_Uint64Slice.Merge(m, src) } func (m *Uint64Slice) XXX_Size() int { return m.Size() } func (m *Uint64Slice) XXX_DiscardUnknown() { xxx_messageInfo_Uint64Slice.DiscardUnknown(m) } var xxx_messageInfo_Uint64Slice proto.InternalMessageInfo func (m *Uint64Slice) GetSlice() []uint64 { if m != nil { return m.Slice } return nil } type StringUint64Map struct { Keys []string `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"` Vals []uint64 `protobuf:"varint,2,rep,packed,name=vals,proto3" json:"vals,omitempty"` } func (m *StringUint64Map) Reset() { *m = StringUint64Map{} } func (m *StringUint64Map) String() string { return proto.CompactTextString(m) } func (*StringUint64Map) ProtoMessage() {} func (*StringUint64Map) Descriptor() ([]byte, []int) { return fileDescriptor_0cc45f6ac745dd88, []int{1} } func (m *StringUint64Map) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *StringUint64Map) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_StringUint64Map.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 *StringUint64Map) XXX_Merge(src proto.Message) { xxx_messageInfo_StringUint64Map.Merge(m, src) } func (m *StringUint64Map) XXX_Size() int { return m.Size() } func (m *StringUint64Map) XXX_DiscardUnknown() { xxx_messageInfo_StringUint64Map.DiscardUnknown(m) } var xxx_messageInfo_StringUint64Map proto.InternalMessageInfo func (m *StringUint64Map) GetKeys() []string { if m != nil { return m.Keys } return nil } func (m *StringUint64Map) GetVals() []uint64 { if m != nil { return m.Vals } return nil } type StringUint64SliceMap struct { Keys []string `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"` Vals []*Uint64Slice `protobuf:"bytes,2,rep,name=vals,proto3" json:"vals,omitempty"` } func (m *StringUint64SliceMap) Reset() { *m = StringUint64SliceMap{} } func (m *StringUint64SliceMap) String() string { return proto.CompactTextString(m) } func (*StringUint64SliceMap) ProtoMessage() {} func (*StringUint64SliceMap) Descriptor() ([]byte, []int) { return fileDescriptor_0cc45f6ac745dd88, []int{2} } func (m *StringUint64SliceMap) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *StringUint64SliceMap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_StringUint64SliceMap.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 *StringUint64SliceMap) XXX_Merge(src proto.Message) { xxx_messageInfo_StringUint64SliceMap.Merge(m, src) } func (m *StringUint64SliceMap) XXX_Size() int { return m.Size() } func (m *StringUint64SliceMap) XXX_DiscardUnknown() { xxx_messageInfo_StringUint64SliceMap.DiscardUnknown(m) } var xxx_messageInfo_StringUint64SliceMap proto.InternalMessageInfo func (m *StringUint64SliceMap) GetKeys() []string { if m != nil { return m.Keys } return nil } func (m *StringUint64SliceMap) GetVals() []*Uint64Slice { if m != nil { return m.Vals } return nil } type VerifiedIndex struct { Index uint64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` Valid bool `protobuf:"varint,2,opt,name=valid,proto3" json:"valid,omitempty"` } func (m *VerifiedIndex) Reset() { *m = VerifiedIndex{} } func (m *VerifiedIndex) String() string { return proto.CompactTextString(m) } func (*VerifiedIndex) ProtoMessage() {} func (*VerifiedIndex) Descriptor() ([]byte, []int) { return fileDescriptor_0cc45f6ac745dd88, []int{3} } func (m *VerifiedIndex) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *VerifiedIndex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_VerifiedIndex.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 *VerifiedIndex) XXX_Merge(src proto.Message) { xxx_messageInfo_VerifiedIndex.Merge(m, src) } func (m *VerifiedIndex) XXX_Size() int { return m.Size() } func (m *VerifiedIndex) XXX_DiscardUnknown() { xxx_messageInfo_VerifiedIndex.DiscardUnknown(m) } var xxx_messageInfo_VerifiedIndex proto.InternalMessageInfo func (m *VerifiedIndex) GetIndex() uint64 { if m != nil { return m.Index } return 0 } func (m *VerifiedIndex) GetValid() bool { if m != nil { return m.Valid } return false } type VerifiedIndexSlice struct { Slice []*VerifiedIndex `protobuf:"bytes,1,rep,name=slice,proto3" json:"slice,omitempty"` } func (m *VerifiedIndexSlice) Reset() { *m = VerifiedIndexSlice{} } func (m *VerifiedIndexSlice) String() string { return proto.CompactTextString(m) } func (*VerifiedIndexSlice) ProtoMessage() {} func (*VerifiedIndexSlice) Descriptor() ([]byte, []int) { return fileDescriptor_0cc45f6ac745dd88, []int{4} } func (m *VerifiedIndexSlice) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *VerifiedIndexSlice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_VerifiedIndexSlice.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 *VerifiedIndexSlice) XXX_Merge(src proto.Message) { xxx_messageInfo_VerifiedIndexSlice.Merge(m, src) } func (m *VerifiedIndexSlice) XXX_Size() int { return m.Size() } func (m *VerifiedIndexSlice) XXX_DiscardUnknown() { xxx_messageInfo_VerifiedIndexSlice.DiscardUnknown(m) } var xxx_messageInfo_VerifiedIndexSlice proto.InternalMessageInfo func (m *VerifiedIndexSlice) GetSlice() []*VerifiedIndex { if m != nil { return m.Slice } return nil } type StringVerifiedIndexMap struct { Keys []string `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"` Vals []*VerifiedIndex `protobuf:"bytes,2,rep,name=vals,proto3" json:"vals,omitempty"` } func (m *StringVerifiedIndexMap) Reset() { *m = StringVerifiedIndexMap{} } func (m *StringVerifiedIndexMap) String() string { return proto.CompactTextString(m) } func (*StringVerifiedIndexMap) ProtoMessage() {} func (*StringVerifiedIndexMap) Descriptor() ([]byte, []int) { return fileDescriptor_0cc45f6ac745dd88, []int{5} } func (m *StringVerifiedIndexMap) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *StringVerifiedIndexMap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_StringVerifiedIndexMap.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 *StringVerifiedIndexMap) XXX_Merge(src proto.Message) { xxx_messageInfo_StringVerifiedIndexMap.Merge(m, src) } func (m *StringVerifiedIndexMap) XXX_Size() int { return m.Size() } func (m *StringVerifiedIndexMap) XXX_DiscardUnknown() { xxx_messageInfo_StringVerifiedIndexMap.DiscardUnknown(m) } var xxx_messageInfo_StringVerifiedIndexMap proto.InternalMessageInfo func (m *StringVerifiedIndexMap) GetKeys() []string { if m != nil { return m.Keys } return nil } func (m *StringVerifiedIndexMap) GetVals() []*VerifiedIndex { if m != nil { return m.Vals } return nil } type StringVerifiedIndexSliceMap struct { Keys []string `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"` Vals []*VerifiedIndexSlice `protobuf:"bytes,2,rep,name=vals,proto3" json:"vals,omitempty"` } func (m *StringVerifiedIndexSliceMap) Reset() { *m = StringVerifiedIndexSliceMap{} } func (m *StringVerifiedIndexSliceMap) String() string { return proto.CompactTextString(m) } func (*StringVerifiedIndexSliceMap) ProtoMessage() {} func (*StringVerifiedIndexSliceMap) Descriptor() ([]byte, []int) { return fileDescriptor_0cc45f6ac745dd88, []int{6} } func (m *StringVerifiedIndexSliceMap) XXX_Unmarshal(b []byte) error { return m.Unmarshal(b) } func (m *StringVerifiedIndexSliceMap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { if deterministic { return xxx_messageInfo_StringVerifiedIndexSliceMap.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 *StringVerifiedIndexSliceMap) XXX_Merge(src proto.Message) { xxx_messageInfo_StringVerifiedIndexSliceMap.Merge(m, src) } func (m *StringVerifiedIndexSliceMap) XXX_Size() int { return m.Size() } func (m *StringVerifiedIndexSliceMap) XXX_DiscardUnknown() { xxx_messageInfo_StringVerifiedIndexSliceMap.DiscardUnknown(m) } var xxx_messageInfo_StringVerifiedIndexSliceMap proto.InternalMessageInfo func (m *StringVerifiedIndexSliceMap) GetKeys() []string { if m != nil { return m.Keys } return nil } func (m *StringVerifiedIndexSliceMap) GetVals() []*VerifiedIndexSlice { if m != nil { return m.Vals } return nil } func init() { proto.RegisterType((*Uint64Slice)(nil), "pb.Uint64Slice") proto.RegisterType((*StringUint64Map)(nil), "pb.StringUint64Map") proto.RegisterType((*StringUint64SliceMap)(nil), "pb.StringUint64SliceMap") proto.RegisterType((*VerifiedIndex)(nil), "pb.VerifiedIndex") proto.RegisterType((*VerifiedIndexSlice)(nil), "pb.VerifiedIndexSlice") proto.RegisterType((*StringVerifiedIndexMap)(nil), "pb.StringVerifiedIndexMap") proto.RegisterType((*StringVerifiedIndexSliceMap)(nil), "pb.StringVerifiedIndexSliceMap") } func init() { proto.RegisterFile("basic.proto", fileDescriptor_0cc45f6ac745dd88) } var fileDescriptor_0cc45f6ac745dd88 = []byte{ // 270 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x4e, 0x4a, 0x2c, 0xce, 0x4c, 0xd6, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x2a, 0x48, 0x52, 0x52, 0xe6, 0xe2, 0x0e, 0xcd, 0xcc, 0x2b, 0x31, 0x33, 0x09, 0xce, 0xc9, 0x4c, 0x4e, 0x15, 0x12, 0xe1, 0x62, 0x2d, 0x06, 0x31, 0x24, 0x18, 0x15, 0x98, 0x35, 0x58, 0x82, 0x20, 0x1c, 0x25, 0x4b, 0x2e, 0xfe, 0xe0, 0x92, 0xa2, 0xcc, 0xbc, 0x74, 0x88, 0x52, 0xdf, 0xc4, 0x02, 0x21, 0x21, 0x2e, 0x96, 0xec, 0xd4, 0xca, 0x62, 0xb0, 0x3a, 0xce, 0x20, 0x30, 0x1b, 0x24, 0x56, 0x96, 0x98, 0x53, 0x2c, 0xc1, 0x04, 0xd6, 0x0b, 0x66, 0x2b, 0xf9, 0x73, 0x89, 0x20, 0x6b, 0x05, 0xdb, 0x82, 0x4b, 0xbf, 0x32, 0x92, 0x7e, 0x6e, 0x23, 0x7e, 0xbd, 0x82, 0x24, 0x3d, 0x24, 0x5d, 0x50, 0x03, 0xad, 0xb9, 0x78, 0xc3, 0x52, 0x8b, 0x32, 0xd3, 0x32, 0x53, 0x53, 0x3c, 0xf3, 0x52, 0x52, 0x2b, 0x40, 0x4e, 0xce, 0x04, 0x31, 0x24, 0x18, 0x15, 0x18, 0x41, 0x4e, 0xce, 0x84, 0x89, 0x96, 0x25, 0xe6, 0x64, 0xa6, 0x48, 0x30, 0x29, 0x30, 0x6a, 0x70, 0x04, 0x41, 0x38, 0x4a, 0xb6, 0x5c, 0x42, 0x28, 0x9a, 0x21, 0x9e, 0x56, 0x47, 0xf6, 0x34, 0xb7, 0x91, 0x20, 0xc8, 0x62, 0x14, 0x65, 0xb0, 0x70, 0x08, 0xe6, 0x12, 0x83, 0x78, 0x06, 0x45, 0x16, 0x97, 0x77, 0x54, 0x51, 0xbc, 0x83, 0xc5, 0x54, 0x88, 0x87, 0x62, 0xb9, 0xa4, 0xb1, 0x18, 0x8a, 0x37, 0xa0, 0xb4, 0x50, 0x4c, 0x16, 0xc3, 0x30, 0x19, 0x29, 0xbc, 0x9c, 0x24, 0x4e, 0x3c, 0x92, 0x63, 0xbc, 0xf0, 0x48, 0x8e, 0xf1, 0xc1, 0x23, 0x39, 0xc6, 0x09, 0x8f, 0xe5, 0x18, 0x2e, 0x3c, 0x96, 0x63, 0xb8, 0xf1, 0x58, 0x8e, 0x21, 0x89, 0x0d, 0x9c, 0x0a, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0x2a, 0x76, 0xf3, 0x4d, 0x14, 0x02, 0x00, 0x00, } func (m *Uint64Slice) 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 *Uint64Slice) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *Uint64Slice) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Slice) > 0 { dAtA2 := make([]byte, len(m.Slice)*10) var j1 int for _, num := range m.Slice { for num >= 1<<7 { dAtA2[j1] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 j1++ } dAtA2[j1] = uint8(num) j1++ } i -= j1 copy(dAtA[i:], dAtA2[:j1]) i = encodeVarintBasic(dAtA, i, uint64(j1)) i-- dAtA[i] = 0xa } return len(dAtA) - i, nil } func (m *StringUint64Map) 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 *StringUint64Map) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *StringUint64Map) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Vals) > 0 { dAtA4 := make([]byte, len(m.Vals)*10) var j3 int for _, num := range m.Vals { for num >= 1<<7 { dAtA4[j3] = uint8(uint64(num)&0x7f | 0x80) num >>= 7 j3++ } dAtA4[j3] = uint8(num) j3++ } i -= j3 copy(dAtA[i:], dAtA4[:j3]) i = encodeVarintBasic(dAtA, i, uint64(j3)) i-- dAtA[i] = 0x12 } if len(m.Keys) > 0 { for iNdEx := len(m.Keys) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.Keys[iNdEx]) copy(dAtA[i:], m.Keys[iNdEx]) i = encodeVarintBasic(dAtA, i, uint64(len(m.Keys[iNdEx]))) i-- dAtA[i] = 0xa } } return len(dAtA) - i, nil } func (m *StringUint64SliceMap) 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 *StringUint64SliceMap) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *StringUint64SliceMap) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Vals) > 0 { for iNdEx := len(m.Vals) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.Vals[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintBasic(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } } if len(m.Keys) > 0 { for iNdEx := len(m.Keys) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.Keys[iNdEx]) copy(dAtA[i:], m.Keys[iNdEx]) i = encodeVarintBasic(dAtA, i, uint64(len(m.Keys[iNdEx]))) i-- dAtA[i] = 0xa } } return len(dAtA) - i, nil } func (m *VerifiedIndex) 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 *VerifiedIndex) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *VerifiedIndex) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if m.Valid { i-- if m.Valid { dAtA[i] = 1 } else { dAtA[i] = 0 } i-- dAtA[i] = 0x10 } if m.Index != 0 { i = encodeVarintBasic(dAtA, i, uint64(m.Index)) i-- dAtA[i] = 0x8 } return len(dAtA) - i, nil } func (m *VerifiedIndexSlice) 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 *VerifiedIndexSlice) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *VerifiedIndexSlice) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Slice) > 0 { for iNdEx := len(m.Slice) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.Slice[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintBasic(dAtA, i, uint64(size)) } i-- dAtA[i] = 0xa } } return len(dAtA) - i, nil } func (m *StringVerifiedIndexMap) 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 *StringVerifiedIndexMap) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *StringVerifiedIndexMap) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Vals) > 0 { for iNdEx := len(m.Vals) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.Vals[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintBasic(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } } if len(m.Keys) > 0 { for iNdEx := len(m.Keys) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.Keys[iNdEx]) copy(dAtA[i:], m.Keys[iNdEx]) i = encodeVarintBasic(dAtA, i, uint64(len(m.Keys[iNdEx]))) i-- dAtA[i] = 0xa } } return len(dAtA) - i, nil } func (m *StringVerifiedIndexSliceMap) 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 *StringVerifiedIndexSliceMap) MarshalTo(dAtA []byte) (int, error) { size := m.Size() return m.MarshalToSizedBuffer(dAtA[:size]) } func (m *StringVerifiedIndexSliceMap) MarshalToSizedBuffer(dAtA []byte) (int, error) { i := len(dAtA) _ = i var l int _ = l if len(m.Vals) > 0 { for iNdEx := len(m.Vals) - 1; iNdEx >= 0; iNdEx-- { { size, err := m.Vals[iNdEx].MarshalToSizedBuffer(dAtA[:i]) if err != nil { return 0, err } i -= size i = encodeVarintBasic(dAtA, i, uint64(size)) } i-- dAtA[i] = 0x12 } } if len(m.Keys) > 0 { for iNdEx := len(m.Keys) - 1; iNdEx >= 0; iNdEx-- { i -= len(m.Keys[iNdEx]) copy(dAtA[i:], m.Keys[iNdEx]) i = encodeVarintBasic(dAtA, i, uint64(len(m.Keys[iNdEx]))) i-- dAtA[i] = 0xa } } return len(dAtA) - i, nil } func encodeVarintBasic(dAtA []byte, offset int, v uint64) int { offset -= sovBasic(v) base := offset for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 offset++ } dAtA[offset] = uint8(v) return base } func (m *Uint64Slice) Size() (n int) { if m == nil { return 0 } var l int _ = l if len(m.Slice) > 0 { l = 0 for _, e := range m.Slice { l += sovBasic(uint64(e)) } n += 1 + sovBasic(uint64(l)) + l } return n } func (m *StringUint64Map) Size() (n int) { if m == nil { return 0 } var l int _ = l if len(m.Keys) > 0 { for _, s := range m.Keys { l = len(s) n += 1 + l + sovBasic(uint64(l)) } } if len(m.Vals) > 0 { l = 0 for _, e := range m.Vals { l += sovBasic(uint64(e)) } n += 1 + sovBasic(uint64(l)) + l } return n } func (m *StringUint64SliceMap) Size() (n int) { if m == nil { return 0 } var l int _ = l if len(m.Keys) > 0 { for _, s := range m.Keys { l = len(s) n += 1 + l + sovBasic(uint64(l)) } } if len(m.Vals) > 0 { for _, e := range m.Vals { l = e.Size() n += 1 + l + sovBasic(uint64(l)) } } return n } func (m *VerifiedIndex) Size() (n int) { if m == nil { return 0 } var l int _ = l if m.Index != 0 { n += 1 + sovBasic(uint64(m.Index)) } if m.Valid { n += 2 } return n } func (m *VerifiedIndexSlice) Size() (n int) { if m == nil { return 0 } var l int _ = l if len(m.Slice) > 0 { for _, e := range m.Slice { l = e.Size() n += 1 + l + sovBasic(uint64(l)) } } return n } func (m *StringVerifiedIndexMap) Size() (n int) { if m == nil { return 0 } var l int _ = l if len(m.Keys) > 0 { for _, s := range m.Keys { l = len(s) n += 1 + l + sovBasic(uint64(l)) } } if len(m.Vals) > 0 { for _, e := range m.Vals { l = e.Size() n += 1 + l + sovBasic(uint64(l)) } } return n } func (m *StringVerifiedIndexSliceMap) Size() (n int) { if m == nil { return 0 } var l int _ = l if len(m.Keys) > 0 { for _, s := range m.Keys { l = len(s) n += 1 + l + sovBasic(uint64(l)) } } if len(m.Vals) > 0 { for _, e := range m.Vals { l = e.Size() n += 1 + l + sovBasic(uint64(l)) } } return n } func sovBasic(x uint64) (n int) { return (math_bits.Len64(x|1) + 6) / 7 } func sozBasic(x uint64) (n int) { return sovBasic(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } func (m *Uint64Slice) 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 ErrIntOverflowBasic } 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: Uint64Slice: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: Uint64Slice: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType == 0 { var v uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowBasic } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ v |= uint64(b&0x7F) << shift if b < 0x80 { break } } m.Slice = append(m.Slice, v) } else if wireType == 2 { var packedLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowBasic } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ packedLen |= int(b&0x7F) << shift if b < 0x80 { break } } if packedLen < 0 { return ErrInvalidLengthBasic } postIndex := iNdEx + packedLen if postIndex < 0 { return ErrInvalidLengthBasic } if postIndex > l { return io.ErrUnexpectedEOF } var elementCount int var count int for _, integer := range dAtA[iNdEx:postIndex] { if integer < 128 { count++ } } elementCount = count if elementCount != 0 && len(m.Slice) == 0 { m.Slice = make([]uint64, 0, elementCount) } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowBasic } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ v |= uint64(b&0x7F) << shift if b < 0x80 { break } } m.Slice = append(m.Slice, v) } } else { return fmt.Errorf("proto: wrong wireType = %d for field Slice", wireType) } default: iNdEx = preIndex skippy, err := skipBasic(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthBasic } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *StringUint64Map) 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 ErrIntOverflowBasic } 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: StringUint64Map: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: StringUint64Map: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Keys", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowBasic } 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 ErrInvalidLengthBasic } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthBasic } if postIndex > l { return io.ErrUnexpectedEOF } m.Keys = append(m.Keys, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 2: if wireType == 0 { var v uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowBasic } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ v |= uint64(b&0x7F) << shift if b < 0x80 { break } } m.Vals = append(m.Vals, v) } else if wireType == 2 { var packedLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowBasic } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ packedLen |= int(b&0x7F) << shift if b < 0x80 { break } } if packedLen < 0 { return ErrInvalidLengthBasic } postIndex := iNdEx + packedLen if postIndex < 0 { return ErrInvalidLengthBasic } if postIndex > l { return io.ErrUnexpectedEOF } var elementCount int var count int for _, integer := range dAtA[iNdEx:postIndex] { if integer < 128 { count++ } } elementCount = count if elementCount != 0 && len(m.Vals) == 0 { m.Vals = make([]uint64, 0, elementCount) } for iNdEx < postIndex { var v uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowBasic } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ v |= uint64(b&0x7F) << shift if b < 0x80 { break } } m.Vals = append(m.Vals, v) } } else { return fmt.Errorf("proto: wrong wireType = %d for field Vals", wireType) } default: iNdEx = preIndex skippy, err := skipBasic(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthBasic } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *StringUint64SliceMap) 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 ErrIntOverflowBasic } 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: StringUint64SliceMap: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: StringUint64SliceMap: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Keys", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowBasic } 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 ErrInvalidLengthBasic } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthBasic } if postIndex > l { return io.ErrUnexpectedEOF } m.Keys = append(m.Keys, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Vals", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowBasic } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthBasic } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthBasic } if postIndex > l { return io.ErrUnexpectedEOF } m.Vals = append(m.Vals, &Uint64Slice{}) if err := m.Vals[len(m.Vals)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipBasic(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthBasic } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *VerifiedIndex) 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 ErrIntOverflowBasic } 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: VerifiedIndex: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: VerifiedIndex: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Index", wireType) } m.Index = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowBasic } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ m.Index |= uint64(b&0x7F) << shift if b < 0x80 { break } } case 2: if wireType != 0 { return fmt.Errorf("proto: wrong wireType = %d for field Valid", wireType) } var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowBasic } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ v |= int(b&0x7F) << shift if b < 0x80 { break } } m.Valid = bool(v != 0) default: iNdEx = preIndex skippy, err := skipBasic(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthBasic } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *VerifiedIndexSlice) 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 ErrIntOverflowBasic } 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: VerifiedIndexSlice: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: VerifiedIndexSlice: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Slice", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowBasic } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthBasic } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthBasic } if postIndex > l { return io.ErrUnexpectedEOF } m.Slice = append(m.Slice, &VerifiedIndex{}) if err := m.Slice[len(m.Slice)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipBasic(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthBasic } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *StringVerifiedIndexMap) 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 ErrIntOverflowBasic } 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: StringVerifiedIndexMap: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: StringVerifiedIndexMap: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Keys", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowBasic } 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 ErrInvalidLengthBasic } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthBasic } if postIndex > l { return io.ErrUnexpectedEOF } m.Keys = append(m.Keys, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Vals", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowBasic } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthBasic } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthBasic } if postIndex > l { return io.ErrUnexpectedEOF } m.Vals = append(m.Vals, &VerifiedIndex{}) if err := m.Vals[len(m.Vals)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipBasic(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthBasic } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func (m *StringVerifiedIndexSliceMap) 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 ErrIntOverflowBasic } 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: StringVerifiedIndexSliceMap: wiretype end group for non-group") } if fieldNum <= 0 { return fmt.Errorf("proto: StringVerifiedIndexSliceMap: illegal tag %d (wire type %d)", fieldNum, wire) } switch fieldNum { case 1: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Keys", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowBasic } 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 ErrInvalidLengthBasic } postIndex := iNdEx + intStringLen if postIndex < 0 { return ErrInvalidLengthBasic } if postIndex > l { return io.ErrUnexpectedEOF } m.Keys = append(m.Keys, string(dAtA[iNdEx:postIndex])) iNdEx = postIndex case 2: if wireType != 2 { return fmt.Errorf("proto: wrong wireType = %d for field Vals", wireType) } var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { return ErrIntOverflowBasic } if iNdEx >= l { return io.ErrUnexpectedEOF } b := dAtA[iNdEx] iNdEx++ msglen |= int(b&0x7F) << shift if b < 0x80 { break } } if msglen < 0 { return ErrInvalidLengthBasic } postIndex := iNdEx + msglen if postIndex < 0 { return ErrInvalidLengthBasic } if postIndex > l { return io.ErrUnexpectedEOF } m.Vals = append(m.Vals, &VerifiedIndexSlice{}) if err := m.Vals[len(m.Vals)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { return err } iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipBasic(dAtA[iNdEx:]) if err != nil { return err } if (skippy < 0) || (iNdEx+skippy) < 0 { return ErrInvalidLengthBasic } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF } iNdEx += skippy } } if iNdEx > l { return io.ErrUnexpectedEOF } return nil } func skipBasic(dAtA []byte) (n int, err error) { l := len(dAtA) iNdEx := 0 depth := 0 for iNdEx < l { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowBasic } 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, ErrIntOverflowBasic } if iNdEx >= l { return 0, io.ErrUnexpectedEOF } iNdEx++ if dAtA[iNdEx-1] < 0x80 { break } } case 1: iNdEx += 8 case 2: var length int for shift := uint(0); ; shift += 7 { if shift >= 64 { return 0, ErrIntOverflowBasic } 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, ErrInvalidLengthBasic } iNdEx += length case 3: depth++ case 4: if depth == 0 { return 0, ErrUnexpectedEndOfGroupBasic } depth-- case 5: iNdEx += 4 default: return 0, fmt.Errorf("proto: illegal wireType %d", wireType) } if iNdEx < 0 { return 0, ErrInvalidLengthBasic } if depth == 0 { return iNdEx, nil } } return 0, io.ErrUnexpectedEOF } var ( ErrInvalidLengthBasic = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowBasic = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupBasic = fmt.Errorf("proto: unexpected end of group") )