|
|
|
|
@ -7,6 +7,7 @@ import ( |
|
|
|
|
fmt "fmt" |
|
|
|
|
_ "github.com/gogo/protobuf/gogoproto" |
|
|
|
|
proto "github.com/gogo/protobuf/proto" |
|
|
|
|
logproto "github.com/grafana/loki/v3/pkg/logproto" |
|
|
|
|
github_com_prometheus_common_model "github.com/prometheus/common/model" |
|
|
|
|
io "io" |
|
|
|
|
math "math" |
|
|
|
|
@ -131,15 +132,67 @@ func (m *DayTable) GetPrefix() string { |
|
|
|
|
return "" |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
type ProtoSeries struct { |
|
|
|
|
Fingerprint uint64 `protobuf:"varint,1,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"` |
|
|
|
|
Chunks []*logproto.ShortRef `protobuf:"bytes,2,rep,name=chunks,proto3" json:"chunks,omitempty"` |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (m *ProtoSeries) Reset() { *m = ProtoSeries{} } |
|
|
|
|
func (*ProtoSeries) ProtoMessage() {} |
|
|
|
|
func (*ProtoSeries) Descriptor() ([]byte, []int) { |
|
|
|
|
return fileDescriptor_5325fb0610e1e9ae, []int{2} |
|
|
|
|
} |
|
|
|
|
func (m *ProtoSeries) XXX_Unmarshal(b []byte) error { |
|
|
|
|
return m.Unmarshal(b) |
|
|
|
|
} |
|
|
|
|
func (m *ProtoSeries) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
|
|
|
|
if deterministic { |
|
|
|
|
return xxx_messageInfo_ProtoSeries.Marshal(b, m, deterministic) |
|
|
|
|
} else { |
|
|
|
|
b = b[:cap(b)] |
|
|
|
|
n, err := m.MarshalToSizedBuffer(b) |
|
|
|
|
if err != nil { |
|
|
|
|
return nil, err |
|
|
|
|
} |
|
|
|
|
return b[:n], nil |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
func (m *ProtoSeries) XXX_Merge(src proto.Message) { |
|
|
|
|
xxx_messageInfo_ProtoSeries.Merge(m, src) |
|
|
|
|
} |
|
|
|
|
func (m *ProtoSeries) XXX_Size() int { |
|
|
|
|
return m.Size() |
|
|
|
|
} |
|
|
|
|
func (m *ProtoSeries) XXX_DiscardUnknown() { |
|
|
|
|
xxx_messageInfo_ProtoSeries.DiscardUnknown(m) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var xxx_messageInfo_ProtoSeries proto.InternalMessageInfo |
|
|
|
|
|
|
|
|
|
func (m *ProtoSeries) GetFingerprint() uint64 { |
|
|
|
|
if m != nil { |
|
|
|
|
return m.Fingerprint |
|
|
|
|
} |
|
|
|
|
return 0 |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (m *ProtoSeries) GetChunks() []*logproto.ShortRef { |
|
|
|
|
if m != nil { |
|
|
|
|
return m.Chunks |
|
|
|
|
} |
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
type ProtoGapWithBlocks struct { |
|
|
|
|
Bounds ProtoFingerprintBounds `protobuf:"bytes,1,opt,name=bounds,proto3" json:"bounds"` |
|
|
|
|
BlockRef []string `protobuf:"bytes,2,rep,name=blockRef,proto3" json:"blockRef,omitempty"` |
|
|
|
|
Series []*ProtoSeries `protobuf:"bytes,2,rep,name=series,proto3" json:"series,omitempty"` |
|
|
|
|
BlockRef []string `protobuf:"bytes,3,rep,name=blockRef,proto3" json:"blockRef,omitempty"` |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (m *ProtoGapWithBlocks) Reset() { *m = ProtoGapWithBlocks{} } |
|
|
|
|
func (*ProtoGapWithBlocks) ProtoMessage() {} |
|
|
|
|
func (*ProtoGapWithBlocks) Descriptor() ([]byte, []int) { |
|
|
|
|
return fileDescriptor_5325fb0610e1e9ae, []int{2} |
|
|
|
|
return fileDescriptor_5325fb0610e1e9ae, []int{3} |
|
|
|
|
} |
|
|
|
|
func (m *ProtoGapWithBlocks) XXX_Unmarshal(b []byte) error { |
|
|
|
|
return m.Unmarshal(b) |
|
|
|
|
@ -175,6 +228,13 @@ func (m *ProtoGapWithBlocks) GetBounds() ProtoFingerprintBounds { |
|
|
|
|
return ProtoFingerprintBounds{} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (m *ProtoGapWithBlocks) GetSeries() []*ProtoSeries { |
|
|
|
|
if m != nil { |
|
|
|
|
return m.Series |
|
|
|
|
} |
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (m *ProtoGapWithBlocks) GetBlockRef() []string { |
|
|
|
|
if m != nil { |
|
|
|
|
return m.BlockRef |
|
|
|
|
@ -197,7 +257,7 @@ type ProtoTask struct { |
|
|
|
|
func (m *ProtoTask) Reset() { *m = ProtoTask{} } |
|
|
|
|
func (*ProtoTask) ProtoMessage() {} |
|
|
|
|
func (*ProtoTask) Descriptor() ([]byte, []int) { |
|
|
|
|
return fileDescriptor_5325fb0610e1e9ae, []int{3} |
|
|
|
|
return fileDescriptor_5325fb0610e1e9ae, []int{4} |
|
|
|
|
} |
|
|
|
|
func (m *ProtoTask) XXX_Unmarshal(b []byte) error { |
|
|
|
|
return m.Unmarshal(b) |
|
|
|
|
@ -277,7 +337,7 @@ type ProtoMeta struct { |
|
|
|
|
func (m *ProtoMeta) Reset() { *m = ProtoMeta{} } |
|
|
|
|
func (*ProtoMeta) ProtoMessage() {} |
|
|
|
|
func (*ProtoMeta) Descriptor() ([]byte, []int) { |
|
|
|
|
return fileDescriptor_5325fb0610e1e9ae, []int{4} |
|
|
|
|
return fileDescriptor_5325fb0610e1e9ae, []int{5} |
|
|
|
|
} |
|
|
|
|
func (m *ProtoMeta) XXX_Unmarshal(b []byte) error { |
|
|
|
|
return m.Unmarshal(b) |
|
|
|
|
@ -336,7 +396,7 @@ type ProtoTaskResult struct { |
|
|
|
|
func (m *ProtoTaskResult) Reset() { *m = ProtoTaskResult{} } |
|
|
|
|
func (*ProtoTaskResult) ProtoMessage() {} |
|
|
|
|
func (*ProtoTaskResult) Descriptor() ([]byte, []int) { |
|
|
|
|
return fileDescriptor_5325fb0610e1e9ae, []int{5} |
|
|
|
|
return fileDescriptor_5325fb0610e1e9ae, []int{6} |
|
|
|
|
} |
|
|
|
|
func (m *ProtoTaskResult) XXX_Unmarshal(b []byte) error { |
|
|
|
|
return m.Unmarshal(b) |
|
|
|
|
@ -389,6 +449,7 @@ func (m *ProtoTaskResult) GetCreatedMetas() []*ProtoMeta { |
|
|
|
|
func init() { |
|
|
|
|
proto.RegisterType((*ProtoFingerprintBounds)(nil), "protos.ProtoFingerprintBounds") |
|
|
|
|
proto.RegisterType((*DayTable)(nil), "protos.DayTable") |
|
|
|
|
proto.RegisterType((*ProtoSeries)(nil), "protos.ProtoSeries") |
|
|
|
|
proto.RegisterType((*ProtoGapWithBlocks)(nil), "protos.ProtoGapWithBlocks") |
|
|
|
|
proto.RegisterType((*ProtoTask)(nil), "protos.ProtoTask") |
|
|
|
|
proto.RegisterType((*ProtoMeta)(nil), "protos.ProtoMeta") |
|
|
|
|
@ -398,42 +459,47 @@ func init() { |
|
|
|
|
func init() { proto.RegisterFile("pkg/bloombuild/protos/types.proto", fileDescriptor_5325fb0610e1e9ae) } |
|
|
|
|
|
|
|
|
|
var fileDescriptor_5325fb0610e1e9ae = []byte{ |
|
|
|
|
// 551 bytes of a gzipped FileDescriptorProto
|
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x53, 0xb1, 0x6f, 0xd3, 0x4e, |
|
|
|
|
0x18, 0xb5, 0xe3, 0x34, 0xbf, 0xe6, 0xd2, 0x5f, 0x81, 0x53, 0x55, 0x59, 0x11, 0xba, 0x04, 0x0f, |
|
|
|
|
0x28, 0x93, 0x2d, 0x05, 0x75, 0x40, 0x62, 0xb2, 0xa2, 0x22, 0x40, 0x95, 0xd0, 0x35, 0x12, 0x12, |
|
|
|
|
0xdb, 0x39, 0xbe, 0x3a, 0x56, 0x6c, 0x9f, 0xe5, 0x3b, 0xa3, 0x64, 0xe3, 0x4f, 0xe0, 0x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x02, 0x6d, |
|
|
|
|
0xf0, 0x5f, 0x4a, 0x05, 0x91, 0x01, 0x69, 0xf3, 0x5b, 0x08, 0x1d, 0x70, 0xc4, 0x59, 0x59, 0x4c, |
|
|
|
|
0x28, 0x1f, 0x5f, 0x8e, 0x7c, 0x5e, 0xe7, 0xb7, 0xd7, 0x83, 0x8f, 0x41, 0x7b, 0x9b, 0x27, 0xb7, |
|
|
|
|
0x2d, 0x35, 0xf0, 0xab, 0xe1, 0x7c, 0x00, 0x0f, 0xee, 0x03, 0xc6, 0x94, 0x97, 0x89, 0x50, 0xf9, |
|
|
|
|
0x10, 0x3e, 0x7b, 0x35, 0xaa, 0xb7, 0xd5, 0x08, 0x9e, 0x80, 0x03, 0x5a, 0x14, 0xac, 0xa8, 0xbf, |
|
|
|
|
0x0e, 0x0d, 0xe0, 0x19, 0x38, 0x9a, 0x14, 0x94, 0x08, 0x1a, 0x4a, 0xad, 0x7a, 0x43, 0x67, 0xf8, |
|
|
|
|
0x68, 0xcf, 0xa1, 0xbc, 0xc1, 0x7b, 0x63, 0xfe, 0x8b, 0xe5, 0x1a, 0x19, 0x37, 0x6b, 0x64, 0xdc, |
|
|
|
|
0xad, 0x91, 0xf9, 0xb1, 0x42, 0xe6, 0xe7, 0x0a, 0x99, 0xd7, 0x15, 0x32, 0x97, 0x15, 0x32, 0xbf, |
|
|
|
|
0x56, 0xc8, 0xfc, 0x56, 0x21, 0xe3, 0xae, 0x42, 0xe6, 0xa7, 0x0d, 0x32, 0x96, 0x1b, 0x64, 0xdc, |
|
|
|
|
0x6c, 0x90, 0xf1, 0xbe, 0xfe, 0x51, 0x03, 0x7d, 0x3e, 0xfb, 0x19, 0x00, 0x00, 0xff, 0xff, 0xdc, |
|
|
|
|
0x0e, 0x2e, 0xd1, 0xdc, 0x03, 0x00, 0x00, |
|
|
|
|
// 630 bytes of a gzipped FileDescriptorProto
|
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02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, 0x09, |
|
|
|
|
0xf8, 0xa6, 0xe0, 0x7e, 0x00, 0x77, 0xae, 0x03, 0xc6, 0x94, 0x97, 0x89, 0x50, 0xf9, 0x10, 0x3e, |
|
|
|
|
0x7b, 0x79, 0x60, 0xa6, 0x19, 0x04, 0x77, 0xc0, 0x06, 0x2d, 0x0a, 0x56, 0x98, 0x0f, 0x55, 0x03, |
|
|
|
|
0xb8, 0x0f, 0xb6, 0xc6, 0x05, 0x25, 0x82, 0x86, 0x52, 0xab, 0x9e, 0xd0, 0x1e, 0xdc, 0x5b, 0x73, |
|
|
|
|
0x28, 0x4f, 0xf0, 0x5a, 0x9b, 0xff, 0xfc, 0xf4, 0x1c, 0x59, 0x67, 0xe7, 0xc8, 0xba, 0x3a, 0x47, |
|
|
|
|
0xf6, 0xa7, 0x0a, 0xd9, 0x5f, 0x2b, 0x64, 0x9f, 0x54, 0xc8, 0x3e, 0xad, 0x90, 0xfd, 0xbd, 0x42, |
|
|
|
|
0xf6, 0x8f, 0x0a, 0x59, 0x57, 0x15, 0xb2, 0x3f, 0x5f, 0x20, 0xeb, 0xf4, 0x02, 0x59, 0x67, 0x17, |
|
|
|
|
0xc8, 0x7a, 0x67, 0x7e, 0x2a, 0x81, 0x5e, 0x9f, 0xfe, 0x0e, 0x00, 0x00, 0xff, 0xff, 0xf9, 0x38, |
|
|
|
|
0x02, 0xe1, 0x88, 0x04, 0x00, 0x00, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (this *ProtoFingerprintBounds) Equal(that interface{}) bool { |
|
|
|
|
@ -490,6 +556,38 @@ func (this *DayTable) Equal(that interface{}) bool { |
|
|
|
|
} |
|
|
|
|
return true |
|
|
|
|
} |
|
|
|
|
func (this *ProtoSeries) Equal(that interface{}) bool { |
|
|
|
|
if that == nil { |
|
|
|
|
return this == nil |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
that1, ok := that.(*ProtoSeries) |
|
|
|
|
if !ok { |
|
|
|
|
that2, ok := that.(ProtoSeries) |
|
|
|
|
if ok { |
|
|
|
|
that1 = &that2 |
|
|
|
|
} else { |
|
|
|
|
return false |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if that1 == nil { |
|
|
|
|
return this == nil |
|
|
|
|
} else if this == nil { |
|
|
|
|
return false |
|
|
|
|
} |
|
|
|
|
if this.Fingerprint != that1.Fingerprint { |
|
|
|
|
return false |
|
|
|
|
} |
|
|
|
|
if len(this.Chunks) != len(that1.Chunks) { |
|
|
|
|
return false |
|
|
|
|
} |
|
|
|
|
for i := range this.Chunks { |
|
|
|
|
if !this.Chunks[i].Equal(that1.Chunks[i]) { |
|
|
|
|
return false |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return true |
|
|
|
|
} |
|
|
|
|
func (this *ProtoGapWithBlocks) Equal(that interface{}) bool { |
|
|
|
|
if that == nil { |
|
|
|
|
return this == nil |
|
|
|
|
@ -512,6 +610,14 @@ func (this *ProtoGapWithBlocks) Equal(that interface{}) bool { |
|
|
|
|
if !this.Bounds.Equal(&that1.Bounds) { |
|
|
|
|
return false |
|
|
|
|
} |
|
|
|
|
if len(this.Series) != len(that1.Series) { |
|
|
|
|
return false |
|
|
|
|
} |
|
|
|
|
for i := range this.Series { |
|
|
|
|
if !this.Series[i].Equal(that1.Series[i]) { |
|
|
|
|
return false |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if len(this.BlockRef) != len(that1.BlockRef) { |
|
|
|
|
return false |
|
|
|
|
} |
|
|
|
|
@ -663,13 +769,29 @@ func (this *DayTable) GoString() string { |
|
|
|
|
s = append(s, "}") |
|
|
|
|
return strings.Join(s, "") |
|
|
|
|
} |
|
|
|
|
func (this *ProtoGapWithBlocks) GoString() string { |
|
|
|
|
func (this *ProtoSeries) GoString() string { |
|
|
|
|
if this == nil { |
|
|
|
|
return "nil" |
|
|
|
|
} |
|
|
|
|
s := make([]string, 0, 6) |
|
|
|
|
s = append(s, "&protos.ProtoSeries{") |
|
|
|
|
s = append(s, "Fingerprint: "+fmt.Sprintf("%#v", this.Fingerprint)+",\n") |
|
|
|
|
if this.Chunks != nil { |
|
|
|
|
s = append(s, "Chunks: "+fmt.Sprintf("%#v", this.Chunks)+",\n") |
|
|
|
|
} |
|
|
|
|
s = append(s, "}") |
|
|
|
|
return strings.Join(s, "") |
|
|
|
|
} |
|
|
|
|
func (this *ProtoGapWithBlocks) GoString() string { |
|
|
|
|
if this == nil { |
|
|
|
|
return "nil" |
|
|
|
|
} |
|
|
|
|
s := make([]string, 0, 7) |
|
|
|
|
s = append(s, "&protos.ProtoGapWithBlocks{") |
|
|
|
|
s = append(s, "Bounds: "+strings.Replace(this.Bounds.GoString(), `&`, ``, 1)+",\n") |
|
|
|
|
if this.Series != nil { |
|
|
|
|
s = append(s, "Series: "+fmt.Sprintf("%#v", this.Series)+",\n") |
|
|
|
|
} |
|
|
|
|
s = append(s, "BlockRef: "+fmt.Sprintf("%#v", this.BlockRef)+",\n") |
|
|
|
|
s = append(s, "}") |
|
|
|
|
return strings.Join(s, "") |
|
|
|
|
@ -793,6 +915,48 @@ func (m *DayTable) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
|
|
|
|
return len(dAtA) - i, nil |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (m *ProtoSeries) Marshal() (dAtA []byte, err error) { |
|
|
|
|
size := m.Size() |
|
|
|
|
dAtA = make([]byte, size) |
|
|
|
|
n, err := m.MarshalToSizedBuffer(dAtA[:size]) |
|
|
|
|
if err != nil { |
|
|
|
|
return nil, err |
|
|
|
|
} |
|
|
|
|
return dAtA[:n], nil |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (m *ProtoSeries) MarshalTo(dAtA []byte) (int, error) { |
|
|
|
|
size := m.Size() |
|
|
|
|
return m.MarshalToSizedBuffer(dAtA[:size]) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (m *ProtoSeries) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
|
|
|
|
i := len(dAtA) |
|
|
|
|
_ = i |
|
|
|
|
var l int |
|
|
|
|
_ = l |
|
|
|
|
if len(m.Chunks) > 0 { |
|
|
|
|
for iNdEx := len(m.Chunks) - 1; iNdEx >= 0; iNdEx-- { |
|
|
|
|
{ |
|
|
|
|
size, err := m.Chunks[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
|
|
|
|
if err != nil { |
|
|
|
|
return 0, err |
|
|
|
|
} |
|
|
|
|
i -= size |
|
|
|
|
i = encodeVarintTypes(dAtA, i, uint64(size)) |
|
|
|
|
} |
|
|
|
|
i-- |
|
|
|
|
dAtA[i] = 0x12 |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if m.Fingerprint != 0 { |
|
|
|
|
i = encodeVarintTypes(dAtA, i, uint64(m.Fingerprint)) |
|
|
|
|
i-- |
|
|
|
|
dAtA[i] = 0x8 |
|
|
|
|
} |
|
|
|
|
return len(dAtA) - i, nil |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (m *ProtoGapWithBlocks) Marshal() (dAtA []byte, err error) { |
|
|
|
|
size := m.Size() |
|
|
|
|
dAtA = make([]byte, size) |
|
|
|
|
@ -819,6 +983,20 @@ func (m *ProtoGapWithBlocks) MarshalToSizedBuffer(dAtA []byte) (int, error) { |
|
|
|
|
copy(dAtA[i:], m.BlockRef[iNdEx]) |
|
|
|
|
i = encodeVarintTypes(dAtA, i, uint64(len(m.BlockRef[iNdEx]))) |
|
|
|
|
i-- |
|
|
|
|
dAtA[i] = 0x1a |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if len(m.Series) > 0 { |
|
|
|
|
for iNdEx := len(m.Series) - 1; iNdEx >= 0; iNdEx-- { |
|
|
|
|
{ |
|
|
|
|
size, err := m.Series[iNdEx].MarshalToSizedBuffer(dAtA[:i]) |
|
|
|
|
if err != nil { |
|
|
|
|
return 0, err |
|
|
|
|
} |
|
|
|
|
i -= size |
|
|
|
|
i = encodeVarintTypes(dAtA, i, uint64(size)) |
|
|
|
|
} |
|
|
|
|
i-- |
|
|
|
|
dAtA[i] = 0x12 |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
@ -1054,6 +1232,24 @@ func (m *DayTable) Size() (n int) { |
|
|
|
|
return n |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (m *ProtoSeries) Size() (n int) { |
|
|
|
|
if m == nil { |
|
|
|
|
return 0 |
|
|
|
|
} |
|
|
|
|
var l int |
|
|
|
|
_ = l |
|
|
|
|
if m.Fingerprint != 0 { |
|
|
|
|
n += 1 + sovTypes(uint64(m.Fingerprint)) |
|
|
|
|
} |
|
|
|
|
if len(m.Chunks) > 0 { |
|
|
|
|
for _, e := range m.Chunks { |
|
|
|
|
l = e.Size() |
|
|
|
|
n += 1 + l + sovTypes(uint64(l)) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return n |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (m *ProtoGapWithBlocks) Size() (n int) { |
|
|
|
|
if m == nil { |
|
|
|
|
return 0 |
|
|
|
|
@ -1062,6 +1258,12 @@ func (m *ProtoGapWithBlocks) Size() (n int) { |
|
|
|
|
_ = l |
|
|
|
|
l = m.Bounds.Size() |
|
|
|
|
n += 1 + l + sovTypes(uint64(l)) |
|
|
|
|
if len(m.Series) > 0 { |
|
|
|
|
for _, e := range m.Series { |
|
|
|
|
l = e.Size() |
|
|
|
|
n += 1 + l + sovTypes(uint64(l)) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if len(m.BlockRef) > 0 { |
|
|
|
|
for _, s := range m.BlockRef { |
|
|
|
|
l = len(s) |
|
|
|
|
@ -1178,12 +1380,34 @@ func (this *DayTable) String() string { |
|
|
|
|
}, "") |
|
|
|
|
return s |
|
|
|
|
} |
|
|
|
|
func (this *ProtoSeries) String() string { |
|
|
|
|
if this == nil { |
|
|
|
|
return "nil" |
|
|
|
|
} |
|
|
|
|
repeatedStringForChunks := "[]*ShortRef{" |
|
|
|
|
for _, f := range this.Chunks { |
|
|
|
|
repeatedStringForChunks += strings.Replace(fmt.Sprintf("%v", f), "ShortRef", "logproto.ShortRef", 1) + "," |
|
|
|
|
} |
|
|
|
|
repeatedStringForChunks += "}" |
|
|
|
|
s := strings.Join([]string{`&ProtoSeries{`, |
|
|
|
|
`Fingerprint:` + fmt.Sprintf("%v", this.Fingerprint) + `,`, |
|
|
|
|
`Chunks:` + repeatedStringForChunks + `,`, |
|
|
|
|
`}`, |
|
|
|
|
}, "") |
|
|
|
|
return s |
|
|
|
|
} |
|
|
|
|
func (this *ProtoGapWithBlocks) String() string { |
|
|
|
|
if this == nil { |
|
|
|
|
return "nil" |
|
|
|
|
} |
|
|
|
|
repeatedStringForSeries := "[]*ProtoSeries{" |
|
|
|
|
for _, f := range this.Series { |
|
|
|
|
repeatedStringForSeries += strings.Replace(f.String(), "ProtoSeries", "ProtoSeries", 1) + "," |
|
|
|
|
} |
|
|
|
|
repeatedStringForSeries += "}" |
|
|
|
|
s := strings.Join([]string{`&ProtoGapWithBlocks{`, |
|
|
|
|
`Bounds:` + strings.Replace(strings.Replace(this.Bounds.String(), "ProtoFingerprintBounds", "ProtoFingerprintBounds", 1), `&`, ``, 1) + `,`, |
|
|
|
|
`Series:` + repeatedStringForSeries + `,`, |
|
|
|
|
`BlockRef:` + fmt.Sprintf("%v", this.BlockRef) + `,`, |
|
|
|
|
`}`, |
|
|
|
|
}, "") |
|
|
|
|
@ -1441,6 +1665,112 @@ func (m *DayTable) Unmarshal(dAtA []byte) error { |
|
|
|
|
} |
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
|
func (m *ProtoSeries) 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 ErrIntOverflowTypes |
|
|
|
|
} |
|
|
|
|
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: ProtoSeries: wiretype end group for non-group") |
|
|
|
|
} |
|
|
|
|
if fieldNum <= 0 { |
|
|
|
|
return fmt.Errorf("proto: ProtoSeries: illegal tag %d (wire type %d)", fieldNum, wire) |
|
|
|
|
} |
|
|
|
|
switch fieldNum { |
|
|
|
|
case 1: |
|
|
|
|
if wireType != 0 { |
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Fingerprint", wireType) |
|
|
|
|
} |
|
|
|
|
m.Fingerprint = 0 |
|
|
|
|
for shift := uint(0); ; shift += 7 { |
|
|
|
|
if shift >= 64 { |
|
|
|
|
return ErrIntOverflowTypes |
|
|
|
|
} |
|
|
|
|
if iNdEx >= l { |
|
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
|
} |
|
|
|
|
b := dAtA[iNdEx] |
|
|
|
|
iNdEx++ |
|
|
|
|
m.Fingerprint |= uint64(b&0x7F) << shift |
|
|
|
|
if b < 0x80 { |
|
|
|
|
break |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
case 2: |
|
|
|
|
if wireType != 2 { |
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Chunks", wireType) |
|
|
|
|
} |
|
|
|
|
var msglen int |
|
|
|
|
for shift := uint(0); ; shift += 7 { |
|
|
|
|
if shift >= 64 { |
|
|
|
|
return ErrIntOverflowTypes |
|
|
|
|
} |
|
|
|
|
if iNdEx >= l { |
|
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
|
} |
|
|
|
|
b := dAtA[iNdEx] |
|
|
|
|
iNdEx++ |
|
|
|
|
msglen |= int(b&0x7F) << shift |
|
|
|
|
if b < 0x80 { |
|
|
|
|
break |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if msglen < 0 { |
|
|
|
|
return ErrInvalidLengthTypes |
|
|
|
|
} |
|
|
|
|
postIndex := iNdEx + msglen |
|
|
|
|
if postIndex < 0 { |
|
|
|
|
return ErrInvalidLengthTypes |
|
|
|
|
} |
|
|
|
|
if postIndex > l { |
|
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
|
} |
|
|
|
|
m.Chunks = append(m.Chunks, &logproto.ShortRef{}) |
|
|
|
|
if err := m.Chunks[len(m.Chunks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
|
|
|
|
return err |
|
|
|
|
} |
|
|
|
|
iNdEx = postIndex |
|
|
|
|
default: |
|
|
|
|
iNdEx = preIndex |
|
|
|
|
skippy, err := skipTypes(dAtA[iNdEx:]) |
|
|
|
|
if err != nil { |
|
|
|
|
return err |
|
|
|
|
} |
|
|
|
|
if skippy < 0 { |
|
|
|
|
return ErrInvalidLengthTypes |
|
|
|
|
} |
|
|
|
|
if (iNdEx + skippy) < 0 { |
|
|
|
|
return ErrInvalidLengthTypes |
|
|
|
|
} |
|
|
|
|
if (iNdEx + skippy) > l { |
|
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
|
} |
|
|
|
|
iNdEx += skippy |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if iNdEx > l { |
|
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
|
} |
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
|
func (m *ProtoGapWithBlocks) Unmarshal(dAtA []byte) error { |
|
|
|
|
l := len(dAtA) |
|
|
|
|
iNdEx := 0 |
|
|
|
|
@ -1504,6 +1834,40 @@ func (m *ProtoGapWithBlocks) Unmarshal(dAtA []byte) error { |
|
|
|
|
} |
|
|
|
|
iNdEx = postIndex |
|
|
|
|
case 2: |
|
|
|
|
if wireType != 2 { |
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Series", wireType) |
|
|
|
|
} |
|
|
|
|
var msglen int |
|
|
|
|
for shift := uint(0); ; shift += 7 { |
|
|
|
|
if shift >= 64 { |
|
|
|
|
return ErrIntOverflowTypes |
|
|
|
|
} |
|
|
|
|
if iNdEx >= l { |
|
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
|
} |
|
|
|
|
b := dAtA[iNdEx] |
|
|
|
|
iNdEx++ |
|
|
|
|
msglen |= int(b&0x7F) << shift |
|
|
|
|
if b < 0x80 { |
|
|
|
|
break |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if msglen < 0 { |
|
|
|
|
return ErrInvalidLengthTypes |
|
|
|
|
} |
|
|
|
|
postIndex := iNdEx + msglen |
|
|
|
|
if postIndex < 0 { |
|
|
|
|
return ErrInvalidLengthTypes |
|
|
|
|
} |
|
|
|
|
if postIndex > l { |
|
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
|
} |
|
|
|
|
m.Series = append(m.Series, &ProtoSeries{}) |
|
|
|
|
if err := m.Series[len(m.Series)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { |
|
|
|
|
return err |
|
|
|
|
} |
|
|
|
|
iNdEx = postIndex |
|
|
|
|
case 3: |
|
|
|
|
if wireType != 2 { |
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field BlockRef", wireType) |
|
|
|
|
} |
|
|
|
|
|