diff --git a/internal/internal.go b/internal/internal.go index 3d322d82a..d727d97e9 100644 --- a/internal/internal.go +++ b/internal/internal.go @@ -7,7 +7,8 @@ import ( "github.com/gogo/protobuf/proto" ) -//go:generate protoc --gofast_out=. internal.proto +//go:generate protoc --gofast_out=. private.proto +//go:generate protoc --gofast_out=. public.proto type Request proto.Message diff --git a/internal/private.pb.go b/internal/private.pb.go new file mode 100644 index 000000000..9a96165f3 --- /dev/null +++ b/internal/private.pb.go @@ -0,0 +1,1605 @@ +// Code generated by protoc-gen-gogo. +// source: private.proto +// DO NOT EDIT! + +/* + Package internal is a generated protocol buffer package. + + It is generated from these files: + private.proto + + It has these top-level messages: + DB + Frame + ImportResponse + BlockDataRequest + BlockDataResponse + Cache + MaxSlicesResponse +*/ +package internal + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" + +import io "io" + +// 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.ProtoPackageIsVersion2 // please upgrade the proto package + +type DB struct { + TimeQuantum string `protobuf:"bytes,1,opt,name=TimeQuantum,proto3" json:"TimeQuantum,omitempty"` + ColumnLabel string `protobuf:"bytes,2,opt,name=ColumnLabel,proto3" json:"ColumnLabel,omitempty"` +} + +func (m *DB) Reset() { *m = DB{} } +func (m *DB) String() string { return proto.CompactTextString(m) } +func (*DB) ProtoMessage() {} +func (*DB) Descriptor() ([]byte, []int) { return fileDescriptorPrivate, []int{0} } + +type Frame struct { + TimeQuantum string `protobuf:"bytes,1,opt,name=TimeQuantum,proto3" json:"TimeQuantum,omitempty"` + RowLabel string `protobuf:"bytes,2,opt,name=RowLabel,proto3" json:"RowLabel,omitempty"` + InverseEnabled bool `protobuf:"varint,3,opt,name=InverseEnabled,proto3" json:"InverseEnabled,omitempty"` +} + +func (m *Frame) Reset() { *m = Frame{} } +func (m *Frame) String() string { return proto.CompactTextString(m) } +func (*Frame) ProtoMessage() {} +func (*Frame) Descriptor() ([]byte, []int) { return fileDescriptorPrivate, []int{1} } + +type ImportResponse struct { + Err string `protobuf:"bytes,1,opt,name=Err,proto3" json:"Err,omitempty"` +} + +func (m *ImportResponse) Reset() { *m = ImportResponse{} } +func (m *ImportResponse) String() string { return proto.CompactTextString(m) } +func (*ImportResponse) ProtoMessage() {} +func (*ImportResponse) Descriptor() ([]byte, []int) { return fileDescriptorPrivate, []int{2} } + +type BlockDataRequest struct { + DB string `protobuf:"bytes,1,opt,name=DB,proto3" json:"DB,omitempty"` + Frame string `protobuf:"bytes,2,opt,name=Frame,proto3" json:"Frame,omitempty"` + View string `protobuf:"bytes,5,opt,name=View,proto3" json:"View,omitempty"` + Slice uint64 `protobuf:"varint,4,opt,name=Slice,proto3" json:"Slice,omitempty"` + Block uint64 `protobuf:"varint,3,opt,name=Block,proto3" json:"Block,omitempty"` +} + +func (m *BlockDataRequest) Reset() { *m = BlockDataRequest{} } +func (m *BlockDataRequest) String() string { return proto.CompactTextString(m) } +func (*BlockDataRequest) ProtoMessage() {} +func (*BlockDataRequest) Descriptor() ([]byte, []int) { return fileDescriptorPrivate, []int{3} } + +type BlockDataResponse struct { + BitmapIDs []uint64 `protobuf:"varint,1,rep,packed,name=BitmapIDs" json:"BitmapIDs,omitempty"` + ProfileIDs []uint64 `protobuf:"varint,2,rep,packed,name=ProfileIDs" json:"ProfileIDs,omitempty"` +} + +func (m *BlockDataResponse) Reset() { *m = BlockDataResponse{} } +func (m *BlockDataResponse) String() string { return proto.CompactTextString(m) } +func (*BlockDataResponse) ProtoMessage() {} +func (*BlockDataResponse) Descriptor() ([]byte, []int) { return fileDescriptorPrivate, []int{4} } + +type Cache struct { + BitmapIDs []uint64 `protobuf:"varint,1,rep,packed,name=BitmapIDs" json:"BitmapIDs,omitempty"` +} + +func (m *Cache) Reset() { *m = Cache{} } +func (m *Cache) String() string { return proto.CompactTextString(m) } +func (*Cache) ProtoMessage() {} +func (*Cache) Descriptor() ([]byte, []int) { return fileDescriptorPrivate, []int{5} } + +type MaxSlicesResponse struct { + MaxSlices map[string]uint64 `protobuf:"bytes,1,rep,name=MaxSlices" json:"MaxSlices,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` +} + +func (m *MaxSlicesResponse) Reset() { *m = MaxSlicesResponse{} } +func (m *MaxSlicesResponse) String() string { return proto.CompactTextString(m) } +func (*MaxSlicesResponse) ProtoMessage() {} +func (*MaxSlicesResponse) Descriptor() ([]byte, []int) { return fileDescriptorPrivate, []int{6} } + +func (m *MaxSlicesResponse) GetMaxSlices() map[string]uint64 { + if m != nil { + return m.MaxSlices + } + return nil +} + +func init() { + proto.RegisterType((*DB)(nil), "internal.DB") + proto.RegisterType((*Frame)(nil), "internal.Frame") + proto.RegisterType((*ImportResponse)(nil), "internal.ImportResponse") + proto.RegisterType((*BlockDataRequest)(nil), "internal.BlockDataRequest") + proto.RegisterType((*BlockDataResponse)(nil), "internal.BlockDataResponse") + proto.RegisterType((*Cache)(nil), "internal.Cache") + proto.RegisterType((*MaxSlicesResponse)(nil), "internal.MaxSlicesResponse") +} +func (m *DB) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *DB) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.TimeQuantum) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintPrivate(dAtA, i, uint64(len(m.TimeQuantum))) + i += copy(dAtA[i:], m.TimeQuantum) + } + if len(m.ColumnLabel) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintPrivate(dAtA, i, uint64(len(m.ColumnLabel))) + i += copy(dAtA[i:], m.ColumnLabel) + } + return i, nil +} + +func (m *Frame) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Frame) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.TimeQuantum) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintPrivate(dAtA, i, uint64(len(m.TimeQuantum))) + i += copy(dAtA[i:], m.TimeQuantum) + } + if len(m.RowLabel) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintPrivate(dAtA, i, uint64(len(m.RowLabel))) + i += copy(dAtA[i:], m.RowLabel) + } + if m.InverseEnabled { + dAtA[i] = 0x18 + i++ + if m.InverseEnabled { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i++ + } + return i, nil +} + +func (m *ImportResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *ImportResponse) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.Err) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintPrivate(dAtA, i, uint64(len(m.Err))) + i += copy(dAtA[i:], m.Err) + } + return i, nil +} + +func (m *BlockDataRequest) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BlockDataRequest) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.DB) > 0 { + dAtA[i] = 0xa + i++ + i = encodeVarintPrivate(dAtA, i, uint64(len(m.DB))) + i += copy(dAtA[i:], m.DB) + } + if len(m.Frame) > 0 { + dAtA[i] = 0x12 + i++ + i = encodeVarintPrivate(dAtA, i, uint64(len(m.Frame))) + i += copy(dAtA[i:], m.Frame) + } + if m.Block != 0 { + dAtA[i] = 0x18 + i++ + i = encodeVarintPrivate(dAtA, i, uint64(m.Block)) + } + if m.Slice != 0 { + dAtA[i] = 0x20 + i++ + i = encodeVarintPrivate(dAtA, i, uint64(m.Slice)) + } + if len(m.View) > 0 { + dAtA[i] = 0x2a + i++ + i = encodeVarintPrivate(dAtA, i, uint64(len(m.View))) + i += copy(dAtA[i:], m.View) + } + return i, nil +} + +func (m *BlockDataResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *BlockDataResponse) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.BitmapIDs) > 0 { + dAtA2 := make([]byte, len(m.BitmapIDs)*10) + var j1 int + for _, num := range m.BitmapIDs { + for num >= 1<<7 { + dAtA2[j1] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j1++ + } + dAtA2[j1] = uint8(num) + j1++ + } + dAtA[i] = 0xa + i++ + i = encodeVarintPrivate(dAtA, i, uint64(j1)) + i += copy(dAtA[i:], dAtA2[:j1]) + } + if len(m.ProfileIDs) > 0 { + dAtA4 := make([]byte, len(m.ProfileIDs)*10) + var j3 int + for _, num := range m.ProfileIDs { + for num >= 1<<7 { + dAtA4[j3] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j3++ + } + dAtA4[j3] = uint8(num) + j3++ + } + dAtA[i] = 0x12 + i++ + i = encodeVarintPrivate(dAtA, i, uint64(j3)) + i += copy(dAtA[i:], dAtA4[:j3]) + } + return i, nil +} + +func (m *Cache) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *Cache) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.BitmapIDs) > 0 { + dAtA6 := make([]byte, len(m.BitmapIDs)*10) + var j5 int + for _, num := range m.BitmapIDs { + for num >= 1<<7 { + dAtA6[j5] = uint8(uint64(num)&0x7f | 0x80) + num >>= 7 + j5++ + } + dAtA6[j5] = uint8(num) + j5++ + } + dAtA[i] = 0xa + i++ + i = encodeVarintPrivate(dAtA, i, uint64(j5)) + i += copy(dAtA[i:], dAtA6[:j5]) + } + return i, nil +} + +func (m *MaxSlicesResponse) Marshal() (dAtA []byte, err error) { + size := m.Size() + dAtA = make([]byte, size) + n, err := m.MarshalTo(dAtA) + if err != nil { + return nil, err + } + return dAtA[:n], nil +} + +func (m *MaxSlicesResponse) MarshalTo(dAtA []byte) (int, error) { + var i int + _ = i + var l int + _ = l + if len(m.MaxSlices) > 0 { + for k, _ := range m.MaxSlices { + dAtA[i] = 0xa + i++ + v := m.MaxSlices[k] + mapSize := 1 + len(k) + sovPrivate(uint64(len(k))) + 1 + sovPrivate(uint64(v)) + i = encodeVarintPrivate(dAtA, i, uint64(mapSize)) + dAtA[i] = 0xa + i++ + i = encodeVarintPrivate(dAtA, i, uint64(len(k))) + i += copy(dAtA[i:], k) + dAtA[i] = 0x10 + i++ + i = encodeVarintPrivate(dAtA, i, uint64(v)) + } + } + return i, nil +} + +func encodeFixed64Private(dAtA []byte, offset int, v uint64) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) + dAtA[offset+4] = uint8(v >> 32) + dAtA[offset+5] = uint8(v >> 40) + dAtA[offset+6] = uint8(v >> 48) + dAtA[offset+7] = uint8(v >> 56) + return offset + 8 +} +func encodeFixed32Private(dAtA []byte, offset int, v uint32) int { + dAtA[offset] = uint8(v) + dAtA[offset+1] = uint8(v >> 8) + dAtA[offset+2] = uint8(v >> 16) + dAtA[offset+3] = uint8(v >> 24) + return offset + 4 +} +func encodeVarintPrivate(dAtA []byte, offset int, v uint64) int { + for v >= 1<<7 { + dAtA[offset] = uint8(v&0x7f | 0x80) + v >>= 7 + offset++ + } + dAtA[offset] = uint8(v) + return offset + 1 +} +func (m *DB) Size() (n int) { + var l int + _ = l + l = len(m.TimeQuantum) + if l > 0 { + n += 1 + l + sovPrivate(uint64(l)) + } + l = len(m.ColumnLabel) + if l > 0 { + n += 1 + l + sovPrivate(uint64(l)) + } + return n +} + +func (m *Frame) Size() (n int) { + var l int + _ = l + l = len(m.TimeQuantum) + if l > 0 { + n += 1 + l + sovPrivate(uint64(l)) + } + l = len(m.RowLabel) + if l > 0 { + n += 1 + l + sovPrivate(uint64(l)) + } + if m.InverseEnabled { + n += 2 + } + return n +} + +func (m *ImportResponse) Size() (n int) { + var l int + _ = l + l = len(m.Err) + if l > 0 { + n += 1 + l + sovPrivate(uint64(l)) + } + return n +} + +func (m *BlockDataRequest) Size() (n int) { + var l int + _ = l + l = len(m.DB) + if l > 0 { + n += 1 + l + sovPrivate(uint64(l)) + } + l = len(m.Frame) + if l > 0 { + n += 1 + l + sovPrivate(uint64(l)) + } + if m.Block != 0 { + n += 1 + sovPrivate(uint64(m.Block)) + } + if m.Slice != 0 { + n += 1 + sovPrivate(uint64(m.Slice)) + } + l = len(m.View) + if l > 0 { + n += 1 + l + sovPrivate(uint64(l)) + } + return n +} + +func (m *BlockDataResponse) Size() (n int) { + var l int + _ = l + if len(m.BitmapIDs) > 0 { + l = 0 + for _, e := range m.BitmapIDs { + l += sovPrivate(uint64(e)) + } + n += 1 + sovPrivate(uint64(l)) + l + } + if len(m.ProfileIDs) > 0 { + l = 0 + for _, e := range m.ProfileIDs { + l += sovPrivate(uint64(e)) + } + n += 1 + sovPrivate(uint64(l)) + l + } + return n +} + +func (m *Cache) Size() (n int) { + var l int + _ = l + if len(m.BitmapIDs) > 0 { + l = 0 + for _, e := range m.BitmapIDs { + l += sovPrivate(uint64(e)) + } + n += 1 + sovPrivate(uint64(l)) + l + } + return n +} + +func (m *MaxSlicesResponse) Size() (n int) { + var l int + _ = l + if len(m.MaxSlices) > 0 { + for k, v := range m.MaxSlices { + _ = k + _ = v + mapEntrySize := 1 + len(k) + sovPrivate(uint64(len(k))) + 1 + sovPrivate(uint64(v)) + n += mapEntrySize + 1 + sovPrivate(uint64(mapEntrySize)) + } + } + return n +} + +func sovPrivate(x uint64) (n int) { + for { + n++ + x >>= 7 + if x == 0 { + break + } + } + return n +} +func sozPrivate(x uint64) (n int) { + return sovPrivate(uint64((x << 1) ^ uint64((int64(x) >> 63)))) +} +func (m *DB) 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 ErrIntOverflowPrivate + } + 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: DB: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: DB: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TimeQuantum", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPrivate + } + 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 ErrInvalidLengthPrivate + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TimeQuantum = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field ColumnLabel", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPrivate + } + 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 ErrInvalidLengthPrivate + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.ColumnLabel = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPrivate(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPrivate + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Frame) 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 ErrIntOverflowPrivate + } + 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: Frame: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Frame: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field TimeQuantum", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPrivate + } + 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 ErrInvalidLengthPrivate + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.TimeQuantum = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field RowLabel", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPrivate + } + 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 ErrInvalidLengthPrivate + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.RowLabel = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field InverseEnabled", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPrivate + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.InverseEnabled = bool(v != 0) + default: + iNdEx = preIndex + skippy, err := skipPrivate(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPrivate + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *ImportResponse) 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 ErrIntOverflowPrivate + } + 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: ImportResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: ImportResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Err", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPrivate + } + 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 ErrInvalidLengthPrivate + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Err = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPrivate(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPrivate + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BlockDataRequest) 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 ErrIntOverflowPrivate + } + 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: BlockDataRequest: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BlockDataRequest: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DB", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPrivate + } + 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 ErrInvalidLengthPrivate + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DB = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 2: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field Frame", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPrivate + } + 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 ErrInvalidLengthPrivate + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.Frame = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Block", wireType) + } + m.Block = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPrivate + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Block |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 4: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Slice", wireType) + } + m.Slice = 0 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPrivate + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + m.Slice |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + case 5: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field View", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPrivate + } + 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 ErrInvalidLengthPrivate + } + postIndex := iNdEx + intStringLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.View = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPrivate(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPrivate + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *BlockDataResponse) 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 ErrIntOverflowPrivate + } + 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: BlockDataResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: BlockDataResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPrivate + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthPrivate + } + postIndex := iNdEx + packedLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPrivate + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.BitmapIDs = append(m.BitmapIDs, v) + } + } else if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPrivate + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.BitmapIDs = append(m.BitmapIDs, v) + } else { + return fmt.Errorf("proto: wrong wireType = %d for field BitmapIDs", wireType) + } + case 2: + if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPrivate + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthPrivate + } + postIndex := iNdEx + packedLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPrivate + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.ProfileIDs = append(m.ProfileIDs, v) + } + } else if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPrivate + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.ProfileIDs = append(m.ProfileIDs, v) + } else { + return fmt.Errorf("proto: wrong wireType = %d for field ProfileIDs", wireType) + } + default: + iNdEx = preIndex + skippy, err := skipPrivate(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPrivate + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *Cache) 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 ErrIntOverflowPrivate + } + 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: Cache: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: Cache: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType == 2 { + var packedLen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPrivate + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + packedLen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if packedLen < 0 { + return ErrInvalidLengthPrivate + } + postIndex := iNdEx + packedLen + if postIndex > l { + return io.ErrUnexpectedEOF + } + for iNdEx < postIndex { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPrivate + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.BitmapIDs = append(m.BitmapIDs, v) + } + } else if wireType == 0 { + var v uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPrivate + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.BitmapIDs = append(m.BitmapIDs, v) + } else { + return fmt.Errorf("proto: wrong wireType = %d for field BitmapIDs", wireType) + } + default: + iNdEx = preIndex + skippy, err := skipPrivate(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPrivate + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func (m *MaxSlicesResponse) 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 ErrIntOverflowPrivate + } + 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: MaxSlicesResponse: wiretype end group for non-group") + } + if fieldNum <= 0 { + return fmt.Errorf("proto: MaxSlicesResponse: illegal tag %d (wire type %d)", fieldNum, wire) + } + switch fieldNum { + case 1: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field MaxSlices", wireType) + } + var msglen int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPrivate + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + msglen |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + if msglen < 0 { + return ErrInvalidLengthPrivate + } + postIndex := iNdEx + msglen + if postIndex > l { + return io.ErrUnexpectedEOF + } + var keykey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPrivate + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + keykey |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + var stringLenmapkey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPrivate + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLenmapkey |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + intStringLenmapkey := int(stringLenmapkey) + if intStringLenmapkey < 0 { + return ErrInvalidLengthPrivate + } + postStringIndexmapkey := iNdEx + intStringLenmapkey + if postStringIndexmapkey > l { + return io.ErrUnexpectedEOF + } + mapkey := string(dAtA[iNdEx:postStringIndexmapkey]) + iNdEx = postStringIndexmapkey + if m.MaxSlices == nil { + m.MaxSlices = make(map[string]uint64) + } + if iNdEx < postIndex { + var valuekey uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPrivate + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + valuekey |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + var mapvalue uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowPrivate + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + mapvalue |= (uint64(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + m.MaxSlices[mapkey] = mapvalue + } else { + var mapvalue uint64 + m.MaxSlices[mapkey] = mapvalue + } + iNdEx = postIndex + default: + iNdEx = preIndex + skippy, err := skipPrivate(dAtA[iNdEx:]) + if err != nil { + return err + } + if skippy < 0 { + return ErrInvalidLengthPrivate + } + if (iNdEx + skippy) > l { + return io.ErrUnexpectedEOF + } + iNdEx += skippy + } + } + + if iNdEx > l { + return io.ErrUnexpectedEOF + } + return nil +} +func skipPrivate(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, ErrIntOverflowPrivate + } + 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, ErrIntOverflowPrivate + } + 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, ErrIntOverflowPrivate + } + if iNdEx >= l { + return 0, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + length |= (int(b) & 0x7F) << shift + if b < 0x80 { + break + } + } + iNdEx += length + if length < 0 { + return 0, ErrInvalidLengthPrivate + } + return iNdEx, nil + case 3: + for { + var innerWire uint64 + var start int = iNdEx + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return 0, ErrIntOverflowPrivate + } + 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 := skipPrivate(dAtA[start:]) + if err != nil { + return 0, err + } + iNdEx = start + next + } + 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 ( + ErrInvalidLengthPrivate = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowPrivate = fmt.Errorf("proto: integer overflow") +) + +func init() { proto.RegisterFile("private.proto", fileDescriptorPrivate) } + +var fileDescriptorPrivate = []byte{ + // 389 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x8c, 0x92, 0x4f, 0x8b, 0xd3, 0x40, + 0x18, 0xc6, 0x9d, 0x34, 0x91, 0xf6, 0x5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 0x00, 0x00, +} diff --git a/internal/private.proto b/internal/private.proto new file mode 100644 index 000000000..6218a4b59 --- /dev/null +++ b/internal/private.proto @@ -0,0 +1,40 @@ +syntax = "proto3"; + +package internal; + +message DB { + string TimeQuantum = 1; + string ColumnLabel = 2; +} + +message Frame { + string TimeQuantum = 1; + string RowLabel = 2; + bool InverseEnabled = 3; +} + +message ImportResponse { + string Err = 1; +} + +message BlockDataRequest { + string DB = 1; + string Frame = 2; + string View = 5; + uint64 Slice = 4; + uint64 Block = 3; +} + +message BlockDataResponse { + repeated uint64 BitmapIDs = 1; + repeated uint64 ProfileIDs = 2; +} + +message Cache { + repeated uint64 BitmapIDs = 1; +} + +message MaxSlicesResponse { + map MaxSlices = 1; +} + diff --git a/internal/internal.pb.go b/internal/public.pb.go similarity index 53% rename from internal/internal.pb.go rename to internal/public.pb.go index 2b49c65dd..77321bb5c 100644 --- a/internal/internal.pb.go +++ b/internal/public.pb.go @@ -1,16 +1,14 @@ // Code generated by protoc-gen-gogo. -// source: internal.proto +// source: public.proto // DO NOT EDIT! /* Package internal is a generated protocol buffer package. It is generated from these files: - internal.proto + public.proto It has these top-level messages: - DB - Frame Bitmap Pair Bit @@ -21,11 +19,6 @@ QueryResponse QueryResult ImportRequest - ImportResponse - BlockDataRequest - BlockDataResponse - Cache - MaxSlicesResponse */ package internal @@ -46,27 +39,6 @@ var _ = math.Inf // proto package needs to be updated. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package -type DB struct { - TimeQuantum string `protobuf:"bytes,1,opt,name=TimeQuantum,proto3" json:"TimeQuantum,omitempty"` - ColumnLabel string `protobuf:"bytes,2,opt,name=ColumnLabel,proto3" json:"ColumnLabel,omitempty"` -} - -func (m *DB) Reset() { *m = DB{} } -func (m *DB) String() string { return proto.CompactTextString(m) } -func (*DB) ProtoMessage() {} -func (*DB) Descriptor() ([]byte, []int) { return fileDescriptorInternal, []int{0} } - -type Frame struct { - TimeQuantum string `protobuf:"bytes,1,opt,name=TimeQuantum,proto3" json:"TimeQuantum,omitempty"` - RowLabel string `protobuf:"bytes,2,opt,name=RowLabel,proto3" json:"RowLabel,omitempty"` - InverseEnabled bool `protobuf:"varint,3,opt,name=InverseEnabled,proto3" json:"InverseEnabled,omitempty"` -} - -func (m *Frame) Reset() { *m = Frame{} } -func (m *Frame) String() string { return proto.CompactTextString(m) } -func (*Frame) ProtoMessage() {} -func (*Frame) Descriptor() ([]byte, []int) { return fileDescriptorInternal, []int{1} } - type Bitmap struct { Bits []uint64 `protobuf:"varint,1,rep,packed,name=Bits" json:"Bits,omitempty"` Attrs []*Attr `protobuf:"bytes,2,rep,name=Attrs" json:"Attrs,omitempty"` @@ -75,7 +47,7 @@ type Bitmap struct { func (m *Bitmap) Reset() { *m = Bitmap{} } func (m *Bitmap) String() string { return proto.CompactTextString(m) } func (*Bitmap) ProtoMessage() {} -func (*Bitmap) Descriptor() ([]byte, []int) { return fileDescriptorInternal, []int{2} } +func (*Bitmap) Descriptor() ([]byte, []int) { return fileDescriptorPublic, []int{0} } func (m *Bitmap) GetAttrs() []*Attr { if m != nil { @@ -92,7 +64,7 @@ type Pair struct { func (m *Pair) Reset() { *m = Pair{} } func (m *Pair) String() string { return proto.CompactTextString(m) } func (*Pair) ProtoMessage() {} -func (*Pair) Descriptor() ([]byte, []int) { return fileDescriptorInternal, []int{3} } +func (*Pair) Descriptor() ([]byte, []int) { return fileDescriptorPublic, []int{1} } type Bit struct { BitmapID uint64 `protobuf:"varint,1,opt,name=BitmapID,proto3" json:"BitmapID,omitempty"` @@ -103,7 +75,7 @@ type Bit struct { func (m *Bit) Reset() { *m = Bit{} } func (m *Bit) String() string { return proto.CompactTextString(m) } func (*Bit) ProtoMessage() {} -func (*Bit) Descriptor() ([]byte, []int) { return fileDescriptorInternal, []int{4} } +func (*Bit) Descriptor() ([]byte, []int) { return fileDescriptorPublic, []int{2} } type Profile struct { ID uint64 `protobuf:"varint,1,opt,name=ID,proto3" json:"ID,omitempty"` @@ -113,7 +85,7 @@ type Profile struct { func (m *Profile) Reset() { *m = Profile{} } func (m *Profile) String() string { return proto.CompactTextString(m) } func (*Profile) ProtoMessage() {} -func (*Profile) Descriptor() ([]byte, []int) { return fileDescriptorInternal, []int{5} } +func (*Profile) Descriptor() ([]byte, []int) { return fileDescriptorPublic, []int{3} } func (m *Profile) GetAttrs() []*Attr { if m != nil { @@ -134,7 +106,7 @@ type Attr struct { func (m *Attr) Reset() { *m = Attr{} } func (m *Attr) String() string { return proto.CompactTextString(m) } func (*Attr) ProtoMessage() {} -func (*Attr) Descriptor() ([]byte, []int) { return fileDescriptorInternal, []int{6} } +func (*Attr) Descriptor() ([]byte, []int) { return fileDescriptorPublic, []int{4} } type AttrMap struct { Attrs []*Attr `protobuf:"bytes,1,rep,name=Attrs" json:"Attrs,omitempty"` @@ -143,7 +115,7 @@ type AttrMap struct { func (m *AttrMap) Reset() { *m = AttrMap{} } func (m *AttrMap) String() string { return proto.CompactTextString(m) } func (*AttrMap) ProtoMessage() {} -func (*AttrMap) Descriptor() ([]byte, []int) { return fileDescriptorInternal, []int{7} } +func (*AttrMap) Descriptor() ([]byte, []int) { return fileDescriptorPublic, []int{5} } func (m *AttrMap) GetAttrs() []*Attr { if m != nil { @@ -164,7 +136,7 @@ type QueryRequest struct { func (m *QueryRequest) Reset() { *m = QueryRequest{} } func (m *QueryRequest) String() string { return proto.CompactTextString(m) } func (*QueryRequest) ProtoMessage() {} -func (*QueryRequest) Descriptor() ([]byte, []int) { return fileDescriptorInternal, []int{8} } +func (*QueryRequest) Descriptor() ([]byte, []int) { return fileDescriptorPublic, []int{6} } type QueryResponse struct { Err string `protobuf:"bytes,1,opt,name=Err,proto3" json:"Err,omitempty"` @@ -175,7 +147,7 @@ type QueryResponse struct { func (m *QueryResponse) Reset() { *m = QueryResponse{} } func (m *QueryResponse) String() string { return proto.CompactTextString(m) } func (*QueryResponse) ProtoMessage() {} -func (*QueryResponse) Descriptor() ([]byte, []int) { return fileDescriptorInternal, []int{9} } +func (*QueryResponse) Descriptor() ([]byte, []int) { return fileDescriptorPublic, []int{7} } func (m *QueryResponse) GetResults() []*QueryResult { if m != nil { @@ -201,7 +173,7 @@ type QueryResult struct { func (m *QueryResult) Reset() { *m = QueryResult{} } func (m *QueryResult) String() string { return proto.CompactTextString(m) } func (*QueryResult) ProtoMessage() {} -func (*QueryResult) Descriptor() ([]byte, []int) { return fileDescriptorInternal, []int{10} } +func (*QueryResult) Descriptor() ([]byte, []int) { return fileDescriptorPublic, []int{8} } func (m *QueryResult) GetBitmap() *Bitmap { if m != nil { @@ -229,68 +201,9 @@ type ImportRequest struct { func (m *ImportRequest) Reset() { *m = ImportRequest{} } func (m *ImportRequest) String() string { return proto.CompactTextString(m) } func (*ImportRequest) ProtoMessage() {} -func (*ImportRequest) Descriptor() ([]byte, []int) { return fileDescriptorInternal, []int{11} } - -type ImportResponse struct { - Err string `protobuf:"bytes,1,opt,name=Err,proto3" json:"Err,omitempty"` -} - -func (m *ImportResponse) Reset() { *m = ImportResponse{} } -func (m *ImportResponse) String() string { return proto.CompactTextString(m) } -func (*ImportResponse) ProtoMessage() {} -func (*ImportResponse) Descriptor() ([]byte, []int) { return fileDescriptorInternal, []int{12} } - -type BlockDataRequest struct { - DB string `protobuf:"bytes,1,opt,name=DB,proto3" json:"DB,omitempty"` - Frame string `protobuf:"bytes,2,opt,name=Frame,proto3" json:"Frame,omitempty"` - View string `protobuf:"bytes,5,opt,name=View,proto3" json:"View,omitempty"` - Slice uint64 `protobuf:"varint,4,opt,name=Slice,proto3" json:"Slice,omitempty"` - Block uint64 `protobuf:"varint,3,opt,name=Block,proto3" json:"Block,omitempty"` -} - -func (m *BlockDataRequest) Reset() { *m = BlockDataRequest{} } -func (m *BlockDataRequest) String() string { return proto.CompactTextString(m) } -func (*BlockDataRequest) ProtoMessage() {} -func (*BlockDataRequest) Descriptor() ([]byte, []int) { return fileDescriptorInternal, []int{13} } - -type BlockDataResponse struct { - BitmapIDs []uint64 `protobuf:"varint,1,rep,packed,name=BitmapIDs" json:"BitmapIDs,omitempty"` - ProfileIDs []uint64 `protobuf:"varint,2,rep,packed,name=ProfileIDs" json:"ProfileIDs,omitempty"` -} - -func (m *BlockDataResponse) Reset() { *m = BlockDataResponse{} } -func (m *BlockDataResponse) String() string { return proto.CompactTextString(m) } -func (*BlockDataResponse) ProtoMessage() {} -func (*BlockDataResponse) Descriptor() ([]byte, []int) { return fileDescriptorInternal, []int{14} } - -type Cache struct { - BitmapIDs []uint64 `protobuf:"varint,1,rep,packed,name=BitmapIDs" json:"BitmapIDs,omitempty"` -} - -func (m *Cache) Reset() { *m = Cache{} } -func (m *Cache) String() string { return proto.CompactTextString(m) } -func (*Cache) ProtoMessage() {} -func (*Cache) Descriptor() ([]byte, []int) { return fileDescriptorInternal, []int{15} } - -type MaxSlicesResponse struct { - MaxSlices map[string]uint64 `protobuf:"bytes,1,rep,name=MaxSlices" json:"MaxSlices,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` -} - -func (m *MaxSlicesResponse) Reset() { *m = MaxSlicesResponse{} } -func (m *MaxSlicesResponse) String() string { return proto.CompactTextString(m) } -func (*MaxSlicesResponse) ProtoMessage() {} -func (*MaxSlicesResponse) Descriptor() ([]byte, []int) { return fileDescriptorInternal, []int{16} } - -func (m *MaxSlicesResponse) GetMaxSlices() map[string]uint64 { - if m != nil { - return m.MaxSlices - } - return nil -} +func (*ImportRequest) Descriptor() ([]byte, []int) { return fileDescriptorPublic, []int{9} } func init() { - proto.RegisterType((*DB)(nil), "internal.DB") - proto.RegisterType((*Frame)(nil), "internal.Frame") proto.RegisterType((*Bitmap)(nil), "internal.Bitmap") proto.RegisterType((*Pair)(nil), "internal.Pair") proto.RegisterType((*Bit)(nil), "internal.Bit") @@ -301,82 +214,7 @@ func init() { proto.RegisterType((*QueryResponse)(nil), "internal.QueryResponse") proto.RegisterType((*QueryResult)(nil), "internal.QueryResult") proto.RegisterType((*ImportRequest)(nil), "internal.ImportRequest") - proto.RegisterType((*ImportResponse)(nil), "internal.ImportResponse") - proto.RegisterType((*BlockDataRequest)(nil), "internal.BlockDataRequest") - proto.RegisterType((*BlockDataResponse)(nil), "internal.BlockDataResponse") - proto.RegisterType((*Cache)(nil), "internal.Cache") - proto.RegisterType((*MaxSlicesResponse)(nil), "internal.MaxSlicesResponse") } -func (m *DB) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *DB) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.TimeQuantum) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintInternal(dAtA, i, uint64(len(m.TimeQuantum))) - i += copy(dAtA[i:], m.TimeQuantum) - } - if len(m.ColumnLabel) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintInternal(dAtA, i, uint64(len(m.ColumnLabel))) - i += copy(dAtA[i:], m.ColumnLabel) - } - return i, nil -} - -func (m *Frame) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Frame) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.TimeQuantum) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintInternal(dAtA, i, uint64(len(m.TimeQuantum))) - i += copy(dAtA[i:], m.TimeQuantum) - } - if len(m.RowLabel) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintInternal(dAtA, i, uint64(len(m.RowLabel))) - i += copy(dAtA[i:], m.RowLabel) - } - if m.InverseEnabled { - dAtA[i] = 0x18 - i++ - if m.InverseEnabled { - dAtA[i] = 1 - } else { - dAtA[i] = 0 - } - i++ - } - return i, nil -} - func (m *Bitmap) Marshal() (dAtA []byte, err error) { size := m.Size() dAtA = make([]byte, size) @@ -406,14 +244,14 @@ func (m *Bitmap) MarshalTo(dAtA []byte) (int, error) { } dAtA[i] = 0xa i++ - i = encodeVarintInternal(dAtA, i, uint64(j1)) + i = encodeVarintPublic(dAtA, i, uint64(j1)) i += copy(dAtA[i:], dAtA2[:j1]) } if len(m.Attrs) > 0 { for _, msg := range m.Attrs { dAtA[i] = 0x12 i++ - i = encodeVarintInternal(dAtA, i, uint64(msg.Size())) + i = encodeVarintPublic(dAtA, i, uint64(msg.Size())) n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err @@ -442,12 +280,12 @@ func (m *Pair) MarshalTo(dAtA []byte) (int, error) { if m.Key != 0 { dAtA[i] = 0x8 i++ - i = encodeVarintInternal(dAtA, i, uint64(m.Key)) + i = encodeVarintPublic(dAtA, i, uint64(m.Key)) } if m.Count != 0 { dAtA[i] = 0x10 i++ - i = encodeVarintInternal(dAtA, i, uint64(m.Count)) + i = encodeVarintPublic(dAtA, i, uint64(m.Count)) } return i, nil } @@ -470,17 +308,17 @@ func (m *Bit) MarshalTo(dAtA []byte) (int, error) { if m.BitmapID != 0 { dAtA[i] = 0x8 i++ - i = encodeVarintInternal(dAtA, i, uint64(m.BitmapID)) + i = encodeVarintPublic(dAtA, i, uint64(m.BitmapID)) } if m.ProfileID != 0 { dAtA[i] = 0x10 i++ - i = encodeVarintInternal(dAtA, i, uint64(m.ProfileID)) + i = encodeVarintPublic(dAtA, i, uint64(m.ProfileID)) } if m.Timestamp != 0 { dAtA[i] = 0x18 i++ - i = encodeVarintInternal(dAtA, i, uint64(m.Timestamp)) + i = encodeVarintPublic(dAtA, i, uint64(m.Timestamp)) } return i, nil } @@ -503,13 +341,13 @@ func (m *Profile) MarshalTo(dAtA []byte) (int, error) { if m.ID != 0 { dAtA[i] = 0x8 i++ - i = encodeVarintInternal(dAtA, i, uint64(m.ID)) + i = encodeVarintPublic(dAtA, i, uint64(m.ID)) } if len(m.Attrs) > 0 { for _, msg := range m.Attrs { dAtA[i] = 0x12 i++ - i = encodeVarintInternal(dAtA, i, uint64(msg.Size())) + i = encodeVarintPublic(dAtA, i, uint64(msg.Size())) n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err @@ -538,24 +376,24 @@ func (m *Attr) MarshalTo(dAtA []byte) (int, error) { if len(m.Key) > 0 { dAtA[i] = 0xa i++ - i = encodeVarintInternal(dAtA, i, uint64(len(m.Key))) + i = encodeVarintPublic(dAtA, i, uint64(len(m.Key))) i += copy(dAtA[i:], m.Key) } if m.Type != 0 { dAtA[i] = 0x10 i++ - i = encodeVarintInternal(dAtA, i, uint64(m.Type)) + i = encodeVarintPublic(dAtA, i, uint64(m.Type)) } if len(m.StringValue) > 0 { dAtA[i] = 0x1a i++ - i = encodeVarintInternal(dAtA, i, uint64(len(m.StringValue))) + i = encodeVarintPublic(dAtA, i, uint64(len(m.StringValue))) i += copy(dAtA[i:], m.StringValue) } if m.UintValue != 0 { dAtA[i] = 0x20 i++ - i = encodeVarintInternal(dAtA, i, uint64(m.UintValue)) + i = encodeVarintPublic(dAtA, i, uint64(m.UintValue)) } if m.BoolValue { dAtA[i] = 0x28 @@ -570,7 +408,7 @@ func (m *Attr) MarshalTo(dAtA []byte) (int, error) { if m.FloatValue != 0 { dAtA[i] = 0x31 i++ - i = encodeFixed64Internal(dAtA, i, uint64(math.Float64bits(float64(m.FloatValue)))) + i = encodeFixed64Public(dAtA, i, uint64(math.Float64bits(float64(m.FloatValue)))) } return i, nil } @@ -594,7 +432,7 @@ func (m *AttrMap) MarshalTo(dAtA []byte) (int, error) { for _, msg := range m.Attrs { dAtA[i] = 0xa i++ - i = encodeVarintInternal(dAtA, i, uint64(msg.Size())) + i = encodeVarintPublic(dAtA, i, uint64(msg.Size())) n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err @@ -623,13 +461,13 @@ func (m *QueryRequest) MarshalTo(dAtA []byte) (int, error) { if len(m.DB) > 0 { dAtA[i] = 0xa i++ - i = encodeVarintInternal(dAtA, i, uint64(len(m.DB))) + i = encodeVarintPublic(dAtA, i, uint64(len(m.DB))) i += copy(dAtA[i:], m.DB) } if len(m.Query) > 0 { dAtA[i] = 0x12 i++ - i = encodeVarintInternal(dAtA, i, uint64(len(m.Query))) + i = encodeVarintPublic(dAtA, i, uint64(len(m.Query))) i += copy(dAtA[i:], m.Query) } if len(m.Slices) > 0 { @@ -646,7 +484,7 @@ func (m *QueryRequest) MarshalTo(dAtA []byte) (int, error) { } dAtA[i] = 0x1a i++ - i = encodeVarintInternal(dAtA, i, uint64(j3)) + i = encodeVarintPublic(dAtA, i, uint64(j3)) i += copy(dAtA[i:], dAtA4[:j3]) } if m.Profiles { @@ -662,7 +500,7 @@ func (m *QueryRequest) MarshalTo(dAtA []byte) (int, error) { if len(m.Quantum) > 0 { dAtA[i] = 0x2a i++ - i = encodeVarintInternal(dAtA, i, uint64(len(m.Quantum))) + i = encodeVarintPublic(dAtA, i, uint64(len(m.Quantum))) i += copy(dAtA[i:], m.Quantum) } if m.Remote { @@ -696,14 +534,14 @@ func (m *QueryResponse) MarshalTo(dAtA []byte) (int, error) { if len(m.Err) > 0 { dAtA[i] = 0xa i++ - i = encodeVarintInternal(dAtA, i, uint64(len(m.Err))) + i = encodeVarintPublic(dAtA, i, uint64(len(m.Err))) i += copy(dAtA[i:], m.Err) } if len(m.Results) > 0 { for _, msg := range m.Results { dAtA[i] = 0x12 i++ - i = encodeVarintInternal(dAtA, i, uint64(msg.Size())) + i = encodeVarintPublic(dAtA, i, uint64(msg.Size())) n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err @@ -715,7 +553,7 @@ func (m *QueryResponse) MarshalTo(dAtA []byte) (int, error) { for _, msg := range m.Profiles { dAtA[i] = 0x1a i++ - i = encodeVarintInternal(dAtA, i, uint64(msg.Size())) + i = encodeVarintPublic(dAtA, i, uint64(msg.Size())) n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err @@ -744,7 +582,7 @@ func (m *QueryResult) MarshalTo(dAtA []byte) (int, error) { if m.Bitmap != nil { dAtA[i] = 0xa i++ - i = encodeVarintInternal(dAtA, i, uint64(m.Bitmap.Size())) + i = encodeVarintPublic(dAtA, i, uint64(m.Bitmap.Size())) n5, err := m.Bitmap.MarshalTo(dAtA[i:]) if err != nil { return 0, err @@ -754,13 +592,13 @@ func (m *QueryResult) MarshalTo(dAtA []byte) (int, error) { if m.N != 0 { dAtA[i] = 0x10 i++ - i = encodeVarintInternal(dAtA, i, uint64(m.N)) + i = encodeVarintPublic(dAtA, i, uint64(m.N)) } if len(m.Pairs) > 0 { for _, msg := range m.Pairs { dAtA[i] = 0x1a i++ - i = encodeVarintInternal(dAtA, i, uint64(msg.Size())) + i = encodeVarintPublic(dAtA, i, uint64(msg.Size())) n, err := msg.MarshalTo(dAtA[i:]) if err != nil { return 0, err @@ -799,19 +637,19 @@ func (m *ImportRequest) MarshalTo(dAtA []byte) (int, error) { if len(m.DB) > 0 { dAtA[i] = 0xa i++ - i = encodeVarintInternal(dAtA, i, uint64(len(m.DB))) + i = encodeVarintPublic(dAtA, i, uint64(len(m.DB))) i += copy(dAtA[i:], m.DB) } if len(m.Frame) > 0 { dAtA[i] = 0x12 i++ - i = encodeVarintInternal(dAtA, i, uint64(len(m.Frame))) + i = encodeVarintPublic(dAtA, i, uint64(len(m.Frame))) i += copy(dAtA[i:], m.Frame) } if m.Slice != 0 { dAtA[i] = 0x18 i++ - i = encodeVarintInternal(dAtA, i, uint64(m.Slice)) + i = encodeVarintPublic(dAtA, i, uint64(m.Slice)) } if len(m.BitmapIDs) > 0 { dAtA7 := make([]byte, len(m.BitmapIDs)*10) @@ -827,7 +665,7 @@ func (m *ImportRequest) MarshalTo(dAtA []byte) (int, error) { } dAtA[i] = 0x22 i++ - i = encodeVarintInternal(dAtA, i, uint64(j6)) + i = encodeVarintPublic(dAtA, i, uint64(j6)) i += copy(dAtA[i:], dAtA7[:j6]) } if len(m.ProfileIDs) > 0 { @@ -844,7 +682,7 @@ func (m *ImportRequest) MarshalTo(dAtA []byte) (int, error) { } dAtA[i] = 0x2a i++ - i = encodeVarintInternal(dAtA, i, uint64(j8)) + i = encodeVarintPublic(dAtA, i, uint64(j8)) i += copy(dAtA[i:], dAtA9[:j8]) } if len(m.Timestamps) > 0 { @@ -862,204 +700,13 @@ func (m *ImportRequest) MarshalTo(dAtA []byte) (int, error) { } dAtA[i] = 0x32 i++ - i = encodeVarintInternal(dAtA, i, uint64(j10)) + i = encodeVarintPublic(dAtA, i, uint64(j10)) i += copy(dAtA[i:], dAtA11[:j10]) } return i, nil } -func (m *ImportResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *ImportResponse) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.Err) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintInternal(dAtA, i, uint64(len(m.Err))) - i += copy(dAtA[i:], m.Err) - } - return i, nil -} - -func (m *BlockDataRequest) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockDataRequest) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.DB) > 0 { - dAtA[i] = 0xa - i++ - i = encodeVarintInternal(dAtA, i, uint64(len(m.DB))) - i += copy(dAtA[i:], m.DB) - } - if len(m.Frame) > 0 { - dAtA[i] = 0x12 - i++ - i = encodeVarintInternal(dAtA, i, uint64(len(m.Frame))) - i += copy(dAtA[i:], m.Frame) - } - if m.Block != 0 { - dAtA[i] = 0x18 - i++ - i = encodeVarintInternal(dAtA, i, uint64(m.Block)) - } - if m.Slice != 0 { - dAtA[i] = 0x20 - i++ - i = encodeVarintInternal(dAtA, i, uint64(m.Slice)) - } - if len(m.View) > 0 { - dAtA[i] = 0x2a - i++ - i = encodeVarintInternal(dAtA, i, uint64(len(m.View))) - i += copy(dAtA[i:], m.View) - } - return i, nil -} - -func (m *BlockDataResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *BlockDataResponse) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.BitmapIDs) > 0 { - dAtA13 := make([]byte, len(m.BitmapIDs)*10) - var j12 int - for _, num := range m.BitmapIDs { - for num >= 1<<7 { - dAtA13[j12] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j12++ - } - dAtA13[j12] = uint8(num) - j12++ - } - dAtA[i] = 0xa - i++ - i = encodeVarintInternal(dAtA, i, uint64(j12)) - i += copy(dAtA[i:], dAtA13[:j12]) - } - if len(m.ProfileIDs) > 0 { - dAtA15 := make([]byte, len(m.ProfileIDs)*10) - var j14 int - for _, num := range m.ProfileIDs { - for num >= 1<<7 { - dAtA15[j14] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j14++ - } - dAtA15[j14] = uint8(num) - j14++ - } - dAtA[i] = 0x12 - i++ - i = encodeVarintInternal(dAtA, i, uint64(j14)) - i += copy(dAtA[i:], dAtA15[:j14]) - } - return i, nil -} - -func (m *Cache) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *Cache) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.BitmapIDs) > 0 { - dAtA17 := make([]byte, len(m.BitmapIDs)*10) - var j16 int - for _, num := range m.BitmapIDs { - for num >= 1<<7 { - dAtA17[j16] = uint8(uint64(num)&0x7f | 0x80) - num >>= 7 - j16++ - } - dAtA17[j16] = uint8(num) - j16++ - } - dAtA[i] = 0xa - i++ - i = encodeVarintInternal(dAtA, i, uint64(j16)) - i += copy(dAtA[i:], dAtA17[:j16]) - } - return i, nil -} - -func (m *MaxSlicesResponse) Marshal() (dAtA []byte, err error) { - size := m.Size() - dAtA = make([]byte, size) - n, err := m.MarshalTo(dAtA) - if err != nil { - return nil, err - } - return dAtA[:n], nil -} - -func (m *MaxSlicesResponse) MarshalTo(dAtA []byte) (int, error) { - var i int - _ = i - var l int - _ = l - if len(m.MaxSlices) > 0 { - for k, _ := range m.MaxSlices { - dAtA[i] = 0xa - i++ - v := m.MaxSlices[k] - mapSize := 1 + len(k) + sovInternal(uint64(len(k))) + 1 + sovInternal(uint64(v)) - i = encodeVarintInternal(dAtA, i, uint64(mapSize)) - dAtA[i] = 0xa - i++ - i = encodeVarintInternal(dAtA, i, uint64(len(k))) - i += copy(dAtA[i:], k) - dAtA[i] = 0x10 - i++ - i = encodeVarintInternal(dAtA, i, uint64(v)) - } - } - return i, nil -} - -func encodeFixed64Internal(dAtA []byte, offset int, v uint64) int { +func encodeFixed64Public(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) dAtA[offset+1] = uint8(v >> 8) dAtA[offset+2] = uint8(v >> 16) @@ -1070,14 +717,14 @@ func encodeFixed64Internal(dAtA []byte, offset int, v uint64) int { dAtA[offset+7] = uint8(v >> 56) return offset + 8 } -func encodeFixed32Internal(dAtA []byte, offset int, v uint32) int { +func encodeFixed32Public(dAtA []byte, offset int, v uint32) int { dAtA[offset] = uint8(v) dAtA[offset+1] = uint8(v >> 8) dAtA[offset+2] = uint8(v >> 16) dAtA[offset+3] = uint8(v >> 24) return offset + 4 } -func encodeVarintInternal(dAtA []byte, offset int, v uint64) int { +func encodeVarintPublic(dAtA []byte, offset int, v uint64) int { for v >= 1<<7 { dAtA[offset] = uint8(v&0x7f | 0x80) v >>= 7 @@ -1086,51 +733,20 @@ func encodeVarintInternal(dAtA []byte, offset int, v uint64) int { dAtA[offset] = uint8(v) return offset + 1 } -func (m *DB) Size() (n int) { - var l int - _ = l - l = len(m.TimeQuantum) - if l > 0 { - n += 1 + l + sovInternal(uint64(l)) - } - l = len(m.ColumnLabel) - if l > 0 { - n += 1 + l + sovInternal(uint64(l)) - } - return n -} - -func (m *Frame) Size() (n int) { - var l int - _ = l - l = len(m.TimeQuantum) - if l > 0 { - n += 1 + l + sovInternal(uint64(l)) - } - l = len(m.RowLabel) - if l > 0 { - n += 1 + l + sovInternal(uint64(l)) - } - if m.InverseEnabled { - n += 2 - } - return n -} - func (m *Bitmap) Size() (n int) { var l int _ = l if len(m.Bits) > 0 { l = 0 for _, e := range m.Bits { - l += sovInternal(uint64(e)) + l += sovPublic(uint64(e)) } - n += 1 + sovInternal(uint64(l)) + l + n += 1 + sovPublic(uint64(l)) + l } if len(m.Attrs) > 0 { for _, e := range m.Attrs { l = e.Size() - n += 1 + l + sovInternal(uint64(l)) + n += 1 + l + sovPublic(uint64(l)) } } return n @@ -1140,10 +756,10 @@ func (m *Pair) Size() (n int) { var l int _ = l if m.Key != 0 { - n += 1 + sovInternal(uint64(m.Key)) + n += 1 + sovPublic(uint64(m.Key)) } if m.Count != 0 { - n += 1 + sovInternal(uint64(m.Count)) + n += 1 + sovPublic(uint64(m.Count)) } return n } @@ -1152,13 +768,13 @@ func (m *Bit) Size() (n int) { var l int _ = l if m.BitmapID != 0 { - n += 1 + sovInternal(uint64(m.BitmapID)) + n += 1 + sovPublic(uint64(m.BitmapID)) } if m.ProfileID != 0 { - n += 1 + sovInternal(uint64(m.ProfileID)) + n += 1 + sovPublic(uint64(m.ProfileID)) } if m.Timestamp != 0 { - n += 1 + sovInternal(uint64(m.Timestamp)) + n += 1 + sovPublic(uint64(m.Timestamp)) } return n } @@ -1167,12 +783,12 @@ func (m *Profile) Size() (n int) { var l int _ = l if m.ID != 0 { - n += 1 + sovInternal(uint64(m.ID)) + n += 1 + sovPublic(uint64(m.ID)) } if len(m.Attrs) > 0 { for _, e := range m.Attrs { l = e.Size() - n += 1 + l + sovInternal(uint64(l)) + n += 1 + l + sovPublic(uint64(l)) } } return n @@ -1183,17 +799,17 @@ func (m *Attr) Size() (n int) { _ = l l = len(m.Key) if l > 0 { - n += 1 + l + sovInternal(uint64(l)) + n += 1 + l + sovPublic(uint64(l)) } if m.Type != 0 { - n += 1 + sovInternal(uint64(m.Type)) + n += 1 + sovPublic(uint64(m.Type)) } l = len(m.StringValue) if l > 0 { - n += 1 + l + sovInternal(uint64(l)) + n += 1 + l + sovPublic(uint64(l)) } if m.UintValue != 0 { - n += 1 + sovInternal(uint64(m.UintValue)) + n += 1 + sovPublic(uint64(m.UintValue)) } if m.BoolValue { n += 2 @@ -1210,7 +826,7 @@ func (m *AttrMap) Size() (n int) { if len(m.Attrs) > 0 { for _, e := range m.Attrs { l = e.Size() - n += 1 + l + sovInternal(uint64(l)) + n += 1 + l + sovPublic(uint64(l)) } } return n @@ -1221,25 +837,25 @@ func (m *QueryRequest) Size() (n int) { _ = l l = len(m.DB) if l > 0 { - n += 1 + l + sovInternal(uint64(l)) + n += 1 + l + sovPublic(uint64(l)) } l = len(m.Query) if l > 0 { - n += 1 + l + sovInternal(uint64(l)) + n += 1 + l + sovPublic(uint64(l)) } if len(m.Slices) > 0 { l = 0 for _, e := range m.Slices { - l += sovInternal(uint64(e)) + l += sovPublic(uint64(e)) } - n += 1 + sovInternal(uint64(l)) + l + n += 1 + sovPublic(uint64(l)) + l } if m.Profiles { n += 2 } l = len(m.Quantum) if l > 0 { - n += 1 + l + sovInternal(uint64(l)) + n += 1 + l + sovPublic(uint64(l)) } if m.Remote { n += 2 @@ -1252,18 +868,18 @@ func (m *QueryResponse) Size() (n int) { _ = l l = len(m.Err) if l > 0 { - n += 1 + l + sovInternal(uint64(l)) + n += 1 + l + sovPublic(uint64(l)) } if len(m.Results) > 0 { for _, e := range m.Results { l = e.Size() - n += 1 + l + sovInternal(uint64(l)) + n += 1 + l + sovPublic(uint64(l)) } } if len(m.Profiles) > 0 { for _, e := range m.Profiles { l = e.Size() - n += 1 + l + sovInternal(uint64(l)) + n += 1 + l + sovPublic(uint64(l)) } } return n @@ -1274,15 +890,15 @@ func (m *QueryResult) Size() (n int) { _ = l if m.Bitmap != nil { l = m.Bitmap.Size() - n += 1 + l + sovInternal(uint64(l)) + n += 1 + l + sovPublic(uint64(l)) } if m.N != 0 { - n += 1 + sovInternal(uint64(m.N)) + n += 1 + sovPublic(uint64(m.N)) } if len(m.Pairs) > 0 { for _, e := range m.Pairs { l = e.Size() - n += 1 + l + sovInternal(uint64(l)) + n += 1 + l + sovPublic(uint64(l)) } } if m.Changed { @@ -1296,121 +912,40 @@ func (m *ImportRequest) Size() (n int) { _ = l l = len(m.DB) if l > 0 { - n += 1 + l + sovInternal(uint64(l)) + n += 1 + l + sovPublic(uint64(l)) } l = len(m.Frame) if l > 0 { - n += 1 + l + sovInternal(uint64(l)) + n += 1 + l + sovPublic(uint64(l)) } if m.Slice != 0 { - n += 1 + sovInternal(uint64(m.Slice)) + n += 1 + sovPublic(uint64(m.Slice)) } if len(m.BitmapIDs) > 0 { l = 0 for _, e := range m.BitmapIDs { - l += sovInternal(uint64(e)) + l += sovPublic(uint64(e)) } - n += 1 + sovInternal(uint64(l)) + l + n += 1 + sovPublic(uint64(l)) + l } if len(m.ProfileIDs) > 0 { l = 0 for _, e := range m.ProfileIDs { - l += sovInternal(uint64(e)) + l += sovPublic(uint64(e)) } - n += 1 + sovInternal(uint64(l)) + l + n += 1 + sovPublic(uint64(l)) + l } if len(m.Timestamps) > 0 { l = 0 for _, e := range m.Timestamps { - l += sovInternal(uint64(e)) + l += sovPublic(uint64(e)) } - n += 1 + sovInternal(uint64(l)) + l + n += 1 + sovPublic(uint64(l)) + l } return n } -func (m *ImportResponse) Size() (n int) { - var l int - _ = l - l = len(m.Err) - if l > 0 { - n += 1 + l + sovInternal(uint64(l)) - } - return n -} - -func (m *BlockDataRequest) Size() (n int) { - var l int - _ = l - l = len(m.DB) - if l > 0 { - n += 1 + l + sovInternal(uint64(l)) - } - l = len(m.Frame) - if l > 0 { - n += 1 + l + sovInternal(uint64(l)) - } - if m.Block != 0 { - n += 1 + sovInternal(uint64(m.Block)) - } - if m.Slice != 0 { - n += 1 + sovInternal(uint64(m.Slice)) - } - l = len(m.View) - if l > 0 { - n += 1 + l + sovInternal(uint64(l)) - } - return n -} - -func (m *BlockDataResponse) Size() (n int) { - var l int - _ = l - if len(m.BitmapIDs) > 0 { - l = 0 - for _, e := range m.BitmapIDs { - l += sovInternal(uint64(e)) - } - n += 1 + sovInternal(uint64(l)) + l - } - if len(m.ProfileIDs) > 0 { - l = 0 - for _, e := range m.ProfileIDs { - l += sovInternal(uint64(e)) - } - n += 1 + sovInternal(uint64(l)) + l - } - return n -} - -func (m *Cache) Size() (n int) { - var l int - _ = l - if len(m.BitmapIDs) > 0 { - l = 0 - for _, e := range m.BitmapIDs { - l += sovInternal(uint64(e)) - } - n += 1 + sovInternal(uint64(l)) + l - } - return n -} - -func (m *MaxSlicesResponse) Size() (n int) { - var l int - _ = l - if len(m.MaxSlices) > 0 { - for k, v := range m.MaxSlices { - _ = k - _ = v - mapEntrySize := 1 + len(k) + sovInternal(uint64(len(k))) + 1 + sovInternal(uint64(v)) - n += mapEntrySize + 1 + sovInternal(uint64(mapEntrySize)) - } - } - return n -} - -func sovInternal(x uint64) (n int) { +func sovPublic(x uint64) (n int) { for { n++ x >>= 7 @@ -1420,244 +955,8 @@ func sovInternal(x uint64) (n int) { } return n } -func sozInternal(x uint64) (n int) { - return sovInternal(uint64((x << 1) ^ uint64((int64(x) >> 63)))) -} -func (m *DB) 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 ErrIntOverflowInternal - } - 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: DB: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: DB: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TimeQuantum", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowInternal - } - 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 ErrInvalidLengthInternal - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TimeQuantum = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field ColumnLabel", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowInternal - } - 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 ErrInvalidLengthInternal - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.ColumnLabel = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipInternal(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthInternal - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Frame) 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 ErrIntOverflowInternal - } - 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: Frame: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Frame: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field TimeQuantum", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowInternal - } - 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 ErrInvalidLengthInternal - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.TimeQuantum = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field RowLabel", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowInternal - } - 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 ErrInvalidLengthInternal - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.RowLabel = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field InverseEnabled", wireType) - } - var v int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowInternal - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.InverseEnabled = bool(v != 0) - default: - iNdEx = preIndex - skippy, err := skipInternal(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthInternal - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil +func sozPublic(x uint64) (n int) { + return sovPublic(uint64((x << 1) ^ uint64((int64(x) >> 63)))) } func (m *Bitmap) Unmarshal(dAtA []byte) error { l := len(dAtA) @@ -1667,7 +966,7 @@ func (m *Bitmap) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowInternal + return ErrIntOverflowPublic } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1693,7 +992,7 @@ func (m *Bitmap) Unmarshal(dAtA []byte) error { var packedLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowInternal + return ErrIntOverflowPublic } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1706,7 +1005,7 @@ func (m *Bitmap) Unmarshal(dAtA []byte) error { } } if packedLen < 0 { - return ErrInvalidLengthInternal + return ErrInvalidLengthPublic } postIndex := iNdEx + packedLen if postIndex > l { @@ -1716,7 +1015,7 @@ func (m *Bitmap) Unmarshal(dAtA []byte) error { var v uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowInternal + return ErrIntOverflowPublic } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1734,7 +1033,7 @@ func (m *Bitmap) Unmarshal(dAtA []byte) error { var v uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowInternal + return ErrIntOverflowPublic } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1757,7 +1056,7 @@ func (m *Bitmap) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowInternal + return ErrIntOverflowPublic } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1770,7 +1069,7 @@ func (m *Bitmap) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthInternal + return ErrInvalidLengthPublic } postIndex := iNdEx + msglen if postIndex > l { @@ -1783,12 +1082,12 @@ func (m *Bitmap) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipInternal(dAtA[iNdEx:]) + skippy, err := skipPublic(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthInternal + return ErrInvalidLengthPublic } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1810,7 +1109,7 @@ func (m *Pair) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowInternal + return ErrIntOverflowPublic } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1838,7 +1137,7 @@ func (m *Pair) Unmarshal(dAtA []byte) error { m.Key = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowInternal + return ErrIntOverflowPublic } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1857,7 +1156,7 @@ func (m *Pair) Unmarshal(dAtA []byte) error { m.Count = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowInternal + return ErrIntOverflowPublic } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1871,12 +1170,12 @@ func (m *Pair) Unmarshal(dAtA []byte) error { } default: iNdEx = preIndex - skippy, err := skipInternal(dAtA[iNdEx:]) + skippy, err := skipPublic(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthInternal + return ErrInvalidLengthPublic } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -1898,7 +1197,7 @@ func (m *Bit) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowInternal + return ErrIntOverflowPublic } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1926,7 +1225,7 @@ func (m *Bit) Unmarshal(dAtA []byte) error { m.BitmapID = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowInternal + return ErrIntOverflowPublic } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1945,7 +1244,7 @@ func (m *Bit) Unmarshal(dAtA []byte) error { m.ProfileID = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowInternal + return ErrIntOverflowPublic } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1964,7 +1263,7 @@ func (m *Bit) Unmarshal(dAtA []byte) error { m.Timestamp = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowInternal + return ErrIntOverflowPublic } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -1978,12 +1277,12 @@ func (m *Bit) Unmarshal(dAtA []byte) error { } default: iNdEx = preIndex - skippy, err := skipInternal(dAtA[iNdEx:]) + skippy, err := skipPublic(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthInternal + return ErrInvalidLengthPublic } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2005,7 +1304,7 @@ func (m *Profile) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowInternal + return ErrIntOverflowPublic } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2033,7 +1332,7 @@ func (m *Profile) Unmarshal(dAtA []byte) error { m.ID = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowInternal + return ErrIntOverflowPublic } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2052,7 +1351,7 @@ func (m *Profile) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowInternal + return ErrIntOverflowPublic } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2065,7 +1364,7 @@ func (m *Profile) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthInternal + return ErrInvalidLengthPublic } postIndex := iNdEx + msglen if postIndex > l { @@ -2078,12 +1377,12 @@ func (m *Profile) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipInternal(dAtA[iNdEx:]) + skippy, err := skipPublic(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthInternal + return ErrInvalidLengthPublic } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2105,7 +1404,7 @@ func (m *Attr) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowInternal + return ErrIntOverflowPublic } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2133,7 +1432,7 @@ func (m *Attr) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowInternal + return ErrIntOverflowPublic } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2147,7 +1446,7 @@ func (m *Attr) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthInternal + return ErrInvalidLengthPublic } postIndex := iNdEx + intStringLen if postIndex > l { @@ -2162,7 +1461,7 @@ func (m *Attr) Unmarshal(dAtA []byte) error { m.Type = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowInternal + return ErrIntOverflowPublic } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2181,7 +1480,7 @@ func (m *Attr) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowInternal + return ErrIntOverflowPublic } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2195,7 +1494,7 @@ func (m *Attr) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthInternal + return ErrInvalidLengthPublic } postIndex := iNdEx + intStringLen if postIndex > l { @@ -2210,7 +1509,7 @@ func (m *Attr) Unmarshal(dAtA []byte) error { m.UintValue = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowInternal + return ErrIntOverflowPublic } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2229,7 +1528,7 @@ func (m *Attr) Unmarshal(dAtA []byte) error { var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowInternal + return ErrIntOverflowPublic } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2262,12 +1561,12 @@ func (m *Attr) Unmarshal(dAtA []byte) error { m.FloatValue = float64(math.Float64frombits(v)) default: iNdEx = preIndex - skippy, err := skipInternal(dAtA[iNdEx:]) + skippy, err := skipPublic(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthInternal + return ErrInvalidLengthPublic } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2289,7 +1588,7 @@ func (m *AttrMap) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowInternal + return ErrIntOverflowPublic } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2317,7 +1616,7 @@ func (m *AttrMap) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowInternal + return ErrIntOverflowPublic } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2330,7 +1629,7 @@ func (m *AttrMap) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthInternal + return ErrInvalidLengthPublic } postIndex := iNdEx + msglen if postIndex > l { @@ -2343,12 +1642,12 @@ func (m *AttrMap) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipInternal(dAtA[iNdEx:]) + skippy, err := skipPublic(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthInternal + return ErrInvalidLengthPublic } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2370,7 +1669,7 @@ func (m *QueryRequest) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowInternal + return ErrIntOverflowPublic } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2398,7 +1697,7 @@ func (m *QueryRequest) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowInternal + return ErrIntOverflowPublic } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2412,7 +1711,7 @@ func (m *QueryRequest) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthInternal + return ErrInvalidLengthPublic } postIndex := iNdEx + intStringLen if postIndex > l { @@ -2427,7 +1726,7 @@ func (m *QueryRequest) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowInternal + return ErrIntOverflowPublic } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2441,7 +1740,7 @@ func (m *QueryRequest) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthInternal + return ErrInvalidLengthPublic } postIndex := iNdEx + intStringLen if postIndex > l { @@ -2454,7 +1753,7 @@ func (m *QueryRequest) Unmarshal(dAtA []byte) error { var packedLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowInternal + return ErrIntOverflowPublic } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2467,7 +1766,7 @@ func (m *QueryRequest) Unmarshal(dAtA []byte) error { } } if packedLen < 0 { - return ErrInvalidLengthInternal + return ErrInvalidLengthPublic } postIndex := iNdEx + packedLen if postIndex > l { @@ -2477,7 +1776,7 @@ func (m *QueryRequest) Unmarshal(dAtA []byte) error { var v uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowInternal + return ErrIntOverflowPublic } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2495,7 +1794,7 @@ func (m *QueryRequest) Unmarshal(dAtA []byte) error { var v uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowInternal + return ErrIntOverflowPublic } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2518,7 +1817,7 @@ func (m *QueryRequest) Unmarshal(dAtA []byte) error { var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowInternal + return ErrIntOverflowPublic } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2538,7 +1837,7 @@ func (m *QueryRequest) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowInternal + return ErrIntOverflowPublic } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2552,7 +1851,7 @@ func (m *QueryRequest) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthInternal + return ErrInvalidLengthPublic } postIndex := iNdEx + intStringLen if postIndex > l { @@ -2567,7 +1866,7 @@ func (m *QueryRequest) Unmarshal(dAtA []byte) error { var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowInternal + return ErrIntOverflowPublic } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2582,12 +1881,12 @@ func (m *QueryRequest) Unmarshal(dAtA []byte) error { m.Remote = bool(v != 0) default: iNdEx = preIndex - skippy, err := skipInternal(dAtA[iNdEx:]) + skippy, err := skipPublic(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthInternal + return ErrInvalidLengthPublic } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2609,7 +1908,7 @@ func (m *QueryResponse) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowInternal + return ErrIntOverflowPublic } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2637,7 +1936,7 @@ func (m *QueryResponse) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowInternal + return ErrIntOverflowPublic } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2651,7 +1950,7 @@ func (m *QueryResponse) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthInternal + return ErrInvalidLengthPublic } postIndex := iNdEx + intStringLen if postIndex > l { @@ -2666,7 +1965,7 @@ func (m *QueryResponse) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowInternal + return ErrIntOverflowPublic } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2679,7 +1978,7 @@ func (m *QueryResponse) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthInternal + return ErrInvalidLengthPublic } postIndex := iNdEx + msglen if postIndex > l { @@ -2697,7 +1996,7 @@ func (m *QueryResponse) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowInternal + return ErrIntOverflowPublic } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2710,7 +2009,7 @@ func (m *QueryResponse) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthInternal + return ErrInvalidLengthPublic } postIndex := iNdEx + msglen if postIndex > l { @@ -2723,12 +2022,12 @@ func (m *QueryResponse) Unmarshal(dAtA []byte) error { iNdEx = postIndex default: iNdEx = preIndex - skippy, err := skipInternal(dAtA[iNdEx:]) + skippy, err := skipPublic(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthInternal + return ErrInvalidLengthPublic } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2750,7 +2049,7 @@ func (m *QueryResult) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowInternal + return ErrIntOverflowPublic } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2778,7 +2077,7 @@ func (m *QueryResult) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowInternal + return ErrIntOverflowPublic } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2791,7 +2090,7 @@ func (m *QueryResult) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthInternal + return ErrInvalidLengthPublic } postIndex := iNdEx + msglen if postIndex > l { @@ -2811,7 +2110,7 @@ func (m *QueryResult) Unmarshal(dAtA []byte) error { m.N = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowInternal + return ErrIntOverflowPublic } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2830,7 +2129,7 @@ func (m *QueryResult) Unmarshal(dAtA []byte) error { var msglen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowInternal + return ErrIntOverflowPublic } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2843,7 +2142,7 @@ func (m *QueryResult) Unmarshal(dAtA []byte) error { } } if msglen < 0 { - return ErrInvalidLengthInternal + return ErrInvalidLengthPublic } postIndex := iNdEx + msglen if postIndex > l { @@ -2861,7 +2160,7 @@ func (m *QueryResult) Unmarshal(dAtA []byte) error { var v int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowInternal + return ErrIntOverflowPublic } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2876,12 +2175,12 @@ func (m *QueryResult) Unmarshal(dAtA []byte) error { m.Changed = bool(v != 0) default: iNdEx = preIndex - skippy, err := skipInternal(dAtA[iNdEx:]) + skippy, err := skipPublic(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthInternal + return ErrInvalidLengthPublic } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -2903,7 +2202,7 @@ func (m *ImportRequest) Unmarshal(dAtA []byte) error { var wire uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowInternal + return ErrIntOverflowPublic } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2931,7 +2230,7 @@ func (m *ImportRequest) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowInternal + return ErrIntOverflowPublic } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2945,7 +2244,7 @@ func (m *ImportRequest) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthInternal + return ErrInvalidLengthPublic } postIndex := iNdEx + intStringLen if postIndex > l { @@ -2960,7 +2259,7 @@ func (m *ImportRequest) Unmarshal(dAtA []byte) error { var stringLen uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowInternal + return ErrIntOverflowPublic } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -2974,7 +2273,7 @@ func (m *ImportRequest) Unmarshal(dAtA []byte) error { } intStringLen := int(stringLen) if intStringLen < 0 { - return ErrInvalidLengthInternal + return ErrInvalidLengthPublic } postIndex := iNdEx + intStringLen if postIndex > l { @@ -2989,7 +2288,7 @@ func (m *ImportRequest) Unmarshal(dAtA []byte) error { m.Slice = 0 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowInternal + return ErrIntOverflowPublic } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3006,7 +2305,7 @@ func (m *ImportRequest) Unmarshal(dAtA []byte) error { var packedLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowInternal + return ErrIntOverflowPublic } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3019,7 +2318,7 @@ func (m *ImportRequest) Unmarshal(dAtA []byte) error { } } if packedLen < 0 { - return ErrInvalidLengthInternal + return ErrInvalidLengthPublic } postIndex := iNdEx + packedLen if postIndex > l { @@ -3029,7 +2328,7 @@ func (m *ImportRequest) Unmarshal(dAtA []byte) error { var v uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowInternal + return ErrIntOverflowPublic } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3047,7 +2346,7 @@ func (m *ImportRequest) Unmarshal(dAtA []byte) error { var v uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowInternal + return ErrIntOverflowPublic } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3068,7 +2367,7 @@ func (m *ImportRequest) Unmarshal(dAtA []byte) error { var packedLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowInternal + return ErrIntOverflowPublic } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3081,7 +2380,7 @@ func (m *ImportRequest) Unmarshal(dAtA []byte) error { } } if packedLen < 0 { - return ErrInvalidLengthInternal + return ErrInvalidLengthPublic } postIndex := iNdEx + packedLen if postIndex > l { @@ -3091,7 +2390,7 @@ func (m *ImportRequest) Unmarshal(dAtA []byte) error { var v uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowInternal + return ErrIntOverflowPublic } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3109,7 +2408,7 @@ func (m *ImportRequest) Unmarshal(dAtA []byte) error { var v uint64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowInternal + return ErrIntOverflowPublic } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3130,7 +2429,7 @@ func (m *ImportRequest) Unmarshal(dAtA []byte) error { var packedLen int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowInternal + return ErrIntOverflowPublic } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3143,7 +2442,7 @@ func (m *ImportRequest) Unmarshal(dAtA []byte) error { } } if packedLen < 0 { - return ErrInvalidLengthInternal + return ErrInvalidLengthPublic } postIndex := iNdEx + packedLen if postIndex > l { @@ -3153,7 +2452,7 @@ func (m *ImportRequest) Unmarshal(dAtA []byte) error { var v int64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowInternal + return ErrIntOverflowPublic } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3171,7 +2470,7 @@ func (m *ImportRequest) Unmarshal(dAtA []byte) error { var v int64 for shift := uint(0); ; shift += 7 { if shift >= 64 { - return ErrIntOverflowInternal + return ErrIntOverflowPublic } if iNdEx >= l { return io.ErrUnexpectedEOF @@ -3189,12 +2488,12 @@ func (m *ImportRequest) Unmarshal(dAtA []byte) error { } default: iNdEx = preIndex - skippy, err := skipInternal(dAtA[iNdEx:]) + skippy, err := skipPublic(dAtA[iNdEx:]) if err != nil { return err } if skippy < 0 { - return ErrInvalidLengthInternal + return ErrInvalidLengthPublic } if (iNdEx + skippy) > l { return io.ErrUnexpectedEOF @@ -3208,710 +2507,14 @@ func (m *ImportRequest) Unmarshal(dAtA []byte) error { } return nil } -func (m *ImportResponse) 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 ErrIntOverflowInternal - } - 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: ImportResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: ImportResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Err", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowInternal - } - 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 ErrInvalidLengthInternal - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Err = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipInternal(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthInternal - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BlockDataRequest) 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 ErrIntOverflowInternal - } - 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: BlockDataRequest: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BlockDataRequest: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field DB", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowInternal - } - 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 ErrInvalidLengthInternal - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.DB = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 2: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Frame", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowInternal - } - 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 ErrInvalidLengthInternal - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.Frame = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - case 3: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Block", wireType) - } - m.Block = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowInternal - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Block |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 4: - if wireType != 0 { - return fmt.Errorf("proto: wrong wireType = %d for field Slice", wireType) - } - m.Slice = 0 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowInternal - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - m.Slice |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - case 5: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field View", wireType) - } - var stringLen uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowInternal - } - 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 ErrInvalidLengthInternal - } - postIndex := iNdEx + intStringLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - m.View = string(dAtA[iNdEx:postIndex]) - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipInternal(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthInternal - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *BlockDataResponse) 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 ErrIntOverflowInternal - } - 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: BlockDataResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: BlockDataResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowInternal - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return ErrInvalidLengthInternal - } - postIndex := iNdEx + packedLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - for iNdEx < postIndex { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowInternal - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.BitmapIDs = append(m.BitmapIDs, v) - } - } else if wireType == 0 { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowInternal - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.BitmapIDs = append(m.BitmapIDs, v) - } else { - return fmt.Errorf("proto: wrong wireType = %d for field BitmapIDs", wireType) - } - case 2: - if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowInternal - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return ErrInvalidLengthInternal - } - postIndex := iNdEx + packedLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - for iNdEx < postIndex { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowInternal - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.ProfileIDs = append(m.ProfileIDs, v) - } - } else if wireType == 0 { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowInternal - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.ProfileIDs = append(m.ProfileIDs, v) - } else { - return fmt.Errorf("proto: wrong wireType = %d for field ProfileIDs", wireType) - } - default: - iNdEx = preIndex - skippy, err := skipInternal(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthInternal - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *Cache) 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 ErrIntOverflowInternal - } - 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: Cache: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: Cache: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType == 2 { - var packedLen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowInternal - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - packedLen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if packedLen < 0 { - return ErrInvalidLengthInternal - } - postIndex := iNdEx + packedLen - if postIndex > l { - return io.ErrUnexpectedEOF - } - for iNdEx < postIndex { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowInternal - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.BitmapIDs = append(m.BitmapIDs, v) - } - } else if wireType == 0 { - var v uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowInternal - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - v |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.BitmapIDs = append(m.BitmapIDs, v) - } else { - return fmt.Errorf("proto: wrong wireType = %d for field BitmapIDs", wireType) - } - default: - iNdEx = preIndex - skippy, err := skipInternal(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthInternal - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func (m *MaxSlicesResponse) 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 ErrIntOverflowInternal - } - 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: MaxSlicesResponse: wiretype end group for non-group") - } - if fieldNum <= 0 { - return fmt.Errorf("proto: MaxSlicesResponse: illegal tag %d (wire type %d)", fieldNum, wire) - } - switch fieldNum { - case 1: - if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field MaxSlices", wireType) - } - var msglen int - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowInternal - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - msglen |= (int(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - if msglen < 0 { - return ErrInvalidLengthInternal - } - postIndex := iNdEx + msglen - if postIndex > l { - return io.ErrUnexpectedEOF - } - var keykey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowInternal - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - keykey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var stringLenmapkey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowInternal - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - stringLenmapkey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - intStringLenmapkey := int(stringLenmapkey) - if intStringLenmapkey < 0 { - return ErrInvalidLengthInternal - } - postStringIndexmapkey := iNdEx + intStringLenmapkey - if postStringIndexmapkey > l { - return io.ErrUnexpectedEOF - } - mapkey := string(dAtA[iNdEx:postStringIndexmapkey]) - iNdEx = postStringIndexmapkey - if m.MaxSlices == nil { - m.MaxSlices = make(map[string]uint64) - } - if iNdEx < postIndex { - var valuekey uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowInternal - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - valuekey |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - var mapvalue uint64 - for shift := uint(0); ; shift += 7 { - if shift >= 64 { - return ErrIntOverflowInternal - } - if iNdEx >= l { - return io.ErrUnexpectedEOF - } - b := dAtA[iNdEx] - iNdEx++ - mapvalue |= (uint64(b) & 0x7F) << shift - if b < 0x80 { - break - } - } - m.MaxSlices[mapkey] = mapvalue - } else { - var mapvalue uint64 - m.MaxSlices[mapkey] = mapvalue - } - iNdEx = postIndex - default: - iNdEx = preIndex - skippy, err := skipInternal(dAtA[iNdEx:]) - if err != nil { - return err - } - if skippy < 0 { - return ErrInvalidLengthInternal - } - if (iNdEx + skippy) > l { - return io.ErrUnexpectedEOF - } - iNdEx += skippy - } - } - - if iNdEx > l { - return io.ErrUnexpectedEOF - } - return nil -} -func skipInternal(dAtA []byte) (n int, err error) { +func skipPublic(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, ErrIntOverflowInternal + return 0, ErrIntOverflowPublic } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -3928,7 +2531,7 @@ func skipInternal(dAtA []byte) (n int, err error) { case 0: for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowInternal + return 0, ErrIntOverflowPublic } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -3946,7 +2549,7 @@ func skipInternal(dAtA []byte) (n int, err error) { var length int for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowInternal + return 0, ErrIntOverflowPublic } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -3960,7 +2563,7 @@ func skipInternal(dAtA []byte) (n int, err error) { } iNdEx += length if length < 0 { - return 0, ErrInvalidLengthInternal + return 0, ErrInvalidLengthPublic } return iNdEx, nil case 3: @@ -3969,7 +2572,7 @@ func skipInternal(dAtA []byte) (n int, err error) { var start int = iNdEx for shift := uint(0); ; shift += 7 { if shift >= 64 { - return 0, ErrIntOverflowInternal + return 0, ErrIntOverflowPublic } if iNdEx >= l { return 0, io.ErrUnexpectedEOF @@ -3985,7 +2588,7 @@ func skipInternal(dAtA []byte) (n int, err error) { if innerWireType == 4 { break } - next, err := skipInternal(dAtA[start:]) + next, err := skipPublic(dAtA[start:]) if err != nil { return 0, err } @@ -4005,60 +2608,48 @@ func skipInternal(dAtA []byte) (n int, err error) { } var ( - ErrInvalidLengthInternal = fmt.Errorf("proto: negative length found during unmarshaling") - ErrIntOverflowInternal = fmt.Errorf("proto: integer overflow") + ErrInvalidLengthPublic = fmt.Errorf("proto: negative length found during unmarshaling") + ErrIntOverflowPublic = fmt.Errorf("proto: integer overflow") ) -func init() { proto.RegisterFile("internal.proto", fileDescriptorInternal) } +func init() { proto.RegisterFile("public.proto", fileDescriptorPublic) } -var fileDescriptorInternal = []byte{ - // 766 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x55, 0xcd, 0x4e, 0x1c, 0x47, - 0x10, 0x4e, 0xef, 0xcc, 0xec, 0x4f, 0x2d, 0xac, 0x96, 0x16, 0x89, 0x46, 0x28, 0x5a, 0xad, 0x5a, - 0x49, 0xb4, 0x8a, 0x14, 0x90, 0xc8, 0x25, 0x8a, 0x22, 0x45, 0x9e, 0xdd, 0x45, 0xac, 0x6c, 0x10, - 0x34, 0x98, 0x9b, 0x0f, 0x0d, 0xb4, 0x61, 0xc4, 0xfc, 0xac, 0x7b, 0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0x8c, 0x1c, - 0x5a, 0x43, 0x08, 0x81, 0x5e, 0x51, 0xea, 0xb7, 0x74, 0x23, 0xd7, 0xd0, 0x0f, 0xa2, 0xf4, 0xe4, - 0x62, 0xc2, 0x24, 0xfb, 0x61, 0x46, 0x3a, 0xb2, 0x60, 0xa4, 0x8d, 0x8a, 0xa7, 0x5b, 0xe7, 0x89, - 0xc1, 0x3d, 0x0a, 0xf9, 0x95, 0x1d, 0x38, 0x7d, 0x26, 0xfb, 0xb0, 0x52, 0xfb, 0xb2, 0x2d, 0xf0, - 0x56, 0x43, 0xd0, 0xfd, 0x0d, 0x69, 0xdc, 0x6d, 0x08, 0xf9, 0x1d, 0xbc, 0x31, 0x3b, 0x39, 0xff, - 0x4e, 0x1a, 0xf2, 0x16, 0xc1, 0xca, 0x0e, 0xbb, 0x36, 0xbb, 0x52, 0x7e, 0x7a, 0x1b, 0x3a, 0x25, - 0x68, 0x97, 0xf5, 0xcf, 0x6a, 0x3a, 0xbe, 0xba, 0x5f, 0x21, 0xd3, 0x44, 0x8a, 0x05, 0xad, 0x82, - 0xd7, 0xfe, 0x83, 0xde, 0x6d, 0xa7, 0xea, 0xfb, 0x45, 0xf5, 0x66, 0x5d, 0x98, 0x47, 0xf8, 0x52, - 0x3f, 0x1e, 0xf6, 0x11, 0xd6, 0xc6, 0xbf, 0x8d, 0x7f, 0x50, 0xd0, 0xff, 0x70, 0x33, 0x40, 0x1f, - 0x6f, 0x06, 0xe8, 0xd3, 0xcd, 0x00, 0xbd, 0xfe, 0x3c, 0xf8, 0xe9, 0xb8, 0xa9, 0x7f, 0x6c, 0x7f, - 0x7f, 0x09, 0x00, 0x00, 0xff, 0xff, 0xba, 0xb0, 0xaa, 0x97, 0xea, 0x06, 0x00, 0x00, +var fileDescriptorPublic = []byte{ + // 572 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x8c, 0x54, 0xcd, 0x6e, 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 0x00, 0xff, 0xff, 0x71, 0xd9, 0x96, 0xf1, 0x79, 0x04, 0x00, 0x00, } diff --git a/internal/internal.proto b/internal/public.proto similarity index 64% rename from internal/internal.proto rename to internal/public.proto index 5ab689f88..ea8c71477 100644 --- a/internal/internal.proto +++ b/internal/public.proto @@ -2,17 +2,6 @@ syntax = "proto3"; package internal; -message DB { - string TimeQuantum = 1; - string ColumnLabel = 2; -} - -message Frame { - string TimeQuantum = 1; - string RowLabel = 2; - bool InverseEnabled = 3; -} - message Bitmap { repeated uint64 Bits = 1; repeated Attr Attrs = 2; @@ -44,7 +33,7 @@ message Attr { } message AttrMap { - repeated Attr Attrs = 1; + repeated Attr Attrs = 1; } message QueryRequest { @@ -77,29 +66,3 @@ message ImportRequest { repeated uint64 ProfileIDs = 5; repeated int64 Timestamps = 6; } - -message ImportResponse { - string Err = 1; -} - -message BlockDataRequest { - string DB = 1; - string Frame = 2; - string View = 5; - uint64 Slice = 4; - uint64 Block = 3; -} - -message BlockDataResponse { - repeated uint64 BitmapIDs = 1; - repeated uint64 ProfileIDs = 2; -} - -message Cache { - repeated uint64 BitmapIDs = 1; -} - -message MaxSlicesResponse { - map MaxSlices = 1; -} -