1// Code generated by protoc-gen-gogo. DO NOT EDIT.
2// source: pkg/logproto/logproto.proto
3
4package logproto
5
6import (
7	bytes "bytes"
8	context "context"
9	encoding_binary "encoding/binary"
10	fmt "fmt"
11	_ "github.com/gogo/protobuf/gogoproto"
12	proto "github.com/gogo/protobuf/proto"
13	github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys"
14	_ "github.com/gogo/protobuf/types"
15	github_com_gogo_protobuf_types "github.com/gogo/protobuf/types"
16	grpc "google.golang.org/grpc"
17	codes "google.golang.org/grpc/codes"
18	status "google.golang.org/grpc/status"
19	io "io"
20	math "math"
21	math_bits "math/bits"
22	reflect "reflect"
23	strconv "strconv"
24	strings "strings"
25	time "time"
26)
27
28// Reference imports to suppress errors if they are not otherwise used.
29var _ = proto.Marshal
30var _ = fmt.Errorf
31var _ = math.Inf
32var _ = time.Kitchen
33
34// This is a compile-time assertion to ensure that this generated file
35// is compatible with the proto package it is being compiled against.
36// A compilation error at this line likely means your copy of the
37// proto package needs to be updated.
38const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
39
40type Direction int32
41
42const (
43	FORWARD  Direction = 0
44	BACKWARD Direction = 1
45)
46
47var Direction_name = map[int32]string{
48	0: "FORWARD",
49	1: "BACKWARD",
50}
51
52var Direction_value = map[string]int32{
53	"FORWARD":  0,
54	"BACKWARD": 1,
55}
56
57func (Direction) EnumDescriptor() ([]byte, []int) {
58	return fileDescriptor_c28a5f14f1f4c79a, []int{0}
59}
60
61type PushRequest struct {
62	Streams []Stream `protobuf:"bytes,1,rep,name=streams,proto3,customtype=Stream" json:"streams"`
63}
64
65func (m *PushRequest) Reset()      { *m = PushRequest{} }
66func (*PushRequest) ProtoMessage() {}
67func (*PushRequest) Descriptor() ([]byte, []int) {
68	return fileDescriptor_c28a5f14f1f4c79a, []int{0}
69}
70func (m *PushRequest) XXX_Unmarshal(b []byte) error {
71	return m.Unmarshal(b)
72}
73func (m *PushRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
74	if deterministic {
75		return xxx_messageInfo_PushRequest.Marshal(b, m, deterministic)
76	} else {
77		b = b[:cap(b)]
78		n, err := m.MarshalToSizedBuffer(b)
79		if err != nil {
80			return nil, err
81		}
82		return b[:n], nil
83	}
84}
85func (m *PushRequest) XXX_Merge(src proto.Message) {
86	xxx_messageInfo_PushRequest.Merge(m, src)
87}
88func (m *PushRequest) XXX_Size() int {
89	return m.Size()
90}
91func (m *PushRequest) XXX_DiscardUnknown() {
92	xxx_messageInfo_PushRequest.DiscardUnknown(m)
93}
94
95var xxx_messageInfo_PushRequest proto.InternalMessageInfo
96
97type PushResponse struct {
98}
99
100func (m *PushResponse) Reset()      { *m = PushResponse{} }
101func (*PushResponse) ProtoMessage() {}
102func (*PushResponse) Descriptor() ([]byte, []int) {
103	return fileDescriptor_c28a5f14f1f4c79a, []int{1}
104}
105func (m *PushResponse) XXX_Unmarshal(b []byte) error {
106	return m.Unmarshal(b)
107}
108func (m *PushResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
109	if deterministic {
110		return xxx_messageInfo_PushResponse.Marshal(b, m, deterministic)
111	} else {
112		b = b[:cap(b)]
113		n, err := m.MarshalToSizedBuffer(b)
114		if err != nil {
115			return nil, err
116		}
117		return b[:n], nil
118	}
119}
120func (m *PushResponse) XXX_Merge(src proto.Message) {
121	xxx_messageInfo_PushResponse.Merge(m, src)
122}
123func (m *PushResponse) XXX_Size() int {
124	return m.Size()
125}
126func (m *PushResponse) XXX_DiscardUnknown() {
127	xxx_messageInfo_PushResponse.DiscardUnknown(m)
128}
129
130var xxx_messageInfo_PushResponse proto.InternalMessageInfo
131
132type QueryRequest struct {
133	Selector  string    `protobuf:"bytes,1,opt,name=selector,proto3" json:"selector,omitempty"`
134	Limit     uint32    `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
135	Start     time.Time `protobuf:"bytes,3,opt,name=start,proto3,stdtime" json:"start"`
136	End       time.Time `protobuf:"bytes,4,opt,name=end,proto3,stdtime" json:"end"`
137	Direction Direction `protobuf:"varint,5,opt,name=direction,proto3,enum=logproto.Direction" json:"direction,omitempty"`
138	Shards    []string  `protobuf:"bytes,7,rep,name=shards,proto3" json:"shards,omitempty"`
139}
140
141func (m *QueryRequest) Reset()      { *m = QueryRequest{} }
142func (*QueryRequest) ProtoMessage() {}
143func (*QueryRequest) Descriptor() ([]byte, []int) {
144	return fileDescriptor_c28a5f14f1f4c79a, []int{2}
145}
146func (m *QueryRequest) XXX_Unmarshal(b []byte) error {
147	return m.Unmarshal(b)
148}
149func (m *QueryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
150	if deterministic {
151		return xxx_messageInfo_QueryRequest.Marshal(b, m, deterministic)
152	} else {
153		b = b[:cap(b)]
154		n, err := m.MarshalToSizedBuffer(b)
155		if err != nil {
156			return nil, err
157		}
158		return b[:n], nil
159	}
160}
161func (m *QueryRequest) XXX_Merge(src proto.Message) {
162	xxx_messageInfo_QueryRequest.Merge(m, src)
163}
164func (m *QueryRequest) XXX_Size() int {
165	return m.Size()
166}
167func (m *QueryRequest) XXX_DiscardUnknown() {
168	xxx_messageInfo_QueryRequest.DiscardUnknown(m)
169}
170
171var xxx_messageInfo_QueryRequest proto.InternalMessageInfo
172
173func (m *QueryRequest) GetSelector() string {
174	if m != nil {
175		return m.Selector
176	}
177	return ""
178}
179
180func (m *QueryRequest) GetLimit() uint32 {
181	if m != nil {
182		return m.Limit
183	}
184	return 0
185}
186
187func (m *QueryRequest) GetStart() time.Time {
188	if m != nil {
189		return m.Start
190	}
191	return time.Time{}
192}
193
194func (m *QueryRequest) GetEnd() time.Time {
195	if m != nil {
196		return m.End
197	}
198	return time.Time{}
199}
200
201func (m *QueryRequest) GetDirection() Direction {
202	if m != nil {
203		return m.Direction
204	}
205	return FORWARD
206}
207
208func (m *QueryRequest) GetShards() []string {
209	if m != nil {
210		return m.Shards
211	}
212	return nil
213}
214
215type SampleQueryRequest struct {
216	Selector string    `protobuf:"bytes,1,opt,name=selector,proto3" json:"selector,omitempty"`
217	Start    time.Time `protobuf:"bytes,2,opt,name=start,proto3,stdtime" json:"start"`
218	End      time.Time `protobuf:"bytes,3,opt,name=end,proto3,stdtime" json:"end"`
219	Shards   []string  `protobuf:"bytes,4,rep,name=shards,proto3" json:"shards,omitempty"`
220}
221
222func (m *SampleQueryRequest) Reset()      { *m = SampleQueryRequest{} }
223func (*SampleQueryRequest) ProtoMessage() {}
224func (*SampleQueryRequest) Descriptor() ([]byte, []int) {
225	return fileDescriptor_c28a5f14f1f4c79a, []int{3}
226}
227func (m *SampleQueryRequest) XXX_Unmarshal(b []byte) error {
228	return m.Unmarshal(b)
229}
230func (m *SampleQueryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
231	if deterministic {
232		return xxx_messageInfo_SampleQueryRequest.Marshal(b, m, deterministic)
233	} else {
234		b = b[:cap(b)]
235		n, err := m.MarshalToSizedBuffer(b)
236		if err != nil {
237			return nil, err
238		}
239		return b[:n], nil
240	}
241}
242func (m *SampleQueryRequest) XXX_Merge(src proto.Message) {
243	xxx_messageInfo_SampleQueryRequest.Merge(m, src)
244}
245func (m *SampleQueryRequest) XXX_Size() int {
246	return m.Size()
247}
248func (m *SampleQueryRequest) XXX_DiscardUnknown() {
249	xxx_messageInfo_SampleQueryRequest.DiscardUnknown(m)
250}
251
252var xxx_messageInfo_SampleQueryRequest proto.InternalMessageInfo
253
254func (m *SampleQueryRequest) GetSelector() string {
255	if m != nil {
256		return m.Selector
257	}
258	return ""
259}
260
261func (m *SampleQueryRequest) GetStart() time.Time {
262	if m != nil {
263		return m.Start
264	}
265	return time.Time{}
266}
267
268func (m *SampleQueryRequest) GetEnd() time.Time {
269	if m != nil {
270		return m.End
271	}
272	return time.Time{}
273}
274
275func (m *SampleQueryRequest) GetShards() []string {
276	if m != nil {
277		return m.Shards
278	}
279	return nil
280}
281
282type SampleQueryResponse struct {
283	Series []Series `protobuf:"bytes,1,rep,name=series,proto3,customtype=Series" json:"series,omitempty"`
284}
285
286func (m *SampleQueryResponse) Reset()      { *m = SampleQueryResponse{} }
287func (*SampleQueryResponse) ProtoMessage() {}
288func (*SampleQueryResponse) Descriptor() ([]byte, []int) {
289	return fileDescriptor_c28a5f14f1f4c79a, []int{4}
290}
291func (m *SampleQueryResponse) XXX_Unmarshal(b []byte) error {
292	return m.Unmarshal(b)
293}
294func (m *SampleQueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
295	if deterministic {
296		return xxx_messageInfo_SampleQueryResponse.Marshal(b, m, deterministic)
297	} else {
298		b = b[:cap(b)]
299		n, err := m.MarshalToSizedBuffer(b)
300		if err != nil {
301			return nil, err
302		}
303		return b[:n], nil
304	}
305}
306func (m *SampleQueryResponse) XXX_Merge(src proto.Message) {
307	xxx_messageInfo_SampleQueryResponse.Merge(m, src)
308}
309func (m *SampleQueryResponse) XXX_Size() int {
310	return m.Size()
311}
312func (m *SampleQueryResponse) XXX_DiscardUnknown() {
313	xxx_messageInfo_SampleQueryResponse.DiscardUnknown(m)
314}
315
316var xxx_messageInfo_SampleQueryResponse proto.InternalMessageInfo
317
318type QueryResponse struct {
319	Streams []Stream `protobuf:"bytes,1,rep,name=streams,proto3,customtype=Stream" json:"streams,omitempty"`
320}
321
322func (m *QueryResponse) Reset()      { *m = QueryResponse{} }
323func (*QueryResponse) ProtoMessage() {}
324func (*QueryResponse) Descriptor() ([]byte, []int) {
325	return fileDescriptor_c28a5f14f1f4c79a, []int{5}
326}
327func (m *QueryResponse) XXX_Unmarshal(b []byte) error {
328	return m.Unmarshal(b)
329}
330func (m *QueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
331	if deterministic {
332		return xxx_messageInfo_QueryResponse.Marshal(b, m, deterministic)
333	} else {
334		b = b[:cap(b)]
335		n, err := m.MarshalToSizedBuffer(b)
336		if err != nil {
337			return nil, err
338		}
339		return b[:n], nil
340	}
341}
342func (m *QueryResponse) XXX_Merge(src proto.Message) {
343	xxx_messageInfo_QueryResponse.Merge(m, src)
344}
345func (m *QueryResponse) XXX_Size() int {
346	return m.Size()
347}
348func (m *QueryResponse) XXX_DiscardUnknown() {
349	xxx_messageInfo_QueryResponse.DiscardUnknown(m)
350}
351
352var xxx_messageInfo_QueryResponse proto.InternalMessageInfo
353
354type LabelRequest struct {
355	Name   string     `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
356	Values bool       `protobuf:"varint,2,opt,name=values,proto3" json:"values,omitempty"`
357	Start  *time.Time `protobuf:"bytes,3,opt,name=start,proto3,stdtime" json:"start,omitempty"`
358	End    *time.Time `protobuf:"bytes,4,opt,name=end,proto3,stdtime" json:"end,omitempty"`
359}
360
361func (m *LabelRequest) Reset()      { *m = LabelRequest{} }
362func (*LabelRequest) ProtoMessage() {}
363func (*LabelRequest) Descriptor() ([]byte, []int) {
364	return fileDescriptor_c28a5f14f1f4c79a, []int{6}
365}
366func (m *LabelRequest) XXX_Unmarshal(b []byte) error {
367	return m.Unmarshal(b)
368}
369func (m *LabelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
370	if deterministic {
371		return xxx_messageInfo_LabelRequest.Marshal(b, m, deterministic)
372	} else {
373		b = b[:cap(b)]
374		n, err := m.MarshalToSizedBuffer(b)
375		if err != nil {
376			return nil, err
377		}
378		return b[:n], nil
379	}
380}
381func (m *LabelRequest) XXX_Merge(src proto.Message) {
382	xxx_messageInfo_LabelRequest.Merge(m, src)
383}
384func (m *LabelRequest) XXX_Size() int {
385	return m.Size()
386}
387func (m *LabelRequest) XXX_DiscardUnknown() {
388	xxx_messageInfo_LabelRequest.DiscardUnknown(m)
389}
390
391var xxx_messageInfo_LabelRequest proto.InternalMessageInfo
392
393func (m *LabelRequest) GetName() string {
394	if m != nil {
395		return m.Name
396	}
397	return ""
398}
399
400func (m *LabelRequest) GetValues() bool {
401	if m != nil {
402		return m.Values
403	}
404	return false
405}
406
407func (m *LabelRequest) GetStart() *time.Time {
408	if m != nil {
409		return m.Start
410	}
411	return nil
412}
413
414func (m *LabelRequest) GetEnd() *time.Time {
415	if m != nil {
416		return m.End
417	}
418	return nil
419}
420
421type LabelResponse struct {
422	Values []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
423}
424
425func (m *LabelResponse) Reset()      { *m = LabelResponse{} }
426func (*LabelResponse) ProtoMessage() {}
427func (*LabelResponse) Descriptor() ([]byte, []int) {
428	return fileDescriptor_c28a5f14f1f4c79a, []int{7}
429}
430func (m *LabelResponse) XXX_Unmarshal(b []byte) error {
431	return m.Unmarshal(b)
432}
433func (m *LabelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
434	if deterministic {
435		return xxx_messageInfo_LabelResponse.Marshal(b, m, deterministic)
436	} else {
437		b = b[:cap(b)]
438		n, err := m.MarshalToSizedBuffer(b)
439		if err != nil {
440			return nil, err
441		}
442		return b[:n], nil
443	}
444}
445func (m *LabelResponse) XXX_Merge(src proto.Message) {
446	xxx_messageInfo_LabelResponse.Merge(m, src)
447}
448func (m *LabelResponse) XXX_Size() int {
449	return m.Size()
450}
451func (m *LabelResponse) XXX_DiscardUnknown() {
452	xxx_messageInfo_LabelResponse.DiscardUnknown(m)
453}
454
455var xxx_messageInfo_LabelResponse proto.InternalMessageInfo
456
457func (m *LabelResponse) GetValues() []string {
458	if m != nil {
459		return m.Values
460	}
461	return nil
462}
463
464type StreamAdapter struct {
465	Labels  string         `protobuf:"bytes,1,opt,name=labels,proto3" json:"labels"`
466	Entries []EntryAdapter `protobuf:"bytes,2,rep,name=entries,proto3" json:"entries"`
467}
468
469func (m *StreamAdapter) Reset()      { *m = StreamAdapter{} }
470func (*StreamAdapter) ProtoMessage() {}
471func (*StreamAdapter) Descriptor() ([]byte, []int) {
472	return fileDescriptor_c28a5f14f1f4c79a, []int{8}
473}
474func (m *StreamAdapter) XXX_Unmarshal(b []byte) error {
475	return m.Unmarshal(b)
476}
477func (m *StreamAdapter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
478	if deterministic {
479		return xxx_messageInfo_StreamAdapter.Marshal(b, m, deterministic)
480	} else {
481		b = b[:cap(b)]
482		n, err := m.MarshalToSizedBuffer(b)
483		if err != nil {
484			return nil, err
485		}
486		return b[:n], nil
487	}
488}
489func (m *StreamAdapter) XXX_Merge(src proto.Message) {
490	xxx_messageInfo_StreamAdapter.Merge(m, src)
491}
492func (m *StreamAdapter) XXX_Size() int {
493	return m.Size()
494}
495func (m *StreamAdapter) XXX_DiscardUnknown() {
496	xxx_messageInfo_StreamAdapter.DiscardUnknown(m)
497}
498
499var xxx_messageInfo_StreamAdapter proto.InternalMessageInfo
500
501func (m *StreamAdapter) GetLabels() string {
502	if m != nil {
503		return m.Labels
504	}
505	return ""
506}
507
508func (m *StreamAdapter) GetEntries() []EntryAdapter {
509	if m != nil {
510		return m.Entries
511	}
512	return nil
513}
514
515type EntryAdapter struct {
516	Timestamp time.Time `protobuf:"bytes,1,opt,name=timestamp,proto3,stdtime" json:"ts"`
517	Line      string    `protobuf:"bytes,2,opt,name=line,proto3" json:"line"`
518}
519
520func (m *EntryAdapter) Reset()      { *m = EntryAdapter{} }
521func (*EntryAdapter) ProtoMessage() {}
522func (*EntryAdapter) Descriptor() ([]byte, []int) {
523	return fileDescriptor_c28a5f14f1f4c79a, []int{9}
524}
525func (m *EntryAdapter) XXX_Unmarshal(b []byte) error {
526	return m.Unmarshal(b)
527}
528func (m *EntryAdapter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
529	if deterministic {
530		return xxx_messageInfo_EntryAdapter.Marshal(b, m, deterministic)
531	} else {
532		b = b[:cap(b)]
533		n, err := m.MarshalToSizedBuffer(b)
534		if err != nil {
535			return nil, err
536		}
537		return b[:n], nil
538	}
539}
540func (m *EntryAdapter) XXX_Merge(src proto.Message) {
541	xxx_messageInfo_EntryAdapter.Merge(m, src)
542}
543func (m *EntryAdapter) XXX_Size() int {
544	return m.Size()
545}
546func (m *EntryAdapter) XXX_DiscardUnknown() {
547	xxx_messageInfo_EntryAdapter.DiscardUnknown(m)
548}
549
550var xxx_messageInfo_EntryAdapter proto.InternalMessageInfo
551
552func (m *EntryAdapter) GetTimestamp() time.Time {
553	if m != nil {
554		return m.Timestamp
555	}
556	return time.Time{}
557}
558
559func (m *EntryAdapter) GetLine() string {
560	if m != nil {
561		return m.Line
562	}
563	return ""
564}
565
566type Sample struct {
567	Timestamp int64   `protobuf:"varint,1,opt,name=timestamp,proto3" json:"ts"`
568	Value     float64 `protobuf:"fixed64,2,opt,name=value,proto3" json:"value"`
569	Hash      uint64  `protobuf:"varint,3,opt,name=hash,proto3" json:"hash"`
570}
571
572func (m *Sample) Reset()      { *m = Sample{} }
573func (*Sample) ProtoMessage() {}
574func (*Sample) Descriptor() ([]byte, []int) {
575	return fileDescriptor_c28a5f14f1f4c79a, []int{10}
576}
577func (m *Sample) XXX_Unmarshal(b []byte) error {
578	return m.Unmarshal(b)
579}
580func (m *Sample) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
581	if deterministic {
582		return xxx_messageInfo_Sample.Marshal(b, m, deterministic)
583	} else {
584		b = b[:cap(b)]
585		n, err := m.MarshalToSizedBuffer(b)
586		if err != nil {
587			return nil, err
588		}
589		return b[:n], nil
590	}
591}
592func (m *Sample) XXX_Merge(src proto.Message) {
593	xxx_messageInfo_Sample.Merge(m, src)
594}
595func (m *Sample) XXX_Size() int {
596	return m.Size()
597}
598func (m *Sample) XXX_DiscardUnknown() {
599	xxx_messageInfo_Sample.DiscardUnknown(m)
600}
601
602var xxx_messageInfo_Sample proto.InternalMessageInfo
603
604func (m *Sample) GetTimestamp() int64 {
605	if m != nil {
606		return m.Timestamp
607	}
608	return 0
609}
610
611func (m *Sample) GetValue() float64 {
612	if m != nil {
613		return m.Value
614	}
615	return 0
616}
617
618func (m *Sample) GetHash() uint64 {
619	if m != nil {
620		return m.Hash
621	}
622	return 0
623}
624
625type Series struct {
626	Labels  string   `protobuf:"bytes,1,opt,name=labels,proto3" json:"labels"`
627	Samples []Sample `protobuf:"bytes,2,rep,name=samples,proto3" json:"samples"`
628}
629
630func (m *Series) Reset()      { *m = Series{} }
631func (*Series) ProtoMessage() {}
632func (*Series) Descriptor() ([]byte, []int) {
633	return fileDescriptor_c28a5f14f1f4c79a, []int{11}
634}
635func (m *Series) XXX_Unmarshal(b []byte) error {
636	return m.Unmarshal(b)
637}
638func (m *Series) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
639	if deterministic {
640		return xxx_messageInfo_Series.Marshal(b, m, deterministic)
641	} else {
642		b = b[:cap(b)]
643		n, err := m.MarshalToSizedBuffer(b)
644		if err != nil {
645			return nil, err
646		}
647		return b[:n], nil
648	}
649}
650func (m *Series) XXX_Merge(src proto.Message) {
651	xxx_messageInfo_Series.Merge(m, src)
652}
653func (m *Series) XXX_Size() int {
654	return m.Size()
655}
656func (m *Series) XXX_DiscardUnknown() {
657	xxx_messageInfo_Series.DiscardUnknown(m)
658}
659
660var xxx_messageInfo_Series proto.InternalMessageInfo
661
662func (m *Series) GetLabels() string {
663	if m != nil {
664		return m.Labels
665	}
666	return ""
667}
668
669func (m *Series) GetSamples() []Sample {
670	if m != nil {
671		return m.Samples
672	}
673	return nil
674}
675
676type TailRequest struct {
677	Query    string    `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
678	DelayFor uint32    `protobuf:"varint,3,opt,name=delayFor,proto3" json:"delayFor,omitempty"`
679	Limit    uint32    `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"`
680	Start    time.Time `protobuf:"bytes,5,opt,name=start,proto3,stdtime" json:"start"`
681}
682
683func (m *TailRequest) Reset()      { *m = TailRequest{} }
684func (*TailRequest) ProtoMessage() {}
685func (*TailRequest) Descriptor() ([]byte, []int) {
686	return fileDescriptor_c28a5f14f1f4c79a, []int{12}
687}
688func (m *TailRequest) XXX_Unmarshal(b []byte) error {
689	return m.Unmarshal(b)
690}
691func (m *TailRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
692	if deterministic {
693		return xxx_messageInfo_TailRequest.Marshal(b, m, deterministic)
694	} else {
695		b = b[:cap(b)]
696		n, err := m.MarshalToSizedBuffer(b)
697		if err != nil {
698			return nil, err
699		}
700		return b[:n], nil
701	}
702}
703func (m *TailRequest) XXX_Merge(src proto.Message) {
704	xxx_messageInfo_TailRequest.Merge(m, src)
705}
706func (m *TailRequest) XXX_Size() int {
707	return m.Size()
708}
709func (m *TailRequest) XXX_DiscardUnknown() {
710	xxx_messageInfo_TailRequest.DiscardUnknown(m)
711}
712
713var xxx_messageInfo_TailRequest proto.InternalMessageInfo
714
715func (m *TailRequest) GetQuery() string {
716	if m != nil {
717		return m.Query
718	}
719	return ""
720}
721
722func (m *TailRequest) GetDelayFor() uint32 {
723	if m != nil {
724		return m.DelayFor
725	}
726	return 0
727}
728
729func (m *TailRequest) GetLimit() uint32 {
730	if m != nil {
731		return m.Limit
732	}
733	return 0
734}
735
736func (m *TailRequest) GetStart() time.Time {
737	if m != nil {
738		return m.Start
739	}
740	return time.Time{}
741}
742
743type TailResponse struct {
744	Stream         *Stream          `protobuf:"bytes,1,opt,name=stream,proto3,customtype=Stream" json:"stream,omitempty"`
745	DroppedStreams []*DroppedStream `protobuf:"bytes,2,rep,name=droppedStreams,proto3" json:"droppedStreams,omitempty"`
746}
747
748func (m *TailResponse) Reset()      { *m = TailResponse{} }
749func (*TailResponse) ProtoMessage() {}
750func (*TailResponse) Descriptor() ([]byte, []int) {
751	return fileDescriptor_c28a5f14f1f4c79a, []int{13}
752}
753func (m *TailResponse) XXX_Unmarshal(b []byte) error {
754	return m.Unmarshal(b)
755}
756func (m *TailResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
757	if deterministic {
758		return xxx_messageInfo_TailResponse.Marshal(b, m, deterministic)
759	} else {
760		b = b[:cap(b)]
761		n, err := m.MarshalToSizedBuffer(b)
762		if err != nil {
763			return nil, err
764		}
765		return b[:n], nil
766	}
767}
768func (m *TailResponse) XXX_Merge(src proto.Message) {
769	xxx_messageInfo_TailResponse.Merge(m, src)
770}
771func (m *TailResponse) XXX_Size() int {
772	return m.Size()
773}
774func (m *TailResponse) XXX_DiscardUnknown() {
775	xxx_messageInfo_TailResponse.DiscardUnknown(m)
776}
777
778var xxx_messageInfo_TailResponse proto.InternalMessageInfo
779
780func (m *TailResponse) GetDroppedStreams() []*DroppedStream {
781	if m != nil {
782		return m.DroppedStreams
783	}
784	return nil
785}
786
787type SeriesRequest struct {
788	Start  time.Time `protobuf:"bytes,1,opt,name=start,proto3,stdtime" json:"start"`
789	End    time.Time `protobuf:"bytes,2,opt,name=end,proto3,stdtime" json:"end"`
790	Groups []string  `protobuf:"bytes,3,rep,name=groups,proto3" json:"groups,omitempty"`
791	Shards []string  `protobuf:"bytes,4,rep,name=shards,proto3" json:"shards,omitempty"`
792}
793
794func (m *SeriesRequest) Reset()      { *m = SeriesRequest{} }
795func (*SeriesRequest) ProtoMessage() {}
796func (*SeriesRequest) Descriptor() ([]byte, []int) {
797	return fileDescriptor_c28a5f14f1f4c79a, []int{14}
798}
799func (m *SeriesRequest) XXX_Unmarshal(b []byte) error {
800	return m.Unmarshal(b)
801}
802func (m *SeriesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
803	if deterministic {
804		return xxx_messageInfo_SeriesRequest.Marshal(b, m, deterministic)
805	} else {
806		b = b[:cap(b)]
807		n, err := m.MarshalToSizedBuffer(b)
808		if err != nil {
809			return nil, err
810		}
811		return b[:n], nil
812	}
813}
814func (m *SeriesRequest) XXX_Merge(src proto.Message) {
815	xxx_messageInfo_SeriesRequest.Merge(m, src)
816}
817func (m *SeriesRequest) XXX_Size() int {
818	return m.Size()
819}
820func (m *SeriesRequest) XXX_DiscardUnknown() {
821	xxx_messageInfo_SeriesRequest.DiscardUnknown(m)
822}
823
824var xxx_messageInfo_SeriesRequest proto.InternalMessageInfo
825
826func (m *SeriesRequest) GetStart() time.Time {
827	if m != nil {
828		return m.Start
829	}
830	return time.Time{}
831}
832
833func (m *SeriesRequest) GetEnd() time.Time {
834	if m != nil {
835		return m.End
836	}
837	return time.Time{}
838}
839
840func (m *SeriesRequest) GetGroups() []string {
841	if m != nil {
842		return m.Groups
843	}
844	return nil
845}
846
847func (m *SeriesRequest) GetShards() []string {
848	if m != nil {
849		return m.Shards
850	}
851	return nil
852}
853
854type SeriesResponse struct {
855	Series []SeriesIdentifier `protobuf:"bytes,1,rep,name=series,proto3" json:"series"`
856}
857
858func (m *SeriesResponse) Reset()      { *m = SeriesResponse{} }
859func (*SeriesResponse) ProtoMessage() {}
860func (*SeriesResponse) Descriptor() ([]byte, []int) {
861	return fileDescriptor_c28a5f14f1f4c79a, []int{15}
862}
863func (m *SeriesResponse) XXX_Unmarshal(b []byte) error {
864	return m.Unmarshal(b)
865}
866func (m *SeriesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
867	if deterministic {
868		return xxx_messageInfo_SeriesResponse.Marshal(b, m, deterministic)
869	} else {
870		b = b[:cap(b)]
871		n, err := m.MarshalToSizedBuffer(b)
872		if err != nil {
873			return nil, err
874		}
875		return b[:n], nil
876	}
877}
878func (m *SeriesResponse) XXX_Merge(src proto.Message) {
879	xxx_messageInfo_SeriesResponse.Merge(m, src)
880}
881func (m *SeriesResponse) XXX_Size() int {
882	return m.Size()
883}
884func (m *SeriesResponse) XXX_DiscardUnknown() {
885	xxx_messageInfo_SeriesResponse.DiscardUnknown(m)
886}
887
888var xxx_messageInfo_SeriesResponse proto.InternalMessageInfo
889
890func (m *SeriesResponse) GetSeries() []SeriesIdentifier {
891	if m != nil {
892		return m.Series
893	}
894	return nil
895}
896
897type SeriesIdentifier struct {
898	Labels map[string]string `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
899}
900
901func (m *SeriesIdentifier) Reset()      { *m = SeriesIdentifier{} }
902func (*SeriesIdentifier) ProtoMessage() {}
903func (*SeriesIdentifier) Descriptor() ([]byte, []int) {
904	return fileDescriptor_c28a5f14f1f4c79a, []int{16}
905}
906func (m *SeriesIdentifier) XXX_Unmarshal(b []byte) error {
907	return m.Unmarshal(b)
908}
909func (m *SeriesIdentifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
910	if deterministic {
911		return xxx_messageInfo_SeriesIdentifier.Marshal(b, m, deterministic)
912	} else {
913		b = b[:cap(b)]
914		n, err := m.MarshalToSizedBuffer(b)
915		if err != nil {
916			return nil, err
917		}
918		return b[:n], nil
919	}
920}
921func (m *SeriesIdentifier) XXX_Merge(src proto.Message) {
922	xxx_messageInfo_SeriesIdentifier.Merge(m, src)
923}
924func (m *SeriesIdentifier) XXX_Size() int {
925	return m.Size()
926}
927func (m *SeriesIdentifier) XXX_DiscardUnknown() {
928	xxx_messageInfo_SeriesIdentifier.DiscardUnknown(m)
929}
930
931var xxx_messageInfo_SeriesIdentifier proto.InternalMessageInfo
932
933func (m *SeriesIdentifier) GetLabels() map[string]string {
934	if m != nil {
935		return m.Labels
936	}
937	return nil
938}
939
940type DroppedStream struct {
941	From   time.Time `protobuf:"bytes,1,opt,name=from,proto3,stdtime" json:"from"`
942	To     time.Time `protobuf:"bytes,2,opt,name=to,proto3,stdtime" json:"to"`
943	Labels string    `protobuf:"bytes,3,opt,name=labels,proto3" json:"labels,omitempty"`
944}
945
946func (m *DroppedStream) Reset()      { *m = DroppedStream{} }
947func (*DroppedStream) ProtoMessage() {}
948func (*DroppedStream) Descriptor() ([]byte, []int) {
949	return fileDescriptor_c28a5f14f1f4c79a, []int{17}
950}
951func (m *DroppedStream) XXX_Unmarshal(b []byte) error {
952	return m.Unmarshal(b)
953}
954func (m *DroppedStream) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
955	if deterministic {
956		return xxx_messageInfo_DroppedStream.Marshal(b, m, deterministic)
957	} else {
958		b = b[:cap(b)]
959		n, err := m.MarshalToSizedBuffer(b)
960		if err != nil {
961			return nil, err
962		}
963		return b[:n], nil
964	}
965}
966func (m *DroppedStream) XXX_Merge(src proto.Message) {
967	xxx_messageInfo_DroppedStream.Merge(m, src)
968}
969func (m *DroppedStream) XXX_Size() int {
970	return m.Size()
971}
972func (m *DroppedStream) XXX_DiscardUnknown() {
973	xxx_messageInfo_DroppedStream.DiscardUnknown(m)
974}
975
976var xxx_messageInfo_DroppedStream proto.InternalMessageInfo
977
978func (m *DroppedStream) GetFrom() time.Time {
979	if m != nil {
980		return m.From
981	}
982	return time.Time{}
983}
984
985func (m *DroppedStream) GetTo() time.Time {
986	if m != nil {
987		return m.To
988	}
989	return time.Time{}
990}
991
992func (m *DroppedStream) GetLabels() string {
993	if m != nil {
994		return m.Labels
995	}
996	return ""
997}
998
999type TimeSeriesChunk struct {
1000	FromIngesterId string       `protobuf:"bytes,1,opt,name=from_ingester_id,json=fromIngesterId,proto3" json:"from_ingester_id,omitempty"`
1001	UserId         string       `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
1002	Labels         []*LabelPair `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,omitempty"`
1003	Chunks         []*Chunk     `protobuf:"bytes,4,rep,name=chunks,proto3" json:"chunks,omitempty"`
1004}
1005
1006func (m *TimeSeriesChunk) Reset()      { *m = TimeSeriesChunk{} }
1007func (*TimeSeriesChunk) ProtoMessage() {}
1008func (*TimeSeriesChunk) Descriptor() ([]byte, []int) {
1009	return fileDescriptor_c28a5f14f1f4c79a, []int{18}
1010}
1011func (m *TimeSeriesChunk) XXX_Unmarshal(b []byte) error {
1012	return m.Unmarshal(b)
1013}
1014func (m *TimeSeriesChunk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1015	if deterministic {
1016		return xxx_messageInfo_TimeSeriesChunk.Marshal(b, m, deterministic)
1017	} else {
1018		b = b[:cap(b)]
1019		n, err := m.MarshalToSizedBuffer(b)
1020		if err != nil {
1021			return nil, err
1022		}
1023		return b[:n], nil
1024	}
1025}
1026func (m *TimeSeriesChunk) XXX_Merge(src proto.Message) {
1027	xxx_messageInfo_TimeSeriesChunk.Merge(m, src)
1028}
1029func (m *TimeSeriesChunk) XXX_Size() int {
1030	return m.Size()
1031}
1032func (m *TimeSeriesChunk) XXX_DiscardUnknown() {
1033	xxx_messageInfo_TimeSeriesChunk.DiscardUnknown(m)
1034}
1035
1036var xxx_messageInfo_TimeSeriesChunk proto.InternalMessageInfo
1037
1038func (m *TimeSeriesChunk) GetFromIngesterId() string {
1039	if m != nil {
1040		return m.FromIngesterId
1041	}
1042	return ""
1043}
1044
1045func (m *TimeSeriesChunk) GetUserId() string {
1046	if m != nil {
1047		return m.UserId
1048	}
1049	return ""
1050}
1051
1052func (m *TimeSeriesChunk) GetLabels() []*LabelPair {
1053	if m != nil {
1054		return m.Labels
1055	}
1056	return nil
1057}
1058
1059func (m *TimeSeriesChunk) GetChunks() []*Chunk {
1060	if m != nil {
1061		return m.Chunks
1062	}
1063	return nil
1064}
1065
1066type LabelPair struct {
1067	Name  string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
1068	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
1069}
1070
1071func (m *LabelPair) Reset()      { *m = LabelPair{} }
1072func (*LabelPair) ProtoMessage() {}
1073func (*LabelPair) Descriptor() ([]byte, []int) {
1074	return fileDescriptor_c28a5f14f1f4c79a, []int{19}
1075}
1076func (m *LabelPair) XXX_Unmarshal(b []byte) error {
1077	return m.Unmarshal(b)
1078}
1079func (m *LabelPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1080	if deterministic {
1081		return xxx_messageInfo_LabelPair.Marshal(b, m, deterministic)
1082	} else {
1083		b = b[:cap(b)]
1084		n, err := m.MarshalToSizedBuffer(b)
1085		if err != nil {
1086			return nil, err
1087		}
1088		return b[:n], nil
1089	}
1090}
1091func (m *LabelPair) XXX_Merge(src proto.Message) {
1092	xxx_messageInfo_LabelPair.Merge(m, src)
1093}
1094func (m *LabelPair) XXX_Size() int {
1095	return m.Size()
1096}
1097func (m *LabelPair) XXX_DiscardUnknown() {
1098	xxx_messageInfo_LabelPair.DiscardUnknown(m)
1099}
1100
1101var xxx_messageInfo_LabelPair proto.InternalMessageInfo
1102
1103func (m *LabelPair) GetName() string {
1104	if m != nil {
1105		return m.Name
1106	}
1107	return ""
1108}
1109
1110func (m *LabelPair) GetValue() string {
1111	if m != nil {
1112		return m.Value
1113	}
1114	return ""
1115}
1116
1117type Chunk struct {
1118	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
1119}
1120
1121func (m *Chunk) Reset()      { *m = Chunk{} }
1122func (*Chunk) ProtoMessage() {}
1123func (*Chunk) Descriptor() ([]byte, []int) {
1124	return fileDescriptor_c28a5f14f1f4c79a, []int{20}
1125}
1126func (m *Chunk) XXX_Unmarshal(b []byte) error {
1127	return m.Unmarshal(b)
1128}
1129func (m *Chunk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1130	if deterministic {
1131		return xxx_messageInfo_Chunk.Marshal(b, m, deterministic)
1132	} else {
1133		b = b[:cap(b)]
1134		n, err := m.MarshalToSizedBuffer(b)
1135		if err != nil {
1136			return nil, err
1137		}
1138		return b[:n], nil
1139	}
1140}
1141func (m *Chunk) XXX_Merge(src proto.Message) {
1142	xxx_messageInfo_Chunk.Merge(m, src)
1143}
1144func (m *Chunk) XXX_Size() int {
1145	return m.Size()
1146}
1147func (m *Chunk) XXX_DiscardUnknown() {
1148	xxx_messageInfo_Chunk.DiscardUnknown(m)
1149}
1150
1151var xxx_messageInfo_Chunk proto.InternalMessageInfo
1152
1153func (m *Chunk) GetData() []byte {
1154	if m != nil {
1155		return m.Data
1156	}
1157	return nil
1158}
1159
1160type TransferChunksResponse struct {
1161}
1162
1163func (m *TransferChunksResponse) Reset()      { *m = TransferChunksResponse{} }
1164func (*TransferChunksResponse) ProtoMessage() {}
1165func (*TransferChunksResponse) Descriptor() ([]byte, []int) {
1166	return fileDescriptor_c28a5f14f1f4c79a, []int{21}
1167}
1168func (m *TransferChunksResponse) XXX_Unmarshal(b []byte) error {
1169	return m.Unmarshal(b)
1170}
1171func (m *TransferChunksResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1172	if deterministic {
1173		return xxx_messageInfo_TransferChunksResponse.Marshal(b, m, deterministic)
1174	} else {
1175		b = b[:cap(b)]
1176		n, err := m.MarshalToSizedBuffer(b)
1177		if err != nil {
1178			return nil, err
1179		}
1180		return b[:n], nil
1181	}
1182}
1183func (m *TransferChunksResponse) XXX_Merge(src proto.Message) {
1184	xxx_messageInfo_TransferChunksResponse.Merge(m, src)
1185}
1186func (m *TransferChunksResponse) XXX_Size() int {
1187	return m.Size()
1188}
1189func (m *TransferChunksResponse) XXX_DiscardUnknown() {
1190	xxx_messageInfo_TransferChunksResponse.DiscardUnknown(m)
1191}
1192
1193var xxx_messageInfo_TransferChunksResponse proto.InternalMessageInfo
1194
1195type TailersCountRequest struct {
1196}
1197
1198func (m *TailersCountRequest) Reset()      { *m = TailersCountRequest{} }
1199func (*TailersCountRequest) ProtoMessage() {}
1200func (*TailersCountRequest) Descriptor() ([]byte, []int) {
1201	return fileDescriptor_c28a5f14f1f4c79a, []int{22}
1202}
1203func (m *TailersCountRequest) XXX_Unmarshal(b []byte) error {
1204	return m.Unmarshal(b)
1205}
1206func (m *TailersCountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1207	if deterministic {
1208		return xxx_messageInfo_TailersCountRequest.Marshal(b, m, deterministic)
1209	} else {
1210		b = b[:cap(b)]
1211		n, err := m.MarshalToSizedBuffer(b)
1212		if err != nil {
1213			return nil, err
1214		}
1215		return b[:n], nil
1216	}
1217}
1218func (m *TailersCountRequest) XXX_Merge(src proto.Message) {
1219	xxx_messageInfo_TailersCountRequest.Merge(m, src)
1220}
1221func (m *TailersCountRequest) XXX_Size() int {
1222	return m.Size()
1223}
1224func (m *TailersCountRequest) XXX_DiscardUnknown() {
1225	xxx_messageInfo_TailersCountRequest.DiscardUnknown(m)
1226}
1227
1228var xxx_messageInfo_TailersCountRequest proto.InternalMessageInfo
1229
1230type TailersCountResponse struct {
1231	Count uint32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
1232}
1233
1234func (m *TailersCountResponse) Reset()      { *m = TailersCountResponse{} }
1235func (*TailersCountResponse) ProtoMessage() {}
1236func (*TailersCountResponse) Descriptor() ([]byte, []int) {
1237	return fileDescriptor_c28a5f14f1f4c79a, []int{23}
1238}
1239func (m *TailersCountResponse) XXX_Unmarshal(b []byte) error {
1240	return m.Unmarshal(b)
1241}
1242func (m *TailersCountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1243	if deterministic {
1244		return xxx_messageInfo_TailersCountResponse.Marshal(b, m, deterministic)
1245	} else {
1246		b = b[:cap(b)]
1247		n, err := m.MarshalToSizedBuffer(b)
1248		if err != nil {
1249			return nil, err
1250		}
1251		return b[:n], nil
1252	}
1253}
1254func (m *TailersCountResponse) XXX_Merge(src proto.Message) {
1255	xxx_messageInfo_TailersCountResponse.Merge(m, src)
1256}
1257func (m *TailersCountResponse) XXX_Size() int {
1258	return m.Size()
1259}
1260func (m *TailersCountResponse) XXX_DiscardUnknown() {
1261	xxx_messageInfo_TailersCountResponse.DiscardUnknown(m)
1262}
1263
1264var xxx_messageInfo_TailersCountResponse proto.InternalMessageInfo
1265
1266func (m *TailersCountResponse) GetCount() uint32 {
1267	if m != nil {
1268		return m.Count
1269	}
1270	return 0
1271}
1272
1273type GetChunkIDsRequest struct {
1274	Matchers string    `protobuf:"bytes,1,opt,name=matchers,proto3" json:"matchers,omitempty"`
1275	Start    time.Time `protobuf:"bytes,2,opt,name=start,proto3,stdtime" json:"start"`
1276	End      time.Time `protobuf:"bytes,3,opt,name=end,proto3,stdtime" json:"end"`
1277}
1278
1279func (m *GetChunkIDsRequest) Reset()      { *m = GetChunkIDsRequest{} }
1280func (*GetChunkIDsRequest) ProtoMessage() {}
1281func (*GetChunkIDsRequest) Descriptor() ([]byte, []int) {
1282	return fileDescriptor_c28a5f14f1f4c79a, []int{24}
1283}
1284func (m *GetChunkIDsRequest) XXX_Unmarshal(b []byte) error {
1285	return m.Unmarshal(b)
1286}
1287func (m *GetChunkIDsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1288	if deterministic {
1289		return xxx_messageInfo_GetChunkIDsRequest.Marshal(b, m, deterministic)
1290	} else {
1291		b = b[:cap(b)]
1292		n, err := m.MarshalToSizedBuffer(b)
1293		if err != nil {
1294			return nil, err
1295		}
1296		return b[:n], nil
1297	}
1298}
1299func (m *GetChunkIDsRequest) XXX_Merge(src proto.Message) {
1300	xxx_messageInfo_GetChunkIDsRequest.Merge(m, src)
1301}
1302func (m *GetChunkIDsRequest) XXX_Size() int {
1303	return m.Size()
1304}
1305func (m *GetChunkIDsRequest) XXX_DiscardUnknown() {
1306	xxx_messageInfo_GetChunkIDsRequest.DiscardUnknown(m)
1307}
1308
1309var xxx_messageInfo_GetChunkIDsRequest proto.InternalMessageInfo
1310
1311func (m *GetChunkIDsRequest) GetMatchers() string {
1312	if m != nil {
1313		return m.Matchers
1314	}
1315	return ""
1316}
1317
1318func (m *GetChunkIDsRequest) GetStart() time.Time {
1319	if m != nil {
1320		return m.Start
1321	}
1322	return time.Time{}
1323}
1324
1325func (m *GetChunkIDsRequest) GetEnd() time.Time {
1326	if m != nil {
1327		return m.End
1328	}
1329	return time.Time{}
1330}
1331
1332type GetChunkIDsResponse struct {
1333	ChunkIDs []string `protobuf:"bytes,1,rep,name=chunkIDs,proto3" json:"chunkIDs,omitempty"`
1334}
1335
1336func (m *GetChunkIDsResponse) Reset()      { *m = GetChunkIDsResponse{} }
1337func (*GetChunkIDsResponse) ProtoMessage() {}
1338func (*GetChunkIDsResponse) Descriptor() ([]byte, []int) {
1339	return fileDescriptor_c28a5f14f1f4c79a, []int{25}
1340}
1341func (m *GetChunkIDsResponse) XXX_Unmarshal(b []byte) error {
1342	return m.Unmarshal(b)
1343}
1344func (m *GetChunkIDsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1345	if deterministic {
1346		return xxx_messageInfo_GetChunkIDsResponse.Marshal(b, m, deterministic)
1347	} else {
1348		b = b[:cap(b)]
1349		n, err := m.MarshalToSizedBuffer(b)
1350		if err != nil {
1351			return nil, err
1352		}
1353		return b[:n], nil
1354	}
1355}
1356func (m *GetChunkIDsResponse) XXX_Merge(src proto.Message) {
1357	xxx_messageInfo_GetChunkIDsResponse.Merge(m, src)
1358}
1359func (m *GetChunkIDsResponse) XXX_Size() int {
1360	return m.Size()
1361}
1362func (m *GetChunkIDsResponse) XXX_DiscardUnknown() {
1363	xxx_messageInfo_GetChunkIDsResponse.DiscardUnknown(m)
1364}
1365
1366var xxx_messageInfo_GetChunkIDsResponse proto.InternalMessageInfo
1367
1368func (m *GetChunkIDsResponse) GetChunkIDs() []string {
1369	if m != nil {
1370		return m.ChunkIDs
1371	}
1372	return nil
1373}
1374
1375func init() {
1376	proto.RegisterEnum("logproto.Direction", Direction_name, Direction_value)
1377	proto.RegisterType((*PushRequest)(nil), "logproto.PushRequest")
1378	proto.RegisterType((*PushResponse)(nil), "logproto.PushResponse")
1379	proto.RegisterType((*QueryRequest)(nil), "logproto.QueryRequest")
1380	proto.RegisterType((*SampleQueryRequest)(nil), "logproto.SampleQueryRequest")
1381	proto.RegisterType((*SampleQueryResponse)(nil), "logproto.SampleQueryResponse")
1382	proto.RegisterType((*QueryResponse)(nil), "logproto.QueryResponse")
1383	proto.RegisterType((*LabelRequest)(nil), "logproto.LabelRequest")
1384	proto.RegisterType((*LabelResponse)(nil), "logproto.LabelResponse")
1385	proto.RegisterType((*StreamAdapter)(nil), "logproto.StreamAdapter")
1386	proto.RegisterType((*EntryAdapter)(nil), "logproto.EntryAdapter")
1387	proto.RegisterType((*Sample)(nil), "logproto.Sample")
1388	proto.RegisterType((*Series)(nil), "logproto.Series")
1389	proto.RegisterType((*TailRequest)(nil), "logproto.TailRequest")
1390	proto.RegisterType((*TailResponse)(nil), "logproto.TailResponse")
1391	proto.RegisterType((*SeriesRequest)(nil), "logproto.SeriesRequest")
1392	proto.RegisterType((*SeriesResponse)(nil), "logproto.SeriesResponse")
1393	proto.RegisterType((*SeriesIdentifier)(nil), "logproto.SeriesIdentifier")
1394	proto.RegisterMapType((map[string]string)(nil), "logproto.SeriesIdentifier.LabelsEntry")
1395	proto.RegisterType((*DroppedStream)(nil), "logproto.DroppedStream")
1396	proto.RegisterType((*TimeSeriesChunk)(nil), "logproto.TimeSeriesChunk")
1397	proto.RegisterType((*LabelPair)(nil), "logproto.LabelPair")
1398	proto.RegisterType((*Chunk)(nil), "logproto.Chunk")
1399	proto.RegisterType((*TransferChunksResponse)(nil), "logproto.TransferChunksResponse")
1400	proto.RegisterType((*TailersCountRequest)(nil), "logproto.TailersCountRequest")
1401	proto.RegisterType((*TailersCountResponse)(nil), "logproto.TailersCountResponse")
1402	proto.RegisterType((*GetChunkIDsRequest)(nil), "logproto.GetChunkIDsRequest")
1403	proto.RegisterType((*GetChunkIDsResponse)(nil), "logproto.GetChunkIDsResponse")
1404}
1405
1406func init() { proto.RegisterFile("pkg/logproto/logproto.proto", fileDescriptor_c28a5f14f1f4c79a) }
1407
1408var fileDescriptor_c28a5f14f1f4c79a = []byte{
1409	// 1370 bytes of a gzipped FileDescriptorProto
1410	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x57, 0x4b, 0x8f, 0x13, 0xc7,
1411	0x13, 0x77, 0xfb, 0x31, 0xb6, 0xcb, 0x0f, 0xac, 0xde, 0x65, 0xd7, 0x7f, 0x03, 0x63, 0x6b, 0x84,
1412	0xc0, 0xfa, 0x87, 0x78, 0x83, 0xf3, 0xe2, 0x91, 0x87, 0xd6, 0x6c, 0x08, 0x4b, 0x50, 0x80, 0x01,
1413	0x09, 0x09, 0x29, 0x42, 0xb3, 0x76, 0xaf, 0x3d, 0x5a, 0x7b, 0xc6, 0x4c, 0xb7, 0x91, 0xf6, 0x96,
1414	0x0f, 0x90, 0x48, 0xdc, 0x72, 0xc8, 0x35, 0x87, 0x28, 0x87, 0x7c, 0x0e, 0x72, 0x43, 0x39, 0xa1,
1415	0x1c, 0x9c, 0x60, 0x2e, 0xd1, 0x2a, 0x07, 0x3e, 0x42, 0xd4, 0x8f, 0x99, 0x69, 0x9b, 0xdd, 0x04,
1416	0x73, 0xc9, 0xc5, 0xd3, 0x55, 0x5d, 0x5d, 0x5d, 0xf5, 0xeb, 0x5f, 0x55, 0xb7, 0xe1, 0xc4, 0x78,
1417	0xaf, 0xbf, 0x31, 0xf4, 0xfb, 0xe3, 0xc0, 0x67, 0x7e, 0x34, 0x68, 0x89, 0x5f, 0x9c, 0x0b, 0xe5,
1418	0x5a, 0xbd, 0xef, 0xfb, 0xfd, 0x21, 0xd9, 0x10, 0xd2, 0xce, 0x64, 0x77, 0x83, 0xb9, 0x23, 0x42,
1419	0x99, 0x33, 0x1a, 0x4b, 0xd3, 0xda, 0xdb, 0x7d, 0x97, 0x0d, 0x26, 0x3b, 0xad, 0xae, 0x3f, 0xda,
1420	0xe8, 0xfb, 0x7d, 0x3f, 0xb6, 0xe4, 0x92, 0xf4, 0xce, 0x47, 0xd2, 0xdc, 0xba, 0x07, 0x85, 0x5b,
1421	0x13, 0x3a, 0xb0, 0xc9, 0xc3, 0x09, 0xa1, 0x0c, 0x5f, 0x83, 0x2c, 0x65, 0x01, 0x71, 0x46, 0xb4,
1422	0x8a, 0x1a, 0xa9, 0x66, 0xa1, 0xbd, 0xde, 0x8a, 0x42, 0xb9, 0x23, 0x26, 0x36, 0x7b, 0xce, 0x98,
1423	0x91, 0xa0, 0x73, 0xfc, 0xb7, 0x69, 0xdd, 0x90, 0xaa, 0x83, 0x69, 0x3d, 0x5c, 0x65, 0x87, 0x03,
1424	0xab, 0x0c, 0x45, 0xe9, 0x98, 0x8e, 0x7d, 0x8f, 0x12, 0xeb, 0xfb, 0x24, 0x14, 0x6f, 0x4f, 0x48,
1425	0xb0, 0x1f, 0x6e, 0x55, 0x83, 0x1c, 0x25, 0x43, 0xd2, 0x65, 0x7e, 0x50, 0x45, 0x0d, 0xd4, 0xcc,
1426	0xdb, 0x91, 0x8c, 0x57, 0x21, 0x33, 0x74, 0x47, 0x2e, 0xab, 0x26, 0x1b, 0xa8, 0x59, 0xb2, 0xa5,
1427	0x80, 0x2f, 0x41, 0x86, 0x32, 0x27, 0x60, 0xd5, 0x54, 0x03, 0x35, 0x0b, 0xed, 0x5a, 0x4b, 0x62,
1428	0xd1, 0x0a, 0x33, 0x6c, 0xdd, 0x0d, 0xb1, 0xe8, 0xe4, 0x9e, 0x4c, 0xeb, 0x89, 0xc7, 0xbf, 0xd7,
1429	0x91, 0x2d, 0x97, 0xe0, 0x0f, 0x20, 0x45, 0xbc, 0x5e, 0x35, 0xbd, 0xc4, 0x4a, 0xbe, 0x00, 0x9f,
1430	0x87, 0x7c, 0xcf, 0x0d, 0x48, 0x97, 0xb9, 0xbe, 0x57, 0xcd, 0x34, 0x50, 0xb3, 0xdc, 0x5e, 0x89,
1431	0x21, 0xd9, 0x0a, 0xa7, 0xec, 0xd8, 0x0a, 0x9f, 0x03, 0x83, 0x0e, 0x9c, 0xa0, 0x47, 0xab, 0xd9,
1432	0x46, 0xaa, 0x99, 0xef, 0xac, 0x1e, 0x4c, 0xeb, 0x15, 0xa9, 0x39, 0xe7, 0x8f, 0x5c, 0x46, 0x46,
1433	0x63, 0xb6, 0x6f, 0x2b, 0x9b, 0xeb, 0xe9, 0x9c, 0x51, 0xc9, 0x5a, 0xbf, 0x22, 0xc0, 0x77, 0x9c,
1434	0xd1, 0x78, 0x48, 0x5e, 0x1b, 0xa3, 0x08, 0x8d, 0xe4, 0x1b, 0xa3, 0x91, 0x5a, 0x16, 0x8d, 0x38,
1435	0xb5, 0xf4, 0xbf, 0xa7, 0x66, 0xdd, 0x84, 0x95, 0xb9, 0x9c, 0x24, 0x13, 0xf0, 0x05, 0x30, 0x28,
1436	0x09, 0x5c, 0x12, 0x52, 0xac, 0xa2, 0x51, 0x4c, 0xe8, 0x3b, 0xe5, 0x27, 0xd3, 0x3a, 0x12, 0xfc,
1437	0x12, 0xb2, 0xad, 0xec, 0x2d, 0x1b, 0x4a, 0xf3, 0xae, 0x36, 0x5f, 0x9b, 0xae, 0xb1, 0x4b, 0xa1,
1438	0x8e, 0x79, 0xfa, 0x33, 0x82, 0xe2, 0x0d, 0x67, 0x87, 0x0c, 0x43, 0xcc, 0x31, 0xa4, 0x3d, 0x67,
1439	0x44, 0x14, 0xde, 0x62, 0x8c, 0xd7, 0xc0, 0x78, 0xe4, 0x0c, 0x27, 0x84, 0x0a, 0xb0, 0x73, 0xb6,
1440	0x92, 0x96, 0x65, 0x24, 0x7a, 0x63, 0x46, 0xa2, 0xe8, 0x0c, 0xac, 0xb3, 0x50, 0x52, 0xf1, 0x2a,
1441	0x10, 0xe2, 0xe0, 0x38, 0x06, 0xf9, 0x30, 0x38, 0xeb, 0x11, 0x94, 0xe6, 0x30, 0xc0, 0x16, 0x18,
1442	0x43, 0xbe, 0x92, 0xca, 0xdc, 0x3a, 0x70, 0x30, 0xad, 0x2b, 0x8d, 0xad, 0xbe, 0x1c, 0x51, 0xe2,
1443	0x31, 0x71, 0x3a, 0x49, 0x81, 0xe8, 0x5a, 0x8c, 0xe8, 0x67, 0x1e, 0x0b, 0xf6, 0x43, 0x40, 0x8f,
1444	0x71, 0x66, 0xf0, 0xca, 0x57, 0xe6, 0x76, 0x38, 0xb0, 0x1e, 0x41, 0x51, 0xb7, 0xc4, 0xd7, 0x20,
1445	0x1f, 0x35, 0x29, 0xb1, 0xf3, 0x3f, 0xa7, 0x5b, 0x56, 0x8e, 0x93, 0x8c, 0x8a, 0xa4, 0xe3, 0xc5,
1446	0xf8, 0x24, 0xa4, 0x87, 0xae, 0x47, 0xc4, 0x21, 0xe4, 0x3b, 0xb9, 0x83, 0x69, 0x5d, 0xc8, 0xb6,
1447	0xf8, 0xb5, 0x46, 0x60, 0x48, 0xba, 0xe1, 0xd3, 0x8b, 0x3b, 0xa6, 0x3a, 0x86, 0xf4, 0xa8, 0x7b,
1448	0xab, 0x43, 0x46, 0x20, 0x25, 0xdc, 0xa1, 0x4e, 0xfe, 0x60, 0x5a, 0x97, 0x0a, 0x5b, 0x7e, 0xf8,
1449	0x76, 0x03, 0x87, 0x0e, 0xc4, 0xe1, 0xa6, 0xe5, 0x76, 0x5c, 0xb6, 0xc5, 0xaf, 0xe5, 0x82, 0xa2,
1450	0xe7, 0x6b, 0xe1, 0x7a, 0x19, 0xb2, 0x54, 0x04, 0x17, 0xe2, 0xaa, 0xb3, 0x5e, 0x4c, 0xc4, 0x88,
1451	0x2a, 0x43, 0x3b, 0x1c, 0x58, 0xdf, 0x21, 0x28, 0xdc, 0x75, 0xdc, 0x88, 0xa2, 0xab, 0x90, 0x79,
1452	0xc8, 0xeb, 0x40, 0x71, 0x54, 0x0a, 0xbc, 0x59, 0xf4, 0xc8, 0xd0, 0xd9, 0xbf, 0xea, 0x07, 0x22,
1453	0xe4, 0x92, 0x1d, 0xc9, 0x71, 0x43, 0x4d, 0x1f, 0xda, 0x50, 0x33, 0x4b, 0xb7, 0x90, 0xeb, 0xe9,
1454	0x5c, 0xb2, 0x92, 0xb2, 0xbe, 0x41, 0x50, 0x94, 0x91, 0x29, 0x32, 0x5e, 0x06, 0x43, 0x56, 0x96,
1455	0x3a, 0xe9, 0x23, 0x0b, 0x12, 0xb4, 0x62, 0x54, 0x4b, 0xf0, 0xa7, 0x50, 0xee, 0x05, 0xfe, 0x78,
1456	0x4c, 0x7a, 0x77, 0x54, 0x55, 0x27, 0x17, 0xab, 0x7a, 0x4b, 0x9f, 0xb7, 0x17, 0xcc, 0xad, 0x5f,
1457	0x10, 0x94, 0x54, 0xcf, 0x50, 0x50, 0x45, 0x29, 0xa2, 0x37, 0xee, 0x92, 0xc9, 0x65, 0xbb, 0xe4,
1458	0x1a, 0x18, 0xfd, 0xc0, 0x9f, 0x8c, 0x69, 0x35, 0x25, 0x0b, 0x52, 0x4a, 0x4b, 0x76, 0xcf, 0xeb,
1459	0x50, 0x0e, 0x53, 0x39, 0xa2, 0x71, 0xd6, 0x16, 0x1b, 0xe7, 0x76, 0x8f, 0x78, 0xcc, 0xdd, 0x75,
1460	0x49, 0xd0, 0x49, 0xf3, 0x90, 0xa2, 0xc6, 0xf9, 0x2d, 0x82, 0xca, 0xa2, 0x09, 0xfe, 0x44, 0xa3,
1461	0x2d, 0x77, 0x77, 0xe6, 0x68, 0x77, 0x2d, 0xd1, 0x71, 0xa8, 0x28, 0xeb, 0x90, 0xd2, 0xb5, 0x8b,
1462	0x50, 0xd0, 0xd4, 0xb8, 0x02, 0xa9, 0x3d, 0x12, 0x52, 0x92, 0x0f, 0x39, 0xe9, 0xe2, 0x02, 0xcb,
1463	0xab, 0xaa, 0xba, 0x94, 0xbc, 0x80, 0x38, 0xa1, 0x4b, 0x73, 0x27, 0x89, 0x2f, 0x40, 0x7a, 0x37,
1464	0xf0, 0x47, 0x4b, 0x1d, 0x93, 0x58, 0x81, 0xdf, 0x83, 0x24, 0xf3, 0x97, 0x3a, 0xa4, 0x24, 0xf3,
1465	0xf9, 0x19, 0xa9, 0xe4, 0x53, 0x22, 0x38, 0x25, 0x59, 0x3f, 0x21, 0x38, 0xc6, 0xd7, 0x48, 0x04,
1466	0xae, 0x0c, 0x26, 0xde, 0x1e, 0x6e, 0x42, 0x85, 0xef, 0xf4, 0xc0, 0xf5, 0xfa, 0x84, 0x32, 0x12,
1467	0x3c, 0x70, 0x7b, 0x2a, 0xcd, 0x32, 0xd7, 0x6f, 0x2b, 0xf5, 0x76, 0x0f, 0xaf, 0x43, 0x76, 0x42,
1468	0xa5, 0x81, 0xcc, 0xd9, 0xe0, 0xe2, 0x76, 0x0f, 0xbf, 0xa5, 0x6d, 0xc7, 0xb1, 0xd6, 0xde, 0x10,
1469	0x02, 0xc3, 0x5b, 0x8e, 0x1b, 0x44, 0xbd, 0xe2, 0x2c, 0x18, 0x5d, 0xbe, 0xb1, 0xe4, 0x49, 0xa1,
1470	0x7d, 0x2c, 0x36, 0x16, 0x01, 0xd9, 0x6a, 0xda, 0x7a, 0x1f, 0xf2, 0xd1, 0xea, 0x43, 0xef, 0xad,
1471	0x43, 0x4f, 0xc0, 0x3a, 0x01, 0x19, 0x99, 0x18, 0x86, 0x74, 0xcf, 0x61, 0x8e, 0x58, 0x52, 0xb4,
1472	0xc5, 0xd8, 0xaa, 0xc2, 0xda, 0xdd, 0xc0, 0xf1, 0xe8, 0x2e, 0x09, 0x84, 0x51, 0x44, 0x3f, 0xeb,
1473	0x38, 0xac, 0xf0, 0x52, 0x27, 0x01, 0xbd, 0xe2, 0x4f, 0x3c, 0xa6, 0x2a, 0xcc, 0x3a, 0x07, 0xab,
1474	0xf3, 0x6a, 0xc5, 0xd6, 0x55, 0xc8, 0x74, 0xb9, 0x42, 0x78, 0x2f, 0xd9, 0x52, 0xb0, 0x7e, 0x40,
1475	0x80, 0x3f, 0x27, 0x4c, 0xb8, 0xde, 0xde, 0xa2, 0xda, 0x43, 0x67, 0xe4, 0xb0, 0xee, 0x80, 0x04,
1476	0x34, 0x7c, 0xe8, 0x84, 0xf2, 0x7f, 0xf1, 0xd0, 0xb1, 0xce, 0xc3, 0xca, 0x5c, 0x94, 0x2a, 0xa7,
1477	0x1a, 0xe4, 0xba, 0x4a, 0xa7, 0x2e, 0xdb, 0x48, 0xfe, 0xff, 0x19, 0xc8, 0x47, 0xcf, 0x41, 0x5c,
1478	0x80, 0xec, 0xd5, 0x9b, 0xf6, 0xbd, 0x4d, 0x7b, 0xab, 0x92, 0xc0, 0x45, 0xc8, 0x75, 0x36, 0xaf,
1479	0x7c, 0x21, 0x24, 0xd4, 0xde, 0x04, 0x83, 0x3f, 0x8c, 0x49, 0x80, 0x3f, 0x84, 0x34, 0x1f, 0xe1,
1480	0xe3, 0xf1, 0xf9, 0x6a, 0x6f, 0xf1, 0xda, 0xda, 0xa2, 0x5a, 0x9d, 0x43, 0xa2, 0xfd, 0x57, 0x0a,
1481	0xb2, 0xfc, 0x21, 0xc4, 0xab, 0xf8, 0x23, 0xc8, 0x88, 0x37, 0x11, 0xd6, 0xcc, 0xf5, 0x37, 0x64,
1482	0x6d, 0xfd, 0x15, 0x7d, 0xe8, 0xe7, 0x1d, 0x84, 0xbf, 0x84, 0x82, 0x50, 0xaa, 0x8b, 0xf3, 0xe4,
1483	0xe2, 0xa5, 0x34, 0xe7, 0xe9, 0xd4, 0x11, 0xb3, 0x9a, 0xbf, 0x4b, 0x90, 0x11, 0x8c, 0xd4, 0xa3,
1484	0xd1, 0x5f, 0x57, 0x7a, 0x34, 0x73, 0xaf, 0x18, 0x2b, 0x81, 0x2f, 0x42, 0x9a, 0x13, 0x49, 0x87,
1485	0x43, 0xbb, 0xf4, 0x74, 0x38, 0xf4, 0x1b, 0x47, 0x6c, 0xfb, 0x71, 0x74, 0x17, 0xaf, 0x2f, 0x36,
1486	0xb1, 0x70, 0x79, 0xf5, 0xd5, 0x89, 0x68, 0xe7, 0x9b, 0xf2, 0x12, 0x0b, 0x29, 0x8c, 0x4f, 0xcd,
1487	0x6f, 0xb5, 0xc0, 0xf8, 0x9a, 0x79, 0xd4, 0x74, 0xe4, 0xf0, 0x06, 0x14, 0x34, 0xfa, 0xe8, 0xb0,
1488	0xbe, 0xca, 0x7d, 0x1d, 0xd6, 0x43, 0x38, 0x67, 0x25, 0xda, 0x5f, 0x41, 0x2e, 0xec, 0x31, 0xf8,
1489	0x36, 0x94, 0xe7, 0xcb, 0x13, 0xff, 0x4f, 0x8b, 0x66, 0xbe, 0x71, 0xd5, 0x1a, 0xda, 0xd4, 0xe1,
1490	0x35, 0x9d, 0x68, 0xa2, 0xce, 0xfd, 0xa7, 0xcf, 0xcd, 0xc4, 0xb3, 0xe7, 0x66, 0xe2, 0xe5, 0x73,
1491	0x13, 0x7d, 0x3d, 0x33, 0xd1, 0x8f, 0x33, 0x13, 0x3d, 0x99, 0x99, 0xe8, 0xe9, 0xcc, 0x44, 0x7f,
1492	0xcc, 0x4c, 0xf4, 0xe7, 0xcc, 0x4c, 0xbc, 0x9c, 0x99, 0xe8, 0xf1, 0x0b, 0x33, 0xf1, 0xf4, 0x85,
1493	0x99, 0x78, 0xf6, 0xc2, 0x4c, 0xdc, 0x3f, 0xad, 0xff, 0xcf, 0x0c, 0x9c, 0x5d, 0xc7, 0x73, 0x36,
1494	0x86, 0xfe, 0x9e, 0xbb, 0xa1, 0xff, 0x8f, 0xdd, 0x31, 0xc4, 0xe7, 0xdd, 0xbf, 0x03, 0x00, 0x00,
1495	0xff, 0xff, 0x0a, 0x35, 0x40, 0x22, 0xde, 0x0e, 0x00, 0x00,
1496}
1497
1498func (x Direction) String() string {
1499	s, ok := Direction_name[int32(x)]
1500	if ok {
1501		return s
1502	}
1503	return strconv.Itoa(int(x))
1504}
1505func (this *PushRequest) Equal(that interface{}) bool {
1506	if that == nil {
1507		return this == nil
1508	}
1509
1510	that1, ok := that.(*PushRequest)
1511	if !ok {
1512		that2, ok := that.(PushRequest)
1513		if ok {
1514			that1 = &that2
1515		} else {
1516			return false
1517		}
1518	}
1519	if that1 == nil {
1520		return this == nil
1521	} else if this == nil {
1522		return false
1523	}
1524	if len(this.Streams) != len(that1.Streams) {
1525		return false
1526	}
1527	for i := range this.Streams {
1528		if !this.Streams[i].Equal(that1.Streams[i]) {
1529			return false
1530		}
1531	}
1532	return true
1533}
1534func (this *PushResponse) Equal(that interface{}) bool {
1535	if that == nil {
1536		return this == nil
1537	}
1538
1539	that1, ok := that.(*PushResponse)
1540	if !ok {
1541		that2, ok := that.(PushResponse)
1542		if ok {
1543			that1 = &that2
1544		} else {
1545			return false
1546		}
1547	}
1548	if that1 == nil {
1549		return this == nil
1550	} else if this == nil {
1551		return false
1552	}
1553	return true
1554}
1555func (this *QueryRequest) Equal(that interface{}) bool {
1556	if that == nil {
1557		return this == nil
1558	}
1559
1560	that1, ok := that.(*QueryRequest)
1561	if !ok {
1562		that2, ok := that.(QueryRequest)
1563		if ok {
1564			that1 = &that2
1565		} else {
1566			return false
1567		}
1568	}
1569	if that1 == nil {
1570		return this == nil
1571	} else if this == nil {
1572		return false
1573	}
1574	if this.Selector != that1.Selector {
1575		return false
1576	}
1577	if this.Limit != that1.Limit {
1578		return false
1579	}
1580	if !this.Start.Equal(that1.Start) {
1581		return false
1582	}
1583	if !this.End.Equal(that1.End) {
1584		return false
1585	}
1586	if this.Direction != that1.Direction {
1587		return false
1588	}
1589	if len(this.Shards) != len(that1.Shards) {
1590		return false
1591	}
1592	for i := range this.Shards {
1593		if this.Shards[i] != that1.Shards[i] {
1594			return false
1595		}
1596	}
1597	return true
1598}
1599func (this *SampleQueryRequest) Equal(that interface{}) bool {
1600	if that == nil {
1601		return this == nil
1602	}
1603
1604	that1, ok := that.(*SampleQueryRequest)
1605	if !ok {
1606		that2, ok := that.(SampleQueryRequest)
1607		if ok {
1608			that1 = &that2
1609		} else {
1610			return false
1611		}
1612	}
1613	if that1 == nil {
1614		return this == nil
1615	} else if this == nil {
1616		return false
1617	}
1618	if this.Selector != that1.Selector {
1619		return false
1620	}
1621	if !this.Start.Equal(that1.Start) {
1622		return false
1623	}
1624	if !this.End.Equal(that1.End) {
1625		return false
1626	}
1627	if len(this.Shards) != len(that1.Shards) {
1628		return false
1629	}
1630	for i := range this.Shards {
1631		if this.Shards[i] != that1.Shards[i] {
1632			return false
1633		}
1634	}
1635	return true
1636}
1637func (this *SampleQueryResponse) Equal(that interface{}) bool {
1638	if that == nil {
1639		return this == nil
1640	}
1641
1642	that1, ok := that.(*SampleQueryResponse)
1643	if !ok {
1644		that2, ok := that.(SampleQueryResponse)
1645		if ok {
1646			that1 = &that2
1647		} else {
1648			return false
1649		}
1650	}
1651	if that1 == nil {
1652		return this == nil
1653	} else if this == nil {
1654		return false
1655	}
1656	if len(this.Series) != len(that1.Series) {
1657		return false
1658	}
1659	for i := range this.Series {
1660		if !this.Series[i].Equal(that1.Series[i]) {
1661			return false
1662		}
1663	}
1664	return true
1665}
1666func (this *QueryResponse) Equal(that interface{}) bool {
1667	if that == nil {
1668		return this == nil
1669	}
1670
1671	that1, ok := that.(*QueryResponse)
1672	if !ok {
1673		that2, ok := that.(QueryResponse)
1674		if ok {
1675			that1 = &that2
1676		} else {
1677			return false
1678		}
1679	}
1680	if that1 == nil {
1681		return this == nil
1682	} else if this == nil {
1683		return false
1684	}
1685	if len(this.Streams) != len(that1.Streams) {
1686		return false
1687	}
1688	for i := range this.Streams {
1689		if !this.Streams[i].Equal(that1.Streams[i]) {
1690			return false
1691		}
1692	}
1693	return true
1694}
1695func (this *LabelRequest) Equal(that interface{}) bool {
1696	if that == nil {
1697		return this == nil
1698	}
1699
1700	that1, ok := that.(*LabelRequest)
1701	if !ok {
1702		that2, ok := that.(LabelRequest)
1703		if ok {
1704			that1 = &that2
1705		} else {
1706			return false
1707		}
1708	}
1709	if that1 == nil {
1710		return this == nil
1711	} else if this == nil {
1712		return false
1713	}
1714	if this.Name != that1.Name {
1715		return false
1716	}
1717	if this.Values != that1.Values {
1718		return false
1719	}
1720	if that1.Start == nil {
1721		if this.Start != nil {
1722			return false
1723		}
1724	} else if !this.Start.Equal(*that1.Start) {
1725		return false
1726	}
1727	if that1.End == nil {
1728		if this.End != nil {
1729			return false
1730		}
1731	} else if !this.End.Equal(*that1.End) {
1732		return false
1733	}
1734	return true
1735}
1736func (this *LabelResponse) Equal(that interface{}) bool {
1737	if that == nil {
1738		return this == nil
1739	}
1740
1741	that1, ok := that.(*LabelResponse)
1742	if !ok {
1743		that2, ok := that.(LabelResponse)
1744		if ok {
1745			that1 = &that2
1746		} else {
1747			return false
1748		}
1749	}
1750	if that1 == nil {
1751		return this == nil
1752	} else if this == nil {
1753		return false
1754	}
1755	if len(this.Values) != len(that1.Values) {
1756		return false
1757	}
1758	for i := range this.Values {
1759		if this.Values[i] != that1.Values[i] {
1760			return false
1761		}
1762	}
1763	return true
1764}
1765func (this *StreamAdapter) Equal(that interface{}) bool {
1766	if that == nil {
1767		return this == nil
1768	}
1769
1770	that1, ok := that.(*StreamAdapter)
1771	if !ok {
1772		that2, ok := that.(StreamAdapter)
1773		if ok {
1774			that1 = &that2
1775		} else {
1776			return false
1777		}
1778	}
1779	if that1 == nil {
1780		return this == nil
1781	} else if this == nil {
1782		return false
1783	}
1784	if this.Labels != that1.Labels {
1785		return false
1786	}
1787	if len(this.Entries) != len(that1.Entries) {
1788		return false
1789	}
1790	for i := range this.Entries {
1791		if !this.Entries[i].Equal(&that1.Entries[i]) {
1792			return false
1793		}
1794	}
1795	return true
1796}
1797func (this *EntryAdapter) Equal(that interface{}) bool {
1798	if that == nil {
1799		return this == nil
1800	}
1801
1802	that1, ok := that.(*EntryAdapter)
1803	if !ok {
1804		that2, ok := that.(EntryAdapter)
1805		if ok {
1806			that1 = &that2
1807		} else {
1808			return false
1809		}
1810	}
1811	if that1 == nil {
1812		return this == nil
1813	} else if this == nil {
1814		return false
1815	}
1816	if !this.Timestamp.Equal(that1.Timestamp) {
1817		return false
1818	}
1819	if this.Line != that1.Line {
1820		return false
1821	}
1822	return true
1823}
1824func (this *Sample) Equal(that interface{}) bool {
1825	if that == nil {
1826		return this == nil
1827	}
1828
1829	that1, ok := that.(*Sample)
1830	if !ok {
1831		that2, ok := that.(Sample)
1832		if ok {
1833			that1 = &that2
1834		} else {
1835			return false
1836		}
1837	}
1838	if that1 == nil {
1839		return this == nil
1840	} else if this == nil {
1841		return false
1842	}
1843	if this.Timestamp != that1.Timestamp {
1844		return false
1845	}
1846	if this.Value != that1.Value {
1847		return false
1848	}
1849	if this.Hash != that1.Hash {
1850		return false
1851	}
1852	return true
1853}
1854func (this *Series) Equal(that interface{}) bool {
1855	if that == nil {
1856		return this == nil
1857	}
1858
1859	that1, ok := that.(*Series)
1860	if !ok {
1861		that2, ok := that.(Series)
1862		if ok {
1863			that1 = &that2
1864		} else {
1865			return false
1866		}
1867	}
1868	if that1 == nil {
1869		return this == nil
1870	} else if this == nil {
1871		return false
1872	}
1873	if this.Labels != that1.Labels {
1874		return false
1875	}
1876	if len(this.Samples) != len(that1.Samples) {
1877		return false
1878	}
1879	for i := range this.Samples {
1880		if !this.Samples[i].Equal(&that1.Samples[i]) {
1881			return false
1882		}
1883	}
1884	return true
1885}
1886func (this *TailRequest) Equal(that interface{}) bool {
1887	if that == nil {
1888		return this == nil
1889	}
1890
1891	that1, ok := that.(*TailRequest)
1892	if !ok {
1893		that2, ok := that.(TailRequest)
1894		if ok {
1895			that1 = &that2
1896		} else {
1897			return false
1898		}
1899	}
1900	if that1 == nil {
1901		return this == nil
1902	} else if this == nil {
1903		return false
1904	}
1905	if this.Query != that1.Query {
1906		return false
1907	}
1908	if this.DelayFor != that1.DelayFor {
1909		return false
1910	}
1911	if this.Limit != that1.Limit {
1912		return false
1913	}
1914	if !this.Start.Equal(that1.Start) {
1915		return false
1916	}
1917	return true
1918}
1919func (this *TailResponse) Equal(that interface{}) bool {
1920	if that == nil {
1921		return this == nil
1922	}
1923
1924	that1, ok := that.(*TailResponse)
1925	if !ok {
1926		that2, ok := that.(TailResponse)
1927		if ok {
1928			that1 = &that2
1929		} else {
1930			return false
1931		}
1932	}
1933	if that1 == nil {
1934		return this == nil
1935	} else if this == nil {
1936		return false
1937	}
1938	if that1.Stream == nil {
1939		if this.Stream != nil {
1940			return false
1941		}
1942	} else if !this.Stream.Equal(*that1.Stream) {
1943		return false
1944	}
1945	if len(this.DroppedStreams) != len(that1.DroppedStreams) {
1946		return false
1947	}
1948	for i := range this.DroppedStreams {
1949		if !this.DroppedStreams[i].Equal(that1.DroppedStreams[i]) {
1950			return false
1951		}
1952	}
1953	return true
1954}
1955func (this *SeriesRequest) Equal(that interface{}) bool {
1956	if that == nil {
1957		return this == nil
1958	}
1959
1960	that1, ok := that.(*SeriesRequest)
1961	if !ok {
1962		that2, ok := that.(SeriesRequest)
1963		if ok {
1964			that1 = &that2
1965		} else {
1966			return false
1967		}
1968	}
1969	if that1 == nil {
1970		return this == nil
1971	} else if this == nil {
1972		return false
1973	}
1974	if !this.Start.Equal(that1.Start) {
1975		return false
1976	}
1977	if !this.End.Equal(that1.End) {
1978		return false
1979	}
1980	if len(this.Groups) != len(that1.Groups) {
1981		return false
1982	}
1983	for i := range this.Groups {
1984		if this.Groups[i] != that1.Groups[i] {
1985			return false
1986		}
1987	}
1988	if len(this.Shards) != len(that1.Shards) {
1989		return false
1990	}
1991	for i := range this.Shards {
1992		if this.Shards[i] != that1.Shards[i] {
1993			return false
1994		}
1995	}
1996	return true
1997}
1998func (this *SeriesResponse) Equal(that interface{}) bool {
1999	if that == nil {
2000		return this == nil
2001	}
2002
2003	that1, ok := that.(*SeriesResponse)
2004	if !ok {
2005		that2, ok := that.(SeriesResponse)
2006		if ok {
2007			that1 = &that2
2008		} else {
2009			return false
2010		}
2011	}
2012	if that1 == nil {
2013		return this == nil
2014	} else if this == nil {
2015		return false
2016	}
2017	if len(this.Series) != len(that1.Series) {
2018		return false
2019	}
2020	for i := range this.Series {
2021		if !this.Series[i].Equal(&that1.Series[i]) {
2022			return false
2023		}
2024	}
2025	return true
2026}
2027func (this *SeriesIdentifier) Equal(that interface{}) bool {
2028	if that == nil {
2029		return this == nil
2030	}
2031
2032	that1, ok := that.(*SeriesIdentifier)
2033	if !ok {
2034		that2, ok := that.(SeriesIdentifier)
2035		if ok {
2036			that1 = &that2
2037		} else {
2038			return false
2039		}
2040	}
2041	if that1 == nil {
2042		return this == nil
2043	} else if this == nil {
2044		return false
2045	}
2046	if len(this.Labels) != len(that1.Labels) {
2047		return false
2048	}
2049	for i := range this.Labels {
2050		if this.Labels[i] != that1.Labels[i] {
2051			return false
2052		}
2053	}
2054	return true
2055}
2056func (this *DroppedStream) Equal(that interface{}) bool {
2057	if that == nil {
2058		return this == nil
2059	}
2060
2061	that1, ok := that.(*DroppedStream)
2062	if !ok {
2063		that2, ok := that.(DroppedStream)
2064		if ok {
2065			that1 = &that2
2066		} else {
2067			return false
2068		}
2069	}
2070	if that1 == nil {
2071		return this == nil
2072	} else if this == nil {
2073		return false
2074	}
2075	if !this.From.Equal(that1.From) {
2076		return false
2077	}
2078	if !this.To.Equal(that1.To) {
2079		return false
2080	}
2081	if this.Labels != that1.Labels {
2082		return false
2083	}
2084	return true
2085}
2086func (this *TimeSeriesChunk) Equal(that interface{}) bool {
2087	if that == nil {
2088		return this == nil
2089	}
2090
2091	that1, ok := that.(*TimeSeriesChunk)
2092	if !ok {
2093		that2, ok := that.(TimeSeriesChunk)
2094		if ok {
2095			that1 = &that2
2096		} else {
2097			return false
2098		}
2099	}
2100	if that1 == nil {
2101		return this == nil
2102	} else if this == nil {
2103		return false
2104	}
2105	if this.FromIngesterId != that1.FromIngesterId {
2106		return false
2107	}
2108	if this.UserId != that1.UserId {
2109		return false
2110	}
2111	if len(this.Labels) != len(that1.Labels) {
2112		return false
2113	}
2114	for i := range this.Labels {
2115		if !this.Labels[i].Equal(that1.Labels[i]) {
2116			return false
2117		}
2118	}
2119	if len(this.Chunks) != len(that1.Chunks) {
2120		return false
2121	}
2122	for i := range this.Chunks {
2123		if !this.Chunks[i].Equal(that1.Chunks[i]) {
2124			return false
2125		}
2126	}
2127	return true
2128}
2129func (this *LabelPair) Equal(that interface{}) bool {
2130	if that == nil {
2131		return this == nil
2132	}
2133
2134	that1, ok := that.(*LabelPair)
2135	if !ok {
2136		that2, ok := that.(LabelPair)
2137		if ok {
2138			that1 = &that2
2139		} else {
2140			return false
2141		}
2142	}
2143	if that1 == nil {
2144		return this == nil
2145	} else if this == nil {
2146		return false
2147	}
2148	if this.Name != that1.Name {
2149		return false
2150	}
2151	if this.Value != that1.Value {
2152		return false
2153	}
2154	return true
2155}
2156func (this *Chunk) Equal(that interface{}) bool {
2157	if that == nil {
2158		return this == nil
2159	}
2160
2161	that1, ok := that.(*Chunk)
2162	if !ok {
2163		that2, ok := that.(Chunk)
2164		if ok {
2165			that1 = &that2
2166		} else {
2167			return false
2168		}
2169	}
2170	if that1 == nil {
2171		return this == nil
2172	} else if this == nil {
2173		return false
2174	}
2175	if !bytes.Equal(this.Data, that1.Data) {
2176		return false
2177	}
2178	return true
2179}
2180func (this *TransferChunksResponse) Equal(that interface{}) bool {
2181	if that == nil {
2182		return this == nil
2183	}
2184
2185	that1, ok := that.(*TransferChunksResponse)
2186	if !ok {
2187		that2, ok := that.(TransferChunksResponse)
2188		if ok {
2189			that1 = &that2
2190		} else {
2191			return false
2192		}
2193	}
2194	if that1 == nil {
2195		return this == nil
2196	} else if this == nil {
2197		return false
2198	}
2199	return true
2200}
2201func (this *TailersCountRequest) Equal(that interface{}) bool {
2202	if that == nil {
2203		return this == nil
2204	}
2205
2206	that1, ok := that.(*TailersCountRequest)
2207	if !ok {
2208		that2, ok := that.(TailersCountRequest)
2209		if ok {
2210			that1 = &that2
2211		} else {
2212			return false
2213		}
2214	}
2215	if that1 == nil {
2216		return this == nil
2217	} else if this == nil {
2218		return false
2219	}
2220	return true
2221}
2222func (this *TailersCountResponse) Equal(that interface{}) bool {
2223	if that == nil {
2224		return this == nil
2225	}
2226
2227	that1, ok := that.(*TailersCountResponse)
2228	if !ok {
2229		that2, ok := that.(TailersCountResponse)
2230		if ok {
2231			that1 = &that2
2232		} else {
2233			return false
2234		}
2235	}
2236	if that1 == nil {
2237		return this == nil
2238	} else if this == nil {
2239		return false
2240	}
2241	if this.Count != that1.Count {
2242		return false
2243	}
2244	return true
2245}
2246func (this *GetChunkIDsRequest) Equal(that interface{}) bool {
2247	if that == nil {
2248		return this == nil
2249	}
2250
2251	that1, ok := that.(*GetChunkIDsRequest)
2252	if !ok {
2253		that2, ok := that.(GetChunkIDsRequest)
2254		if ok {
2255			that1 = &that2
2256		} else {
2257			return false
2258		}
2259	}
2260	if that1 == nil {
2261		return this == nil
2262	} else if this == nil {
2263		return false
2264	}
2265	if this.Matchers != that1.Matchers {
2266		return false
2267	}
2268	if !this.Start.Equal(that1.Start) {
2269		return false
2270	}
2271	if !this.End.Equal(that1.End) {
2272		return false
2273	}
2274	return true
2275}
2276func (this *GetChunkIDsResponse) Equal(that interface{}) bool {
2277	if that == nil {
2278		return this == nil
2279	}
2280
2281	that1, ok := that.(*GetChunkIDsResponse)
2282	if !ok {
2283		that2, ok := that.(GetChunkIDsResponse)
2284		if ok {
2285			that1 = &that2
2286		} else {
2287			return false
2288		}
2289	}
2290	if that1 == nil {
2291		return this == nil
2292	} else if this == nil {
2293		return false
2294	}
2295	if len(this.ChunkIDs) != len(that1.ChunkIDs) {
2296		return false
2297	}
2298	for i := range this.ChunkIDs {
2299		if this.ChunkIDs[i] != that1.ChunkIDs[i] {
2300			return false
2301		}
2302	}
2303	return true
2304}
2305func (this *PushRequest) GoString() string {
2306	if this == nil {
2307		return "nil"
2308	}
2309	s := make([]string, 0, 5)
2310	s = append(s, "&logproto.PushRequest{")
2311	s = append(s, "Streams: "+fmt.Sprintf("%#v", this.Streams)+",\n")
2312	s = append(s, "}")
2313	return strings.Join(s, "")
2314}
2315func (this *PushResponse) GoString() string {
2316	if this == nil {
2317		return "nil"
2318	}
2319	s := make([]string, 0, 4)
2320	s = append(s, "&logproto.PushResponse{")
2321	s = append(s, "}")
2322	return strings.Join(s, "")
2323}
2324func (this *QueryRequest) GoString() string {
2325	if this == nil {
2326		return "nil"
2327	}
2328	s := make([]string, 0, 10)
2329	s = append(s, "&logproto.QueryRequest{")
2330	s = append(s, "Selector: "+fmt.Sprintf("%#v", this.Selector)+",\n")
2331	s = append(s, "Limit: "+fmt.Sprintf("%#v", this.Limit)+",\n")
2332	s = append(s, "Start: "+fmt.Sprintf("%#v", this.Start)+",\n")
2333	s = append(s, "End: "+fmt.Sprintf("%#v", this.End)+",\n")
2334	s = append(s, "Direction: "+fmt.Sprintf("%#v", this.Direction)+",\n")
2335	s = append(s, "Shards: "+fmt.Sprintf("%#v", this.Shards)+",\n")
2336	s = append(s, "}")
2337	return strings.Join(s, "")
2338}
2339func (this *SampleQueryRequest) GoString() string {
2340	if this == nil {
2341		return "nil"
2342	}
2343	s := make([]string, 0, 8)
2344	s = append(s, "&logproto.SampleQueryRequest{")
2345	s = append(s, "Selector: "+fmt.Sprintf("%#v", this.Selector)+",\n")
2346	s = append(s, "Start: "+fmt.Sprintf("%#v", this.Start)+",\n")
2347	s = append(s, "End: "+fmt.Sprintf("%#v", this.End)+",\n")
2348	s = append(s, "Shards: "+fmt.Sprintf("%#v", this.Shards)+",\n")
2349	s = append(s, "}")
2350	return strings.Join(s, "")
2351}
2352func (this *SampleQueryResponse) GoString() string {
2353	if this == nil {
2354		return "nil"
2355	}
2356	s := make([]string, 0, 5)
2357	s = append(s, "&logproto.SampleQueryResponse{")
2358	s = append(s, "Series: "+fmt.Sprintf("%#v", this.Series)+",\n")
2359	s = append(s, "}")
2360	return strings.Join(s, "")
2361}
2362func (this *QueryResponse) GoString() string {
2363	if this == nil {
2364		return "nil"
2365	}
2366	s := make([]string, 0, 5)
2367	s = append(s, "&logproto.QueryResponse{")
2368	s = append(s, "Streams: "+fmt.Sprintf("%#v", this.Streams)+",\n")
2369	s = append(s, "}")
2370	return strings.Join(s, "")
2371}
2372func (this *LabelRequest) GoString() string {
2373	if this == nil {
2374		return "nil"
2375	}
2376	s := make([]string, 0, 8)
2377	s = append(s, "&logproto.LabelRequest{")
2378	s = append(s, "Name: "+fmt.Sprintf("%#v", this.Name)+",\n")
2379	s = append(s, "Values: "+fmt.Sprintf("%#v", this.Values)+",\n")
2380	s = append(s, "Start: "+fmt.Sprintf("%#v", this.Start)+",\n")
2381	s = append(s, "End: "+fmt.Sprintf("%#v", this.End)+",\n")
2382	s = append(s, "}")
2383	return strings.Join(s, "")
2384}
2385func (this *LabelResponse) GoString() string {
2386	if this == nil {
2387		return "nil"
2388	}
2389	s := make([]string, 0, 5)
2390	s = append(s, "&logproto.LabelResponse{")
2391	s = append(s, "Values: "+fmt.Sprintf("%#v", this.Values)+",\n")
2392	s = append(s, "}")
2393	return strings.Join(s, "")
2394}
2395func (this *StreamAdapter) GoString() string {
2396	if this == nil {
2397		return "nil"
2398	}
2399	s := make([]string, 0, 6)
2400	s = append(s, "&logproto.StreamAdapter{")
2401	s = append(s, "Labels: "+fmt.Sprintf("%#v", this.Labels)+",\n")
2402	if this.Entries != nil {
2403		vs := make([]*EntryAdapter, len(this.Entries))
2404		for i := range vs {
2405			vs[i] = &this.Entries[i]
2406		}
2407		s = append(s, "Entries: "+fmt.Sprintf("%#v", vs)+",\n")
2408	}
2409	s = append(s, "}")
2410	return strings.Join(s, "")
2411}
2412func (this *EntryAdapter) GoString() string {
2413	if this == nil {
2414		return "nil"
2415	}
2416	s := make([]string, 0, 6)
2417	s = append(s, "&logproto.EntryAdapter{")
2418	s = append(s, "Timestamp: "+fmt.Sprintf("%#v", this.Timestamp)+",\n")
2419	s = append(s, "Line: "+fmt.Sprintf("%#v", this.Line)+",\n")
2420	s = append(s, "}")
2421	return strings.Join(s, "")
2422}
2423func (this *Sample) GoString() string {
2424	if this == nil {
2425		return "nil"
2426	}
2427	s := make([]string, 0, 7)
2428	s = append(s, "&logproto.Sample{")
2429	s = append(s, "Timestamp: "+fmt.Sprintf("%#v", this.Timestamp)+",\n")
2430	s = append(s, "Value: "+fmt.Sprintf("%#v", this.Value)+",\n")
2431	s = append(s, "Hash: "+fmt.Sprintf("%#v", this.Hash)+",\n")
2432	s = append(s, "}")
2433	return strings.Join(s, "")
2434}
2435func (this *Series) GoString() string {
2436	if this == nil {
2437		return "nil"
2438	}
2439	s := make([]string, 0, 6)
2440	s = append(s, "&logproto.Series{")
2441	s = append(s, "Labels: "+fmt.Sprintf("%#v", this.Labels)+",\n")
2442	if this.Samples != nil {
2443		vs := make([]*Sample, len(this.Samples))
2444		for i := range vs {
2445			vs[i] = &this.Samples[i]
2446		}
2447		s = append(s, "Samples: "+fmt.Sprintf("%#v", vs)+",\n")
2448	}
2449	s = append(s, "}")
2450	return strings.Join(s, "")
2451}
2452func (this *TailRequest) GoString() string {
2453	if this == nil {
2454		return "nil"
2455	}
2456	s := make([]string, 0, 8)
2457	s = append(s, "&logproto.TailRequest{")
2458	s = append(s, "Query: "+fmt.Sprintf("%#v", this.Query)+",\n")
2459	s = append(s, "DelayFor: "+fmt.Sprintf("%#v", this.DelayFor)+",\n")
2460	s = append(s, "Limit: "+fmt.Sprintf("%#v", this.Limit)+",\n")
2461	s = append(s, "Start: "+fmt.Sprintf("%#v", this.Start)+",\n")
2462	s = append(s, "}")
2463	return strings.Join(s, "")
2464}
2465func (this *TailResponse) GoString() string {
2466	if this == nil {
2467		return "nil"
2468	}
2469	s := make([]string, 0, 6)
2470	s = append(s, "&logproto.TailResponse{")
2471	s = append(s, "Stream: "+fmt.Sprintf("%#v", this.Stream)+",\n")
2472	if this.DroppedStreams != nil {
2473		s = append(s, "DroppedStreams: "+fmt.Sprintf("%#v", this.DroppedStreams)+",\n")
2474	}
2475	s = append(s, "}")
2476	return strings.Join(s, "")
2477}
2478func (this *SeriesRequest) GoString() string {
2479	if this == nil {
2480		return "nil"
2481	}
2482	s := make([]string, 0, 8)
2483	s = append(s, "&logproto.SeriesRequest{")
2484	s = append(s, "Start: "+fmt.Sprintf("%#v", this.Start)+",\n")
2485	s = append(s, "End: "+fmt.Sprintf("%#v", this.End)+",\n")
2486	s = append(s, "Groups: "+fmt.Sprintf("%#v", this.Groups)+",\n")
2487	s = append(s, "Shards: "+fmt.Sprintf("%#v", this.Shards)+",\n")
2488	s = append(s, "}")
2489	return strings.Join(s, "")
2490}
2491func (this *SeriesResponse) GoString() string {
2492	if this == nil {
2493		return "nil"
2494	}
2495	s := make([]string, 0, 5)
2496	s = append(s, "&logproto.SeriesResponse{")
2497	if this.Series != nil {
2498		vs := make([]*SeriesIdentifier, len(this.Series))
2499		for i := range vs {
2500			vs[i] = &this.Series[i]
2501		}
2502		s = append(s, "Series: "+fmt.Sprintf("%#v", vs)+",\n")
2503	}
2504	s = append(s, "}")
2505	return strings.Join(s, "")
2506}
2507func (this *SeriesIdentifier) GoString() string {
2508	if this == nil {
2509		return "nil"
2510	}
2511	s := make([]string, 0, 5)
2512	s = append(s, "&logproto.SeriesIdentifier{")
2513	keysForLabels := make([]string, 0, len(this.Labels))
2514	for k, _ := range this.Labels {
2515		keysForLabels = append(keysForLabels, k)
2516	}
2517	github_com_gogo_protobuf_sortkeys.Strings(keysForLabels)
2518	mapStringForLabels := "map[string]string{"
2519	for _, k := range keysForLabels {
2520		mapStringForLabels += fmt.Sprintf("%#v: %#v,", k, this.Labels[k])
2521	}
2522	mapStringForLabels += "}"
2523	if this.Labels != nil {
2524		s = append(s, "Labels: "+mapStringForLabels+",\n")
2525	}
2526	s = append(s, "}")
2527	return strings.Join(s, "")
2528}
2529func (this *DroppedStream) GoString() string {
2530	if this == nil {
2531		return "nil"
2532	}
2533	s := make([]string, 0, 7)
2534	s = append(s, "&logproto.DroppedStream{")
2535	s = append(s, "From: "+fmt.Sprintf("%#v", this.From)+",\n")
2536	s = append(s, "To: "+fmt.Sprintf("%#v", this.To)+",\n")
2537	s = append(s, "Labels: "+fmt.Sprintf("%#v", this.Labels)+",\n")
2538	s = append(s, "}")
2539	return strings.Join(s, "")
2540}
2541func (this *TimeSeriesChunk) GoString() string {
2542	if this == nil {
2543		return "nil"
2544	}
2545	s := make([]string, 0, 8)
2546	s = append(s, "&logproto.TimeSeriesChunk{")
2547	s = append(s, "FromIngesterId: "+fmt.Sprintf("%#v", this.FromIngesterId)+",\n")
2548	s = append(s, "UserId: "+fmt.Sprintf("%#v", this.UserId)+",\n")
2549	if this.Labels != nil {
2550		s = append(s, "Labels: "+fmt.Sprintf("%#v", this.Labels)+",\n")
2551	}
2552	if this.Chunks != nil {
2553		s = append(s, "Chunks: "+fmt.Sprintf("%#v", this.Chunks)+",\n")
2554	}
2555	s = append(s, "}")
2556	return strings.Join(s, "")
2557}
2558func (this *LabelPair) GoString() string {
2559	if this == nil {
2560		return "nil"
2561	}
2562	s := make([]string, 0, 6)
2563	s = append(s, "&logproto.LabelPair{")
2564	s = append(s, "Name: "+fmt.Sprintf("%#v", this.Name)+",\n")
2565	s = append(s, "Value: "+fmt.Sprintf("%#v", this.Value)+",\n")
2566	s = append(s, "}")
2567	return strings.Join(s, "")
2568}
2569func (this *Chunk) GoString() string {
2570	if this == nil {
2571		return "nil"
2572	}
2573	s := make([]string, 0, 5)
2574	s = append(s, "&logproto.Chunk{")
2575	s = append(s, "Data: "+fmt.Sprintf("%#v", this.Data)+",\n")
2576	s = append(s, "}")
2577	return strings.Join(s, "")
2578}
2579func (this *TransferChunksResponse) GoString() string {
2580	if this == nil {
2581		return "nil"
2582	}
2583	s := make([]string, 0, 4)
2584	s = append(s, "&logproto.TransferChunksResponse{")
2585	s = append(s, "}")
2586	return strings.Join(s, "")
2587}
2588func (this *TailersCountRequest) GoString() string {
2589	if this == nil {
2590		return "nil"
2591	}
2592	s := make([]string, 0, 4)
2593	s = append(s, "&logproto.TailersCountRequest{")
2594	s = append(s, "}")
2595	return strings.Join(s, "")
2596}
2597func (this *TailersCountResponse) GoString() string {
2598	if this == nil {
2599		return "nil"
2600	}
2601	s := make([]string, 0, 5)
2602	s = append(s, "&logproto.TailersCountResponse{")
2603	s = append(s, "Count: "+fmt.Sprintf("%#v", this.Count)+",\n")
2604	s = append(s, "}")
2605	return strings.Join(s, "")
2606}
2607func (this *GetChunkIDsRequest) GoString() string {
2608	if this == nil {
2609		return "nil"
2610	}
2611	s := make([]string, 0, 7)
2612	s = append(s, "&logproto.GetChunkIDsRequest{")
2613	s = append(s, "Matchers: "+fmt.Sprintf("%#v", this.Matchers)+",\n")
2614	s = append(s, "Start: "+fmt.Sprintf("%#v", this.Start)+",\n")
2615	s = append(s, "End: "+fmt.Sprintf("%#v", this.End)+",\n")
2616	s = append(s, "}")
2617	return strings.Join(s, "")
2618}
2619func (this *GetChunkIDsResponse) GoString() string {
2620	if this == nil {
2621		return "nil"
2622	}
2623	s := make([]string, 0, 5)
2624	s = append(s, "&logproto.GetChunkIDsResponse{")
2625	s = append(s, "ChunkIDs: "+fmt.Sprintf("%#v", this.ChunkIDs)+",\n")
2626	s = append(s, "}")
2627	return strings.Join(s, "")
2628}
2629func valueToGoStringLogproto(v interface{}, typ string) string {
2630	rv := reflect.ValueOf(v)
2631	if rv.IsNil() {
2632		return "nil"
2633	}
2634	pv := reflect.Indirect(rv).Interface()
2635	return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv)
2636}
2637
2638// Reference imports to suppress errors if they are not otherwise used.
2639var _ context.Context
2640var _ grpc.ClientConn
2641
2642// This is a compile-time assertion to ensure that this generated file
2643// is compatible with the grpc package it is being compiled against.
2644const _ = grpc.SupportPackageIsVersion4
2645
2646// PusherClient is the client API for Pusher service.
2647//
2648// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
2649type PusherClient interface {
2650	Push(ctx context.Context, in *PushRequest, opts ...grpc.CallOption) (*PushResponse, error)
2651}
2652
2653type pusherClient struct {
2654	cc *grpc.ClientConn
2655}
2656
2657func NewPusherClient(cc *grpc.ClientConn) PusherClient {
2658	return &pusherClient{cc}
2659}
2660
2661func (c *pusherClient) Push(ctx context.Context, in *PushRequest, opts ...grpc.CallOption) (*PushResponse, error) {
2662	out := new(PushResponse)
2663	err := c.cc.Invoke(ctx, "/logproto.Pusher/Push", in, out, opts...)
2664	if err != nil {
2665		return nil, err
2666	}
2667	return out, nil
2668}
2669
2670// PusherServer is the server API for Pusher service.
2671type PusherServer interface {
2672	Push(context.Context, *PushRequest) (*PushResponse, error)
2673}
2674
2675// UnimplementedPusherServer can be embedded to have forward compatible implementations.
2676type UnimplementedPusherServer struct {
2677}
2678
2679func (*UnimplementedPusherServer) Push(ctx context.Context, req *PushRequest) (*PushResponse, error) {
2680	return nil, status.Errorf(codes.Unimplemented, "method Push not implemented")
2681}
2682
2683func RegisterPusherServer(s *grpc.Server, srv PusherServer) {
2684	s.RegisterService(&_Pusher_serviceDesc, srv)
2685}
2686
2687func _Pusher_Push_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
2688	in := new(PushRequest)
2689	if err := dec(in); err != nil {
2690		return nil, err
2691	}
2692	if interceptor == nil {
2693		return srv.(PusherServer).Push(ctx, in)
2694	}
2695	info := &grpc.UnaryServerInfo{
2696		Server:     srv,
2697		FullMethod: "/logproto.Pusher/Push",
2698	}
2699	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
2700		return srv.(PusherServer).Push(ctx, req.(*PushRequest))
2701	}
2702	return interceptor(ctx, in, info, handler)
2703}
2704
2705var _Pusher_serviceDesc = grpc.ServiceDesc{
2706	ServiceName: "logproto.Pusher",
2707	HandlerType: (*PusherServer)(nil),
2708	Methods: []grpc.MethodDesc{
2709		{
2710			MethodName: "Push",
2711			Handler:    _Pusher_Push_Handler,
2712		},
2713	},
2714	Streams:  []grpc.StreamDesc{},
2715	Metadata: "pkg/logproto/logproto.proto",
2716}
2717
2718// QuerierClient is the client API for Querier service.
2719//
2720// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
2721type QuerierClient interface {
2722	Query(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (Querier_QueryClient, error)
2723	QuerySample(ctx context.Context, in *SampleQueryRequest, opts ...grpc.CallOption) (Querier_QuerySampleClient, error)
2724	Label(ctx context.Context, in *LabelRequest, opts ...grpc.CallOption) (*LabelResponse, error)
2725	Tail(ctx context.Context, in *TailRequest, opts ...grpc.CallOption) (Querier_TailClient, error)
2726	Series(ctx context.Context, in *SeriesRequest, opts ...grpc.CallOption) (*SeriesResponse, error)
2727	TailersCount(ctx context.Context, in *TailersCountRequest, opts ...grpc.CallOption) (*TailersCountResponse, error)
2728	GetChunkIDs(ctx context.Context, in *GetChunkIDsRequest, opts ...grpc.CallOption) (*GetChunkIDsResponse, error)
2729}
2730
2731type querierClient struct {
2732	cc *grpc.ClientConn
2733}
2734
2735func NewQuerierClient(cc *grpc.ClientConn) QuerierClient {
2736	return &querierClient{cc}
2737}
2738
2739func (c *querierClient) Query(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (Querier_QueryClient, error) {
2740	stream, err := c.cc.NewStream(ctx, &_Querier_serviceDesc.Streams[0], "/logproto.Querier/Query", opts...)
2741	if err != nil {
2742		return nil, err
2743	}
2744	x := &querierQueryClient{stream}
2745	if err := x.ClientStream.SendMsg(in); err != nil {
2746		return nil, err
2747	}
2748	if err := x.ClientStream.CloseSend(); err != nil {
2749		return nil, err
2750	}
2751	return x, nil
2752}
2753
2754type Querier_QueryClient interface {
2755	Recv() (*QueryResponse, error)
2756	grpc.ClientStream
2757}
2758
2759type querierQueryClient struct {
2760	grpc.ClientStream
2761}
2762
2763func (x *querierQueryClient) Recv() (*QueryResponse, error) {
2764	m := new(QueryResponse)
2765	if err := x.ClientStream.RecvMsg(m); err != nil {
2766		return nil, err
2767	}
2768	return m, nil
2769}
2770
2771func (c *querierClient) QuerySample(ctx context.Context, in *SampleQueryRequest, opts ...grpc.CallOption) (Querier_QuerySampleClient, error) {
2772	stream, err := c.cc.NewStream(ctx, &_Querier_serviceDesc.Streams[1], "/logproto.Querier/QuerySample", opts...)
2773	if err != nil {
2774		return nil, err
2775	}
2776	x := &querierQuerySampleClient{stream}
2777	if err := x.ClientStream.SendMsg(in); err != nil {
2778		return nil, err
2779	}
2780	if err := x.ClientStream.CloseSend(); err != nil {
2781		return nil, err
2782	}
2783	return x, nil
2784}
2785
2786type Querier_QuerySampleClient interface {
2787	Recv() (*SampleQueryResponse, error)
2788	grpc.ClientStream
2789}
2790
2791type querierQuerySampleClient struct {
2792	grpc.ClientStream
2793}
2794
2795func (x *querierQuerySampleClient) Recv() (*SampleQueryResponse, error) {
2796	m := new(SampleQueryResponse)
2797	if err := x.ClientStream.RecvMsg(m); err != nil {
2798		return nil, err
2799	}
2800	return m, nil
2801}
2802
2803func (c *querierClient) Label(ctx context.Context, in *LabelRequest, opts ...grpc.CallOption) (*LabelResponse, error) {
2804	out := new(LabelResponse)
2805	err := c.cc.Invoke(ctx, "/logproto.Querier/Label", in, out, opts...)
2806	if err != nil {
2807		return nil, err
2808	}
2809	return out, nil
2810}
2811
2812func (c *querierClient) Tail(ctx context.Context, in *TailRequest, opts ...grpc.CallOption) (Querier_TailClient, error) {
2813	stream, err := c.cc.NewStream(ctx, &_Querier_serviceDesc.Streams[2], "/logproto.Querier/Tail", opts...)
2814	if err != nil {
2815		return nil, err
2816	}
2817	x := &querierTailClient{stream}
2818	if err := x.ClientStream.SendMsg(in); err != nil {
2819		return nil, err
2820	}
2821	if err := x.ClientStream.CloseSend(); err != nil {
2822		return nil, err
2823	}
2824	return x, nil
2825}
2826
2827type Querier_TailClient interface {
2828	Recv() (*TailResponse, error)
2829	grpc.ClientStream
2830}
2831
2832type querierTailClient struct {
2833	grpc.ClientStream
2834}
2835
2836func (x *querierTailClient) Recv() (*TailResponse, error) {
2837	m := new(TailResponse)
2838	if err := x.ClientStream.RecvMsg(m); err != nil {
2839		return nil, err
2840	}
2841	return m, nil
2842}
2843
2844func (c *querierClient) Series(ctx context.Context, in *SeriesRequest, opts ...grpc.CallOption) (*SeriesResponse, error) {
2845	out := new(SeriesResponse)
2846	err := c.cc.Invoke(ctx, "/logproto.Querier/Series", in, out, opts...)
2847	if err != nil {
2848		return nil, err
2849	}
2850	return out, nil
2851}
2852
2853func (c *querierClient) TailersCount(ctx context.Context, in *TailersCountRequest, opts ...grpc.CallOption) (*TailersCountResponse, error) {
2854	out := new(TailersCountResponse)
2855	err := c.cc.Invoke(ctx, "/logproto.Querier/TailersCount", in, out, opts...)
2856	if err != nil {
2857		return nil, err
2858	}
2859	return out, nil
2860}
2861
2862func (c *querierClient) GetChunkIDs(ctx context.Context, in *GetChunkIDsRequest, opts ...grpc.CallOption) (*GetChunkIDsResponse, error) {
2863	out := new(GetChunkIDsResponse)
2864	err := c.cc.Invoke(ctx, "/logproto.Querier/GetChunkIDs", in, out, opts...)
2865	if err != nil {
2866		return nil, err
2867	}
2868	return out, nil
2869}
2870
2871// QuerierServer is the server API for Querier service.
2872type QuerierServer interface {
2873	Query(*QueryRequest, Querier_QueryServer) error
2874	QuerySample(*SampleQueryRequest, Querier_QuerySampleServer) error
2875	Label(context.Context, *LabelRequest) (*LabelResponse, error)
2876	Tail(*TailRequest, Querier_TailServer) error
2877	Series(context.Context, *SeriesRequest) (*SeriesResponse, error)
2878	TailersCount(context.Context, *TailersCountRequest) (*TailersCountResponse, error)
2879	GetChunkIDs(context.Context, *GetChunkIDsRequest) (*GetChunkIDsResponse, error)
2880}
2881
2882// UnimplementedQuerierServer can be embedded to have forward compatible implementations.
2883type UnimplementedQuerierServer struct {
2884}
2885
2886func (*UnimplementedQuerierServer) Query(req *QueryRequest, srv Querier_QueryServer) error {
2887	return status.Errorf(codes.Unimplemented, "method Query not implemented")
2888}
2889func (*UnimplementedQuerierServer) QuerySample(req *SampleQueryRequest, srv Querier_QuerySampleServer) error {
2890	return status.Errorf(codes.Unimplemented, "method QuerySample not implemented")
2891}
2892func (*UnimplementedQuerierServer) Label(ctx context.Context, req *LabelRequest) (*LabelResponse, error) {
2893	return nil, status.Errorf(codes.Unimplemented, "method Label not implemented")
2894}
2895func (*UnimplementedQuerierServer) Tail(req *TailRequest, srv Querier_TailServer) error {
2896	return status.Errorf(codes.Unimplemented, "method Tail not implemented")
2897}
2898func (*UnimplementedQuerierServer) Series(ctx context.Context, req *SeriesRequest) (*SeriesResponse, error) {
2899	return nil, status.Errorf(codes.Unimplemented, "method Series not implemented")
2900}
2901func (*UnimplementedQuerierServer) TailersCount(ctx context.Context, req *TailersCountRequest) (*TailersCountResponse, error) {
2902	return nil, status.Errorf(codes.Unimplemented, "method TailersCount not implemented")
2903}
2904func (*UnimplementedQuerierServer) GetChunkIDs(ctx context.Context, req *GetChunkIDsRequest) (*GetChunkIDsResponse, error) {
2905	return nil, status.Errorf(codes.Unimplemented, "method GetChunkIDs not implemented")
2906}
2907
2908func RegisterQuerierServer(s *grpc.Server, srv QuerierServer) {
2909	s.RegisterService(&_Querier_serviceDesc, srv)
2910}
2911
2912func _Querier_Query_Handler(srv interface{}, stream grpc.ServerStream) error {
2913	m := new(QueryRequest)
2914	if err := stream.RecvMsg(m); err != nil {
2915		return err
2916	}
2917	return srv.(QuerierServer).Query(m, &querierQueryServer{stream})
2918}
2919
2920type Querier_QueryServer interface {
2921	Send(*QueryResponse) error
2922	grpc.ServerStream
2923}
2924
2925type querierQueryServer struct {
2926	grpc.ServerStream
2927}
2928
2929func (x *querierQueryServer) Send(m *QueryResponse) error {
2930	return x.ServerStream.SendMsg(m)
2931}
2932
2933func _Querier_QuerySample_Handler(srv interface{}, stream grpc.ServerStream) error {
2934	m := new(SampleQueryRequest)
2935	if err := stream.RecvMsg(m); err != nil {
2936		return err
2937	}
2938	return srv.(QuerierServer).QuerySample(m, &querierQuerySampleServer{stream})
2939}
2940
2941type Querier_QuerySampleServer interface {
2942	Send(*SampleQueryResponse) error
2943	grpc.ServerStream
2944}
2945
2946type querierQuerySampleServer struct {
2947	grpc.ServerStream
2948}
2949
2950func (x *querierQuerySampleServer) Send(m *SampleQueryResponse) error {
2951	return x.ServerStream.SendMsg(m)
2952}
2953
2954func _Querier_Label_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
2955	in := new(LabelRequest)
2956	if err := dec(in); err != nil {
2957		return nil, err
2958	}
2959	if interceptor == nil {
2960		return srv.(QuerierServer).Label(ctx, in)
2961	}
2962	info := &grpc.UnaryServerInfo{
2963		Server:     srv,
2964		FullMethod: "/logproto.Querier/Label",
2965	}
2966	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
2967		return srv.(QuerierServer).Label(ctx, req.(*LabelRequest))
2968	}
2969	return interceptor(ctx, in, info, handler)
2970}
2971
2972func _Querier_Tail_Handler(srv interface{}, stream grpc.ServerStream) error {
2973	m := new(TailRequest)
2974	if err := stream.RecvMsg(m); err != nil {
2975		return err
2976	}
2977	return srv.(QuerierServer).Tail(m, &querierTailServer{stream})
2978}
2979
2980type Querier_TailServer interface {
2981	Send(*TailResponse) error
2982	grpc.ServerStream
2983}
2984
2985type querierTailServer struct {
2986	grpc.ServerStream
2987}
2988
2989func (x *querierTailServer) Send(m *TailResponse) error {
2990	return x.ServerStream.SendMsg(m)
2991}
2992
2993func _Querier_Series_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
2994	in := new(SeriesRequest)
2995	if err := dec(in); err != nil {
2996		return nil, err
2997	}
2998	if interceptor == nil {
2999		return srv.(QuerierServer).Series(ctx, in)
3000	}
3001	info := &grpc.UnaryServerInfo{
3002		Server:     srv,
3003		FullMethod: "/logproto.Querier/Series",
3004	}
3005	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
3006		return srv.(QuerierServer).Series(ctx, req.(*SeriesRequest))
3007	}
3008	return interceptor(ctx, in, info, handler)
3009}
3010
3011func _Querier_TailersCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
3012	in := new(TailersCountRequest)
3013	if err := dec(in); err != nil {
3014		return nil, err
3015	}
3016	if interceptor == nil {
3017		return srv.(QuerierServer).TailersCount(ctx, in)
3018	}
3019	info := &grpc.UnaryServerInfo{
3020		Server:     srv,
3021		FullMethod: "/logproto.Querier/TailersCount",
3022	}
3023	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
3024		return srv.(QuerierServer).TailersCount(ctx, req.(*TailersCountRequest))
3025	}
3026	return interceptor(ctx, in, info, handler)
3027}
3028
3029func _Querier_GetChunkIDs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
3030	in := new(GetChunkIDsRequest)
3031	if err := dec(in); err != nil {
3032		return nil, err
3033	}
3034	if interceptor == nil {
3035		return srv.(QuerierServer).GetChunkIDs(ctx, in)
3036	}
3037	info := &grpc.UnaryServerInfo{
3038		Server:     srv,
3039		FullMethod: "/logproto.Querier/GetChunkIDs",
3040	}
3041	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
3042		return srv.(QuerierServer).GetChunkIDs(ctx, req.(*GetChunkIDsRequest))
3043	}
3044	return interceptor(ctx, in, info, handler)
3045}
3046
3047var _Querier_serviceDesc = grpc.ServiceDesc{
3048	ServiceName: "logproto.Querier",
3049	HandlerType: (*QuerierServer)(nil),
3050	Methods: []grpc.MethodDesc{
3051		{
3052			MethodName: "Label",
3053			Handler:    _Querier_Label_Handler,
3054		},
3055		{
3056			MethodName: "Series",
3057			Handler:    _Querier_Series_Handler,
3058		},
3059		{
3060			MethodName: "TailersCount",
3061			Handler:    _Querier_TailersCount_Handler,
3062		},
3063		{
3064			MethodName: "GetChunkIDs",
3065			Handler:    _Querier_GetChunkIDs_Handler,
3066		},
3067	},
3068	Streams: []grpc.StreamDesc{
3069		{
3070			StreamName:    "Query",
3071			Handler:       _Querier_Query_Handler,
3072			ServerStreams: true,
3073		},
3074		{
3075			StreamName:    "QuerySample",
3076			Handler:       _Querier_QuerySample_Handler,
3077			ServerStreams: true,
3078		},
3079		{
3080			StreamName:    "Tail",
3081			Handler:       _Querier_Tail_Handler,
3082			ServerStreams: true,
3083		},
3084	},
3085	Metadata: "pkg/logproto/logproto.proto",
3086}
3087
3088// IngesterClient is the client API for Ingester service.
3089//
3090// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
3091type IngesterClient interface {
3092	TransferChunks(ctx context.Context, opts ...grpc.CallOption) (Ingester_TransferChunksClient, error)
3093}
3094
3095type ingesterClient struct {
3096	cc *grpc.ClientConn
3097}
3098
3099func NewIngesterClient(cc *grpc.ClientConn) IngesterClient {
3100	return &ingesterClient{cc}
3101}
3102
3103func (c *ingesterClient) TransferChunks(ctx context.Context, opts ...grpc.CallOption) (Ingester_TransferChunksClient, error) {
3104	stream, err := c.cc.NewStream(ctx, &_Ingester_serviceDesc.Streams[0], "/logproto.Ingester/TransferChunks", opts...)
3105	if err != nil {
3106		return nil, err
3107	}
3108	x := &ingesterTransferChunksClient{stream}
3109	return x, nil
3110}
3111
3112type Ingester_TransferChunksClient interface {
3113	Send(*TimeSeriesChunk) error
3114	CloseAndRecv() (*TransferChunksResponse, error)
3115	grpc.ClientStream
3116}
3117
3118type ingesterTransferChunksClient struct {
3119	grpc.ClientStream
3120}
3121
3122func (x *ingesterTransferChunksClient) Send(m *TimeSeriesChunk) error {
3123	return x.ClientStream.SendMsg(m)
3124}
3125
3126func (x *ingesterTransferChunksClient) CloseAndRecv() (*TransferChunksResponse, error) {
3127	if err := x.ClientStream.CloseSend(); err != nil {
3128		return nil, err
3129	}
3130	m := new(TransferChunksResponse)
3131	if err := x.ClientStream.RecvMsg(m); err != nil {
3132		return nil, err
3133	}
3134	return m, nil
3135}
3136
3137// IngesterServer is the server API for Ingester service.
3138type IngesterServer interface {
3139	TransferChunks(Ingester_TransferChunksServer) error
3140}
3141
3142// UnimplementedIngesterServer can be embedded to have forward compatible implementations.
3143type UnimplementedIngesterServer struct {
3144}
3145
3146func (*UnimplementedIngesterServer) TransferChunks(srv Ingester_TransferChunksServer) error {
3147	return status.Errorf(codes.Unimplemented, "method TransferChunks not implemented")
3148}
3149
3150func RegisterIngesterServer(s *grpc.Server, srv IngesterServer) {
3151	s.RegisterService(&_Ingester_serviceDesc, srv)
3152}
3153
3154func _Ingester_TransferChunks_Handler(srv interface{}, stream grpc.ServerStream) error {
3155	return srv.(IngesterServer).TransferChunks(&ingesterTransferChunksServer{stream})
3156}
3157
3158type Ingester_TransferChunksServer interface {
3159	SendAndClose(*TransferChunksResponse) error
3160	Recv() (*TimeSeriesChunk, error)
3161	grpc.ServerStream
3162}
3163
3164type ingesterTransferChunksServer struct {
3165	grpc.ServerStream
3166}
3167
3168func (x *ingesterTransferChunksServer) SendAndClose(m *TransferChunksResponse) error {
3169	return x.ServerStream.SendMsg(m)
3170}
3171
3172func (x *ingesterTransferChunksServer) Recv() (*TimeSeriesChunk, error) {
3173	m := new(TimeSeriesChunk)
3174	if err := x.ServerStream.RecvMsg(m); err != nil {
3175		return nil, err
3176	}
3177	return m, nil
3178}
3179
3180var _Ingester_serviceDesc = grpc.ServiceDesc{
3181	ServiceName: "logproto.Ingester",
3182	HandlerType: (*IngesterServer)(nil),
3183	Methods:     []grpc.MethodDesc{},
3184	Streams: []grpc.StreamDesc{
3185		{
3186			StreamName:    "TransferChunks",
3187			Handler:       _Ingester_TransferChunks_Handler,
3188			ClientStreams: true,
3189		},
3190	},
3191	Metadata: "pkg/logproto/logproto.proto",
3192}
3193
3194func (m *PushRequest) Marshal() (dAtA []byte, err error) {
3195	size := m.Size()
3196	dAtA = make([]byte, size)
3197	n, err := m.MarshalToSizedBuffer(dAtA[:size])
3198	if err != nil {
3199		return nil, err
3200	}
3201	return dAtA[:n], nil
3202}
3203
3204func (m *PushRequest) MarshalTo(dAtA []byte) (int, error) {
3205	size := m.Size()
3206	return m.MarshalToSizedBuffer(dAtA[:size])
3207}
3208
3209func (m *PushRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
3210	i := len(dAtA)
3211	_ = i
3212	var l int
3213	_ = l
3214	if len(m.Streams) > 0 {
3215		for iNdEx := len(m.Streams) - 1; iNdEx >= 0; iNdEx-- {
3216			{
3217				size := m.Streams[iNdEx].Size()
3218				i -= size
3219				if _, err := m.Streams[iNdEx].MarshalTo(dAtA[i:]); err != nil {
3220					return 0, err
3221				}
3222				i = encodeVarintLogproto(dAtA, i, uint64(size))
3223			}
3224			i--
3225			dAtA[i] = 0xa
3226		}
3227	}
3228	return len(dAtA) - i, nil
3229}
3230
3231func (m *PushResponse) Marshal() (dAtA []byte, err error) {
3232	size := m.Size()
3233	dAtA = make([]byte, size)
3234	n, err := m.MarshalToSizedBuffer(dAtA[:size])
3235	if err != nil {
3236		return nil, err
3237	}
3238	return dAtA[:n], nil
3239}
3240
3241func (m *PushResponse) MarshalTo(dAtA []byte) (int, error) {
3242	size := m.Size()
3243	return m.MarshalToSizedBuffer(dAtA[:size])
3244}
3245
3246func (m *PushResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
3247	i := len(dAtA)
3248	_ = i
3249	var l int
3250	_ = l
3251	return len(dAtA) - i, nil
3252}
3253
3254func (m *QueryRequest) Marshal() (dAtA []byte, err error) {
3255	size := m.Size()
3256	dAtA = make([]byte, size)
3257	n, err := m.MarshalToSizedBuffer(dAtA[:size])
3258	if err != nil {
3259		return nil, err
3260	}
3261	return dAtA[:n], nil
3262}
3263
3264func (m *QueryRequest) MarshalTo(dAtA []byte) (int, error) {
3265	size := m.Size()
3266	return m.MarshalToSizedBuffer(dAtA[:size])
3267}
3268
3269func (m *QueryRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
3270	i := len(dAtA)
3271	_ = i
3272	var l int
3273	_ = l
3274	if len(m.Shards) > 0 {
3275		for iNdEx := len(m.Shards) - 1; iNdEx >= 0; iNdEx-- {
3276			i -= len(m.Shards[iNdEx])
3277			copy(dAtA[i:], m.Shards[iNdEx])
3278			i = encodeVarintLogproto(dAtA, i, uint64(len(m.Shards[iNdEx])))
3279			i--
3280			dAtA[i] = 0x3a
3281		}
3282	}
3283	if m.Direction != 0 {
3284		i = encodeVarintLogproto(dAtA, i, uint64(m.Direction))
3285		i--
3286		dAtA[i] = 0x28
3287	}
3288	n1, err1 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.End, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.End):])
3289	if err1 != nil {
3290		return 0, err1
3291	}
3292	i -= n1
3293	i = encodeVarintLogproto(dAtA, i, uint64(n1))
3294	i--
3295	dAtA[i] = 0x22
3296	n2, err2 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Start, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.Start):])
3297	if err2 != nil {
3298		return 0, err2
3299	}
3300	i -= n2
3301	i = encodeVarintLogproto(dAtA, i, uint64(n2))
3302	i--
3303	dAtA[i] = 0x1a
3304	if m.Limit != 0 {
3305		i = encodeVarintLogproto(dAtA, i, uint64(m.Limit))
3306		i--
3307		dAtA[i] = 0x10
3308	}
3309	if len(m.Selector) > 0 {
3310		i -= len(m.Selector)
3311		copy(dAtA[i:], m.Selector)
3312		i = encodeVarintLogproto(dAtA, i, uint64(len(m.Selector)))
3313		i--
3314		dAtA[i] = 0xa
3315	}
3316	return len(dAtA) - i, nil
3317}
3318
3319func (m *SampleQueryRequest) Marshal() (dAtA []byte, err error) {
3320	size := m.Size()
3321	dAtA = make([]byte, size)
3322	n, err := m.MarshalToSizedBuffer(dAtA[:size])
3323	if err != nil {
3324		return nil, err
3325	}
3326	return dAtA[:n], nil
3327}
3328
3329func (m *SampleQueryRequest) MarshalTo(dAtA []byte) (int, error) {
3330	size := m.Size()
3331	return m.MarshalToSizedBuffer(dAtA[:size])
3332}
3333
3334func (m *SampleQueryRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
3335	i := len(dAtA)
3336	_ = i
3337	var l int
3338	_ = l
3339	if len(m.Shards) > 0 {
3340		for iNdEx := len(m.Shards) - 1; iNdEx >= 0; iNdEx-- {
3341			i -= len(m.Shards[iNdEx])
3342			copy(dAtA[i:], m.Shards[iNdEx])
3343			i = encodeVarintLogproto(dAtA, i, uint64(len(m.Shards[iNdEx])))
3344			i--
3345			dAtA[i] = 0x22
3346		}
3347	}
3348	n3, err3 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.End, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.End):])
3349	if err3 != nil {
3350		return 0, err3
3351	}
3352	i -= n3
3353	i = encodeVarintLogproto(dAtA, i, uint64(n3))
3354	i--
3355	dAtA[i] = 0x1a
3356	n4, err4 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Start, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.Start):])
3357	if err4 != nil {
3358		return 0, err4
3359	}
3360	i -= n4
3361	i = encodeVarintLogproto(dAtA, i, uint64(n4))
3362	i--
3363	dAtA[i] = 0x12
3364	if len(m.Selector) > 0 {
3365		i -= len(m.Selector)
3366		copy(dAtA[i:], m.Selector)
3367		i = encodeVarintLogproto(dAtA, i, uint64(len(m.Selector)))
3368		i--
3369		dAtA[i] = 0xa
3370	}
3371	return len(dAtA) - i, nil
3372}
3373
3374func (m *SampleQueryResponse) Marshal() (dAtA []byte, err error) {
3375	size := m.Size()
3376	dAtA = make([]byte, size)
3377	n, err := m.MarshalToSizedBuffer(dAtA[:size])
3378	if err != nil {
3379		return nil, err
3380	}
3381	return dAtA[:n], nil
3382}
3383
3384func (m *SampleQueryResponse) MarshalTo(dAtA []byte) (int, error) {
3385	size := m.Size()
3386	return m.MarshalToSizedBuffer(dAtA[:size])
3387}
3388
3389func (m *SampleQueryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
3390	i := len(dAtA)
3391	_ = i
3392	var l int
3393	_ = l
3394	if len(m.Series) > 0 {
3395		for iNdEx := len(m.Series) - 1; iNdEx >= 0; iNdEx-- {
3396			{
3397				size := m.Series[iNdEx].Size()
3398				i -= size
3399				if _, err := m.Series[iNdEx].MarshalTo(dAtA[i:]); err != nil {
3400					return 0, err
3401				}
3402				i = encodeVarintLogproto(dAtA, i, uint64(size))
3403			}
3404			i--
3405			dAtA[i] = 0xa
3406		}
3407	}
3408	return len(dAtA) - i, nil
3409}
3410
3411func (m *QueryResponse) Marshal() (dAtA []byte, err error) {
3412	size := m.Size()
3413	dAtA = make([]byte, size)
3414	n, err := m.MarshalToSizedBuffer(dAtA[:size])
3415	if err != nil {
3416		return nil, err
3417	}
3418	return dAtA[:n], nil
3419}
3420
3421func (m *QueryResponse) MarshalTo(dAtA []byte) (int, error) {
3422	size := m.Size()
3423	return m.MarshalToSizedBuffer(dAtA[:size])
3424}
3425
3426func (m *QueryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
3427	i := len(dAtA)
3428	_ = i
3429	var l int
3430	_ = l
3431	if len(m.Streams) > 0 {
3432		for iNdEx := len(m.Streams) - 1; iNdEx >= 0; iNdEx-- {
3433			{
3434				size := m.Streams[iNdEx].Size()
3435				i -= size
3436				if _, err := m.Streams[iNdEx].MarshalTo(dAtA[i:]); err != nil {
3437					return 0, err
3438				}
3439				i = encodeVarintLogproto(dAtA, i, uint64(size))
3440			}
3441			i--
3442			dAtA[i] = 0xa
3443		}
3444	}
3445	return len(dAtA) - i, nil
3446}
3447
3448func (m *LabelRequest) Marshal() (dAtA []byte, err error) {
3449	size := m.Size()
3450	dAtA = make([]byte, size)
3451	n, err := m.MarshalToSizedBuffer(dAtA[:size])
3452	if err != nil {
3453		return nil, err
3454	}
3455	return dAtA[:n], nil
3456}
3457
3458func (m *LabelRequest) MarshalTo(dAtA []byte) (int, error) {
3459	size := m.Size()
3460	return m.MarshalToSizedBuffer(dAtA[:size])
3461}
3462
3463func (m *LabelRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
3464	i := len(dAtA)
3465	_ = i
3466	var l int
3467	_ = l
3468	if m.End != nil {
3469		n5, err5 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.End, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.End):])
3470		if err5 != nil {
3471			return 0, err5
3472		}
3473		i -= n5
3474		i = encodeVarintLogproto(dAtA, i, uint64(n5))
3475		i--
3476		dAtA[i] = 0x22
3477	}
3478	if m.Start != nil {
3479		n6, err6 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.Start, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.Start):])
3480		if err6 != nil {
3481			return 0, err6
3482		}
3483		i -= n6
3484		i = encodeVarintLogproto(dAtA, i, uint64(n6))
3485		i--
3486		dAtA[i] = 0x1a
3487	}
3488	if m.Values {
3489		i--
3490		if m.Values {
3491			dAtA[i] = 1
3492		} else {
3493			dAtA[i] = 0
3494		}
3495		i--
3496		dAtA[i] = 0x10
3497	}
3498	if len(m.Name) > 0 {
3499		i -= len(m.Name)
3500		copy(dAtA[i:], m.Name)
3501		i = encodeVarintLogproto(dAtA, i, uint64(len(m.Name)))
3502		i--
3503		dAtA[i] = 0xa
3504	}
3505	return len(dAtA) - i, nil
3506}
3507
3508func (m *LabelResponse) Marshal() (dAtA []byte, err error) {
3509	size := m.Size()
3510	dAtA = make([]byte, size)
3511	n, err := m.MarshalToSizedBuffer(dAtA[:size])
3512	if err != nil {
3513		return nil, err
3514	}
3515	return dAtA[:n], nil
3516}
3517
3518func (m *LabelResponse) MarshalTo(dAtA []byte) (int, error) {
3519	size := m.Size()
3520	return m.MarshalToSizedBuffer(dAtA[:size])
3521}
3522
3523func (m *LabelResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
3524	i := len(dAtA)
3525	_ = i
3526	var l int
3527	_ = l
3528	if len(m.Values) > 0 {
3529		for iNdEx := len(m.Values) - 1; iNdEx >= 0; iNdEx-- {
3530			i -= len(m.Values[iNdEx])
3531			copy(dAtA[i:], m.Values[iNdEx])
3532			i = encodeVarintLogproto(dAtA, i, uint64(len(m.Values[iNdEx])))
3533			i--
3534			dAtA[i] = 0xa
3535		}
3536	}
3537	return len(dAtA) - i, nil
3538}
3539
3540func (m *StreamAdapter) Marshal() (dAtA []byte, err error) {
3541	size := m.Size()
3542	dAtA = make([]byte, size)
3543	n, err := m.MarshalToSizedBuffer(dAtA[:size])
3544	if err != nil {
3545		return nil, err
3546	}
3547	return dAtA[:n], nil
3548}
3549
3550func (m *StreamAdapter) MarshalTo(dAtA []byte) (int, error) {
3551	size := m.Size()
3552	return m.MarshalToSizedBuffer(dAtA[:size])
3553}
3554
3555func (m *StreamAdapter) MarshalToSizedBuffer(dAtA []byte) (int, error) {
3556	i := len(dAtA)
3557	_ = i
3558	var l int
3559	_ = l
3560	if len(m.Entries) > 0 {
3561		for iNdEx := len(m.Entries) - 1; iNdEx >= 0; iNdEx-- {
3562			{
3563				size, err := m.Entries[iNdEx].MarshalToSizedBuffer(dAtA[:i])
3564				if err != nil {
3565					return 0, err
3566				}
3567				i -= size
3568				i = encodeVarintLogproto(dAtA, i, uint64(size))
3569			}
3570			i--
3571			dAtA[i] = 0x12
3572		}
3573	}
3574	if len(m.Labels) > 0 {
3575		i -= len(m.Labels)
3576		copy(dAtA[i:], m.Labels)
3577		i = encodeVarintLogproto(dAtA, i, uint64(len(m.Labels)))
3578		i--
3579		dAtA[i] = 0xa
3580	}
3581	return len(dAtA) - i, nil
3582}
3583
3584func (m *EntryAdapter) Marshal() (dAtA []byte, err error) {
3585	size := m.Size()
3586	dAtA = make([]byte, size)
3587	n, err := m.MarshalToSizedBuffer(dAtA[:size])
3588	if err != nil {
3589		return nil, err
3590	}
3591	return dAtA[:n], nil
3592}
3593
3594func (m *EntryAdapter) MarshalTo(dAtA []byte) (int, error) {
3595	size := m.Size()
3596	return m.MarshalToSizedBuffer(dAtA[:size])
3597}
3598
3599func (m *EntryAdapter) MarshalToSizedBuffer(dAtA []byte) (int, error) {
3600	i := len(dAtA)
3601	_ = i
3602	var l int
3603	_ = l
3604	if len(m.Line) > 0 {
3605		i -= len(m.Line)
3606		copy(dAtA[i:], m.Line)
3607		i = encodeVarintLogproto(dAtA, i, uint64(len(m.Line)))
3608		i--
3609		dAtA[i] = 0x12
3610	}
3611	n7, err7 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Timestamp, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.Timestamp):])
3612	if err7 != nil {
3613		return 0, err7
3614	}
3615	i -= n7
3616	i = encodeVarintLogproto(dAtA, i, uint64(n7))
3617	i--
3618	dAtA[i] = 0xa
3619	return len(dAtA) - i, nil
3620}
3621
3622func (m *Sample) Marshal() (dAtA []byte, err error) {
3623	size := m.Size()
3624	dAtA = make([]byte, size)
3625	n, err := m.MarshalToSizedBuffer(dAtA[:size])
3626	if err != nil {
3627		return nil, err
3628	}
3629	return dAtA[:n], nil
3630}
3631
3632func (m *Sample) MarshalTo(dAtA []byte) (int, error) {
3633	size := m.Size()
3634	return m.MarshalToSizedBuffer(dAtA[:size])
3635}
3636
3637func (m *Sample) MarshalToSizedBuffer(dAtA []byte) (int, error) {
3638	i := len(dAtA)
3639	_ = i
3640	var l int
3641	_ = l
3642	if m.Hash != 0 {
3643		i = encodeVarintLogproto(dAtA, i, uint64(m.Hash))
3644		i--
3645		dAtA[i] = 0x18
3646	}
3647	if m.Value != 0 {
3648		i -= 8
3649		encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Value))))
3650		i--
3651		dAtA[i] = 0x11
3652	}
3653	if m.Timestamp != 0 {
3654		i = encodeVarintLogproto(dAtA, i, uint64(m.Timestamp))
3655		i--
3656		dAtA[i] = 0x8
3657	}
3658	return len(dAtA) - i, nil
3659}
3660
3661func (m *Series) Marshal() (dAtA []byte, err error) {
3662	size := m.Size()
3663	dAtA = make([]byte, size)
3664	n, err := m.MarshalToSizedBuffer(dAtA[:size])
3665	if err != nil {
3666		return nil, err
3667	}
3668	return dAtA[:n], nil
3669}
3670
3671func (m *Series) MarshalTo(dAtA []byte) (int, error) {
3672	size := m.Size()
3673	return m.MarshalToSizedBuffer(dAtA[:size])
3674}
3675
3676func (m *Series) MarshalToSizedBuffer(dAtA []byte) (int, error) {
3677	i := len(dAtA)
3678	_ = i
3679	var l int
3680	_ = l
3681	if len(m.Samples) > 0 {
3682		for iNdEx := len(m.Samples) - 1; iNdEx >= 0; iNdEx-- {
3683			{
3684				size, err := m.Samples[iNdEx].MarshalToSizedBuffer(dAtA[:i])
3685				if err != nil {
3686					return 0, err
3687				}
3688				i -= size
3689				i = encodeVarintLogproto(dAtA, i, uint64(size))
3690			}
3691			i--
3692			dAtA[i] = 0x12
3693		}
3694	}
3695	if len(m.Labels) > 0 {
3696		i -= len(m.Labels)
3697		copy(dAtA[i:], m.Labels)
3698		i = encodeVarintLogproto(dAtA, i, uint64(len(m.Labels)))
3699		i--
3700		dAtA[i] = 0xa
3701	}
3702	return len(dAtA) - i, nil
3703}
3704
3705func (m *TailRequest) Marshal() (dAtA []byte, err error) {
3706	size := m.Size()
3707	dAtA = make([]byte, size)
3708	n, err := m.MarshalToSizedBuffer(dAtA[:size])
3709	if err != nil {
3710		return nil, err
3711	}
3712	return dAtA[:n], nil
3713}
3714
3715func (m *TailRequest) MarshalTo(dAtA []byte) (int, error) {
3716	size := m.Size()
3717	return m.MarshalToSizedBuffer(dAtA[:size])
3718}
3719
3720func (m *TailRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
3721	i := len(dAtA)
3722	_ = i
3723	var l int
3724	_ = l
3725	n8, err8 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Start, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.Start):])
3726	if err8 != nil {
3727		return 0, err8
3728	}
3729	i -= n8
3730	i = encodeVarintLogproto(dAtA, i, uint64(n8))
3731	i--
3732	dAtA[i] = 0x2a
3733	if m.Limit != 0 {
3734		i = encodeVarintLogproto(dAtA, i, uint64(m.Limit))
3735		i--
3736		dAtA[i] = 0x20
3737	}
3738	if m.DelayFor != 0 {
3739		i = encodeVarintLogproto(dAtA, i, uint64(m.DelayFor))
3740		i--
3741		dAtA[i] = 0x18
3742	}
3743	if len(m.Query) > 0 {
3744		i -= len(m.Query)
3745		copy(dAtA[i:], m.Query)
3746		i = encodeVarintLogproto(dAtA, i, uint64(len(m.Query)))
3747		i--
3748		dAtA[i] = 0xa
3749	}
3750	return len(dAtA) - i, nil
3751}
3752
3753func (m *TailResponse) Marshal() (dAtA []byte, err error) {
3754	size := m.Size()
3755	dAtA = make([]byte, size)
3756	n, err := m.MarshalToSizedBuffer(dAtA[:size])
3757	if err != nil {
3758		return nil, err
3759	}
3760	return dAtA[:n], nil
3761}
3762
3763func (m *TailResponse) MarshalTo(dAtA []byte) (int, error) {
3764	size := m.Size()
3765	return m.MarshalToSizedBuffer(dAtA[:size])
3766}
3767
3768func (m *TailResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
3769	i := len(dAtA)
3770	_ = i
3771	var l int
3772	_ = l
3773	if len(m.DroppedStreams) > 0 {
3774		for iNdEx := len(m.DroppedStreams) - 1; iNdEx >= 0; iNdEx-- {
3775			{
3776				size, err := m.DroppedStreams[iNdEx].MarshalToSizedBuffer(dAtA[:i])
3777				if err != nil {
3778					return 0, err
3779				}
3780				i -= size
3781				i = encodeVarintLogproto(dAtA, i, uint64(size))
3782			}
3783			i--
3784			dAtA[i] = 0x12
3785		}
3786	}
3787	if m.Stream != nil {
3788		{
3789			size := m.Stream.Size()
3790			i -= size
3791			if _, err := m.Stream.MarshalTo(dAtA[i:]); err != nil {
3792				return 0, err
3793			}
3794			i = encodeVarintLogproto(dAtA, i, uint64(size))
3795		}
3796		i--
3797		dAtA[i] = 0xa
3798	}
3799	return len(dAtA) - i, nil
3800}
3801
3802func (m *SeriesRequest) Marshal() (dAtA []byte, err error) {
3803	size := m.Size()
3804	dAtA = make([]byte, size)
3805	n, err := m.MarshalToSizedBuffer(dAtA[:size])
3806	if err != nil {
3807		return nil, err
3808	}
3809	return dAtA[:n], nil
3810}
3811
3812func (m *SeriesRequest) MarshalTo(dAtA []byte) (int, error) {
3813	size := m.Size()
3814	return m.MarshalToSizedBuffer(dAtA[:size])
3815}
3816
3817func (m *SeriesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
3818	i := len(dAtA)
3819	_ = i
3820	var l int
3821	_ = l
3822	if len(m.Shards) > 0 {
3823		for iNdEx := len(m.Shards) - 1; iNdEx >= 0; iNdEx-- {
3824			i -= len(m.Shards[iNdEx])
3825			copy(dAtA[i:], m.Shards[iNdEx])
3826			i = encodeVarintLogproto(dAtA, i, uint64(len(m.Shards[iNdEx])))
3827			i--
3828			dAtA[i] = 0x22
3829		}
3830	}
3831	if len(m.Groups) > 0 {
3832		for iNdEx := len(m.Groups) - 1; iNdEx >= 0; iNdEx-- {
3833			i -= len(m.Groups[iNdEx])
3834			copy(dAtA[i:], m.Groups[iNdEx])
3835			i = encodeVarintLogproto(dAtA, i, uint64(len(m.Groups[iNdEx])))
3836			i--
3837			dAtA[i] = 0x1a
3838		}
3839	}
3840	n10, err10 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.End, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.End):])
3841	if err10 != nil {
3842		return 0, err10
3843	}
3844	i -= n10
3845	i = encodeVarintLogproto(dAtA, i, uint64(n10))
3846	i--
3847	dAtA[i] = 0x12
3848	n11, err11 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Start, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.Start):])
3849	if err11 != nil {
3850		return 0, err11
3851	}
3852	i -= n11
3853	i = encodeVarintLogproto(dAtA, i, uint64(n11))
3854	i--
3855	dAtA[i] = 0xa
3856	return len(dAtA) - i, nil
3857}
3858
3859func (m *SeriesResponse) Marshal() (dAtA []byte, err error) {
3860	size := m.Size()
3861	dAtA = make([]byte, size)
3862	n, err := m.MarshalToSizedBuffer(dAtA[:size])
3863	if err != nil {
3864		return nil, err
3865	}
3866	return dAtA[:n], nil
3867}
3868
3869func (m *SeriesResponse) MarshalTo(dAtA []byte) (int, error) {
3870	size := m.Size()
3871	return m.MarshalToSizedBuffer(dAtA[:size])
3872}
3873
3874func (m *SeriesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
3875	i := len(dAtA)
3876	_ = i
3877	var l int
3878	_ = l
3879	if len(m.Series) > 0 {
3880		for iNdEx := len(m.Series) - 1; iNdEx >= 0; iNdEx-- {
3881			{
3882				size, err := m.Series[iNdEx].MarshalToSizedBuffer(dAtA[:i])
3883				if err != nil {
3884					return 0, err
3885				}
3886				i -= size
3887				i = encodeVarintLogproto(dAtA, i, uint64(size))
3888			}
3889			i--
3890			dAtA[i] = 0xa
3891		}
3892	}
3893	return len(dAtA) - i, nil
3894}
3895
3896func (m *SeriesIdentifier) Marshal() (dAtA []byte, err error) {
3897	size := m.Size()
3898	dAtA = make([]byte, size)
3899	n, err := m.MarshalToSizedBuffer(dAtA[:size])
3900	if err != nil {
3901		return nil, err
3902	}
3903	return dAtA[:n], nil
3904}
3905
3906func (m *SeriesIdentifier) MarshalTo(dAtA []byte) (int, error) {
3907	size := m.Size()
3908	return m.MarshalToSizedBuffer(dAtA[:size])
3909}
3910
3911func (m *SeriesIdentifier) MarshalToSizedBuffer(dAtA []byte) (int, error) {
3912	i := len(dAtA)
3913	_ = i
3914	var l int
3915	_ = l
3916	if len(m.Labels) > 0 {
3917		for k := range m.Labels {
3918			v := m.Labels[k]
3919			baseI := i
3920			i -= len(v)
3921			copy(dAtA[i:], v)
3922			i = encodeVarintLogproto(dAtA, i, uint64(len(v)))
3923			i--
3924			dAtA[i] = 0x12
3925			i -= len(k)
3926			copy(dAtA[i:], k)
3927			i = encodeVarintLogproto(dAtA, i, uint64(len(k)))
3928			i--
3929			dAtA[i] = 0xa
3930			i = encodeVarintLogproto(dAtA, i, uint64(baseI-i))
3931			i--
3932			dAtA[i] = 0xa
3933		}
3934	}
3935	return len(dAtA) - i, nil
3936}
3937
3938func (m *DroppedStream) Marshal() (dAtA []byte, err error) {
3939	size := m.Size()
3940	dAtA = make([]byte, size)
3941	n, err := m.MarshalToSizedBuffer(dAtA[:size])
3942	if err != nil {
3943		return nil, err
3944	}
3945	return dAtA[:n], nil
3946}
3947
3948func (m *DroppedStream) MarshalTo(dAtA []byte) (int, error) {
3949	size := m.Size()
3950	return m.MarshalToSizedBuffer(dAtA[:size])
3951}
3952
3953func (m *DroppedStream) MarshalToSizedBuffer(dAtA []byte) (int, error) {
3954	i := len(dAtA)
3955	_ = i
3956	var l int
3957	_ = l
3958	if len(m.Labels) > 0 {
3959		i -= len(m.Labels)
3960		copy(dAtA[i:], m.Labels)
3961		i = encodeVarintLogproto(dAtA, i, uint64(len(m.Labels)))
3962		i--
3963		dAtA[i] = 0x1a
3964	}
3965	n12, err12 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.To, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.To):])
3966	if err12 != nil {
3967		return 0, err12
3968	}
3969	i -= n12
3970	i = encodeVarintLogproto(dAtA, i, uint64(n12))
3971	i--
3972	dAtA[i] = 0x12
3973	n13, err13 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.From, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.From):])
3974	if err13 != nil {
3975		return 0, err13
3976	}
3977	i -= n13
3978	i = encodeVarintLogproto(dAtA, i, uint64(n13))
3979	i--
3980	dAtA[i] = 0xa
3981	return len(dAtA) - i, nil
3982}
3983
3984func (m *TimeSeriesChunk) Marshal() (dAtA []byte, err error) {
3985	size := m.Size()
3986	dAtA = make([]byte, size)
3987	n, err := m.MarshalToSizedBuffer(dAtA[:size])
3988	if err != nil {
3989		return nil, err
3990	}
3991	return dAtA[:n], nil
3992}
3993
3994func (m *TimeSeriesChunk) MarshalTo(dAtA []byte) (int, error) {
3995	size := m.Size()
3996	return m.MarshalToSizedBuffer(dAtA[:size])
3997}
3998
3999func (m *TimeSeriesChunk) MarshalToSizedBuffer(dAtA []byte) (int, error) {
4000	i := len(dAtA)
4001	_ = i
4002	var l int
4003	_ = l
4004	if len(m.Chunks) > 0 {
4005		for iNdEx := len(m.Chunks) - 1; iNdEx >= 0; iNdEx-- {
4006			{
4007				size, err := m.Chunks[iNdEx].MarshalToSizedBuffer(dAtA[:i])
4008				if err != nil {
4009					return 0, err
4010				}
4011				i -= size
4012				i = encodeVarintLogproto(dAtA, i, uint64(size))
4013			}
4014			i--
4015			dAtA[i] = 0x22
4016		}
4017	}
4018	if len(m.Labels) > 0 {
4019		for iNdEx := len(m.Labels) - 1; iNdEx >= 0; iNdEx-- {
4020			{
4021				size, err := m.Labels[iNdEx].MarshalToSizedBuffer(dAtA[:i])
4022				if err != nil {
4023					return 0, err
4024				}
4025				i -= size
4026				i = encodeVarintLogproto(dAtA, i, uint64(size))
4027			}
4028			i--
4029			dAtA[i] = 0x1a
4030		}
4031	}
4032	if len(m.UserId) > 0 {
4033		i -= len(m.UserId)
4034		copy(dAtA[i:], m.UserId)
4035		i = encodeVarintLogproto(dAtA, i, uint64(len(m.UserId)))
4036		i--
4037		dAtA[i] = 0x12
4038	}
4039	if len(m.FromIngesterId) > 0 {
4040		i -= len(m.FromIngesterId)
4041		copy(dAtA[i:], m.FromIngesterId)
4042		i = encodeVarintLogproto(dAtA, i, uint64(len(m.FromIngesterId)))
4043		i--
4044		dAtA[i] = 0xa
4045	}
4046	return len(dAtA) - i, nil
4047}
4048
4049func (m *LabelPair) Marshal() (dAtA []byte, err error) {
4050	size := m.Size()
4051	dAtA = make([]byte, size)
4052	n, err := m.MarshalToSizedBuffer(dAtA[:size])
4053	if err != nil {
4054		return nil, err
4055	}
4056	return dAtA[:n], nil
4057}
4058
4059func (m *LabelPair) MarshalTo(dAtA []byte) (int, error) {
4060	size := m.Size()
4061	return m.MarshalToSizedBuffer(dAtA[:size])
4062}
4063
4064func (m *LabelPair) MarshalToSizedBuffer(dAtA []byte) (int, error) {
4065	i := len(dAtA)
4066	_ = i
4067	var l int
4068	_ = l
4069	if len(m.Value) > 0 {
4070		i -= len(m.Value)
4071		copy(dAtA[i:], m.Value)
4072		i = encodeVarintLogproto(dAtA, i, uint64(len(m.Value)))
4073		i--
4074		dAtA[i] = 0x12
4075	}
4076	if len(m.Name) > 0 {
4077		i -= len(m.Name)
4078		copy(dAtA[i:], m.Name)
4079		i = encodeVarintLogproto(dAtA, i, uint64(len(m.Name)))
4080		i--
4081		dAtA[i] = 0xa
4082	}
4083	return len(dAtA) - i, nil
4084}
4085
4086func (m *Chunk) Marshal() (dAtA []byte, err error) {
4087	size := m.Size()
4088	dAtA = make([]byte, size)
4089	n, err := m.MarshalToSizedBuffer(dAtA[:size])
4090	if err != nil {
4091		return nil, err
4092	}
4093	return dAtA[:n], nil
4094}
4095
4096func (m *Chunk) MarshalTo(dAtA []byte) (int, error) {
4097	size := m.Size()
4098	return m.MarshalToSizedBuffer(dAtA[:size])
4099}
4100
4101func (m *Chunk) MarshalToSizedBuffer(dAtA []byte) (int, error) {
4102	i := len(dAtA)
4103	_ = i
4104	var l int
4105	_ = l
4106	if len(m.Data) > 0 {
4107		i -= len(m.Data)
4108		copy(dAtA[i:], m.Data)
4109		i = encodeVarintLogproto(dAtA, i, uint64(len(m.Data)))
4110		i--
4111		dAtA[i] = 0xa
4112	}
4113	return len(dAtA) - i, nil
4114}
4115
4116func (m *TransferChunksResponse) Marshal() (dAtA []byte, err error) {
4117	size := m.Size()
4118	dAtA = make([]byte, size)
4119	n, err := m.MarshalToSizedBuffer(dAtA[:size])
4120	if err != nil {
4121		return nil, err
4122	}
4123	return dAtA[:n], nil
4124}
4125
4126func (m *TransferChunksResponse) MarshalTo(dAtA []byte) (int, error) {
4127	size := m.Size()
4128	return m.MarshalToSizedBuffer(dAtA[:size])
4129}
4130
4131func (m *TransferChunksResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
4132	i := len(dAtA)
4133	_ = i
4134	var l int
4135	_ = l
4136	return len(dAtA) - i, nil
4137}
4138
4139func (m *TailersCountRequest) Marshal() (dAtA []byte, err error) {
4140	size := m.Size()
4141	dAtA = make([]byte, size)
4142	n, err := m.MarshalToSizedBuffer(dAtA[:size])
4143	if err != nil {
4144		return nil, err
4145	}
4146	return dAtA[:n], nil
4147}
4148
4149func (m *TailersCountRequest) MarshalTo(dAtA []byte) (int, error) {
4150	size := m.Size()
4151	return m.MarshalToSizedBuffer(dAtA[:size])
4152}
4153
4154func (m *TailersCountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
4155	i := len(dAtA)
4156	_ = i
4157	var l int
4158	_ = l
4159	return len(dAtA) - i, nil
4160}
4161
4162func (m *TailersCountResponse) Marshal() (dAtA []byte, err error) {
4163	size := m.Size()
4164	dAtA = make([]byte, size)
4165	n, err := m.MarshalToSizedBuffer(dAtA[:size])
4166	if err != nil {
4167		return nil, err
4168	}
4169	return dAtA[:n], nil
4170}
4171
4172func (m *TailersCountResponse) MarshalTo(dAtA []byte) (int, error) {
4173	size := m.Size()
4174	return m.MarshalToSizedBuffer(dAtA[:size])
4175}
4176
4177func (m *TailersCountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
4178	i := len(dAtA)
4179	_ = i
4180	var l int
4181	_ = l
4182	if m.Count != 0 {
4183		i = encodeVarintLogproto(dAtA, i, uint64(m.Count))
4184		i--
4185		dAtA[i] = 0x8
4186	}
4187	return len(dAtA) - i, nil
4188}
4189
4190func (m *GetChunkIDsRequest) Marshal() (dAtA []byte, err error) {
4191	size := m.Size()
4192	dAtA = make([]byte, size)
4193	n, err := m.MarshalToSizedBuffer(dAtA[:size])
4194	if err != nil {
4195		return nil, err
4196	}
4197	return dAtA[:n], nil
4198}
4199
4200func (m *GetChunkIDsRequest) MarshalTo(dAtA []byte) (int, error) {
4201	size := m.Size()
4202	return m.MarshalToSizedBuffer(dAtA[:size])
4203}
4204
4205func (m *GetChunkIDsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
4206	i := len(dAtA)
4207	_ = i
4208	var l int
4209	_ = l
4210	n14, err14 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.End, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.End):])
4211	if err14 != nil {
4212		return 0, err14
4213	}
4214	i -= n14
4215	i = encodeVarintLogproto(dAtA, i, uint64(n14))
4216	i--
4217	dAtA[i] = 0x1a
4218	n15, err15 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Start, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.Start):])
4219	if err15 != nil {
4220		return 0, err15
4221	}
4222	i -= n15
4223	i = encodeVarintLogproto(dAtA, i, uint64(n15))
4224	i--
4225	dAtA[i] = 0x12
4226	if len(m.Matchers) > 0 {
4227		i -= len(m.Matchers)
4228		copy(dAtA[i:], m.Matchers)
4229		i = encodeVarintLogproto(dAtA, i, uint64(len(m.Matchers)))
4230		i--
4231		dAtA[i] = 0xa
4232	}
4233	return len(dAtA) - i, nil
4234}
4235
4236func (m *GetChunkIDsResponse) Marshal() (dAtA []byte, err error) {
4237	size := m.Size()
4238	dAtA = make([]byte, size)
4239	n, err := m.MarshalToSizedBuffer(dAtA[:size])
4240	if err != nil {
4241		return nil, err
4242	}
4243	return dAtA[:n], nil
4244}
4245
4246func (m *GetChunkIDsResponse) MarshalTo(dAtA []byte) (int, error) {
4247	size := m.Size()
4248	return m.MarshalToSizedBuffer(dAtA[:size])
4249}
4250
4251func (m *GetChunkIDsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
4252	i := len(dAtA)
4253	_ = i
4254	var l int
4255	_ = l
4256	if len(m.ChunkIDs) > 0 {
4257		for iNdEx := len(m.ChunkIDs) - 1; iNdEx >= 0; iNdEx-- {
4258			i -= len(m.ChunkIDs[iNdEx])
4259			copy(dAtA[i:], m.ChunkIDs[iNdEx])
4260			i = encodeVarintLogproto(dAtA, i, uint64(len(m.ChunkIDs[iNdEx])))
4261			i--
4262			dAtA[i] = 0xa
4263		}
4264	}
4265	return len(dAtA) - i, nil
4266}
4267
4268func encodeVarintLogproto(dAtA []byte, offset int, v uint64) int {
4269	offset -= sovLogproto(v)
4270	base := offset
4271	for v >= 1<<7 {
4272		dAtA[offset] = uint8(v&0x7f | 0x80)
4273		v >>= 7
4274		offset++
4275	}
4276	dAtA[offset] = uint8(v)
4277	return base
4278}
4279func (m *PushRequest) Size() (n int) {
4280	if m == nil {
4281		return 0
4282	}
4283	var l int
4284	_ = l
4285	if len(m.Streams) > 0 {
4286		for _, e := range m.Streams {
4287			l = e.Size()
4288			n += 1 + l + sovLogproto(uint64(l))
4289		}
4290	}
4291	return n
4292}
4293
4294func (m *PushResponse) Size() (n int) {
4295	if m == nil {
4296		return 0
4297	}
4298	var l int
4299	_ = l
4300	return n
4301}
4302
4303func (m *QueryRequest) Size() (n int) {
4304	if m == nil {
4305		return 0
4306	}
4307	var l int
4308	_ = l
4309	l = len(m.Selector)
4310	if l > 0 {
4311		n += 1 + l + sovLogproto(uint64(l))
4312	}
4313	if m.Limit != 0 {
4314		n += 1 + sovLogproto(uint64(m.Limit))
4315	}
4316	l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Start)
4317	n += 1 + l + sovLogproto(uint64(l))
4318	l = github_com_gogo_protobuf_types.SizeOfStdTime(m.End)
4319	n += 1 + l + sovLogproto(uint64(l))
4320	if m.Direction != 0 {
4321		n += 1 + sovLogproto(uint64(m.Direction))
4322	}
4323	if len(m.Shards) > 0 {
4324		for _, s := range m.Shards {
4325			l = len(s)
4326			n += 1 + l + sovLogproto(uint64(l))
4327		}
4328	}
4329	return n
4330}
4331
4332func (m *SampleQueryRequest) Size() (n int) {
4333	if m == nil {
4334		return 0
4335	}
4336	var l int
4337	_ = l
4338	l = len(m.Selector)
4339	if l > 0 {
4340		n += 1 + l + sovLogproto(uint64(l))
4341	}
4342	l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Start)
4343	n += 1 + l + sovLogproto(uint64(l))
4344	l = github_com_gogo_protobuf_types.SizeOfStdTime(m.End)
4345	n += 1 + l + sovLogproto(uint64(l))
4346	if len(m.Shards) > 0 {
4347		for _, s := range m.Shards {
4348			l = len(s)
4349			n += 1 + l + sovLogproto(uint64(l))
4350		}
4351	}
4352	return n
4353}
4354
4355func (m *SampleQueryResponse) Size() (n int) {
4356	if m == nil {
4357		return 0
4358	}
4359	var l int
4360	_ = l
4361	if len(m.Series) > 0 {
4362		for _, e := range m.Series {
4363			l = e.Size()
4364			n += 1 + l + sovLogproto(uint64(l))
4365		}
4366	}
4367	return n
4368}
4369
4370func (m *QueryResponse) Size() (n int) {
4371	if m == nil {
4372		return 0
4373	}
4374	var l int
4375	_ = l
4376	if len(m.Streams) > 0 {
4377		for _, e := range m.Streams {
4378			l = e.Size()
4379			n += 1 + l + sovLogproto(uint64(l))
4380		}
4381	}
4382	return n
4383}
4384
4385func (m *LabelRequest) Size() (n int) {
4386	if m == nil {
4387		return 0
4388	}
4389	var l int
4390	_ = l
4391	l = len(m.Name)
4392	if l > 0 {
4393		n += 1 + l + sovLogproto(uint64(l))
4394	}
4395	if m.Values {
4396		n += 2
4397	}
4398	if m.Start != nil {
4399		l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.Start)
4400		n += 1 + l + sovLogproto(uint64(l))
4401	}
4402	if m.End != nil {
4403		l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.End)
4404		n += 1 + l + sovLogproto(uint64(l))
4405	}
4406	return n
4407}
4408
4409func (m *LabelResponse) Size() (n int) {
4410	if m == nil {
4411		return 0
4412	}
4413	var l int
4414	_ = l
4415	if len(m.Values) > 0 {
4416		for _, s := range m.Values {
4417			l = len(s)
4418			n += 1 + l + sovLogproto(uint64(l))
4419		}
4420	}
4421	return n
4422}
4423
4424func (m *StreamAdapter) Size() (n int) {
4425	if m == nil {
4426		return 0
4427	}
4428	var l int
4429	_ = l
4430	l = len(m.Labels)
4431	if l > 0 {
4432		n += 1 + l + sovLogproto(uint64(l))
4433	}
4434	if len(m.Entries) > 0 {
4435		for _, e := range m.Entries {
4436			l = e.Size()
4437			n += 1 + l + sovLogproto(uint64(l))
4438		}
4439	}
4440	return n
4441}
4442
4443func (m *EntryAdapter) Size() (n int) {
4444	if m == nil {
4445		return 0
4446	}
4447	var l int
4448	_ = l
4449	l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Timestamp)
4450	n += 1 + l + sovLogproto(uint64(l))
4451	l = len(m.Line)
4452	if l > 0 {
4453		n += 1 + l + sovLogproto(uint64(l))
4454	}
4455	return n
4456}
4457
4458func (m *Sample) Size() (n int) {
4459	if m == nil {
4460		return 0
4461	}
4462	var l int
4463	_ = l
4464	if m.Timestamp != 0 {
4465		n += 1 + sovLogproto(uint64(m.Timestamp))
4466	}
4467	if m.Value != 0 {
4468		n += 9
4469	}
4470	if m.Hash != 0 {
4471		n += 1 + sovLogproto(uint64(m.Hash))
4472	}
4473	return n
4474}
4475
4476func (m *Series) Size() (n int) {
4477	if m == nil {
4478		return 0
4479	}
4480	var l int
4481	_ = l
4482	l = len(m.Labels)
4483	if l > 0 {
4484		n += 1 + l + sovLogproto(uint64(l))
4485	}
4486	if len(m.Samples) > 0 {
4487		for _, e := range m.Samples {
4488			l = e.Size()
4489			n += 1 + l + sovLogproto(uint64(l))
4490		}
4491	}
4492	return n
4493}
4494
4495func (m *TailRequest) Size() (n int) {
4496	if m == nil {
4497		return 0
4498	}
4499	var l int
4500	_ = l
4501	l = len(m.Query)
4502	if l > 0 {
4503		n += 1 + l + sovLogproto(uint64(l))
4504	}
4505	if m.DelayFor != 0 {
4506		n += 1 + sovLogproto(uint64(m.DelayFor))
4507	}
4508	if m.Limit != 0 {
4509		n += 1 + sovLogproto(uint64(m.Limit))
4510	}
4511	l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Start)
4512	n += 1 + l + sovLogproto(uint64(l))
4513	return n
4514}
4515
4516func (m *TailResponse) Size() (n int) {
4517	if m == nil {
4518		return 0
4519	}
4520	var l int
4521	_ = l
4522	if m.Stream != nil {
4523		l = m.Stream.Size()
4524		n += 1 + l + sovLogproto(uint64(l))
4525	}
4526	if len(m.DroppedStreams) > 0 {
4527		for _, e := range m.DroppedStreams {
4528			l = e.Size()
4529			n += 1 + l + sovLogproto(uint64(l))
4530		}
4531	}
4532	return n
4533}
4534
4535func (m *SeriesRequest) Size() (n int) {
4536	if m == nil {
4537		return 0
4538	}
4539	var l int
4540	_ = l
4541	l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Start)
4542	n += 1 + l + sovLogproto(uint64(l))
4543	l = github_com_gogo_protobuf_types.SizeOfStdTime(m.End)
4544	n += 1 + l + sovLogproto(uint64(l))
4545	if len(m.Groups) > 0 {
4546		for _, s := range m.Groups {
4547			l = len(s)
4548			n += 1 + l + sovLogproto(uint64(l))
4549		}
4550	}
4551	if len(m.Shards) > 0 {
4552		for _, s := range m.Shards {
4553			l = len(s)
4554			n += 1 + l + sovLogproto(uint64(l))
4555		}
4556	}
4557	return n
4558}
4559
4560func (m *SeriesResponse) Size() (n int) {
4561	if m == nil {
4562		return 0
4563	}
4564	var l int
4565	_ = l
4566	if len(m.Series) > 0 {
4567		for _, e := range m.Series {
4568			l = e.Size()
4569			n += 1 + l + sovLogproto(uint64(l))
4570		}
4571	}
4572	return n
4573}
4574
4575func (m *SeriesIdentifier) Size() (n int) {
4576	if m == nil {
4577		return 0
4578	}
4579	var l int
4580	_ = l
4581	if len(m.Labels) > 0 {
4582		for k, v := range m.Labels {
4583			_ = k
4584			_ = v
4585			mapEntrySize := 1 + len(k) + sovLogproto(uint64(len(k))) + 1 + len(v) + sovLogproto(uint64(len(v)))
4586			n += mapEntrySize + 1 + sovLogproto(uint64(mapEntrySize))
4587		}
4588	}
4589	return n
4590}
4591
4592func (m *DroppedStream) Size() (n int) {
4593	if m == nil {
4594		return 0
4595	}
4596	var l int
4597	_ = l
4598	l = github_com_gogo_protobuf_types.SizeOfStdTime(m.From)
4599	n += 1 + l + sovLogproto(uint64(l))
4600	l = github_com_gogo_protobuf_types.SizeOfStdTime(m.To)
4601	n += 1 + l + sovLogproto(uint64(l))
4602	l = len(m.Labels)
4603	if l > 0 {
4604		n += 1 + l + sovLogproto(uint64(l))
4605	}
4606	return n
4607}
4608
4609func (m *TimeSeriesChunk) Size() (n int) {
4610	if m == nil {
4611		return 0
4612	}
4613	var l int
4614	_ = l
4615	l = len(m.FromIngesterId)
4616	if l > 0 {
4617		n += 1 + l + sovLogproto(uint64(l))
4618	}
4619	l = len(m.UserId)
4620	if l > 0 {
4621		n += 1 + l + sovLogproto(uint64(l))
4622	}
4623	if len(m.Labels) > 0 {
4624		for _, e := range m.Labels {
4625			l = e.Size()
4626			n += 1 + l + sovLogproto(uint64(l))
4627		}
4628	}
4629	if len(m.Chunks) > 0 {
4630		for _, e := range m.Chunks {
4631			l = e.Size()
4632			n += 1 + l + sovLogproto(uint64(l))
4633		}
4634	}
4635	return n
4636}
4637
4638func (m *LabelPair) Size() (n int) {
4639	if m == nil {
4640		return 0
4641	}
4642	var l int
4643	_ = l
4644	l = len(m.Name)
4645	if l > 0 {
4646		n += 1 + l + sovLogproto(uint64(l))
4647	}
4648	l = len(m.Value)
4649	if l > 0 {
4650		n += 1 + l + sovLogproto(uint64(l))
4651	}
4652	return n
4653}
4654
4655func (m *Chunk) Size() (n int) {
4656	if m == nil {
4657		return 0
4658	}
4659	var l int
4660	_ = l
4661	l = len(m.Data)
4662	if l > 0 {
4663		n += 1 + l + sovLogproto(uint64(l))
4664	}
4665	return n
4666}
4667
4668func (m *TransferChunksResponse) Size() (n int) {
4669	if m == nil {
4670		return 0
4671	}
4672	var l int
4673	_ = l
4674	return n
4675}
4676
4677func (m *TailersCountRequest) Size() (n int) {
4678	if m == nil {
4679		return 0
4680	}
4681	var l int
4682	_ = l
4683	return n
4684}
4685
4686func (m *TailersCountResponse) Size() (n int) {
4687	if m == nil {
4688		return 0
4689	}
4690	var l int
4691	_ = l
4692	if m.Count != 0 {
4693		n += 1 + sovLogproto(uint64(m.Count))
4694	}
4695	return n
4696}
4697
4698func (m *GetChunkIDsRequest) Size() (n int) {
4699	if m == nil {
4700		return 0
4701	}
4702	var l int
4703	_ = l
4704	l = len(m.Matchers)
4705	if l > 0 {
4706		n += 1 + l + sovLogproto(uint64(l))
4707	}
4708	l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Start)
4709	n += 1 + l + sovLogproto(uint64(l))
4710	l = github_com_gogo_protobuf_types.SizeOfStdTime(m.End)
4711	n += 1 + l + sovLogproto(uint64(l))
4712	return n
4713}
4714
4715func (m *GetChunkIDsResponse) Size() (n int) {
4716	if m == nil {
4717		return 0
4718	}
4719	var l int
4720	_ = l
4721	if len(m.ChunkIDs) > 0 {
4722		for _, s := range m.ChunkIDs {
4723			l = len(s)
4724			n += 1 + l + sovLogproto(uint64(l))
4725		}
4726	}
4727	return n
4728}
4729
4730func sovLogproto(x uint64) (n int) {
4731	return (math_bits.Len64(x|1) + 6) / 7
4732}
4733func sozLogproto(x uint64) (n int) {
4734	return sovLogproto(uint64((x << 1) ^ uint64((int64(x) >> 63))))
4735}
4736func (this *PushRequest) String() string {
4737	if this == nil {
4738		return "nil"
4739	}
4740	s := strings.Join([]string{`&PushRequest{`,
4741		`Streams:` + fmt.Sprintf("%v", this.Streams) + `,`,
4742		`}`,
4743	}, "")
4744	return s
4745}
4746func (this *PushResponse) String() string {
4747	if this == nil {
4748		return "nil"
4749	}
4750	s := strings.Join([]string{`&PushResponse{`,
4751		`}`,
4752	}, "")
4753	return s
4754}
4755func (this *QueryRequest) String() string {
4756	if this == nil {
4757		return "nil"
4758	}
4759	s := strings.Join([]string{`&QueryRequest{`,
4760		`Selector:` + fmt.Sprintf("%v", this.Selector) + `,`,
4761		`Limit:` + fmt.Sprintf("%v", this.Limit) + `,`,
4762		`Start:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Start), "Timestamp", "types.Timestamp", 1), `&`, ``, 1) + `,`,
4763		`End:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.End), "Timestamp", "types.Timestamp", 1), `&`, ``, 1) + `,`,
4764		`Direction:` + fmt.Sprintf("%v", this.Direction) + `,`,
4765		`Shards:` + fmt.Sprintf("%v", this.Shards) + `,`,
4766		`}`,
4767	}, "")
4768	return s
4769}
4770func (this *SampleQueryRequest) String() string {
4771	if this == nil {
4772		return "nil"
4773	}
4774	s := strings.Join([]string{`&SampleQueryRequest{`,
4775		`Selector:` + fmt.Sprintf("%v", this.Selector) + `,`,
4776		`Start:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Start), "Timestamp", "types.Timestamp", 1), `&`, ``, 1) + `,`,
4777		`End:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.End), "Timestamp", "types.Timestamp", 1), `&`, ``, 1) + `,`,
4778		`Shards:` + fmt.Sprintf("%v", this.Shards) + `,`,
4779		`}`,
4780	}, "")
4781	return s
4782}
4783func (this *SampleQueryResponse) String() string {
4784	if this == nil {
4785		return "nil"
4786	}
4787	s := strings.Join([]string{`&SampleQueryResponse{`,
4788		`Series:` + fmt.Sprintf("%v", this.Series) + `,`,
4789		`}`,
4790	}, "")
4791	return s
4792}
4793func (this *QueryResponse) String() string {
4794	if this == nil {
4795		return "nil"
4796	}
4797	s := strings.Join([]string{`&QueryResponse{`,
4798		`Streams:` + fmt.Sprintf("%v", this.Streams) + `,`,
4799		`}`,
4800	}, "")
4801	return s
4802}
4803func (this *LabelRequest) String() string {
4804	if this == nil {
4805		return "nil"
4806	}
4807	s := strings.Join([]string{`&LabelRequest{`,
4808		`Name:` + fmt.Sprintf("%v", this.Name) + `,`,
4809		`Values:` + fmt.Sprintf("%v", this.Values) + `,`,
4810		`Start:` + strings.Replace(fmt.Sprintf("%v", this.Start), "Timestamp", "types.Timestamp", 1) + `,`,
4811		`End:` + strings.Replace(fmt.Sprintf("%v", this.End), "Timestamp", "types.Timestamp", 1) + `,`,
4812		`}`,
4813	}, "")
4814	return s
4815}
4816func (this *LabelResponse) String() string {
4817	if this == nil {
4818		return "nil"
4819	}
4820	s := strings.Join([]string{`&LabelResponse{`,
4821		`Values:` + fmt.Sprintf("%v", this.Values) + `,`,
4822		`}`,
4823	}, "")
4824	return s
4825}
4826func (this *StreamAdapter) String() string {
4827	if this == nil {
4828		return "nil"
4829	}
4830	repeatedStringForEntries := "[]EntryAdapter{"
4831	for _, f := range this.Entries {
4832		repeatedStringForEntries += strings.Replace(strings.Replace(f.String(), "EntryAdapter", "EntryAdapter", 1), `&`, ``, 1) + ","
4833	}
4834	repeatedStringForEntries += "}"
4835	s := strings.Join([]string{`&StreamAdapter{`,
4836		`Labels:` + fmt.Sprintf("%v", this.Labels) + `,`,
4837		`Entries:` + repeatedStringForEntries + `,`,
4838		`}`,
4839	}, "")
4840	return s
4841}
4842func (this *EntryAdapter) String() string {
4843	if this == nil {
4844		return "nil"
4845	}
4846	s := strings.Join([]string{`&EntryAdapter{`,
4847		`Timestamp:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Timestamp), "Timestamp", "types.Timestamp", 1), `&`, ``, 1) + `,`,
4848		`Line:` + fmt.Sprintf("%v", this.Line) + `,`,
4849		`}`,
4850	}, "")
4851	return s
4852}
4853func (this *Sample) String() string {
4854	if this == nil {
4855		return "nil"
4856	}
4857	s := strings.Join([]string{`&Sample{`,
4858		`Timestamp:` + fmt.Sprintf("%v", this.Timestamp) + `,`,
4859		`Value:` + fmt.Sprintf("%v", this.Value) + `,`,
4860		`Hash:` + fmt.Sprintf("%v", this.Hash) + `,`,
4861		`}`,
4862	}, "")
4863	return s
4864}
4865func (this *Series) String() string {
4866	if this == nil {
4867		return "nil"
4868	}
4869	repeatedStringForSamples := "[]Sample{"
4870	for _, f := range this.Samples {
4871		repeatedStringForSamples += strings.Replace(strings.Replace(f.String(), "Sample", "Sample", 1), `&`, ``, 1) + ","
4872	}
4873	repeatedStringForSamples += "}"
4874	s := strings.Join([]string{`&Series{`,
4875		`Labels:` + fmt.Sprintf("%v", this.Labels) + `,`,
4876		`Samples:` + repeatedStringForSamples + `,`,
4877		`}`,
4878	}, "")
4879	return s
4880}
4881func (this *TailRequest) String() string {
4882	if this == nil {
4883		return "nil"
4884	}
4885	s := strings.Join([]string{`&TailRequest{`,
4886		`Query:` + fmt.Sprintf("%v", this.Query) + `,`,
4887		`DelayFor:` + fmt.Sprintf("%v", this.DelayFor) + `,`,
4888		`Limit:` + fmt.Sprintf("%v", this.Limit) + `,`,
4889		`Start:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Start), "Timestamp", "types.Timestamp", 1), `&`, ``, 1) + `,`,
4890		`}`,
4891	}, "")
4892	return s
4893}
4894func (this *TailResponse) String() string {
4895	if this == nil {
4896		return "nil"
4897	}
4898	repeatedStringForDroppedStreams := "[]*DroppedStream{"
4899	for _, f := range this.DroppedStreams {
4900		repeatedStringForDroppedStreams += strings.Replace(f.String(), "DroppedStream", "DroppedStream", 1) + ","
4901	}
4902	repeatedStringForDroppedStreams += "}"
4903	s := strings.Join([]string{`&TailResponse{`,
4904		`Stream:` + fmt.Sprintf("%v", this.Stream) + `,`,
4905		`DroppedStreams:` + repeatedStringForDroppedStreams + `,`,
4906		`}`,
4907	}, "")
4908	return s
4909}
4910func (this *SeriesRequest) String() string {
4911	if this == nil {
4912		return "nil"
4913	}
4914	s := strings.Join([]string{`&SeriesRequest{`,
4915		`Start:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Start), "Timestamp", "types.Timestamp", 1), `&`, ``, 1) + `,`,
4916		`End:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.End), "Timestamp", "types.Timestamp", 1), `&`, ``, 1) + `,`,
4917		`Groups:` + fmt.Sprintf("%v", this.Groups) + `,`,
4918		`Shards:` + fmt.Sprintf("%v", this.Shards) + `,`,
4919		`}`,
4920	}, "")
4921	return s
4922}
4923func (this *SeriesResponse) String() string {
4924	if this == nil {
4925		return "nil"
4926	}
4927	repeatedStringForSeries := "[]SeriesIdentifier{"
4928	for _, f := range this.Series {
4929		repeatedStringForSeries += strings.Replace(strings.Replace(f.String(), "SeriesIdentifier", "SeriesIdentifier", 1), `&`, ``, 1) + ","
4930	}
4931	repeatedStringForSeries += "}"
4932	s := strings.Join([]string{`&SeriesResponse{`,
4933		`Series:` + repeatedStringForSeries + `,`,
4934		`}`,
4935	}, "")
4936	return s
4937}
4938func (this *SeriesIdentifier) String() string {
4939	if this == nil {
4940		return "nil"
4941	}
4942	keysForLabels := make([]string, 0, len(this.Labels))
4943	for k, _ := range this.Labels {
4944		keysForLabels = append(keysForLabels, k)
4945	}
4946	github_com_gogo_protobuf_sortkeys.Strings(keysForLabels)
4947	mapStringForLabels := "map[string]string{"
4948	for _, k := range keysForLabels {
4949		mapStringForLabels += fmt.Sprintf("%v: %v,", k, this.Labels[k])
4950	}
4951	mapStringForLabels += "}"
4952	s := strings.Join([]string{`&SeriesIdentifier{`,
4953		`Labels:` + mapStringForLabels + `,`,
4954		`}`,
4955	}, "")
4956	return s
4957}
4958func (this *DroppedStream) String() string {
4959	if this == nil {
4960		return "nil"
4961	}
4962	s := strings.Join([]string{`&DroppedStream{`,
4963		`From:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.From), "Timestamp", "types.Timestamp", 1), `&`, ``, 1) + `,`,
4964		`To:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.To), "Timestamp", "types.Timestamp", 1), `&`, ``, 1) + `,`,
4965		`Labels:` + fmt.Sprintf("%v", this.Labels) + `,`,
4966		`}`,
4967	}, "")
4968	return s
4969}
4970func (this *TimeSeriesChunk) String() string {
4971	if this == nil {
4972		return "nil"
4973	}
4974	repeatedStringForLabels := "[]*LabelPair{"
4975	for _, f := range this.Labels {
4976		repeatedStringForLabels += strings.Replace(f.String(), "LabelPair", "LabelPair", 1) + ","
4977	}
4978	repeatedStringForLabels += "}"
4979	repeatedStringForChunks := "[]*Chunk{"
4980	for _, f := range this.Chunks {
4981		repeatedStringForChunks += strings.Replace(f.String(), "Chunk", "Chunk", 1) + ","
4982	}
4983	repeatedStringForChunks += "}"
4984	s := strings.Join([]string{`&TimeSeriesChunk{`,
4985		`FromIngesterId:` + fmt.Sprintf("%v", this.FromIngesterId) + `,`,
4986		`UserId:` + fmt.Sprintf("%v", this.UserId) + `,`,
4987		`Labels:` + repeatedStringForLabels + `,`,
4988		`Chunks:` + repeatedStringForChunks + `,`,
4989		`}`,
4990	}, "")
4991	return s
4992}
4993func (this *LabelPair) String() string {
4994	if this == nil {
4995		return "nil"
4996	}
4997	s := strings.Join([]string{`&LabelPair{`,
4998		`Name:` + fmt.Sprintf("%v", this.Name) + `,`,
4999		`Value:` + fmt.Sprintf("%v", this.Value) + `,`,
5000		`}`,
5001	}, "")
5002	return s
5003}
5004func (this *Chunk) String() string {
5005	if this == nil {
5006		return "nil"
5007	}
5008	s := strings.Join([]string{`&Chunk{`,
5009		`Data:` + fmt.Sprintf("%v", this.Data) + `,`,
5010		`}`,
5011	}, "")
5012	return s
5013}
5014func (this *TransferChunksResponse) String() string {
5015	if this == nil {
5016		return "nil"
5017	}
5018	s := strings.Join([]string{`&TransferChunksResponse{`,
5019		`}`,
5020	}, "")
5021	return s
5022}
5023func (this *TailersCountRequest) String() string {
5024	if this == nil {
5025		return "nil"
5026	}
5027	s := strings.Join([]string{`&TailersCountRequest{`,
5028		`}`,
5029	}, "")
5030	return s
5031}
5032func (this *TailersCountResponse) String() string {
5033	if this == nil {
5034		return "nil"
5035	}
5036	s := strings.Join([]string{`&TailersCountResponse{`,
5037		`Count:` + fmt.Sprintf("%v", this.Count) + `,`,
5038		`}`,
5039	}, "")
5040	return s
5041}
5042func (this *GetChunkIDsRequest) String() string {
5043	if this == nil {
5044		return "nil"
5045	}
5046	s := strings.Join([]string{`&GetChunkIDsRequest{`,
5047		`Matchers:` + fmt.Sprintf("%v", this.Matchers) + `,`,
5048		`Start:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Start), "Timestamp", "types.Timestamp", 1), `&`, ``, 1) + `,`,
5049		`End:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.End), "Timestamp", "types.Timestamp", 1), `&`, ``, 1) + `,`,
5050		`}`,
5051	}, "")
5052	return s
5053}
5054func (this *GetChunkIDsResponse) String() string {
5055	if this == nil {
5056		return "nil"
5057	}
5058	s := strings.Join([]string{`&GetChunkIDsResponse{`,
5059		`ChunkIDs:` + fmt.Sprintf("%v", this.ChunkIDs) + `,`,
5060		`}`,
5061	}, "")
5062	return s
5063}
5064func valueToStringLogproto(v interface{}) string {
5065	rv := reflect.ValueOf(v)
5066	if rv.IsNil() {
5067		return "nil"
5068	}
5069	pv := reflect.Indirect(rv).Interface()
5070	return fmt.Sprintf("*%v", pv)
5071}
5072func (m *PushRequest) Unmarshal(dAtA []byte) error {
5073	l := len(dAtA)
5074	iNdEx := 0
5075	for iNdEx < l {
5076		preIndex := iNdEx
5077		var wire uint64
5078		for shift := uint(0); ; shift += 7 {
5079			if shift >= 64 {
5080				return ErrIntOverflowLogproto
5081			}
5082			if iNdEx >= l {
5083				return io.ErrUnexpectedEOF
5084			}
5085			b := dAtA[iNdEx]
5086			iNdEx++
5087			wire |= uint64(b&0x7F) << shift
5088			if b < 0x80 {
5089				break
5090			}
5091		}
5092		fieldNum := int32(wire >> 3)
5093		wireType := int(wire & 0x7)
5094		if wireType == 4 {
5095			return fmt.Errorf("proto: PushRequest: wiretype end group for non-group")
5096		}
5097		if fieldNum <= 0 {
5098			return fmt.Errorf("proto: PushRequest: illegal tag %d (wire type %d)", fieldNum, wire)
5099		}
5100		switch fieldNum {
5101		case 1:
5102			if wireType != 2 {
5103				return fmt.Errorf("proto: wrong wireType = %d for field Streams", wireType)
5104			}
5105			var msglen int
5106			for shift := uint(0); ; shift += 7 {
5107				if shift >= 64 {
5108					return ErrIntOverflowLogproto
5109				}
5110				if iNdEx >= l {
5111					return io.ErrUnexpectedEOF
5112				}
5113				b := dAtA[iNdEx]
5114				iNdEx++
5115				msglen |= int(b&0x7F) << shift
5116				if b < 0x80 {
5117					break
5118				}
5119			}
5120			if msglen < 0 {
5121				return ErrInvalidLengthLogproto
5122			}
5123			postIndex := iNdEx + msglen
5124			if postIndex < 0 {
5125				return ErrInvalidLengthLogproto
5126			}
5127			if postIndex > l {
5128				return io.ErrUnexpectedEOF
5129			}
5130			m.Streams = append(m.Streams, Stream{})
5131			if err := m.Streams[len(m.Streams)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
5132				return err
5133			}
5134			iNdEx = postIndex
5135		default:
5136			iNdEx = preIndex
5137			skippy, err := skipLogproto(dAtA[iNdEx:])
5138			if err != nil {
5139				return err
5140			}
5141			if skippy < 0 {
5142				return ErrInvalidLengthLogproto
5143			}
5144			if (iNdEx + skippy) < 0 {
5145				return ErrInvalidLengthLogproto
5146			}
5147			if (iNdEx + skippy) > l {
5148				return io.ErrUnexpectedEOF
5149			}
5150			iNdEx += skippy
5151		}
5152	}
5153
5154	if iNdEx > l {
5155		return io.ErrUnexpectedEOF
5156	}
5157	return nil
5158}
5159func (m *PushResponse) Unmarshal(dAtA []byte) error {
5160	l := len(dAtA)
5161	iNdEx := 0
5162	for iNdEx < l {
5163		preIndex := iNdEx
5164		var wire uint64
5165		for shift := uint(0); ; shift += 7 {
5166			if shift >= 64 {
5167				return ErrIntOverflowLogproto
5168			}
5169			if iNdEx >= l {
5170				return io.ErrUnexpectedEOF
5171			}
5172			b := dAtA[iNdEx]
5173			iNdEx++
5174			wire |= uint64(b&0x7F) << shift
5175			if b < 0x80 {
5176				break
5177			}
5178		}
5179		fieldNum := int32(wire >> 3)
5180		wireType := int(wire & 0x7)
5181		if wireType == 4 {
5182			return fmt.Errorf("proto: PushResponse: wiretype end group for non-group")
5183		}
5184		if fieldNum <= 0 {
5185			return fmt.Errorf("proto: PushResponse: illegal tag %d (wire type %d)", fieldNum, wire)
5186		}
5187		switch fieldNum {
5188		default:
5189			iNdEx = preIndex
5190			skippy, err := skipLogproto(dAtA[iNdEx:])
5191			if err != nil {
5192				return err
5193			}
5194			if skippy < 0 {
5195				return ErrInvalidLengthLogproto
5196			}
5197			if (iNdEx + skippy) < 0 {
5198				return ErrInvalidLengthLogproto
5199			}
5200			if (iNdEx + skippy) > l {
5201				return io.ErrUnexpectedEOF
5202			}
5203			iNdEx += skippy
5204		}
5205	}
5206
5207	if iNdEx > l {
5208		return io.ErrUnexpectedEOF
5209	}
5210	return nil
5211}
5212func (m *QueryRequest) Unmarshal(dAtA []byte) error {
5213	l := len(dAtA)
5214	iNdEx := 0
5215	for iNdEx < l {
5216		preIndex := iNdEx
5217		var wire uint64
5218		for shift := uint(0); ; shift += 7 {
5219			if shift >= 64 {
5220				return ErrIntOverflowLogproto
5221			}
5222			if iNdEx >= l {
5223				return io.ErrUnexpectedEOF
5224			}
5225			b := dAtA[iNdEx]
5226			iNdEx++
5227			wire |= uint64(b&0x7F) << shift
5228			if b < 0x80 {
5229				break
5230			}
5231		}
5232		fieldNum := int32(wire >> 3)
5233		wireType := int(wire & 0x7)
5234		if wireType == 4 {
5235			return fmt.Errorf("proto: QueryRequest: wiretype end group for non-group")
5236		}
5237		if fieldNum <= 0 {
5238			return fmt.Errorf("proto: QueryRequest: illegal tag %d (wire type %d)", fieldNum, wire)
5239		}
5240		switch fieldNum {
5241		case 1:
5242			if wireType != 2 {
5243				return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType)
5244			}
5245			var stringLen uint64
5246			for shift := uint(0); ; shift += 7 {
5247				if shift >= 64 {
5248					return ErrIntOverflowLogproto
5249				}
5250				if iNdEx >= l {
5251					return io.ErrUnexpectedEOF
5252				}
5253				b := dAtA[iNdEx]
5254				iNdEx++
5255				stringLen |= uint64(b&0x7F) << shift
5256				if b < 0x80 {
5257					break
5258				}
5259			}
5260			intStringLen := int(stringLen)
5261			if intStringLen < 0 {
5262				return ErrInvalidLengthLogproto
5263			}
5264			postIndex := iNdEx + intStringLen
5265			if postIndex < 0 {
5266				return ErrInvalidLengthLogproto
5267			}
5268			if postIndex > l {
5269				return io.ErrUnexpectedEOF
5270			}
5271			m.Selector = string(dAtA[iNdEx:postIndex])
5272			iNdEx = postIndex
5273		case 2:
5274			if wireType != 0 {
5275				return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType)
5276			}
5277			m.Limit = 0
5278			for shift := uint(0); ; shift += 7 {
5279				if shift >= 64 {
5280					return ErrIntOverflowLogproto
5281				}
5282				if iNdEx >= l {
5283					return io.ErrUnexpectedEOF
5284				}
5285				b := dAtA[iNdEx]
5286				iNdEx++
5287				m.Limit |= uint32(b&0x7F) << shift
5288				if b < 0x80 {
5289					break
5290				}
5291			}
5292		case 3:
5293			if wireType != 2 {
5294				return fmt.Errorf("proto: wrong wireType = %d for field Start", wireType)
5295			}
5296			var msglen int
5297			for shift := uint(0); ; shift += 7 {
5298				if shift >= 64 {
5299					return ErrIntOverflowLogproto
5300				}
5301				if iNdEx >= l {
5302					return io.ErrUnexpectedEOF
5303				}
5304				b := dAtA[iNdEx]
5305				iNdEx++
5306				msglen |= int(b&0x7F) << shift
5307				if b < 0x80 {
5308					break
5309				}
5310			}
5311			if msglen < 0 {
5312				return ErrInvalidLengthLogproto
5313			}
5314			postIndex := iNdEx + msglen
5315			if postIndex < 0 {
5316				return ErrInvalidLengthLogproto
5317			}
5318			if postIndex > l {
5319				return io.ErrUnexpectedEOF
5320			}
5321			if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.Start, dAtA[iNdEx:postIndex]); err != nil {
5322				return err
5323			}
5324			iNdEx = postIndex
5325		case 4:
5326			if wireType != 2 {
5327				return fmt.Errorf("proto: wrong wireType = %d for field End", wireType)
5328			}
5329			var msglen int
5330			for shift := uint(0); ; shift += 7 {
5331				if shift >= 64 {
5332					return ErrIntOverflowLogproto
5333				}
5334				if iNdEx >= l {
5335					return io.ErrUnexpectedEOF
5336				}
5337				b := dAtA[iNdEx]
5338				iNdEx++
5339				msglen |= int(b&0x7F) << shift
5340				if b < 0x80 {
5341					break
5342				}
5343			}
5344			if msglen < 0 {
5345				return ErrInvalidLengthLogproto
5346			}
5347			postIndex := iNdEx + msglen
5348			if postIndex < 0 {
5349				return ErrInvalidLengthLogproto
5350			}
5351			if postIndex > l {
5352				return io.ErrUnexpectedEOF
5353			}
5354			if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.End, dAtA[iNdEx:postIndex]); err != nil {
5355				return err
5356			}
5357			iNdEx = postIndex
5358		case 5:
5359			if wireType != 0 {
5360				return fmt.Errorf("proto: wrong wireType = %d for field Direction", wireType)
5361			}
5362			m.Direction = 0
5363			for shift := uint(0); ; shift += 7 {
5364				if shift >= 64 {
5365					return ErrIntOverflowLogproto
5366				}
5367				if iNdEx >= l {
5368					return io.ErrUnexpectedEOF
5369				}
5370				b := dAtA[iNdEx]
5371				iNdEx++
5372				m.Direction |= Direction(b&0x7F) << shift
5373				if b < 0x80 {
5374					break
5375				}
5376			}
5377		case 7:
5378			if wireType != 2 {
5379				return fmt.Errorf("proto: wrong wireType = %d for field Shards", wireType)
5380			}
5381			var stringLen uint64
5382			for shift := uint(0); ; shift += 7 {
5383				if shift >= 64 {
5384					return ErrIntOverflowLogproto
5385				}
5386				if iNdEx >= l {
5387					return io.ErrUnexpectedEOF
5388				}
5389				b := dAtA[iNdEx]
5390				iNdEx++
5391				stringLen |= uint64(b&0x7F) << shift
5392				if b < 0x80 {
5393					break
5394				}
5395			}
5396			intStringLen := int(stringLen)
5397			if intStringLen < 0 {
5398				return ErrInvalidLengthLogproto
5399			}
5400			postIndex := iNdEx + intStringLen
5401			if postIndex < 0 {
5402				return ErrInvalidLengthLogproto
5403			}
5404			if postIndex > l {
5405				return io.ErrUnexpectedEOF
5406			}
5407			m.Shards = append(m.Shards, string(dAtA[iNdEx:postIndex]))
5408			iNdEx = postIndex
5409		default:
5410			iNdEx = preIndex
5411			skippy, err := skipLogproto(dAtA[iNdEx:])
5412			if err != nil {
5413				return err
5414			}
5415			if skippy < 0 {
5416				return ErrInvalidLengthLogproto
5417			}
5418			if (iNdEx + skippy) < 0 {
5419				return ErrInvalidLengthLogproto
5420			}
5421			if (iNdEx + skippy) > l {
5422				return io.ErrUnexpectedEOF
5423			}
5424			iNdEx += skippy
5425		}
5426	}
5427
5428	if iNdEx > l {
5429		return io.ErrUnexpectedEOF
5430	}
5431	return nil
5432}
5433func (m *SampleQueryRequest) Unmarshal(dAtA []byte) error {
5434	l := len(dAtA)
5435	iNdEx := 0
5436	for iNdEx < l {
5437		preIndex := iNdEx
5438		var wire uint64
5439		for shift := uint(0); ; shift += 7 {
5440			if shift >= 64 {
5441				return ErrIntOverflowLogproto
5442			}
5443			if iNdEx >= l {
5444				return io.ErrUnexpectedEOF
5445			}
5446			b := dAtA[iNdEx]
5447			iNdEx++
5448			wire |= uint64(b&0x7F) << shift
5449			if b < 0x80 {
5450				break
5451			}
5452		}
5453		fieldNum := int32(wire >> 3)
5454		wireType := int(wire & 0x7)
5455		if wireType == 4 {
5456			return fmt.Errorf("proto: SampleQueryRequest: wiretype end group for non-group")
5457		}
5458		if fieldNum <= 0 {
5459			return fmt.Errorf("proto: SampleQueryRequest: illegal tag %d (wire type %d)", fieldNum, wire)
5460		}
5461		switch fieldNum {
5462		case 1:
5463			if wireType != 2 {
5464				return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType)
5465			}
5466			var stringLen uint64
5467			for shift := uint(0); ; shift += 7 {
5468				if shift >= 64 {
5469					return ErrIntOverflowLogproto
5470				}
5471				if iNdEx >= l {
5472					return io.ErrUnexpectedEOF
5473				}
5474				b := dAtA[iNdEx]
5475				iNdEx++
5476				stringLen |= uint64(b&0x7F) << shift
5477				if b < 0x80 {
5478					break
5479				}
5480			}
5481			intStringLen := int(stringLen)
5482			if intStringLen < 0 {
5483				return ErrInvalidLengthLogproto
5484			}
5485			postIndex := iNdEx + intStringLen
5486			if postIndex < 0 {
5487				return ErrInvalidLengthLogproto
5488			}
5489			if postIndex > l {
5490				return io.ErrUnexpectedEOF
5491			}
5492			m.Selector = string(dAtA[iNdEx:postIndex])
5493			iNdEx = postIndex
5494		case 2:
5495			if wireType != 2 {
5496				return fmt.Errorf("proto: wrong wireType = %d for field Start", wireType)
5497			}
5498			var msglen int
5499			for shift := uint(0); ; shift += 7 {
5500				if shift >= 64 {
5501					return ErrIntOverflowLogproto
5502				}
5503				if iNdEx >= l {
5504					return io.ErrUnexpectedEOF
5505				}
5506				b := dAtA[iNdEx]
5507				iNdEx++
5508				msglen |= int(b&0x7F) << shift
5509				if b < 0x80 {
5510					break
5511				}
5512			}
5513			if msglen < 0 {
5514				return ErrInvalidLengthLogproto
5515			}
5516			postIndex := iNdEx + msglen
5517			if postIndex < 0 {
5518				return ErrInvalidLengthLogproto
5519			}
5520			if postIndex > l {
5521				return io.ErrUnexpectedEOF
5522			}
5523			if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.Start, dAtA[iNdEx:postIndex]); err != nil {
5524				return err
5525			}
5526			iNdEx = postIndex
5527		case 3:
5528			if wireType != 2 {
5529				return fmt.Errorf("proto: wrong wireType = %d for field End", wireType)
5530			}
5531			var msglen int
5532			for shift := uint(0); ; shift += 7 {
5533				if shift >= 64 {
5534					return ErrIntOverflowLogproto
5535				}
5536				if iNdEx >= l {
5537					return io.ErrUnexpectedEOF
5538				}
5539				b := dAtA[iNdEx]
5540				iNdEx++
5541				msglen |= int(b&0x7F) << shift
5542				if b < 0x80 {
5543					break
5544				}
5545			}
5546			if msglen < 0 {
5547				return ErrInvalidLengthLogproto
5548			}
5549			postIndex := iNdEx + msglen
5550			if postIndex < 0 {
5551				return ErrInvalidLengthLogproto
5552			}
5553			if postIndex > l {
5554				return io.ErrUnexpectedEOF
5555			}
5556			if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.End, dAtA[iNdEx:postIndex]); err != nil {
5557				return err
5558			}
5559			iNdEx = postIndex
5560		case 4:
5561			if wireType != 2 {
5562				return fmt.Errorf("proto: wrong wireType = %d for field Shards", wireType)
5563			}
5564			var stringLen uint64
5565			for shift := uint(0); ; shift += 7 {
5566				if shift >= 64 {
5567					return ErrIntOverflowLogproto
5568				}
5569				if iNdEx >= l {
5570					return io.ErrUnexpectedEOF
5571				}
5572				b := dAtA[iNdEx]
5573				iNdEx++
5574				stringLen |= uint64(b&0x7F) << shift
5575				if b < 0x80 {
5576					break
5577				}
5578			}
5579			intStringLen := int(stringLen)
5580			if intStringLen < 0 {
5581				return ErrInvalidLengthLogproto
5582			}
5583			postIndex := iNdEx + intStringLen
5584			if postIndex < 0 {
5585				return ErrInvalidLengthLogproto
5586			}
5587			if postIndex > l {
5588				return io.ErrUnexpectedEOF
5589			}
5590			m.Shards = append(m.Shards, string(dAtA[iNdEx:postIndex]))
5591			iNdEx = postIndex
5592		default:
5593			iNdEx = preIndex
5594			skippy, err := skipLogproto(dAtA[iNdEx:])
5595			if err != nil {
5596				return err
5597			}
5598			if skippy < 0 {
5599				return ErrInvalidLengthLogproto
5600			}
5601			if (iNdEx + skippy) < 0 {
5602				return ErrInvalidLengthLogproto
5603			}
5604			if (iNdEx + skippy) > l {
5605				return io.ErrUnexpectedEOF
5606			}
5607			iNdEx += skippy
5608		}
5609	}
5610
5611	if iNdEx > l {
5612		return io.ErrUnexpectedEOF
5613	}
5614	return nil
5615}
5616func (m *SampleQueryResponse) Unmarshal(dAtA []byte) error {
5617	l := len(dAtA)
5618	iNdEx := 0
5619	for iNdEx < l {
5620		preIndex := iNdEx
5621		var wire uint64
5622		for shift := uint(0); ; shift += 7 {
5623			if shift >= 64 {
5624				return ErrIntOverflowLogproto
5625			}
5626			if iNdEx >= l {
5627				return io.ErrUnexpectedEOF
5628			}
5629			b := dAtA[iNdEx]
5630			iNdEx++
5631			wire |= uint64(b&0x7F) << shift
5632			if b < 0x80 {
5633				break
5634			}
5635		}
5636		fieldNum := int32(wire >> 3)
5637		wireType := int(wire & 0x7)
5638		if wireType == 4 {
5639			return fmt.Errorf("proto: SampleQueryResponse: wiretype end group for non-group")
5640		}
5641		if fieldNum <= 0 {
5642			return fmt.Errorf("proto: SampleQueryResponse: illegal tag %d (wire type %d)", fieldNum, wire)
5643		}
5644		switch fieldNum {
5645		case 1:
5646			if wireType != 2 {
5647				return fmt.Errorf("proto: wrong wireType = %d for field Series", wireType)
5648			}
5649			var msglen int
5650			for shift := uint(0); ; shift += 7 {
5651				if shift >= 64 {
5652					return ErrIntOverflowLogproto
5653				}
5654				if iNdEx >= l {
5655					return io.ErrUnexpectedEOF
5656				}
5657				b := dAtA[iNdEx]
5658				iNdEx++
5659				msglen |= int(b&0x7F) << shift
5660				if b < 0x80 {
5661					break
5662				}
5663			}
5664			if msglen < 0 {
5665				return ErrInvalidLengthLogproto
5666			}
5667			postIndex := iNdEx + msglen
5668			if postIndex < 0 {
5669				return ErrInvalidLengthLogproto
5670			}
5671			if postIndex > l {
5672				return io.ErrUnexpectedEOF
5673			}
5674			m.Series = append(m.Series, Series{})
5675			if err := m.Series[len(m.Series)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
5676				return err
5677			}
5678			iNdEx = postIndex
5679		default:
5680			iNdEx = preIndex
5681			skippy, err := skipLogproto(dAtA[iNdEx:])
5682			if err != nil {
5683				return err
5684			}
5685			if skippy < 0 {
5686				return ErrInvalidLengthLogproto
5687			}
5688			if (iNdEx + skippy) < 0 {
5689				return ErrInvalidLengthLogproto
5690			}
5691			if (iNdEx + skippy) > l {
5692				return io.ErrUnexpectedEOF
5693			}
5694			iNdEx += skippy
5695		}
5696	}
5697
5698	if iNdEx > l {
5699		return io.ErrUnexpectedEOF
5700	}
5701	return nil
5702}
5703func (m *QueryResponse) Unmarshal(dAtA []byte) error {
5704	l := len(dAtA)
5705	iNdEx := 0
5706	for iNdEx < l {
5707		preIndex := iNdEx
5708		var wire uint64
5709		for shift := uint(0); ; shift += 7 {
5710			if shift >= 64 {
5711				return ErrIntOverflowLogproto
5712			}
5713			if iNdEx >= l {
5714				return io.ErrUnexpectedEOF
5715			}
5716			b := dAtA[iNdEx]
5717			iNdEx++
5718			wire |= uint64(b&0x7F) << shift
5719			if b < 0x80 {
5720				break
5721			}
5722		}
5723		fieldNum := int32(wire >> 3)
5724		wireType := int(wire & 0x7)
5725		if wireType == 4 {
5726			return fmt.Errorf("proto: QueryResponse: wiretype end group for non-group")
5727		}
5728		if fieldNum <= 0 {
5729			return fmt.Errorf("proto: QueryResponse: illegal tag %d (wire type %d)", fieldNum, wire)
5730		}
5731		switch fieldNum {
5732		case 1:
5733			if wireType != 2 {
5734				return fmt.Errorf("proto: wrong wireType = %d for field Streams", wireType)
5735			}
5736			var msglen int
5737			for shift := uint(0); ; shift += 7 {
5738				if shift >= 64 {
5739					return ErrIntOverflowLogproto
5740				}
5741				if iNdEx >= l {
5742					return io.ErrUnexpectedEOF
5743				}
5744				b := dAtA[iNdEx]
5745				iNdEx++
5746				msglen |= int(b&0x7F) << shift
5747				if b < 0x80 {
5748					break
5749				}
5750			}
5751			if msglen < 0 {
5752				return ErrInvalidLengthLogproto
5753			}
5754			postIndex := iNdEx + msglen
5755			if postIndex < 0 {
5756				return ErrInvalidLengthLogproto
5757			}
5758			if postIndex > l {
5759				return io.ErrUnexpectedEOF
5760			}
5761			m.Streams = append(m.Streams, Stream{})
5762			if err := m.Streams[len(m.Streams)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
5763				return err
5764			}
5765			iNdEx = postIndex
5766		default:
5767			iNdEx = preIndex
5768			skippy, err := skipLogproto(dAtA[iNdEx:])
5769			if err != nil {
5770				return err
5771			}
5772			if skippy < 0 {
5773				return ErrInvalidLengthLogproto
5774			}
5775			if (iNdEx + skippy) < 0 {
5776				return ErrInvalidLengthLogproto
5777			}
5778			if (iNdEx + skippy) > l {
5779				return io.ErrUnexpectedEOF
5780			}
5781			iNdEx += skippy
5782		}
5783	}
5784
5785	if iNdEx > l {
5786		return io.ErrUnexpectedEOF
5787	}
5788	return nil
5789}
5790func (m *LabelRequest) Unmarshal(dAtA []byte) error {
5791	l := len(dAtA)
5792	iNdEx := 0
5793	for iNdEx < l {
5794		preIndex := iNdEx
5795		var wire uint64
5796		for shift := uint(0); ; shift += 7 {
5797			if shift >= 64 {
5798				return ErrIntOverflowLogproto
5799			}
5800			if iNdEx >= l {
5801				return io.ErrUnexpectedEOF
5802			}
5803			b := dAtA[iNdEx]
5804			iNdEx++
5805			wire |= uint64(b&0x7F) << shift
5806			if b < 0x80 {
5807				break
5808			}
5809		}
5810		fieldNum := int32(wire >> 3)
5811		wireType := int(wire & 0x7)
5812		if wireType == 4 {
5813			return fmt.Errorf("proto: LabelRequest: wiretype end group for non-group")
5814		}
5815		if fieldNum <= 0 {
5816			return fmt.Errorf("proto: LabelRequest: illegal tag %d (wire type %d)", fieldNum, wire)
5817		}
5818		switch fieldNum {
5819		case 1:
5820			if wireType != 2 {
5821				return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
5822			}
5823			var stringLen uint64
5824			for shift := uint(0); ; shift += 7 {
5825				if shift >= 64 {
5826					return ErrIntOverflowLogproto
5827				}
5828				if iNdEx >= l {
5829					return io.ErrUnexpectedEOF
5830				}
5831				b := dAtA[iNdEx]
5832				iNdEx++
5833				stringLen |= uint64(b&0x7F) << shift
5834				if b < 0x80 {
5835					break
5836				}
5837			}
5838			intStringLen := int(stringLen)
5839			if intStringLen < 0 {
5840				return ErrInvalidLengthLogproto
5841			}
5842			postIndex := iNdEx + intStringLen
5843			if postIndex < 0 {
5844				return ErrInvalidLengthLogproto
5845			}
5846			if postIndex > l {
5847				return io.ErrUnexpectedEOF
5848			}
5849			m.Name = string(dAtA[iNdEx:postIndex])
5850			iNdEx = postIndex
5851		case 2:
5852			if wireType != 0 {
5853				return fmt.Errorf("proto: wrong wireType = %d for field Values", wireType)
5854			}
5855			var v int
5856			for shift := uint(0); ; shift += 7 {
5857				if shift >= 64 {
5858					return ErrIntOverflowLogproto
5859				}
5860				if iNdEx >= l {
5861					return io.ErrUnexpectedEOF
5862				}
5863				b := dAtA[iNdEx]
5864				iNdEx++
5865				v |= int(b&0x7F) << shift
5866				if b < 0x80 {
5867					break
5868				}
5869			}
5870			m.Values = bool(v != 0)
5871		case 3:
5872			if wireType != 2 {
5873				return fmt.Errorf("proto: wrong wireType = %d for field Start", wireType)
5874			}
5875			var msglen int
5876			for shift := uint(0); ; shift += 7 {
5877				if shift >= 64 {
5878					return ErrIntOverflowLogproto
5879				}
5880				if iNdEx >= l {
5881					return io.ErrUnexpectedEOF
5882				}
5883				b := dAtA[iNdEx]
5884				iNdEx++
5885				msglen |= int(b&0x7F) << shift
5886				if b < 0x80 {
5887					break
5888				}
5889			}
5890			if msglen < 0 {
5891				return ErrInvalidLengthLogproto
5892			}
5893			postIndex := iNdEx + msglen
5894			if postIndex < 0 {
5895				return ErrInvalidLengthLogproto
5896			}
5897			if postIndex > l {
5898				return io.ErrUnexpectedEOF
5899			}
5900			if m.Start == nil {
5901				m.Start = new(time.Time)
5902			}
5903			if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.Start, dAtA[iNdEx:postIndex]); err != nil {
5904				return err
5905			}
5906			iNdEx = postIndex
5907		case 4:
5908			if wireType != 2 {
5909				return fmt.Errorf("proto: wrong wireType = %d for field End", wireType)
5910			}
5911			var msglen int
5912			for shift := uint(0); ; shift += 7 {
5913				if shift >= 64 {
5914					return ErrIntOverflowLogproto
5915				}
5916				if iNdEx >= l {
5917					return io.ErrUnexpectedEOF
5918				}
5919				b := dAtA[iNdEx]
5920				iNdEx++
5921				msglen |= int(b&0x7F) << shift
5922				if b < 0x80 {
5923					break
5924				}
5925			}
5926			if msglen < 0 {
5927				return ErrInvalidLengthLogproto
5928			}
5929			postIndex := iNdEx + msglen
5930			if postIndex < 0 {
5931				return ErrInvalidLengthLogproto
5932			}
5933			if postIndex > l {
5934				return io.ErrUnexpectedEOF
5935			}
5936			if m.End == nil {
5937				m.End = new(time.Time)
5938			}
5939			if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.End, dAtA[iNdEx:postIndex]); err != nil {
5940				return err
5941			}
5942			iNdEx = postIndex
5943		default:
5944			iNdEx = preIndex
5945			skippy, err := skipLogproto(dAtA[iNdEx:])
5946			if err != nil {
5947				return err
5948			}
5949			if skippy < 0 {
5950				return ErrInvalidLengthLogproto
5951			}
5952			if (iNdEx + skippy) < 0 {
5953				return ErrInvalidLengthLogproto
5954			}
5955			if (iNdEx + skippy) > l {
5956				return io.ErrUnexpectedEOF
5957			}
5958			iNdEx += skippy
5959		}
5960	}
5961
5962	if iNdEx > l {
5963		return io.ErrUnexpectedEOF
5964	}
5965	return nil
5966}
5967func (m *LabelResponse) Unmarshal(dAtA []byte) error {
5968	l := len(dAtA)
5969	iNdEx := 0
5970	for iNdEx < l {
5971		preIndex := iNdEx
5972		var wire uint64
5973		for shift := uint(0); ; shift += 7 {
5974			if shift >= 64 {
5975				return ErrIntOverflowLogproto
5976			}
5977			if iNdEx >= l {
5978				return io.ErrUnexpectedEOF
5979			}
5980			b := dAtA[iNdEx]
5981			iNdEx++
5982			wire |= uint64(b&0x7F) << shift
5983			if b < 0x80 {
5984				break
5985			}
5986		}
5987		fieldNum := int32(wire >> 3)
5988		wireType := int(wire & 0x7)
5989		if wireType == 4 {
5990			return fmt.Errorf("proto: LabelResponse: wiretype end group for non-group")
5991		}
5992		if fieldNum <= 0 {
5993			return fmt.Errorf("proto: LabelResponse: illegal tag %d (wire type %d)", fieldNum, wire)
5994		}
5995		switch fieldNum {
5996		case 1:
5997			if wireType != 2 {
5998				return fmt.Errorf("proto: wrong wireType = %d for field Values", wireType)
5999			}
6000			var stringLen uint64
6001			for shift := uint(0); ; shift += 7 {
6002				if shift >= 64 {
6003					return ErrIntOverflowLogproto
6004				}
6005				if iNdEx >= l {
6006					return io.ErrUnexpectedEOF
6007				}
6008				b := dAtA[iNdEx]
6009				iNdEx++
6010				stringLen |= uint64(b&0x7F) << shift
6011				if b < 0x80 {
6012					break
6013				}
6014			}
6015			intStringLen := int(stringLen)
6016			if intStringLen < 0 {
6017				return ErrInvalidLengthLogproto
6018			}
6019			postIndex := iNdEx + intStringLen
6020			if postIndex < 0 {
6021				return ErrInvalidLengthLogproto
6022			}
6023			if postIndex > l {
6024				return io.ErrUnexpectedEOF
6025			}
6026			m.Values = append(m.Values, string(dAtA[iNdEx:postIndex]))
6027			iNdEx = postIndex
6028		default:
6029			iNdEx = preIndex
6030			skippy, err := skipLogproto(dAtA[iNdEx:])
6031			if err != nil {
6032				return err
6033			}
6034			if skippy < 0 {
6035				return ErrInvalidLengthLogproto
6036			}
6037			if (iNdEx + skippy) < 0 {
6038				return ErrInvalidLengthLogproto
6039			}
6040			if (iNdEx + skippy) > l {
6041				return io.ErrUnexpectedEOF
6042			}
6043			iNdEx += skippy
6044		}
6045	}
6046
6047	if iNdEx > l {
6048		return io.ErrUnexpectedEOF
6049	}
6050	return nil
6051}
6052func (m *StreamAdapter) Unmarshal(dAtA []byte) error {
6053	l := len(dAtA)
6054	iNdEx := 0
6055	for iNdEx < l {
6056		preIndex := iNdEx
6057		var wire uint64
6058		for shift := uint(0); ; shift += 7 {
6059			if shift >= 64 {
6060				return ErrIntOverflowLogproto
6061			}
6062			if iNdEx >= l {
6063				return io.ErrUnexpectedEOF
6064			}
6065			b := dAtA[iNdEx]
6066			iNdEx++
6067			wire |= uint64(b&0x7F) << shift
6068			if b < 0x80 {
6069				break
6070			}
6071		}
6072		fieldNum := int32(wire >> 3)
6073		wireType := int(wire & 0x7)
6074		if wireType == 4 {
6075			return fmt.Errorf("proto: StreamAdapter: wiretype end group for non-group")
6076		}
6077		if fieldNum <= 0 {
6078			return fmt.Errorf("proto: StreamAdapter: illegal tag %d (wire type %d)", fieldNum, wire)
6079		}
6080		switch fieldNum {
6081		case 1:
6082			if wireType != 2 {
6083				return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType)
6084			}
6085			var stringLen uint64
6086			for shift := uint(0); ; shift += 7 {
6087				if shift >= 64 {
6088					return ErrIntOverflowLogproto
6089				}
6090				if iNdEx >= l {
6091					return io.ErrUnexpectedEOF
6092				}
6093				b := dAtA[iNdEx]
6094				iNdEx++
6095				stringLen |= uint64(b&0x7F) << shift
6096				if b < 0x80 {
6097					break
6098				}
6099			}
6100			intStringLen := int(stringLen)
6101			if intStringLen < 0 {
6102				return ErrInvalidLengthLogproto
6103			}
6104			postIndex := iNdEx + intStringLen
6105			if postIndex < 0 {
6106				return ErrInvalidLengthLogproto
6107			}
6108			if postIndex > l {
6109				return io.ErrUnexpectedEOF
6110			}
6111			m.Labels = string(dAtA[iNdEx:postIndex])
6112			iNdEx = postIndex
6113		case 2:
6114			if wireType != 2 {
6115				return fmt.Errorf("proto: wrong wireType = %d for field Entries", wireType)
6116			}
6117			var msglen int
6118			for shift := uint(0); ; shift += 7 {
6119				if shift >= 64 {
6120					return ErrIntOverflowLogproto
6121				}
6122				if iNdEx >= l {
6123					return io.ErrUnexpectedEOF
6124				}
6125				b := dAtA[iNdEx]
6126				iNdEx++
6127				msglen |= int(b&0x7F) << shift
6128				if b < 0x80 {
6129					break
6130				}
6131			}
6132			if msglen < 0 {
6133				return ErrInvalidLengthLogproto
6134			}
6135			postIndex := iNdEx + msglen
6136			if postIndex < 0 {
6137				return ErrInvalidLengthLogproto
6138			}
6139			if postIndex > l {
6140				return io.ErrUnexpectedEOF
6141			}
6142			m.Entries = append(m.Entries, EntryAdapter{})
6143			if err := m.Entries[len(m.Entries)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
6144				return err
6145			}
6146			iNdEx = postIndex
6147		default:
6148			iNdEx = preIndex
6149			skippy, err := skipLogproto(dAtA[iNdEx:])
6150			if err != nil {
6151				return err
6152			}
6153			if skippy < 0 {
6154				return ErrInvalidLengthLogproto
6155			}
6156			if (iNdEx + skippy) < 0 {
6157				return ErrInvalidLengthLogproto
6158			}
6159			if (iNdEx + skippy) > l {
6160				return io.ErrUnexpectedEOF
6161			}
6162			iNdEx += skippy
6163		}
6164	}
6165
6166	if iNdEx > l {
6167		return io.ErrUnexpectedEOF
6168	}
6169	return nil
6170}
6171func (m *EntryAdapter) Unmarshal(dAtA []byte) error {
6172	l := len(dAtA)
6173	iNdEx := 0
6174	for iNdEx < l {
6175		preIndex := iNdEx
6176		var wire uint64
6177		for shift := uint(0); ; shift += 7 {
6178			if shift >= 64 {
6179				return ErrIntOverflowLogproto
6180			}
6181			if iNdEx >= l {
6182				return io.ErrUnexpectedEOF
6183			}
6184			b := dAtA[iNdEx]
6185			iNdEx++
6186			wire |= uint64(b&0x7F) << shift
6187			if b < 0x80 {
6188				break
6189			}
6190		}
6191		fieldNum := int32(wire >> 3)
6192		wireType := int(wire & 0x7)
6193		if wireType == 4 {
6194			return fmt.Errorf("proto: EntryAdapter: wiretype end group for non-group")
6195		}
6196		if fieldNum <= 0 {
6197			return fmt.Errorf("proto: EntryAdapter: illegal tag %d (wire type %d)", fieldNum, wire)
6198		}
6199		switch fieldNum {
6200		case 1:
6201			if wireType != 2 {
6202				return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType)
6203			}
6204			var msglen int
6205			for shift := uint(0); ; shift += 7 {
6206				if shift >= 64 {
6207					return ErrIntOverflowLogproto
6208				}
6209				if iNdEx >= l {
6210					return io.ErrUnexpectedEOF
6211				}
6212				b := dAtA[iNdEx]
6213				iNdEx++
6214				msglen |= int(b&0x7F) << shift
6215				if b < 0x80 {
6216					break
6217				}
6218			}
6219			if msglen < 0 {
6220				return ErrInvalidLengthLogproto
6221			}
6222			postIndex := iNdEx + msglen
6223			if postIndex < 0 {
6224				return ErrInvalidLengthLogproto
6225			}
6226			if postIndex > l {
6227				return io.ErrUnexpectedEOF
6228			}
6229			if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.Timestamp, dAtA[iNdEx:postIndex]); err != nil {
6230				return err
6231			}
6232			iNdEx = postIndex
6233		case 2:
6234			if wireType != 2 {
6235				return fmt.Errorf("proto: wrong wireType = %d for field Line", wireType)
6236			}
6237			var stringLen uint64
6238			for shift := uint(0); ; shift += 7 {
6239				if shift >= 64 {
6240					return ErrIntOverflowLogproto
6241				}
6242				if iNdEx >= l {
6243					return io.ErrUnexpectedEOF
6244				}
6245				b := dAtA[iNdEx]
6246				iNdEx++
6247				stringLen |= uint64(b&0x7F) << shift
6248				if b < 0x80 {
6249					break
6250				}
6251			}
6252			intStringLen := int(stringLen)
6253			if intStringLen < 0 {
6254				return ErrInvalidLengthLogproto
6255			}
6256			postIndex := iNdEx + intStringLen
6257			if postIndex < 0 {
6258				return ErrInvalidLengthLogproto
6259			}
6260			if postIndex > l {
6261				return io.ErrUnexpectedEOF
6262			}
6263			m.Line = string(dAtA[iNdEx:postIndex])
6264			iNdEx = postIndex
6265		default:
6266			iNdEx = preIndex
6267			skippy, err := skipLogproto(dAtA[iNdEx:])
6268			if err != nil {
6269				return err
6270			}
6271			if skippy < 0 {
6272				return ErrInvalidLengthLogproto
6273			}
6274			if (iNdEx + skippy) < 0 {
6275				return ErrInvalidLengthLogproto
6276			}
6277			if (iNdEx + skippy) > l {
6278				return io.ErrUnexpectedEOF
6279			}
6280			iNdEx += skippy
6281		}
6282	}
6283
6284	if iNdEx > l {
6285		return io.ErrUnexpectedEOF
6286	}
6287	return nil
6288}
6289func (m *Sample) Unmarshal(dAtA []byte) error {
6290	l := len(dAtA)
6291	iNdEx := 0
6292	for iNdEx < l {
6293		preIndex := iNdEx
6294		var wire uint64
6295		for shift := uint(0); ; shift += 7 {
6296			if shift >= 64 {
6297				return ErrIntOverflowLogproto
6298			}
6299			if iNdEx >= l {
6300				return io.ErrUnexpectedEOF
6301			}
6302			b := dAtA[iNdEx]
6303			iNdEx++
6304			wire |= uint64(b&0x7F) << shift
6305			if b < 0x80 {
6306				break
6307			}
6308		}
6309		fieldNum := int32(wire >> 3)
6310		wireType := int(wire & 0x7)
6311		if wireType == 4 {
6312			return fmt.Errorf("proto: Sample: wiretype end group for non-group")
6313		}
6314		if fieldNum <= 0 {
6315			return fmt.Errorf("proto: Sample: illegal tag %d (wire type %d)", fieldNum, wire)
6316		}
6317		switch fieldNum {
6318		case 1:
6319			if wireType != 0 {
6320				return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType)
6321			}
6322			m.Timestamp = 0
6323			for shift := uint(0); ; shift += 7 {
6324				if shift >= 64 {
6325					return ErrIntOverflowLogproto
6326				}
6327				if iNdEx >= l {
6328					return io.ErrUnexpectedEOF
6329				}
6330				b := dAtA[iNdEx]
6331				iNdEx++
6332				m.Timestamp |= int64(b&0x7F) << shift
6333				if b < 0x80 {
6334					break
6335				}
6336			}
6337		case 2:
6338			if wireType != 1 {
6339				return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
6340			}
6341			var v uint64
6342			if (iNdEx + 8) > l {
6343				return io.ErrUnexpectedEOF
6344			}
6345			v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:]))
6346			iNdEx += 8
6347			m.Value = float64(math.Float64frombits(v))
6348		case 3:
6349			if wireType != 0 {
6350				return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType)
6351			}
6352			m.Hash = 0
6353			for shift := uint(0); ; shift += 7 {
6354				if shift >= 64 {
6355					return ErrIntOverflowLogproto
6356				}
6357				if iNdEx >= l {
6358					return io.ErrUnexpectedEOF
6359				}
6360				b := dAtA[iNdEx]
6361				iNdEx++
6362				m.Hash |= uint64(b&0x7F) << shift
6363				if b < 0x80 {
6364					break
6365				}
6366			}
6367		default:
6368			iNdEx = preIndex
6369			skippy, err := skipLogproto(dAtA[iNdEx:])
6370			if err != nil {
6371				return err
6372			}
6373			if skippy < 0 {
6374				return ErrInvalidLengthLogproto
6375			}
6376			if (iNdEx + skippy) < 0 {
6377				return ErrInvalidLengthLogproto
6378			}
6379			if (iNdEx + skippy) > l {
6380				return io.ErrUnexpectedEOF
6381			}
6382			iNdEx += skippy
6383		}
6384	}
6385
6386	if iNdEx > l {
6387		return io.ErrUnexpectedEOF
6388	}
6389	return nil
6390}
6391func (m *Series) Unmarshal(dAtA []byte) error {
6392	l := len(dAtA)
6393	iNdEx := 0
6394	for iNdEx < l {
6395		preIndex := iNdEx
6396		var wire uint64
6397		for shift := uint(0); ; shift += 7 {
6398			if shift >= 64 {
6399				return ErrIntOverflowLogproto
6400			}
6401			if iNdEx >= l {
6402				return io.ErrUnexpectedEOF
6403			}
6404			b := dAtA[iNdEx]
6405			iNdEx++
6406			wire |= uint64(b&0x7F) << shift
6407			if b < 0x80 {
6408				break
6409			}
6410		}
6411		fieldNum := int32(wire >> 3)
6412		wireType := int(wire & 0x7)
6413		if wireType == 4 {
6414			return fmt.Errorf("proto: Series: wiretype end group for non-group")
6415		}
6416		if fieldNum <= 0 {
6417			return fmt.Errorf("proto: Series: illegal tag %d (wire type %d)", fieldNum, wire)
6418		}
6419		switch fieldNum {
6420		case 1:
6421			if wireType != 2 {
6422				return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType)
6423			}
6424			var stringLen uint64
6425			for shift := uint(0); ; shift += 7 {
6426				if shift >= 64 {
6427					return ErrIntOverflowLogproto
6428				}
6429				if iNdEx >= l {
6430					return io.ErrUnexpectedEOF
6431				}
6432				b := dAtA[iNdEx]
6433				iNdEx++
6434				stringLen |= uint64(b&0x7F) << shift
6435				if b < 0x80 {
6436					break
6437				}
6438			}
6439			intStringLen := int(stringLen)
6440			if intStringLen < 0 {
6441				return ErrInvalidLengthLogproto
6442			}
6443			postIndex := iNdEx + intStringLen
6444			if postIndex < 0 {
6445				return ErrInvalidLengthLogproto
6446			}
6447			if postIndex > l {
6448				return io.ErrUnexpectedEOF
6449			}
6450			m.Labels = string(dAtA[iNdEx:postIndex])
6451			iNdEx = postIndex
6452		case 2:
6453			if wireType != 2 {
6454				return fmt.Errorf("proto: wrong wireType = %d for field Samples", wireType)
6455			}
6456			var msglen int
6457			for shift := uint(0); ; shift += 7 {
6458				if shift >= 64 {
6459					return ErrIntOverflowLogproto
6460				}
6461				if iNdEx >= l {
6462					return io.ErrUnexpectedEOF
6463				}
6464				b := dAtA[iNdEx]
6465				iNdEx++
6466				msglen |= int(b&0x7F) << shift
6467				if b < 0x80 {
6468					break
6469				}
6470			}
6471			if msglen < 0 {
6472				return ErrInvalidLengthLogproto
6473			}
6474			postIndex := iNdEx + msglen
6475			if postIndex < 0 {
6476				return ErrInvalidLengthLogproto
6477			}
6478			if postIndex > l {
6479				return io.ErrUnexpectedEOF
6480			}
6481			m.Samples = append(m.Samples, Sample{})
6482			if err := m.Samples[len(m.Samples)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
6483				return err
6484			}
6485			iNdEx = postIndex
6486		default:
6487			iNdEx = preIndex
6488			skippy, err := skipLogproto(dAtA[iNdEx:])
6489			if err != nil {
6490				return err
6491			}
6492			if skippy < 0 {
6493				return ErrInvalidLengthLogproto
6494			}
6495			if (iNdEx + skippy) < 0 {
6496				return ErrInvalidLengthLogproto
6497			}
6498			if (iNdEx + skippy) > l {
6499				return io.ErrUnexpectedEOF
6500			}
6501			iNdEx += skippy
6502		}
6503	}
6504
6505	if iNdEx > l {
6506		return io.ErrUnexpectedEOF
6507	}
6508	return nil
6509}
6510func (m *TailRequest) Unmarshal(dAtA []byte) error {
6511	l := len(dAtA)
6512	iNdEx := 0
6513	for iNdEx < l {
6514		preIndex := iNdEx
6515		var wire uint64
6516		for shift := uint(0); ; shift += 7 {
6517			if shift >= 64 {
6518				return ErrIntOverflowLogproto
6519			}
6520			if iNdEx >= l {
6521				return io.ErrUnexpectedEOF
6522			}
6523			b := dAtA[iNdEx]
6524			iNdEx++
6525			wire |= uint64(b&0x7F) << shift
6526			if b < 0x80 {
6527				break
6528			}
6529		}
6530		fieldNum := int32(wire >> 3)
6531		wireType := int(wire & 0x7)
6532		if wireType == 4 {
6533			return fmt.Errorf("proto: TailRequest: wiretype end group for non-group")
6534		}
6535		if fieldNum <= 0 {
6536			return fmt.Errorf("proto: TailRequest: illegal tag %d (wire type %d)", fieldNum, wire)
6537		}
6538		switch fieldNum {
6539		case 1:
6540			if wireType != 2 {
6541				return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType)
6542			}
6543			var stringLen uint64
6544			for shift := uint(0); ; shift += 7 {
6545				if shift >= 64 {
6546					return ErrIntOverflowLogproto
6547				}
6548				if iNdEx >= l {
6549					return io.ErrUnexpectedEOF
6550				}
6551				b := dAtA[iNdEx]
6552				iNdEx++
6553				stringLen |= uint64(b&0x7F) << shift
6554				if b < 0x80 {
6555					break
6556				}
6557			}
6558			intStringLen := int(stringLen)
6559			if intStringLen < 0 {
6560				return ErrInvalidLengthLogproto
6561			}
6562			postIndex := iNdEx + intStringLen
6563			if postIndex < 0 {
6564				return ErrInvalidLengthLogproto
6565			}
6566			if postIndex > l {
6567				return io.ErrUnexpectedEOF
6568			}
6569			m.Query = string(dAtA[iNdEx:postIndex])
6570			iNdEx = postIndex
6571		case 3:
6572			if wireType != 0 {
6573				return fmt.Errorf("proto: wrong wireType = %d for field DelayFor", wireType)
6574			}
6575			m.DelayFor = 0
6576			for shift := uint(0); ; shift += 7 {
6577				if shift >= 64 {
6578					return ErrIntOverflowLogproto
6579				}
6580				if iNdEx >= l {
6581					return io.ErrUnexpectedEOF
6582				}
6583				b := dAtA[iNdEx]
6584				iNdEx++
6585				m.DelayFor |= uint32(b&0x7F) << shift
6586				if b < 0x80 {
6587					break
6588				}
6589			}
6590		case 4:
6591			if wireType != 0 {
6592				return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType)
6593			}
6594			m.Limit = 0
6595			for shift := uint(0); ; shift += 7 {
6596				if shift >= 64 {
6597					return ErrIntOverflowLogproto
6598				}
6599				if iNdEx >= l {
6600					return io.ErrUnexpectedEOF
6601				}
6602				b := dAtA[iNdEx]
6603				iNdEx++
6604				m.Limit |= uint32(b&0x7F) << shift
6605				if b < 0x80 {
6606					break
6607				}
6608			}
6609		case 5:
6610			if wireType != 2 {
6611				return fmt.Errorf("proto: wrong wireType = %d for field Start", wireType)
6612			}
6613			var msglen int
6614			for shift := uint(0); ; shift += 7 {
6615				if shift >= 64 {
6616					return ErrIntOverflowLogproto
6617				}
6618				if iNdEx >= l {
6619					return io.ErrUnexpectedEOF
6620				}
6621				b := dAtA[iNdEx]
6622				iNdEx++
6623				msglen |= int(b&0x7F) << shift
6624				if b < 0x80 {
6625					break
6626				}
6627			}
6628			if msglen < 0 {
6629				return ErrInvalidLengthLogproto
6630			}
6631			postIndex := iNdEx + msglen
6632			if postIndex < 0 {
6633				return ErrInvalidLengthLogproto
6634			}
6635			if postIndex > l {
6636				return io.ErrUnexpectedEOF
6637			}
6638			if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.Start, dAtA[iNdEx:postIndex]); err != nil {
6639				return err
6640			}
6641			iNdEx = postIndex
6642		default:
6643			iNdEx = preIndex
6644			skippy, err := skipLogproto(dAtA[iNdEx:])
6645			if err != nil {
6646				return err
6647			}
6648			if skippy < 0 {
6649				return ErrInvalidLengthLogproto
6650			}
6651			if (iNdEx + skippy) < 0 {
6652				return ErrInvalidLengthLogproto
6653			}
6654			if (iNdEx + skippy) > l {
6655				return io.ErrUnexpectedEOF
6656			}
6657			iNdEx += skippy
6658		}
6659	}
6660
6661	if iNdEx > l {
6662		return io.ErrUnexpectedEOF
6663	}
6664	return nil
6665}
6666func (m *TailResponse) Unmarshal(dAtA []byte) error {
6667	l := len(dAtA)
6668	iNdEx := 0
6669	for iNdEx < l {
6670		preIndex := iNdEx
6671		var wire uint64
6672		for shift := uint(0); ; shift += 7 {
6673			if shift >= 64 {
6674				return ErrIntOverflowLogproto
6675			}
6676			if iNdEx >= l {
6677				return io.ErrUnexpectedEOF
6678			}
6679			b := dAtA[iNdEx]
6680			iNdEx++
6681			wire |= uint64(b&0x7F) << shift
6682			if b < 0x80 {
6683				break
6684			}
6685		}
6686		fieldNum := int32(wire >> 3)
6687		wireType := int(wire & 0x7)
6688		if wireType == 4 {
6689			return fmt.Errorf("proto: TailResponse: wiretype end group for non-group")
6690		}
6691		if fieldNum <= 0 {
6692			return fmt.Errorf("proto: TailResponse: illegal tag %d (wire type %d)", fieldNum, wire)
6693		}
6694		switch fieldNum {
6695		case 1:
6696			if wireType != 2 {
6697				return fmt.Errorf("proto: wrong wireType = %d for field Stream", wireType)
6698			}
6699			var msglen int
6700			for shift := uint(0); ; shift += 7 {
6701				if shift >= 64 {
6702					return ErrIntOverflowLogproto
6703				}
6704				if iNdEx >= l {
6705					return io.ErrUnexpectedEOF
6706				}
6707				b := dAtA[iNdEx]
6708				iNdEx++
6709				msglen |= int(b&0x7F) << shift
6710				if b < 0x80 {
6711					break
6712				}
6713			}
6714			if msglen < 0 {
6715				return ErrInvalidLengthLogproto
6716			}
6717			postIndex := iNdEx + msglen
6718			if postIndex < 0 {
6719				return ErrInvalidLengthLogproto
6720			}
6721			if postIndex > l {
6722				return io.ErrUnexpectedEOF
6723			}
6724			if m.Stream == nil {
6725				m.Stream = &Stream{}
6726			}
6727			if err := m.Stream.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
6728				return err
6729			}
6730			iNdEx = postIndex
6731		case 2:
6732			if wireType != 2 {
6733				return fmt.Errorf("proto: wrong wireType = %d for field DroppedStreams", wireType)
6734			}
6735			var msglen int
6736			for shift := uint(0); ; shift += 7 {
6737				if shift >= 64 {
6738					return ErrIntOverflowLogproto
6739				}
6740				if iNdEx >= l {
6741					return io.ErrUnexpectedEOF
6742				}
6743				b := dAtA[iNdEx]
6744				iNdEx++
6745				msglen |= int(b&0x7F) << shift
6746				if b < 0x80 {
6747					break
6748				}
6749			}
6750			if msglen < 0 {
6751				return ErrInvalidLengthLogproto
6752			}
6753			postIndex := iNdEx + msglen
6754			if postIndex < 0 {
6755				return ErrInvalidLengthLogproto
6756			}
6757			if postIndex > l {
6758				return io.ErrUnexpectedEOF
6759			}
6760			m.DroppedStreams = append(m.DroppedStreams, &DroppedStream{})
6761			if err := m.DroppedStreams[len(m.DroppedStreams)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
6762				return err
6763			}
6764			iNdEx = postIndex
6765		default:
6766			iNdEx = preIndex
6767			skippy, err := skipLogproto(dAtA[iNdEx:])
6768			if err != nil {
6769				return err
6770			}
6771			if skippy < 0 {
6772				return ErrInvalidLengthLogproto
6773			}
6774			if (iNdEx + skippy) < 0 {
6775				return ErrInvalidLengthLogproto
6776			}
6777			if (iNdEx + skippy) > l {
6778				return io.ErrUnexpectedEOF
6779			}
6780			iNdEx += skippy
6781		}
6782	}
6783
6784	if iNdEx > l {
6785		return io.ErrUnexpectedEOF
6786	}
6787	return nil
6788}
6789func (m *SeriesRequest) Unmarshal(dAtA []byte) error {
6790	l := len(dAtA)
6791	iNdEx := 0
6792	for iNdEx < l {
6793		preIndex := iNdEx
6794		var wire uint64
6795		for shift := uint(0); ; shift += 7 {
6796			if shift >= 64 {
6797				return ErrIntOverflowLogproto
6798			}
6799			if iNdEx >= l {
6800				return io.ErrUnexpectedEOF
6801			}
6802			b := dAtA[iNdEx]
6803			iNdEx++
6804			wire |= uint64(b&0x7F) << shift
6805			if b < 0x80 {
6806				break
6807			}
6808		}
6809		fieldNum := int32(wire >> 3)
6810		wireType := int(wire & 0x7)
6811		if wireType == 4 {
6812			return fmt.Errorf("proto: SeriesRequest: wiretype end group for non-group")
6813		}
6814		if fieldNum <= 0 {
6815			return fmt.Errorf("proto: SeriesRequest: illegal tag %d (wire type %d)", fieldNum, wire)
6816		}
6817		switch fieldNum {
6818		case 1:
6819			if wireType != 2 {
6820				return fmt.Errorf("proto: wrong wireType = %d for field Start", wireType)
6821			}
6822			var msglen int
6823			for shift := uint(0); ; shift += 7 {
6824				if shift >= 64 {
6825					return ErrIntOverflowLogproto
6826				}
6827				if iNdEx >= l {
6828					return io.ErrUnexpectedEOF
6829				}
6830				b := dAtA[iNdEx]
6831				iNdEx++
6832				msglen |= int(b&0x7F) << shift
6833				if b < 0x80 {
6834					break
6835				}
6836			}
6837			if msglen < 0 {
6838				return ErrInvalidLengthLogproto
6839			}
6840			postIndex := iNdEx + msglen
6841			if postIndex < 0 {
6842				return ErrInvalidLengthLogproto
6843			}
6844			if postIndex > l {
6845				return io.ErrUnexpectedEOF
6846			}
6847			if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.Start, dAtA[iNdEx:postIndex]); err != nil {
6848				return err
6849			}
6850			iNdEx = postIndex
6851		case 2:
6852			if wireType != 2 {
6853				return fmt.Errorf("proto: wrong wireType = %d for field End", wireType)
6854			}
6855			var msglen int
6856			for shift := uint(0); ; shift += 7 {
6857				if shift >= 64 {
6858					return ErrIntOverflowLogproto
6859				}
6860				if iNdEx >= l {
6861					return io.ErrUnexpectedEOF
6862				}
6863				b := dAtA[iNdEx]
6864				iNdEx++
6865				msglen |= int(b&0x7F) << shift
6866				if b < 0x80 {
6867					break
6868				}
6869			}
6870			if msglen < 0 {
6871				return ErrInvalidLengthLogproto
6872			}
6873			postIndex := iNdEx + msglen
6874			if postIndex < 0 {
6875				return ErrInvalidLengthLogproto
6876			}
6877			if postIndex > l {
6878				return io.ErrUnexpectedEOF
6879			}
6880			if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.End, dAtA[iNdEx:postIndex]); err != nil {
6881				return err
6882			}
6883			iNdEx = postIndex
6884		case 3:
6885			if wireType != 2 {
6886				return fmt.Errorf("proto: wrong wireType = %d for field Groups", wireType)
6887			}
6888			var stringLen uint64
6889			for shift := uint(0); ; shift += 7 {
6890				if shift >= 64 {
6891					return ErrIntOverflowLogproto
6892				}
6893				if iNdEx >= l {
6894					return io.ErrUnexpectedEOF
6895				}
6896				b := dAtA[iNdEx]
6897				iNdEx++
6898				stringLen |= uint64(b&0x7F) << shift
6899				if b < 0x80 {
6900					break
6901				}
6902			}
6903			intStringLen := int(stringLen)
6904			if intStringLen < 0 {
6905				return ErrInvalidLengthLogproto
6906			}
6907			postIndex := iNdEx + intStringLen
6908			if postIndex < 0 {
6909				return ErrInvalidLengthLogproto
6910			}
6911			if postIndex > l {
6912				return io.ErrUnexpectedEOF
6913			}
6914			m.Groups = append(m.Groups, string(dAtA[iNdEx:postIndex]))
6915			iNdEx = postIndex
6916		case 4:
6917			if wireType != 2 {
6918				return fmt.Errorf("proto: wrong wireType = %d for field Shards", wireType)
6919			}
6920			var stringLen uint64
6921			for shift := uint(0); ; shift += 7 {
6922				if shift >= 64 {
6923					return ErrIntOverflowLogproto
6924				}
6925				if iNdEx >= l {
6926					return io.ErrUnexpectedEOF
6927				}
6928				b := dAtA[iNdEx]
6929				iNdEx++
6930				stringLen |= uint64(b&0x7F) << shift
6931				if b < 0x80 {
6932					break
6933				}
6934			}
6935			intStringLen := int(stringLen)
6936			if intStringLen < 0 {
6937				return ErrInvalidLengthLogproto
6938			}
6939			postIndex := iNdEx + intStringLen
6940			if postIndex < 0 {
6941				return ErrInvalidLengthLogproto
6942			}
6943			if postIndex > l {
6944				return io.ErrUnexpectedEOF
6945			}
6946			m.Shards = append(m.Shards, string(dAtA[iNdEx:postIndex]))
6947			iNdEx = postIndex
6948		default:
6949			iNdEx = preIndex
6950			skippy, err := skipLogproto(dAtA[iNdEx:])
6951			if err != nil {
6952				return err
6953			}
6954			if skippy < 0 {
6955				return ErrInvalidLengthLogproto
6956			}
6957			if (iNdEx + skippy) < 0 {
6958				return ErrInvalidLengthLogproto
6959			}
6960			if (iNdEx + skippy) > l {
6961				return io.ErrUnexpectedEOF
6962			}
6963			iNdEx += skippy
6964		}
6965	}
6966
6967	if iNdEx > l {
6968		return io.ErrUnexpectedEOF
6969	}
6970	return nil
6971}
6972func (m *SeriesResponse) Unmarshal(dAtA []byte) error {
6973	l := len(dAtA)
6974	iNdEx := 0
6975	for iNdEx < l {
6976		preIndex := iNdEx
6977		var wire uint64
6978		for shift := uint(0); ; shift += 7 {
6979			if shift >= 64 {
6980				return ErrIntOverflowLogproto
6981			}
6982			if iNdEx >= l {
6983				return io.ErrUnexpectedEOF
6984			}
6985			b := dAtA[iNdEx]
6986			iNdEx++
6987			wire |= uint64(b&0x7F) << shift
6988			if b < 0x80 {
6989				break
6990			}
6991		}
6992		fieldNum := int32(wire >> 3)
6993		wireType := int(wire & 0x7)
6994		if wireType == 4 {
6995			return fmt.Errorf("proto: SeriesResponse: wiretype end group for non-group")
6996		}
6997		if fieldNum <= 0 {
6998			return fmt.Errorf("proto: SeriesResponse: illegal tag %d (wire type %d)", fieldNum, wire)
6999		}
7000		switch fieldNum {
7001		case 1:
7002			if wireType != 2 {
7003				return fmt.Errorf("proto: wrong wireType = %d for field Series", wireType)
7004			}
7005			var msglen int
7006			for shift := uint(0); ; shift += 7 {
7007				if shift >= 64 {
7008					return ErrIntOverflowLogproto
7009				}
7010				if iNdEx >= l {
7011					return io.ErrUnexpectedEOF
7012				}
7013				b := dAtA[iNdEx]
7014				iNdEx++
7015				msglen |= int(b&0x7F) << shift
7016				if b < 0x80 {
7017					break
7018				}
7019			}
7020			if msglen < 0 {
7021				return ErrInvalidLengthLogproto
7022			}
7023			postIndex := iNdEx + msglen
7024			if postIndex < 0 {
7025				return ErrInvalidLengthLogproto
7026			}
7027			if postIndex > l {
7028				return io.ErrUnexpectedEOF
7029			}
7030			m.Series = append(m.Series, SeriesIdentifier{})
7031			if err := m.Series[len(m.Series)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
7032				return err
7033			}
7034			iNdEx = postIndex
7035		default:
7036			iNdEx = preIndex
7037			skippy, err := skipLogproto(dAtA[iNdEx:])
7038			if err != nil {
7039				return err
7040			}
7041			if skippy < 0 {
7042				return ErrInvalidLengthLogproto
7043			}
7044			if (iNdEx + skippy) < 0 {
7045				return ErrInvalidLengthLogproto
7046			}
7047			if (iNdEx + skippy) > l {
7048				return io.ErrUnexpectedEOF
7049			}
7050			iNdEx += skippy
7051		}
7052	}
7053
7054	if iNdEx > l {
7055		return io.ErrUnexpectedEOF
7056	}
7057	return nil
7058}
7059func (m *SeriesIdentifier) Unmarshal(dAtA []byte) error {
7060	l := len(dAtA)
7061	iNdEx := 0
7062	for iNdEx < l {
7063		preIndex := iNdEx
7064		var wire uint64
7065		for shift := uint(0); ; shift += 7 {
7066			if shift >= 64 {
7067				return ErrIntOverflowLogproto
7068			}
7069			if iNdEx >= l {
7070				return io.ErrUnexpectedEOF
7071			}
7072			b := dAtA[iNdEx]
7073			iNdEx++
7074			wire |= uint64(b&0x7F) << shift
7075			if b < 0x80 {
7076				break
7077			}
7078		}
7079		fieldNum := int32(wire >> 3)
7080		wireType := int(wire & 0x7)
7081		if wireType == 4 {
7082			return fmt.Errorf("proto: SeriesIdentifier: wiretype end group for non-group")
7083		}
7084		if fieldNum <= 0 {
7085			return fmt.Errorf("proto: SeriesIdentifier: illegal tag %d (wire type %d)", fieldNum, wire)
7086		}
7087		switch fieldNum {
7088		case 1:
7089			if wireType != 2 {
7090				return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType)
7091			}
7092			var msglen int
7093			for shift := uint(0); ; shift += 7 {
7094				if shift >= 64 {
7095					return ErrIntOverflowLogproto
7096				}
7097				if iNdEx >= l {
7098					return io.ErrUnexpectedEOF
7099				}
7100				b := dAtA[iNdEx]
7101				iNdEx++
7102				msglen |= int(b&0x7F) << shift
7103				if b < 0x80 {
7104					break
7105				}
7106			}
7107			if msglen < 0 {
7108				return ErrInvalidLengthLogproto
7109			}
7110			postIndex := iNdEx + msglen
7111			if postIndex < 0 {
7112				return ErrInvalidLengthLogproto
7113			}
7114			if postIndex > l {
7115				return io.ErrUnexpectedEOF
7116			}
7117			if m.Labels == nil {
7118				m.Labels = make(map[string]string)
7119			}
7120			var mapkey string
7121			var mapvalue string
7122			for iNdEx < postIndex {
7123				entryPreIndex := iNdEx
7124				var wire uint64
7125				for shift := uint(0); ; shift += 7 {
7126					if shift >= 64 {
7127						return ErrIntOverflowLogproto
7128					}
7129					if iNdEx >= l {
7130						return io.ErrUnexpectedEOF
7131					}
7132					b := dAtA[iNdEx]
7133					iNdEx++
7134					wire |= uint64(b&0x7F) << shift
7135					if b < 0x80 {
7136						break
7137					}
7138				}
7139				fieldNum := int32(wire >> 3)
7140				if fieldNum == 1 {
7141					var stringLenmapkey uint64
7142					for shift := uint(0); ; shift += 7 {
7143						if shift >= 64 {
7144							return ErrIntOverflowLogproto
7145						}
7146						if iNdEx >= l {
7147							return io.ErrUnexpectedEOF
7148						}
7149						b := dAtA[iNdEx]
7150						iNdEx++
7151						stringLenmapkey |= uint64(b&0x7F) << shift
7152						if b < 0x80 {
7153							break
7154						}
7155					}
7156					intStringLenmapkey := int(stringLenmapkey)
7157					if intStringLenmapkey < 0 {
7158						return ErrInvalidLengthLogproto
7159					}
7160					postStringIndexmapkey := iNdEx + intStringLenmapkey
7161					if postStringIndexmapkey < 0 {
7162						return ErrInvalidLengthLogproto
7163					}
7164					if postStringIndexmapkey > l {
7165						return io.ErrUnexpectedEOF
7166					}
7167					mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
7168					iNdEx = postStringIndexmapkey
7169				} else if fieldNum == 2 {
7170					var stringLenmapvalue uint64
7171					for shift := uint(0); ; shift += 7 {
7172						if shift >= 64 {
7173							return ErrIntOverflowLogproto
7174						}
7175						if iNdEx >= l {
7176							return io.ErrUnexpectedEOF
7177						}
7178						b := dAtA[iNdEx]
7179						iNdEx++
7180						stringLenmapvalue |= uint64(b&0x7F) << shift
7181						if b < 0x80 {
7182							break
7183						}
7184					}
7185					intStringLenmapvalue := int(stringLenmapvalue)
7186					if intStringLenmapvalue < 0 {
7187						return ErrInvalidLengthLogproto
7188					}
7189					postStringIndexmapvalue := iNdEx + intStringLenmapvalue
7190					if postStringIndexmapvalue < 0 {
7191						return ErrInvalidLengthLogproto
7192					}
7193					if postStringIndexmapvalue > l {
7194						return io.ErrUnexpectedEOF
7195					}
7196					mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
7197					iNdEx = postStringIndexmapvalue
7198				} else {
7199					iNdEx = entryPreIndex
7200					skippy, err := skipLogproto(dAtA[iNdEx:])
7201					if err != nil {
7202						return err
7203					}
7204					if skippy < 0 {
7205						return ErrInvalidLengthLogproto
7206					}
7207					if (iNdEx + skippy) > postIndex {
7208						return io.ErrUnexpectedEOF
7209					}
7210					iNdEx += skippy
7211				}
7212			}
7213			m.Labels[mapkey] = mapvalue
7214			iNdEx = postIndex
7215		default:
7216			iNdEx = preIndex
7217			skippy, err := skipLogproto(dAtA[iNdEx:])
7218			if err != nil {
7219				return err
7220			}
7221			if skippy < 0 {
7222				return ErrInvalidLengthLogproto
7223			}
7224			if (iNdEx + skippy) < 0 {
7225				return ErrInvalidLengthLogproto
7226			}
7227			if (iNdEx + skippy) > l {
7228				return io.ErrUnexpectedEOF
7229			}
7230			iNdEx += skippy
7231		}
7232	}
7233
7234	if iNdEx > l {
7235		return io.ErrUnexpectedEOF
7236	}
7237	return nil
7238}
7239func (m *DroppedStream) Unmarshal(dAtA []byte) error {
7240	l := len(dAtA)
7241	iNdEx := 0
7242	for iNdEx < l {
7243		preIndex := iNdEx
7244		var wire uint64
7245		for shift := uint(0); ; shift += 7 {
7246			if shift >= 64 {
7247				return ErrIntOverflowLogproto
7248			}
7249			if iNdEx >= l {
7250				return io.ErrUnexpectedEOF
7251			}
7252			b := dAtA[iNdEx]
7253			iNdEx++
7254			wire |= uint64(b&0x7F) << shift
7255			if b < 0x80 {
7256				break
7257			}
7258		}
7259		fieldNum := int32(wire >> 3)
7260		wireType := int(wire & 0x7)
7261		if wireType == 4 {
7262			return fmt.Errorf("proto: DroppedStream: wiretype end group for non-group")
7263		}
7264		if fieldNum <= 0 {
7265			return fmt.Errorf("proto: DroppedStream: illegal tag %d (wire type %d)", fieldNum, wire)
7266		}
7267		switch fieldNum {
7268		case 1:
7269			if wireType != 2 {
7270				return fmt.Errorf("proto: wrong wireType = %d for field From", wireType)
7271			}
7272			var msglen int
7273			for shift := uint(0); ; shift += 7 {
7274				if shift >= 64 {
7275					return ErrIntOverflowLogproto
7276				}
7277				if iNdEx >= l {
7278					return io.ErrUnexpectedEOF
7279				}
7280				b := dAtA[iNdEx]
7281				iNdEx++
7282				msglen |= int(b&0x7F) << shift
7283				if b < 0x80 {
7284					break
7285				}
7286			}
7287			if msglen < 0 {
7288				return ErrInvalidLengthLogproto
7289			}
7290			postIndex := iNdEx + msglen
7291			if postIndex < 0 {
7292				return ErrInvalidLengthLogproto
7293			}
7294			if postIndex > l {
7295				return io.ErrUnexpectedEOF
7296			}
7297			if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.From, dAtA[iNdEx:postIndex]); err != nil {
7298				return err
7299			}
7300			iNdEx = postIndex
7301		case 2:
7302			if wireType != 2 {
7303				return fmt.Errorf("proto: wrong wireType = %d for field To", wireType)
7304			}
7305			var msglen int
7306			for shift := uint(0); ; shift += 7 {
7307				if shift >= 64 {
7308					return ErrIntOverflowLogproto
7309				}
7310				if iNdEx >= l {
7311					return io.ErrUnexpectedEOF
7312				}
7313				b := dAtA[iNdEx]
7314				iNdEx++
7315				msglen |= int(b&0x7F) << shift
7316				if b < 0x80 {
7317					break
7318				}
7319			}
7320			if msglen < 0 {
7321				return ErrInvalidLengthLogproto
7322			}
7323			postIndex := iNdEx + msglen
7324			if postIndex < 0 {
7325				return ErrInvalidLengthLogproto
7326			}
7327			if postIndex > l {
7328				return io.ErrUnexpectedEOF
7329			}
7330			if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.To, dAtA[iNdEx:postIndex]); err != nil {
7331				return err
7332			}
7333			iNdEx = postIndex
7334		case 3:
7335			if wireType != 2 {
7336				return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType)
7337			}
7338			var stringLen uint64
7339			for shift := uint(0); ; shift += 7 {
7340				if shift >= 64 {
7341					return ErrIntOverflowLogproto
7342				}
7343				if iNdEx >= l {
7344					return io.ErrUnexpectedEOF
7345				}
7346				b := dAtA[iNdEx]
7347				iNdEx++
7348				stringLen |= uint64(b&0x7F) << shift
7349				if b < 0x80 {
7350					break
7351				}
7352			}
7353			intStringLen := int(stringLen)
7354			if intStringLen < 0 {
7355				return ErrInvalidLengthLogproto
7356			}
7357			postIndex := iNdEx + intStringLen
7358			if postIndex < 0 {
7359				return ErrInvalidLengthLogproto
7360			}
7361			if postIndex > l {
7362				return io.ErrUnexpectedEOF
7363			}
7364			m.Labels = string(dAtA[iNdEx:postIndex])
7365			iNdEx = postIndex
7366		default:
7367			iNdEx = preIndex
7368			skippy, err := skipLogproto(dAtA[iNdEx:])
7369			if err != nil {
7370				return err
7371			}
7372			if skippy < 0 {
7373				return ErrInvalidLengthLogproto
7374			}
7375			if (iNdEx + skippy) < 0 {
7376				return ErrInvalidLengthLogproto
7377			}
7378			if (iNdEx + skippy) > l {
7379				return io.ErrUnexpectedEOF
7380			}
7381			iNdEx += skippy
7382		}
7383	}
7384
7385	if iNdEx > l {
7386		return io.ErrUnexpectedEOF
7387	}
7388	return nil
7389}
7390func (m *TimeSeriesChunk) Unmarshal(dAtA []byte) error {
7391	l := len(dAtA)
7392	iNdEx := 0
7393	for iNdEx < l {
7394		preIndex := iNdEx
7395		var wire uint64
7396		for shift := uint(0); ; shift += 7 {
7397			if shift >= 64 {
7398				return ErrIntOverflowLogproto
7399			}
7400			if iNdEx >= l {
7401				return io.ErrUnexpectedEOF
7402			}
7403			b := dAtA[iNdEx]
7404			iNdEx++
7405			wire |= uint64(b&0x7F) << shift
7406			if b < 0x80 {
7407				break
7408			}
7409		}
7410		fieldNum := int32(wire >> 3)
7411		wireType := int(wire & 0x7)
7412		if wireType == 4 {
7413			return fmt.Errorf("proto: TimeSeriesChunk: wiretype end group for non-group")
7414		}
7415		if fieldNum <= 0 {
7416			return fmt.Errorf("proto: TimeSeriesChunk: illegal tag %d (wire type %d)", fieldNum, wire)
7417		}
7418		switch fieldNum {
7419		case 1:
7420			if wireType != 2 {
7421				return fmt.Errorf("proto: wrong wireType = %d for field FromIngesterId", wireType)
7422			}
7423			var stringLen uint64
7424			for shift := uint(0); ; shift += 7 {
7425				if shift >= 64 {
7426					return ErrIntOverflowLogproto
7427				}
7428				if iNdEx >= l {
7429					return io.ErrUnexpectedEOF
7430				}
7431				b := dAtA[iNdEx]
7432				iNdEx++
7433				stringLen |= uint64(b&0x7F) << shift
7434				if b < 0x80 {
7435					break
7436				}
7437			}
7438			intStringLen := int(stringLen)
7439			if intStringLen < 0 {
7440				return ErrInvalidLengthLogproto
7441			}
7442			postIndex := iNdEx + intStringLen
7443			if postIndex < 0 {
7444				return ErrInvalidLengthLogproto
7445			}
7446			if postIndex > l {
7447				return io.ErrUnexpectedEOF
7448			}
7449			m.FromIngesterId = string(dAtA[iNdEx:postIndex])
7450			iNdEx = postIndex
7451		case 2:
7452			if wireType != 2 {
7453				return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType)
7454			}
7455			var stringLen uint64
7456			for shift := uint(0); ; shift += 7 {
7457				if shift >= 64 {
7458					return ErrIntOverflowLogproto
7459				}
7460				if iNdEx >= l {
7461					return io.ErrUnexpectedEOF
7462				}
7463				b := dAtA[iNdEx]
7464				iNdEx++
7465				stringLen |= uint64(b&0x7F) << shift
7466				if b < 0x80 {
7467					break
7468				}
7469			}
7470			intStringLen := int(stringLen)
7471			if intStringLen < 0 {
7472				return ErrInvalidLengthLogproto
7473			}
7474			postIndex := iNdEx + intStringLen
7475			if postIndex < 0 {
7476				return ErrInvalidLengthLogproto
7477			}
7478			if postIndex > l {
7479				return io.ErrUnexpectedEOF
7480			}
7481			m.UserId = string(dAtA[iNdEx:postIndex])
7482			iNdEx = postIndex
7483		case 3:
7484			if wireType != 2 {
7485				return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType)
7486			}
7487			var msglen int
7488			for shift := uint(0); ; shift += 7 {
7489				if shift >= 64 {
7490					return ErrIntOverflowLogproto
7491				}
7492				if iNdEx >= l {
7493					return io.ErrUnexpectedEOF
7494				}
7495				b := dAtA[iNdEx]
7496				iNdEx++
7497				msglen |= int(b&0x7F) << shift
7498				if b < 0x80 {
7499					break
7500				}
7501			}
7502			if msglen < 0 {
7503				return ErrInvalidLengthLogproto
7504			}
7505			postIndex := iNdEx + msglen
7506			if postIndex < 0 {
7507				return ErrInvalidLengthLogproto
7508			}
7509			if postIndex > l {
7510				return io.ErrUnexpectedEOF
7511			}
7512			m.Labels = append(m.Labels, &LabelPair{})
7513			if err := m.Labels[len(m.Labels)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
7514				return err
7515			}
7516			iNdEx = postIndex
7517		case 4:
7518			if wireType != 2 {
7519				return fmt.Errorf("proto: wrong wireType = %d for field Chunks", wireType)
7520			}
7521			var msglen int
7522			for shift := uint(0); ; shift += 7 {
7523				if shift >= 64 {
7524					return ErrIntOverflowLogproto
7525				}
7526				if iNdEx >= l {
7527					return io.ErrUnexpectedEOF
7528				}
7529				b := dAtA[iNdEx]
7530				iNdEx++
7531				msglen |= int(b&0x7F) << shift
7532				if b < 0x80 {
7533					break
7534				}
7535			}
7536			if msglen < 0 {
7537				return ErrInvalidLengthLogproto
7538			}
7539			postIndex := iNdEx + msglen
7540			if postIndex < 0 {
7541				return ErrInvalidLengthLogproto
7542			}
7543			if postIndex > l {
7544				return io.ErrUnexpectedEOF
7545			}
7546			m.Chunks = append(m.Chunks, &Chunk{})
7547			if err := m.Chunks[len(m.Chunks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
7548				return err
7549			}
7550			iNdEx = postIndex
7551		default:
7552			iNdEx = preIndex
7553			skippy, err := skipLogproto(dAtA[iNdEx:])
7554			if err != nil {
7555				return err
7556			}
7557			if skippy < 0 {
7558				return ErrInvalidLengthLogproto
7559			}
7560			if (iNdEx + skippy) < 0 {
7561				return ErrInvalidLengthLogproto
7562			}
7563			if (iNdEx + skippy) > l {
7564				return io.ErrUnexpectedEOF
7565			}
7566			iNdEx += skippy
7567		}
7568	}
7569
7570	if iNdEx > l {
7571		return io.ErrUnexpectedEOF
7572	}
7573	return nil
7574}
7575func (m *LabelPair) Unmarshal(dAtA []byte) error {
7576	l := len(dAtA)
7577	iNdEx := 0
7578	for iNdEx < l {
7579		preIndex := iNdEx
7580		var wire uint64
7581		for shift := uint(0); ; shift += 7 {
7582			if shift >= 64 {
7583				return ErrIntOverflowLogproto
7584			}
7585			if iNdEx >= l {
7586				return io.ErrUnexpectedEOF
7587			}
7588			b := dAtA[iNdEx]
7589			iNdEx++
7590			wire |= uint64(b&0x7F) << shift
7591			if b < 0x80 {
7592				break
7593			}
7594		}
7595		fieldNum := int32(wire >> 3)
7596		wireType := int(wire & 0x7)
7597		if wireType == 4 {
7598			return fmt.Errorf("proto: LabelPair: wiretype end group for non-group")
7599		}
7600		if fieldNum <= 0 {
7601			return fmt.Errorf("proto: LabelPair: illegal tag %d (wire type %d)", fieldNum, wire)
7602		}
7603		switch fieldNum {
7604		case 1:
7605			if wireType != 2 {
7606				return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
7607			}
7608			var stringLen uint64
7609			for shift := uint(0); ; shift += 7 {
7610				if shift >= 64 {
7611					return ErrIntOverflowLogproto
7612				}
7613				if iNdEx >= l {
7614					return io.ErrUnexpectedEOF
7615				}
7616				b := dAtA[iNdEx]
7617				iNdEx++
7618				stringLen |= uint64(b&0x7F) << shift
7619				if b < 0x80 {
7620					break
7621				}
7622			}
7623			intStringLen := int(stringLen)
7624			if intStringLen < 0 {
7625				return ErrInvalidLengthLogproto
7626			}
7627			postIndex := iNdEx + intStringLen
7628			if postIndex < 0 {
7629				return ErrInvalidLengthLogproto
7630			}
7631			if postIndex > l {
7632				return io.ErrUnexpectedEOF
7633			}
7634			m.Name = string(dAtA[iNdEx:postIndex])
7635			iNdEx = postIndex
7636		case 2:
7637			if wireType != 2 {
7638				return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
7639			}
7640			var stringLen uint64
7641			for shift := uint(0); ; shift += 7 {
7642				if shift >= 64 {
7643					return ErrIntOverflowLogproto
7644				}
7645				if iNdEx >= l {
7646					return io.ErrUnexpectedEOF
7647				}
7648				b := dAtA[iNdEx]
7649				iNdEx++
7650				stringLen |= uint64(b&0x7F) << shift
7651				if b < 0x80 {
7652					break
7653				}
7654			}
7655			intStringLen := int(stringLen)
7656			if intStringLen < 0 {
7657				return ErrInvalidLengthLogproto
7658			}
7659			postIndex := iNdEx + intStringLen
7660			if postIndex < 0 {
7661				return ErrInvalidLengthLogproto
7662			}
7663			if postIndex > l {
7664				return io.ErrUnexpectedEOF
7665			}
7666			m.Value = string(dAtA[iNdEx:postIndex])
7667			iNdEx = postIndex
7668		default:
7669			iNdEx = preIndex
7670			skippy, err := skipLogproto(dAtA[iNdEx:])
7671			if err != nil {
7672				return err
7673			}
7674			if skippy < 0 {
7675				return ErrInvalidLengthLogproto
7676			}
7677			if (iNdEx + skippy) < 0 {
7678				return ErrInvalidLengthLogproto
7679			}
7680			if (iNdEx + skippy) > l {
7681				return io.ErrUnexpectedEOF
7682			}
7683			iNdEx += skippy
7684		}
7685	}
7686
7687	if iNdEx > l {
7688		return io.ErrUnexpectedEOF
7689	}
7690	return nil
7691}
7692func (m *Chunk) Unmarshal(dAtA []byte) error {
7693	l := len(dAtA)
7694	iNdEx := 0
7695	for iNdEx < l {
7696		preIndex := iNdEx
7697		var wire uint64
7698		for shift := uint(0); ; shift += 7 {
7699			if shift >= 64 {
7700				return ErrIntOverflowLogproto
7701			}
7702			if iNdEx >= l {
7703				return io.ErrUnexpectedEOF
7704			}
7705			b := dAtA[iNdEx]
7706			iNdEx++
7707			wire |= uint64(b&0x7F) << shift
7708			if b < 0x80 {
7709				break
7710			}
7711		}
7712		fieldNum := int32(wire >> 3)
7713		wireType := int(wire & 0x7)
7714		if wireType == 4 {
7715			return fmt.Errorf("proto: Chunk: wiretype end group for non-group")
7716		}
7717		if fieldNum <= 0 {
7718			return fmt.Errorf("proto: Chunk: illegal tag %d (wire type %d)", fieldNum, wire)
7719		}
7720		switch fieldNum {
7721		case 1:
7722			if wireType != 2 {
7723				return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
7724			}
7725			var byteLen int
7726			for shift := uint(0); ; shift += 7 {
7727				if shift >= 64 {
7728					return ErrIntOverflowLogproto
7729				}
7730				if iNdEx >= l {
7731					return io.ErrUnexpectedEOF
7732				}
7733				b := dAtA[iNdEx]
7734				iNdEx++
7735				byteLen |= int(b&0x7F) << shift
7736				if b < 0x80 {
7737					break
7738				}
7739			}
7740			if byteLen < 0 {
7741				return ErrInvalidLengthLogproto
7742			}
7743			postIndex := iNdEx + byteLen
7744			if postIndex < 0 {
7745				return ErrInvalidLengthLogproto
7746			}
7747			if postIndex > l {
7748				return io.ErrUnexpectedEOF
7749			}
7750			m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...)
7751			if m.Data == nil {
7752				m.Data = []byte{}
7753			}
7754			iNdEx = postIndex
7755		default:
7756			iNdEx = preIndex
7757			skippy, err := skipLogproto(dAtA[iNdEx:])
7758			if err != nil {
7759				return err
7760			}
7761			if skippy < 0 {
7762				return ErrInvalidLengthLogproto
7763			}
7764			if (iNdEx + skippy) < 0 {
7765				return ErrInvalidLengthLogproto
7766			}
7767			if (iNdEx + skippy) > l {
7768				return io.ErrUnexpectedEOF
7769			}
7770			iNdEx += skippy
7771		}
7772	}
7773
7774	if iNdEx > l {
7775		return io.ErrUnexpectedEOF
7776	}
7777	return nil
7778}
7779func (m *TransferChunksResponse) Unmarshal(dAtA []byte) error {
7780	l := len(dAtA)
7781	iNdEx := 0
7782	for iNdEx < l {
7783		preIndex := iNdEx
7784		var wire uint64
7785		for shift := uint(0); ; shift += 7 {
7786			if shift >= 64 {
7787				return ErrIntOverflowLogproto
7788			}
7789			if iNdEx >= l {
7790				return io.ErrUnexpectedEOF
7791			}
7792			b := dAtA[iNdEx]
7793			iNdEx++
7794			wire |= uint64(b&0x7F) << shift
7795			if b < 0x80 {
7796				break
7797			}
7798		}
7799		fieldNum := int32(wire >> 3)
7800		wireType := int(wire & 0x7)
7801		if wireType == 4 {
7802			return fmt.Errorf("proto: TransferChunksResponse: wiretype end group for non-group")
7803		}
7804		if fieldNum <= 0 {
7805			return fmt.Errorf("proto: TransferChunksResponse: illegal tag %d (wire type %d)", fieldNum, wire)
7806		}
7807		switch fieldNum {
7808		default:
7809			iNdEx = preIndex
7810			skippy, err := skipLogproto(dAtA[iNdEx:])
7811			if err != nil {
7812				return err
7813			}
7814			if skippy < 0 {
7815				return ErrInvalidLengthLogproto
7816			}
7817			if (iNdEx + skippy) < 0 {
7818				return ErrInvalidLengthLogproto
7819			}
7820			if (iNdEx + skippy) > l {
7821				return io.ErrUnexpectedEOF
7822			}
7823			iNdEx += skippy
7824		}
7825	}
7826
7827	if iNdEx > l {
7828		return io.ErrUnexpectedEOF
7829	}
7830	return nil
7831}
7832func (m *TailersCountRequest) Unmarshal(dAtA []byte) error {
7833	l := len(dAtA)
7834	iNdEx := 0
7835	for iNdEx < l {
7836		preIndex := iNdEx
7837		var wire uint64
7838		for shift := uint(0); ; shift += 7 {
7839			if shift >= 64 {
7840				return ErrIntOverflowLogproto
7841			}
7842			if iNdEx >= l {
7843				return io.ErrUnexpectedEOF
7844			}
7845			b := dAtA[iNdEx]
7846			iNdEx++
7847			wire |= uint64(b&0x7F) << shift
7848			if b < 0x80 {
7849				break
7850			}
7851		}
7852		fieldNum := int32(wire >> 3)
7853		wireType := int(wire & 0x7)
7854		if wireType == 4 {
7855			return fmt.Errorf("proto: TailersCountRequest: wiretype end group for non-group")
7856		}
7857		if fieldNum <= 0 {
7858			return fmt.Errorf("proto: TailersCountRequest: illegal tag %d (wire type %d)", fieldNum, wire)
7859		}
7860		switch fieldNum {
7861		default:
7862			iNdEx = preIndex
7863			skippy, err := skipLogproto(dAtA[iNdEx:])
7864			if err != nil {
7865				return err
7866			}
7867			if skippy < 0 {
7868				return ErrInvalidLengthLogproto
7869			}
7870			if (iNdEx + skippy) < 0 {
7871				return ErrInvalidLengthLogproto
7872			}
7873			if (iNdEx + skippy) > l {
7874				return io.ErrUnexpectedEOF
7875			}
7876			iNdEx += skippy
7877		}
7878	}
7879
7880	if iNdEx > l {
7881		return io.ErrUnexpectedEOF
7882	}
7883	return nil
7884}
7885func (m *TailersCountResponse) Unmarshal(dAtA []byte) error {
7886	l := len(dAtA)
7887	iNdEx := 0
7888	for iNdEx < l {
7889		preIndex := iNdEx
7890		var wire uint64
7891		for shift := uint(0); ; shift += 7 {
7892			if shift >= 64 {
7893				return ErrIntOverflowLogproto
7894			}
7895			if iNdEx >= l {
7896				return io.ErrUnexpectedEOF
7897			}
7898			b := dAtA[iNdEx]
7899			iNdEx++
7900			wire |= uint64(b&0x7F) << shift
7901			if b < 0x80 {
7902				break
7903			}
7904		}
7905		fieldNum := int32(wire >> 3)
7906		wireType := int(wire & 0x7)
7907		if wireType == 4 {
7908			return fmt.Errorf("proto: TailersCountResponse: wiretype end group for non-group")
7909		}
7910		if fieldNum <= 0 {
7911			return fmt.Errorf("proto: TailersCountResponse: illegal tag %d (wire type %d)", fieldNum, wire)
7912		}
7913		switch fieldNum {
7914		case 1:
7915			if wireType != 0 {
7916				return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType)
7917			}
7918			m.Count = 0
7919			for shift := uint(0); ; shift += 7 {
7920				if shift >= 64 {
7921					return ErrIntOverflowLogproto
7922				}
7923				if iNdEx >= l {
7924					return io.ErrUnexpectedEOF
7925				}
7926				b := dAtA[iNdEx]
7927				iNdEx++
7928				m.Count |= uint32(b&0x7F) << shift
7929				if b < 0x80 {
7930					break
7931				}
7932			}
7933		default:
7934			iNdEx = preIndex
7935			skippy, err := skipLogproto(dAtA[iNdEx:])
7936			if err != nil {
7937				return err
7938			}
7939			if skippy < 0 {
7940				return ErrInvalidLengthLogproto
7941			}
7942			if (iNdEx + skippy) < 0 {
7943				return ErrInvalidLengthLogproto
7944			}
7945			if (iNdEx + skippy) > l {
7946				return io.ErrUnexpectedEOF
7947			}
7948			iNdEx += skippy
7949		}
7950	}
7951
7952	if iNdEx > l {
7953		return io.ErrUnexpectedEOF
7954	}
7955	return nil
7956}
7957func (m *GetChunkIDsRequest) Unmarshal(dAtA []byte) error {
7958	l := len(dAtA)
7959	iNdEx := 0
7960	for iNdEx < l {
7961		preIndex := iNdEx
7962		var wire uint64
7963		for shift := uint(0); ; shift += 7 {
7964			if shift >= 64 {
7965				return ErrIntOverflowLogproto
7966			}
7967			if iNdEx >= l {
7968				return io.ErrUnexpectedEOF
7969			}
7970			b := dAtA[iNdEx]
7971			iNdEx++
7972			wire |= uint64(b&0x7F) << shift
7973			if b < 0x80 {
7974				break
7975			}
7976		}
7977		fieldNum := int32(wire >> 3)
7978		wireType := int(wire & 0x7)
7979		if wireType == 4 {
7980			return fmt.Errorf("proto: GetChunkIDsRequest: wiretype end group for non-group")
7981		}
7982		if fieldNum <= 0 {
7983			return fmt.Errorf("proto: GetChunkIDsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
7984		}
7985		switch fieldNum {
7986		case 1:
7987			if wireType != 2 {
7988				return fmt.Errorf("proto: wrong wireType = %d for field Matchers", wireType)
7989			}
7990			var stringLen uint64
7991			for shift := uint(0); ; shift += 7 {
7992				if shift >= 64 {
7993					return ErrIntOverflowLogproto
7994				}
7995				if iNdEx >= l {
7996					return io.ErrUnexpectedEOF
7997				}
7998				b := dAtA[iNdEx]
7999				iNdEx++
8000				stringLen |= uint64(b&0x7F) << shift
8001				if b < 0x80 {
8002					break
8003				}
8004			}
8005			intStringLen := int(stringLen)
8006			if intStringLen < 0 {
8007				return ErrInvalidLengthLogproto
8008			}
8009			postIndex := iNdEx + intStringLen
8010			if postIndex < 0 {
8011				return ErrInvalidLengthLogproto
8012			}
8013			if postIndex > l {
8014				return io.ErrUnexpectedEOF
8015			}
8016			m.Matchers = string(dAtA[iNdEx:postIndex])
8017			iNdEx = postIndex
8018		case 2:
8019			if wireType != 2 {
8020				return fmt.Errorf("proto: wrong wireType = %d for field Start", wireType)
8021			}
8022			var msglen int
8023			for shift := uint(0); ; shift += 7 {
8024				if shift >= 64 {
8025					return ErrIntOverflowLogproto
8026				}
8027				if iNdEx >= l {
8028					return io.ErrUnexpectedEOF
8029				}
8030				b := dAtA[iNdEx]
8031				iNdEx++
8032				msglen |= int(b&0x7F) << shift
8033				if b < 0x80 {
8034					break
8035				}
8036			}
8037			if msglen < 0 {
8038				return ErrInvalidLengthLogproto
8039			}
8040			postIndex := iNdEx + msglen
8041			if postIndex < 0 {
8042				return ErrInvalidLengthLogproto
8043			}
8044			if postIndex > l {
8045				return io.ErrUnexpectedEOF
8046			}
8047			if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.Start, dAtA[iNdEx:postIndex]); err != nil {
8048				return err
8049			}
8050			iNdEx = postIndex
8051		case 3:
8052			if wireType != 2 {
8053				return fmt.Errorf("proto: wrong wireType = %d for field End", wireType)
8054			}
8055			var msglen int
8056			for shift := uint(0); ; shift += 7 {
8057				if shift >= 64 {
8058					return ErrIntOverflowLogproto
8059				}
8060				if iNdEx >= l {
8061					return io.ErrUnexpectedEOF
8062				}
8063				b := dAtA[iNdEx]
8064				iNdEx++
8065				msglen |= int(b&0x7F) << shift
8066				if b < 0x80 {
8067					break
8068				}
8069			}
8070			if msglen < 0 {
8071				return ErrInvalidLengthLogproto
8072			}
8073			postIndex := iNdEx + msglen
8074			if postIndex < 0 {
8075				return ErrInvalidLengthLogproto
8076			}
8077			if postIndex > l {
8078				return io.ErrUnexpectedEOF
8079			}
8080			if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.End, dAtA[iNdEx:postIndex]); err != nil {
8081				return err
8082			}
8083			iNdEx = postIndex
8084		default:
8085			iNdEx = preIndex
8086			skippy, err := skipLogproto(dAtA[iNdEx:])
8087			if err != nil {
8088				return err
8089			}
8090			if skippy < 0 {
8091				return ErrInvalidLengthLogproto
8092			}
8093			if (iNdEx + skippy) < 0 {
8094				return ErrInvalidLengthLogproto
8095			}
8096			if (iNdEx + skippy) > l {
8097				return io.ErrUnexpectedEOF
8098			}
8099			iNdEx += skippy
8100		}
8101	}
8102
8103	if iNdEx > l {
8104		return io.ErrUnexpectedEOF
8105	}
8106	return nil
8107}
8108func (m *GetChunkIDsResponse) Unmarshal(dAtA []byte) error {
8109	l := len(dAtA)
8110	iNdEx := 0
8111	for iNdEx < l {
8112		preIndex := iNdEx
8113		var wire uint64
8114		for shift := uint(0); ; shift += 7 {
8115			if shift >= 64 {
8116				return ErrIntOverflowLogproto
8117			}
8118			if iNdEx >= l {
8119				return io.ErrUnexpectedEOF
8120			}
8121			b := dAtA[iNdEx]
8122			iNdEx++
8123			wire |= uint64(b&0x7F) << shift
8124			if b < 0x80 {
8125				break
8126			}
8127		}
8128		fieldNum := int32(wire >> 3)
8129		wireType := int(wire & 0x7)
8130		if wireType == 4 {
8131			return fmt.Errorf("proto: GetChunkIDsResponse: wiretype end group for non-group")
8132		}
8133		if fieldNum <= 0 {
8134			return fmt.Errorf("proto: GetChunkIDsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
8135		}
8136		switch fieldNum {
8137		case 1:
8138			if wireType != 2 {
8139				return fmt.Errorf("proto: wrong wireType = %d for field ChunkIDs", wireType)
8140			}
8141			var stringLen uint64
8142			for shift := uint(0); ; shift += 7 {
8143				if shift >= 64 {
8144					return ErrIntOverflowLogproto
8145				}
8146				if iNdEx >= l {
8147					return io.ErrUnexpectedEOF
8148				}
8149				b := dAtA[iNdEx]
8150				iNdEx++
8151				stringLen |= uint64(b&0x7F) << shift
8152				if b < 0x80 {
8153					break
8154				}
8155			}
8156			intStringLen := int(stringLen)
8157			if intStringLen < 0 {
8158				return ErrInvalidLengthLogproto
8159			}
8160			postIndex := iNdEx + intStringLen
8161			if postIndex < 0 {
8162				return ErrInvalidLengthLogproto
8163			}
8164			if postIndex > l {
8165				return io.ErrUnexpectedEOF
8166			}
8167			m.ChunkIDs = append(m.ChunkIDs, string(dAtA[iNdEx:postIndex]))
8168			iNdEx = postIndex
8169		default:
8170			iNdEx = preIndex
8171			skippy, err := skipLogproto(dAtA[iNdEx:])
8172			if err != nil {
8173				return err
8174			}
8175			if skippy < 0 {
8176				return ErrInvalidLengthLogproto
8177			}
8178			if (iNdEx + skippy) < 0 {
8179				return ErrInvalidLengthLogproto
8180			}
8181			if (iNdEx + skippy) > l {
8182				return io.ErrUnexpectedEOF
8183			}
8184			iNdEx += skippy
8185		}
8186	}
8187
8188	if iNdEx > l {
8189		return io.ErrUnexpectedEOF
8190	}
8191	return nil
8192}
8193func skipLogproto(dAtA []byte) (n int, err error) {
8194	l := len(dAtA)
8195	iNdEx := 0
8196	for iNdEx < l {
8197		var wire uint64
8198		for shift := uint(0); ; shift += 7 {
8199			if shift >= 64 {
8200				return 0, ErrIntOverflowLogproto
8201			}
8202			if iNdEx >= l {
8203				return 0, io.ErrUnexpectedEOF
8204			}
8205			b := dAtA[iNdEx]
8206			iNdEx++
8207			wire |= (uint64(b) & 0x7F) << shift
8208			if b < 0x80 {
8209				break
8210			}
8211		}
8212		wireType := int(wire & 0x7)
8213		switch wireType {
8214		case 0:
8215			for shift := uint(0); ; shift += 7 {
8216				if shift >= 64 {
8217					return 0, ErrIntOverflowLogproto
8218				}
8219				if iNdEx >= l {
8220					return 0, io.ErrUnexpectedEOF
8221				}
8222				iNdEx++
8223				if dAtA[iNdEx-1] < 0x80 {
8224					break
8225				}
8226			}
8227			return iNdEx, nil
8228		case 1:
8229			iNdEx += 8
8230			return iNdEx, nil
8231		case 2:
8232			var length int
8233			for shift := uint(0); ; shift += 7 {
8234				if shift >= 64 {
8235					return 0, ErrIntOverflowLogproto
8236				}
8237				if iNdEx >= l {
8238					return 0, io.ErrUnexpectedEOF
8239				}
8240				b := dAtA[iNdEx]
8241				iNdEx++
8242				length |= (int(b) & 0x7F) << shift
8243				if b < 0x80 {
8244					break
8245				}
8246			}
8247			if length < 0 {
8248				return 0, ErrInvalidLengthLogproto
8249			}
8250			iNdEx += length
8251			if iNdEx < 0 {
8252				return 0, ErrInvalidLengthLogproto
8253			}
8254			return iNdEx, nil
8255		case 3:
8256			for {
8257				var innerWire uint64
8258				var start int = iNdEx
8259				for shift := uint(0); ; shift += 7 {
8260					if shift >= 64 {
8261						return 0, ErrIntOverflowLogproto
8262					}
8263					if iNdEx >= l {
8264						return 0, io.ErrUnexpectedEOF
8265					}
8266					b := dAtA[iNdEx]
8267					iNdEx++
8268					innerWire |= (uint64(b) & 0x7F) << shift
8269					if b < 0x80 {
8270						break
8271					}
8272				}
8273				innerWireType := int(innerWire & 0x7)
8274				if innerWireType == 4 {
8275					break
8276				}
8277				next, err := skipLogproto(dAtA[start:])
8278				if err != nil {
8279					return 0, err
8280				}
8281				iNdEx = start + next
8282				if iNdEx < 0 {
8283					return 0, ErrInvalidLengthLogproto
8284				}
8285			}
8286			return iNdEx, nil
8287		case 4:
8288			return iNdEx, nil
8289		case 5:
8290			iNdEx += 4
8291			return iNdEx, nil
8292		default:
8293			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
8294		}
8295	}
8296	panic("unreachable")
8297}
8298
8299var (
8300	ErrInvalidLengthLogproto = fmt.Errorf("proto: negative length found during unmarshaling")
8301	ErrIntOverflowLogproto   = fmt.Errorf("proto: integer overflow")
8302)
8303