github.com/yankunsam/loki/v2@v2.6.3-0.20220817130409-389df5235c27/pkg/logproto/logproto.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: pkg/logproto/logproto.proto
     3  
     4  package logproto
     5  
     6  import (
     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  	stats "github.com/grafana/loki/pkg/logqlmodel/stats"
    17  	github_com_prometheus_common_model "github.com/prometheus/common/model"
    18  	grpc "google.golang.org/grpc"
    19  	codes "google.golang.org/grpc/codes"
    20  	status "google.golang.org/grpc/status"
    21  	io "io"
    22  	math "math"
    23  	math_bits "math/bits"
    24  	reflect "reflect"
    25  	strconv "strconv"
    26  	strings "strings"
    27  	time "time"
    28  )
    29  
    30  // Reference imports to suppress errors if they are not otherwise used.
    31  var _ = proto.Marshal
    32  var _ = fmt.Errorf
    33  var _ = math.Inf
    34  var _ = time.Kitchen
    35  
    36  // This is a compile-time assertion to ensure that this generated file
    37  // is compatible with the proto package it is being compiled against.
    38  // A compilation error at this line likely means your copy of the
    39  // proto package needs to be updated.
    40  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    41  
    42  type Direction int32
    43  
    44  const (
    45  	FORWARD  Direction = 0
    46  	BACKWARD Direction = 1
    47  )
    48  
    49  var Direction_name = map[int32]string{
    50  	0: "FORWARD",
    51  	1: "BACKWARD",
    52  }
    53  
    54  var Direction_value = map[string]int32{
    55  	"FORWARD":  0,
    56  	"BACKWARD": 1,
    57  }
    58  
    59  func (Direction) EnumDescriptor() ([]byte, []int) {
    60  	return fileDescriptor_c28a5f14f1f4c79a, []int{0}
    61  }
    62  
    63  type PushRequest struct {
    64  	Streams []Stream `protobuf:"bytes,1,rep,name=streams,proto3,customtype=Stream" json:"streams"`
    65  }
    66  
    67  func (m *PushRequest) Reset()      { *m = PushRequest{} }
    68  func (*PushRequest) ProtoMessage() {}
    69  func (*PushRequest) Descriptor() ([]byte, []int) {
    70  	return fileDescriptor_c28a5f14f1f4c79a, []int{0}
    71  }
    72  func (m *PushRequest) XXX_Unmarshal(b []byte) error {
    73  	return m.Unmarshal(b)
    74  }
    75  func (m *PushRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    76  	if deterministic {
    77  		return xxx_messageInfo_PushRequest.Marshal(b, m, deterministic)
    78  	} else {
    79  		b = b[:cap(b)]
    80  		n, err := m.MarshalToSizedBuffer(b)
    81  		if err != nil {
    82  			return nil, err
    83  		}
    84  		return b[:n], nil
    85  	}
    86  }
    87  func (m *PushRequest) XXX_Merge(src proto.Message) {
    88  	xxx_messageInfo_PushRequest.Merge(m, src)
    89  }
    90  func (m *PushRequest) XXX_Size() int {
    91  	return m.Size()
    92  }
    93  func (m *PushRequest) XXX_DiscardUnknown() {
    94  	xxx_messageInfo_PushRequest.DiscardUnknown(m)
    95  }
    96  
    97  var xxx_messageInfo_PushRequest proto.InternalMessageInfo
    98  
    99  type PushResponse struct {
   100  }
   101  
   102  func (m *PushResponse) Reset()      { *m = PushResponse{} }
   103  func (*PushResponse) ProtoMessage() {}
   104  func (*PushResponse) Descriptor() ([]byte, []int) {
   105  	return fileDescriptor_c28a5f14f1f4c79a, []int{1}
   106  }
   107  func (m *PushResponse) XXX_Unmarshal(b []byte) error {
   108  	return m.Unmarshal(b)
   109  }
   110  func (m *PushResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   111  	if deterministic {
   112  		return xxx_messageInfo_PushResponse.Marshal(b, m, deterministic)
   113  	} else {
   114  		b = b[:cap(b)]
   115  		n, err := m.MarshalToSizedBuffer(b)
   116  		if err != nil {
   117  			return nil, err
   118  		}
   119  		return b[:n], nil
   120  	}
   121  }
   122  func (m *PushResponse) XXX_Merge(src proto.Message) {
   123  	xxx_messageInfo_PushResponse.Merge(m, src)
   124  }
   125  func (m *PushResponse) XXX_Size() int {
   126  	return m.Size()
   127  }
   128  func (m *PushResponse) XXX_DiscardUnknown() {
   129  	xxx_messageInfo_PushResponse.DiscardUnknown(m)
   130  }
   131  
   132  var xxx_messageInfo_PushResponse proto.InternalMessageInfo
   133  
   134  type QueryRequest struct {
   135  	Selector  string    `protobuf:"bytes,1,opt,name=selector,proto3" json:"selector,omitempty"`
   136  	Limit     uint32    `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
   137  	Start     time.Time `protobuf:"bytes,3,opt,name=start,proto3,stdtime" json:"start"`
   138  	End       time.Time `protobuf:"bytes,4,opt,name=end,proto3,stdtime" json:"end"`
   139  	Direction Direction `protobuf:"varint,5,opt,name=direction,proto3,enum=logproto.Direction" json:"direction,omitempty"`
   140  	Shards    []string  `protobuf:"bytes,7,rep,name=shards,proto3" json:"shards,omitempty"`
   141  	Deletes   []*Delete `protobuf:"bytes,8,rep,name=deletes,proto3" json:"deletes,omitempty"`
   142  }
   143  
   144  func (m *QueryRequest) Reset()      { *m = QueryRequest{} }
   145  func (*QueryRequest) ProtoMessage() {}
   146  func (*QueryRequest) Descriptor() ([]byte, []int) {
   147  	return fileDescriptor_c28a5f14f1f4c79a, []int{2}
   148  }
   149  func (m *QueryRequest) XXX_Unmarshal(b []byte) error {
   150  	return m.Unmarshal(b)
   151  }
   152  func (m *QueryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   153  	if deterministic {
   154  		return xxx_messageInfo_QueryRequest.Marshal(b, m, deterministic)
   155  	} else {
   156  		b = b[:cap(b)]
   157  		n, err := m.MarshalToSizedBuffer(b)
   158  		if err != nil {
   159  			return nil, err
   160  		}
   161  		return b[:n], nil
   162  	}
   163  }
   164  func (m *QueryRequest) XXX_Merge(src proto.Message) {
   165  	xxx_messageInfo_QueryRequest.Merge(m, src)
   166  }
   167  func (m *QueryRequest) XXX_Size() int {
   168  	return m.Size()
   169  }
   170  func (m *QueryRequest) XXX_DiscardUnknown() {
   171  	xxx_messageInfo_QueryRequest.DiscardUnknown(m)
   172  }
   173  
   174  var xxx_messageInfo_QueryRequest proto.InternalMessageInfo
   175  
   176  func (m *QueryRequest) GetSelector() string {
   177  	if m != nil {
   178  		return m.Selector
   179  	}
   180  	return ""
   181  }
   182  
   183  func (m *QueryRequest) GetLimit() uint32 {
   184  	if m != nil {
   185  		return m.Limit
   186  	}
   187  	return 0
   188  }
   189  
   190  func (m *QueryRequest) GetStart() time.Time {
   191  	if m != nil {
   192  		return m.Start
   193  	}
   194  	return time.Time{}
   195  }
   196  
   197  func (m *QueryRequest) GetEnd() time.Time {
   198  	if m != nil {
   199  		return m.End
   200  	}
   201  	return time.Time{}
   202  }
   203  
   204  func (m *QueryRequest) GetDirection() Direction {
   205  	if m != nil {
   206  		return m.Direction
   207  	}
   208  	return FORWARD
   209  }
   210  
   211  func (m *QueryRequest) GetShards() []string {
   212  	if m != nil {
   213  		return m.Shards
   214  	}
   215  	return nil
   216  }
   217  
   218  func (m *QueryRequest) GetDeletes() []*Delete {
   219  	if m != nil {
   220  		return m.Deletes
   221  	}
   222  	return nil
   223  }
   224  
   225  type SampleQueryRequest struct {
   226  	Selector string    `protobuf:"bytes,1,opt,name=selector,proto3" json:"selector,omitempty"`
   227  	Start    time.Time `protobuf:"bytes,2,opt,name=start,proto3,stdtime" json:"start"`
   228  	End      time.Time `protobuf:"bytes,3,opt,name=end,proto3,stdtime" json:"end"`
   229  	Shards   []string  `protobuf:"bytes,4,rep,name=shards,proto3" json:"shards,omitempty"`
   230  	Deletes  []*Delete `protobuf:"bytes,5,rep,name=deletes,proto3" json:"deletes,omitempty"`
   231  }
   232  
   233  func (m *SampleQueryRequest) Reset()      { *m = SampleQueryRequest{} }
   234  func (*SampleQueryRequest) ProtoMessage() {}
   235  func (*SampleQueryRequest) Descriptor() ([]byte, []int) {
   236  	return fileDescriptor_c28a5f14f1f4c79a, []int{3}
   237  }
   238  func (m *SampleQueryRequest) XXX_Unmarshal(b []byte) error {
   239  	return m.Unmarshal(b)
   240  }
   241  func (m *SampleQueryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   242  	if deterministic {
   243  		return xxx_messageInfo_SampleQueryRequest.Marshal(b, m, deterministic)
   244  	} else {
   245  		b = b[:cap(b)]
   246  		n, err := m.MarshalToSizedBuffer(b)
   247  		if err != nil {
   248  			return nil, err
   249  		}
   250  		return b[:n], nil
   251  	}
   252  }
   253  func (m *SampleQueryRequest) XXX_Merge(src proto.Message) {
   254  	xxx_messageInfo_SampleQueryRequest.Merge(m, src)
   255  }
   256  func (m *SampleQueryRequest) XXX_Size() int {
   257  	return m.Size()
   258  }
   259  func (m *SampleQueryRequest) XXX_DiscardUnknown() {
   260  	xxx_messageInfo_SampleQueryRequest.DiscardUnknown(m)
   261  }
   262  
   263  var xxx_messageInfo_SampleQueryRequest proto.InternalMessageInfo
   264  
   265  func (m *SampleQueryRequest) GetSelector() string {
   266  	if m != nil {
   267  		return m.Selector
   268  	}
   269  	return ""
   270  }
   271  
   272  func (m *SampleQueryRequest) GetStart() time.Time {
   273  	if m != nil {
   274  		return m.Start
   275  	}
   276  	return time.Time{}
   277  }
   278  
   279  func (m *SampleQueryRequest) GetEnd() time.Time {
   280  	if m != nil {
   281  		return m.End
   282  	}
   283  	return time.Time{}
   284  }
   285  
   286  func (m *SampleQueryRequest) GetShards() []string {
   287  	if m != nil {
   288  		return m.Shards
   289  	}
   290  	return nil
   291  }
   292  
   293  func (m *SampleQueryRequest) GetDeletes() []*Delete {
   294  	if m != nil {
   295  		return m.Deletes
   296  	}
   297  	return nil
   298  }
   299  
   300  type Delete struct {
   301  	Selector string `protobuf:"bytes,1,opt,name=selector,proto3" json:"selector,omitempty"`
   302  	Start    int64  `protobuf:"varint,2,opt,name=start,proto3" json:"start,omitempty"`
   303  	End      int64  `protobuf:"varint,3,opt,name=end,proto3" json:"end,omitempty"`
   304  }
   305  
   306  func (m *Delete) Reset()      { *m = Delete{} }
   307  func (*Delete) ProtoMessage() {}
   308  func (*Delete) Descriptor() ([]byte, []int) {
   309  	return fileDescriptor_c28a5f14f1f4c79a, []int{4}
   310  }
   311  func (m *Delete) XXX_Unmarshal(b []byte) error {
   312  	return m.Unmarshal(b)
   313  }
   314  func (m *Delete) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   315  	if deterministic {
   316  		return xxx_messageInfo_Delete.Marshal(b, m, deterministic)
   317  	} else {
   318  		b = b[:cap(b)]
   319  		n, err := m.MarshalToSizedBuffer(b)
   320  		if err != nil {
   321  			return nil, err
   322  		}
   323  		return b[:n], nil
   324  	}
   325  }
   326  func (m *Delete) XXX_Merge(src proto.Message) {
   327  	xxx_messageInfo_Delete.Merge(m, src)
   328  }
   329  func (m *Delete) XXX_Size() int {
   330  	return m.Size()
   331  }
   332  func (m *Delete) XXX_DiscardUnknown() {
   333  	xxx_messageInfo_Delete.DiscardUnknown(m)
   334  }
   335  
   336  var xxx_messageInfo_Delete proto.InternalMessageInfo
   337  
   338  func (m *Delete) GetSelector() string {
   339  	if m != nil {
   340  		return m.Selector
   341  	}
   342  	return ""
   343  }
   344  
   345  func (m *Delete) GetStart() int64 {
   346  	if m != nil {
   347  		return m.Start
   348  	}
   349  	return 0
   350  }
   351  
   352  func (m *Delete) GetEnd() int64 {
   353  	if m != nil {
   354  		return m.End
   355  	}
   356  	return 0
   357  }
   358  
   359  type QueryResponse struct {
   360  	Streams []Stream       `protobuf:"bytes,1,rep,name=streams,proto3,customtype=Stream" json:"streams,omitempty"`
   361  	Stats   stats.Ingester `protobuf:"bytes,2,opt,name=stats,proto3" json:"stats"`
   362  }
   363  
   364  func (m *QueryResponse) Reset()      { *m = QueryResponse{} }
   365  func (*QueryResponse) ProtoMessage() {}
   366  func (*QueryResponse) Descriptor() ([]byte, []int) {
   367  	return fileDescriptor_c28a5f14f1f4c79a, []int{5}
   368  }
   369  func (m *QueryResponse) XXX_Unmarshal(b []byte) error {
   370  	return m.Unmarshal(b)
   371  }
   372  func (m *QueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   373  	if deterministic {
   374  		return xxx_messageInfo_QueryResponse.Marshal(b, m, deterministic)
   375  	} else {
   376  		b = b[:cap(b)]
   377  		n, err := m.MarshalToSizedBuffer(b)
   378  		if err != nil {
   379  			return nil, err
   380  		}
   381  		return b[:n], nil
   382  	}
   383  }
   384  func (m *QueryResponse) XXX_Merge(src proto.Message) {
   385  	xxx_messageInfo_QueryResponse.Merge(m, src)
   386  }
   387  func (m *QueryResponse) XXX_Size() int {
   388  	return m.Size()
   389  }
   390  func (m *QueryResponse) XXX_DiscardUnknown() {
   391  	xxx_messageInfo_QueryResponse.DiscardUnknown(m)
   392  }
   393  
   394  var xxx_messageInfo_QueryResponse proto.InternalMessageInfo
   395  
   396  func (m *QueryResponse) GetStats() stats.Ingester {
   397  	if m != nil {
   398  		return m.Stats
   399  	}
   400  	return stats.Ingester{}
   401  }
   402  
   403  type SampleQueryResponse struct {
   404  	Series []Series       `protobuf:"bytes,1,rep,name=series,proto3,customtype=Series" json:"series,omitempty"`
   405  	Stats  stats.Ingester `protobuf:"bytes,2,opt,name=stats,proto3" json:"stats"`
   406  }
   407  
   408  func (m *SampleQueryResponse) Reset()      { *m = SampleQueryResponse{} }
   409  func (*SampleQueryResponse) ProtoMessage() {}
   410  func (*SampleQueryResponse) Descriptor() ([]byte, []int) {
   411  	return fileDescriptor_c28a5f14f1f4c79a, []int{6}
   412  }
   413  func (m *SampleQueryResponse) XXX_Unmarshal(b []byte) error {
   414  	return m.Unmarshal(b)
   415  }
   416  func (m *SampleQueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   417  	if deterministic {
   418  		return xxx_messageInfo_SampleQueryResponse.Marshal(b, m, deterministic)
   419  	} else {
   420  		b = b[:cap(b)]
   421  		n, err := m.MarshalToSizedBuffer(b)
   422  		if err != nil {
   423  			return nil, err
   424  		}
   425  		return b[:n], nil
   426  	}
   427  }
   428  func (m *SampleQueryResponse) XXX_Merge(src proto.Message) {
   429  	xxx_messageInfo_SampleQueryResponse.Merge(m, src)
   430  }
   431  func (m *SampleQueryResponse) XXX_Size() int {
   432  	return m.Size()
   433  }
   434  func (m *SampleQueryResponse) XXX_DiscardUnknown() {
   435  	xxx_messageInfo_SampleQueryResponse.DiscardUnknown(m)
   436  }
   437  
   438  var xxx_messageInfo_SampleQueryResponse proto.InternalMessageInfo
   439  
   440  func (m *SampleQueryResponse) GetStats() stats.Ingester {
   441  	if m != nil {
   442  		return m.Stats
   443  	}
   444  	return stats.Ingester{}
   445  }
   446  
   447  type LabelRequest struct {
   448  	Name   string     `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
   449  	Values bool       `protobuf:"varint,2,opt,name=values,proto3" json:"values,omitempty"`
   450  	Start  *time.Time `protobuf:"bytes,3,opt,name=start,proto3,stdtime" json:"start,omitempty"`
   451  	End    *time.Time `protobuf:"bytes,4,opt,name=end,proto3,stdtime" json:"end,omitempty"`
   452  }
   453  
   454  func (m *LabelRequest) Reset()      { *m = LabelRequest{} }
   455  func (*LabelRequest) ProtoMessage() {}
   456  func (*LabelRequest) Descriptor() ([]byte, []int) {
   457  	return fileDescriptor_c28a5f14f1f4c79a, []int{7}
   458  }
   459  func (m *LabelRequest) XXX_Unmarshal(b []byte) error {
   460  	return m.Unmarshal(b)
   461  }
   462  func (m *LabelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   463  	if deterministic {
   464  		return xxx_messageInfo_LabelRequest.Marshal(b, m, deterministic)
   465  	} else {
   466  		b = b[:cap(b)]
   467  		n, err := m.MarshalToSizedBuffer(b)
   468  		if err != nil {
   469  			return nil, err
   470  		}
   471  		return b[:n], nil
   472  	}
   473  }
   474  func (m *LabelRequest) XXX_Merge(src proto.Message) {
   475  	xxx_messageInfo_LabelRequest.Merge(m, src)
   476  }
   477  func (m *LabelRequest) XXX_Size() int {
   478  	return m.Size()
   479  }
   480  func (m *LabelRequest) XXX_DiscardUnknown() {
   481  	xxx_messageInfo_LabelRequest.DiscardUnknown(m)
   482  }
   483  
   484  var xxx_messageInfo_LabelRequest proto.InternalMessageInfo
   485  
   486  func (m *LabelRequest) GetName() string {
   487  	if m != nil {
   488  		return m.Name
   489  	}
   490  	return ""
   491  }
   492  
   493  func (m *LabelRequest) GetValues() bool {
   494  	if m != nil {
   495  		return m.Values
   496  	}
   497  	return false
   498  }
   499  
   500  func (m *LabelRequest) GetStart() *time.Time {
   501  	if m != nil {
   502  		return m.Start
   503  	}
   504  	return nil
   505  }
   506  
   507  func (m *LabelRequest) GetEnd() *time.Time {
   508  	if m != nil {
   509  		return m.End
   510  	}
   511  	return nil
   512  }
   513  
   514  type LabelResponse struct {
   515  	Values []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
   516  }
   517  
   518  func (m *LabelResponse) Reset()      { *m = LabelResponse{} }
   519  func (*LabelResponse) ProtoMessage() {}
   520  func (*LabelResponse) Descriptor() ([]byte, []int) {
   521  	return fileDescriptor_c28a5f14f1f4c79a, []int{8}
   522  }
   523  func (m *LabelResponse) XXX_Unmarshal(b []byte) error {
   524  	return m.Unmarshal(b)
   525  }
   526  func (m *LabelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   527  	if deterministic {
   528  		return xxx_messageInfo_LabelResponse.Marshal(b, m, deterministic)
   529  	} else {
   530  		b = b[:cap(b)]
   531  		n, err := m.MarshalToSizedBuffer(b)
   532  		if err != nil {
   533  			return nil, err
   534  		}
   535  		return b[:n], nil
   536  	}
   537  }
   538  func (m *LabelResponse) XXX_Merge(src proto.Message) {
   539  	xxx_messageInfo_LabelResponse.Merge(m, src)
   540  }
   541  func (m *LabelResponse) XXX_Size() int {
   542  	return m.Size()
   543  }
   544  func (m *LabelResponse) XXX_DiscardUnknown() {
   545  	xxx_messageInfo_LabelResponse.DiscardUnknown(m)
   546  }
   547  
   548  var xxx_messageInfo_LabelResponse proto.InternalMessageInfo
   549  
   550  func (m *LabelResponse) GetValues() []string {
   551  	if m != nil {
   552  		return m.Values
   553  	}
   554  	return nil
   555  }
   556  
   557  type StreamAdapter struct {
   558  	Labels  string         `protobuf:"bytes,1,opt,name=labels,proto3" json:"labels"`
   559  	Entries []EntryAdapter `protobuf:"bytes,2,rep,name=entries,proto3" json:"entries"`
   560  	// hash contains the original hash of the stream.
   561  	Hash uint64 `protobuf:"varint,3,opt,name=hash,proto3" json:"-"`
   562  }
   563  
   564  func (m *StreamAdapter) Reset()      { *m = StreamAdapter{} }
   565  func (*StreamAdapter) ProtoMessage() {}
   566  func (*StreamAdapter) Descriptor() ([]byte, []int) {
   567  	return fileDescriptor_c28a5f14f1f4c79a, []int{9}
   568  }
   569  func (m *StreamAdapter) XXX_Unmarshal(b []byte) error {
   570  	return m.Unmarshal(b)
   571  }
   572  func (m *StreamAdapter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   573  	if deterministic {
   574  		return xxx_messageInfo_StreamAdapter.Marshal(b, m, deterministic)
   575  	} else {
   576  		b = b[:cap(b)]
   577  		n, err := m.MarshalToSizedBuffer(b)
   578  		if err != nil {
   579  			return nil, err
   580  		}
   581  		return b[:n], nil
   582  	}
   583  }
   584  func (m *StreamAdapter) XXX_Merge(src proto.Message) {
   585  	xxx_messageInfo_StreamAdapter.Merge(m, src)
   586  }
   587  func (m *StreamAdapter) XXX_Size() int {
   588  	return m.Size()
   589  }
   590  func (m *StreamAdapter) XXX_DiscardUnknown() {
   591  	xxx_messageInfo_StreamAdapter.DiscardUnknown(m)
   592  }
   593  
   594  var xxx_messageInfo_StreamAdapter proto.InternalMessageInfo
   595  
   596  func (m *StreamAdapter) GetLabels() string {
   597  	if m != nil {
   598  		return m.Labels
   599  	}
   600  	return ""
   601  }
   602  
   603  func (m *StreamAdapter) GetEntries() []EntryAdapter {
   604  	if m != nil {
   605  		return m.Entries
   606  	}
   607  	return nil
   608  }
   609  
   610  func (m *StreamAdapter) GetHash() uint64 {
   611  	if m != nil {
   612  		return m.Hash
   613  	}
   614  	return 0
   615  }
   616  
   617  type EntryAdapter struct {
   618  	Timestamp time.Time `protobuf:"bytes,1,opt,name=timestamp,proto3,stdtime" json:"ts"`
   619  	Line      string    `protobuf:"bytes,2,opt,name=line,proto3" json:"line"`
   620  }
   621  
   622  func (m *EntryAdapter) Reset()      { *m = EntryAdapter{} }
   623  func (*EntryAdapter) ProtoMessage() {}
   624  func (*EntryAdapter) Descriptor() ([]byte, []int) {
   625  	return fileDescriptor_c28a5f14f1f4c79a, []int{10}
   626  }
   627  func (m *EntryAdapter) XXX_Unmarshal(b []byte) error {
   628  	return m.Unmarshal(b)
   629  }
   630  func (m *EntryAdapter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   631  	if deterministic {
   632  		return xxx_messageInfo_EntryAdapter.Marshal(b, m, deterministic)
   633  	} else {
   634  		b = b[:cap(b)]
   635  		n, err := m.MarshalToSizedBuffer(b)
   636  		if err != nil {
   637  			return nil, err
   638  		}
   639  		return b[:n], nil
   640  	}
   641  }
   642  func (m *EntryAdapter) XXX_Merge(src proto.Message) {
   643  	xxx_messageInfo_EntryAdapter.Merge(m, src)
   644  }
   645  func (m *EntryAdapter) XXX_Size() int {
   646  	return m.Size()
   647  }
   648  func (m *EntryAdapter) XXX_DiscardUnknown() {
   649  	xxx_messageInfo_EntryAdapter.DiscardUnknown(m)
   650  }
   651  
   652  var xxx_messageInfo_EntryAdapter proto.InternalMessageInfo
   653  
   654  func (m *EntryAdapter) GetTimestamp() time.Time {
   655  	if m != nil {
   656  		return m.Timestamp
   657  	}
   658  	return time.Time{}
   659  }
   660  
   661  func (m *EntryAdapter) GetLine() string {
   662  	if m != nil {
   663  		return m.Line
   664  	}
   665  	return ""
   666  }
   667  
   668  type Sample struct {
   669  	Timestamp int64   `protobuf:"varint,1,opt,name=timestamp,proto3" json:"ts"`
   670  	Value     float64 `protobuf:"fixed64,2,opt,name=value,proto3" json:"value"`
   671  	Hash      uint64  `protobuf:"varint,3,opt,name=hash,proto3" json:"hash"`
   672  }
   673  
   674  func (m *Sample) Reset()      { *m = Sample{} }
   675  func (*Sample) ProtoMessage() {}
   676  func (*Sample) Descriptor() ([]byte, []int) {
   677  	return fileDescriptor_c28a5f14f1f4c79a, []int{11}
   678  }
   679  func (m *Sample) XXX_Unmarshal(b []byte) error {
   680  	return m.Unmarshal(b)
   681  }
   682  func (m *Sample) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   683  	if deterministic {
   684  		return xxx_messageInfo_Sample.Marshal(b, m, deterministic)
   685  	} else {
   686  		b = b[:cap(b)]
   687  		n, err := m.MarshalToSizedBuffer(b)
   688  		if err != nil {
   689  			return nil, err
   690  		}
   691  		return b[:n], nil
   692  	}
   693  }
   694  func (m *Sample) XXX_Merge(src proto.Message) {
   695  	xxx_messageInfo_Sample.Merge(m, src)
   696  }
   697  func (m *Sample) XXX_Size() int {
   698  	return m.Size()
   699  }
   700  func (m *Sample) XXX_DiscardUnknown() {
   701  	xxx_messageInfo_Sample.DiscardUnknown(m)
   702  }
   703  
   704  var xxx_messageInfo_Sample proto.InternalMessageInfo
   705  
   706  func (m *Sample) GetTimestamp() int64 {
   707  	if m != nil {
   708  		return m.Timestamp
   709  	}
   710  	return 0
   711  }
   712  
   713  func (m *Sample) GetValue() float64 {
   714  	if m != nil {
   715  		return m.Value
   716  	}
   717  	return 0
   718  }
   719  
   720  func (m *Sample) GetHash() uint64 {
   721  	if m != nil {
   722  		return m.Hash
   723  	}
   724  	return 0
   725  }
   726  
   727  // LegacySample exists for backwards compatibility reasons and is deprecated. Do not use.
   728  type LegacySample struct {
   729  	Value       float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"`
   730  	TimestampMs int64   `protobuf:"varint,2,opt,name=timestamp_ms,json=timestampMs,proto3" json:"timestamp_ms,omitempty"`
   731  }
   732  
   733  func (m *LegacySample) Reset()      { *m = LegacySample{} }
   734  func (*LegacySample) ProtoMessage() {}
   735  func (*LegacySample) Descriptor() ([]byte, []int) {
   736  	return fileDescriptor_c28a5f14f1f4c79a, []int{12}
   737  }
   738  func (m *LegacySample) XXX_Unmarshal(b []byte) error {
   739  	return m.Unmarshal(b)
   740  }
   741  func (m *LegacySample) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   742  	if deterministic {
   743  		return xxx_messageInfo_LegacySample.Marshal(b, m, deterministic)
   744  	} else {
   745  		b = b[:cap(b)]
   746  		n, err := m.MarshalToSizedBuffer(b)
   747  		if err != nil {
   748  			return nil, err
   749  		}
   750  		return b[:n], nil
   751  	}
   752  }
   753  func (m *LegacySample) XXX_Merge(src proto.Message) {
   754  	xxx_messageInfo_LegacySample.Merge(m, src)
   755  }
   756  func (m *LegacySample) XXX_Size() int {
   757  	return m.Size()
   758  }
   759  func (m *LegacySample) XXX_DiscardUnknown() {
   760  	xxx_messageInfo_LegacySample.DiscardUnknown(m)
   761  }
   762  
   763  var xxx_messageInfo_LegacySample proto.InternalMessageInfo
   764  
   765  func (m *LegacySample) GetValue() float64 {
   766  	if m != nil {
   767  		return m.Value
   768  	}
   769  	return 0
   770  }
   771  
   772  func (m *LegacySample) GetTimestampMs() int64 {
   773  	if m != nil {
   774  		return m.TimestampMs
   775  	}
   776  	return 0
   777  }
   778  
   779  type Series struct {
   780  	Labels     string   `protobuf:"bytes,1,opt,name=labels,proto3" json:"labels"`
   781  	Samples    []Sample `protobuf:"bytes,2,rep,name=samples,proto3" json:"samples"`
   782  	StreamHash uint64   `protobuf:"varint,3,opt,name=streamHash,proto3" json:"streamHash"`
   783  }
   784  
   785  func (m *Series) Reset()      { *m = Series{} }
   786  func (*Series) ProtoMessage() {}
   787  func (*Series) Descriptor() ([]byte, []int) {
   788  	return fileDescriptor_c28a5f14f1f4c79a, []int{13}
   789  }
   790  func (m *Series) XXX_Unmarshal(b []byte) error {
   791  	return m.Unmarshal(b)
   792  }
   793  func (m *Series) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   794  	if deterministic {
   795  		return xxx_messageInfo_Series.Marshal(b, m, deterministic)
   796  	} else {
   797  		b = b[:cap(b)]
   798  		n, err := m.MarshalToSizedBuffer(b)
   799  		if err != nil {
   800  			return nil, err
   801  		}
   802  		return b[:n], nil
   803  	}
   804  }
   805  func (m *Series) XXX_Merge(src proto.Message) {
   806  	xxx_messageInfo_Series.Merge(m, src)
   807  }
   808  func (m *Series) XXX_Size() int {
   809  	return m.Size()
   810  }
   811  func (m *Series) XXX_DiscardUnknown() {
   812  	xxx_messageInfo_Series.DiscardUnknown(m)
   813  }
   814  
   815  var xxx_messageInfo_Series proto.InternalMessageInfo
   816  
   817  func (m *Series) GetLabels() string {
   818  	if m != nil {
   819  		return m.Labels
   820  	}
   821  	return ""
   822  }
   823  
   824  func (m *Series) GetSamples() []Sample {
   825  	if m != nil {
   826  		return m.Samples
   827  	}
   828  	return nil
   829  }
   830  
   831  func (m *Series) GetStreamHash() uint64 {
   832  	if m != nil {
   833  		return m.StreamHash
   834  	}
   835  	return 0
   836  }
   837  
   838  type TailRequest struct {
   839  	Query    string    `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
   840  	DelayFor uint32    `protobuf:"varint,3,opt,name=delayFor,proto3" json:"delayFor,omitempty"`
   841  	Limit    uint32    `protobuf:"varint,4,opt,name=limit,proto3" json:"limit,omitempty"`
   842  	Start    time.Time `protobuf:"bytes,5,opt,name=start,proto3,stdtime" json:"start"`
   843  }
   844  
   845  func (m *TailRequest) Reset()      { *m = TailRequest{} }
   846  func (*TailRequest) ProtoMessage() {}
   847  func (*TailRequest) Descriptor() ([]byte, []int) {
   848  	return fileDescriptor_c28a5f14f1f4c79a, []int{14}
   849  }
   850  func (m *TailRequest) XXX_Unmarshal(b []byte) error {
   851  	return m.Unmarshal(b)
   852  }
   853  func (m *TailRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   854  	if deterministic {
   855  		return xxx_messageInfo_TailRequest.Marshal(b, m, deterministic)
   856  	} else {
   857  		b = b[:cap(b)]
   858  		n, err := m.MarshalToSizedBuffer(b)
   859  		if err != nil {
   860  			return nil, err
   861  		}
   862  		return b[:n], nil
   863  	}
   864  }
   865  func (m *TailRequest) XXX_Merge(src proto.Message) {
   866  	xxx_messageInfo_TailRequest.Merge(m, src)
   867  }
   868  func (m *TailRequest) XXX_Size() int {
   869  	return m.Size()
   870  }
   871  func (m *TailRequest) XXX_DiscardUnknown() {
   872  	xxx_messageInfo_TailRequest.DiscardUnknown(m)
   873  }
   874  
   875  var xxx_messageInfo_TailRequest proto.InternalMessageInfo
   876  
   877  func (m *TailRequest) GetQuery() string {
   878  	if m != nil {
   879  		return m.Query
   880  	}
   881  	return ""
   882  }
   883  
   884  func (m *TailRequest) GetDelayFor() uint32 {
   885  	if m != nil {
   886  		return m.DelayFor
   887  	}
   888  	return 0
   889  }
   890  
   891  func (m *TailRequest) GetLimit() uint32 {
   892  	if m != nil {
   893  		return m.Limit
   894  	}
   895  	return 0
   896  }
   897  
   898  func (m *TailRequest) GetStart() time.Time {
   899  	if m != nil {
   900  		return m.Start
   901  	}
   902  	return time.Time{}
   903  }
   904  
   905  type TailResponse struct {
   906  	Stream         *Stream          `protobuf:"bytes,1,opt,name=stream,proto3,customtype=Stream" json:"stream,omitempty"`
   907  	DroppedStreams []*DroppedStream `protobuf:"bytes,2,rep,name=droppedStreams,proto3" json:"droppedStreams,omitempty"`
   908  }
   909  
   910  func (m *TailResponse) Reset()      { *m = TailResponse{} }
   911  func (*TailResponse) ProtoMessage() {}
   912  func (*TailResponse) Descriptor() ([]byte, []int) {
   913  	return fileDescriptor_c28a5f14f1f4c79a, []int{15}
   914  }
   915  func (m *TailResponse) XXX_Unmarshal(b []byte) error {
   916  	return m.Unmarshal(b)
   917  }
   918  func (m *TailResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   919  	if deterministic {
   920  		return xxx_messageInfo_TailResponse.Marshal(b, m, deterministic)
   921  	} else {
   922  		b = b[:cap(b)]
   923  		n, err := m.MarshalToSizedBuffer(b)
   924  		if err != nil {
   925  			return nil, err
   926  		}
   927  		return b[:n], nil
   928  	}
   929  }
   930  func (m *TailResponse) XXX_Merge(src proto.Message) {
   931  	xxx_messageInfo_TailResponse.Merge(m, src)
   932  }
   933  func (m *TailResponse) XXX_Size() int {
   934  	return m.Size()
   935  }
   936  func (m *TailResponse) XXX_DiscardUnknown() {
   937  	xxx_messageInfo_TailResponse.DiscardUnknown(m)
   938  }
   939  
   940  var xxx_messageInfo_TailResponse proto.InternalMessageInfo
   941  
   942  func (m *TailResponse) GetDroppedStreams() []*DroppedStream {
   943  	if m != nil {
   944  		return m.DroppedStreams
   945  	}
   946  	return nil
   947  }
   948  
   949  type SeriesRequest struct {
   950  	Start  time.Time `protobuf:"bytes,1,opt,name=start,proto3,stdtime" json:"start"`
   951  	End    time.Time `protobuf:"bytes,2,opt,name=end,proto3,stdtime" json:"end"`
   952  	Groups []string  `protobuf:"bytes,3,rep,name=groups,proto3" json:"groups,omitempty"`
   953  	Shards []string  `protobuf:"bytes,4,rep,name=shards,proto3" json:"shards,omitempty"`
   954  }
   955  
   956  func (m *SeriesRequest) Reset()      { *m = SeriesRequest{} }
   957  func (*SeriesRequest) ProtoMessage() {}
   958  func (*SeriesRequest) Descriptor() ([]byte, []int) {
   959  	return fileDescriptor_c28a5f14f1f4c79a, []int{16}
   960  }
   961  func (m *SeriesRequest) XXX_Unmarshal(b []byte) error {
   962  	return m.Unmarshal(b)
   963  }
   964  func (m *SeriesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   965  	if deterministic {
   966  		return xxx_messageInfo_SeriesRequest.Marshal(b, m, deterministic)
   967  	} else {
   968  		b = b[:cap(b)]
   969  		n, err := m.MarshalToSizedBuffer(b)
   970  		if err != nil {
   971  			return nil, err
   972  		}
   973  		return b[:n], nil
   974  	}
   975  }
   976  func (m *SeriesRequest) XXX_Merge(src proto.Message) {
   977  	xxx_messageInfo_SeriesRequest.Merge(m, src)
   978  }
   979  func (m *SeriesRequest) XXX_Size() int {
   980  	return m.Size()
   981  }
   982  func (m *SeriesRequest) XXX_DiscardUnknown() {
   983  	xxx_messageInfo_SeriesRequest.DiscardUnknown(m)
   984  }
   985  
   986  var xxx_messageInfo_SeriesRequest proto.InternalMessageInfo
   987  
   988  func (m *SeriesRequest) GetStart() time.Time {
   989  	if m != nil {
   990  		return m.Start
   991  	}
   992  	return time.Time{}
   993  }
   994  
   995  func (m *SeriesRequest) GetEnd() time.Time {
   996  	if m != nil {
   997  		return m.End
   998  	}
   999  	return time.Time{}
  1000  }
  1001  
  1002  func (m *SeriesRequest) GetGroups() []string {
  1003  	if m != nil {
  1004  		return m.Groups
  1005  	}
  1006  	return nil
  1007  }
  1008  
  1009  func (m *SeriesRequest) GetShards() []string {
  1010  	if m != nil {
  1011  		return m.Shards
  1012  	}
  1013  	return nil
  1014  }
  1015  
  1016  type SeriesResponse struct {
  1017  	Series []SeriesIdentifier `protobuf:"bytes,1,rep,name=series,proto3" json:"series"`
  1018  }
  1019  
  1020  func (m *SeriesResponse) Reset()      { *m = SeriesResponse{} }
  1021  func (*SeriesResponse) ProtoMessage() {}
  1022  func (*SeriesResponse) Descriptor() ([]byte, []int) {
  1023  	return fileDescriptor_c28a5f14f1f4c79a, []int{17}
  1024  }
  1025  func (m *SeriesResponse) XXX_Unmarshal(b []byte) error {
  1026  	return m.Unmarshal(b)
  1027  }
  1028  func (m *SeriesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1029  	if deterministic {
  1030  		return xxx_messageInfo_SeriesResponse.Marshal(b, m, deterministic)
  1031  	} else {
  1032  		b = b[:cap(b)]
  1033  		n, err := m.MarshalToSizedBuffer(b)
  1034  		if err != nil {
  1035  			return nil, err
  1036  		}
  1037  		return b[:n], nil
  1038  	}
  1039  }
  1040  func (m *SeriesResponse) XXX_Merge(src proto.Message) {
  1041  	xxx_messageInfo_SeriesResponse.Merge(m, src)
  1042  }
  1043  func (m *SeriesResponse) XXX_Size() int {
  1044  	return m.Size()
  1045  }
  1046  func (m *SeriesResponse) XXX_DiscardUnknown() {
  1047  	xxx_messageInfo_SeriesResponse.DiscardUnknown(m)
  1048  }
  1049  
  1050  var xxx_messageInfo_SeriesResponse proto.InternalMessageInfo
  1051  
  1052  func (m *SeriesResponse) GetSeries() []SeriesIdentifier {
  1053  	if m != nil {
  1054  		return m.Series
  1055  	}
  1056  	return nil
  1057  }
  1058  
  1059  type SeriesIdentifier struct {
  1060  	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"`
  1061  }
  1062  
  1063  func (m *SeriesIdentifier) Reset()      { *m = SeriesIdentifier{} }
  1064  func (*SeriesIdentifier) ProtoMessage() {}
  1065  func (*SeriesIdentifier) Descriptor() ([]byte, []int) {
  1066  	return fileDescriptor_c28a5f14f1f4c79a, []int{18}
  1067  }
  1068  func (m *SeriesIdentifier) XXX_Unmarshal(b []byte) error {
  1069  	return m.Unmarshal(b)
  1070  }
  1071  func (m *SeriesIdentifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1072  	if deterministic {
  1073  		return xxx_messageInfo_SeriesIdentifier.Marshal(b, m, deterministic)
  1074  	} else {
  1075  		b = b[:cap(b)]
  1076  		n, err := m.MarshalToSizedBuffer(b)
  1077  		if err != nil {
  1078  			return nil, err
  1079  		}
  1080  		return b[:n], nil
  1081  	}
  1082  }
  1083  func (m *SeriesIdentifier) XXX_Merge(src proto.Message) {
  1084  	xxx_messageInfo_SeriesIdentifier.Merge(m, src)
  1085  }
  1086  func (m *SeriesIdentifier) XXX_Size() int {
  1087  	return m.Size()
  1088  }
  1089  func (m *SeriesIdentifier) XXX_DiscardUnknown() {
  1090  	xxx_messageInfo_SeriesIdentifier.DiscardUnknown(m)
  1091  }
  1092  
  1093  var xxx_messageInfo_SeriesIdentifier proto.InternalMessageInfo
  1094  
  1095  func (m *SeriesIdentifier) GetLabels() map[string]string {
  1096  	if m != nil {
  1097  		return m.Labels
  1098  	}
  1099  	return nil
  1100  }
  1101  
  1102  type DroppedStream struct {
  1103  	From   time.Time `protobuf:"bytes,1,opt,name=from,proto3,stdtime" json:"from"`
  1104  	To     time.Time `protobuf:"bytes,2,opt,name=to,proto3,stdtime" json:"to"`
  1105  	Labels string    `protobuf:"bytes,3,opt,name=labels,proto3" json:"labels,omitempty"`
  1106  }
  1107  
  1108  func (m *DroppedStream) Reset()      { *m = DroppedStream{} }
  1109  func (*DroppedStream) ProtoMessage() {}
  1110  func (*DroppedStream) Descriptor() ([]byte, []int) {
  1111  	return fileDescriptor_c28a5f14f1f4c79a, []int{19}
  1112  }
  1113  func (m *DroppedStream) XXX_Unmarshal(b []byte) error {
  1114  	return m.Unmarshal(b)
  1115  }
  1116  func (m *DroppedStream) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1117  	if deterministic {
  1118  		return xxx_messageInfo_DroppedStream.Marshal(b, m, deterministic)
  1119  	} else {
  1120  		b = b[:cap(b)]
  1121  		n, err := m.MarshalToSizedBuffer(b)
  1122  		if err != nil {
  1123  			return nil, err
  1124  		}
  1125  		return b[:n], nil
  1126  	}
  1127  }
  1128  func (m *DroppedStream) XXX_Merge(src proto.Message) {
  1129  	xxx_messageInfo_DroppedStream.Merge(m, src)
  1130  }
  1131  func (m *DroppedStream) XXX_Size() int {
  1132  	return m.Size()
  1133  }
  1134  func (m *DroppedStream) XXX_DiscardUnknown() {
  1135  	xxx_messageInfo_DroppedStream.DiscardUnknown(m)
  1136  }
  1137  
  1138  var xxx_messageInfo_DroppedStream proto.InternalMessageInfo
  1139  
  1140  func (m *DroppedStream) GetFrom() time.Time {
  1141  	if m != nil {
  1142  		return m.From
  1143  	}
  1144  	return time.Time{}
  1145  }
  1146  
  1147  func (m *DroppedStream) GetTo() time.Time {
  1148  	if m != nil {
  1149  		return m.To
  1150  	}
  1151  	return time.Time{}
  1152  }
  1153  
  1154  func (m *DroppedStream) GetLabels() string {
  1155  	if m != nil {
  1156  		return m.Labels
  1157  	}
  1158  	return ""
  1159  }
  1160  
  1161  type TimeSeriesChunk struct {
  1162  	FromIngesterId string       `protobuf:"bytes,1,opt,name=from_ingester_id,json=fromIngesterId,proto3" json:"from_ingester_id,omitempty"`
  1163  	UserId         string       `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
  1164  	Labels         []*LabelPair `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,omitempty"`
  1165  	Chunks         []*Chunk     `protobuf:"bytes,4,rep,name=chunks,proto3" json:"chunks,omitempty"`
  1166  }
  1167  
  1168  func (m *TimeSeriesChunk) Reset()      { *m = TimeSeriesChunk{} }
  1169  func (*TimeSeriesChunk) ProtoMessage() {}
  1170  func (*TimeSeriesChunk) Descriptor() ([]byte, []int) {
  1171  	return fileDescriptor_c28a5f14f1f4c79a, []int{20}
  1172  }
  1173  func (m *TimeSeriesChunk) XXX_Unmarshal(b []byte) error {
  1174  	return m.Unmarshal(b)
  1175  }
  1176  func (m *TimeSeriesChunk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1177  	if deterministic {
  1178  		return xxx_messageInfo_TimeSeriesChunk.Marshal(b, m, deterministic)
  1179  	} else {
  1180  		b = b[:cap(b)]
  1181  		n, err := m.MarshalToSizedBuffer(b)
  1182  		if err != nil {
  1183  			return nil, err
  1184  		}
  1185  		return b[:n], nil
  1186  	}
  1187  }
  1188  func (m *TimeSeriesChunk) XXX_Merge(src proto.Message) {
  1189  	xxx_messageInfo_TimeSeriesChunk.Merge(m, src)
  1190  }
  1191  func (m *TimeSeriesChunk) XXX_Size() int {
  1192  	return m.Size()
  1193  }
  1194  func (m *TimeSeriesChunk) XXX_DiscardUnknown() {
  1195  	xxx_messageInfo_TimeSeriesChunk.DiscardUnknown(m)
  1196  }
  1197  
  1198  var xxx_messageInfo_TimeSeriesChunk proto.InternalMessageInfo
  1199  
  1200  func (m *TimeSeriesChunk) GetFromIngesterId() string {
  1201  	if m != nil {
  1202  		return m.FromIngesterId
  1203  	}
  1204  	return ""
  1205  }
  1206  
  1207  func (m *TimeSeriesChunk) GetUserId() string {
  1208  	if m != nil {
  1209  		return m.UserId
  1210  	}
  1211  	return ""
  1212  }
  1213  
  1214  func (m *TimeSeriesChunk) GetLabels() []*LabelPair {
  1215  	if m != nil {
  1216  		return m.Labels
  1217  	}
  1218  	return nil
  1219  }
  1220  
  1221  func (m *TimeSeriesChunk) GetChunks() []*Chunk {
  1222  	if m != nil {
  1223  		return m.Chunks
  1224  	}
  1225  	return nil
  1226  }
  1227  
  1228  type LabelPair struct {
  1229  	Name  string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  1230  	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
  1231  }
  1232  
  1233  func (m *LabelPair) Reset()      { *m = LabelPair{} }
  1234  func (*LabelPair) ProtoMessage() {}
  1235  func (*LabelPair) Descriptor() ([]byte, []int) {
  1236  	return fileDescriptor_c28a5f14f1f4c79a, []int{21}
  1237  }
  1238  func (m *LabelPair) XXX_Unmarshal(b []byte) error {
  1239  	return m.Unmarshal(b)
  1240  }
  1241  func (m *LabelPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1242  	if deterministic {
  1243  		return xxx_messageInfo_LabelPair.Marshal(b, m, deterministic)
  1244  	} else {
  1245  		b = b[:cap(b)]
  1246  		n, err := m.MarshalToSizedBuffer(b)
  1247  		if err != nil {
  1248  			return nil, err
  1249  		}
  1250  		return b[:n], nil
  1251  	}
  1252  }
  1253  func (m *LabelPair) XXX_Merge(src proto.Message) {
  1254  	xxx_messageInfo_LabelPair.Merge(m, src)
  1255  }
  1256  func (m *LabelPair) XXX_Size() int {
  1257  	return m.Size()
  1258  }
  1259  func (m *LabelPair) XXX_DiscardUnknown() {
  1260  	xxx_messageInfo_LabelPair.DiscardUnknown(m)
  1261  }
  1262  
  1263  var xxx_messageInfo_LabelPair proto.InternalMessageInfo
  1264  
  1265  func (m *LabelPair) GetName() string {
  1266  	if m != nil {
  1267  		return m.Name
  1268  	}
  1269  	return ""
  1270  }
  1271  
  1272  func (m *LabelPair) GetValue() string {
  1273  	if m != nil {
  1274  		return m.Value
  1275  	}
  1276  	return ""
  1277  }
  1278  
  1279  // LegacyLabelPair exists for backwards compatibility reasons and is deprecated. Do not use.
  1280  type LegacyLabelPair struct {
  1281  	Name  []byte `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  1282  	Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
  1283  }
  1284  
  1285  func (m *LegacyLabelPair) Reset()      { *m = LegacyLabelPair{} }
  1286  func (*LegacyLabelPair) ProtoMessage() {}
  1287  func (*LegacyLabelPair) Descriptor() ([]byte, []int) {
  1288  	return fileDescriptor_c28a5f14f1f4c79a, []int{22}
  1289  }
  1290  func (m *LegacyLabelPair) XXX_Unmarshal(b []byte) error {
  1291  	return m.Unmarshal(b)
  1292  }
  1293  func (m *LegacyLabelPair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1294  	if deterministic {
  1295  		return xxx_messageInfo_LegacyLabelPair.Marshal(b, m, deterministic)
  1296  	} else {
  1297  		b = b[:cap(b)]
  1298  		n, err := m.MarshalToSizedBuffer(b)
  1299  		if err != nil {
  1300  			return nil, err
  1301  		}
  1302  		return b[:n], nil
  1303  	}
  1304  }
  1305  func (m *LegacyLabelPair) XXX_Merge(src proto.Message) {
  1306  	xxx_messageInfo_LegacyLabelPair.Merge(m, src)
  1307  }
  1308  func (m *LegacyLabelPair) XXX_Size() int {
  1309  	return m.Size()
  1310  }
  1311  func (m *LegacyLabelPair) XXX_DiscardUnknown() {
  1312  	xxx_messageInfo_LegacyLabelPair.DiscardUnknown(m)
  1313  }
  1314  
  1315  var xxx_messageInfo_LegacyLabelPair proto.InternalMessageInfo
  1316  
  1317  func (m *LegacyLabelPair) GetName() []byte {
  1318  	if m != nil {
  1319  		return m.Name
  1320  	}
  1321  	return nil
  1322  }
  1323  
  1324  func (m *LegacyLabelPair) GetValue() []byte {
  1325  	if m != nil {
  1326  		return m.Value
  1327  	}
  1328  	return nil
  1329  }
  1330  
  1331  type Chunk struct {
  1332  	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
  1333  }
  1334  
  1335  func (m *Chunk) Reset()      { *m = Chunk{} }
  1336  func (*Chunk) ProtoMessage() {}
  1337  func (*Chunk) Descriptor() ([]byte, []int) {
  1338  	return fileDescriptor_c28a5f14f1f4c79a, []int{23}
  1339  }
  1340  func (m *Chunk) XXX_Unmarshal(b []byte) error {
  1341  	return m.Unmarshal(b)
  1342  }
  1343  func (m *Chunk) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1344  	if deterministic {
  1345  		return xxx_messageInfo_Chunk.Marshal(b, m, deterministic)
  1346  	} else {
  1347  		b = b[:cap(b)]
  1348  		n, err := m.MarshalToSizedBuffer(b)
  1349  		if err != nil {
  1350  			return nil, err
  1351  		}
  1352  		return b[:n], nil
  1353  	}
  1354  }
  1355  func (m *Chunk) XXX_Merge(src proto.Message) {
  1356  	xxx_messageInfo_Chunk.Merge(m, src)
  1357  }
  1358  func (m *Chunk) XXX_Size() int {
  1359  	return m.Size()
  1360  }
  1361  func (m *Chunk) XXX_DiscardUnknown() {
  1362  	xxx_messageInfo_Chunk.DiscardUnknown(m)
  1363  }
  1364  
  1365  var xxx_messageInfo_Chunk proto.InternalMessageInfo
  1366  
  1367  func (m *Chunk) GetData() []byte {
  1368  	if m != nil {
  1369  		return m.Data
  1370  	}
  1371  	return nil
  1372  }
  1373  
  1374  type TransferChunksResponse struct {
  1375  }
  1376  
  1377  func (m *TransferChunksResponse) Reset()      { *m = TransferChunksResponse{} }
  1378  func (*TransferChunksResponse) ProtoMessage() {}
  1379  func (*TransferChunksResponse) Descriptor() ([]byte, []int) {
  1380  	return fileDescriptor_c28a5f14f1f4c79a, []int{24}
  1381  }
  1382  func (m *TransferChunksResponse) XXX_Unmarshal(b []byte) error {
  1383  	return m.Unmarshal(b)
  1384  }
  1385  func (m *TransferChunksResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1386  	if deterministic {
  1387  		return xxx_messageInfo_TransferChunksResponse.Marshal(b, m, deterministic)
  1388  	} else {
  1389  		b = b[:cap(b)]
  1390  		n, err := m.MarshalToSizedBuffer(b)
  1391  		if err != nil {
  1392  			return nil, err
  1393  		}
  1394  		return b[:n], nil
  1395  	}
  1396  }
  1397  func (m *TransferChunksResponse) XXX_Merge(src proto.Message) {
  1398  	xxx_messageInfo_TransferChunksResponse.Merge(m, src)
  1399  }
  1400  func (m *TransferChunksResponse) XXX_Size() int {
  1401  	return m.Size()
  1402  }
  1403  func (m *TransferChunksResponse) XXX_DiscardUnknown() {
  1404  	xxx_messageInfo_TransferChunksResponse.DiscardUnknown(m)
  1405  }
  1406  
  1407  var xxx_messageInfo_TransferChunksResponse proto.InternalMessageInfo
  1408  
  1409  type TailersCountRequest struct {
  1410  }
  1411  
  1412  func (m *TailersCountRequest) Reset()      { *m = TailersCountRequest{} }
  1413  func (*TailersCountRequest) ProtoMessage() {}
  1414  func (*TailersCountRequest) Descriptor() ([]byte, []int) {
  1415  	return fileDescriptor_c28a5f14f1f4c79a, []int{25}
  1416  }
  1417  func (m *TailersCountRequest) XXX_Unmarshal(b []byte) error {
  1418  	return m.Unmarshal(b)
  1419  }
  1420  func (m *TailersCountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1421  	if deterministic {
  1422  		return xxx_messageInfo_TailersCountRequest.Marshal(b, m, deterministic)
  1423  	} else {
  1424  		b = b[:cap(b)]
  1425  		n, err := m.MarshalToSizedBuffer(b)
  1426  		if err != nil {
  1427  			return nil, err
  1428  		}
  1429  		return b[:n], nil
  1430  	}
  1431  }
  1432  func (m *TailersCountRequest) XXX_Merge(src proto.Message) {
  1433  	xxx_messageInfo_TailersCountRequest.Merge(m, src)
  1434  }
  1435  func (m *TailersCountRequest) XXX_Size() int {
  1436  	return m.Size()
  1437  }
  1438  func (m *TailersCountRequest) XXX_DiscardUnknown() {
  1439  	xxx_messageInfo_TailersCountRequest.DiscardUnknown(m)
  1440  }
  1441  
  1442  var xxx_messageInfo_TailersCountRequest proto.InternalMessageInfo
  1443  
  1444  type TailersCountResponse struct {
  1445  	Count uint32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
  1446  }
  1447  
  1448  func (m *TailersCountResponse) Reset()      { *m = TailersCountResponse{} }
  1449  func (*TailersCountResponse) ProtoMessage() {}
  1450  func (*TailersCountResponse) Descriptor() ([]byte, []int) {
  1451  	return fileDescriptor_c28a5f14f1f4c79a, []int{26}
  1452  }
  1453  func (m *TailersCountResponse) XXX_Unmarshal(b []byte) error {
  1454  	return m.Unmarshal(b)
  1455  }
  1456  func (m *TailersCountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1457  	if deterministic {
  1458  		return xxx_messageInfo_TailersCountResponse.Marshal(b, m, deterministic)
  1459  	} else {
  1460  		b = b[:cap(b)]
  1461  		n, err := m.MarshalToSizedBuffer(b)
  1462  		if err != nil {
  1463  			return nil, err
  1464  		}
  1465  		return b[:n], nil
  1466  	}
  1467  }
  1468  func (m *TailersCountResponse) XXX_Merge(src proto.Message) {
  1469  	xxx_messageInfo_TailersCountResponse.Merge(m, src)
  1470  }
  1471  func (m *TailersCountResponse) XXX_Size() int {
  1472  	return m.Size()
  1473  }
  1474  func (m *TailersCountResponse) XXX_DiscardUnknown() {
  1475  	xxx_messageInfo_TailersCountResponse.DiscardUnknown(m)
  1476  }
  1477  
  1478  var xxx_messageInfo_TailersCountResponse proto.InternalMessageInfo
  1479  
  1480  func (m *TailersCountResponse) GetCount() uint32 {
  1481  	if m != nil {
  1482  		return m.Count
  1483  	}
  1484  	return 0
  1485  }
  1486  
  1487  type GetChunkIDsRequest struct {
  1488  	Matchers string    `protobuf:"bytes,1,opt,name=matchers,proto3" json:"matchers,omitempty"`
  1489  	Start    time.Time `protobuf:"bytes,2,opt,name=start,proto3,stdtime" json:"start"`
  1490  	End      time.Time `protobuf:"bytes,3,opt,name=end,proto3,stdtime" json:"end"`
  1491  }
  1492  
  1493  func (m *GetChunkIDsRequest) Reset()      { *m = GetChunkIDsRequest{} }
  1494  func (*GetChunkIDsRequest) ProtoMessage() {}
  1495  func (*GetChunkIDsRequest) Descriptor() ([]byte, []int) {
  1496  	return fileDescriptor_c28a5f14f1f4c79a, []int{27}
  1497  }
  1498  func (m *GetChunkIDsRequest) XXX_Unmarshal(b []byte) error {
  1499  	return m.Unmarshal(b)
  1500  }
  1501  func (m *GetChunkIDsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1502  	if deterministic {
  1503  		return xxx_messageInfo_GetChunkIDsRequest.Marshal(b, m, deterministic)
  1504  	} else {
  1505  		b = b[:cap(b)]
  1506  		n, err := m.MarshalToSizedBuffer(b)
  1507  		if err != nil {
  1508  			return nil, err
  1509  		}
  1510  		return b[:n], nil
  1511  	}
  1512  }
  1513  func (m *GetChunkIDsRequest) XXX_Merge(src proto.Message) {
  1514  	xxx_messageInfo_GetChunkIDsRequest.Merge(m, src)
  1515  }
  1516  func (m *GetChunkIDsRequest) XXX_Size() int {
  1517  	return m.Size()
  1518  }
  1519  func (m *GetChunkIDsRequest) XXX_DiscardUnknown() {
  1520  	xxx_messageInfo_GetChunkIDsRequest.DiscardUnknown(m)
  1521  }
  1522  
  1523  var xxx_messageInfo_GetChunkIDsRequest proto.InternalMessageInfo
  1524  
  1525  func (m *GetChunkIDsRequest) GetMatchers() string {
  1526  	if m != nil {
  1527  		return m.Matchers
  1528  	}
  1529  	return ""
  1530  }
  1531  
  1532  func (m *GetChunkIDsRequest) GetStart() time.Time {
  1533  	if m != nil {
  1534  		return m.Start
  1535  	}
  1536  	return time.Time{}
  1537  }
  1538  
  1539  func (m *GetChunkIDsRequest) GetEnd() time.Time {
  1540  	if m != nil {
  1541  		return m.End
  1542  	}
  1543  	return time.Time{}
  1544  }
  1545  
  1546  type GetChunkIDsResponse struct {
  1547  	ChunkIDs []string `protobuf:"bytes,1,rep,name=chunkIDs,proto3" json:"chunkIDs,omitempty"`
  1548  }
  1549  
  1550  func (m *GetChunkIDsResponse) Reset()      { *m = GetChunkIDsResponse{} }
  1551  func (*GetChunkIDsResponse) ProtoMessage() {}
  1552  func (*GetChunkIDsResponse) Descriptor() ([]byte, []int) {
  1553  	return fileDescriptor_c28a5f14f1f4c79a, []int{28}
  1554  }
  1555  func (m *GetChunkIDsResponse) XXX_Unmarshal(b []byte) error {
  1556  	return m.Unmarshal(b)
  1557  }
  1558  func (m *GetChunkIDsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1559  	if deterministic {
  1560  		return xxx_messageInfo_GetChunkIDsResponse.Marshal(b, m, deterministic)
  1561  	} else {
  1562  		b = b[:cap(b)]
  1563  		n, err := m.MarshalToSizedBuffer(b)
  1564  		if err != nil {
  1565  			return nil, err
  1566  		}
  1567  		return b[:n], nil
  1568  	}
  1569  }
  1570  func (m *GetChunkIDsResponse) XXX_Merge(src proto.Message) {
  1571  	xxx_messageInfo_GetChunkIDsResponse.Merge(m, src)
  1572  }
  1573  func (m *GetChunkIDsResponse) XXX_Size() int {
  1574  	return m.Size()
  1575  }
  1576  func (m *GetChunkIDsResponse) XXX_DiscardUnknown() {
  1577  	xxx_messageInfo_GetChunkIDsResponse.DiscardUnknown(m)
  1578  }
  1579  
  1580  var xxx_messageInfo_GetChunkIDsResponse proto.InternalMessageInfo
  1581  
  1582  func (m *GetChunkIDsResponse) GetChunkIDs() []string {
  1583  	if m != nil {
  1584  		return m.ChunkIDs
  1585  	}
  1586  	return nil
  1587  }
  1588  
  1589  // ChunkRef contains the metadata to reference a Chunk.
  1590  // It is embedded by the Chunk type itself and used to generate the Chunk
  1591  // checksum. So it is imported to take care of the JSON representation of the
  1592  // resulting Go struct.
  1593  type ChunkRef struct {
  1594  	Fingerprint uint64                                  `protobuf:"varint,1,opt,name=fingerprint,proto3" json:"fingerprint"`
  1595  	UserID      string                                  `protobuf:"bytes,2,opt,name=user_id,json=userId,proto3" json:"userID"`
  1596  	From        github_com_prometheus_common_model.Time `protobuf:"varint,3,opt,name=from,proto3,customtype=github.com/prometheus/common/model.Time" json:"from"`
  1597  	Through     github_com_prometheus_common_model.Time `protobuf:"varint,4,opt,name=through,proto3,customtype=github.com/prometheus/common/model.Time" json:"through"`
  1598  	// The checksum is not written to the external storage. We use crc32,
  1599  	// Castagnoli table. See http://www.evanjones.ca/crc32c.html.
  1600  	Checksum uint32 `protobuf:"varint,5,opt,name=checksum,proto3" json:"-"`
  1601  }
  1602  
  1603  func (m *ChunkRef) Reset()      { *m = ChunkRef{} }
  1604  func (*ChunkRef) ProtoMessage() {}
  1605  func (*ChunkRef) Descriptor() ([]byte, []int) {
  1606  	return fileDescriptor_c28a5f14f1f4c79a, []int{29}
  1607  }
  1608  func (m *ChunkRef) XXX_Unmarshal(b []byte) error {
  1609  	return m.Unmarshal(b)
  1610  }
  1611  func (m *ChunkRef) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1612  	if deterministic {
  1613  		return xxx_messageInfo_ChunkRef.Marshal(b, m, deterministic)
  1614  	} else {
  1615  		b = b[:cap(b)]
  1616  		n, err := m.MarshalToSizedBuffer(b)
  1617  		if err != nil {
  1618  			return nil, err
  1619  		}
  1620  		return b[:n], nil
  1621  	}
  1622  }
  1623  func (m *ChunkRef) XXX_Merge(src proto.Message) {
  1624  	xxx_messageInfo_ChunkRef.Merge(m, src)
  1625  }
  1626  func (m *ChunkRef) XXX_Size() int {
  1627  	return m.Size()
  1628  }
  1629  func (m *ChunkRef) XXX_DiscardUnknown() {
  1630  	xxx_messageInfo_ChunkRef.DiscardUnknown(m)
  1631  }
  1632  
  1633  var xxx_messageInfo_ChunkRef proto.InternalMessageInfo
  1634  
  1635  func (m *ChunkRef) GetFingerprint() uint64 {
  1636  	if m != nil {
  1637  		return m.Fingerprint
  1638  	}
  1639  	return 0
  1640  }
  1641  
  1642  func (m *ChunkRef) GetUserID() string {
  1643  	if m != nil {
  1644  		return m.UserID
  1645  	}
  1646  	return ""
  1647  }
  1648  
  1649  func (m *ChunkRef) GetChecksum() uint32 {
  1650  	if m != nil {
  1651  		return m.Checksum
  1652  	}
  1653  	return 0
  1654  }
  1655  
  1656  type LabelValuesForMetricNameRequest struct {
  1657  	MetricName string                                  `protobuf:"bytes,1,opt,name=metric_name,json=metricName,proto3" json:"metric_name,omitempty"`
  1658  	LabelName  string                                  `protobuf:"bytes,2,opt,name=label_name,json=labelName,proto3" json:"label_name,omitempty"`
  1659  	From       github_com_prometheus_common_model.Time `protobuf:"varint,3,opt,name=from,proto3,customtype=github.com/prometheus/common/model.Time" json:"from"`
  1660  	Through    github_com_prometheus_common_model.Time `protobuf:"varint,4,opt,name=through,proto3,customtype=github.com/prometheus/common/model.Time" json:"through"`
  1661  	Matchers   string                                  `protobuf:"bytes,5,opt,name=matchers,proto3" json:"matchers,omitempty"`
  1662  }
  1663  
  1664  func (m *LabelValuesForMetricNameRequest) Reset()      { *m = LabelValuesForMetricNameRequest{} }
  1665  func (*LabelValuesForMetricNameRequest) ProtoMessage() {}
  1666  func (*LabelValuesForMetricNameRequest) Descriptor() ([]byte, []int) {
  1667  	return fileDescriptor_c28a5f14f1f4c79a, []int{30}
  1668  }
  1669  func (m *LabelValuesForMetricNameRequest) XXX_Unmarshal(b []byte) error {
  1670  	return m.Unmarshal(b)
  1671  }
  1672  func (m *LabelValuesForMetricNameRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1673  	if deterministic {
  1674  		return xxx_messageInfo_LabelValuesForMetricNameRequest.Marshal(b, m, deterministic)
  1675  	} else {
  1676  		b = b[:cap(b)]
  1677  		n, err := m.MarshalToSizedBuffer(b)
  1678  		if err != nil {
  1679  			return nil, err
  1680  		}
  1681  		return b[:n], nil
  1682  	}
  1683  }
  1684  func (m *LabelValuesForMetricNameRequest) XXX_Merge(src proto.Message) {
  1685  	xxx_messageInfo_LabelValuesForMetricNameRequest.Merge(m, src)
  1686  }
  1687  func (m *LabelValuesForMetricNameRequest) XXX_Size() int {
  1688  	return m.Size()
  1689  }
  1690  func (m *LabelValuesForMetricNameRequest) XXX_DiscardUnknown() {
  1691  	xxx_messageInfo_LabelValuesForMetricNameRequest.DiscardUnknown(m)
  1692  }
  1693  
  1694  var xxx_messageInfo_LabelValuesForMetricNameRequest proto.InternalMessageInfo
  1695  
  1696  func (m *LabelValuesForMetricNameRequest) GetMetricName() string {
  1697  	if m != nil {
  1698  		return m.MetricName
  1699  	}
  1700  	return ""
  1701  }
  1702  
  1703  func (m *LabelValuesForMetricNameRequest) GetLabelName() string {
  1704  	if m != nil {
  1705  		return m.LabelName
  1706  	}
  1707  	return ""
  1708  }
  1709  
  1710  func (m *LabelValuesForMetricNameRequest) GetMatchers() string {
  1711  	if m != nil {
  1712  		return m.Matchers
  1713  	}
  1714  	return ""
  1715  }
  1716  
  1717  type LabelNamesForMetricNameRequest struct {
  1718  	MetricName string                                  `protobuf:"bytes,1,opt,name=metric_name,json=metricName,proto3" json:"metric_name,omitempty"`
  1719  	From       github_com_prometheus_common_model.Time `protobuf:"varint,2,opt,name=from,proto3,customtype=github.com/prometheus/common/model.Time" json:"from"`
  1720  	Through    github_com_prometheus_common_model.Time `protobuf:"varint,3,opt,name=through,proto3,customtype=github.com/prometheus/common/model.Time" json:"through"`
  1721  }
  1722  
  1723  func (m *LabelNamesForMetricNameRequest) Reset()      { *m = LabelNamesForMetricNameRequest{} }
  1724  func (*LabelNamesForMetricNameRequest) ProtoMessage() {}
  1725  func (*LabelNamesForMetricNameRequest) Descriptor() ([]byte, []int) {
  1726  	return fileDescriptor_c28a5f14f1f4c79a, []int{31}
  1727  }
  1728  func (m *LabelNamesForMetricNameRequest) XXX_Unmarshal(b []byte) error {
  1729  	return m.Unmarshal(b)
  1730  }
  1731  func (m *LabelNamesForMetricNameRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1732  	if deterministic {
  1733  		return xxx_messageInfo_LabelNamesForMetricNameRequest.Marshal(b, m, deterministic)
  1734  	} else {
  1735  		b = b[:cap(b)]
  1736  		n, err := m.MarshalToSizedBuffer(b)
  1737  		if err != nil {
  1738  			return nil, err
  1739  		}
  1740  		return b[:n], nil
  1741  	}
  1742  }
  1743  func (m *LabelNamesForMetricNameRequest) XXX_Merge(src proto.Message) {
  1744  	xxx_messageInfo_LabelNamesForMetricNameRequest.Merge(m, src)
  1745  }
  1746  func (m *LabelNamesForMetricNameRequest) XXX_Size() int {
  1747  	return m.Size()
  1748  }
  1749  func (m *LabelNamesForMetricNameRequest) XXX_DiscardUnknown() {
  1750  	xxx_messageInfo_LabelNamesForMetricNameRequest.DiscardUnknown(m)
  1751  }
  1752  
  1753  var xxx_messageInfo_LabelNamesForMetricNameRequest proto.InternalMessageInfo
  1754  
  1755  func (m *LabelNamesForMetricNameRequest) GetMetricName() string {
  1756  	if m != nil {
  1757  		return m.MetricName
  1758  	}
  1759  	return ""
  1760  }
  1761  
  1762  type GetChunkRefRequest struct {
  1763  	From     github_com_prometheus_common_model.Time `protobuf:"varint,1,opt,name=from,proto3,customtype=github.com/prometheus/common/model.Time" json:"from"`
  1764  	Through  github_com_prometheus_common_model.Time `protobuf:"varint,2,opt,name=through,proto3,customtype=github.com/prometheus/common/model.Time" json:"through"`
  1765  	Matchers string                                  `protobuf:"bytes,3,opt,name=matchers,proto3" json:"matchers,omitempty"`
  1766  }
  1767  
  1768  func (m *GetChunkRefRequest) Reset()      { *m = GetChunkRefRequest{} }
  1769  func (*GetChunkRefRequest) ProtoMessage() {}
  1770  func (*GetChunkRefRequest) Descriptor() ([]byte, []int) {
  1771  	return fileDescriptor_c28a5f14f1f4c79a, []int{32}
  1772  }
  1773  func (m *GetChunkRefRequest) XXX_Unmarshal(b []byte) error {
  1774  	return m.Unmarshal(b)
  1775  }
  1776  func (m *GetChunkRefRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1777  	if deterministic {
  1778  		return xxx_messageInfo_GetChunkRefRequest.Marshal(b, m, deterministic)
  1779  	} else {
  1780  		b = b[:cap(b)]
  1781  		n, err := m.MarshalToSizedBuffer(b)
  1782  		if err != nil {
  1783  			return nil, err
  1784  		}
  1785  		return b[:n], nil
  1786  	}
  1787  }
  1788  func (m *GetChunkRefRequest) XXX_Merge(src proto.Message) {
  1789  	xxx_messageInfo_GetChunkRefRequest.Merge(m, src)
  1790  }
  1791  func (m *GetChunkRefRequest) XXX_Size() int {
  1792  	return m.Size()
  1793  }
  1794  func (m *GetChunkRefRequest) XXX_DiscardUnknown() {
  1795  	xxx_messageInfo_GetChunkRefRequest.DiscardUnknown(m)
  1796  }
  1797  
  1798  var xxx_messageInfo_GetChunkRefRequest proto.InternalMessageInfo
  1799  
  1800  func (m *GetChunkRefRequest) GetMatchers() string {
  1801  	if m != nil {
  1802  		return m.Matchers
  1803  	}
  1804  	return ""
  1805  }
  1806  
  1807  type GetChunkRefResponse struct {
  1808  	Refs []*ChunkRef `protobuf:"bytes,1,rep,name=refs,proto3" json:"refs,omitempty"`
  1809  }
  1810  
  1811  func (m *GetChunkRefResponse) Reset()      { *m = GetChunkRefResponse{} }
  1812  func (*GetChunkRefResponse) ProtoMessage() {}
  1813  func (*GetChunkRefResponse) Descriptor() ([]byte, []int) {
  1814  	return fileDescriptor_c28a5f14f1f4c79a, []int{33}
  1815  }
  1816  func (m *GetChunkRefResponse) XXX_Unmarshal(b []byte) error {
  1817  	return m.Unmarshal(b)
  1818  }
  1819  func (m *GetChunkRefResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1820  	if deterministic {
  1821  		return xxx_messageInfo_GetChunkRefResponse.Marshal(b, m, deterministic)
  1822  	} else {
  1823  		b = b[:cap(b)]
  1824  		n, err := m.MarshalToSizedBuffer(b)
  1825  		if err != nil {
  1826  			return nil, err
  1827  		}
  1828  		return b[:n], nil
  1829  	}
  1830  }
  1831  func (m *GetChunkRefResponse) XXX_Merge(src proto.Message) {
  1832  	xxx_messageInfo_GetChunkRefResponse.Merge(m, src)
  1833  }
  1834  func (m *GetChunkRefResponse) XXX_Size() int {
  1835  	return m.Size()
  1836  }
  1837  func (m *GetChunkRefResponse) XXX_DiscardUnknown() {
  1838  	xxx_messageInfo_GetChunkRefResponse.DiscardUnknown(m)
  1839  }
  1840  
  1841  var xxx_messageInfo_GetChunkRefResponse proto.InternalMessageInfo
  1842  
  1843  func (m *GetChunkRefResponse) GetRefs() []*ChunkRef {
  1844  	if m != nil {
  1845  		return m.Refs
  1846  	}
  1847  	return nil
  1848  }
  1849  
  1850  type GetSeriesRequest struct {
  1851  	From     github_com_prometheus_common_model.Time `protobuf:"varint,1,opt,name=from,proto3,customtype=github.com/prometheus/common/model.Time" json:"from"`
  1852  	Through  github_com_prometheus_common_model.Time `protobuf:"varint,2,opt,name=through,proto3,customtype=github.com/prometheus/common/model.Time" json:"through"`
  1853  	Matchers string                                  `protobuf:"bytes,3,opt,name=matchers,proto3" json:"matchers,omitempty"`
  1854  }
  1855  
  1856  func (m *GetSeriesRequest) Reset()      { *m = GetSeriesRequest{} }
  1857  func (*GetSeriesRequest) ProtoMessage() {}
  1858  func (*GetSeriesRequest) Descriptor() ([]byte, []int) {
  1859  	return fileDescriptor_c28a5f14f1f4c79a, []int{34}
  1860  }
  1861  func (m *GetSeriesRequest) XXX_Unmarshal(b []byte) error {
  1862  	return m.Unmarshal(b)
  1863  }
  1864  func (m *GetSeriesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1865  	if deterministic {
  1866  		return xxx_messageInfo_GetSeriesRequest.Marshal(b, m, deterministic)
  1867  	} else {
  1868  		b = b[:cap(b)]
  1869  		n, err := m.MarshalToSizedBuffer(b)
  1870  		if err != nil {
  1871  			return nil, err
  1872  		}
  1873  		return b[:n], nil
  1874  	}
  1875  }
  1876  func (m *GetSeriesRequest) XXX_Merge(src proto.Message) {
  1877  	xxx_messageInfo_GetSeriesRequest.Merge(m, src)
  1878  }
  1879  func (m *GetSeriesRequest) XXX_Size() int {
  1880  	return m.Size()
  1881  }
  1882  func (m *GetSeriesRequest) XXX_DiscardUnknown() {
  1883  	xxx_messageInfo_GetSeriesRequest.DiscardUnknown(m)
  1884  }
  1885  
  1886  var xxx_messageInfo_GetSeriesRequest proto.InternalMessageInfo
  1887  
  1888  func (m *GetSeriesRequest) GetMatchers() string {
  1889  	if m != nil {
  1890  		return m.Matchers
  1891  	}
  1892  	return ""
  1893  }
  1894  
  1895  type GetSeriesResponse struct {
  1896  	Series []IndexSeries `protobuf:"bytes,1,rep,name=series,proto3" json:"series"`
  1897  }
  1898  
  1899  func (m *GetSeriesResponse) Reset()      { *m = GetSeriesResponse{} }
  1900  func (*GetSeriesResponse) ProtoMessage() {}
  1901  func (*GetSeriesResponse) Descriptor() ([]byte, []int) {
  1902  	return fileDescriptor_c28a5f14f1f4c79a, []int{35}
  1903  }
  1904  func (m *GetSeriesResponse) XXX_Unmarshal(b []byte) error {
  1905  	return m.Unmarshal(b)
  1906  }
  1907  func (m *GetSeriesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1908  	if deterministic {
  1909  		return xxx_messageInfo_GetSeriesResponse.Marshal(b, m, deterministic)
  1910  	} else {
  1911  		b = b[:cap(b)]
  1912  		n, err := m.MarshalToSizedBuffer(b)
  1913  		if err != nil {
  1914  			return nil, err
  1915  		}
  1916  		return b[:n], nil
  1917  	}
  1918  }
  1919  func (m *GetSeriesResponse) XXX_Merge(src proto.Message) {
  1920  	xxx_messageInfo_GetSeriesResponse.Merge(m, src)
  1921  }
  1922  func (m *GetSeriesResponse) XXX_Size() int {
  1923  	return m.Size()
  1924  }
  1925  func (m *GetSeriesResponse) XXX_DiscardUnknown() {
  1926  	xxx_messageInfo_GetSeriesResponse.DiscardUnknown(m)
  1927  }
  1928  
  1929  var xxx_messageInfo_GetSeriesResponse proto.InternalMessageInfo
  1930  
  1931  func (m *GetSeriesResponse) GetSeries() []IndexSeries {
  1932  	if m != nil {
  1933  		return m.Series
  1934  	}
  1935  	return nil
  1936  }
  1937  
  1938  // Series calls to the TSDB Index
  1939  type IndexSeries struct {
  1940  	Labels []LabelAdapter `protobuf:"bytes,1,rep,name=labels,proto3,customtype=LabelAdapter" json:"labels"`
  1941  }
  1942  
  1943  func (m *IndexSeries) Reset()      { *m = IndexSeries{} }
  1944  func (*IndexSeries) ProtoMessage() {}
  1945  func (*IndexSeries) Descriptor() ([]byte, []int) {
  1946  	return fileDescriptor_c28a5f14f1f4c79a, []int{36}
  1947  }
  1948  func (m *IndexSeries) XXX_Unmarshal(b []byte) error {
  1949  	return m.Unmarshal(b)
  1950  }
  1951  func (m *IndexSeries) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1952  	if deterministic {
  1953  		return xxx_messageInfo_IndexSeries.Marshal(b, m, deterministic)
  1954  	} else {
  1955  		b = b[:cap(b)]
  1956  		n, err := m.MarshalToSizedBuffer(b)
  1957  		if err != nil {
  1958  			return nil, err
  1959  		}
  1960  		return b[:n], nil
  1961  	}
  1962  }
  1963  func (m *IndexSeries) XXX_Merge(src proto.Message) {
  1964  	xxx_messageInfo_IndexSeries.Merge(m, src)
  1965  }
  1966  func (m *IndexSeries) XXX_Size() int {
  1967  	return m.Size()
  1968  }
  1969  func (m *IndexSeries) XXX_DiscardUnknown() {
  1970  	xxx_messageInfo_IndexSeries.DiscardUnknown(m)
  1971  }
  1972  
  1973  var xxx_messageInfo_IndexSeries proto.InternalMessageInfo
  1974  
  1975  type QueryIndexResponse struct {
  1976  	QueryKey string `protobuf:"bytes,1,opt,name=QueryKey,proto3" json:"QueryKey,omitempty"`
  1977  	Rows     []*Row `protobuf:"bytes,2,rep,name=rows,proto3" json:"rows,omitempty"`
  1978  }
  1979  
  1980  func (m *QueryIndexResponse) Reset()      { *m = QueryIndexResponse{} }
  1981  func (*QueryIndexResponse) ProtoMessage() {}
  1982  func (*QueryIndexResponse) Descriptor() ([]byte, []int) {
  1983  	return fileDescriptor_c28a5f14f1f4c79a, []int{37}
  1984  }
  1985  func (m *QueryIndexResponse) XXX_Unmarshal(b []byte) error {
  1986  	return m.Unmarshal(b)
  1987  }
  1988  func (m *QueryIndexResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1989  	if deterministic {
  1990  		return xxx_messageInfo_QueryIndexResponse.Marshal(b, m, deterministic)
  1991  	} else {
  1992  		b = b[:cap(b)]
  1993  		n, err := m.MarshalToSizedBuffer(b)
  1994  		if err != nil {
  1995  			return nil, err
  1996  		}
  1997  		return b[:n], nil
  1998  	}
  1999  }
  2000  func (m *QueryIndexResponse) XXX_Merge(src proto.Message) {
  2001  	xxx_messageInfo_QueryIndexResponse.Merge(m, src)
  2002  }
  2003  func (m *QueryIndexResponse) XXX_Size() int {
  2004  	return m.Size()
  2005  }
  2006  func (m *QueryIndexResponse) XXX_DiscardUnknown() {
  2007  	xxx_messageInfo_QueryIndexResponse.DiscardUnknown(m)
  2008  }
  2009  
  2010  var xxx_messageInfo_QueryIndexResponse proto.InternalMessageInfo
  2011  
  2012  func (m *QueryIndexResponse) GetQueryKey() string {
  2013  	if m != nil {
  2014  		return m.QueryKey
  2015  	}
  2016  	return ""
  2017  }
  2018  
  2019  func (m *QueryIndexResponse) GetRows() []*Row {
  2020  	if m != nil {
  2021  		return m.Rows
  2022  	}
  2023  	return nil
  2024  }
  2025  
  2026  type Row struct {
  2027  	RangeValue []byte `protobuf:"bytes,1,opt,name=rangeValue,proto3" json:"rangeValue,omitempty"`
  2028  	Value      []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
  2029  }
  2030  
  2031  func (m *Row) Reset()      { *m = Row{} }
  2032  func (*Row) ProtoMessage() {}
  2033  func (*Row) Descriptor() ([]byte, []int) {
  2034  	return fileDescriptor_c28a5f14f1f4c79a, []int{38}
  2035  }
  2036  func (m *Row) XXX_Unmarshal(b []byte) error {
  2037  	return m.Unmarshal(b)
  2038  }
  2039  func (m *Row) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2040  	if deterministic {
  2041  		return xxx_messageInfo_Row.Marshal(b, m, deterministic)
  2042  	} else {
  2043  		b = b[:cap(b)]
  2044  		n, err := m.MarshalToSizedBuffer(b)
  2045  		if err != nil {
  2046  			return nil, err
  2047  		}
  2048  		return b[:n], nil
  2049  	}
  2050  }
  2051  func (m *Row) XXX_Merge(src proto.Message) {
  2052  	xxx_messageInfo_Row.Merge(m, src)
  2053  }
  2054  func (m *Row) XXX_Size() int {
  2055  	return m.Size()
  2056  }
  2057  func (m *Row) XXX_DiscardUnknown() {
  2058  	xxx_messageInfo_Row.DiscardUnknown(m)
  2059  }
  2060  
  2061  var xxx_messageInfo_Row proto.InternalMessageInfo
  2062  
  2063  func (m *Row) GetRangeValue() []byte {
  2064  	if m != nil {
  2065  		return m.RangeValue
  2066  	}
  2067  	return nil
  2068  }
  2069  
  2070  func (m *Row) GetValue() []byte {
  2071  	if m != nil {
  2072  		return m.Value
  2073  	}
  2074  	return nil
  2075  }
  2076  
  2077  type QueryIndexRequest struct {
  2078  	Queries []*IndexQuery `protobuf:"bytes,1,rep,name=Queries,proto3" json:"Queries,omitempty"`
  2079  }
  2080  
  2081  func (m *QueryIndexRequest) Reset()      { *m = QueryIndexRequest{} }
  2082  func (*QueryIndexRequest) ProtoMessage() {}
  2083  func (*QueryIndexRequest) Descriptor() ([]byte, []int) {
  2084  	return fileDescriptor_c28a5f14f1f4c79a, []int{39}
  2085  }
  2086  func (m *QueryIndexRequest) XXX_Unmarshal(b []byte) error {
  2087  	return m.Unmarshal(b)
  2088  }
  2089  func (m *QueryIndexRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2090  	if deterministic {
  2091  		return xxx_messageInfo_QueryIndexRequest.Marshal(b, m, deterministic)
  2092  	} else {
  2093  		b = b[:cap(b)]
  2094  		n, err := m.MarshalToSizedBuffer(b)
  2095  		if err != nil {
  2096  			return nil, err
  2097  		}
  2098  		return b[:n], nil
  2099  	}
  2100  }
  2101  func (m *QueryIndexRequest) XXX_Merge(src proto.Message) {
  2102  	xxx_messageInfo_QueryIndexRequest.Merge(m, src)
  2103  }
  2104  func (m *QueryIndexRequest) XXX_Size() int {
  2105  	return m.Size()
  2106  }
  2107  func (m *QueryIndexRequest) XXX_DiscardUnknown() {
  2108  	xxx_messageInfo_QueryIndexRequest.DiscardUnknown(m)
  2109  }
  2110  
  2111  var xxx_messageInfo_QueryIndexRequest proto.InternalMessageInfo
  2112  
  2113  func (m *QueryIndexRequest) GetQueries() []*IndexQuery {
  2114  	if m != nil {
  2115  		return m.Queries
  2116  	}
  2117  	return nil
  2118  }
  2119  
  2120  type IndexQuery struct {
  2121  	TableName        string `protobuf:"bytes,1,opt,name=tableName,proto3" json:"tableName,omitempty"`
  2122  	HashValue        string `protobuf:"bytes,2,opt,name=hashValue,proto3" json:"hashValue,omitempty"`
  2123  	RangeValuePrefix []byte `protobuf:"bytes,3,opt,name=rangeValuePrefix,proto3" json:"rangeValuePrefix,omitempty"`
  2124  	RangeValueStart  []byte `protobuf:"bytes,4,opt,name=rangeValueStart,proto3" json:"rangeValueStart,omitempty"`
  2125  	ValueEqual       []byte `protobuf:"bytes,5,opt,name=valueEqual,proto3" json:"valueEqual,omitempty"`
  2126  }
  2127  
  2128  func (m *IndexQuery) Reset()      { *m = IndexQuery{} }
  2129  func (*IndexQuery) ProtoMessage() {}
  2130  func (*IndexQuery) Descriptor() ([]byte, []int) {
  2131  	return fileDescriptor_c28a5f14f1f4c79a, []int{40}
  2132  }
  2133  func (m *IndexQuery) XXX_Unmarshal(b []byte) error {
  2134  	return m.Unmarshal(b)
  2135  }
  2136  func (m *IndexQuery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2137  	if deterministic {
  2138  		return xxx_messageInfo_IndexQuery.Marshal(b, m, deterministic)
  2139  	} else {
  2140  		b = b[:cap(b)]
  2141  		n, err := m.MarshalToSizedBuffer(b)
  2142  		if err != nil {
  2143  			return nil, err
  2144  		}
  2145  		return b[:n], nil
  2146  	}
  2147  }
  2148  func (m *IndexQuery) XXX_Merge(src proto.Message) {
  2149  	xxx_messageInfo_IndexQuery.Merge(m, src)
  2150  }
  2151  func (m *IndexQuery) XXX_Size() int {
  2152  	return m.Size()
  2153  }
  2154  func (m *IndexQuery) XXX_DiscardUnknown() {
  2155  	xxx_messageInfo_IndexQuery.DiscardUnknown(m)
  2156  }
  2157  
  2158  var xxx_messageInfo_IndexQuery proto.InternalMessageInfo
  2159  
  2160  func (m *IndexQuery) GetTableName() string {
  2161  	if m != nil {
  2162  		return m.TableName
  2163  	}
  2164  	return ""
  2165  }
  2166  
  2167  func (m *IndexQuery) GetHashValue() string {
  2168  	if m != nil {
  2169  		return m.HashValue
  2170  	}
  2171  	return ""
  2172  }
  2173  
  2174  func (m *IndexQuery) GetRangeValuePrefix() []byte {
  2175  	if m != nil {
  2176  		return m.RangeValuePrefix
  2177  	}
  2178  	return nil
  2179  }
  2180  
  2181  func (m *IndexQuery) GetRangeValueStart() []byte {
  2182  	if m != nil {
  2183  		return m.RangeValueStart
  2184  	}
  2185  	return nil
  2186  }
  2187  
  2188  func (m *IndexQuery) GetValueEqual() []byte {
  2189  	if m != nil {
  2190  		return m.ValueEqual
  2191  	}
  2192  	return nil
  2193  }
  2194  
  2195  type IndexStatsRequest struct {
  2196  	From     github_com_prometheus_common_model.Time `protobuf:"varint,1,opt,name=from,proto3,customtype=github.com/prometheus/common/model.Time" json:"from"`
  2197  	Through  github_com_prometheus_common_model.Time `protobuf:"varint,2,opt,name=through,proto3,customtype=github.com/prometheus/common/model.Time" json:"through"`
  2198  	Matchers string                                  `protobuf:"bytes,3,opt,name=matchers,proto3" json:"matchers,omitempty"`
  2199  }
  2200  
  2201  func (m *IndexStatsRequest) Reset()      { *m = IndexStatsRequest{} }
  2202  func (*IndexStatsRequest) ProtoMessage() {}
  2203  func (*IndexStatsRequest) Descriptor() ([]byte, []int) {
  2204  	return fileDescriptor_c28a5f14f1f4c79a, []int{41}
  2205  }
  2206  func (m *IndexStatsRequest) XXX_Unmarshal(b []byte) error {
  2207  	return m.Unmarshal(b)
  2208  }
  2209  func (m *IndexStatsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2210  	if deterministic {
  2211  		return xxx_messageInfo_IndexStatsRequest.Marshal(b, m, deterministic)
  2212  	} else {
  2213  		b = b[:cap(b)]
  2214  		n, err := m.MarshalToSizedBuffer(b)
  2215  		if err != nil {
  2216  			return nil, err
  2217  		}
  2218  		return b[:n], nil
  2219  	}
  2220  }
  2221  func (m *IndexStatsRequest) XXX_Merge(src proto.Message) {
  2222  	xxx_messageInfo_IndexStatsRequest.Merge(m, src)
  2223  }
  2224  func (m *IndexStatsRequest) XXX_Size() int {
  2225  	return m.Size()
  2226  }
  2227  func (m *IndexStatsRequest) XXX_DiscardUnknown() {
  2228  	xxx_messageInfo_IndexStatsRequest.DiscardUnknown(m)
  2229  }
  2230  
  2231  var xxx_messageInfo_IndexStatsRequest proto.InternalMessageInfo
  2232  
  2233  func (m *IndexStatsRequest) GetMatchers() string {
  2234  	if m != nil {
  2235  		return m.Matchers
  2236  	}
  2237  	return ""
  2238  }
  2239  
  2240  type IndexStatsResponse struct {
  2241  	Streams uint64 `protobuf:"varint,1,opt,name=streams,proto3" json:"streams"`
  2242  	Chunks  uint64 `protobuf:"varint,2,opt,name=chunks,proto3" json:"chunks"`
  2243  	Bytes   uint64 `protobuf:"varint,3,opt,name=bytes,proto3" json:"bytes"`
  2244  	Entries uint64 `protobuf:"varint,4,opt,name=entries,proto3" json:"entries"`
  2245  }
  2246  
  2247  func (m *IndexStatsResponse) Reset()      { *m = IndexStatsResponse{} }
  2248  func (*IndexStatsResponse) ProtoMessage() {}
  2249  func (*IndexStatsResponse) Descriptor() ([]byte, []int) {
  2250  	return fileDescriptor_c28a5f14f1f4c79a, []int{42}
  2251  }
  2252  func (m *IndexStatsResponse) XXX_Unmarshal(b []byte) error {
  2253  	return m.Unmarshal(b)
  2254  }
  2255  func (m *IndexStatsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2256  	if deterministic {
  2257  		return xxx_messageInfo_IndexStatsResponse.Marshal(b, m, deterministic)
  2258  	} else {
  2259  		b = b[:cap(b)]
  2260  		n, err := m.MarshalToSizedBuffer(b)
  2261  		if err != nil {
  2262  			return nil, err
  2263  		}
  2264  		return b[:n], nil
  2265  	}
  2266  }
  2267  func (m *IndexStatsResponse) XXX_Merge(src proto.Message) {
  2268  	xxx_messageInfo_IndexStatsResponse.Merge(m, src)
  2269  }
  2270  func (m *IndexStatsResponse) XXX_Size() int {
  2271  	return m.Size()
  2272  }
  2273  func (m *IndexStatsResponse) XXX_DiscardUnknown() {
  2274  	xxx_messageInfo_IndexStatsResponse.DiscardUnknown(m)
  2275  }
  2276  
  2277  var xxx_messageInfo_IndexStatsResponse proto.InternalMessageInfo
  2278  
  2279  func (m *IndexStatsResponse) GetStreams() uint64 {
  2280  	if m != nil {
  2281  		return m.Streams
  2282  	}
  2283  	return 0
  2284  }
  2285  
  2286  func (m *IndexStatsResponse) GetChunks() uint64 {
  2287  	if m != nil {
  2288  		return m.Chunks
  2289  	}
  2290  	return 0
  2291  }
  2292  
  2293  func (m *IndexStatsResponse) GetBytes() uint64 {
  2294  	if m != nil {
  2295  		return m.Bytes
  2296  	}
  2297  	return 0
  2298  }
  2299  
  2300  func (m *IndexStatsResponse) GetEntries() uint64 {
  2301  	if m != nil {
  2302  		return m.Entries
  2303  	}
  2304  	return 0
  2305  }
  2306  
  2307  func init() {
  2308  	proto.RegisterEnum("logproto.Direction", Direction_name, Direction_value)
  2309  	proto.RegisterType((*PushRequest)(nil), "logproto.PushRequest")
  2310  	proto.RegisterType((*PushResponse)(nil), "logproto.PushResponse")
  2311  	proto.RegisterType((*QueryRequest)(nil), "logproto.QueryRequest")
  2312  	proto.RegisterType((*SampleQueryRequest)(nil), "logproto.SampleQueryRequest")
  2313  	proto.RegisterType((*Delete)(nil), "logproto.Delete")
  2314  	proto.RegisterType((*QueryResponse)(nil), "logproto.QueryResponse")
  2315  	proto.RegisterType((*SampleQueryResponse)(nil), "logproto.SampleQueryResponse")
  2316  	proto.RegisterType((*LabelRequest)(nil), "logproto.LabelRequest")
  2317  	proto.RegisterType((*LabelResponse)(nil), "logproto.LabelResponse")
  2318  	proto.RegisterType((*StreamAdapter)(nil), "logproto.StreamAdapter")
  2319  	proto.RegisterType((*EntryAdapter)(nil), "logproto.EntryAdapter")
  2320  	proto.RegisterType((*Sample)(nil), "logproto.Sample")
  2321  	proto.RegisterType((*LegacySample)(nil), "logproto.LegacySample")
  2322  	proto.RegisterType((*Series)(nil), "logproto.Series")
  2323  	proto.RegisterType((*TailRequest)(nil), "logproto.TailRequest")
  2324  	proto.RegisterType((*TailResponse)(nil), "logproto.TailResponse")
  2325  	proto.RegisterType((*SeriesRequest)(nil), "logproto.SeriesRequest")
  2326  	proto.RegisterType((*SeriesResponse)(nil), "logproto.SeriesResponse")
  2327  	proto.RegisterType((*SeriesIdentifier)(nil), "logproto.SeriesIdentifier")
  2328  	proto.RegisterMapType((map[string]string)(nil), "logproto.SeriesIdentifier.LabelsEntry")
  2329  	proto.RegisterType((*DroppedStream)(nil), "logproto.DroppedStream")
  2330  	proto.RegisterType((*TimeSeriesChunk)(nil), "logproto.TimeSeriesChunk")
  2331  	proto.RegisterType((*LabelPair)(nil), "logproto.LabelPair")
  2332  	proto.RegisterType((*LegacyLabelPair)(nil), "logproto.LegacyLabelPair")
  2333  	proto.RegisterType((*Chunk)(nil), "logproto.Chunk")
  2334  	proto.RegisterType((*TransferChunksResponse)(nil), "logproto.TransferChunksResponse")
  2335  	proto.RegisterType((*TailersCountRequest)(nil), "logproto.TailersCountRequest")
  2336  	proto.RegisterType((*TailersCountResponse)(nil), "logproto.TailersCountResponse")
  2337  	proto.RegisterType((*GetChunkIDsRequest)(nil), "logproto.GetChunkIDsRequest")
  2338  	proto.RegisterType((*GetChunkIDsResponse)(nil), "logproto.GetChunkIDsResponse")
  2339  	proto.RegisterType((*ChunkRef)(nil), "logproto.ChunkRef")
  2340  	proto.RegisterType((*LabelValuesForMetricNameRequest)(nil), "logproto.LabelValuesForMetricNameRequest")
  2341  	proto.RegisterType((*LabelNamesForMetricNameRequest)(nil), "logproto.LabelNamesForMetricNameRequest")
  2342  	proto.RegisterType((*GetChunkRefRequest)(nil), "logproto.GetChunkRefRequest")
  2343  	proto.RegisterType((*GetChunkRefResponse)(nil), "logproto.GetChunkRefResponse")
  2344  	proto.RegisterType((*GetSeriesRequest)(nil), "logproto.GetSeriesRequest")
  2345  	proto.RegisterType((*GetSeriesResponse)(nil), "logproto.GetSeriesResponse")
  2346  	proto.RegisterType((*IndexSeries)(nil), "logproto.IndexSeries")
  2347  	proto.RegisterType((*QueryIndexResponse)(nil), "logproto.QueryIndexResponse")
  2348  	proto.RegisterType((*Row)(nil), "logproto.Row")
  2349  	proto.RegisterType((*QueryIndexRequest)(nil), "logproto.QueryIndexRequest")
  2350  	proto.RegisterType((*IndexQuery)(nil), "logproto.IndexQuery")
  2351  	proto.RegisterType((*IndexStatsRequest)(nil), "logproto.IndexStatsRequest")
  2352  	proto.RegisterType((*IndexStatsResponse)(nil), "logproto.IndexStatsResponse")
  2353  }
  2354  
  2355  func init() { proto.RegisterFile("pkg/logproto/logproto.proto", fileDescriptor_c28a5f14f1f4c79a) }
  2356  
  2357  var fileDescriptor_c28a5f14f1f4c79a = []byte{
  2358  	// 2088 bytes of a gzipped FileDescriptorProto
  2359  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xd4, 0x59, 0x4f, 0x6f, 0x1b, 0xc7,
  2360  	0x15, 0xe7, 0x90, 0x4b, 0x8a, 0x7c, 0xa4, 0x24, 0x66, 0x2c, 0xcb, 0x0c, 0x6d, 0x73, 0xe5, 0x45,
  2361  	0x6a, 0x0b, 0x8e, 0x4d, 0xd6, 0x4a, 0xdb, 0x38, 0x76, 0xd3, 0x42, 0x94, 0x62, 0x5b, 0xb6, 0xe2,
  2362  	0x28, 0x2b, 0xd7, 0x01, 0x02, 0x14, 0xc6, 0x8a, 0x1c, 0x92, 0x0b, 0x71, 0xb9, 0xf4, 0xee, 0x30,
  2363  	0x8e, 0x80, 0x02, 0xed, 0x07, 0x68, 0x80, 0xf4, 0x54, 0xf4, 0x5e, 0xa0, 0x45, 0x0f, 0x3d, 0x14,
  2364  	0xe8, 0xb5, 0xed, 0xad, 0xee, 0xcd, 0xbd, 0x05, 0x39, 0xb0, 0xb5, 0x7c, 0x29, 0x74, 0xca, 0x27,
  2365  	0x28, 0x8a, 0xf9, 0xb7, 0x3b, 0x5c, 0x53, 0x8d, 0xe9, 0x1a, 0x28, 0x72, 0x11, 0x67, 0xde, 0xcc,
  2366  	0xbc, 0x37, 0xef, 0x37, 0xef, 0xef, 0x0a, 0x4e, 0x0f, 0xf7, 0xbb, 0x8d, 0xbe, 0xdf, 0x1d, 0x06,
  2367  	0x3e, 0xf5, 0xa3, 0x41, 0x9d, 0xff, 0xc5, 0x79, 0x35, 0xaf, 0x5e, 0xee, 0xba, 0xb4, 0x37, 0xda,
  2368  	0xab, 0xb7, 0x7c, 0xaf, 0xd1, 0xf5, 0xbb, 0x7e, 0x83, 0x93, 0xf7, 0x46, 0x1d, 0x3e, 0x13, 0x87,
  2369  	0xd9, 0x48, 0x1c, 0xac, 0x9a, 0x5d, 0xdf, 0xef, 0xf6, 0x49, 0xbc, 0x8b, 0xba, 0x1e, 0x09, 0xa9,
  2370  	0xe3, 0x0d, 0xe5, 0x86, 0x15, 0x29, 0xf6, 0x61, 0xdf, 0xf3, 0xdb, 0xa4, 0xdf, 0x08, 0xa9, 0x43,
  2371  	0x43, 0xf1, 0x57, 0xec, 0xb0, 0x3e, 0x82, 0xe2, 0xce, 0x28, 0xec, 0xd9, 0xe4, 0xe1, 0x88, 0x84,
  2372  	0x14, 0xdf, 0x82, 0xb9, 0x90, 0x06, 0xc4, 0xf1, 0xc2, 0x0a, 0x5a, 0xc9, 0xac, 0x16, 0xd7, 0x4e,
  2373  	0xd5, 0xa3, 0xcb, 0xee, 0xf2, 0x85, 0xf5, 0xb6, 0x33, 0xa4, 0x24, 0x68, 0x9e, 0xfc, 0x72, 0x6c,
  2374  	0xe6, 0x04, 0xe9, 0x68, 0x6c, 0xaa, 0x53, 0xb6, 0x1a, 0x58, 0x0b, 0x50, 0x12, 0x8c, 0xc3, 0xa1,
  2375  	0x3f, 0x08, 0x89, 0xf5, 0xd7, 0x34, 0x94, 0x3e, 0x1c, 0x91, 0xe0, 0x40, 0x89, 0xaa, 0x42, 0x3e,
  2376  	0x24, 0x7d, 0xd2, 0xa2, 0x7e, 0x50, 0x41, 0x2b, 0x68, 0xb5, 0x60, 0x47, 0x73, 0xbc, 0x04, 0xd9,
  2377  	0xbe, 0xeb, 0xb9, 0xb4, 0x92, 0x5e, 0x41, 0xab, 0xf3, 0xb6, 0x98, 0xe0, 0x6b, 0x90, 0x0d, 0xa9,
  2378  	0x13, 0xd0, 0x4a, 0x66, 0x05, 0xad, 0x16, 0xd7, 0xaa, 0x75, 0xa1, 0x7e, 0x5d, 0xa9, 0x5f, 0xbf,
  2379  	0xa7, 0xd4, 0x6f, 0xe6, 0x1f, 0x8f, 0xcd, 0xd4, 0xe7, 0xff, 0x30, 0x91, 0x2d, 0x8e, 0xe0, 0xef,
  2380  	0x41, 0x86, 0x0c, 0xda, 0x15, 0x63, 0x86, 0x93, 0xec, 0x00, 0xbe, 0x02, 0x85, 0xb6, 0x1b, 0x90,
  2381  	0x16, 0x75, 0xfd, 0x41, 0x25, 0xbb, 0x82, 0x56, 0x17, 0xd6, 0x4e, 0xc4, 0x90, 0x6c, 0xaa, 0x25,
  2382  	0x3b, 0xde, 0x85, 0x2f, 0x41, 0x2e, 0xec, 0x39, 0x41, 0x3b, 0xac, 0xcc, 0xad, 0x64, 0x56, 0x0b,
  2383  	0xcd, 0xa5, 0xa3, 0xb1, 0x59, 0x16, 0x94, 0x4b, 0xbe, 0xe7, 0x52, 0xe2, 0x0d, 0xe9, 0x81, 0x2d,
  2384  	0xf7, 0xe0, 0x8b, 0x30, 0xd7, 0x26, 0x7d, 0x42, 0x49, 0x58, 0xc9, 0x73, 0xc4, 0xcb, 0x1a, 0x7b,
  2385  	0xbe, 0x60, 0xab, 0x0d, 0xb7, 0x8d, 0x7c, 0xae, 0x3c, 0x67, 0xfd, 0x1b, 0x01, 0xde, 0x75, 0xbc,
  2386  	0x61, 0x9f, 0xbc, 0x30, 0x9e, 0x11, 0x72, 0xe9, 0x97, 0x46, 0x2e, 0x33, 0x2b, 0x72, 0x31, 0x0c,
  2387  	0xc6, 0x6c, 0x30, 0x64, 0xbf, 0x06, 0x06, 0x6b, 0x1b, 0x72, 0x82, 0xf4, 0x75, 0x36, 0x14, 0xeb,
  2388  	0x9c, 0x51, 0xda, 0x94, 0x63, 0x6d, 0x32, 0xfc, 0x9e, 0xd6, 0x4f, 0x61, 0x5e, 0xe2, 0x28, 0x2c,
  2389  	0x15, 0xaf, 0xbf, 0xb0, 0x0f, 0x2c, 0x3c, 0x1e, 0x9b, 0x28, 0xf6, 0x83, 0xc8, 0xf8, 0xf1, 0x9b,
  2390  	0x5c, 0x36, 0x0d, 0x25, 0xde, 0x8b, 0x75, 0xe1, 0x72, 0x5b, 0x83, 0x2e, 0x09, 0xd9, 0x41, 0x83,
  2391  	0x41, 0x65, 0x8b, 0x3d, 0xd6, 0x4f, 0xe0, 0xc4, 0xc4, 0x73, 0xca, 0x6b, 0x5c, 0x85, 0x5c, 0x48,
  2392  	0x02, 0x97, 0xa8, 0x5b, 0x68, 0x80, 0xec, 0x72, 0xba, 0x26, 0x9e, 0xcf, 0x6d, 0xb9, 0x7f, 0x36,
  2393  	0xe9, 0xbf, 0x47, 0x50, 0xda, 0x76, 0xf6, 0x48, 0x5f, 0xd9, 0x11, 0x06, 0x63, 0xe0, 0x78, 0x44,
  2394  	0xe2, 0xc9, 0xc7, 0x78, 0x19, 0x72, 0x9f, 0x38, 0xfd, 0x11, 0x11, 0x2c, 0xf3, 0xb6, 0x9c, 0xcd,
  2395  	0xea, 0x91, 0xe8, 0xa5, 0x3d, 0x12, 0x45, 0x76, 0x65, 0x5d, 0x80, 0x79, 0x79, 0x5f, 0x09, 0x54,
  2396  	0x7c, 0x39, 0x06, 0x54, 0x41, 0x5d, 0xce, 0xfa, 0x05, 0x82, 0xf9, 0x89, 0xf7, 0xc2, 0x16, 0xe4,
  2397  	0xfa, 0xec, 0x68, 0x28, 0x94, 0x6b, 0xc2, 0xd1, 0xd8, 0x94, 0x14, 0x5b, 0xfe, 0xb2, 0xd7, 0x27,
  2398  	0x03, 0xca, 0x71, 0x4f, 0x73, 0xdc, 0x97, 0x63, 0xdc, 0xdf, 0x1b, 0xd0, 0xe0, 0x40, 0x3d, 0xfe,
  2399  	0x22, 0x43, 0x91, 0x85, 0x3e, 0xb9, 0xdd, 0x56, 0x03, 0xfc, 0x3a, 0x18, 0x3d, 0x27, 0xec, 0x71,
  2400  	0x50, 0x8c, 0x66, 0xf6, 0x68, 0x6c, 0xa2, 0xcb, 0x36, 0x27, 0x59, 0x9f, 0x40, 0x49, 0x67, 0x82,
  2401  	0x6f, 0x41, 0x21, 0x8a, 0xd9, 0xfc, 0x52, 0xff, 0x1d, 0x8a, 0x05, 0x29, 0x33, 0x4d, 0x43, 0x0e,
  2402  	0x48, 0x7c, 0x18, 0x9f, 0x01, 0xa3, 0xef, 0x0e, 0x08, 0x7f, 0xa0, 0x42, 0x33, 0x7f, 0x34, 0x36,
  2403  	0xf9, 0xdc, 0xe6, 0x7f, 0x2d, 0x0f, 0x72, 0xc2, 0xc6, 0xf0, 0x1b, 0x49, 0x89, 0x99, 0x66, 0x4e,
  2404  	0x70, 0xd4, 0xb9, 0x99, 0x90, 0xe5, 0x28, 0x72, 0x76, 0xa8, 0x59, 0x38, 0x1a, 0x9b, 0x82, 0x60,
  2405  	0x8b, 0x1f, 0x26, 0x4e, 0xd3, 0x91, 0x8b, 0x63, 0x73, 0xa9, 0xe6, 0x4d, 0x28, 0x6d, 0x93, 0xae,
  2406  	0xd3, 0x3a, 0x90, 0x42, 0x97, 0x14, 0x3b, 0x26, 0x10, 0x29, 0x1e, 0xe7, 0xa0, 0x14, 0x49, 0x7c,
  2407  	0xe0, 0x85, 0xd2, 0x51, 0x8b, 0x11, 0xed, 0xfd, 0xd0, 0xfa, 0x15, 0x02, 0x69, 0xdd, 0x2f, 0xf4,
  2408  	0x78, 0xd7, 0x61, 0x2e, 0xe4, 0x12, 0xd5, 0xe3, 0xe9, 0x4e, 0xc3, 0x17, 0xe2, 0x67, 0x93, 0x1b,
  2409  	0x6d, 0x35, 0xc0, 0x75, 0x00, 0xe1, 0xbf, 0xb7, 0x62, 0xc5, 0x16, 0x8e, 0xc6, 0xa6, 0x46, 0xb5,
  2410  	0xb5, 0xb1, 0xf5, 0x4b, 0x04, 0xc5, 0x7b, 0x8e, 0x1b, 0x39, 0xce, 0x12, 0x64, 0x1f, 0x32, 0x0f,
  2411  	0x96, 0x9e, 0x23, 0x26, 0x2c, 0x44, 0xb5, 0x49, 0xdf, 0x39, 0xb8, 0xe1, 0x07, 0x9c, 0xe7, 0xbc,
  2412  	0x1d, 0xcd, 0xe3, 0x34, 0x67, 0x4c, 0x4d, 0x73, 0xd9, 0x99, 0x83, 0xf5, 0x6d, 0x23, 0x9f, 0x2e,
  2413  	0x67, 0xac, 0x9f, 0x23, 0x28, 0x89, 0x9b, 0x49, 0x17, 0xb9, 0x0e, 0x39, 0x71, 0x71, 0x69, 0x63,
  2414  	0xc7, 0x46, 0x34, 0xd0, 0xa2, 0x99, 0x3c, 0x82, 0x7f, 0x08, 0x0b, 0xed, 0xc0, 0x1f, 0x0e, 0x49,
  2415  	0x7b, 0x57, 0x86, 0xc5, 0x74, 0x32, 0x2c, 0x6e, 0xea, 0xeb, 0x76, 0x62, 0xbb, 0xf5, 0x37, 0xe6,
  2416  	0x88, 0x22, 0x44, 0x49, 0xa8, 0x22, 0x15, 0xd1, 0x4b, 0xe7, 0xa3, 0xf4, 0xac, 0xf9, 0x68, 0x19,
  2417  	0x72, 0xdd, 0xc0, 0x1f, 0x0d, 0xc3, 0x4a, 0x46, 0x84, 0x09, 0x31, 0x9b, 0x2d, 0x4f, 0x59, 0xb7,
  2418  	0x61, 0x41, 0xa9, 0x72, 0x4c, 0x9c, 0xae, 0x26, 0xe3, 0xf4, 0x56, 0x9b, 0x0c, 0xa8, 0xdb, 0x71,
  2419  	0xa3, 0xc8, 0x2b, 0xf7, 0x5b, 0x9f, 0x21, 0x28, 0x27, 0xb7, 0xe0, 0x1f, 0x68, 0x66, 0xce, 0xd8,
  2420  	0x9d, 0x3f, 0x9e, 0x5d, 0x9d, 0xc7, 0xc1, 0x90, 0x07, 0x14, 0xe5, 0x02, 0xd5, 0x77, 0xa0, 0xa8,
  2421  	0x91, 0x59, 0xbe, 0xdb, 0x27, 0xca, 0x24, 0xd9, 0x30, 0xf6, 0xc5, 0xb4, 0x30, 0x53, 0x3e, 0xb9,
  2422  	0x96, 0xbe, 0x8a, 0x98, 0x41, 0xcf, 0x4f, 0xbc, 0x24, 0xbe, 0x0a, 0x46, 0x27, 0xf0, 0xbd, 0x99,
  2423  	0x9e, 0x89, 0x9f, 0xc0, 0xdf, 0x81, 0x34, 0xf5, 0x67, 0x7a, 0xa4, 0x34, 0xf5, 0xd9, 0x1b, 0x49,
  2424  	0xe5, 0x33, 0xfc, 0x72, 0x72, 0x66, 0xfd, 0x0e, 0xc1, 0x22, 0x3b, 0x23, 0x10, 0xd8, 0xe8, 0x8d,
  2425  	0x06, 0xfb, 0x78, 0x15, 0xca, 0x4c, 0xd2, 0x03, 0x57, 0xa6, 0xb5, 0x07, 0x6e, 0x5b, 0xaa, 0xb9,
  2426  	0xc0, 0xe8, 0x2a, 0xdb, 0x6d, 0xb5, 0xf1, 0x29, 0x98, 0x1b, 0x85, 0x62, 0x83, 0xd0, 0x39, 0xc7,
  2427  	0xa6, 0x5b, 0x6d, 0xfc, 0xa6, 0x26, 0x8e, 0x61, 0xad, 0x55, 0x76, 0x1c, 0xc3, 0x1d, 0xc7, 0x0d,
  2428  	0xa2, 0xd8, 0x72, 0x01, 0x72, 0x2d, 0x26, 0x58, 0xd8, 0x09, 0x4b, 0xab, 0xd1, 0x66, 0x7e, 0x21,
  2429  	0x5b, 0x2e, 0x5b, 0xdf, 0x85, 0x42, 0x74, 0x7a, 0x6a, 0x36, 0x9d, 0xfa, 0x02, 0xd6, 0x75, 0x58,
  2430  	0x14, 0x31, 0x73, 0xfa, 0xe1, 0xd2, 0xb4, 0xc3, 0x25, 0x75, 0xf8, 0x34, 0x64, 0x05, 0x2a, 0x18,
  2431  	0x8c, 0xb6, 0x43, 0x1d, 0x75, 0x84, 0x8d, 0xad, 0x0a, 0x2c, 0xdf, 0x0b, 0x9c, 0x41, 0xd8, 0x21,
  2432  	0x01, 0xdf, 0x14, 0xd9, 0xae, 0x75, 0x12, 0x4e, 0xb0, 0x38, 0x41, 0x82, 0x70, 0xc3, 0x1f, 0x0d,
  2433  	0xa8, 0x74, 0x4f, 0xeb, 0x12, 0x2c, 0x4d, 0x92, 0xa5, 0xa9, 0x2f, 0x41, 0xb6, 0xc5, 0x08, 0x9c,
  2434  	0xfb, 0xbc, 0x2d, 0x26, 0xd6, 0xaf, 0x11, 0xe0, 0x9b, 0x84, 0x72, 0xd6, 0x5b, 0x9b, 0xa1, 0x56,
  2435  	0x8f, 0x7a, 0x0e, 0x6d, 0xf5, 0x48, 0x10, 0xaa, 0xda, 0x4c, 0xcd, 0xff, 0x1f, 0xf5, 0xa8, 0x75,
  2436  	0x05, 0x4e, 0x4c, 0xdc, 0x52, 0xea, 0x54, 0x85, 0x7c, 0x4b, 0xd2, 0x64, 0xfd, 0x10, 0xcd, 0xad,
  2437  	0x3f, 0xa4, 0x21, 0x2f, 0xde, 0x96, 0x74, 0xf0, 0x15, 0x28, 0x76, 0x98, 0xad, 0x05, 0xc3, 0xc0,
  2438  	0x95, 0x10, 0x18, 0xcd, 0xc5, 0xa3, 0xb1, 0xa9, 0x93, 0x6d, 0x7d, 0x82, 0x2f, 0x27, 0x0c, 0xaf,
  2439  	0xb9, 0x74, 0x38, 0x36, 0x73, 0x3f, 0x62, 0xc6, 0xb7, 0xc9, 0xb2, 0x17, 0x37, 0xc3, 0xcd, 0xc8,
  2440  	0x1c, 0xef, 0x48, 0x6f, 0xe3, 0xc5, 0x69, 0xf3, 0x6d, 0x76, 0xfd, 0x2f, 0xc7, 0xe6, 0x05, 0xad,
  2441  	0x27, 0x1c, 0x06, 0xbe, 0x47, 0x68, 0x8f, 0x8c, 0xc2, 0x46, 0xcb, 0xf7, 0x3c, 0x7f, 0xd0, 0xe0,
  2442  	0x7d, 0x1d, 0x57, 0x9a, 0xa5, 0x60, 0x76, 0x5c, 0x3a, 0xe0, 0x3d, 0x98, 0xa3, 0xbd, 0xc0, 0x1f,
  2443  	0x75, 0x7b, 0x3c, 0xbb, 0x64, 0x9a, 0xd7, 0x66, 0xe7, 0xa7, 0x38, 0xd8, 0x6a, 0x80, 0xcf, 0x31,
  2444  	0xb4, 0x48, 0x6b, 0x3f, 0x1c, 0x79, 0x3c, 0x3d, 0xcd, 0xab, 0xf2, 0x26, 0x22, 0x5b, 0x9f, 0xa5,
  2445  	0xc1, 0xe4, 0x26, 0x7c, 0x9f, 0x97, 0x61, 0x37, 0xfc, 0xe0, 0x7d, 0x42, 0x03, 0xb7, 0x75, 0xd7,
  2446  	0xf1, 0x88, 0xb2, 0x0d, 0x13, 0x8a, 0x1e, 0x27, 0x3e, 0xd0, 0x9c, 0x03, 0xbc, 0x68, 0x1f, 0x3e,
  2447  	0x0b, 0xc0, 0xdd, 0x4e, 0xac, 0x0b, 0x3f, 0x29, 0x70, 0x0a, 0x5f, 0xde, 0x98, 0x40, 0xaa, 0x31,
  2448  	0xa3, 0x66, 0x12, 0xa1, 0xad, 0x24, 0x42, 0x33, 0xf3, 0x89, 0x60, 0xd1, 0x6d, 0x3d, 0x3b, 0x69,
  2449  	0xeb, 0xd6, 0xdf, 0x11, 0xd4, 0xb6, 0xd5, 0xcd, 0x5f, 0x12, 0x0e, 0xa5, 0x6f, 0xfa, 0x15, 0xe9,
  2450  	0x9b, 0xf9, 0xdf, 0xf4, 0xb5, 0xfe, 0xa2, 0xb9, 0xbc, 0x4d, 0x3a, 0x4a, 0x8f, 0x0d, 0x2d, 0x5d,
  2451  	0xbc, 0x8a, 0x6b, 0xa6, 0x5f, 0xe1, 0xb3, 0x64, 0x12, 0xcf, 0xf2, 0x6e, 0x1c, 0x0e, 0xb8, 0x06,
  2452  	0x32, 0x1c, 0x9c, 0x07, 0x23, 0x20, 0x1d, 0x95, 0x7c, 0x71, 0x32, 0xc6, 0x93, 0x8e, 0xcd, 0xd7,
  2453  	0xad, 0x3f, 0x21, 0x28, 0xdf, 0x24, 0x74, 0xb2, 0xac, 0xf9, 0x26, 0xe9, 0x7f, 0x0b, 0x5e, 0xd3,
  2454  	0xee, 0x2f, 0xb5, 0x7f, 0x2b, 0x51, 0xcb, 0x9c, 0x8c, 0xf5, 0xdf, 0x1a, 0xb4, 0xc9, 0xa7, 0xb2,
  2455  	0xf1, 0x9c, 0x2c, 0x63, 0x76, 0xa0, 0xa8, 0x2d, 0xe2, 0xf5, 0x44, 0x01, 0x33, 0x2d, 0xa9, 0x36,
  2456  	0x97, 0xa4, 0x4e, 0xa2, 0xf5, 0x94, 0xd5, 0x67, 0x94, 0xee, 0x77, 0x01, 0xf3, 0x5e, 0x98, 0xb3,
  2457  	0xd5, 0x23, 0x35, 0xa7, 0xde, 0x89, 0xea, 0x99, 0x68, 0x8e, 0xcf, 0x81, 0x11, 0xf8, 0x8f, 0x54,
  2458  	0x65, 0x3a, 0x1f, 0x8b, 0xb4, 0xfd, 0x47, 0x36, 0x5f, 0xb2, 0xae, 0x43, 0xc6, 0xf6, 0x1f, 0xe1,
  2459  	0x1a, 0x40, 0xe0, 0x0c, 0xba, 0xe4, 0x7e, 0xd4, 0x8f, 0x94, 0x6c, 0x8d, 0x72, 0x4c, 0x7e, 0xdd,
  2460  	0x80, 0xd7, 0xf4, 0x1b, 0x89, 0xe7, 0xae, 0xc3, 0x1c, 0x23, 0xc6, 0x70, 0x2d, 0x25, 0xe0, 0x12,
  2461  	0x0d, 0xbd, 0xda, 0xc4, 0x6c, 0x06, 0x62, 0x3a, 0x3e, 0x03, 0x05, 0xea, 0xec, 0xf5, 0xc9, 0xdd,
  2462  	0xd8, 0xe7, 0x63, 0x02, 0x5b, 0x65, 0xad, 0xd4, 0x7d, 0xad, 0x50, 0x88, 0x09, 0xf8, 0x22, 0x94,
  2463  	0xe3, 0x3b, 0xef, 0x04, 0xa4, 0xe3, 0x7e, 0xca, 0x5f, 0xb8, 0x64, 0x3f, 0x47, 0xc7, 0xab, 0xb0,
  2464  	0x18, 0xd3, 0x76, 0x79, 0xda, 0x35, 0xf8, 0xd6, 0x24, 0x99, 0x61, 0xc3, 0xd5, 0x7d, 0xef, 0xe1,
  2465  	0xc8, 0xe9, 0xf3, 0x40, 0x56, 0xb2, 0x35, 0x8a, 0xf5, 0x67, 0x04, 0xaf, 0x89, 0xa7, 0xa6, 0x0e,
  2466  	0xfd, 0x46, 0x5a, 0xfd, 0x6f, 0x10, 0x60, 0x5d, 0x03, 0x69, 0x5a, 0xdf, 0xd2, 0x3f, 0xf9, 0xb0,
  2467  	0xbc, 0x5e, 0x9c, 0xf6, 0x4d, 0x93, 0xb5, 0xa0, 0xb2, 0x04, 0x4c, 0xf3, 0x5d, 0xbc, 0x05, 0x15,
  2468  	0x14, 0x55, 0xfd, 0xb1, 0xce, 0x79, 0xef, 0x80, 0x92, 0x50, 0x36, 0x90, 0xbc, 0x73, 0xe6, 0x04,
  2469  	0x5b, 0xfc, 0x30, 0x59, 0xea, 0x03, 0x83, 0x11, 0xcb, 0x4a, 0x7e, 0x44, 0xb8, 0x78, 0x1e, 0x0a,
  2470  	0xd1, 0xd7, 0x45, 0x5c, 0x84, 0xb9, 0x1b, 0x1f, 0xd8, 0x1f, 0xad, 0xdb, 0x9b, 0xe5, 0x14, 0x2e,
  2471  	0x41, 0xbe, 0xb9, 0xbe, 0x71, 0x87, 0xcf, 0xd0, 0xda, 0x3a, 0xe4, 0x76, 0x46, 0x61, 0x8f, 0x04,
  2472  	0xf8, 0x6d, 0x30, 0xd8, 0x08, 0x6b, 0x4e, 0xab, 0x7d, 0xda, 0xad, 0x2e, 0x27, 0xc9, 0xb2, 0x06,
  2473  	0x4c, 0xad, 0xfd, 0xd1, 0x50, 0x86, 0x1c, 0xe0, 0xef, 0x43, 0x56, 0x58, 0xa7, 0xb6, 0x5d, 0xff,
  2474  	0xcc, 0x58, 0x3d, 0xf5, 0x1c, 0x5d, 0xf1, 0xf9, 0x36, 0xc2, 0x77, 0xa1, 0xc8, 0x89, 0xb2, 0xed,
  2475  	0x3f, 0x93, 0xec, 0xbe, 0x27, 0x38, 0x9d, 0x3d, 0x66, 0x55, 0xe3, 0x77, 0x0d, 0xb2, 0x3c, 0x40,
  2476  	0xe8, 0xb7, 0xd1, 0x3f, 0x56, 0xe9, 0xb7, 0x99, 0xf8, 0x28, 0x64, 0xa5, 0xf0, 0x3b, 0x60, 0xb0,
  2477  	0x22, 0x56, 0x87, 0x43, 0xeb, 0xd6, 0x75, 0x38, 0xf4, 0x56, 0x99, 0x8b, 0x7d, 0x37, 0xfa, 0xe8,
  2478  	0x70, 0x2a, 0xd9, 0x7d, 0xa9, 0xe3, 0x95, 0xe7, 0x17, 0x22, 0xc9, 0x1f, 0x88, 0xee, 0x5b, 0x95,
  2479  	0xcf, 0xf8, 0xec, 0xa4, 0xa8, 0x44, 0xb5, 0x5d, 0xad, 0x1d, 0xb7, 0x1c, 0x31, 0xdc, 0x86, 0xa2,
  2480  	0x56, 0xba, 0xea, 0xb0, 0x3e, 0x5f, 0x77, 0xeb, 0xb0, 0x4e, 0xa9, 0x77, 0xad, 0x14, 0xbe, 0x09,
  2481  	0x79, 0x16, 0xf9, 0x99, 0x03, 0xe0, 0xd3, 0xc9, 0x00, 0xaf, 0x39, 0x76, 0xf5, 0xcc, 0xf4, 0xc5,
  2482  	0xc8, 0x6e, 0x7e, 0x0c, 0x79, 0xd5, 0x65, 0xe1, 0x0f, 0x61, 0x61, 0xb2, 0xc7, 0xc0, 0xaf, 0x6b,
  2483  	0x6a, 0x4d, 0xb6, 0x6e, 0xd5, 0x15, 0x6d, 0x69, 0x7a, 0x63, 0x92, 0x5a, 0x45, 0xcd, 0x8f, 0x9f,
  2484  	0x3c, 0xad, 0xa5, 0xbe, 0x78, 0x5a, 0x4b, 0x7d, 0xf5, 0xb4, 0x86, 0x7e, 0x76, 0x58, 0x43, 0xbf,
  2485  	0x3d, 0xac, 0xa1, 0xc7, 0x87, 0x35, 0xf4, 0xe4, 0xb0, 0x86, 0xfe, 0x79, 0x58, 0x43, 0xff, 0x3a,
  2486  	0xac, 0xa5, 0xbe, 0x3a, 0xac, 0xa1, 0xcf, 0x9f, 0xd5, 0x52, 0x4f, 0x9e, 0xd5, 0x52, 0x5f, 0x3c,
  2487  	0xab, 0xa5, 0x3e, 0x7e, 0x43, 0xff, 0x17, 0x4a, 0xe0, 0x74, 0x9c, 0x81, 0xd3, 0xe8, 0xfb, 0xfb,
  2488  	0x6e, 0x43, 0xff, 0x0f, 0xcc, 0x5e, 0x8e, 0xff, 0xbc, 0xf5, 0x9f, 0x00, 0x00, 0x00, 0xff, 0xff,
  2489  	0xdc, 0x73, 0x3e, 0x8e, 0x98, 0x19, 0x00, 0x00,
  2490  }
  2491  
  2492  func (x Direction) String() string {
  2493  	s, ok := Direction_name[int32(x)]
  2494  	if ok {
  2495  		return s
  2496  	}
  2497  	return strconv.Itoa(int(x))
  2498  }
  2499  func (this *PushRequest) Equal(that interface{}) bool {
  2500  	if that == nil {
  2501  		return this == nil
  2502  	}
  2503  
  2504  	that1, ok := that.(*PushRequest)
  2505  	if !ok {
  2506  		that2, ok := that.(PushRequest)
  2507  		if ok {
  2508  			that1 = &that2
  2509  		} else {
  2510  			return false
  2511  		}
  2512  	}
  2513  	if that1 == nil {
  2514  		return this == nil
  2515  	} else if this == nil {
  2516  		return false
  2517  	}
  2518  	if len(this.Streams) != len(that1.Streams) {
  2519  		return false
  2520  	}
  2521  	for i := range this.Streams {
  2522  		if !this.Streams[i].Equal(that1.Streams[i]) {
  2523  			return false
  2524  		}
  2525  	}
  2526  	return true
  2527  }
  2528  func (this *PushResponse) Equal(that interface{}) bool {
  2529  	if that == nil {
  2530  		return this == nil
  2531  	}
  2532  
  2533  	that1, ok := that.(*PushResponse)
  2534  	if !ok {
  2535  		that2, ok := that.(PushResponse)
  2536  		if ok {
  2537  			that1 = &that2
  2538  		} else {
  2539  			return false
  2540  		}
  2541  	}
  2542  	if that1 == nil {
  2543  		return this == nil
  2544  	} else if this == nil {
  2545  		return false
  2546  	}
  2547  	return true
  2548  }
  2549  func (this *QueryRequest) Equal(that interface{}) bool {
  2550  	if that == nil {
  2551  		return this == nil
  2552  	}
  2553  
  2554  	that1, ok := that.(*QueryRequest)
  2555  	if !ok {
  2556  		that2, ok := that.(QueryRequest)
  2557  		if ok {
  2558  			that1 = &that2
  2559  		} else {
  2560  			return false
  2561  		}
  2562  	}
  2563  	if that1 == nil {
  2564  		return this == nil
  2565  	} else if this == nil {
  2566  		return false
  2567  	}
  2568  	if this.Selector != that1.Selector {
  2569  		return false
  2570  	}
  2571  	if this.Limit != that1.Limit {
  2572  		return false
  2573  	}
  2574  	if !this.Start.Equal(that1.Start) {
  2575  		return false
  2576  	}
  2577  	if !this.End.Equal(that1.End) {
  2578  		return false
  2579  	}
  2580  	if this.Direction != that1.Direction {
  2581  		return false
  2582  	}
  2583  	if len(this.Shards) != len(that1.Shards) {
  2584  		return false
  2585  	}
  2586  	for i := range this.Shards {
  2587  		if this.Shards[i] != that1.Shards[i] {
  2588  			return false
  2589  		}
  2590  	}
  2591  	if len(this.Deletes) != len(that1.Deletes) {
  2592  		return false
  2593  	}
  2594  	for i := range this.Deletes {
  2595  		if !this.Deletes[i].Equal(that1.Deletes[i]) {
  2596  			return false
  2597  		}
  2598  	}
  2599  	return true
  2600  }
  2601  func (this *SampleQueryRequest) Equal(that interface{}) bool {
  2602  	if that == nil {
  2603  		return this == nil
  2604  	}
  2605  
  2606  	that1, ok := that.(*SampleQueryRequest)
  2607  	if !ok {
  2608  		that2, ok := that.(SampleQueryRequest)
  2609  		if ok {
  2610  			that1 = &that2
  2611  		} else {
  2612  			return false
  2613  		}
  2614  	}
  2615  	if that1 == nil {
  2616  		return this == nil
  2617  	} else if this == nil {
  2618  		return false
  2619  	}
  2620  	if this.Selector != that1.Selector {
  2621  		return false
  2622  	}
  2623  	if !this.Start.Equal(that1.Start) {
  2624  		return false
  2625  	}
  2626  	if !this.End.Equal(that1.End) {
  2627  		return false
  2628  	}
  2629  	if len(this.Shards) != len(that1.Shards) {
  2630  		return false
  2631  	}
  2632  	for i := range this.Shards {
  2633  		if this.Shards[i] != that1.Shards[i] {
  2634  			return false
  2635  		}
  2636  	}
  2637  	if len(this.Deletes) != len(that1.Deletes) {
  2638  		return false
  2639  	}
  2640  	for i := range this.Deletes {
  2641  		if !this.Deletes[i].Equal(that1.Deletes[i]) {
  2642  			return false
  2643  		}
  2644  	}
  2645  	return true
  2646  }
  2647  func (this *Delete) Equal(that interface{}) bool {
  2648  	if that == nil {
  2649  		return this == nil
  2650  	}
  2651  
  2652  	that1, ok := that.(*Delete)
  2653  	if !ok {
  2654  		that2, ok := that.(Delete)
  2655  		if ok {
  2656  			that1 = &that2
  2657  		} else {
  2658  			return false
  2659  		}
  2660  	}
  2661  	if that1 == nil {
  2662  		return this == nil
  2663  	} else if this == nil {
  2664  		return false
  2665  	}
  2666  	if this.Selector != that1.Selector {
  2667  		return false
  2668  	}
  2669  	if this.Start != that1.Start {
  2670  		return false
  2671  	}
  2672  	if this.End != that1.End {
  2673  		return false
  2674  	}
  2675  	return true
  2676  }
  2677  func (this *QueryResponse) Equal(that interface{}) bool {
  2678  	if that == nil {
  2679  		return this == nil
  2680  	}
  2681  
  2682  	that1, ok := that.(*QueryResponse)
  2683  	if !ok {
  2684  		that2, ok := that.(QueryResponse)
  2685  		if ok {
  2686  			that1 = &that2
  2687  		} else {
  2688  			return false
  2689  		}
  2690  	}
  2691  	if that1 == nil {
  2692  		return this == nil
  2693  	} else if this == nil {
  2694  		return false
  2695  	}
  2696  	if len(this.Streams) != len(that1.Streams) {
  2697  		return false
  2698  	}
  2699  	for i := range this.Streams {
  2700  		if !this.Streams[i].Equal(that1.Streams[i]) {
  2701  			return false
  2702  		}
  2703  	}
  2704  	if !this.Stats.Equal(&that1.Stats) {
  2705  		return false
  2706  	}
  2707  	return true
  2708  }
  2709  func (this *SampleQueryResponse) Equal(that interface{}) bool {
  2710  	if that == nil {
  2711  		return this == nil
  2712  	}
  2713  
  2714  	that1, ok := that.(*SampleQueryResponse)
  2715  	if !ok {
  2716  		that2, ok := that.(SampleQueryResponse)
  2717  		if ok {
  2718  			that1 = &that2
  2719  		} else {
  2720  			return false
  2721  		}
  2722  	}
  2723  	if that1 == nil {
  2724  		return this == nil
  2725  	} else if this == nil {
  2726  		return false
  2727  	}
  2728  	if len(this.Series) != len(that1.Series) {
  2729  		return false
  2730  	}
  2731  	for i := range this.Series {
  2732  		if !this.Series[i].Equal(that1.Series[i]) {
  2733  			return false
  2734  		}
  2735  	}
  2736  	if !this.Stats.Equal(&that1.Stats) {
  2737  		return false
  2738  	}
  2739  	return true
  2740  }
  2741  func (this *LabelRequest) Equal(that interface{}) bool {
  2742  	if that == nil {
  2743  		return this == nil
  2744  	}
  2745  
  2746  	that1, ok := that.(*LabelRequest)
  2747  	if !ok {
  2748  		that2, ok := that.(LabelRequest)
  2749  		if ok {
  2750  			that1 = &that2
  2751  		} else {
  2752  			return false
  2753  		}
  2754  	}
  2755  	if that1 == nil {
  2756  		return this == nil
  2757  	} else if this == nil {
  2758  		return false
  2759  	}
  2760  	if this.Name != that1.Name {
  2761  		return false
  2762  	}
  2763  	if this.Values != that1.Values {
  2764  		return false
  2765  	}
  2766  	if that1.Start == nil {
  2767  		if this.Start != nil {
  2768  			return false
  2769  		}
  2770  	} else if !this.Start.Equal(*that1.Start) {
  2771  		return false
  2772  	}
  2773  	if that1.End == nil {
  2774  		if this.End != nil {
  2775  			return false
  2776  		}
  2777  	} else if !this.End.Equal(*that1.End) {
  2778  		return false
  2779  	}
  2780  	return true
  2781  }
  2782  func (this *LabelResponse) Equal(that interface{}) bool {
  2783  	if that == nil {
  2784  		return this == nil
  2785  	}
  2786  
  2787  	that1, ok := that.(*LabelResponse)
  2788  	if !ok {
  2789  		that2, ok := that.(LabelResponse)
  2790  		if ok {
  2791  			that1 = &that2
  2792  		} else {
  2793  			return false
  2794  		}
  2795  	}
  2796  	if that1 == nil {
  2797  		return this == nil
  2798  	} else if this == nil {
  2799  		return false
  2800  	}
  2801  	if len(this.Values) != len(that1.Values) {
  2802  		return false
  2803  	}
  2804  	for i := range this.Values {
  2805  		if this.Values[i] != that1.Values[i] {
  2806  			return false
  2807  		}
  2808  	}
  2809  	return true
  2810  }
  2811  func (this *StreamAdapter) Equal(that interface{}) bool {
  2812  	if that == nil {
  2813  		return this == nil
  2814  	}
  2815  
  2816  	that1, ok := that.(*StreamAdapter)
  2817  	if !ok {
  2818  		that2, ok := that.(StreamAdapter)
  2819  		if ok {
  2820  			that1 = &that2
  2821  		} else {
  2822  			return false
  2823  		}
  2824  	}
  2825  	if that1 == nil {
  2826  		return this == nil
  2827  	} else if this == nil {
  2828  		return false
  2829  	}
  2830  	if this.Labels != that1.Labels {
  2831  		return false
  2832  	}
  2833  	if len(this.Entries) != len(that1.Entries) {
  2834  		return false
  2835  	}
  2836  	for i := range this.Entries {
  2837  		if !this.Entries[i].Equal(&that1.Entries[i]) {
  2838  			return false
  2839  		}
  2840  	}
  2841  	if this.Hash != that1.Hash {
  2842  		return false
  2843  	}
  2844  	return true
  2845  }
  2846  func (this *EntryAdapter) Equal(that interface{}) bool {
  2847  	if that == nil {
  2848  		return this == nil
  2849  	}
  2850  
  2851  	that1, ok := that.(*EntryAdapter)
  2852  	if !ok {
  2853  		that2, ok := that.(EntryAdapter)
  2854  		if ok {
  2855  			that1 = &that2
  2856  		} else {
  2857  			return false
  2858  		}
  2859  	}
  2860  	if that1 == nil {
  2861  		return this == nil
  2862  	} else if this == nil {
  2863  		return false
  2864  	}
  2865  	if !this.Timestamp.Equal(that1.Timestamp) {
  2866  		return false
  2867  	}
  2868  	if this.Line != that1.Line {
  2869  		return false
  2870  	}
  2871  	return true
  2872  }
  2873  func (this *Sample) Equal(that interface{}) bool {
  2874  	if that == nil {
  2875  		return this == nil
  2876  	}
  2877  
  2878  	that1, ok := that.(*Sample)
  2879  	if !ok {
  2880  		that2, ok := that.(Sample)
  2881  		if ok {
  2882  			that1 = &that2
  2883  		} else {
  2884  			return false
  2885  		}
  2886  	}
  2887  	if that1 == nil {
  2888  		return this == nil
  2889  	} else if this == nil {
  2890  		return false
  2891  	}
  2892  	if this.Timestamp != that1.Timestamp {
  2893  		return false
  2894  	}
  2895  	if this.Value != that1.Value {
  2896  		return false
  2897  	}
  2898  	if this.Hash != that1.Hash {
  2899  		return false
  2900  	}
  2901  	return true
  2902  }
  2903  func (this *LegacySample) Equal(that interface{}) bool {
  2904  	if that == nil {
  2905  		return this == nil
  2906  	}
  2907  
  2908  	that1, ok := that.(*LegacySample)
  2909  	if !ok {
  2910  		that2, ok := that.(LegacySample)
  2911  		if ok {
  2912  			that1 = &that2
  2913  		} else {
  2914  			return false
  2915  		}
  2916  	}
  2917  	if that1 == nil {
  2918  		return this == nil
  2919  	} else if this == nil {
  2920  		return false
  2921  	}
  2922  	if this.Value != that1.Value {
  2923  		return false
  2924  	}
  2925  	if this.TimestampMs != that1.TimestampMs {
  2926  		return false
  2927  	}
  2928  	return true
  2929  }
  2930  func (this *Series) Equal(that interface{}) bool {
  2931  	if that == nil {
  2932  		return this == nil
  2933  	}
  2934  
  2935  	that1, ok := that.(*Series)
  2936  	if !ok {
  2937  		that2, ok := that.(Series)
  2938  		if ok {
  2939  			that1 = &that2
  2940  		} else {
  2941  			return false
  2942  		}
  2943  	}
  2944  	if that1 == nil {
  2945  		return this == nil
  2946  	} else if this == nil {
  2947  		return false
  2948  	}
  2949  	if this.Labels != that1.Labels {
  2950  		return false
  2951  	}
  2952  	if len(this.Samples) != len(that1.Samples) {
  2953  		return false
  2954  	}
  2955  	for i := range this.Samples {
  2956  		if !this.Samples[i].Equal(&that1.Samples[i]) {
  2957  			return false
  2958  		}
  2959  	}
  2960  	if this.StreamHash != that1.StreamHash {
  2961  		return false
  2962  	}
  2963  	return true
  2964  }
  2965  func (this *TailRequest) Equal(that interface{}) bool {
  2966  	if that == nil {
  2967  		return this == nil
  2968  	}
  2969  
  2970  	that1, ok := that.(*TailRequest)
  2971  	if !ok {
  2972  		that2, ok := that.(TailRequest)
  2973  		if ok {
  2974  			that1 = &that2
  2975  		} else {
  2976  			return false
  2977  		}
  2978  	}
  2979  	if that1 == nil {
  2980  		return this == nil
  2981  	} else if this == nil {
  2982  		return false
  2983  	}
  2984  	if this.Query != that1.Query {
  2985  		return false
  2986  	}
  2987  	if this.DelayFor != that1.DelayFor {
  2988  		return false
  2989  	}
  2990  	if this.Limit != that1.Limit {
  2991  		return false
  2992  	}
  2993  	if !this.Start.Equal(that1.Start) {
  2994  		return false
  2995  	}
  2996  	return true
  2997  }
  2998  func (this *TailResponse) Equal(that interface{}) bool {
  2999  	if that == nil {
  3000  		return this == nil
  3001  	}
  3002  
  3003  	that1, ok := that.(*TailResponse)
  3004  	if !ok {
  3005  		that2, ok := that.(TailResponse)
  3006  		if ok {
  3007  			that1 = &that2
  3008  		} else {
  3009  			return false
  3010  		}
  3011  	}
  3012  	if that1 == nil {
  3013  		return this == nil
  3014  	} else if this == nil {
  3015  		return false
  3016  	}
  3017  	if that1.Stream == nil {
  3018  		if this.Stream != nil {
  3019  			return false
  3020  		}
  3021  	} else if !this.Stream.Equal(*that1.Stream) {
  3022  		return false
  3023  	}
  3024  	if len(this.DroppedStreams) != len(that1.DroppedStreams) {
  3025  		return false
  3026  	}
  3027  	for i := range this.DroppedStreams {
  3028  		if !this.DroppedStreams[i].Equal(that1.DroppedStreams[i]) {
  3029  			return false
  3030  		}
  3031  	}
  3032  	return true
  3033  }
  3034  func (this *SeriesRequest) Equal(that interface{}) bool {
  3035  	if that == nil {
  3036  		return this == nil
  3037  	}
  3038  
  3039  	that1, ok := that.(*SeriesRequest)
  3040  	if !ok {
  3041  		that2, ok := that.(SeriesRequest)
  3042  		if ok {
  3043  			that1 = &that2
  3044  		} else {
  3045  			return false
  3046  		}
  3047  	}
  3048  	if that1 == nil {
  3049  		return this == nil
  3050  	} else if this == nil {
  3051  		return false
  3052  	}
  3053  	if !this.Start.Equal(that1.Start) {
  3054  		return false
  3055  	}
  3056  	if !this.End.Equal(that1.End) {
  3057  		return false
  3058  	}
  3059  	if len(this.Groups) != len(that1.Groups) {
  3060  		return false
  3061  	}
  3062  	for i := range this.Groups {
  3063  		if this.Groups[i] != that1.Groups[i] {
  3064  			return false
  3065  		}
  3066  	}
  3067  	if len(this.Shards) != len(that1.Shards) {
  3068  		return false
  3069  	}
  3070  	for i := range this.Shards {
  3071  		if this.Shards[i] != that1.Shards[i] {
  3072  			return false
  3073  		}
  3074  	}
  3075  	return true
  3076  }
  3077  func (this *SeriesResponse) Equal(that interface{}) bool {
  3078  	if that == nil {
  3079  		return this == nil
  3080  	}
  3081  
  3082  	that1, ok := that.(*SeriesResponse)
  3083  	if !ok {
  3084  		that2, ok := that.(SeriesResponse)
  3085  		if ok {
  3086  			that1 = &that2
  3087  		} else {
  3088  			return false
  3089  		}
  3090  	}
  3091  	if that1 == nil {
  3092  		return this == nil
  3093  	} else if this == nil {
  3094  		return false
  3095  	}
  3096  	if len(this.Series) != len(that1.Series) {
  3097  		return false
  3098  	}
  3099  	for i := range this.Series {
  3100  		if !this.Series[i].Equal(&that1.Series[i]) {
  3101  			return false
  3102  		}
  3103  	}
  3104  	return true
  3105  }
  3106  func (this *SeriesIdentifier) Equal(that interface{}) bool {
  3107  	if that == nil {
  3108  		return this == nil
  3109  	}
  3110  
  3111  	that1, ok := that.(*SeriesIdentifier)
  3112  	if !ok {
  3113  		that2, ok := that.(SeriesIdentifier)
  3114  		if ok {
  3115  			that1 = &that2
  3116  		} else {
  3117  			return false
  3118  		}
  3119  	}
  3120  	if that1 == nil {
  3121  		return this == nil
  3122  	} else if this == nil {
  3123  		return false
  3124  	}
  3125  	if len(this.Labels) != len(that1.Labels) {
  3126  		return false
  3127  	}
  3128  	for i := range this.Labels {
  3129  		if this.Labels[i] != that1.Labels[i] {
  3130  			return false
  3131  		}
  3132  	}
  3133  	return true
  3134  }
  3135  func (this *DroppedStream) Equal(that interface{}) bool {
  3136  	if that == nil {
  3137  		return this == nil
  3138  	}
  3139  
  3140  	that1, ok := that.(*DroppedStream)
  3141  	if !ok {
  3142  		that2, ok := that.(DroppedStream)
  3143  		if ok {
  3144  			that1 = &that2
  3145  		} else {
  3146  			return false
  3147  		}
  3148  	}
  3149  	if that1 == nil {
  3150  		return this == nil
  3151  	} else if this == nil {
  3152  		return false
  3153  	}
  3154  	if !this.From.Equal(that1.From) {
  3155  		return false
  3156  	}
  3157  	if !this.To.Equal(that1.To) {
  3158  		return false
  3159  	}
  3160  	if this.Labels != that1.Labels {
  3161  		return false
  3162  	}
  3163  	return true
  3164  }
  3165  func (this *TimeSeriesChunk) Equal(that interface{}) bool {
  3166  	if that == nil {
  3167  		return this == nil
  3168  	}
  3169  
  3170  	that1, ok := that.(*TimeSeriesChunk)
  3171  	if !ok {
  3172  		that2, ok := that.(TimeSeriesChunk)
  3173  		if ok {
  3174  			that1 = &that2
  3175  		} else {
  3176  			return false
  3177  		}
  3178  	}
  3179  	if that1 == nil {
  3180  		return this == nil
  3181  	} else if this == nil {
  3182  		return false
  3183  	}
  3184  	if this.FromIngesterId != that1.FromIngesterId {
  3185  		return false
  3186  	}
  3187  	if this.UserId != that1.UserId {
  3188  		return false
  3189  	}
  3190  	if len(this.Labels) != len(that1.Labels) {
  3191  		return false
  3192  	}
  3193  	for i := range this.Labels {
  3194  		if !this.Labels[i].Equal(that1.Labels[i]) {
  3195  			return false
  3196  		}
  3197  	}
  3198  	if len(this.Chunks) != len(that1.Chunks) {
  3199  		return false
  3200  	}
  3201  	for i := range this.Chunks {
  3202  		if !this.Chunks[i].Equal(that1.Chunks[i]) {
  3203  			return false
  3204  		}
  3205  	}
  3206  	return true
  3207  }
  3208  func (this *LabelPair) Equal(that interface{}) bool {
  3209  	if that == nil {
  3210  		return this == nil
  3211  	}
  3212  
  3213  	that1, ok := that.(*LabelPair)
  3214  	if !ok {
  3215  		that2, ok := that.(LabelPair)
  3216  		if ok {
  3217  			that1 = &that2
  3218  		} else {
  3219  			return false
  3220  		}
  3221  	}
  3222  	if that1 == nil {
  3223  		return this == nil
  3224  	} else if this == nil {
  3225  		return false
  3226  	}
  3227  	if this.Name != that1.Name {
  3228  		return false
  3229  	}
  3230  	if this.Value != that1.Value {
  3231  		return false
  3232  	}
  3233  	return true
  3234  }
  3235  func (this *LegacyLabelPair) Equal(that interface{}) bool {
  3236  	if that == nil {
  3237  		return this == nil
  3238  	}
  3239  
  3240  	that1, ok := that.(*LegacyLabelPair)
  3241  	if !ok {
  3242  		that2, ok := that.(LegacyLabelPair)
  3243  		if ok {
  3244  			that1 = &that2
  3245  		} else {
  3246  			return false
  3247  		}
  3248  	}
  3249  	if that1 == nil {
  3250  		return this == nil
  3251  	} else if this == nil {
  3252  		return false
  3253  	}
  3254  	if !bytes.Equal(this.Name, that1.Name) {
  3255  		return false
  3256  	}
  3257  	if !bytes.Equal(this.Value, that1.Value) {
  3258  		return false
  3259  	}
  3260  	return true
  3261  }
  3262  func (this *Chunk) Equal(that interface{}) bool {
  3263  	if that == nil {
  3264  		return this == nil
  3265  	}
  3266  
  3267  	that1, ok := that.(*Chunk)
  3268  	if !ok {
  3269  		that2, ok := that.(Chunk)
  3270  		if ok {
  3271  			that1 = &that2
  3272  		} else {
  3273  			return false
  3274  		}
  3275  	}
  3276  	if that1 == nil {
  3277  		return this == nil
  3278  	} else if this == nil {
  3279  		return false
  3280  	}
  3281  	if !bytes.Equal(this.Data, that1.Data) {
  3282  		return false
  3283  	}
  3284  	return true
  3285  }
  3286  func (this *TransferChunksResponse) Equal(that interface{}) bool {
  3287  	if that == nil {
  3288  		return this == nil
  3289  	}
  3290  
  3291  	that1, ok := that.(*TransferChunksResponse)
  3292  	if !ok {
  3293  		that2, ok := that.(TransferChunksResponse)
  3294  		if ok {
  3295  			that1 = &that2
  3296  		} else {
  3297  			return false
  3298  		}
  3299  	}
  3300  	if that1 == nil {
  3301  		return this == nil
  3302  	} else if this == nil {
  3303  		return false
  3304  	}
  3305  	return true
  3306  }
  3307  func (this *TailersCountRequest) Equal(that interface{}) bool {
  3308  	if that == nil {
  3309  		return this == nil
  3310  	}
  3311  
  3312  	that1, ok := that.(*TailersCountRequest)
  3313  	if !ok {
  3314  		that2, ok := that.(TailersCountRequest)
  3315  		if ok {
  3316  			that1 = &that2
  3317  		} else {
  3318  			return false
  3319  		}
  3320  	}
  3321  	if that1 == nil {
  3322  		return this == nil
  3323  	} else if this == nil {
  3324  		return false
  3325  	}
  3326  	return true
  3327  }
  3328  func (this *TailersCountResponse) Equal(that interface{}) bool {
  3329  	if that == nil {
  3330  		return this == nil
  3331  	}
  3332  
  3333  	that1, ok := that.(*TailersCountResponse)
  3334  	if !ok {
  3335  		that2, ok := that.(TailersCountResponse)
  3336  		if ok {
  3337  			that1 = &that2
  3338  		} else {
  3339  			return false
  3340  		}
  3341  	}
  3342  	if that1 == nil {
  3343  		return this == nil
  3344  	} else if this == nil {
  3345  		return false
  3346  	}
  3347  	if this.Count != that1.Count {
  3348  		return false
  3349  	}
  3350  	return true
  3351  }
  3352  func (this *GetChunkIDsRequest) Equal(that interface{}) bool {
  3353  	if that == nil {
  3354  		return this == nil
  3355  	}
  3356  
  3357  	that1, ok := that.(*GetChunkIDsRequest)
  3358  	if !ok {
  3359  		that2, ok := that.(GetChunkIDsRequest)
  3360  		if ok {
  3361  			that1 = &that2
  3362  		} else {
  3363  			return false
  3364  		}
  3365  	}
  3366  	if that1 == nil {
  3367  		return this == nil
  3368  	} else if this == nil {
  3369  		return false
  3370  	}
  3371  	if this.Matchers != that1.Matchers {
  3372  		return false
  3373  	}
  3374  	if !this.Start.Equal(that1.Start) {
  3375  		return false
  3376  	}
  3377  	if !this.End.Equal(that1.End) {
  3378  		return false
  3379  	}
  3380  	return true
  3381  }
  3382  func (this *GetChunkIDsResponse) Equal(that interface{}) bool {
  3383  	if that == nil {
  3384  		return this == nil
  3385  	}
  3386  
  3387  	that1, ok := that.(*GetChunkIDsResponse)
  3388  	if !ok {
  3389  		that2, ok := that.(GetChunkIDsResponse)
  3390  		if ok {
  3391  			that1 = &that2
  3392  		} else {
  3393  			return false
  3394  		}
  3395  	}
  3396  	if that1 == nil {
  3397  		return this == nil
  3398  	} else if this == nil {
  3399  		return false
  3400  	}
  3401  	if len(this.ChunkIDs) != len(that1.ChunkIDs) {
  3402  		return false
  3403  	}
  3404  	for i := range this.ChunkIDs {
  3405  		if this.ChunkIDs[i] != that1.ChunkIDs[i] {
  3406  			return false
  3407  		}
  3408  	}
  3409  	return true
  3410  }
  3411  func (this *ChunkRef) Equal(that interface{}) bool {
  3412  	if that == nil {
  3413  		return this == nil
  3414  	}
  3415  
  3416  	that1, ok := that.(*ChunkRef)
  3417  	if !ok {
  3418  		that2, ok := that.(ChunkRef)
  3419  		if ok {
  3420  			that1 = &that2
  3421  		} else {
  3422  			return false
  3423  		}
  3424  	}
  3425  	if that1 == nil {
  3426  		return this == nil
  3427  	} else if this == nil {
  3428  		return false
  3429  	}
  3430  	if this.Fingerprint != that1.Fingerprint {
  3431  		return false
  3432  	}
  3433  	if this.UserID != that1.UserID {
  3434  		return false
  3435  	}
  3436  	if !this.From.Equal(that1.From) {
  3437  		return false
  3438  	}
  3439  	if !this.Through.Equal(that1.Through) {
  3440  		return false
  3441  	}
  3442  	if this.Checksum != that1.Checksum {
  3443  		return false
  3444  	}
  3445  	return true
  3446  }
  3447  func (this *LabelValuesForMetricNameRequest) Equal(that interface{}) bool {
  3448  	if that == nil {
  3449  		return this == nil
  3450  	}
  3451  
  3452  	that1, ok := that.(*LabelValuesForMetricNameRequest)
  3453  	if !ok {
  3454  		that2, ok := that.(LabelValuesForMetricNameRequest)
  3455  		if ok {
  3456  			that1 = &that2
  3457  		} else {
  3458  			return false
  3459  		}
  3460  	}
  3461  	if that1 == nil {
  3462  		return this == nil
  3463  	} else if this == nil {
  3464  		return false
  3465  	}
  3466  	if this.MetricName != that1.MetricName {
  3467  		return false
  3468  	}
  3469  	if this.LabelName != that1.LabelName {
  3470  		return false
  3471  	}
  3472  	if !this.From.Equal(that1.From) {
  3473  		return false
  3474  	}
  3475  	if !this.Through.Equal(that1.Through) {
  3476  		return false
  3477  	}
  3478  	if this.Matchers != that1.Matchers {
  3479  		return false
  3480  	}
  3481  	return true
  3482  }
  3483  func (this *LabelNamesForMetricNameRequest) Equal(that interface{}) bool {
  3484  	if that == nil {
  3485  		return this == nil
  3486  	}
  3487  
  3488  	that1, ok := that.(*LabelNamesForMetricNameRequest)
  3489  	if !ok {
  3490  		that2, ok := that.(LabelNamesForMetricNameRequest)
  3491  		if ok {
  3492  			that1 = &that2
  3493  		} else {
  3494  			return false
  3495  		}
  3496  	}
  3497  	if that1 == nil {
  3498  		return this == nil
  3499  	} else if this == nil {
  3500  		return false
  3501  	}
  3502  	if this.MetricName != that1.MetricName {
  3503  		return false
  3504  	}
  3505  	if !this.From.Equal(that1.From) {
  3506  		return false
  3507  	}
  3508  	if !this.Through.Equal(that1.Through) {
  3509  		return false
  3510  	}
  3511  	return true
  3512  }
  3513  func (this *GetChunkRefRequest) Equal(that interface{}) bool {
  3514  	if that == nil {
  3515  		return this == nil
  3516  	}
  3517  
  3518  	that1, ok := that.(*GetChunkRefRequest)
  3519  	if !ok {
  3520  		that2, ok := that.(GetChunkRefRequest)
  3521  		if ok {
  3522  			that1 = &that2
  3523  		} else {
  3524  			return false
  3525  		}
  3526  	}
  3527  	if that1 == nil {
  3528  		return this == nil
  3529  	} else if this == nil {
  3530  		return false
  3531  	}
  3532  	if !this.From.Equal(that1.From) {
  3533  		return false
  3534  	}
  3535  	if !this.Through.Equal(that1.Through) {
  3536  		return false
  3537  	}
  3538  	if this.Matchers != that1.Matchers {
  3539  		return false
  3540  	}
  3541  	return true
  3542  }
  3543  func (this *GetChunkRefResponse) Equal(that interface{}) bool {
  3544  	if that == nil {
  3545  		return this == nil
  3546  	}
  3547  
  3548  	that1, ok := that.(*GetChunkRefResponse)
  3549  	if !ok {
  3550  		that2, ok := that.(GetChunkRefResponse)
  3551  		if ok {
  3552  			that1 = &that2
  3553  		} else {
  3554  			return false
  3555  		}
  3556  	}
  3557  	if that1 == nil {
  3558  		return this == nil
  3559  	} else if this == nil {
  3560  		return false
  3561  	}
  3562  	if len(this.Refs) != len(that1.Refs) {
  3563  		return false
  3564  	}
  3565  	for i := range this.Refs {
  3566  		if !this.Refs[i].Equal(that1.Refs[i]) {
  3567  			return false
  3568  		}
  3569  	}
  3570  	return true
  3571  }
  3572  func (this *GetSeriesRequest) Equal(that interface{}) bool {
  3573  	if that == nil {
  3574  		return this == nil
  3575  	}
  3576  
  3577  	that1, ok := that.(*GetSeriesRequest)
  3578  	if !ok {
  3579  		that2, ok := that.(GetSeriesRequest)
  3580  		if ok {
  3581  			that1 = &that2
  3582  		} else {
  3583  			return false
  3584  		}
  3585  	}
  3586  	if that1 == nil {
  3587  		return this == nil
  3588  	} else if this == nil {
  3589  		return false
  3590  	}
  3591  	if !this.From.Equal(that1.From) {
  3592  		return false
  3593  	}
  3594  	if !this.Through.Equal(that1.Through) {
  3595  		return false
  3596  	}
  3597  	if this.Matchers != that1.Matchers {
  3598  		return false
  3599  	}
  3600  	return true
  3601  }
  3602  func (this *GetSeriesResponse) Equal(that interface{}) bool {
  3603  	if that == nil {
  3604  		return this == nil
  3605  	}
  3606  
  3607  	that1, ok := that.(*GetSeriesResponse)
  3608  	if !ok {
  3609  		that2, ok := that.(GetSeriesResponse)
  3610  		if ok {
  3611  			that1 = &that2
  3612  		} else {
  3613  			return false
  3614  		}
  3615  	}
  3616  	if that1 == nil {
  3617  		return this == nil
  3618  	} else if this == nil {
  3619  		return false
  3620  	}
  3621  	if len(this.Series) != len(that1.Series) {
  3622  		return false
  3623  	}
  3624  	for i := range this.Series {
  3625  		if !this.Series[i].Equal(&that1.Series[i]) {
  3626  			return false
  3627  		}
  3628  	}
  3629  	return true
  3630  }
  3631  func (this *IndexSeries) Equal(that interface{}) bool {
  3632  	if that == nil {
  3633  		return this == nil
  3634  	}
  3635  
  3636  	that1, ok := that.(*IndexSeries)
  3637  	if !ok {
  3638  		that2, ok := that.(IndexSeries)
  3639  		if ok {
  3640  			that1 = &that2
  3641  		} else {
  3642  			return false
  3643  		}
  3644  	}
  3645  	if that1 == nil {
  3646  		return this == nil
  3647  	} else if this == nil {
  3648  		return false
  3649  	}
  3650  	if len(this.Labels) != len(that1.Labels) {
  3651  		return false
  3652  	}
  3653  	for i := range this.Labels {
  3654  		if !this.Labels[i].Equal(that1.Labels[i]) {
  3655  			return false
  3656  		}
  3657  	}
  3658  	return true
  3659  }
  3660  func (this *QueryIndexResponse) Equal(that interface{}) bool {
  3661  	if that == nil {
  3662  		return this == nil
  3663  	}
  3664  
  3665  	that1, ok := that.(*QueryIndexResponse)
  3666  	if !ok {
  3667  		that2, ok := that.(QueryIndexResponse)
  3668  		if ok {
  3669  			that1 = &that2
  3670  		} else {
  3671  			return false
  3672  		}
  3673  	}
  3674  	if that1 == nil {
  3675  		return this == nil
  3676  	} else if this == nil {
  3677  		return false
  3678  	}
  3679  	if this.QueryKey != that1.QueryKey {
  3680  		return false
  3681  	}
  3682  	if len(this.Rows) != len(that1.Rows) {
  3683  		return false
  3684  	}
  3685  	for i := range this.Rows {
  3686  		if !this.Rows[i].Equal(that1.Rows[i]) {
  3687  			return false
  3688  		}
  3689  	}
  3690  	return true
  3691  }
  3692  func (this *Row) Equal(that interface{}) bool {
  3693  	if that == nil {
  3694  		return this == nil
  3695  	}
  3696  
  3697  	that1, ok := that.(*Row)
  3698  	if !ok {
  3699  		that2, ok := that.(Row)
  3700  		if ok {
  3701  			that1 = &that2
  3702  		} else {
  3703  			return false
  3704  		}
  3705  	}
  3706  	if that1 == nil {
  3707  		return this == nil
  3708  	} else if this == nil {
  3709  		return false
  3710  	}
  3711  	if !bytes.Equal(this.RangeValue, that1.RangeValue) {
  3712  		return false
  3713  	}
  3714  	if !bytes.Equal(this.Value, that1.Value) {
  3715  		return false
  3716  	}
  3717  	return true
  3718  }
  3719  func (this *QueryIndexRequest) Equal(that interface{}) bool {
  3720  	if that == nil {
  3721  		return this == nil
  3722  	}
  3723  
  3724  	that1, ok := that.(*QueryIndexRequest)
  3725  	if !ok {
  3726  		that2, ok := that.(QueryIndexRequest)
  3727  		if ok {
  3728  			that1 = &that2
  3729  		} else {
  3730  			return false
  3731  		}
  3732  	}
  3733  	if that1 == nil {
  3734  		return this == nil
  3735  	} else if this == nil {
  3736  		return false
  3737  	}
  3738  	if len(this.Queries) != len(that1.Queries) {
  3739  		return false
  3740  	}
  3741  	for i := range this.Queries {
  3742  		if !this.Queries[i].Equal(that1.Queries[i]) {
  3743  			return false
  3744  		}
  3745  	}
  3746  	return true
  3747  }
  3748  func (this *IndexQuery) Equal(that interface{}) bool {
  3749  	if that == nil {
  3750  		return this == nil
  3751  	}
  3752  
  3753  	that1, ok := that.(*IndexQuery)
  3754  	if !ok {
  3755  		that2, ok := that.(IndexQuery)
  3756  		if ok {
  3757  			that1 = &that2
  3758  		} else {
  3759  			return false
  3760  		}
  3761  	}
  3762  	if that1 == nil {
  3763  		return this == nil
  3764  	} else if this == nil {
  3765  		return false
  3766  	}
  3767  	if this.TableName != that1.TableName {
  3768  		return false
  3769  	}
  3770  	if this.HashValue != that1.HashValue {
  3771  		return false
  3772  	}
  3773  	if !bytes.Equal(this.RangeValuePrefix, that1.RangeValuePrefix) {
  3774  		return false
  3775  	}
  3776  	if !bytes.Equal(this.RangeValueStart, that1.RangeValueStart) {
  3777  		return false
  3778  	}
  3779  	if !bytes.Equal(this.ValueEqual, that1.ValueEqual) {
  3780  		return false
  3781  	}
  3782  	return true
  3783  }
  3784  func (this *IndexStatsRequest) Equal(that interface{}) bool {
  3785  	if that == nil {
  3786  		return this == nil
  3787  	}
  3788  
  3789  	that1, ok := that.(*IndexStatsRequest)
  3790  	if !ok {
  3791  		that2, ok := that.(IndexStatsRequest)
  3792  		if ok {
  3793  			that1 = &that2
  3794  		} else {
  3795  			return false
  3796  		}
  3797  	}
  3798  	if that1 == nil {
  3799  		return this == nil
  3800  	} else if this == nil {
  3801  		return false
  3802  	}
  3803  	if !this.From.Equal(that1.From) {
  3804  		return false
  3805  	}
  3806  	if !this.Through.Equal(that1.Through) {
  3807  		return false
  3808  	}
  3809  	if this.Matchers != that1.Matchers {
  3810  		return false
  3811  	}
  3812  	return true
  3813  }
  3814  func (this *IndexStatsResponse) Equal(that interface{}) bool {
  3815  	if that == nil {
  3816  		return this == nil
  3817  	}
  3818  
  3819  	that1, ok := that.(*IndexStatsResponse)
  3820  	if !ok {
  3821  		that2, ok := that.(IndexStatsResponse)
  3822  		if ok {
  3823  			that1 = &that2
  3824  		} else {
  3825  			return false
  3826  		}
  3827  	}
  3828  	if that1 == nil {
  3829  		return this == nil
  3830  	} else if this == nil {
  3831  		return false
  3832  	}
  3833  	if this.Streams != that1.Streams {
  3834  		return false
  3835  	}
  3836  	if this.Chunks != that1.Chunks {
  3837  		return false
  3838  	}
  3839  	if this.Bytes != that1.Bytes {
  3840  		return false
  3841  	}
  3842  	if this.Entries != that1.Entries {
  3843  		return false
  3844  	}
  3845  	return true
  3846  }
  3847  func (this *PushRequest) GoString() string {
  3848  	if this == nil {
  3849  		return "nil"
  3850  	}
  3851  	s := make([]string, 0, 5)
  3852  	s = append(s, "&logproto.PushRequest{")
  3853  	s = append(s, "Streams: "+fmt.Sprintf("%#v", this.Streams)+",\n")
  3854  	s = append(s, "}")
  3855  	return strings.Join(s, "")
  3856  }
  3857  func (this *PushResponse) GoString() string {
  3858  	if this == nil {
  3859  		return "nil"
  3860  	}
  3861  	s := make([]string, 0, 4)
  3862  	s = append(s, "&logproto.PushResponse{")
  3863  	s = append(s, "}")
  3864  	return strings.Join(s, "")
  3865  }
  3866  func (this *QueryRequest) GoString() string {
  3867  	if this == nil {
  3868  		return "nil"
  3869  	}
  3870  	s := make([]string, 0, 11)
  3871  	s = append(s, "&logproto.QueryRequest{")
  3872  	s = append(s, "Selector: "+fmt.Sprintf("%#v", this.Selector)+",\n")
  3873  	s = append(s, "Limit: "+fmt.Sprintf("%#v", this.Limit)+",\n")
  3874  	s = append(s, "Start: "+fmt.Sprintf("%#v", this.Start)+",\n")
  3875  	s = append(s, "End: "+fmt.Sprintf("%#v", this.End)+",\n")
  3876  	s = append(s, "Direction: "+fmt.Sprintf("%#v", this.Direction)+",\n")
  3877  	s = append(s, "Shards: "+fmt.Sprintf("%#v", this.Shards)+",\n")
  3878  	if this.Deletes != nil {
  3879  		s = append(s, "Deletes: "+fmt.Sprintf("%#v", this.Deletes)+",\n")
  3880  	}
  3881  	s = append(s, "}")
  3882  	return strings.Join(s, "")
  3883  }
  3884  func (this *SampleQueryRequest) GoString() string {
  3885  	if this == nil {
  3886  		return "nil"
  3887  	}
  3888  	s := make([]string, 0, 9)
  3889  	s = append(s, "&logproto.SampleQueryRequest{")
  3890  	s = append(s, "Selector: "+fmt.Sprintf("%#v", this.Selector)+",\n")
  3891  	s = append(s, "Start: "+fmt.Sprintf("%#v", this.Start)+",\n")
  3892  	s = append(s, "End: "+fmt.Sprintf("%#v", this.End)+",\n")
  3893  	s = append(s, "Shards: "+fmt.Sprintf("%#v", this.Shards)+",\n")
  3894  	if this.Deletes != nil {
  3895  		s = append(s, "Deletes: "+fmt.Sprintf("%#v", this.Deletes)+",\n")
  3896  	}
  3897  	s = append(s, "}")
  3898  	return strings.Join(s, "")
  3899  }
  3900  func (this *Delete) GoString() string {
  3901  	if this == nil {
  3902  		return "nil"
  3903  	}
  3904  	s := make([]string, 0, 7)
  3905  	s = append(s, "&logproto.Delete{")
  3906  	s = append(s, "Selector: "+fmt.Sprintf("%#v", this.Selector)+",\n")
  3907  	s = append(s, "Start: "+fmt.Sprintf("%#v", this.Start)+",\n")
  3908  	s = append(s, "End: "+fmt.Sprintf("%#v", this.End)+",\n")
  3909  	s = append(s, "}")
  3910  	return strings.Join(s, "")
  3911  }
  3912  func (this *QueryResponse) GoString() string {
  3913  	if this == nil {
  3914  		return "nil"
  3915  	}
  3916  	s := make([]string, 0, 6)
  3917  	s = append(s, "&logproto.QueryResponse{")
  3918  	s = append(s, "Streams: "+fmt.Sprintf("%#v", this.Streams)+",\n")
  3919  	s = append(s, "Stats: "+strings.Replace(this.Stats.GoString(), `&`, ``, 1)+",\n")
  3920  	s = append(s, "}")
  3921  	return strings.Join(s, "")
  3922  }
  3923  func (this *SampleQueryResponse) GoString() string {
  3924  	if this == nil {
  3925  		return "nil"
  3926  	}
  3927  	s := make([]string, 0, 6)
  3928  	s = append(s, "&logproto.SampleQueryResponse{")
  3929  	s = append(s, "Series: "+fmt.Sprintf("%#v", this.Series)+",\n")
  3930  	s = append(s, "Stats: "+strings.Replace(this.Stats.GoString(), `&`, ``, 1)+",\n")
  3931  	s = append(s, "}")
  3932  	return strings.Join(s, "")
  3933  }
  3934  func (this *LabelRequest) GoString() string {
  3935  	if this == nil {
  3936  		return "nil"
  3937  	}
  3938  	s := make([]string, 0, 8)
  3939  	s = append(s, "&logproto.LabelRequest{")
  3940  	s = append(s, "Name: "+fmt.Sprintf("%#v", this.Name)+",\n")
  3941  	s = append(s, "Values: "+fmt.Sprintf("%#v", this.Values)+",\n")
  3942  	s = append(s, "Start: "+fmt.Sprintf("%#v", this.Start)+",\n")
  3943  	s = append(s, "End: "+fmt.Sprintf("%#v", this.End)+",\n")
  3944  	s = append(s, "}")
  3945  	return strings.Join(s, "")
  3946  }
  3947  func (this *LabelResponse) GoString() string {
  3948  	if this == nil {
  3949  		return "nil"
  3950  	}
  3951  	s := make([]string, 0, 5)
  3952  	s = append(s, "&logproto.LabelResponse{")
  3953  	s = append(s, "Values: "+fmt.Sprintf("%#v", this.Values)+",\n")
  3954  	s = append(s, "}")
  3955  	return strings.Join(s, "")
  3956  }
  3957  func (this *StreamAdapter) GoString() string {
  3958  	if this == nil {
  3959  		return "nil"
  3960  	}
  3961  	s := make([]string, 0, 7)
  3962  	s = append(s, "&logproto.StreamAdapter{")
  3963  	s = append(s, "Labels: "+fmt.Sprintf("%#v", this.Labels)+",\n")
  3964  	if this.Entries != nil {
  3965  		vs := make([]*EntryAdapter, len(this.Entries))
  3966  		for i := range vs {
  3967  			vs[i] = &this.Entries[i]
  3968  		}
  3969  		s = append(s, "Entries: "+fmt.Sprintf("%#v", vs)+",\n")
  3970  	}
  3971  	s = append(s, "Hash: "+fmt.Sprintf("%#v", this.Hash)+",\n")
  3972  	s = append(s, "}")
  3973  	return strings.Join(s, "")
  3974  }
  3975  func (this *EntryAdapter) GoString() string {
  3976  	if this == nil {
  3977  		return "nil"
  3978  	}
  3979  	s := make([]string, 0, 6)
  3980  	s = append(s, "&logproto.EntryAdapter{")
  3981  	s = append(s, "Timestamp: "+fmt.Sprintf("%#v", this.Timestamp)+",\n")
  3982  	s = append(s, "Line: "+fmt.Sprintf("%#v", this.Line)+",\n")
  3983  	s = append(s, "}")
  3984  	return strings.Join(s, "")
  3985  }
  3986  func (this *Sample) GoString() string {
  3987  	if this == nil {
  3988  		return "nil"
  3989  	}
  3990  	s := make([]string, 0, 7)
  3991  	s = append(s, "&logproto.Sample{")
  3992  	s = append(s, "Timestamp: "+fmt.Sprintf("%#v", this.Timestamp)+",\n")
  3993  	s = append(s, "Value: "+fmt.Sprintf("%#v", this.Value)+",\n")
  3994  	s = append(s, "Hash: "+fmt.Sprintf("%#v", this.Hash)+",\n")
  3995  	s = append(s, "}")
  3996  	return strings.Join(s, "")
  3997  }
  3998  func (this *LegacySample) GoString() string {
  3999  	if this == nil {
  4000  		return "nil"
  4001  	}
  4002  	s := make([]string, 0, 6)
  4003  	s = append(s, "&logproto.LegacySample{")
  4004  	s = append(s, "Value: "+fmt.Sprintf("%#v", this.Value)+",\n")
  4005  	s = append(s, "TimestampMs: "+fmt.Sprintf("%#v", this.TimestampMs)+",\n")
  4006  	s = append(s, "}")
  4007  	return strings.Join(s, "")
  4008  }
  4009  func (this *Series) GoString() string {
  4010  	if this == nil {
  4011  		return "nil"
  4012  	}
  4013  	s := make([]string, 0, 7)
  4014  	s = append(s, "&logproto.Series{")
  4015  	s = append(s, "Labels: "+fmt.Sprintf("%#v", this.Labels)+",\n")
  4016  	if this.Samples != nil {
  4017  		vs := make([]*Sample, len(this.Samples))
  4018  		for i := range vs {
  4019  			vs[i] = &this.Samples[i]
  4020  		}
  4021  		s = append(s, "Samples: "+fmt.Sprintf("%#v", vs)+",\n")
  4022  	}
  4023  	s = append(s, "StreamHash: "+fmt.Sprintf("%#v", this.StreamHash)+",\n")
  4024  	s = append(s, "}")
  4025  	return strings.Join(s, "")
  4026  }
  4027  func (this *TailRequest) GoString() string {
  4028  	if this == nil {
  4029  		return "nil"
  4030  	}
  4031  	s := make([]string, 0, 8)
  4032  	s = append(s, "&logproto.TailRequest{")
  4033  	s = append(s, "Query: "+fmt.Sprintf("%#v", this.Query)+",\n")
  4034  	s = append(s, "DelayFor: "+fmt.Sprintf("%#v", this.DelayFor)+",\n")
  4035  	s = append(s, "Limit: "+fmt.Sprintf("%#v", this.Limit)+",\n")
  4036  	s = append(s, "Start: "+fmt.Sprintf("%#v", this.Start)+",\n")
  4037  	s = append(s, "}")
  4038  	return strings.Join(s, "")
  4039  }
  4040  func (this *TailResponse) GoString() string {
  4041  	if this == nil {
  4042  		return "nil"
  4043  	}
  4044  	s := make([]string, 0, 6)
  4045  	s = append(s, "&logproto.TailResponse{")
  4046  	s = append(s, "Stream: "+fmt.Sprintf("%#v", this.Stream)+",\n")
  4047  	if this.DroppedStreams != nil {
  4048  		s = append(s, "DroppedStreams: "+fmt.Sprintf("%#v", this.DroppedStreams)+",\n")
  4049  	}
  4050  	s = append(s, "}")
  4051  	return strings.Join(s, "")
  4052  }
  4053  func (this *SeriesRequest) GoString() string {
  4054  	if this == nil {
  4055  		return "nil"
  4056  	}
  4057  	s := make([]string, 0, 8)
  4058  	s = append(s, "&logproto.SeriesRequest{")
  4059  	s = append(s, "Start: "+fmt.Sprintf("%#v", this.Start)+",\n")
  4060  	s = append(s, "End: "+fmt.Sprintf("%#v", this.End)+",\n")
  4061  	s = append(s, "Groups: "+fmt.Sprintf("%#v", this.Groups)+",\n")
  4062  	s = append(s, "Shards: "+fmt.Sprintf("%#v", this.Shards)+",\n")
  4063  	s = append(s, "}")
  4064  	return strings.Join(s, "")
  4065  }
  4066  func (this *SeriesResponse) GoString() string {
  4067  	if this == nil {
  4068  		return "nil"
  4069  	}
  4070  	s := make([]string, 0, 5)
  4071  	s = append(s, "&logproto.SeriesResponse{")
  4072  	if this.Series != nil {
  4073  		vs := make([]*SeriesIdentifier, len(this.Series))
  4074  		for i := range vs {
  4075  			vs[i] = &this.Series[i]
  4076  		}
  4077  		s = append(s, "Series: "+fmt.Sprintf("%#v", vs)+",\n")
  4078  	}
  4079  	s = append(s, "}")
  4080  	return strings.Join(s, "")
  4081  }
  4082  func (this *SeriesIdentifier) GoString() string {
  4083  	if this == nil {
  4084  		return "nil"
  4085  	}
  4086  	s := make([]string, 0, 5)
  4087  	s = append(s, "&logproto.SeriesIdentifier{")
  4088  	keysForLabels := make([]string, 0, len(this.Labels))
  4089  	for k, _ := range this.Labels {
  4090  		keysForLabels = append(keysForLabels, k)
  4091  	}
  4092  	github_com_gogo_protobuf_sortkeys.Strings(keysForLabels)
  4093  	mapStringForLabels := "map[string]string{"
  4094  	for _, k := range keysForLabels {
  4095  		mapStringForLabels += fmt.Sprintf("%#v: %#v,", k, this.Labels[k])
  4096  	}
  4097  	mapStringForLabels += "}"
  4098  	if this.Labels != nil {
  4099  		s = append(s, "Labels: "+mapStringForLabels+",\n")
  4100  	}
  4101  	s = append(s, "}")
  4102  	return strings.Join(s, "")
  4103  }
  4104  func (this *DroppedStream) GoString() string {
  4105  	if this == nil {
  4106  		return "nil"
  4107  	}
  4108  	s := make([]string, 0, 7)
  4109  	s = append(s, "&logproto.DroppedStream{")
  4110  	s = append(s, "From: "+fmt.Sprintf("%#v", this.From)+",\n")
  4111  	s = append(s, "To: "+fmt.Sprintf("%#v", this.To)+",\n")
  4112  	s = append(s, "Labels: "+fmt.Sprintf("%#v", this.Labels)+",\n")
  4113  	s = append(s, "}")
  4114  	return strings.Join(s, "")
  4115  }
  4116  func (this *TimeSeriesChunk) GoString() string {
  4117  	if this == nil {
  4118  		return "nil"
  4119  	}
  4120  	s := make([]string, 0, 8)
  4121  	s = append(s, "&logproto.TimeSeriesChunk{")
  4122  	s = append(s, "FromIngesterId: "+fmt.Sprintf("%#v", this.FromIngesterId)+",\n")
  4123  	s = append(s, "UserId: "+fmt.Sprintf("%#v", this.UserId)+",\n")
  4124  	if this.Labels != nil {
  4125  		s = append(s, "Labels: "+fmt.Sprintf("%#v", this.Labels)+",\n")
  4126  	}
  4127  	if this.Chunks != nil {
  4128  		s = append(s, "Chunks: "+fmt.Sprintf("%#v", this.Chunks)+",\n")
  4129  	}
  4130  	s = append(s, "}")
  4131  	return strings.Join(s, "")
  4132  }
  4133  func (this *LabelPair) GoString() string {
  4134  	if this == nil {
  4135  		return "nil"
  4136  	}
  4137  	s := make([]string, 0, 6)
  4138  	s = append(s, "&logproto.LabelPair{")
  4139  	s = append(s, "Name: "+fmt.Sprintf("%#v", this.Name)+",\n")
  4140  	s = append(s, "Value: "+fmt.Sprintf("%#v", this.Value)+",\n")
  4141  	s = append(s, "}")
  4142  	return strings.Join(s, "")
  4143  }
  4144  func (this *LegacyLabelPair) GoString() string {
  4145  	if this == nil {
  4146  		return "nil"
  4147  	}
  4148  	s := make([]string, 0, 6)
  4149  	s = append(s, "&logproto.LegacyLabelPair{")
  4150  	s = append(s, "Name: "+fmt.Sprintf("%#v", this.Name)+",\n")
  4151  	s = append(s, "Value: "+fmt.Sprintf("%#v", this.Value)+",\n")
  4152  	s = append(s, "}")
  4153  	return strings.Join(s, "")
  4154  }
  4155  func (this *Chunk) GoString() string {
  4156  	if this == nil {
  4157  		return "nil"
  4158  	}
  4159  	s := make([]string, 0, 5)
  4160  	s = append(s, "&logproto.Chunk{")
  4161  	s = append(s, "Data: "+fmt.Sprintf("%#v", this.Data)+",\n")
  4162  	s = append(s, "}")
  4163  	return strings.Join(s, "")
  4164  }
  4165  func (this *TransferChunksResponse) GoString() string {
  4166  	if this == nil {
  4167  		return "nil"
  4168  	}
  4169  	s := make([]string, 0, 4)
  4170  	s = append(s, "&logproto.TransferChunksResponse{")
  4171  	s = append(s, "}")
  4172  	return strings.Join(s, "")
  4173  }
  4174  func (this *TailersCountRequest) GoString() string {
  4175  	if this == nil {
  4176  		return "nil"
  4177  	}
  4178  	s := make([]string, 0, 4)
  4179  	s = append(s, "&logproto.TailersCountRequest{")
  4180  	s = append(s, "}")
  4181  	return strings.Join(s, "")
  4182  }
  4183  func (this *TailersCountResponse) GoString() string {
  4184  	if this == nil {
  4185  		return "nil"
  4186  	}
  4187  	s := make([]string, 0, 5)
  4188  	s = append(s, "&logproto.TailersCountResponse{")
  4189  	s = append(s, "Count: "+fmt.Sprintf("%#v", this.Count)+",\n")
  4190  	s = append(s, "}")
  4191  	return strings.Join(s, "")
  4192  }
  4193  func (this *GetChunkIDsRequest) GoString() string {
  4194  	if this == nil {
  4195  		return "nil"
  4196  	}
  4197  	s := make([]string, 0, 7)
  4198  	s = append(s, "&logproto.GetChunkIDsRequest{")
  4199  	s = append(s, "Matchers: "+fmt.Sprintf("%#v", this.Matchers)+",\n")
  4200  	s = append(s, "Start: "+fmt.Sprintf("%#v", this.Start)+",\n")
  4201  	s = append(s, "End: "+fmt.Sprintf("%#v", this.End)+",\n")
  4202  	s = append(s, "}")
  4203  	return strings.Join(s, "")
  4204  }
  4205  func (this *GetChunkIDsResponse) GoString() string {
  4206  	if this == nil {
  4207  		return "nil"
  4208  	}
  4209  	s := make([]string, 0, 5)
  4210  	s = append(s, "&logproto.GetChunkIDsResponse{")
  4211  	s = append(s, "ChunkIDs: "+fmt.Sprintf("%#v", this.ChunkIDs)+",\n")
  4212  	s = append(s, "}")
  4213  	return strings.Join(s, "")
  4214  }
  4215  func (this *ChunkRef) GoString() string {
  4216  	if this == nil {
  4217  		return "nil"
  4218  	}
  4219  	s := make([]string, 0, 9)
  4220  	s = append(s, "&logproto.ChunkRef{")
  4221  	s = append(s, "Fingerprint: "+fmt.Sprintf("%#v", this.Fingerprint)+",\n")
  4222  	s = append(s, "UserID: "+fmt.Sprintf("%#v", this.UserID)+",\n")
  4223  	s = append(s, "From: "+fmt.Sprintf("%#v", this.From)+",\n")
  4224  	s = append(s, "Through: "+fmt.Sprintf("%#v", this.Through)+",\n")
  4225  	s = append(s, "Checksum: "+fmt.Sprintf("%#v", this.Checksum)+",\n")
  4226  	s = append(s, "}")
  4227  	return strings.Join(s, "")
  4228  }
  4229  func (this *LabelValuesForMetricNameRequest) GoString() string {
  4230  	if this == nil {
  4231  		return "nil"
  4232  	}
  4233  	s := make([]string, 0, 9)
  4234  	s = append(s, "&logproto.LabelValuesForMetricNameRequest{")
  4235  	s = append(s, "MetricName: "+fmt.Sprintf("%#v", this.MetricName)+",\n")
  4236  	s = append(s, "LabelName: "+fmt.Sprintf("%#v", this.LabelName)+",\n")
  4237  	s = append(s, "From: "+fmt.Sprintf("%#v", this.From)+",\n")
  4238  	s = append(s, "Through: "+fmt.Sprintf("%#v", this.Through)+",\n")
  4239  	s = append(s, "Matchers: "+fmt.Sprintf("%#v", this.Matchers)+",\n")
  4240  	s = append(s, "}")
  4241  	return strings.Join(s, "")
  4242  }
  4243  func (this *LabelNamesForMetricNameRequest) GoString() string {
  4244  	if this == nil {
  4245  		return "nil"
  4246  	}
  4247  	s := make([]string, 0, 7)
  4248  	s = append(s, "&logproto.LabelNamesForMetricNameRequest{")
  4249  	s = append(s, "MetricName: "+fmt.Sprintf("%#v", this.MetricName)+",\n")
  4250  	s = append(s, "From: "+fmt.Sprintf("%#v", this.From)+",\n")
  4251  	s = append(s, "Through: "+fmt.Sprintf("%#v", this.Through)+",\n")
  4252  	s = append(s, "}")
  4253  	return strings.Join(s, "")
  4254  }
  4255  func (this *GetChunkRefRequest) GoString() string {
  4256  	if this == nil {
  4257  		return "nil"
  4258  	}
  4259  	s := make([]string, 0, 7)
  4260  	s = append(s, "&logproto.GetChunkRefRequest{")
  4261  	s = append(s, "From: "+fmt.Sprintf("%#v", this.From)+",\n")
  4262  	s = append(s, "Through: "+fmt.Sprintf("%#v", this.Through)+",\n")
  4263  	s = append(s, "Matchers: "+fmt.Sprintf("%#v", this.Matchers)+",\n")
  4264  	s = append(s, "}")
  4265  	return strings.Join(s, "")
  4266  }
  4267  func (this *GetChunkRefResponse) GoString() string {
  4268  	if this == nil {
  4269  		return "nil"
  4270  	}
  4271  	s := make([]string, 0, 5)
  4272  	s = append(s, "&logproto.GetChunkRefResponse{")
  4273  	if this.Refs != nil {
  4274  		s = append(s, "Refs: "+fmt.Sprintf("%#v", this.Refs)+",\n")
  4275  	}
  4276  	s = append(s, "}")
  4277  	return strings.Join(s, "")
  4278  }
  4279  func (this *GetSeriesRequest) GoString() string {
  4280  	if this == nil {
  4281  		return "nil"
  4282  	}
  4283  	s := make([]string, 0, 7)
  4284  	s = append(s, "&logproto.GetSeriesRequest{")
  4285  	s = append(s, "From: "+fmt.Sprintf("%#v", this.From)+",\n")
  4286  	s = append(s, "Through: "+fmt.Sprintf("%#v", this.Through)+",\n")
  4287  	s = append(s, "Matchers: "+fmt.Sprintf("%#v", this.Matchers)+",\n")
  4288  	s = append(s, "}")
  4289  	return strings.Join(s, "")
  4290  }
  4291  func (this *GetSeriesResponse) GoString() string {
  4292  	if this == nil {
  4293  		return "nil"
  4294  	}
  4295  	s := make([]string, 0, 5)
  4296  	s = append(s, "&logproto.GetSeriesResponse{")
  4297  	if this.Series != nil {
  4298  		vs := make([]*IndexSeries, len(this.Series))
  4299  		for i := range vs {
  4300  			vs[i] = &this.Series[i]
  4301  		}
  4302  		s = append(s, "Series: "+fmt.Sprintf("%#v", vs)+",\n")
  4303  	}
  4304  	s = append(s, "}")
  4305  	return strings.Join(s, "")
  4306  }
  4307  func (this *IndexSeries) GoString() string {
  4308  	if this == nil {
  4309  		return "nil"
  4310  	}
  4311  	s := make([]string, 0, 5)
  4312  	s = append(s, "&logproto.IndexSeries{")
  4313  	s = append(s, "Labels: "+fmt.Sprintf("%#v", this.Labels)+",\n")
  4314  	s = append(s, "}")
  4315  	return strings.Join(s, "")
  4316  }
  4317  func (this *QueryIndexResponse) GoString() string {
  4318  	if this == nil {
  4319  		return "nil"
  4320  	}
  4321  	s := make([]string, 0, 6)
  4322  	s = append(s, "&logproto.QueryIndexResponse{")
  4323  	s = append(s, "QueryKey: "+fmt.Sprintf("%#v", this.QueryKey)+",\n")
  4324  	if this.Rows != nil {
  4325  		s = append(s, "Rows: "+fmt.Sprintf("%#v", this.Rows)+",\n")
  4326  	}
  4327  	s = append(s, "}")
  4328  	return strings.Join(s, "")
  4329  }
  4330  func (this *Row) GoString() string {
  4331  	if this == nil {
  4332  		return "nil"
  4333  	}
  4334  	s := make([]string, 0, 6)
  4335  	s = append(s, "&logproto.Row{")
  4336  	s = append(s, "RangeValue: "+fmt.Sprintf("%#v", this.RangeValue)+",\n")
  4337  	s = append(s, "Value: "+fmt.Sprintf("%#v", this.Value)+",\n")
  4338  	s = append(s, "}")
  4339  	return strings.Join(s, "")
  4340  }
  4341  func (this *QueryIndexRequest) GoString() string {
  4342  	if this == nil {
  4343  		return "nil"
  4344  	}
  4345  	s := make([]string, 0, 5)
  4346  	s = append(s, "&logproto.QueryIndexRequest{")
  4347  	if this.Queries != nil {
  4348  		s = append(s, "Queries: "+fmt.Sprintf("%#v", this.Queries)+",\n")
  4349  	}
  4350  	s = append(s, "}")
  4351  	return strings.Join(s, "")
  4352  }
  4353  func (this *IndexQuery) GoString() string {
  4354  	if this == nil {
  4355  		return "nil"
  4356  	}
  4357  	s := make([]string, 0, 9)
  4358  	s = append(s, "&logproto.IndexQuery{")
  4359  	s = append(s, "TableName: "+fmt.Sprintf("%#v", this.TableName)+",\n")
  4360  	s = append(s, "HashValue: "+fmt.Sprintf("%#v", this.HashValue)+",\n")
  4361  	s = append(s, "RangeValuePrefix: "+fmt.Sprintf("%#v", this.RangeValuePrefix)+",\n")
  4362  	s = append(s, "RangeValueStart: "+fmt.Sprintf("%#v", this.RangeValueStart)+",\n")
  4363  	s = append(s, "ValueEqual: "+fmt.Sprintf("%#v", this.ValueEqual)+",\n")
  4364  	s = append(s, "}")
  4365  	return strings.Join(s, "")
  4366  }
  4367  func (this *IndexStatsRequest) GoString() string {
  4368  	if this == nil {
  4369  		return "nil"
  4370  	}
  4371  	s := make([]string, 0, 7)
  4372  	s = append(s, "&logproto.IndexStatsRequest{")
  4373  	s = append(s, "From: "+fmt.Sprintf("%#v", this.From)+",\n")
  4374  	s = append(s, "Through: "+fmt.Sprintf("%#v", this.Through)+",\n")
  4375  	s = append(s, "Matchers: "+fmt.Sprintf("%#v", this.Matchers)+",\n")
  4376  	s = append(s, "}")
  4377  	return strings.Join(s, "")
  4378  }
  4379  func (this *IndexStatsResponse) GoString() string {
  4380  	if this == nil {
  4381  		return "nil"
  4382  	}
  4383  	s := make([]string, 0, 8)
  4384  	s = append(s, "&logproto.IndexStatsResponse{")
  4385  	s = append(s, "Streams: "+fmt.Sprintf("%#v", this.Streams)+",\n")
  4386  	s = append(s, "Chunks: "+fmt.Sprintf("%#v", this.Chunks)+",\n")
  4387  	s = append(s, "Bytes: "+fmt.Sprintf("%#v", this.Bytes)+",\n")
  4388  	s = append(s, "Entries: "+fmt.Sprintf("%#v", this.Entries)+",\n")
  4389  	s = append(s, "}")
  4390  	return strings.Join(s, "")
  4391  }
  4392  func valueToGoStringLogproto(v interface{}, typ string) string {
  4393  	rv := reflect.ValueOf(v)
  4394  	if rv.IsNil() {
  4395  		return "nil"
  4396  	}
  4397  	pv := reflect.Indirect(rv).Interface()
  4398  	return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv)
  4399  }
  4400  
  4401  // Reference imports to suppress errors if they are not otherwise used.
  4402  var _ context.Context
  4403  var _ grpc.ClientConn
  4404  
  4405  // This is a compile-time assertion to ensure that this generated file
  4406  // is compatible with the grpc package it is being compiled against.
  4407  const _ = grpc.SupportPackageIsVersion4
  4408  
  4409  // PusherClient is the client API for Pusher service.
  4410  //
  4411  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  4412  type PusherClient interface {
  4413  	Push(ctx context.Context, in *PushRequest, opts ...grpc.CallOption) (*PushResponse, error)
  4414  }
  4415  
  4416  type pusherClient struct {
  4417  	cc *grpc.ClientConn
  4418  }
  4419  
  4420  func NewPusherClient(cc *grpc.ClientConn) PusherClient {
  4421  	return &pusherClient{cc}
  4422  }
  4423  
  4424  func (c *pusherClient) Push(ctx context.Context, in *PushRequest, opts ...grpc.CallOption) (*PushResponse, error) {
  4425  	out := new(PushResponse)
  4426  	err := c.cc.Invoke(ctx, "/logproto.Pusher/Push", in, out, opts...)
  4427  	if err != nil {
  4428  		return nil, err
  4429  	}
  4430  	return out, nil
  4431  }
  4432  
  4433  // PusherServer is the server API for Pusher service.
  4434  type PusherServer interface {
  4435  	Push(context.Context, *PushRequest) (*PushResponse, error)
  4436  }
  4437  
  4438  // UnimplementedPusherServer can be embedded to have forward compatible implementations.
  4439  type UnimplementedPusherServer struct {
  4440  }
  4441  
  4442  func (*UnimplementedPusherServer) Push(ctx context.Context, req *PushRequest) (*PushResponse, error) {
  4443  	return nil, status.Errorf(codes.Unimplemented, "method Push not implemented")
  4444  }
  4445  
  4446  func RegisterPusherServer(s *grpc.Server, srv PusherServer) {
  4447  	s.RegisterService(&_Pusher_serviceDesc, srv)
  4448  }
  4449  
  4450  func _Pusher_Push_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  4451  	in := new(PushRequest)
  4452  	if err := dec(in); err != nil {
  4453  		return nil, err
  4454  	}
  4455  	if interceptor == nil {
  4456  		return srv.(PusherServer).Push(ctx, in)
  4457  	}
  4458  	info := &grpc.UnaryServerInfo{
  4459  		Server:     srv,
  4460  		FullMethod: "/logproto.Pusher/Push",
  4461  	}
  4462  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  4463  		return srv.(PusherServer).Push(ctx, req.(*PushRequest))
  4464  	}
  4465  	return interceptor(ctx, in, info, handler)
  4466  }
  4467  
  4468  var _Pusher_serviceDesc = grpc.ServiceDesc{
  4469  	ServiceName: "logproto.Pusher",
  4470  	HandlerType: (*PusherServer)(nil),
  4471  	Methods: []grpc.MethodDesc{
  4472  		{
  4473  			MethodName: "Push",
  4474  			Handler:    _Pusher_Push_Handler,
  4475  		},
  4476  	},
  4477  	Streams:  []grpc.StreamDesc{},
  4478  	Metadata: "pkg/logproto/logproto.proto",
  4479  }
  4480  
  4481  // QuerierClient is the client API for Querier service.
  4482  //
  4483  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  4484  type QuerierClient interface {
  4485  	Query(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (Querier_QueryClient, error)
  4486  	QuerySample(ctx context.Context, in *SampleQueryRequest, opts ...grpc.CallOption) (Querier_QuerySampleClient, error)
  4487  	Label(ctx context.Context, in *LabelRequest, opts ...grpc.CallOption) (*LabelResponse, error)
  4488  	Tail(ctx context.Context, in *TailRequest, opts ...grpc.CallOption) (Querier_TailClient, error)
  4489  	Series(ctx context.Context, in *SeriesRequest, opts ...grpc.CallOption) (*SeriesResponse, error)
  4490  	TailersCount(ctx context.Context, in *TailersCountRequest, opts ...grpc.CallOption) (*TailersCountResponse, error)
  4491  	GetChunkIDs(ctx context.Context, in *GetChunkIDsRequest, opts ...grpc.CallOption) (*GetChunkIDsResponse, error)
  4492  	// Note: this MUST be the same as the variant defined in
  4493  	// indexgateway.proto on the IndexGateway service.
  4494  	GetStats(ctx context.Context, in *IndexStatsRequest, opts ...grpc.CallOption) (*IndexStatsResponse, error)
  4495  }
  4496  
  4497  type querierClient struct {
  4498  	cc *grpc.ClientConn
  4499  }
  4500  
  4501  func NewQuerierClient(cc *grpc.ClientConn) QuerierClient {
  4502  	return &querierClient{cc}
  4503  }
  4504  
  4505  func (c *querierClient) Query(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (Querier_QueryClient, error) {
  4506  	stream, err := c.cc.NewStream(ctx, &_Querier_serviceDesc.Streams[0], "/logproto.Querier/Query", opts...)
  4507  	if err != nil {
  4508  		return nil, err
  4509  	}
  4510  	x := &querierQueryClient{stream}
  4511  	if err := x.ClientStream.SendMsg(in); err != nil {
  4512  		return nil, err
  4513  	}
  4514  	if err := x.ClientStream.CloseSend(); err != nil {
  4515  		return nil, err
  4516  	}
  4517  	return x, nil
  4518  }
  4519  
  4520  type Querier_QueryClient interface {
  4521  	Recv() (*QueryResponse, error)
  4522  	grpc.ClientStream
  4523  }
  4524  
  4525  type querierQueryClient struct {
  4526  	grpc.ClientStream
  4527  }
  4528  
  4529  func (x *querierQueryClient) Recv() (*QueryResponse, error) {
  4530  	m := new(QueryResponse)
  4531  	if err := x.ClientStream.RecvMsg(m); err != nil {
  4532  		return nil, err
  4533  	}
  4534  	return m, nil
  4535  }
  4536  
  4537  func (c *querierClient) QuerySample(ctx context.Context, in *SampleQueryRequest, opts ...grpc.CallOption) (Querier_QuerySampleClient, error) {
  4538  	stream, err := c.cc.NewStream(ctx, &_Querier_serviceDesc.Streams[1], "/logproto.Querier/QuerySample", opts...)
  4539  	if err != nil {
  4540  		return nil, err
  4541  	}
  4542  	x := &querierQuerySampleClient{stream}
  4543  	if err := x.ClientStream.SendMsg(in); err != nil {
  4544  		return nil, err
  4545  	}
  4546  	if err := x.ClientStream.CloseSend(); err != nil {
  4547  		return nil, err
  4548  	}
  4549  	return x, nil
  4550  }
  4551  
  4552  type Querier_QuerySampleClient interface {
  4553  	Recv() (*SampleQueryResponse, error)
  4554  	grpc.ClientStream
  4555  }
  4556  
  4557  type querierQuerySampleClient struct {
  4558  	grpc.ClientStream
  4559  }
  4560  
  4561  func (x *querierQuerySampleClient) Recv() (*SampleQueryResponse, error) {
  4562  	m := new(SampleQueryResponse)
  4563  	if err := x.ClientStream.RecvMsg(m); err != nil {
  4564  		return nil, err
  4565  	}
  4566  	return m, nil
  4567  }
  4568  
  4569  func (c *querierClient) Label(ctx context.Context, in *LabelRequest, opts ...grpc.CallOption) (*LabelResponse, error) {
  4570  	out := new(LabelResponse)
  4571  	err := c.cc.Invoke(ctx, "/logproto.Querier/Label", in, out, opts...)
  4572  	if err != nil {
  4573  		return nil, err
  4574  	}
  4575  	return out, nil
  4576  }
  4577  
  4578  func (c *querierClient) Tail(ctx context.Context, in *TailRequest, opts ...grpc.CallOption) (Querier_TailClient, error) {
  4579  	stream, err := c.cc.NewStream(ctx, &_Querier_serviceDesc.Streams[2], "/logproto.Querier/Tail", opts...)
  4580  	if err != nil {
  4581  		return nil, err
  4582  	}
  4583  	x := &querierTailClient{stream}
  4584  	if err := x.ClientStream.SendMsg(in); err != nil {
  4585  		return nil, err
  4586  	}
  4587  	if err := x.ClientStream.CloseSend(); err != nil {
  4588  		return nil, err
  4589  	}
  4590  	return x, nil
  4591  }
  4592  
  4593  type Querier_TailClient interface {
  4594  	Recv() (*TailResponse, error)
  4595  	grpc.ClientStream
  4596  }
  4597  
  4598  type querierTailClient struct {
  4599  	grpc.ClientStream
  4600  }
  4601  
  4602  func (x *querierTailClient) Recv() (*TailResponse, error) {
  4603  	m := new(TailResponse)
  4604  	if err := x.ClientStream.RecvMsg(m); err != nil {
  4605  		return nil, err
  4606  	}
  4607  	return m, nil
  4608  }
  4609  
  4610  func (c *querierClient) Series(ctx context.Context, in *SeriesRequest, opts ...grpc.CallOption) (*SeriesResponse, error) {
  4611  	out := new(SeriesResponse)
  4612  	err := c.cc.Invoke(ctx, "/logproto.Querier/Series", in, out, opts...)
  4613  	if err != nil {
  4614  		return nil, err
  4615  	}
  4616  	return out, nil
  4617  }
  4618  
  4619  func (c *querierClient) TailersCount(ctx context.Context, in *TailersCountRequest, opts ...grpc.CallOption) (*TailersCountResponse, error) {
  4620  	out := new(TailersCountResponse)
  4621  	err := c.cc.Invoke(ctx, "/logproto.Querier/TailersCount", in, out, opts...)
  4622  	if err != nil {
  4623  		return nil, err
  4624  	}
  4625  	return out, nil
  4626  }
  4627  
  4628  func (c *querierClient) GetChunkIDs(ctx context.Context, in *GetChunkIDsRequest, opts ...grpc.CallOption) (*GetChunkIDsResponse, error) {
  4629  	out := new(GetChunkIDsResponse)
  4630  	err := c.cc.Invoke(ctx, "/logproto.Querier/GetChunkIDs", in, out, opts...)
  4631  	if err != nil {
  4632  		return nil, err
  4633  	}
  4634  	return out, nil
  4635  }
  4636  
  4637  func (c *querierClient) GetStats(ctx context.Context, in *IndexStatsRequest, opts ...grpc.CallOption) (*IndexStatsResponse, error) {
  4638  	out := new(IndexStatsResponse)
  4639  	err := c.cc.Invoke(ctx, "/logproto.Querier/GetStats", in, out, opts...)
  4640  	if err != nil {
  4641  		return nil, err
  4642  	}
  4643  	return out, nil
  4644  }
  4645  
  4646  // QuerierServer is the server API for Querier service.
  4647  type QuerierServer interface {
  4648  	Query(*QueryRequest, Querier_QueryServer) error
  4649  	QuerySample(*SampleQueryRequest, Querier_QuerySampleServer) error
  4650  	Label(context.Context, *LabelRequest) (*LabelResponse, error)
  4651  	Tail(*TailRequest, Querier_TailServer) error
  4652  	Series(context.Context, *SeriesRequest) (*SeriesResponse, error)
  4653  	TailersCount(context.Context, *TailersCountRequest) (*TailersCountResponse, error)
  4654  	GetChunkIDs(context.Context, *GetChunkIDsRequest) (*GetChunkIDsResponse, error)
  4655  	// Note: this MUST be the same as the variant defined in
  4656  	// indexgateway.proto on the IndexGateway service.
  4657  	GetStats(context.Context, *IndexStatsRequest) (*IndexStatsResponse, error)
  4658  }
  4659  
  4660  // UnimplementedQuerierServer can be embedded to have forward compatible implementations.
  4661  type UnimplementedQuerierServer struct {
  4662  }
  4663  
  4664  func (*UnimplementedQuerierServer) Query(req *QueryRequest, srv Querier_QueryServer) error {
  4665  	return status.Errorf(codes.Unimplemented, "method Query not implemented")
  4666  }
  4667  func (*UnimplementedQuerierServer) QuerySample(req *SampleQueryRequest, srv Querier_QuerySampleServer) error {
  4668  	return status.Errorf(codes.Unimplemented, "method QuerySample not implemented")
  4669  }
  4670  func (*UnimplementedQuerierServer) Label(ctx context.Context, req *LabelRequest) (*LabelResponse, error) {
  4671  	return nil, status.Errorf(codes.Unimplemented, "method Label not implemented")
  4672  }
  4673  func (*UnimplementedQuerierServer) Tail(req *TailRequest, srv Querier_TailServer) error {
  4674  	return status.Errorf(codes.Unimplemented, "method Tail not implemented")
  4675  }
  4676  func (*UnimplementedQuerierServer) Series(ctx context.Context, req *SeriesRequest) (*SeriesResponse, error) {
  4677  	return nil, status.Errorf(codes.Unimplemented, "method Series not implemented")
  4678  }
  4679  func (*UnimplementedQuerierServer) TailersCount(ctx context.Context, req *TailersCountRequest) (*TailersCountResponse, error) {
  4680  	return nil, status.Errorf(codes.Unimplemented, "method TailersCount not implemented")
  4681  }
  4682  func (*UnimplementedQuerierServer) GetChunkIDs(ctx context.Context, req *GetChunkIDsRequest) (*GetChunkIDsResponse, error) {
  4683  	return nil, status.Errorf(codes.Unimplemented, "method GetChunkIDs not implemented")
  4684  }
  4685  func (*UnimplementedQuerierServer) GetStats(ctx context.Context, req *IndexStatsRequest) (*IndexStatsResponse, error) {
  4686  	return nil, status.Errorf(codes.Unimplemented, "method GetStats not implemented")
  4687  }
  4688  
  4689  func RegisterQuerierServer(s *grpc.Server, srv QuerierServer) {
  4690  	s.RegisterService(&_Querier_serviceDesc, srv)
  4691  }
  4692  
  4693  func _Querier_Query_Handler(srv interface{}, stream grpc.ServerStream) error {
  4694  	m := new(QueryRequest)
  4695  	if err := stream.RecvMsg(m); err != nil {
  4696  		return err
  4697  	}
  4698  	return srv.(QuerierServer).Query(m, &querierQueryServer{stream})
  4699  }
  4700  
  4701  type Querier_QueryServer interface {
  4702  	Send(*QueryResponse) error
  4703  	grpc.ServerStream
  4704  }
  4705  
  4706  type querierQueryServer struct {
  4707  	grpc.ServerStream
  4708  }
  4709  
  4710  func (x *querierQueryServer) Send(m *QueryResponse) error {
  4711  	return x.ServerStream.SendMsg(m)
  4712  }
  4713  
  4714  func _Querier_QuerySample_Handler(srv interface{}, stream grpc.ServerStream) error {
  4715  	m := new(SampleQueryRequest)
  4716  	if err := stream.RecvMsg(m); err != nil {
  4717  		return err
  4718  	}
  4719  	return srv.(QuerierServer).QuerySample(m, &querierQuerySampleServer{stream})
  4720  }
  4721  
  4722  type Querier_QuerySampleServer interface {
  4723  	Send(*SampleQueryResponse) error
  4724  	grpc.ServerStream
  4725  }
  4726  
  4727  type querierQuerySampleServer struct {
  4728  	grpc.ServerStream
  4729  }
  4730  
  4731  func (x *querierQuerySampleServer) Send(m *SampleQueryResponse) error {
  4732  	return x.ServerStream.SendMsg(m)
  4733  }
  4734  
  4735  func _Querier_Label_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  4736  	in := new(LabelRequest)
  4737  	if err := dec(in); err != nil {
  4738  		return nil, err
  4739  	}
  4740  	if interceptor == nil {
  4741  		return srv.(QuerierServer).Label(ctx, in)
  4742  	}
  4743  	info := &grpc.UnaryServerInfo{
  4744  		Server:     srv,
  4745  		FullMethod: "/logproto.Querier/Label",
  4746  	}
  4747  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  4748  		return srv.(QuerierServer).Label(ctx, req.(*LabelRequest))
  4749  	}
  4750  	return interceptor(ctx, in, info, handler)
  4751  }
  4752  
  4753  func _Querier_Tail_Handler(srv interface{}, stream grpc.ServerStream) error {
  4754  	m := new(TailRequest)
  4755  	if err := stream.RecvMsg(m); err != nil {
  4756  		return err
  4757  	}
  4758  	return srv.(QuerierServer).Tail(m, &querierTailServer{stream})
  4759  }
  4760  
  4761  type Querier_TailServer interface {
  4762  	Send(*TailResponse) error
  4763  	grpc.ServerStream
  4764  }
  4765  
  4766  type querierTailServer struct {
  4767  	grpc.ServerStream
  4768  }
  4769  
  4770  func (x *querierTailServer) Send(m *TailResponse) error {
  4771  	return x.ServerStream.SendMsg(m)
  4772  }
  4773  
  4774  func _Querier_Series_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  4775  	in := new(SeriesRequest)
  4776  	if err := dec(in); err != nil {
  4777  		return nil, err
  4778  	}
  4779  	if interceptor == nil {
  4780  		return srv.(QuerierServer).Series(ctx, in)
  4781  	}
  4782  	info := &grpc.UnaryServerInfo{
  4783  		Server:     srv,
  4784  		FullMethod: "/logproto.Querier/Series",
  4785  	}
  4786  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  4787  		return srv.(QuerierServer).Series(ctx, req.(*SeriesRequest))
  4788  	}
  4789  	return interceptor(ctx, in, info, handler)
  4790  }
  4791  
  4792  func _Querier_TailersCount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  4793  	in := new(TailersCountRequest)
  4794  	if err := dec(in); err != nil {
  4795  		return nil, err
  4796  	}
  4797  	if interceptor == nil {
  4798  		return srv.(QuerierServer).TailersCount(ctx, in)
  4799  	}
  4800  	info := &grpc.UnaryServerInfo{
  4801  		Server:     srv,
  4802  		FullMethod: "/logproto.Querier/TailersCount",
  4803  	}
  4804  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  4805  		return srv.(QuerierServer).TailersCount(ctx, req.(*TailersCountRequest))
  4806  	}
  4807  	return interceptor(ctx, in, info, handler)
  4808  }
  4809  
  4810  func _Querier_GetChunkIDs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  4811  	in := new(GetChunkIDsRequest)
  4812  	if err := dec(in); err != nil {
  4813  		return nil, err
  4814  	}
  4815  	if interceptor == nil {
  4816  		return srv.(QuerierServer).GetChunkIDs(ctx, in)
  4817  	}
  4818  	info := &grpc.UnaryServerInfo{
  4819  		Server:     srv,
  4820  		FullMethod: "/logproto.Querier/GetChunkIDs",
  4821  	}
  4822  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  4823  		return srv.(QuerierServer).GetChunkIDs(ctx, req.(*GetChunkIDsRequest))
  4824  	}
  4825  	return interceptor(ctx, in, info, handler)
  4826  }
  4827  
  4828  func _Querier_GetStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  4829  	in := new(IndexStatsRequest)
  4830  	if err := dec(in); err != nil {
  4831  		return nil, err
  4832  	}
  4833  	if interceptor == nil {
  4834  		return srv.(QuerierServer).GetStats(ctx, in)
  4835  	}
  4836  	info := &grpc.UnaryServerInfo{
  4837  		Server:     srv,
  4838  		FullMethod: "/logproto.Querier/GetStats",
  4839  	}
  4840  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  4841  		return srv.(QuerierServer).GetStats(ctx, req.(*IndexStatsRequest))
  4842  	}
  4843  	return interceptor(ctx, in, info, handler)
  4844  }
  4845  
  4846  var _Querier_serviceDesc = grpc.ServiceDesc{
  4847  	ServiceName: "logproto.Querier",
  4848  	HandlerType: (*QuerierServer)(nil),
  4849  	Methods: []grpc.MethodDesc{
  4850  		{
  4851  			MethodName: "Label",
  4852  			Handler:    _Querier_Label_Handler,
  4853  		},
  4854  		{
  4855  			MethodName: "Series",
  4856  			Handler:    _Querier_Series_Handler,
  4857  		},
  4858  		{
  4859  			MethodName: "TailersCount",
  4860  			Handler:    _Querier_TailersCount_Handler,
  4861  		},
  4862  		{
  4863  			MethodName: "GetChunkIDs",
  4864  			Handler:    _Querier_GetChunkIDs_Handler,
  4865  		},
  4866  		{
  4867  			MethodName: "GetStats",
  4868  			Handler:    _Querier_GetStats_Handler,
  4869  		},
  4870  	},
  4871  	Streams: []grpc.StreamDesc{
  4872  		{
  4873  			StreamName:    "Query",
  4874  			Handler:       _Querier_Query_Handler,
  4875  			ServerStreams: true,
  4876  		},
  4877  		{
  4878  			StreamName:    "QuerySample",
  4879  			Handler:       _Querier_QuerySample_Handler,
  4880  			ServerStreams: true,
  4881  		},
  4882  		{
  4883  			StreamName:    "Tail",
  4884  			Handler:       _Querier_Tail_Handler,
  4885  			ServerStreams: true,
  4886  		},
  4887  	},
  4888  	Metadata: "pkg/logproto/logproto.proto",
  4889  }
  4890  
  4891  // IngesterClient is the client API for Ingester service.
  4892  //
  4893  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  4894  type IngesterClient interface {
  4895  	TransferChunks(ctx context.Context, opts ...grpc.CallOption) (Ingester_TransferChunksClient, error)
  4896  }
  4897  
  4898  type ingesterClient struct {
  4899  	cc *grpc.ClientConn
  4900  }
  4901  
  4902  func NewIngesterClient(cc *grpc.ClientConn) IngesterClient {
  4903  	return &ingesterClient{cc}
  4904  }
  4905  
  4906  func (c *ingesterClient) TransferChunks(ctx context.Context, opts ...grpc.CallOption) (Ingester_TransferChunksClient, error) {
  4907  	stream, err := c.cc.NewStream(ctx, &_Ingester_serviceDesc.Streams[0], "/logproto.Ingester/TransferChunks", opts...)
  4908  	if err != nil {
  4909  		return nil, err
  4910  	}
  4911  	x := &ingesterTransferChunksClient{stream}
  4912  	return x, nil
  4913  }
  4914  
  4915  type Ingester_TransferChunksClient interface {
  4916  	Send(*TimeSeriesChunk) error
  4917  	CloseAndRecv() (*TransferChunksResponse, error)
  4918  	grpc.ClientStream
  4919  }
  4920  
  4921  type ingesterTransferChunksClient struct {
  4922  	grpc.ClientStream
  4923  }
  4924  
  4925  func (x *ingesterTransferChunksClient) Send(m *TimeSeriesChunk) error {
  4926  	return x.ClientStream.SendMsg(m)
  4927  }
  4928  
  4929  func (x *ingesterTransferChunksClient) CloseAndRecv() (*TransferChunksResponse, error) {
  4930  	if err := x.ClientStream.CloseSend(); err != nil {
  4931  		return nil, err
  4932  	}
  4933  	m := new(TransferChunksResponse)
  4934  	if err := x.ClientStream.RecvMsg(m); err != nil {
  4935  		return nil, err
  4936  	}
  4937  	return m, nil
  4938  }
  4939  
  4940  // IngesterServer is the server API for Ingester service.
  4941  type IngesterServer interface {
  4942  	TransferChunks(Ingester_TransferChunksServer) error
  4943  }
  4944  
  4945  // UnimplementedIngesterServer can be embedded to have forward compatible implementations.
  4946  type UnimplementedIngesterServer struct {
  4947  }
  4948  
  4949  func (*UnimplementedIngesterServer) TransferChunks(srv Ingester_TransferChunksServer) error {
  4950  	return status.Errorf(codes.Unimplemented, "method TransferChunks not implemented")
  4951  }
  4952  
  4953  func RegisterIngesterServer(s *grpc.Server, srv IngesterServer) {
  4954  	s.RegisterService(&_Ingester_serviceDesc, srv)
  4955  }
  4956  
  4957  func _Ingester_TransferChunks_Handler(srv interface{}, stream grpc.ServerStream) error {
  4958  	return srv.(IngesterServer).TransferChunks(&ingesterTransferChunksServer{stream})
  4959  }
  4960  
  4961  type Ingester_TransferChunksServer interface {
  4962  	SendAndClose(*TransferChunksResponse) error
  4963  	Recv() (*TimeSeriesChunk, error)
  4964  	grpc.ServerStream
  4965  }
  4966  
  4967  type ingesterTransferChunksServer struct {
  4968  	grpc.ServerStream
  4969  }
  4970  
  4971  func (x *ingesterTransferChunksServer) SendAndClose(m *TransferChunksResponse) error {
  4972  	return x.ServerStream.SendMsg(m)
  4973  }
  4974  
  4975  func (x *ingesterTransferChunksServer) Recv() (*TimeSeriesChunk, error) {
  4976  	m := new(TimeSeriesChunk)
  4977  	if err := x.ServerStream.RecvMsg(m); err != nil {
  4978  		return nil, err
  4979  	}
  4980  	return m, nil
  4981  }
  4982  
  4983  var _Ingester_serviceDesc = grpc.ServiceDesc{
  4984  	ServiceName: "logproto.Ingester",
  4985  	HandlerType: (*IngesterServer)(nil),
  4986  	Methods:     []grpc.MethodDesc{},
  4987  	Streams: []grpc.StreamDesc{
  4988  		{
  4989  			StreamName:    "TransferChunks",
  4990  			Handler:       _Ingester_TransferChunks_Handler,
  4991  			ClientStreams: true,
  4992  		},
  4993  	},
  4994  	Metadata: "pkg/logproto/logproto.proto",
  4995  }
  4996  
  4997  func (m *PushRequest) Marshal() (dAtA []byte, err error) {
  4998  	size := m.Size()
  4999  	dAtA = make([]byte, size)
  5000  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  5001  	if err != nil {
  5002  		return nil, err
  5003  	}
  5004  	return dAtA[:n], nil
  5005  }
  5006  
  5007  func (m *PushRequest) MarshalTo(dAtA []byte) (int, error) {
  5008  	size := m.Size()
  5009  	return m.MarshalToSizedBuffer(dAtA[:size])
  5010  }
  5011  
  5012  func (m *PushRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5013  	i := len(dAtA)
  5014  	_ = i
  5015  	var l int
  5016  	_ = l
  5017  	if len(m.Streams) > 0 {
  5018  		for iNdEx := len(m.Streams) - 1; iNdEx >= 0; iNdEx-- {
  5019  			{
  5020  				size := m.Streams[iNdEx].Size()
  5021  				i -= size
  5022  				if _, err := m.Streams[iNdEx].MarshalTo(dAtA[i:]); err != nil {
  5023  					return 0, err
  5024  				}
  5025  				i = encodeVarintLogproto(dAtA, i, uint64(size))
  5026  			}
  5027  			i--
  5028  			dAtA[i] = 0xa
  5029  		}
  5030  	}
  5031  	return len(dAtA) - i, nil
  5032  }
  5033  
  5034  func (m *PushResponse) Marshal() (dAtA []byte, err error) {
  5035  	size := m.Size()
  5036  	dAtA = make([]byte, size)
  5037  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  5038  	if err != nil {
  5039  		return nil, err
  5040  	}
  5041  	return dAtA[:n], nil
  5042  }
  5043  
  5044  func (m *PushResponse) MarshalTo(dAtA []byte) (int, error) {
  5045  	size := m.Size()
  5046  	return m.MarshalToSizedBuffer(dAtA[:size])
  5047  }
  5048  
  5049  func (m *PushResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5050  	i := len(dAtA)
  5051  	_ = i
  5052  	var l int
  5053  	_ = l
  5054  	return len(dAtA) - i, nil
  5055  }
  5056  
  5057  func (m *QueryRequest) Marshal() (dAtA []byte, err error) {
  5058  	size := m.Size()
  5059  	dAtA = make([]byte, size)
  5060  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  5061  	if err != nil {
  5062  		return nil, err
  5063  	}
  5064  	return dAtA[:n], nil
  5065  }
  5066  
  5067  func (m *QueryRequest) MarshalTo(dAtA []byte) (int, error) {
  5068  	size := m.Size()
  5069  	return m.MarshalToSizedBuffer(dAtA[:size])
  5070  }
  5071  
  5072  func (m *QueryRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5073  	i := len(dAtA)
  5074  	_ = i
  5075  	var l int
  5076  	_ = l
  5077  	if len(m.Deletes) > 0 {
  5078  		for iNdEx := len(m.Deletes) - 1; iNdEx >= 0; iNdEx-- {
  5079  			{
  5080  				size, err := m.Deletes[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  5081  				if err != nil {
  5082  					return 0, err
  5083  				}
  5084  				i -= size
  5085  				i = encodeVarintLogproto(dAtA, i, uint64(size))
  5086  			}
  5087  			i--
  5088  			dAtA[i] = 0x42
  5089  		}
  5090  	}
  5091  	if len(m.Shards) > 0 {
  5092  		for iNdEx := len(m.Shards) - 1; iNdEx >= 0; iNdEx-- {
  5093  			i -= len(m.Shards[iNdEx])
  5094  			copy(dAtA[i:], m.Shards[iNdEx])
  5095  			i = encodeVarintLogproto(dAtA, i, uint64(len(m.Shards[iNdEx])))
  5096  			i--
  5097  			dAtA[i] = 0x3a
  5098  		}
  5099  	}
  5100  	if m.Direction != 0 {
  5101  		i = encodeVarintLogproto(dAtA, i, uint64(m.Direction))
  5102  		i--
  5103  		dAtA[i] = 0x28
  5104  	}
  5105  	n1, err1 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.End, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.End):])
  5106  	if err1 != nil {
  5107  		return 0, err1
  5108  	}
  5109  	i -= n1
  5110  	i = encodeVarintLogproto(dAtA, i, uint64(n1))
  5111  	i--
  5112  	dAtA[i] = 0x22
  5113  	n2, err2 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Start, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.Start):])
  5114  	if err2 != nil {
  5115  		return 0, err2
  5116  	}
  5117  	i -= n2
  5118  	i = encodeVarintLogproto(dAtA, i, uint64(n2))
  5119  	i--
  5120  	dAtA[i] = 0x1a
  5121  	if m.Limit != 0 {
  5122  		i = encodeVarintLogproto(dAtA, i, uint64(m.Limit))
  5123  		i--
  5124  		dAtA[i] = 0x10
  5125  	}
  5126  	if len(m.Selector) > 0 {
  5127  		i -= len(m.Selector)
  5128  		copy(dAtA[i:], m.Selector)
  5129  		i = encodeVarintLogproto(dAtA, i, uint64(len(m.Selector)))
  5130  		i--
  5131  		dAtA[i] = 0xa
  5132  	}
  5133  	return len(dAtA) - i, nil
  5134  }
  5135  
  5136  func (m *SampleQueryRequest) Marshal() (dAtA []byte, err error) {
  5137  	size := m.Size()
  5138  	dAtA = make([]byte, size)
  5139  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  5140  	if err != nil {
  5141  		return nil, err
  5142  	}
  5143  	return dAtA[:n], nil
  5144  }
  5145  
  5146  func (m *SampleQueryRequest) MarshalTo(dAtA []byte) (int, error) {
  5147  	size := m.Size()
  5148  	return m.MarshalToSizedBuffer(dAtA[:size])
  5149  }
  5150  
  5151  func (m *SampleQueryRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5152  	i := len(dAtA)
  5153  	_ = i
  5154  	var l int
  5155  	_ = l
  5156  	if len(m.Deletes) > 0 {
  5157  		for iNdEx := len(m.Deletes) - 1; iNdEx >= 0; iNdEx-- {
  5158  			{
  5159  				size, err := m.Deletes[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  5160  				if err != nil {
  5161  					return 0, err
  5162  				}
  5163  				i -= size
  5164  				i = encodeVarintLogproto(dAtA, i, uint64(size))
  5165  			}
  5166  			i--
  5167  			dAtA[i] = 0x2a
  5168  		}
  5169  	}
  5170  	if len(m.Shards) > 0 {
  5171  		for iNdEx := len(m.Shards) - 1; iNdEx >= 0; iNdEx-- {
  5172  			i -= len(m.Shards[iNdEx])
  5173  			copy(dAtA[i:], m.Shards[iNdEx])
  5174  			i = encodeVarintLogproto(dAtA, i, uint64(len(m.Shards[iNdEx])))
  5175  			i--
  5176  			dAtA[i] = 0x22
  5177  		}
  5178  	}
  5179  	n3, err3 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.End, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.End):])
  5180  	if err3 != nil {
  5181  		return 0, err3
  5182  	}
  5183  	i -= n3
  5184  	i = encodeVarintLogproto(dAtA, i, uint64(n3))
  5185  	i--
  5186  	dAtA[i] = 0x1a
  5187  	n4, err4 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Start, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.Start):])
  5188  	if err4 != nil {
  5189  		return 0, err4
  5190  	}
  5191  	i -= n4
  5192  	i = encodeVarintLogproto(dAtA, i, uint64(n4))
  5193  	i--
  5194  	dAtA[i] = 0x12
  5195  	if len(m.Selector) > 0 {
  5196  		i -= len(m.Selector)
  5197  		copy(dAtA[i:], m.Selector)
  5198  		i = encodeVarintLogproto(dAtA, i, uint64(len(m.Selector)))
  5199  		i--
  5200  		dAtA[i] = 0xa
  5201  	}
  5202  	return len(dAtA) - i, nil
  5203  }
  5204  
  5205  func (m *Delete) Marshal() (dAtA []byte, err error) {
  5206  	size := m.Size()
  5207  	dAtA = make([]byte, size)
  5208  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  5209  	if err != nil {
  5210  		return nil, err
  5211  	}
  5212  	return dAtA[:n], nil
  5213  }
  5214  
  5215  func (m *Delete) MarshalTo(dAtA []byte) (int, error) {
  5216  	size := m.Size()
  5217  	return m.MarshalToSizedBuffer(dAtA[:size])
  5218  }
  5219  
  5220  func (m *Delete) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5221  	i := len(dAtA)
  5222  	_ = i
  5223  	var l int
  5224  	_ = l
  5225  	if m.End != 0 {
  5226  		i = encodeVarintLogproto(dAtA, i, uint64(m.End))
  5227  		i--
  5228  		dAtA[i] = 0x18
  5229  	}
  5230  	if m.Start != 0 {
  5231  		i = encodeVarintLogproto(dAtA, i, uint64(m.Start))
  5232  		i--
  5233  		dAtA[i] = 0x10
  5234  	}
  5235  	if len(m.Selector) > 0 {
  5236  		i -= len(m.Selector)
  5237  		copy(dAtA[i:], m.Selector)
  5238  		i = encodeVarintLogproto(dAtA, i, uint64(len(m.Selector)))
  5239  		i--
  5240  		dAtA[i] = 0xa
  5241  	}
  5242  	return len(dAtA) - i, nil
  5243  }
  5244  
  5245  func (m *QueryResponse) Marshal() (dAtA []byte, err error) {
  5246  	size := m.Size()
  5247  	dAtA = make([]byte, size)
  5248  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  5249  	if err != nil {
  5250  		return nil, err
  5251  	}
  5252  	return dAtA[:n], nil
  5253  }
  5254  
  5255  func (m *QueryResponse) MarshalTo(dAtA []byte) (int, error) {
  5256  	size := m.Size()
  5257  	return m.MarshalToSizedBuffer(dAtA[:size])
  5258  }
  5259  
  5260  func (m *QueryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5261  	i := len(dAtA)
  5262  	_ = i
  5263  	var l int
  5264  	_ = l
  5265  	{
  5266  		size, err := m.Stats.MarshalToSizedBuffer(dAtA[:i])
  5267  		if err != nil {
  5268  			return 0, err
  5269  		}
  5270  		i -= size
  5271  		i = encodeVarintLogproto(dAtA, i, uint64(size))
  5272  	}
  5273  	i--
  5274  	dAtA[i] = 0x12
  5275  	if len(m.Streams) > 0 {
  5276  		for iNdEx := len(m.Streams) - 1; iNdEx >= 0; iNdEx-- {
  5277  			{
  5278  				size := m.Streams[iNdEx].Size()
  5279  				i -= size
  5280  				if _, err := m.Streams[iNdEx].MarshalTo(dAtA[i:]); err != nil {
  5281  					return 0, err
  5282  				}
  5283  				i = encodeVarintLogproto(dAtA, i, uint64(size))
  5284  			}
  5285  			i--
  5286  			dAtA[i] = 0xa
  5287  		}
  5288  	}
  5289  	return len(dAtA) - i, nil
  5290  }
  5291  
  5292  func (m *SampleQueryResponse) Marshal() (dAtA []byte, err error) {
  5293  	size := m.Size()
  5294  	dAtA = make([]byte, size)
  5295  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  5296  	if err != nil {
  5297  		return nil, err
  5298  	}
  5299  	return dAtA[:n], nil
  5300  }
  5301  
  5302  func (m *SampleQueryResponse) MarshalTo(dAtA []byte) (int, error) {
  5303  	size := m.Size()
  5304  	return m.MarshalToSizedBuffer(dAtA[:size])
  5305  }
  5306  
  5307  func (m *SampleQueryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5308  	i := len(dAtA)
  5309  	_ = i
  5310  	var l int
  5311  	_ = l
  5312  	{
  5313  		size, err := m.Stats.MarshalToSizedBuffer(dAtA[:i])
  5314  		if err != nil {
  5315  			return 0, err
  5316  		}
  5317  		i -= size
  5318  		i = encodeVarintLogproto(dAtA, i, uint64(size))
  5319  	}
  5320  	i--
  5321  	dAtA[i] = 0x12
  5322  	if len(m.Series) > 0 {
  5323  		for iNdEx := len(m.Series) - 1; iNdEx >= 0; iNdEx-- {
  5324  			{
  5325  				size := m.Series[iNdEx].Size()
  5326  				i -= size
  5327  				if _, err := m.Series[iNdEx].MarshalTo(dAtA[i:]); err != nil {
  5328  					return 0, err
  5329  				}
  5330  				i = encodeVarintLogproto(dAtA, i, uint64(size))
  5331  			}
  5332  			i--
  5333  			dAtA[i] = 0xa
  5334  		}
  5335  	}
  5336  	return len(dAtA) - i, nil
  5337  }
  5338  
  5339  func (m *LabelRequest) Marshal() (dAtA []byte, err error) {
  5340  	size := m.Size()
  5341  	dAtA = make([]byte, size)
  5342  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  5343  	if err != nil {
  5344  		return nil, err
  5345  	}
  5346  	return dAtA[:n], nil
  5347  }
  5348  
  5349  func (m *LabelRequest) MarshalTo(dAtA []byte) (int, error) {
  5350  	size := m.Size()
  5351  	return m.MarshalToSizedBuffer(dAtA[:size])
  5352  }
  5353  
  5354  func (m *LabelRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5355  	i := len(dAtA)
  5356  	_ = i
  5357  	var l int
  5358  	_ = l
  5359  	if m.End != nil {
  5360  		n7, err7 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.End, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.End):])
  5361  		if err7 != nil {
  5362  			return 0, err7
  5363  		}
  5364  		i -= n7
  5365  		i = encodeVarintLogproto(dAtA, i, uint64(n7))
  5366  		i--
  5367  		dAtA[i] = 0x22
  5368  	}
  5369  	if m.Start != nil {
  5370  		n8, err8 := github_com_gogo_protobuf_types.StdTimeMarshalTo(*m.Start, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(*m.Start):])
  5371  		if err8 != nil {
  5372  			return 0, err8
  5373  		}
  5374  		i -= n8
  5375  		i = encodeVarintLogproto(dAtA, i, uint64(n8))
  5376  		i--
  5377  		dAtA[i] = 0x1a
  5378  	}
  5379  	if m.Values {
  5380  		i--
  5381  		if m.Values {
  5382  			dAtA[i] = 1
  5383  		} else {
  5384  			dAtA[i] = 0
  5385  		}
  5386  		i--
  5387  		dAtA[i] = 0x10
  5388  	}
  5389  	if len(m.Name) > 0 {
  5390  		i -= len(m.Name)
  5391  		copy(dAtA[i:], m.Name)
  5392  		i = encodeVarintLogproto(dAtA, i, uint64(len(m.Name)))
  5393  		i--
  5394  		dAtA[i] = 0xa
  5395  	}
  5396  	return len(dAtA) - i, nil
  5397  }
  5398  
  5399  func (m *LabelResponse) Marshal() (dAtA []byte, err error) {
  5400  	size := m.Size()
  5401  	dAtA = make([]byte, size)
  5402  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  5403  	if err != nil {
  5404  		return nil, err
  5405  	}
  5406  	return dAtA[:n], nil
  5407  }
  5408  
  5409  func (m *LabelResponse) MarshalTo(dAtA []byte) (int, error) {
  5410  	size := m.Size()
  5411  	return m.MarshalToSizedBuffer(dAtA[:size])
  5412  }
  5413  
  5414  func (m *LabelResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5415  	i := len(dAtA)
  5416  	_ = i
  5417  	var l int
  5418  	_ = l
  5419  	if len(m.Values) > 0 {
  5420  		for iNdEx := len(m.Values) - 1; iNdEx >= 0; iNdEx-- {
  5421  			i -= len(m.Values[iNdEx])
  5422  			copy(dAtA[i:], m.Values[iNdEx])
  5423  			i = encodeVarintLogproto(dAtA, i, uint64(len(m.Values[iNdEx])))
  5424  			i--
  5425  			dAtA[i] = 0xa
  5426  		}
  5427  	}
  5428  	return len(dAtA) - i, nil
  5429  }
  5430  
  5431  func (m *StreamAdapter) Marshal() (dAtA []byte, err error) {
  5432  	size := m.Size()
  5433  	dAtA = make([]byte, size)
  5434  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  5435  	if err != nil {
  5436  		return nil, err
  5437  	}
  5438  	return dAtA[:n], nil
  5439  }
  5440  
  5441  func (m *StreamAdapter) MarshalTo(dAtA []byte) (int, error) {
  5442  	size := m.Size()
  5443  	return m.MarshalToSizedBuffer(dAtA[:size])
  5444  }
  5445  
  5446  func (m *StreamAdapter) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5447  	i := len(dAtA)
  5448  	_ = i
  5449  	var l int
  5450  	_ = l
  5451  	if m.Hash != 0 {
  5452  		i = encodeVarintLogproto(dAtA, i, uint64(m.Hash))
  5453  		i--
  5454  		dAtA[i] = 0x18
  5455  	}
  5456  	if len(m.Entries) > 0 {
  5457  		for iNdEx := len(m.Entries) - 1; iNdEx >= 0; iNdEx-- {
  5458  			{
  5459  				size, err := m.Entries[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  5460  				if err != nil {
  5461  					return 0, err
  5462  				}
  5463  				i -= size
  5464  				i = encodeVarintLogproto(dAtA, i, uint64(size))
  5465  			}
  5466  			i--
  5467  			dAtA[i] = 0x12
  5468  		}
  5469  	}
  5470  	if len(m.Labels) > 0 {
  5471  		i -= len(m.Labels)
  5472  		copy(dAtA[i:], m.Labels)
  5473  		i = encodeVarintLogproto(dAtA, i, uint64(len(m.Labels)))
  5474  		i--
  5475  		dAtA[i] = 0xa
  5476  	}
  5477  	return len(dAtA) - i, nil
  5478  }
  5479  
  5480  func (m *EntryAdapter) Marshal() (dAtA []byte, err error) {
  5481  	size := m.Size()
  5482  	dAtA = make([]byte, size)
  5483  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  5484  	if err != nil {
  5485  		return nil, err
  5486  	}
  5487  	return dAtA[:n], nil
  5488  }
  5489  
  5490  func (m *EntryAdapter) MarshalTo(dAtA []byte) (int, error) {
  5491  	size := m.Size()
  5492  	return m.MarshalToSizedBuffer(dAtA[:size])
  5493  }
  5494  
  5495  func (m *EntryAdapter) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5496  	i := len(dAtA)
  5497  	_ = i
  5498  	var l int
  5499  	_ = l
  5500  	if len(m.Line) > 0 {
  5501  		i -= len(m.Line)
  5502  		copy(dAtA[i:], m.Line)
  5503  		i = encodeVarintLogproto(dAtA, i, uint64(len(m.Line)))
  5504  		i--
  5505  		dAtA[i] = 0x12
  5506  	}
  5507  	n9, err9 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Timestamp, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.Timestamp):])
  5508  	if err9 != nil {
  5509  		return 0, err9
  5510  	}
  5511  	i -= n9
  5512  	i = encodeVarintLogproto(dAtA, i, uint64(n9))
  5513  	i--
  5514  	dAtA[i] = 0xa
  5515  	return len(dAtA) - i, nil
  5516  }
  5517  
  5518  func (m *Sample) Marshal() (dAtA []byte, err error) {
  5519  	size := m.Size()
  5520  	dAtA = make([]byte, size)
  5521  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  5522  	if err != nil {
  5523  		return nil, err
  5524  	}
  5525  	return dAtA[:n], nil
  5526  }
  5527  
  5528  func (m *Sample) MarshalTo(dAtA []byte) (int, error) {
  5529  	size := m.Size()
  5530  	return m.MarshalToSizedBuffer(dAtA[:size])
  5531  }
  5532  
  5533  func (m *Sample) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5534  	i := len(dAtA)
  5535  	_ = i
  5536  	var l int
  5537  	_ = l
  5538  	if m.Hash != 0 {
  5539  		i = encodeVarintLogproto(dAtA, i, uint64(m.Hash))
  5540  		i--
  5541  		dAtA[i] = 0x18
  5542  	}
  5543  	if m.Value != 0 {
  5544  		i -= 8
  5545  		encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Value))))
  5546  		i--
  5547  		dAtA[i] = 0x11
  5548  	}
  5549  	if m.Timestamp != 0 {
  5550  		i = encodeVarintLogproto(dAtA, i, uint64(m.Timestamp))
  5551  		i--
  5552  		dAtA[i] = 0x8
  5553  	}
  5554  	return len(dAtA) - i, nil
  5555  }
  5556  
  5557  func (m *LegacySample) Marshal() (dAtA []byte, err error) {
  5558  	size := m.Size()
  5559  	dAtA = make([]byte, size)
  5560  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  5561  	if err != nil {
  5562  		return nil, err
  5563  	}
  5564  	return dAtA[:n], nil
  5565  }
  5566  
  5567  func (m *LegacySample) MarshalTo(dAtA []byte) (int, error) {
  5568  	size := m.Size()
  5569  	return m.MarshalToSizedBuffer(dAtA[:size])
  5570  }
  5571  
  5572  func (m *LegacySample) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5573  	i := len(dAtA)
  5574  	_ = i
  5575  	var l int
  5576  	_ = l
  5577  	if m.TimestampMs != 0 {
  5578  		i = encodeVarintLogproto(dAtA, i, uint64(m.TimestampMs))
  5579  		i--
  5580  		dAtA[i] = 0x10
  5581  	}
  5582  	if m.Value != 0 {
  5583  		i -= 8
  5584  		encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.Value))))
  5585  		i--
  5586  		dAtA[i] = 0x9
  5587  	}
  5588  	return len(dAtA) - i, nil
  5589  }
  5590  
  5591  func (m *Series) Marshal() (dAtA []byte, err error) {
  5592  	size := m.Size()
  5593  	dAtA = make([]byte, size)
  5594  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  5595  	if err != nil {
  5596  		return nil, err
  5597  	}
  5598  	return dAtA[:n], nil
  5599  }
  5600  
  5601  func (m *Series) MarshalTo(dAtA []byte) (int, error) {
  5602  	size := m.Size()
  5603  	return m.MarshalToSizedBuffer(dAtA[:size])
  5604  }
  5605  
  5606  func (m *Series) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5607  	i := len(dAtA)
  5608  	_ = i
  5609  	var l int
  5610  	_ = l
  5611  	if m.StreamHash != 0 {
  5612  		i = encodeVarintLogproto(dAtA, i, uint64(m.StreamHash))
  5613  		i--
  5614  		dAtA[i] = 0x18
  5615  	}
  5616  	if len(m.Samples) > 0 {
  5617  		for iNdEx := len(m.Samples) - 1; iNdEx >= 0; iNdEx-- {
  5618  			{
  5619  				size, err := m.Samples[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  5620  				if err != nil {
  5621  					return 0, err
  5622  				}
  5623  				i -= size
  5624  				i = encodeVarintLogproto(dAtA, i, uint64(size))
  5625  			}
  5626  			i--
  5627  			dAtA[i] = 0x12
  5628  		}
  5629  	}
  5630  	if len(m.Labels) > 0 {
  5631  		i -= len(m.Labels)
  5632  		copy(dAtA[i:], m.Labels)
  5633  		i = encodeVarintLogproto(dAtA, i, uint64(len(m.Labels)))
  5634  		i--
  5635  		dAtA[i] = 0xa
  5636  	}
  5637  	return len(dAtA) - i, nil
  5638  }
  5639  
  5640  func (m *TailRequest) Marshal() (dAtA []byte, err error) {
  5641  	size := m.Size()
  5642  	dAtA = make([]byte, size)
  5643  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  5644  	if err != nil {
  5645  		return nil, err
  5646  	}
  5647  	return dAtA[:n], nil
  5648  }
  5649  
  5650  func (m *TailRequest) MarshalTo(dAtA []byte) (int, error) {
  5651  	size := m.Size()
  5652  	return m.MarshalToSizedBuffer(dAtA[:size])
  5653  }
  5654  
  5655  func (m *TailRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5656  	i := len(dAtA)
  5657  	_ = i
  5658  	var l int
  5659  	_ = l
  5660  	n10, err10 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Start, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.Start):])
  5661  	if err10 != nil {
  5662  		return 0, err10
  5663  	}
  5664  	i -= n10
  5665  	i = encodeVarintLogproto(dAtA, i, uint64(n10))
  5666  	i--
  5667  	dAtA[i] = 0x2a
  5668  	if m.Limit != 0 {
  5669  		i = encodeVarintLogproto(dAtA, i, uint64(m.Limit))
  5670  		i--
  5671  		dAtA[i] = 0x20
  5672  	}
  5673  	if m.DelayFor != 0 {
  5674  		i = encodeVarintLogproto(dAtA, i, uint64(m.DelayFor))
  5675  		i--
  5676  		dAtA[i] = 0x18
  5677  	}
  5678  	if len(m.Query) > 0 {
  5679  		i -= len(m.Query)
  5680  		copy(dAtA[i:], m.Query)
  5681  		i = encodeVarintLogproto(dAtA, i, uint64(len(m.Query)))
  5682  		i--
  5683  		dAtA[i] = 0xa
  5684  	}
  5685  	return len(dAtA) - i, nil
  5686  }
  5687  
  5688  func (m *TailResponse) Marshal() (dAtA []byte, err error) {
  5689  	size := m.Size()
  5690  	dAtA = make([]byte, size)
  5691  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  5692  	if err != nil {
  5693  		return nil, err
  5694  	}
  5695  	return dAtA[:n], nil
  5696  }
  5697  
  5698  func (m *TailResponse) MarshalTo(dAtA []byte) (int, error) {
  5699  	size := m.Size()
  5700  	return m.MarshalToSizedBuffer(dAtA[:size])
  5701  }
  5702  
  5703  func (m *TailResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5704  	i := len(dAtA)
  5705  	_ = i
  5706  	var l int
  5707  	_ = l
  5708  	if len(m.DroppedStreams) > 0 {
  5709  		for iNdEx := len(m.DroppedStreams) - 1; iNdEx >= 0; iNdEx-- {
  5710  			{
  5711  				size, err := m.DroppedStreams[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  5712  				if err != nil {
  5713  					return 0, err
  5714  				}
  5715  				i -= size
  5716  				i = encodeVarintLogproto(dAtA, i, uint64(size))
  5717  			}
  5718  			i--
  5719  			dAtA[i] = 0x12
  5720  		}
  5721  	}
  5722  	if m.Stream != nil {
  5723  		{
  5724  			size := m.Stream.Size()
  5725  			i -= size
  5726  			if _, err := m.Stream.MarshalTo(dAtA[i:]); err != nil {
  5727  				return 0, err
  5728  			}
  5729  			i = encodeVarintLogproto(dAtA, i, uint64(size))
  5730  		}
  5731  		i--
  5732  		dAtA[i] = 0xa
  5733  	}
  5734  	return len(dAtA) - i, nil
  5735  }
  5736  
  5737  func (m *SeriesRequest) Marshal() (dAtA []byte, err error) {
  5738  	size := m.Size()
  5739  	dAtA = make([]byte, size)
  5740  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  5741  	if err != nil {
  5742  		return nil, err
  5743  	}
  5744  	return dAtA[:n], nil
  5745  }
  5746  
  5747  func (m *SeriesRequest) MarshalTo(dAtA []byte) (int, error) {
  5748  	size := m.Size()
  5749  	return m.MarshalToSizedBuffer(dAtA[:size])
  5750  }
  5751  
  5752  func (m *SeriesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5753  	i := len(dAtA)
  5754  	_ = i
  5755  	var l int
  5756  	_ = l
  5757  	if len(m.Shards) > 0 {
  5758  		for iNdEx := len(m.Shards) - 1; iNdEx >= 0; iNdEx-- {
  5759  			i -= len(m.Shards[iNdEx])
  5760  			copy(dAtA[i:], m.Shards[iNdEx])
  5761  			i = encodeVarintLogproto(dAtA, i, uint64(len(m.Shards[iNdEx])))
  5762  			i--
  5763  			dAtA[i] = 0x22
  5764  		}
  5765  	}
  5766  	if len(m.Groups) > 0 {
  5767  		for iNdEx := len(m.Groups) - 1; iNdEx >= 0; iNdEx-- {
  5768  			i -= len(m.Groups[iNdEx])
  5769  			copy(dAtA[i:], m.Groups[iNdEx])
  5770  			i = encodeVarintLogproto(dAtA, i, uint64(len(m.Groups[iNdEx])))
  5771  			i--
  5772  			dAtA[i] = 0x1a
  5773  		}
  5774  	}
  5775  	n12, err12 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.End, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.End):])
  5776  	if err12 != nil {
  5777  		return 0, err12
  5778  	}
  5779  	i -= n12
  5780  	i = encodeVarintLogproto(dAtA, i, uint64(n12))
  5781  	i--
  5782  	dAtA[i] = 0x12
  5783  	n13, err13 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Start, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.Start):])
  5784  	if err13 != nil {
  5785  		return 0, err13
  5786  	}
  5787  	i -= n13
  5788  	i = encodeVarintLogproto(dAtA, i, uint64(n13))
  5789  	i--
  5790  	dAtA[i] = 0xa
  5791  	return len(dAtA) - i, nil
  5792  }
  5793  
  5794  func (m *SeriesResponse) Marshal() (dAtA []byte, err error) {
  5795  	size := m.Size()
  5796  	dAtA = make([]byte, size)
  5797  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  5798  	if err != nil {
  5799  		return nil, err
  5800  	}
  5801  	return dAtA[:n], nil
  5802  }
  5803  
  5804  func (m *SeriesResponse) MarshalTo(dAtA []byte) (int, error) {
  5805  	size := m.Size()
  5806  	return m.MarshalToSizedBuffer(dAtA[:size])
  5807  }
  5808  
  5809  func (m *SeriesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5810  	i := len(dAtA)
  5811  	_ = i
  5812  	var l int
  5813  	_ = l
  5814  	if len(m.Series) > 0 {
  5815  		for iNdEx := len(m.Series) - 1; iNdEx >= 0; iNdEx-- {
  5816  			{
  5817  				size, err := m.Series[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  5818  				if err != nil {
  5819  					return 0, err
  5820  				}
  5821  				i -= size
  5822  				i = encodeVarintLogproto(dAtA, i, uint64(size))
  5823  			}
  5824  			i--
  5825  			dAtA[i] = 0xa
  5826  		}
  5827  	}
  5828  	return len(dAtA) - i, nil
  5829  }
  5830  
  5831  func (m *SeriesIdentifier) Marshal() (dAtA []byte, err error) {
  5832  	size := m.Size()
  5833  	dAtA = make([]byte, size)
  5834  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  5835  	if err != nil {
  5836  		return nil, err
  5837  	}
  5838  	return dAtA[:n], nil
  5839  }
  5840  
  5841  func (m *SeriesIdentifier) MarshalTo(dAtA []byte) (int, error) {
  5842  	size := m.Size()
  5843  	return m.MarshalToSizedBuffer(dAtA[:size])
  5844  }
  5845  
  5846  func (m *SeriesIdentifier) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5847  	i := len(dAtA)
  5848  	_ = i
  5849  	var l int
  5850  	_ = l
  5851  	if len(m.Labels) > 0 {
  5852  		for k := range m.Labels {
  5853  			v := m.Labels[k]
  5854  			baseI := i
  5855  			i -= len(v)
  5856  			copy(dAtA[i:], v)
  5857  			i = encodeVarintLogproto(dAtA, i, uint64(len(v)))
  5858  			i--
  5859  			dAtA[i] = 0x12
  5860  			i -= len(k)
  5861  			copy(dAtA[i:], k)
  5862  			i = encodeVarintLogproto(dAtA, i, uint64(len(k)))
  5863  			i--
  5864  			dAtA[i] = 0xa
  5865  			i = encodeVarintLogproto(dAtA, i, uint64(baseI-i))
  5866  			i--
  5867  			dAtA[i] = 0xa
  5868  		}
  5869  	}
  5870  	return len(dAtA) - i, nil
  5871  }
  5872  
  5873  func (m *DroppedStream) Marshal() (dAtA []byte, err error) {
  5874  	size := m.Size()
  5875  	dAtA = make([]byte, size)
  5876  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  5877  	if err != nil {
  5878  		return nil, err
  5879  	}
  5880  	return dAtA[:n], nil
  5881  }
  5882  
  5883  func (m *DroppedStream) MarshalTo(dAtA []byte) (int, error) {
  5884  	size := m.Size()
  5885  	return m.MarshalToSizedBuffer(dAtA[:size])
  5886  }
  5887  
  5888  func (m *DroppedStream) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5889  	i := len(dAtA)
  5890  	_ = i
  5891  	var l int
  5892  	_ = l
  5893  	if len(m.Labels) > 0 {
  5894  		i -= len(m.Labels)
  5895  		copy(dAtA[i:], m.Labels)
  5896  		i = encodeVarintLogproto(dAtA, i, uint64(len(m.Labels)))
  5897  		i--
  5898  		dAtA[i] = 0x1a
  5899  	}
  5900  	n14, err14 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.To, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.To):])
  5901  	if err14 != nil {
  5902  		return 0, err14
  5903  	}
  5904  	i -= n14
  5905  	i = encodeVarintLogproto(dAtA, i, uint64(n14))
  5906  	i--
  5907  	dAtA[i] = 0x12
  5908  	n15, err15 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.From, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.From):])
  5909  	if err15 != nil {
  5910  		return 0, err15
  5911  	}
  5912  	i -= n15
  5913  	i = encodeVarintLogproto(dAtA, i, uint64(n15))
  5914  	i--
  5915  	dAtA[i] = 0xa
  5916  	return len(dAtA) - i, nil
  5917  }
  5918  
  5919  func (m *TimeSeriesChunk) Marshal() (dAtA []byte, err error) {
  5920  	size := m.Size()
  5921  	dAtA = make([]byte, size)
  5922  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  5923  	if err != nil {
  5924  		return nil, err
  5925  	}
  5926  	return dAtA[:n], nil
  5927  }
  5928  
  5929  func (m *TimeSeriesChunk) MarshalTo(dAtA []byte) (int, error) {
  5930  	size := m.Size()
  5931  	return m.MarshalToSizedBuffer(dAtA[:size])
  5932  }
  5933  
  5934  func (m *TimeSeriesChunk) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  5935  	i := len(dAtA)
  5936  	_ = i
  5937  	var l int
  5938  	_ = l
  5939  	if len(m.Chunks) > 0 {
  5940  		for iNdEx := len(m.Chunks) - 1; iNdEx >= 0; iNdEx-- {
  5941  			{
  5942  				size, err := m.Chunks[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  5943  				if err != nil {
  5944  					return 0, err
  5945  				}
  5946  				i -= size
  5947  				i = encodeVarintLogproto(dAtA, i, uint64(size))
  5948  			}
  5949  			i--
  5950  			dAtA[i] = 0x22
  5951  		}
  5952  	}
  5953  	if len(m.Labels) > 0 {
  5954  		for iNdEx := len(m.Labels) - 1; iNdEx >= 0; iNdEx-- {
  5955  			{
  5956  				size, err := m.Labels[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  5957  				if err != nil {
  5958  					return 0, err
  5959  				}
  5960  				i -= size
  5961  				i = encodeVarintLogproto(dAtA, i, uint64(size))
  5962  			}
  5963  			i--
  5964  			dAtA[i] = 0x1a
  5965  		}
  5966  	}
  5967  	if len(m.UserId) > 0 {
  5968  		i -= len(m.UserId)
  5969  		copy(dAtA[i:], m.UserId)
  5970  		i = encodeVarintLogproto(dAtA, i, uint64(len(m.UserId)))
  5971  		i--
  5972  		dAtA[i] = 0x12
  5973  	}
  5974  	if len(m.FromIngesterId) > 0 {
  5975  		i -= len(m.FromIngesterId)
  5976  		copy(dAtA[i:], m.FromIngesterId)
  5977  		i = encodeVarintLogproto(dAtA, i, uint64(len(m.FromIngesterId)))
  5978  		i--
  5979  		dAtA[i] = 0xa
  5980  	}
  5981  	return len(dAtA) - i, nil
  5982  }
  5983  
  5984  func (m *LabelPair) Marshal() (dAtA []byte, err error) {
  5985  	size := m.Size()
  5986  	dAtA = make([]byte, size)
  5987  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  5988  	if err != nil {
  5989  		return nil, err
  5990  	}
  5991  	return dAtA[:n], nil
  5992  }
  5993  
  5994  func (m *LabelPair) MarshalTo(dAtA []byte) (int, error) {
  5995  	size := m.Size()
  5996  	return m.MarshalToSizedBuffer(dAtA[:size])
  5997  }
  5998  
  5999  func (m *LabelPair) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6000  	i := len(dAtA)
  6001  	_ = i
  6002  	var l int
  6003  	_ = l
  6004  	if len(m.Value) > 0 {
  6005  		i -= len(m.Value)
  6006  		copy(dAtA[i:], m.Value)
  6007  		i = encodeVarintLogproto(dAtA, i, uint64(len(m.Value)))
  6008  		i--
  6009  		dAtA[i] = 0x12
  6010  	}
  6011  	if len(m.Name) > 0 {
  6012  		i -= len(m.Name)
  6013  		copy(dAtA[i:], m.Name)
  6014  		i = encodeVarintLogproto(dAtA, i, uint64(len(m.Name)))
  6015  		i--
  6016  		dAtA[i] = 0xa
  6017  	}
  6018  	return len(dAtA) - i, nil
  6019  }
  6020  
  6021  func (m *LegacyLabelPair) Marshal() (dAtA []byte, err error) {
  6022  	size := m.Size()
  6023  	dAtA = make([]byte, size)
  6024  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6025  	if err != nil {
  6026  		return nil, err
  6027  	}
  6028  	return dAtA[:n], nil
  6029  }
  6030  
  6031  func (m *LegacyLabelPair) MarshalTo(dAtA []byte) (int, error) {
  6032  	size := m.Size()
  6033  	return m.MarshalToSizedBuffer(dAtA[:size])
  6034  }
  6035  
  6036  func (m *LegacyLabelPair) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6037  	i := len(dAtA)
  6038  	_ = i
  6039  	var l int
  6040  	_ = l
  6041  	if len(m.Value) > 0 {
  6042  		i -= len(m.Value)
  6043  		copy(dAtA[i:], m.Value)
  6044  		i = encodeVarintLogproto(dAtA, i, uint64(len(m.Value)))
  6045  		i--
  6046  		dAtA[i] = 0x12
  6047  	}
  6048  	if len(m.Name) > 0 {
  6049  		i -= len(m.Name)
  6050  		copy(dAtA[i:], m.Name)
  6051  		i = encodeVarintLogproto(dAtA, i, uint64(len(m.Name)))
  6052  		i--
  6053  		dAtA[i] = 0xa
  6054  	}
  6055  	return len(dAtA) - i, nil
  6056  }
  6057  
  6058  func (m *Chunk) Marshal() (dAtA []byte, err error) {
  6059  	size := m.Size()
  6060  	dAtA = make([]byte, size)
  6061  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6062  	if err != nil {
  6063  		return nil, err
  6064  	}
  6065  	return dAtA[:n], nil
  6066  }
  6067  
  6068  func (m *Chunk) MarshalTo(dAtA []byte) (int, error) {
  6069  	size := m.Size()
  6070  	return m.MarshalToSizedBuffer(dAtA[:size])
  6071  }
  6072  
  6073  func (m *Chunk) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6074  	i := len(dAtA)
  6075  	_ = i
  6076  	var l int
  6077  	_ = l
  6078  	if len(m.Data) > 0 {
  6079  		i -= len(m.Data)
  6080  		copy(dAtA[i:], m.Data)
  6081  		i = encodeVarintLogproto(dAtA, i, uint64(len(m.Data)))
  6082  		i--
  6083  		dAtA[i] = 0xa
  6084  	}
  6085  	return len(dAtA) - i, nil
  6086  }
  6087  
  6088  func (m *TransferChunksResponse) Marshal() (dAtA []byte, err error) {
  6089  	size := m.Size()
  6090  	dAtA = make([]byte, size)
  6091  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6092  	if err != nil {
  6093  		return nil, err
  6094  	}
  6095  	return dAtA[:n], nil
  6096  }
  6097  
  6098  func (m *TransferChunksResponse) MarshalTo(dAtA []byte) (int, error) {
  6099  	size := m.Size()
  6100  	return m.MarshalToSizedBuffer(dAtA[:size])
  6101  }
  6102  
  6103  func (m *TransferChunksResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6104  	i := len(dAtA)
  6105  	_ = i
  6106  	var l int
  6107  	_ = l
  6108  	return len(dAtA) - i, nil
  6109  }
  6110  
  6111  func (m *TailersCountRequest) Marshal() (dAtA []byte, err error) {
  6112  	size := m.Size()
  6113  	dAtA = make([]byte, size)
  6114  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6115  	if err != nil {
  6116  		return nil, err
  6117  	}
  6118  	return dAtA[:n], nil
  6119  }
  6120  
  6121  func (m *TailersCountRequest) MarshalTo(dAtA []byte) (int, error) {
  6122  	size := m.Size()
  6123  	return m.MarshalToSizedBuffer(dAtA[:size])
  6124  }
  6125  
  6126  func (m *TailersCountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6127  	i := len(dAtA)
  6128  	_ = i
  6129  	var l int
  6130  	_ = l
  6131  	return len(dAtA) - i, nil
  6132  }
  6133  
  6134  func (m *TailersCountResponse) Marshal() (dAtA []byte, err error) {
  6135  	size := m.Size()
  6136  	dAtA = make([]byte, size)
  6137  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6138  	if err != nil {
  6139  		return nil, err
  6140  	}
  6141  	return dAtA[:n], nil
  6142  }
  6143  
  6144  func (m *TailersCountResponse) MarshalTo(dAtA []byte) (int, error) {
  6145  	size := m.Size()
  6146  	return m.MarshalToSizedBuffer(dAtA[:size])
  6147  }
  6148  
  6149  func (m *TailersCountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6150  	i := len(dAtA)
  6151  	_ = i
  6152  	var l int
  6153  	_ = l
  6154  	if m.Count != 0 {
  6155  		i = encodeVarintLogproto(dAtA, i, uint64(m.Count))
  6156  		i--
  6157  		dAtA[i] = 0x8
  6158  	}
  6159  	return len(dAtA) - i, nil
  6160  }
  6161  
  6162  func (m *GetChunkIDsRequest) Marshal() (dAtA []byte, err error) {
  6163  	size := m.Size()
  6164  	dAtA = make([]byte, size)
  6165  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6166  	if err != nil {
  6167  		return nil, err
  6168  	}
  6169  	return dAtA[:n], nil
  6170  }
  6171  
  6172  func (m *GetChunkIDsRequest) MarshalTo(dAtA []byte) (int, error) {
  6173  	size := m.Size()
  6174  	return m.MarshalToSizedBuffer(dAtA[:size])
  6175  }
  6176  
  6177  func (m *GetChunkIDsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6178  	i := len(dAtA)
  6179  	_ = i
  6180  	var l int
  6181  	_ = l
  6182  	n16, err16 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.End, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.End):])
  6183  	if err16 != nil {
  6184  		return 0, err16
  6185  	}
  6186  	i -= n16
  6187  	i = encodeVarintLogproto(dAtA, i, uint64(n16))
  6188  	i--
  6189  	dAtA[i] = 0x1a
  6190  	n17, err17 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.Start, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.Start):])
  6191  	if err17 != nil {
  6192  		return 0, err17
  6193  	}
  6194  	i -= n17
  6195  	i = encodeVarintLogproto(dAtA, i, uint64(n17))
  6196  	i--
  6197  	dAtA[i] = 0x12
  6198  	if len(m.Matchers) > 0 {
  6199  		i -= len(m.Matchers)
  6200  		copy(dAtA[i:], m.Matchers)
  6201  		i = encodeVarintLogproto(dAtA, i, uint64(len(m.Matchers)))
  6202  		i--
  6203  		dAtA[i] = 0xa
  6204  	}
  6205  	return len(dAtA) - i, nil
  6206  }
  6207  
  6208  func (m *GetChunkIDsResponse) Marshal() (dAtA []byte, err error) {
  6209  	size := m.Size()
  6210  	dAtA = make([]byte, size)
  6211  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6212  	if err != nil {
  6213  		return nil, err
  6214  	}
  6215  	return dAtA[:n], nil
  6216  }
  6217  
  6218  func (m *GetChunkIDsResponse) MarshalTo(dAtA []byte) (int, error) {
  6219  	size := m.Size()
  6220  	return m.MarshalToSizedBuffer(dAtA[:size])
  6221  }
  6222  
  6223  func (m *GetChunkIDsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6224  	i := len(dAtA)
  6225  	_ = i
  6226  	var l int
  6227  	_ = l
  6228  	if len(m.ChunkIDs) > 0 {
  6229  		for iNdEx := len(m.ChunkIDs) - 1; iNdEx >= 0; iNdEx-- {
  6230  			i -= len(m.ChunkIDs[iNdEx])
  6231  			copy(dAtA[i:], m.ChunkIDs[iNdEx])
  6232  			i = encodeVarintLogproto(dAtA, i, uint64(len(m.ChunkIDs[iNdEx])))
  6233  			i--
  6234  			dAtA[i] = 0xa
  6235  		}
  6236  	}
  6237  	return len(dAtA) - i, nil
  6238  }
  6239  
  6240  func (m *ChunkRef) Marshal() (dAtA []byte, err error) {
  6241  	size := m.Size()
  6242  	dAtA = make([]byte, size)
  6243  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6244  	if err != nil {
  6245  		return nil, err
  6246  	}
  6247  	return dAtA[:n], nil
  6248  }
  6249  
  6250  func (m *ChunkRef) MarshalTo(dAtA []byte) (int, error) {
  6251  	size := m.Size()
  6252  	return m.MarshalToSizedBuffer(dAtA[:size])
  6253  }
  6254  
  6255  func (m *ChunkRef) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6256  	i := len(dAtA)
  6257  	_ = i
  6258  	var l int
  6259  	_ = l
  6260  	if m.Checksum != 0 {
  6261  		i = encodeVarintLogproto(dAtA, i, uint64(m.Checksum))
  6262  		i--
  6263  		dAtA[i] = 0x28
  6264  	}
  6265  	if m.Through != 0 {
  6266  		i = encodeVarintLogproto(dAtA, i, uint64(m.Through))
  6267  		i--
  6268  		dAtA[i] = 0x20
  6269  	}
  6270  	if m.From != 0 {
  6271  		i = encodeVarintLogproto(dAtA, i, uint64(m.From))
  6272  		i--
  6273  		dAtA[i] = 0x18
  6274  	}
  6275  	if len(m.UserID) > 0 {
  6276  		i -= len(m.UserID)
  6277  		copy(dAtA[i:], m.UserID)
  6278  		i = encodeVarintLogproto(dAtA, i, uint64(len(m.UserID)))
  6279  		i--
  6280  		dAtA[i] = 0x12
  6281  	}
  6282  	if m.Fingerprint != 0 {
  6283  		i = encodeVarintLogproto(dAtA, i, uint64(m.Fingerprint))
  6284  		i--
  6285  		dAtA[i] = 0x8
  6286  	}
  6287  	return len(dAtA) - i, nil
  6288  }
  6289  
  6290  func (m *LabelValuesForMetricNameRequest) Marshal() (dAtA []byte, err error) {
  6291  	size := m.Size()
  6292  	dAtA = make([]byte, size)
  6293  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6294  	if err != nil {
  6295  		return nil, err
  6296  	}
  6297  	return dAtA[:n], nil
  6298  }
  6299  
  6300  func (m *LabelValuesForMetricNameRequest) MarshalTo(dAtA []byte) (int, error) {
  6301  	size := m.Size()
  6302  	return m.MarshalToSizedBuffer(dAtA[:size])
  6303  }
  6304  
  6305  func (m *LabelValuesForMetricNameRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6306  	i := len(dAtA)
  6307  	_ = i
  6308  	var l int
  6309  	_ = l
  6310  	if len(m.Matchers) > 0 {
  6311  		i -= len(m.Matchers)
  6312  		copy(dAtA[i:], m.Matchers)
  6313  		i = encodeVarintLogproto(dAtA, i, uint64(len(m.Matchers)))
  6314  		i--
  6315  		dAtA[i] = 0x2a
  6316  	}
  6317  	if m.Through != 0 {
  6318  		i = encodeVarintLogproto(dAtA, i, uint64(m.Through))
  6319  		i--
  6320  		dAtA[i] = 0x20
  6321  	}
  6322  	if m.From != 0 {
  6323  		i = encodeVarintLogproto(dAtA, i, uint64(m.From))
  6324  		i--
  6325  		dAtA[i] = 0x18
  6326  	}
  6327  	if len(m.LabelName) > 0 {
  6328  		i -= len(m.LabelName)
  6329  		copy(dAtA[i:], m.LabelName)
  6330  		i = encodeVarintLogproto(dAtA, i, uint64(len(m.LabelName)))
  6331  		i--
  6332  		dAtA[i] = 0x12
  6333  	}
  6334  	if len(m.MetricName) > 0 {
  6335  		i -= len(m.MetricName)
  6336  		copy(dAtA[i:], m.MetricName)
  6337  		i = encodeVarintLogproto(dAtA, i, uint64(len(m.MetricName)))
  6338  		i--
  6339  		dAtA[i] = 0xa
  6340  	}
  6341  	return len(dAtA) - i, nil
  6342  }
  6343  
  6344  func (m *LabelNamesForMetricNameRequest) Marshal() (dAtA []byte, err error) {
  6345  	size := m.Size()
  6346  	dAtA = make([]byte, size)
  6347  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6348  	if err != nil {
  6349  		return nil, err
  6350  	}
  6351  	return dAtA[:n], nil
  6352  }
  6353  
  6354  func (m *LabelNamesForMetricNameRequest) MarshalTo(dAtA []byte) (int, error) {
  6355  	size := m.Size()
  6356  	return m.MarshalToSizedBuffer(dAtA[:size])
  6357  }
  6358  
  6359  func (m *LabelNamesForMetricNameRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6360  	i := len(dAtA)
  6361  	_ = i
  6362  	var l int
  6363  	_ = l
  6364  	if m.Through != 0 {
  6365  		i = encodeVarintLogproto(dAtA, i, uint64(m.Through))
  6366  		i--
  6367  		dAtA[i] = 0x18
  6368  	}
  6369  	if m.From != 0 {
  6370  		i = encodeVarintLogproto(dAtA, i, uint64(m.From))
  6371  		i--
  6372  		dAtA[i] = 0x10
  6373  	}
  6374  	if len(m.MetricName) > 0 {
  6375  		i -= len(m.MetricName)
  6376  		copy(dAtA[i:], m.MetricName)
  6377  		i = encodeVarintLogproto(dAtA, i, uint64(len(m.MetricName)))
  6378  		i--
  6379  		dAtA[i] = 0xa
  6380  	}
  6381  	return len(dAtA) - i, nil
  6382  }
  6383  
  6384  func (m *GetChunkRefRequest) Marshal() (dAtA []byte, err error) {
  6385  	size := m.Size()
  6386  	dAtA = make([]byte, size)
  6387  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6388  	if err != nil {
  6389  		return nil, err
  6390  	}
  6391  	return dAtA[:n], nil
  6392  }
  6393  
  6394  func (m *GetChunkRefRequest) MarshalTo(dAtA []byte) (int, error) {
  6395  	size := m.Size()
  6396  	return m.MarshalToSizedBuffer(dAtA[:size])
  6397  }
  6398  
  6399  func (m *GetChunkRefRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6400  	i := len(dAtA)
  6401  	_ = i
  6402  	var l int
  6403  	_ = l
  6404  	if len(m.Matchers) > 0 {
  6405  		i -= len(m.Matchers)
  6406  		copy(dAtA[i:], m.Matchers)
  6407  		i = encodeVarintLogproto(dAtA, i, uint64(len(m.Matchers)))
  6408  		i--
  6409  		dAtA[i] = 0x1a
  6410  	}
  6411  	if m.Through != 0 {
  6412  		i = encodeVarintLogproto(dAtA, i, uint64(m.Through))
  6413  		i--
  6414  		dAtA[i] = 0x10
  6415  	}
  6416  	if m.From != 0 {
  6417  		i = encodeVarintLogproto(dAtA, i, uint64(m.From))
  6418  		i--
  6419  		dAtA[i] = 0x8
  6420  	}
  6421  	return len(dAtA) - i, nil
  6422  }
  6423  
  6424  func (m *GetChunkRefResponse) Marshal() (dAtA []byte, err error) {
  6425  	size := m.Size()
  6426  	dAtA = make([]byte, size)
  6427  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6428  	if err != nil {
  6429  		return nil, err
  6430  	}
  6431  	return dAtA[:n], nil
  6432  }
  6433  
  6434  func (m *GetChunkRefResponse) MarshalTo(dAtA []byte) (int, error) {
  6435  	size := m.Size()
  6436  	return m.MarshalToSizedBuffer(dAtA[:size])
  6437  }
  6438  
  6439  func (m *GetChunkRefResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6440  	i := len(dAtA)
  6441  	_ = i
  6442  	var l int
  6443  	_ = l
  6444  	if len(m.Refs) > 0 {
  6445  		for iNdEx := len(m.Refs) - 1; iNdEx >= 0; iNdEx-- {
  6446  			{
  6447  				size, err := m.Refs[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  6448  				if err != nil {
  6449  					return 0, err
  6450  				}
  6451  				i -= size
  6452  				i = encodeVarintLogproto(dAtA, i, uint64(size))
  6453  			}
  6454  			i--
  6455  			dAtA[i] = 0xa
  6456  		}
  6457  	}
  6458  	return len(dAtA) - i, nil
  6459  }
  6460  
  6461  func (m *GetSeriesRequest) Marshal() (dAtA []byte, err error) {
  6462  	size := m.Size()
  6463  	dAtA = make([]byte, size)
  6464  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6465  	if err != nil {
  6466  		return nil, err
  6467  	}
  6468  	return dAtA[:n], nil
  6469  }
  6470  
  6471  func (m *GetSeriesRequest) MarshalTo(dAtA []byte) (int, error) {
  6472  	size := m.Size()
  6473  	return m.MarshalToSizedBuffer(dAtA[:size])
  6474  }
  6475  
  6476  func (m *GetSeriesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6477  	i := len(dAtA)
  6478  	_ = i
  6479  	var l int
  6480  	_ = l
  6481  	if len(m.Matchers) > 0 {
  6482  		i -= len(m.Matchers)
  6483  		copy(dAtA[i:], m.Matchers)
  6484  		i = encodeVarintLogproto(dAtA, i, uint64(len(m.Matchers)))
  6485  		i--
  6486  		dAtA[i] = 0x1a
  6487  	}
  6488  	if m.Through != 0 {
  6489  		i = encodeVarintLogproto(dAtA, i, uint64(m.Through))
  6490  		i--
  6491  		dAtA[i] = 0x10
  6492  	}
  6493  	if m.From != 0 {
  6494  		i = encodeVarintLogproto(dAtA, i, uint64(m.From))
  6495  		i--
  6496  		dAtA[i] = 0x8
  6497  	}
  6498  	return len(dAtA) - i, nil
  6499  }
  6500  
  6501  func (m *GetSeriesResponse) Marshal() (dAtA []byte, err error) {
  6502  	size := m.Size()
  6503  	dAtA = make([]byte, size)
  6504  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6505  	if err != nil {
  6506  		return nil, err
  6507  	}
  6508  	return dAtA[:n], nil
  6509  }
  6510  
  6511  func (m *GetSeriesResponse) MarshalTo(dAtA []byte) (int, error) {
  6512  	size := m.Size()
  6513  	return m.MarshalToSizedBuffer(dAtA[:size])
  6514  }
  6515  
  6516  func (m *GetSeriesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6517  	i := len(dAtA)
  6518  	_ = i
  6519  	var l int
  6520  	_ = l
  6521  	if len(m.Series) > 0 {
  6522  		for iNdEx := len(m.Series) - 1; iNdEx >= 0; iNdEx-- {
  6523  			{
  6524  				size, err := m.Series[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  6525  				if err != nil {
  6526  					return 0, err
  6527  				}
  6528  				i -= size
  6529  				i = encodeVarintLogproto(dAtA, i, uint64(size))
  6530  			}
  6531  			i--
  6532  			dAtA[i] = 0xa
  6533  		}
  6534  	}
  6535  	return len(dAtA) - i, nil
  6536  }
  6537  
  6538  func (m *IndexSeries) Marshal() (dAtA []byte, err error) {
  6539  	size := m.Size()
  6540  	dAtA = make([]byte, size)
  6541  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6542  	if err != nil {
  6543  		return nil, err
  6544  	}
  6545  	return dAtA[:n], nil
  6546  }
  6547  
  6548  func (m *IndexSeries) MarshalTo(dAtA []byte) (int, error) {
  6549  	size := m.Size()
  6550  	return m.MarshalToSizedBuffer(dAtA[:size])
  6551  }
  6552  
  6553  func (m *IndexSeries) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6554  	i := len(dAtA)
  6555  	_ = i
  6556  	var l int
  6557  	_ = l
  6558  	if len(m.Labels) > 0 {
  6559  		for iNdEx := len(m.Labels) - 1; iNdEx >= 0; iNdEx-- {
  6560  			{
  6561  				size := m.Labels[iNdEx].Size()
  6562  				i -= size
  6563  				if _, err := m.Labels[iNdEx].MarshalTo(dAtA[i:]); err != nil {
  6564  					return 0, err
  6565  				}
  6566  				i = encodeVarintLogproto(dAtA, i, uint64(size))
  6567  			}
  6568  			i--
  6569  			dAtA[i] = 0xa
  6570  		}
  6571  	}
  6572  	return len(dAtA) - i, nil
  6573  }
  6574  
  6575  func (m *QueryIndexResponse) Marshal() (dAtA []byte, err error) {
  6576  	size := m.Size()
  6577  	dAtA = make([]byte, size)
  6578  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6579  	if err != nil {
  6580  		return nil, err
  6581  	}
  6582  	return dAtA[:n], nil
  6583  }
  6584  
  6585  func (m *QueryIndexResponse) MarshalTo(dAtA []byte) (int, error) {
  6586  	size := m.Size()
  6587  	return m.MarshalToSizedBuffer(dAtA[:size])
  6588  }
  6589  
  6590  func (m *QueryIndexResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6591  	i := len(dAtA)
  6592  	_ = i
  6593  	var l int
  6594  	_ = l
  6595  	if len(m.Rows) > 0 {
  6596  		for iNdEx := len(m.Rows) - 1; iNdEx >= 0; iNdEx-- {
  6597  			{
  6598  				size, err := m.Rows[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  6599  				if err != nil {
  6600  					return 0, err
  6601  				}
  6602  				i -= size
  6603  				i = encodeVarintLogproto(dAtA, i, uint64(size))
  6604  			}
  6605  			i--
  6606  			dAtA[i] = 0x12
  6607  		}
  6608  	}
  6609  	if len(m.QueryKey) > 0 {
  6610  		i -= len(m.QueryKey)
  6611  		copy(dAtA[i:], m.QueryKey)
  6612  		i = encodeVarintLogproto(dAtA, i, uint64(len(m.QueryKey)))
  6613  		i--
  6614  		dAtA[i] = 0xa
  6615  	}
  6616  	return len(dAtA) - i, nil
  6617  }
  6618  
  6619  func (m *Row) Marshal() (dAtA []byte, err error) {
  6620  	size := m.Size()
  6621  	dAtA = make([]byte, size)
  6622  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6623  	if err != nil {
  6624  		return nil, err
  6625  	}
  6626  	return dAtA[:n], nil
  6627  }
  6628  
  6629  func (m *Row) MarshalTo(dAtA []byte) (int, error) {
  6630  	size := m.Size()
  6631  	return m.MarshalToSizedBuffer(dAtA[:size])
  6632  }
  6633  
  6634  func (m *Row) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6635  	i := len(dAtA)
  6636  	_ = i
  6637  	var l int
  6638  	_ = l
  6639  	if len(m.Value) > 0 {
  6640  		i -= len(m.Value)
  6641  		copy(dAtA[i:], m.Value)
  6642  		i = encodeVarintLogproto(dAtA, i, uint64(len(m.Value)))
  6643  		i--
  6644  		dAtA[i] = 0x12
  6645  	}
  6646  	if len(m.RangeValue) > 0 {
  6647  		i -= len(m.RangeValue)
  6648  		copy(dAtA[i:], m.RangeValue)
  6649  		i = encodeVarintLogproto(dAtA, i, uint64(len(m.RangeValue)))
  6650  		i--
  6651  		dAtA[i] = 0xa
  6652  	}
  6653  	return len(dAtA) - i, nil
  6654  }
  6655  
  6656  func (m *QueryIndexRequest) Marshal() (dAtA []byte, err error) {
  6657  	size := m.Size()
  6658  	dAtA = make([]byte, size)
  6659  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6660  	if err != nil {
  6661  		return nil, err
  6662  	}
  6663  	return dAtA[:n], nil
  6664  }
  6665  
  6666  func (m *QueryIndexRequest) MarshalTo(dAtA []byte) (int, error) {
  6667  	size := m.Size()
  6668  	return m.MarshalToSizedBuffer(dAtA[:size])
  6669  }
  6670  
  6671  func (m *QueryIndexRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6672  	i := len(dAtA)
  6673  	_ = i
  6674  	var l int
  6675  	_ = l
  6676  	if len(m.Queries) > 0 {
  6677  		for iNdEx := len(m.Queries) - 1; iNdEx >= 0; iNdEx-- {
  6678  			{
  6679  				size, err := m.Queries[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  6680  				if err != nil {
  6681  					return 0, err
  6682  				}
  6683  				i -= size
  6684  				i = encodeVarintLogproto(dAtA, i, uint64(size))
  6685  			}
  6686  			i--
  6687  			dAtA[i] = 0xa
  6688  		}
  6689  	}
  6690  	return len(dAtA) - i, nil
  6691  }
  6692  
  6693  func (m *IndexQuery) Marshal() (dAtA []byte, err error) {
  6694  	size := m.Size()
  6695  	dAtA = make([]byte, size)
  6696  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6697  	if err != nil {
  6698  		return nil, err
  6699  	}
  6700  	return dAtA[:n], nil
  6701  }
  6702  
  6703  func (m *IndexQuery) MarshalTo(dAtA []byte) (int, error) {
  6704  	size := m.Size()
  6705  	return m.MarshalToSizedBuffer(dAtA[:size])
  6706  }
  6707  
  6708  func (m *IndexQuery) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6709  	i := len(dAtA)
  6710  	_ = i
  6711  	var l int
  6712  	_ = l
  6713  	if len(m.ValueEqual) > 0 {
  6714  		i -= len(m.ValueEqual)
  6715  		copy(dAtA[i:], m.ValueEqual)
  6716  		i = encodeVarintLogproto(dAtA, i, uint64(len(m.ValueEqual)))
  6717  		i--
  6718  		dAtA[i] = 0x2a
  6719  	}
  6720  	if len(m.RangeValueStart) > 0 {
  6721  		i -= len(m.RangeValueStart)
  6722  		copy(dAtA[i:], m.RangeValueStart)
  6723  		i = encodeVarintLogproto(dAtA, i, uint64(len(m.RangeValueStart)))
  6724  		i--
  6725  		dAtA[i] = 0x22
  6726  	}
  6727  	if len(m.RangeValuePrefix) > 0 {
  6728  		i -= len(m.RangeValuePrefix)
  6729  		copy(dAtA[i:], m.RangeValuePrefix)
  6730  		i = encodeVarintLogproto(dAtA, i, uint64(len(m.RangeValuePrefix)))
  6731  		i--
  6732  		dAtA[i] = 0x1a
  6733  	}
  6734  	if len(m.HashValue) > 0 {
  6735  		i -= len(m.HashValue)
  6736  		copy(dAtA[i:], m.HashValue)
  6737  		i = encodeVarintLogproto(dAtA, i, uint64(len(m.HashValue)))
  6738  		i--
  6739  		dAtA[i] = 0x12
  6740  	}
  6741  	if len(m.TableName) > 0 {
  6742  		i -= len(m.TableName)
  6743  		copy(dAtA[i:], m.TableName)
  6744  		i = encodeVarintLogproto(dAtA, i, uint64(len(m.TableName)))
  6745  		i--
  6746  		dAtA[i] = 0xa
  6747  	}
  6748  	return len(dAtA) - i, nil
  6749  }
  6750  
  6751  func (m *IndexStatsRequest) Marshal() (dAtA []byte, err error) {
  6752  	size := m.Size()
  6753  	dAtA = make([]byte, size)
  6754  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6755  	if err != nil {
  6756  		return nil, err
  6757  	}
  6758  	return dAtA[:n], nil
  6759  }
  6760  
  6761  func (m *IndexStatsRequest) MarshalTo(dAtA []byte) (int, error) {
  6762  	size := m.Size()
  6763  	return m.MarshalToSizedBuffer(dAtA[:size])
  6764  }
  6765  
  6766  func (m *IndexStatsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6767  	i := len(dAtA)
  6768  	_ = i
  6769  	var l int
  6770  	_ = l
  6771  	if len(m.Matchers) > 0 {
  6772  		i -= len(m.Matchers)
  6773  		copy(dAtA[i:], m.Matchers)
  6774  		i = encodeVarintLogproto(dAtA, i, uint64(len(m.Matchers)))
  6775  		i--
  6776  		dAtA[i] = 0x1a
  6777  	}
  6778  	if m.Through != 0 {
  6779  		i = encodeVarintLogproto(dAtA, i, uint64(m.Through))
  6780  		i--
  6781  		dAtA[i] = 0x10
  6782  	}
  6783  	if m.From != 0 {
  6784  		i = encodeVarintLogproto(dAtA, i, uint64(m.From))
  6785  		i--
  6786  		dAtA[i] = 0x8
  6787  	}
  6788  	return len(dAtA) - i, nil
  6789  }
  6790  
  6791  func (m *IndexStatsResponse) Marshal() (dAtA []byte, err error) {
  6792  	size := m.Size()
  6793  	dAtA = make([]byte, size)
  6794  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  6795  	if err != nil {
  6796  		return nil, err
  6797  	}
  6798  	return dAtA[:n], nil
  6799  }
  6800  
  6801  func (m *IndexStatsResponse) MarshalTo(dAtA []byte) (int, error) {
  6802  	size := m.Size()
  6803  	return m.MarshalToSizedBuffer(dAtA[:size])
  6804  }
  6805  
  6806  func (m *IndexStatsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  6807  	i := len(dAtA)
  6808  	_ = i
  6809  	var l int
  6810  	_ = l
  6811  	if m.Entries != 0 {
  6812  		i = encodeVarintLogproto(dAtA, i, uint64(m.Entries))
  6813  		i--
  6814  		dAtA[i] = 0x20
  6815  	}
  6816  	if m.Bytes != 0 {
  6817  		i = encodeVarintLogproto(dAtA, i, uint64(m.Bytes))
  6818  		i--
  6819  		dAtA[i] = 0x18
  6820  	}
  6821  	if m.Chunks != 0 {
  6822  		i = encodeVarintLogproto(dAtA, i, uint64(m.Chunks))
  6823  		i--
  6824  		dAtA[i] = 0x10
  6825  	}
  6826  	if m.Streams != 0 {
  6827  		i = encodeVarintLogproto(dAtA, i, uint64(m.Streams))
  6828  		i--
  6829  		dAtA[i] = 0x8
  6830  	}
  6831  	return len(dAtA) - i, nil
  6832  }
  6833  
  6834  func encodeVarintLogproto(dAtA []byte, offset int, v uint64) int {
  6835  	offset -= sovLogproto(v)
  6836  	base := offset
  6837  	for v >= 1<<7 {
  6838  		dAtA[offset] = uint8(v&0x7f | 0x80)
  6839  		v >>= 7
  6840  		offset++
  6841  	}
  6842  	dAtA[offset] = uint8(v)
  6843  	return base
  6844  }
  6845  func (m *PushRequest) Size() (n int) {
  6846  	if m == nil {
  6847  		return 0
  6848  	}
  6849  	var l int
  6850  	_ = l
  6851  	if len(m.Streams) > 0 {
  6852  		for _, e := range m.Streams {
  6853  			l = e.Size()
  6854  			n += 1 + l + sovLogproto(uint64(l))
  6855  		}
  6856  	}
  6857  	return n
  6858  }
  6859  
  6860  func (m *PushResponse) Size() (n int) {
  6861  	if m == nil {
  6862  		return 0
  6863  	}
  6864  	var l int
  6865  	_ = l
  6866  	return n
  6867  }
  6868  
  6869  func (m *QueryRequest) Size() (n int) {
  6870  	if m == nil {
  6871  		return 0
  6872  	}
  6873  	var l int
  6874  	_ = l
  6875  	l = len(m.Selector)
  6876  	if l > 0 {
  6877  		n += 1 + l + sovLogproto(uint64(l))
  6878  	}
  6879  	if m.Limit != 0 {
  6880  		n += 1 + sovLogproto(uint64(m.Limit))
  6881  	}
  6882  	l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Start)
  6883  	n += 1 + l + sovLogproto(uint64(l))
  6884  	l = github_com_gogo_protobuf_types.SizeOfStdTime(m.End)
  6885  	n += 1 + l + sovLogproto(uint64(l))
  6886  	if m.Direction != 0 {
  6887  		n += 1 + sovLogproto(uint64(m.Direction))
  6888  	}
  6889  	if len(m.Shards) > 0 {
  6890  		for _, s := range m.Shards {
  6891  			l = len(s)
  6892  			n += 1 + l + sovLogproto(uint64(l))
  6893  		}
  6894  	}
  6895  	if len(m.Deletes) > 0 {
  6896  		for _, e := range m.Deletes {
  6897  			l = e.Size()
  6898  			n += 1 + l + sovLogproto(uint64(l))
  6899  		}
  6900  	}
  6901  	return n
  6902  }
  6903  
  6904  func (m *SampleQueryRequest) Size() (n int) {
  6905  	if m == nil {
  6906  		return 0
  6907  	}
  6908  	var l int
  6909  	_ = l
  6910  	l = len(m.Selector)
  6911  	if l > 0 {
  6912  		n += 1 + l + sovLogproto(uint64(l))
  6913  	}
  6914  	l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Start)
  6915  	n += 1 + l + sovLogproto(uint64(l))
  6916  	l = github_com_gogo_protobuf_types.SizeOfStdTime(m.End)
  6917  	n += 1 + l + sovLogproto(uint64(l))
  6918  	if len(m.Shards) > 0 {
  6919  		for _, s := range m.Shards {
  6920  			l = len(s)
  6921  			n += 1 + l + sovLogproto(uint64(l))
  6922  		}
  6923  	}
  6924  	if len(m.Deletes) > 0 {
  6925  		for _, e := range m.Deletes {
  6926  			l = e.Size()
  6927  			n += 1 + l + sovLogproto(uint64(l))
  6928  		}
  6929  	}
  6930  	return n
  6931  }
  6932  
  6933  func (m *Delete) Size() (n int) {
  6934  	if m == nil {
  6935  		return 0
  6936  	}
  6937  	var l int
  6938  	_ = l
  6939  	l = len(m.Selector)
  6940  	if l > 0 {
  6941  		n += 1 + l + sovLogproto(uint64(l))
  6942  	}
  6943  	if m.Start != 0 {
  6944  		n += 1 + sovLogproto(uint64(m.Start))
  6945  	}
  6946  	if m.End != 0 {
  6947  		n += 1 + sovLogproto(uint64(m.End))
  6948  	}
  6949  	return n
  6950  }
  6951  
  6952  func (m *QueryResponse) Size() (n int) {
  6953  	if m == nil {
  6954  		return 0
  6955  	}
  6956  	var l int
  6957  	_ = l
  6958  	if len(m.Streams) > 0 {
  6959  		for _, e := range m.Streams {
  6960  			l = e.Size()
  6961  			n += 1 + l + sovLogproto(uint64(l))
  6962  		}
  6963  	}
  6964  	l = m.Stats.Size()
  6965  	n += 1 + l + sovLogproto(uint64(l))
  6966  	return n
  6967  }
  6968  
  6969  func (m *SampleQueryResponse) Size() (n int) {
  6970  	if m == nil {
  6971  		return 0
  6972  	}
  6973  	var l int
  6974  	_ = l
  6975  	if len(m.Series) > 0 {
  6976  		for _, e := range m.Series {
  6977  			l = e.Size()
  6978  			n += 1 + l + sovLogproto(uint64(l))
  6979  		}
  6980  	}
  6981  	l = m.Stats.Size()
  6982  	n += 1 + l + sovLogproto(uint64(l))
  6983  	return n
  6984  }
  6985  
  6986  func (m *LabelRequest) Size() (n int) {
  6987  	if m == nil {
  6988  		return 0
  6989  	}
  6990  	var l int
  6991  	_ = l
  6992  	l = len(m.Name)
  6993  	if l > 0 {
  6994  		n += 1 + l + sovLogproto(uint64(l))
  6995  	}
  6996  	if m.Values {
  6997  		n += 2
  6998  	}
  6999  	if m.Start != nil {
  7000  		l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.Start)
  7001  		n += 1 + l + sovLogproto(uint64(l))
  7002  	}
  7003  	if m.End != nil {
  7004  		l = github_com_gogo_protobuf_types.SizeOfStdTime(*m.End)
  7005  		n += 1 + l + sovLogproto(uint64(l))
  7006  	}
  7007  	return n
  7008  }
  7009  
  7010  func (m *LabelResponse) Size() (n int) {
  7011  	if m == nil {
  7012  		return 0
  7013  	}
  7014  	var l int
  7015  	_ = l
  7016  	if len(m.Values) > 0 {
  7017  		for _, s := range m.Values {
  7018  			l = len(s)
  7019  			n += 1 + l + sovLogproto(uint64(l))
  7020  		}
  7021  	}
  7022  	return n
  7023  }
  7024  
  7025  func (m *StreamAdapter) Size() (n int) {
  7026  	if m == nil {
  7027  		return 0
  7028  	}
  7029  	var l int
  7030  	_ = l
  7031  	l = len(m.Labels)
  7032  	if l > 0 {
  7033  		n += 1 + l + sovLogproto(uint64(l))
  7034  	}
  7035  	if len(m.Entries) > 0 {
  7036  		for _, e := range m.Entries {
  7037  			l = e.Size()
  7038  			n += 1 + l + sovLogproto(uint64(l))
  7039  		}
  7040  	}
  7041  	if m.Hash != 0 {
  7042  		n += 1 + sovLogproto(uint64(m.Hash))
  7043  	}
  7044  	return n
  7045  }
  7046  
  7047  func (m *EntryAdapter) Size() (n int) {
  7048  	if m == nil {
  7049  		return 0
  7050  	}
  7051  	var l int
  7052  	_ = l
  7053  	l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Timestamp)
  7054  	n += 1 + l + sovLogproto(uint64(l))
  7055  	l = len(m.Line)
  7056  	if l > 0 {
  7057  		n += 1 + l + sovLogproto(uint64(l))
  7058  	}
  7059  	return n
  7060  }
  7061  
  7062  func (m *Sample) Size() (n int) {
  7063  	if m == nil {
  7064  		return 0
  7065  	}
  7066  	var l int
  7067  	_ = l
  7068  	if m.Timestamp != 0 {
  7069  		n += 1 + sovLogproto(uint64(m.Timestamp))
  7070  	}
  7071  	if m.Value != 0 {
  7072  		n += 9
  7073  	}
  7074  	if m.Hash != 0 {
  7075  		n += 1 + sovLogproto(uint64(m.Hash))
  7076  	}
  7077  	return n
  7078  }
  7079  
  7080  func (m *LegacySample) Size() (n int) {
  7081  	if m == nil {
  7082  		return 0
  7083  	}
  7084  	var l int
  7085  	_ = l
  7086  	if m.Value != 0 {
  7087  		n += 9
  7088  	}
  7089  	if m.TimestampMs != 0 {
  7090  		n += 1 + sovLogproto(uint64(m.TimestampMs))
  7091  	}
  7092  	return n
  7093  }
  7094  
  7095  func (m *Series) Size() (n int) {
  7096  	if m == nil {
  7097  		return 0
  7098  	}
  7099  	var l int
  7100  	_ = l
  7101  	l = len(m.Labels)
  7102  	if l > 0 {
  7103  		n += 1 + l + sovLogproto(uint64(l))
  7104  	}
  7105  	if len(m.Samples) > 0 {
  7106  		for _, e := range m.Samples {
  7107  			l = e.Size()
  7108  			n += 1 + l + sovLogproto(uint64(l))
  7109  		}
  7110  	}
  7111  	if m.StreamHash != 0 {
  7112  		n += 1 + sovLogproto(uint64(m.StreamHash))
  7113  	}
  7114  	return n
  7115  }
  7116  
  7117  func (m *TailRequest) Size() (n int) {
  7118  	if m == nil {
  7119  		return 0
  7120  	}
  7121  	var l int
  7122  	_ = l
  7123  	l = len(m.Query)
  7124  	if l > 0 {
  7125  		n += 1 + l + sovLogproto(uint64(l))
  7126  	}
  7127  	if m.DelayFor != 0 {
  7128  		n += 1 + sovLogproto(uint64(m.DelayFor))
  7129  	}
  7130  	if m.Limit != 0 {
  7131  		n += 1 + sovLogproto(uint64(m.Limit))
  7132  	}
  7133  	l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Start)
  7134  	n += 1 + l + sovLogproto(uint64(l))
  7135  	return n
  7136  }
  7137  
  7138  func (m *TailResponse) Size() (n int) {
  7139  	if m == nil {
  7140  		return 0
  7141  	}
  7142  	var l int
  7143  	_ = l
  7144  	if m.Stream != nil {
  7145  		l = m.Stream.Size()
  7146  		n += 1 + l + sovLogproto(uint64(l))
  7147  	}
  7148  	if len(m.DroppedStreams) > 0 {
  7149  		for _, e := range m.DroppedStreams {
  7150  			l = e.Size()
  7151  			n += 1 + l + sovLogproto(uint64(l))
  7152  		}
  7153  	}
  7154  	return n
  7155  }
  7156  
  7157  func (m *SeriesRequest) Size() (n int) {
  7158  	if m == nil {
  7159  		return 0
  7160  	}
  7161  	var l int
  7162  	_ = l
  7163  	l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Start)
  7164  	n += 1 + l + sovLogproto(uint64(l))
  7165  	l = github_com_gogo_protobuf_types.SizeOfStdTime(m.End)
  7166  	n += 1 + l + sovLogproto(uint64(l))
  7167  	if len(m.Groups) > 0 {
  7168  		for _, s := range m.Groups {
  7169  			l = len(s)
  7170  			n += 1 + l + sovLogproto(uint64(l))
  7171  		}
  7172  	}
  7173  	if len(m.Shards) > 0 {
  7174  		for _, s := range m.Shards {
  7175  			l = len(s)
  7176  			n += 1 + l + sovLogproto(uint64(l))
  7177  		}
  7178  	}
  7179  	return n
  7180  }
  7181  
  7182  func (m *SeriesResponse) Size() (n int) {
  7183  	if m == nil {
  7184  		return 0
  7185  	}
  7186  	var l int
  7187  	_ = l
  7188  	if len(m.Series) > 0 {
  7189  		for _, e := range m.Series {
  7190  			l = e.Size()
  7191  			n += 1 + l + sovLogproto(uint64(l))
  7192  		}
  7193  	}
  7194  	return n
  7195  }
  7196  
  7197  func (m *SeriesIdentifier) Size() (n int) {
  7198  	if m == nil {
  7199  		return 0
  7200  	}
  7201  	var l int
  7202  	_ = l
  7203  	if len(m.Labels) > 0 {
  7204  		for k, v := range m.Labels {
  7205  			_ = k
  7206  			_ = v
  7207  			mapEntrySize := 1 + len(k) + sovLogproto(uint64(len(k))) + 1 + len(v) + sovLogproto(uint64(len(v)))
  7208  			n += mapEntrySize + 1 + sovLogproto(uint64(mapEntrySize))
  7209  		}
  7210  	}
  7211  	return n
  7212  }
  7213  
  7214  func (m *DroppedStream) Size() (n int) {
  7215  	if m == nil {
  7216  		return 0
  7217  	}
  7218  	var l int
  7219  	_ = l
  7220  	l = github_com_gogo_protobuf_types.SizeOfStdTime(m.From)
  7221  	n += 1 + l + sovLogproto(uint64(l))
  7222  	l = github_com_gogo_protobuf_types.SizeOfStdTime(m.To)
  7223  	n += 1 + l + sovLogproto(uint64(l))
  7224  	l = len(m.Labels)
  7225  	if l > 0 {
  7226  		n += 1 + l + sovLogproto(uint64(l))
  7227  	}
  7228  	return n
  7229  }
  7230  
  7231  func (m *TimeSeriesChunk) Size() (n int) {
  7232  	if m == nil {
  7233  		return 0
  7234  	}
  7235  	var l int
  7236  	_ = l
  7237  	l = len(m.FromIngesterId)
  7238  	if l > 0 {
  7239  		n += 1 + l + sovLogproto(uint64(l))
  7240  	}
  7241  	l = len(m.UserId)
  7242  	if l > 0 {
  7243  		n += 1 + l + sovLogproto(uint64(l))
  7244  	}
  7245  	if len(m.Labels) > 0 {
  7246  		for _, e := range m.Labels {
  7247  			l = e.Size()
  7248  			n += 1 + l + sovLogproto(uint64(l))
  7249  		}
  7250  	}
  7251  	if len(m.Chunks) > 0 {
  7252  		for _, e := range m.Chunks {
  7253  			l = e.Size()
  7254  			n += 1 + l + sovLogproto(uint64(l))
  7255  		}
  7256  	}
  7257  	return n
  7258  }
  7259  
  7260  func (m *LabelPair) Size() (n int) {
  7261  	if m == nil {
  7262  		return 0
  7263  	}
  7264  	var l int
  7265  	_ = l
  7266  	l = len(m.Name)
  7267  	if l > 0 {
  7268  		n += 1 + l + sovLogproto(uint64(l))
  7269  	}
  7270  	l = len(m.Value)
  7271  	if l > 0 {
  7272  		n += 1 + l + sovLogproto(uint64(l))
  7273  	}
  7274  	return n
  7275  }
  7276  
  7277  func (m *LegacyLabelPair) Size() (n int) {
  7278  	if m == nil {
  7279  		return 0
  7280  	}
  7281  	var l int
  7282  	_ = l
  7283  	l = len(m.Name)
  7284  	if l > 0 {
  7285  		n += 1 + l + sovLogproto(uint64(l))
  7286  	}
  7287  	l = len(m.Value)
  7288  	if l > 0 {
  7289  		n += 1 + l + sovLogproto(uint64(l))
  7290  	}
  7291  	return n
  7292  }
  7293  
  7294  func (m *Chunk) Size() (n int) {
  7295  	if m == nil {
  7296  		return 0
  7297  	}
  7298  	var l int
  7299  	_ = l
  7300  	l = len(m.Data)
  7301  	if l > 0 {
  7302  		n += 1 + l + sovLogproto(uint64(l))
  7303  	}
  7304  	return n
  7305  }
  7306  
  7307  func (m *TransferChunksResponse) Size() (n int) {
  7308  	if m == nil {
  7309  		return 0
  7310  	}
  7311  	var l int
  7312  	_ = l
  7313  	return n
  7314  }
  7315  
  7316  func (m *TailersCountRequest) Size() (n int) {
  7317  	if m == nil {
  7318  		return 0
  7319  	}
  7320  	var l int
  7321  	_ = l
  7322  	return n
  7323  }
  7324  
  7325  func (m *TailersCountResponse) Size() (n int) {
  7326  	if m == nil {
  7327  		return 0
  7328  	}
  7329  	var l int
  7330  	_ = l
  7331  	if m.Count != 0 {
  7332  		n += 1 + sovLogproto(uint64(m.Count))
  7333  	}
  7334  	return n
  7335  }
  7336  
  7337  func (m *GetChunkIDsRequest) Size() (n int) {
  7338  	if m == nil {
  7339  		return 0
  7340  	}
  7341  	var l int
  7342  	_ = l
  7343  	l = len(m.Matchers)
  7344  	if l > 0 {
  7345  		n += 1 + l + sovLogproto(uint64(l))
  7346  	}
  7347  	l = github_com_gogo_protobuf_types.SizeOfStdTime(m.Start)
  7348  	n += 1 + l + sovLogproto(uint64(l))
  7349  	l = github_com_gogo_protobuf_types.SizeOfStdTime(m.End)
  7350  	n += 1 + l + sovLogproto(uint64(l))
  7351  	return n
  7352  }
  7353  
  7354  func (m *GetChunkIDsResponse) Size() (n int) {
  7355  	if m == nil {
  7356  		return 0
  7357  	}
  7358  	var l int
  7359  	_ = l
  7360  	if len(m.ChunkIDs) > 0 {
  7361  		for _, s := range m.ChunkIDs {
  7362  			l = len(s)
  7363  			n += 1 + l + sovLogproto(uint64(l))
  7364  		}
  7365  	}
  7366  	return n
  7367  }
  7368  
  7369  func (m *ChunkRef) Size() (n int) {
  7370  	if m == nil {
  7371  		return 0
  7372  	}
  7373  	var l int
  7374  	_ = l
  7375  	if m.Fingerprint != 0 {
  7376  		n += 1 + sovLogproto(uint64(m.Fingerprint))
  7377  	}
  7378  	l = len(m.UserID)
  7379  	if l > 0 {
  7380  		n += 1 + l + sovLogproto(uint64(l))
  7381  	}
  7382  	if m.From != 0 {
  7383  		n += 1 + sovLogproto(uint64(m.From))
  7384  	}
  7385  	if m.Through != 0 {
  7386  		n += 1 + sovLogproto(uint64(m.Through))
  7387  	}
  7388  	if m.Checksum != 0 {
  7389  		n += 1 + sovLogproto(uint64(m.Checksum))
  7390  	}
  7391  	return n
  7392  }
  7393  
  7394  func (m *LabelValuesForMetricNameRequest) Size() (n int) {
  7395  	if m == nil {
  7396  		return 0
  7397  	}
  7398  	var l int
  7399  	_ = l
  7400  	l = len(m.MetricName)
  7401  	if l > 0 {
  7402  		n += 1 + l + sovLogproto(uint64(l))
  7403  	}
  7404  	l = len(m.LabelName)
  7405  	if l > 0 {
  7406  		n += 1 + l + sovLogproto(uint64(l))
  7407  	}
  7408  	if m.From != 0 {
  7409  		n += 1 + sovLogproto(uint64(m.From))
  7410  	}
  7411  	if m.Through != 0 {
  7412  		n += 1 + sovLogproto(uint64(m.Through))
  7413  	}
  7414  	l = len(m.Matchers)
  7415  	if l > 0 {
  7416  		n += 1 + l + sovLogproto(uint64(l))
  7417  	}
  7418  	return n
  7419  }
  7420  
  7421  func (m *LabelNamesForMetricNameRequest) Size() (n int) {
  7422  	if m == nil {
  7423  		return 0
  7424  	}
  7425  	var l int
  7426  	_ = l
  7427  	l = len(m.MetricName)
  7428  	if l > 0 {
  7429  		n += 1 + l + sovLogproto(uint64(l))
  7430  	}
  7431  	if m.From != 0 {
  7432  		n += 1 + sovLogproto(uint64(m.From))
  7433  	}
  7434  	if m.Through != 0 {
  7435  		n += 1 + sovLogproto(uint64(m.Through))
  7436  	}
  7437  	return n
  7438  }
  7439  
  7440  func (m *GetChunkRefRequest) Size() (n int) {
  7441  	if m == nil {
  7442  		return 0
  7443  	}
  7444  	var l int
  7445  	_ = l
  7446  	if m.From != 0 {
  7447  		n += 1 + sovLogproto(uint64(m.From))
  7448  	}
  7449  	if m.Through != 0 {
  7450  		n += 1 + sovLogproto(uint64(m.Through))
  7451  	}
  7452  	l = len(m.Matchers)
  7453  	if l > 0 {
  7454  		n += 1 + l + sovLogproto(uint64(l))
  7455  	}
  7456  	return n
  7457  }
  7458  
  7459  func (m *GetChunkRefResponse) Size() (n int) {
  7460  	if m == nil {
  7461  		return 0
  7462  	}
  7463  	var l int
  7464  	_ = l
  7465  	if len(m.Refs) > 0 {
  7466  		for _, e := range m.Refs {
  7467  			l = e.Size()
  7468  			n += 1 + l + sovLogproto(uint64(l))
  7469  		}
  7470  	}
  7471  	return n
  7472  }
  7473  
  7474  func (m *GetSeriesRequest) Size() (n int) {
  7475  	if m == nil {
  7476  		return 0
  7477  	}
  7478  	var l int
  7479  	_ = l
  7480  	if m.From != 0 {
  7481  		n += 1 + sovLogproto(uint64(m.From))
  7482  	}
  7483  	if m.Through != 0 {
  7484  		n += 1 + sovLogproto(uint64(m.Through))
  7485  	}
  7486  	l = len(m.Matchers)
  7487  	if l > 0 {
  7488  		n += 1 + l + sovLogproto(uint64(l))
  7489  	}
  7490  	return n
  7491  }
  7492  
  7493  func (m *GetSeriesResponse) Size() (n int) {
  7494  	if m == nil {
  7495  		return 0
  7496  	}
  7497  	var l int
  7498  	_ = l
  7499  	if len(m.Series) > 0 {
  7500  		for _, e := range m.Series {
  7501  			l = e.Size()
  7502  			n += 1 + l + sovLogproto(uint64(l))
  7503  		}
  7504  	}
  7505  	return n
  7506  }
  7507  
  7508  func (m *IndexSeries) Size() (n int) {
  7509  	if m == nil {
  7510  		return 0
  7511  	}
  7512  	var l int
  7513  	_ = l
  7514  	if len(m.Labels) > 0 {
  7515  		for _, e := range m.Labels {
  7516  			l = e.Size()
  7517  			n += 1 + l + sovLogproto(uint64(l))
  7518  		}
  7519  	}
  7520  	return n
  7521  }
  7522  
  7523  func (m *QueryIndexResponse) Size() (n int) {
  7524  	if m == nil {
  7525  		return 0
  7526  	}
  7527  	var l int
  7528  	_ = l
  7529  	l = len(m.QueryKey)
  7530  	if l > 0 {
  7531  		n += 1 + l + sovLogproto(uint64(l))
  7532  	}
  7533  	if len(m.Rows) > 0 {
  7534  		for _, e := range m.Rows {
  7535  			l = e.Size()
  7536  			n += 1 + l + sovLogproto(uint64(l))
  7537  		}
  7538  	}
  7539  	return n
  7540  }
  7541  
  7542  func (m *Row) Size() (n int) {
  7543  	if m == nil {
  7544  		return 0
  7545  	}
  7546  	var l int
  7547  	_ = l
  7548  	l = len(m.RangeValue)
  7549  	if l > 0 {
  7550  		n += 1 + l + sovLogproto(uint64(l))
  7551  	}
  7552  	l = len(m.Value)
  7553  	if l > 0 {
  7554  		n += 1 + l + sovLogproto(uint64(l))
  7555  	}
  7556  	return n
  7557  }
  7558  
  7559  func (m *QueryIndexRequest) Size() (n int) {
  7560  	if m == nil {
  7561  		return 0
  7562  	}
  7563  	var l int
  7564  	_ = l
  7565  	if len(m.Queries) > 0 {
  7566  		for _, e := range m.Queries {
  7567  			l = e.Size()
  7568  			n += 1 + l + sovLogproto(uint64(l))
  7569  		}
  7570  	}
  7571  	return n
  7572  }
  7573  
  7574  func (m *IndexQuery) Size() (n int) {
  7575  	if m == nil {
  7576  		return 0
  7577  	}
  7578  	var l int
  7579  	_ = l
  7580  	l = len(m.TableName)
  7581  	if l > 0 {
  7582  		n += 1 + l + sovLogproto(uint64(l))
  7583  	}
  7584  	l = len(m.HashValue)
  7585  	if l > 0 {
  7586  		n += 1 + l + sovLogproto(uint64(l))
  7587  	}
  7588  	l = len(m.RangeValuePrefix)
  7589  	if l > 0 {
  7590  		n += 1 + l + sovLogproto(uint64(l))
  7591  	}
  7592  	l = len(m.RangeValueStart)
  7593  	if l > 0 {
  7594  		n += 1 + l + sovLogproto(uint64(l))
  7595  	}
  7596  	l = len(m.ValueEqual)
  7597  	if l > 0 {
  7598  		n += 1 + l + sovLogproto(uint64(l))
  7599  	}
  7600  	return n
  7601  }
  7602  
  7603  func (m *IndexStatsRequest) Size() (n int) {
  7604  	if m == nil {
  7605  		return 0
  7606  	}
  7607  	var l int
  7608  	_ = l
  7609  	if m.From != 0 {
  7610  		n += 1 + sovLogproto(uint64(m.From))
  7611  	}
  7612  	if m.Through != 0 {
  7613  		n += 1 + sovLogproto(uint64(m.Through))
  7614  	}
  7615  	l = len(m.Matchers)
  7616  	if l > 0 {
  7617  		n += 1 + l + sovLogproto(uint64(l))
  7618  	}
  7619  	return n
  7620  }
  7621  
  7622  func (m *IndexStatsResponse) Size() (n int) {
  7623  	if m == nil {
  7624  		return 0
  7625  	}
  7626  	var l int
  7627  	_ = l
  7628  	if m.Streams != 0 {
  7629  		n += 1 + sovLogproto(uint64(m.Streams))
  7630  	}
  7631  	if m.Chunks != 0 {
  7632  		n += 1 + sovLogproto(uint64(m.Chunks))
  7633  	}
  7634  	if m.Bytes != 0 {
  7635  		n += 1 + sovLogproto(uint64(m.Bytes))
  7636  	}
  7637  	if m.Entries != 0 {
  7638  		n += 1 + sovLogproto(uint64(m.Entries))
  7639  	}
  7640  	return n
  7641  }
  7642  
  7643  func sovLogproto(x uint64) (n int) {
  7644  	return (math_bits.Len64(x|1) + 6) / 7
  7645  }
  7646  func sozLogproto(x uint64) (n int) {
  7647  	return sovLogproto(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  7648  }
  7649  func (this *PushRequest) String() string {
  7650  	if this == nil {
  7651  		return "nil"
  7652  	}
  7653  	s := strings.Join([]string{`&PushRequest{`,
  7654  		`Streams:` + fmt.Sprintf("%v", this.Streams) + `,`,
  7655  		`}`,
  7656  	}, "")
  7657  	return s
  7658  }
  7659  func (this *PushResponse) String() string {
  7660  	if this == nil {
  7661  		return "nil"
  7662  	}
  7663  	s := strings.Join([]string{`&PushResponse{`,
  7664  		`}`,
  7665  	}, "")
  7666  	return s
  7667  }
  7668  func (this *QueryRequest) String() string {
  7669  	if this == nil {
  7670  		return "nil"
  7671  	}
  7672  	repeatedStringForDeletes := "[]*Delete{"
  7673  	for _, f := range this.Deletes {
  7674  		repeatedStringForDeletes += strings.Replace(f.String(), "Delete", "Delete", 1) + ","
  7675  	}
  7676  	repeatedStringForDeletes += "}"
  7677  	s := strings.Join([]string{`&QueryRequest{`,
  7678  		`Selector:` + fmt.Sprintf("%v", this.Selector) + `,`,
  7679  		`Limit:` + fmt.Sprintf("%v", this.Limit) + `,`,
  7680  		`Start:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Start), "Timestamp", "types.Timestamp", 1), `&`, ``, 1) + `,`,
  7681  		`End:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.End), "Timestamp", "types.Timestamp", 1), `&`, ``, 1) + `,`,
  7682  		`Direction:` + fmt.Sprintf("%v", this.Direction) + `,`,
  7683  		`Shards:` + fmt.Sprintf("%v", this.Shards) + `,`,
  7684  		`Deletes:` + repeatedStringForDeletes + `,`,
  7685  		`}`,
  7686  	}, "")
  7687  	return s
  7688  }
  7689  func (this *SampleQueryRequest) String() string {
  7690  	if this == nil {
  7691  		return "nil"
  7692  	}
  7693  	repeatedStringForDeletes := "[]*Delete{"
  7694  	for _, f := range this.Deletes {
  7695  		repeatedStringForDeletes += strings.Replace(f.String(), "Delete", "Delete", 1) + ","
  7696  	}
  7697  	repeatedStringForDeletes += "}"
  7698  	s := strings.Join([]string{`&SampleQueryRequest{`,
  7699  		`Selector:` + fmt.Sprintf("%v", this.Selector) + `,`,
  7700  		`Start:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Start), "Timestamp", "types.Timestamp", 1), `&`, ``, 1) + `,`,
  7701  		`End:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.End), "Timestamp", "types.Timestamp", 1), `&`, ``, 1) + `,`,
  7702  		`Shards:` + fmt.Sprintf("%v", this.Shards) + `,`,
  7703  		`Deletes:` + repeatedStringForDeletes + `,`,
  7704  		`}`,
  7705  	}, "")
  7706  	return s
  7707  }
  7708  func (this *Delete) String() string {
  7709  	if this == nil {
  7710  		return "nil"
  7711  	}
  7712  	s := strings.Join([]string{`&Delete{`,
  7713  		`Selector:` + fmt.Sprintf("%v", this.Selector) + `,`,
  7714  		`Start:` + fmt.Sprintf("%v", this.Start) + `,`,
  7715  		`End:` + fmt.Sprintf("%v", this.End) + `,`,
  7716  		`}`,
  7717  	}, "")
  7718  	return s
  7719  }
  7720  func (this *QueryResponse) String() string {
  7721  	if this == nil {
  7722  		return "nil"
  7723  	}
  7724  	s := strings.Join([]string{`&QueryResponse{`,
  7725  		`Streams:` + fmt.Sprintf("%v", this.Streams) + `,`,
  7726  		`Stats:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Stats), "Ingester", "stats.Ingester", 1), `&`, ``, 1) + `,`,
  7727  		`}`,
  7728  	}, "")
  7729  	return s
  7730  }
  7731  func (this *SampleQueryResponse) String() string {
  7732  	if this == nil {
  7733  		return "nil"
  7734  	}
  7735  	s := strings.Join([]string{`&SampleQueryResponse{`,
  7736  		`Series:` + fmt.Sprintf("%v", this.Series) + `,`,
  7737  		`Stats:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Stats), "Ingester", "stats.Ingester", 1), `&`, ``, 1) + `,`,
  7738  		`}`,
  7739  	}, "")
  7740  	return s
  7741  }
  7742  func (this *LabelRequest) String() string {
  7743  	if this == nil {
  7744  		return "nil"
  7745  	}
  7746  	s := strings.Join([]string{`&LabelRequest{`,
  7747  		`Name:` + fmt.Sprintf("%v", this.Name) + `,`,
  7748  		`Values:` + fmt.Sprintf("%v", this.Values) + `,`,
  7749  		`Start:` + strings.Replace(fmt.Sprintf("%v", this.Start), "Timestamp", "types.Timestamp", 1) + `,`,
  7750  		`End:` + strings.Replace(fmt.Sprintf("%v", this.End), "Timestamp", "types.Timestamp", 1) + `,`,
  7751  		`}`,
  7752  	}, "")
  7753  	return s
  7754  }
  7755  func (this *LabelResponse) String() string {
  7756  	if this == nil {
  7757  		return "nil"
  7758  	}
  7759  	s := strings.Join([]string{`&LabelResponse{`,
  7760  		`Values:` + fmt.Sprintf("%v", this.Values) + `,`,
  7761  		`}`,
  7762  	}, "")
  7763  	return s
  7764  }
  7765  func (this *StreamAdapter) String() string {
  7766  	if this == nil {
  7767  		return "nil"
  7768  	}
  7769  	repeatedStringForEntries := "[]EntryAdapter{"
  7770  	for _, f := range this.Entries {
  7771  		repeatedStringForEntries += strings.Replace(strings.Replace(f.String(), "EntryAdapter", "EntryAdapter", 1), `&`, ``, 1) + ","
  7772  	}
  7773  	repeatedStringForEntries += "}"
  7774  	s := strings.Join([]string{`&StreamAdapter{`,
  7775  		`Labels:` + fmt.Sprintf("%v", this.Labels) + `,`,
  7776  		`Entries:` + repeatedStringForEntries + `,`,
  7777  		`Hash:` + fmt.Sprintf("%v", this.Hash) + `,`,
  7778  		`}`,
  7779  	}, "")
  7780  	return s
  7781  }
  7782  func (this *EntryAdapter) String() string {
  7783  	if this == nil {
  7784  		return "nil"
  7785  	}
  7786  	s := strings.Join([]string{`&EntryAdapter{`,
  7787  		`Timestamp:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Timestamp), "Timestamp", "types.Timestamp", 1), `&`, ``, 1) + `,`,
  7788  		`Line:` + fmt.Sprintf("%v", this.Line) + `,`,
  7789  		`}`,
  7790  	}, "")
  7791  	return s
  7792  }
  7793  func (this *Sample) String() string {
  7794  	if this == nil {
  7795  		return "nil"
  7796  	}
  7797  	s := strings.Join([]string{`&Sample{`,
  7798  		`Timestamp:` + fmt.Sprintf("%v", this.Timestamp) + `,`,
  7799  		`Value:` + fmt.Sprintf("%v", this.Value) + `,`,
  7800  		`Hash:` + fmt.Sprintf("%v", this.Hash) + `,`,
  7801  		`}`,
  7802  	}, "")
  7803  	return s
  7804  }
  7805  func (this *LegacySample) String() string {
  7806  	if this == nil {
  7807  		return "nil"
  7808  	}
  7809  	s := strings.Join([]string{`&LegacySample{`,
  7810  		`Value:` + fmt.Sprintf("%v", this.Value) + `,`,
  7811  		`TimestampMs:` + fmt.Sprintf("%v", this.TimestampMs) + `,`,
  7812  		`}`,
  7813  	}, "")
  7814  	return s
  7815  }
  7816  func (this *Series) String() string {
  7817  	if this == nil {
  7818  		return "nil"
  7819  	}
  7820  	repeatedStringForSamples := "[]Sample{"
  7821  	for _, f := range this.Samples {
  7822  		repeatedStringForSamples += strings.Replace(strings.Replace(f.String(), "Sample", "Sample", 1), `&`, ``, 1) + ","
  7823  	}
  7824  	repeatedStringForSamples += "}"
  7825  	s := strings.Join([]string{`&Series{`,
  7826  		`Labels:` + fmt.Sprintf("%v", this.Labels) + `,`,
  7827  		`Samples:` + repeatedStringForSamples + `,`,
  7828  		`StreamHash:` + fmt.Sprintf("%v", this.StreamHash) + `,`,
  7829  		`}`,
  7830  	}, "")
  7831  	return s
  7832  }
  7833  func (this *TailRequest) String() string {
  7834  	if this == nil {
  7835  		return "nil"
  7836  	}
  7837  	s := strings.Join([]string{`&TailRequest{`,
  7838  		`Query:` + fmt.Sprintf("%v", this.Query) + `,`,
  7839  		`DelayFor:` + fmt.Sprintf("%v", this.DelayFor) + `,`,
  7840  		`Limit:` + fmt.Sprintf("%v", this.Limit) + `,`,
  7841  		`Start:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Start), "Timestamp", "types.Timestamp", 1), `&`, ``, 1) + `,`,
  7842  		`}`,
  7843  	}, "")
  7844  	return s
  7845  }
  7846  func (this *TailResponse) String() string {
  7847  	if this == nil {
  7848  		return "nil"
  7849  	}
  7850  	repeatedStringForDroppedStreams := "[]*DroppedStream{"
  7851  	for _, f := range this.DroppedStreams {
  7852  		repeatedStringForDroppedStreams += strings.Replace(f.String(), "DroppedStream", "DroppedStream", 1) + ","
  7853  	}
  7854  	repeatedStringForDroppedStreams += "}"
  7855  	s := strings.Join([]string{`&TailResponse{`,
  7856  		`Stream:` + fmt.Sprintf("%v", this.Stream) + `,`,
  7857  		`DroppedStreams:` + repeatedStringForDroppedStreams + `,`,
  7858  		`}`,
  7859  	}, "")
  7860  	return s
  7861  }
  7862  func (this *SeriesRequest) String() string {
  7863  	if this == nil {
  7864  		return "nil"
  7865  	}
  7866  	s := strings.Join([]string{`&SeriesRequest{`,
  7867  		`Start:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Start), "Timestamp", "types.Timestamp", 1), `&`, ``, 1) + `,`,
  7868  		`End:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.End), "Timestamp", "types.Timestamp", 1), `&`, ``, 1) + `,`,
  7869  		`Groups:` + fmt.Sprintf("%v", this.Groups) + `,`,
  7870  		`Shards:` + fmt.Sprintf("%v", this.Shards) + `,`,
  7871  		`}`,
  7872  	}, "")
  7873  	return s
  7874  }
  7875  func (this *SeriesResponse) String() string {
  7876  	if this == nil {
  7877  		return "nil"
  7878  	}
  7879  	repeatedStringForSeries := "[]SeriesIdentifier{"
  7880  	for _, f := range this.Series {
  7881  		repeatedStringForSeries += strings.Replace(strings.Replace(f.String(), "SeriesIdentifier", "SeriesIdentifier", 1), `&`, ``, 1) + ","
  7882  	}
  7883  	repeatedStringForSeries += "}"
  7884  	s := strings.Join([]string{`&SeriesResponse{`,
  7885  		`Series:` + repeatedStringForSeries + `,`,
  7886  		`}`,
  7887  	}, "")
  7888  	return s
  7889  }
  7890  func (this *SeriesIdentifier) String() string {
  7891  	if this == nil {
  7892  		return "nil"
  7893  	}
  7894  	keysForLabels := make([]string, 0, len(this.Labels))
  7895  	for k, _ := range this.Labels {
  7896  		keysForLabels = append(keysForLabels, k)
  7897  	}
  7898  	github_com_gogo_protobuf_sortkeys.Strings(keysForLabels)
  7899  	mapStringForLabels := "map[string]string{"
  7900  	for _, k := range keysForLabels {
  7901  		mapStringForLabels += fmt.Sprintf("%v: %v,", k, this.Labels[k])
  7902  	}
  7903  	mapStringForLabels += "}"
  7904  	s := strings.Join([]string{`&SeriesIdentifier{`,
  7905  		`Labels:` + mapStringForLabels + `,`,
  7906  		`}`,
  7907  	}, "")
  7908  	return s
  7909  }
  7910  func (this *DroppedStream) String() string {
  7911  	if this == nil {
  7912  		return "nil"
  7913  	}
  7914  	s := strings.Join([]string{`&DroppedStream{`,
  7915  		`From:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.From), "Timestamp", "types.Timestamp", 1), `&`, ``, 1) + `,`,
  7916  		`To:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.To), "Timestamp", "types.Timestamp", 1), `&`, ``, 1) + `,`,
  7917  		`Labels:` + fmt.Sprintf("%v", this.Labels) + `,`,
  7918  		`}`,
  7919  	}, "")
  7920  	return s
  7921  }
  7922  func (this *TimeSeriesChunk) String() string {
  7923  	if this == nil {
  7924  		return "nil"
  7925  	}
  7926  	repeatedStringForLabels := "[]*LabelPair{"
  7927  	for _, f := range this.Labels {
  7928  		repeatedStringForLabels += strings.Replace(f.String(), "LabelPair", "LabelPair", 1) + ","
  7929  	}
  7930  	repeatedStringForLabels += "}"
  7931  	repeatedStringForChunks := "[]*Chunk{"
  7932  	for _, f := range this.Chunks {
  7933  		repeatedStringForChunks += strings.Replace(f.String(), "Chunk", "Chunk", 1) + ","
  7934  	}
  7935  	repeatedStringForChunks += "}"
  7936  	s := strings.Join([]string{`&TimeSeriesChunk{`,
  7937  		`FromIngesterId:` + fmt.Sprintf("%v", this.FromIngesterId) + `,`,
  7938  		`UserId:` + fmt.Sprintf("%v", this.UserId) + `,`,
  7939  		`Labels:` + repeatedStringForLabels + `,`,
  7940  		`Chunks:` + repeatedStringForChunks + `,`,
  7941  		`}`,
  7942  	}, "")
  7943  	return s
  7944  }
  7945  func (this *LabelPair) String() string {
  7946  	if this == nil {
  7947  		return "nil"
  7948  	}
  7949  	s := strings.Join([]string{`&LabelPair{`,
  7950  		`Name:` + fmt.Sprintf("%v", this.Name) + `,`,
  7951  		`Value:` + fmt.Sprintf("%v", this.Value) + `,`,
  7952  		`}`,
  7953  	}, "")
  7954  	return s
  7955  }
  7956  func (this *LegacyLabelPair) String() string {
  7957  	if this == nil {
  7958  		return "nil"
  7959  	}
  7960  	s := strings.Join([]string{`&LegacyLabelPair{`,
  7961  		`Name:` + fmt.Sprintf("%v", this.Name) + `,`,
  7962  		`Value:` + fmt.Sprintf("%v", this.Value) + `,`,
  7963  		`}`,
  7964  	}, "")
  7965  	return s
  7966  }
  7967  func (this *Chunk) String() string {
  7968  	if this == nil {
  7969  		return "nil"
  7970  	}
  7971  	s := strings.Join([]string{`&Chunk{`,
  7972  		`Data:` + fmt.Sprintf("%v", this.Data) + `,`,
  7973  		`}`,
  7974  	}, "")
  7975  	return s
  7976  }
  7977  func (this *TransferChunksResponse) String() string {
  7978  	if this == nil {
  7979  		return "nil"
  7980  	}
  7981  	s := strings.Join([]string{`&TransferChunksResponse{`,
  7982  		`}`,
  7983  	}, "")
  7984  	return s
  7985  }
  7986  func (this *TailersCountRequest) String() string {
  7987  	if this == nil {
  7988  		return "nil"
  7989  	}
  7990  	s := strings.Join([]string{`&TailersCountRequest{`,
  7991  		`}`,
  7992  	}, "")
  7993  	return s
  7994  }
  7995  func (this *TailersCountResponse) String() string {
  7996  	if this == nil {
  7997  		return "nil"
  7998  	}
  7999  	s := strings.Join([]string{`&TailersCountResponse{`,
  8000  		`Count:` + fmt.Sprintf("%v", this.Count) + `,`,
  8001  		`}`,
  8002  	}, "")
  8003  	return s
  8004  }
  8005  func (this *GetChunkIDsRequest) String() string {
  8006  	if this == nil {
  8007  		return "nil"
  8008  	}
  8009  	s := strings.Join([]string{`&GetChunkIDsRequest{`,
  8010  		`Matchers:` + fmt.Sprintf("%v", this.Matchers) + `,`,
  8011  		`Start:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.Start), "Timestamp", "types.Timestamp", 1), `&`, ``, 1) + `,`,
  8012  		`End:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.End), "Timestamp", "types.Timestamp", 1), `&`, ``, 1) + `,`,
  8013  		`}`,
  8014  	}, "")
  8015  	return s
  8016  }
  8017  func (this *GetChunkIDsResponse) String() string {
  8018  	if this == nil {
  8019  		return "nil"
  8020  	}
  8021  	s := strings.Join([]string{`&GetChunkIDsResponse{`,
  8022  		`ChunkIDs:` + fmt.Sprintf("%v", this.ChunkIDs) + `,`,
  8023  		`}`,
  8024  	}, "")
  8025  	return s
  8026  }
  8027  func (this *ChunkRef) String() string {
  8028  	if this == nil {
  8029  		return "nil"
  8030  	}
  8031  	s := strings.Join([]string{`&ChunkRef{`,
  8032  		`Fingerprint:` + fmt.Sprintf("%v", this.Fingerprint) + `,`,
  8033  		`UserID:` + fmt.Sprintf("%v", this.UserID) + `,`,
  8034  		`From:` + fmt.Sprintf("%v", this.From) + `,`,
  8035  		`Through:` + fmt.Sprintf("%v", this.Through) + `,`,
  8036  		`Checksum:` + fmt.Sprintf("%v", this.Checksum) + `,`,
  8037  		`}`,
  8038  	}, "")
  8039  	return s
  8040  }
  8041  func (this *LabelValuesForMetricNameRequest) String() string {
  8042  	if this == nil {
  8043  		return "nil"
  8044  	}
  8045  	s := strings.Join([]string{`&LabelValuesForMetricNameRequest{`,
  8046  		`MetricName:` + fmt.Sprintf("%v", this.MetricName) + `,`,
  8047  		`LabelName:` + fmt.Sprintf("%v", this.LabelName) + `,`,
  8048  		`From:` + fmt.Sprintf("%v", this.From) + `,`,
  8049  		`Through:` + fmt.Sprintf("%v", this.Through) + `,`,
  8050  		`Matchers:` + fmt.Sprintf("%v", this.Matchers) + `,`,
  8051  		`}`,
  8052  	}, "")
  8053  	return s
  8054  }
  8055  func (this *LabelNamesForMetricNameRequest) String() string {
  8056  	if this == nil {
  8057  		return "nil"
  8058  	}
  8059  	s := strings.Join([]string{`&LabelNamesForMetricNameRequest{`,
  8060  		`MetricName:` + fmt.Sprintf("%v", this.MetricName) + `,`,
  8061  		`From:` + fmt.Sprintf("%v", this.From) + `,`,
  8062  		`Through:` + fmt.Sprintf("%v", this.Through) + `,`,
  8063  		`}`,
  8064  	}, "")
  8065  	return s
  8066  }
  8067  func (this *GetChunkRefRequest) String() string {
  8068  	if this == nil {
  8069  		return "nil"
  8070  	}
  8071  	s := strings.Join([]string{`&GetChunkRefRequest{`,
  8072  		`From:` + fmt.Sprintf("%v", this.From) + `,`,
  8073  		`Through:` + fmt.Sprintf("%v", this.Through) + `,`,
  8074  		`Matchers:` + fmt.Sprintf("%v", this.Matchers) + `,`,
  8075  		`}`,
  8076  	}, "")
  8077  	return s
  8078  }
  8079  func (this *GetChunkRefResponse) String() string {
  8080  	if this == nil {
  8081  		return "nil"
  8082  	}
  8083  	repeatedStringForRefs := "[]*ChunkRef{"
  8084  	for _, f := range this.Refs {
  8085  		repeatedStringForRefs += strings.Replace(f.String(), "ChunkRef", "ChunkRef", 1) + ","
  8086  	}
  8087  	repeatedStringForRefs += "}"
  8088  	s := strings.Join([]string{`&GetChunkRefResponse{`,
  8089  		`Refs:` + repeatedStringForRefs + `,`,
  8090  		`}`,
  8091  	}, "")
  8092  	return s
  8093  }
  8094  func (this *GetSeriesRequest) String() string {
  8095  	if this == nil {
  8096  		return "nil"
  8097  	}
  8098  	s := strings.Join([]string{`&GetSeriesRequest{`,
  8099  		`From:` + fmt.Sprintf("%v", this.From) + `,`,
  8100  		`Through:` + fmt.Sprintf("%v", this.Through) + `,`,
  8101  		`Matchers:` + fmt.Sprintf("%v", this.Matchers) + `,`,
  8102  		`}`,
  8103  	}, "")
  8104  	return s
  8105  }
  8106  func (this *GetSeriesResponse) String() string {
  8107  	if this == nil {
  8108  		return "nil"
  8109  	}
  8110  	repeatedStringForSeries := "[]IndexSeries{"
  8111  	for _, f := range this.Series {
  8112  		repeatedStringForSeries += strings.Replace(strings.Replace(f.String(), "IndexSeries", "IndexSeries", 1), `&`, ``, 1) + ","
  8113  	}
  8114  	repeatedStringForSeries += "}"
  8115  	s := strings.Join([]string{`&GetSeriesResponse{`,
  8116  		`Series:` + repeatedStringForSeries + `,`,
  8117  		`}`,
  8118  	}, "")
  8119  	return s
  8120  }
  8121  func (this *IndexSeries) String() string {
  8122  	if this == nil {
  8123  		return "nil"
  8124  	}
  8125  	s := strings.Join([]string{`&IndexSeries{`,
  8126  		`Labels:` + fmt.Sprintf("%v", this.Labels) + `,`,
  8127  		`}`,
  8128  	}, "")
  8129  	return s
  8130  }
  8131  func (this *QueryIndexResponse) String() string {
  8132  	if this == nil {
  8133  		return "nil"
  8134  	}
  8135  	repeatedStringForRows := "[]*Row{"
  8136  	for _, f := range this.Rows {
  8137  		repeatedStringForRows += strings.Replace(f.String(), "Row", "Row", 1) + ","
  8138  	}
  8139  	repeatedStringForRows += "}"
  8140  	s := strings.Join([]string{`&QueryIndexResponse{`,
  8141  		`QueryKey:` + fmt.Sprintf("%v", this.QueryKey) + `,`,
  8142  		`Rows:` + repeatedStringForRows + `,`,
  8143  		`}`,
  8144  	}, "")
  8145  	return s
  8146  }
  8147  func (this *Row) String() string {
  8148  	if this == nil {
  8149  		return "nil"
  8150  	}
  8151  	s := strings.Join([]string{`&Row{`,
  8152  		`RangeValue:` + fmt.Sprintf("%v", this.RangeValue) + `,`,
  8153  		`Value:` + fmt.Sprintf("%v", this.Value) + `,`,
  8154  		`}`,
  8155  	}, "")
  8156  	return s
  8157  }
  8158  func (this *QueryIndexRequest) String() string {
  8159  	if this == nil {
  8160  		return "nil"
  8161  	}
  8162  	repeatedStringForQueries := "[]*IndexQuery{"
  8163  	for _, f := range this.Queries {
  8164  		repeatedStringForQueries += strings.Replace(f.String(), "IndexQuery", "IndexQuery", 1) + ","
  8165  	}
  8166  	repeatedStringForQueries += "}"
  8167  	s := strings.Join([]string{`&QueryIndexRequest{`,
  8168  		`Queries:` + repeatedStringForQueries + `,`,
  8169  		`}`,
  8170  	}, "")
  8171  	return s
  8172  }
  8173  func (this *IndexQuery) String() string {
  8174  	if this == nil {
  8175  		return "nil"
  8176  	}
  8177  	s := strings.Join([]string{`&IndexQuery{`,
  8178  		`TableName:` + fmt.Sprintf("%v", this.TableName) + `,`,
  8179  		`HashValue:` + fmt.Sprintf("%v", this.HashValue) + `,`,
  8180  		`RangeValuePrefix:` + fmt.Sprintf("%v", this.RangeValuePrefix) + `,`,
  8181  		`RangeValueStart:` + fmt.Sprintf("%v", this.RangeValueStart) + `,`,
  8182  		`ValueEqual:` + fmt.Sprintf("%v", this.ValueEqual) + `,`,
  8183  		`}`,
  8184  	}, "")
  8185  	return s
  8186  }
  8187  func (this *IndexStatsRequest) String() string {
  8188  	if this == nil {
  8189  		return "nil"
  8190  	}
  8191  	s := strings.Join([]string{`&IndexStatsRequest{`,
  8192  		`From:` + fmt.Sprintf("%v", this.From) + `,`,
  8193  		`Through:` + fmt.Sprintf("%v", this.Through) + `,`,
  8194  		`Matchers:` + fmt.Sprintf("%v", this.Matchers) + `,`,
  8195  		`}`,
  8196  	}, "")
  8197  	return s
  8198  }
  8199  func (this *IndexStatsResponse) String() string {
  8200  	if this == nil {
  8201  		return "nil"
  8202  	}
  8203  	s := strings.Join([]string{`&IndexStatsResponse{`,
  8204  		`Streams:` + fmt.Sprintf("%v", this.Streams) + `,`,
  8205  		`Chunks:` + fmt.Sprintf("%v", this.Chunks) + `,`,
  8206  		`Bytes:` + fmt.Sprintf("%v", this.Bytes) + `,`,
  8207  		`Entries:` + fmt.Sprintf("%v", this.Entries) + `,`,
  8208  		`}`,
  8209  	}, "")
  8210  	return s
  8211  }
  8212  func valueToStringLogproto(v interface{}) string {
  8213  	rv := reflect.ValueOf(v)
  8214  	if rv.IsNil() {
  8215  		return "nil"
  8216  	}
  8217  	pv := reflect.Indirect(rv).Interface()
  8218  	return fmt.Sprintf("*%v", pv)
  8219  }
  8220  func (m *PushRequest) Unmarshal(dAtA []byte) error {
  8221  	l := len(dAtA)
  8222  	iNdEx := 0
  8223  	for iNdEx < l {
  8224  		preIndex := iNdEx
  8225  		var wire uint64
  8226  		for shift := uint(0); ; shift += 7 {
  8227  			if shift >= 64 {
  8228  				return ErrIntOverflowLogproto
  8229  			}
  8230  			if iNdEx >= l {
  8231  				return io.ErrUnexpectedEOF
  8232  			}
  8233  			b := dAtA[iNdEx]
  8234  			iNdEx++
  8235  			wire |= uint64(b&0x7F) << shift
  8236  			if b < 0x80 {
  8237  				break
  8238  			}
  8239  		}
  8240  		fieldNum := int32(wire >> 3)
  8241  		wireType := int(wire & 0x7)
  8242  		if wireType == 4 {
  8243  			return fmt.Errorf("proto: PushRequest: wiretype end group for non-group")
  8244  		}
  8245  		if fieldNum <= 0 {
  8246  			return fmt.Errorf("proto: PushRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  8247  		}
  8248  		switch fieldNum {
  8249  		case 1:
  8250  			if wireType != 2 {
  8251  				return fmt.Errorf("proto: wrong wireType = %d for field Streams", wireType)
  8252  			}
  8253  			var msglen int
  8254  			for shift := uint(0); ; shift += 7 {
  8255  				if shift >= 64 {
  8256  					return ErrIntOverflowLogproto
  8257  				}
  8258  				if iNdEx >= l {
  8259  					return io.ErrUnexpectedEOF
  8260  				}
  8261  				b := dAtA[iNdEx]
  8262  				iNdEx++
  8263  				msglen |= int(b&0x7F) << shift
  8264  				if b < 0x80 {
  8265  					break
  8266  				}
  8267  			}
  8268  			if msglen < 0 {
  8269  				return ErrInvalidLengthLogproto
  8270  			}
  8271  			postIndex := iNdEx + msglen
  8272  			if postIndex < 0 {
  8273  				return ErrInvalidLengthLogproto
  8274  			}
  8275  			if postIndex > l {
  8276  				return io.ErrUnexpectedEOF
  8277  			}
  8278  			m.Streams = append(m.Streams, Stream{})
  8279  			if err := m.Streams[len(m.Streams)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8280  				return err
  8281  			}
  8282  			iNdEx = postIndex
  8283  		default:
  8284  			iNdEx = preIndex
  8285  			skippy, err := skipLogproto(dAtA[iNdEx:])
  8286  			if err != nil {
  8287  				return err
  8288  			}
  8289  			if skippy < 0 {
  8290  				return ErrInvalidLengthLogproto
  8291  			}
  8292  			if (iNdEx + skippy) < 0 {
  8293  				return ErrInvalidLengthLogproto
  8294  			}
  8295  			if (iNdEx + skippy) > l {
  8296  				return io.ErrUnexpectedEOF
  8297  			}
  8298  			iNdEx += skippy
  8299  		}
  8300  	}
  8301  
  8302  	if iNdEx > l {
  8303  		return io.ErrUnexpectedEOF
  8304  	}
  8305  	return nil
  8306  }
  8307  func (m *PushResponse) Unmarshal(dAtA []byte) error {
  8308  	l := len(dAtA)
  8309  	iNdEx := 0
  8310  	for iNdEx < l {
  8311  		preIndex := iNdEx
  8312  		var wire uint64
  8313  		for shift := uint(0); ; shift += 7 {
  8314  			if shift >= 64 {
  8315  				return ErrIntOverflowLogproto
  8316  			}
  8317  			if iNdEx >= l {
  8318  				return io.ErrUnexpectedEOF
  8319  			}
  8320  			b := dAtA[iNdEx]
  8321  			iNdEx++
  8322  			wire |= uint64(b&0x7F) << shift
  8323  			if b < 0x80 {
  8324  				break
  8325  			}
  8326  		}
  8327  		fieldNum := int32(wire >> 3)
  8328  		wireType := int(wire & 0x7)
  8329  		if wireType == 4 {
  8330  			return fmt.Errorf("proto: PushResponse: wiretype end group for non-group")
  8331  		}
  8332  		if fieldNum <= 0 {
  8333  			return fmt.Errorf("proto: PushResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  8334  		}
  8335  		switch fieldNum {
  8336  		default:
  8337  			iNdEx = preIndex
  8338  			skippy, err := skipLogproto(dAtA[iNdEx:])
  8339  			if err != nil {
  8340  				return err
  8341  			}
  8342  			if skippy < 0 {
  8343  				return ErrInvalidLengthLogproto
  8344  			}
  8345  			if (iNdEx + skippy) < 0 {
  8346  				return ErrInvalidLengthLogproto
  8347  			}
  8348  			if (iNdEx + skippy) > l {
  8349  				return io.ErrUnexpectedEOF
  8350  			}
  8351  			iNdEx += skippy
  8352  		}
  8353  	}
  8354  
  8355  	if iNdEx > l {
  8356  		return io.ErrUnexpectedEOF
  8357  	}
  8358  	return nil
  8359  }
  8360  func (m *QueryRequest) Unmarshal(dAtA []byte) error {
  8361  	l := len(dAtA)
  8362  	iNdEx := 0
  8363  	for iNdEx < l {
  8364  		preIndex := iNdEx
  8365  		var wire uint64
  8366  		for shift := uint(0); ; shift += 7 {
  8367  			if shift >= 64 {
  8368  				return ErrIntOverflowLogproto
  8369  			}
  8370  			if iNdEx >= l {
  8371  				return io.ErrUnexpectedEOF
  8372  			}
  8373  			b := dAtA[iNdEx]
  8374  			iNdEx++
  8375  			wire |= uint64(b&0x7F) << shift
  8376  			if b < 0x80 {
  8377  				break
  8378  			}
  8379  		}
  8380  		fieldNum := int32(wire >> 3)
  8381  		wireType := int(wire & 0x7)
  8382  		if wireType == 4 {
  8383  			return fmt.Errorf("proto: QueryRequest: wiretype end group for non-group")
  8384  		}
  8385  		if fieldNum <= 0 {
  8386  			return fmt.Errorf("proto: QueryRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  8387  		}
  8388  		switch fieldNum {
  8389  		case 1:
  8390  			if wireType != 2 {
  8391  				return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType)
  8392  			}
  8393  			var stringLen uint64
  8394  			for shift := uint(0); ; shift += 7 {
  8395  				if shift >= 64 {
  8396  					return ErrIntOverflowLogproto
  8397  				}
  8398  				if iNdEx >= l {
  8399  					return io.ErrUnexpectedEOF
  8400  				}
  8401  				b := dAtA[iNdEx]
  8402  				iNdEx++
  8403  				stringLen |= uint64(b&0x7F) << shift
  8404  				if b < 0x80 {
  8405  					break
  8406  				}
  8407  			}
  8408  			intStringLen := int(stringLen)
  8409  			if intStringLen < 0 {
  8410  				return ErrInvalidLengthLogproto
  8411  			}
  8412  			postIndex := iNdEx + intStringLen
  8413  			if postIndex < 0 {
  8414  				return ErrInvalidLengthLogproto
  8415  			}
  8416  			if postIndex > l {
  8417  				return io.ErrUnexpectedEOF
  8418  			}
  8419  			m.Selector = string(dAtA[iNdEx:postIndex])
  8420  			iNdEx = postIndex
  8421  		case 2:
  8422  			if wireType != 0 {
  8423  				return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType)
  8424  			}
  8425  			m.Limit = 0
  8426  			for shift := uint(0); ; shift += 7 {
  8427  				if shift >= 64 {
  8428  					return ErrIntOverflowLogproto
  8429  				}
  8430  				if iNdEx >= l {
  8431  					return io.ErrUnexpectedEOF
  8432  				}
  8433  				b := dAtA[iNdEx]
  8434  				iNdEx++
  8435  				m.Limit |= uint32(b&0x7F) << shift
  8436  				if b < 0x80 {
  8437  					break
  8438  				}
  8439  			}
  8440  		case 3:
  8441  			if wireType != 2 {
  8442  				return fmt.Errorf("proto: wrong wireType = %d for field Start", wireType)
  8443  			}
  8444  			var msglen int
  8445  			for shift := uint(0); ; shift += 7 {
  8446  				if shift >= 64 {
  8447  					return ErrIntOverflowLogproto
  8448  				}
  8449  				if iNdEx >= l {
  8450  					return io.ErrUnexpectedEOF
  8451  				}
  8452  				b := dAtA[iNdEx]
  8453  				iNdEx++
  8454  				msglen |= int(b&0x7F) << shift
  8455  				if b < 0x80 {
  8456  					break
  8457  				}
  8458  			}
  8459  			if msglen < 0 {
  8460  				return ErrInvalidLengthLogproto
  8461  			}
  8462  			postIndex := iNdEx + msglen
  8463  			if postIndex < 0 {
  8464  				return ErrInvalidLengthLogproto
  8465  			}
  8466  			if postIndex > l {
  8467  				return io.ErrUnexpectedEOF
  8468  			}
  8469  			if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.Start, dAtA[iNdEx:postIndex]); err != nil {
  8470  				return err
  8471  			}
  8472  			iNdEx = postIndex
  8473  		case 4:
  8474  			if wireType != 2 {
  8475  				return fmt.Errorf("proto: wrong wireType = %d for field End", wireType)
  8476  			}
  8477  			var msglen int
  8478  			for shift := uint(0); ; shift += 7 {
  8479  				if shift >= 64 {
  8480  					return ErrIntOverflowLogproto
  8481  				}
  8482  				if iNdEx >= l {
  8483  					return io.ErrUnexpectedEOF
  8484  				}
  8485  				b := dAtA[iNdEx]
  8486  				iNdEx++
  8487  				msglen |= int(b&0x7F) << shift
  8488  				if b < 0x80 {
  8489  					break
  8490  				}
  8491  			}
  8492  			if msglen < 0 {
  8493  				return ErrInvalidLengthLogproto
  8494  			}
  8495  			postIndex := iNdEx + msglen
  8496  			if postIndex < 0 {
  8497  				return ErrInvalidLengthLogproto
  8498  			}
  8499  			if postIndex > l {
  8500  				return io.ErrUnexpectedEOF
  8501  			}
  8502  			if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.End, dAtA[iNdEx:postIndex]); err != nil {
  8503  				return err
  8504  			}
  8505  			iNdEx = postIndex
  8506  		case 5:
  8507  			if wireType != 0 {
  8508  				return fmt.Errorf("proto: wrong wireType = %d for field Direction", wireType)
  8509  			}
  8510  			m.Direction = 0
  8511  			for shift := uint(0); ; shift += 7 {
  8512  				if shift >= 64 {
  8513  					return ErrIntOverflowLogproto
  8514  				}
  8515  				if iNdEx >= l {
  8516  					return io.ErrUnexpectedEOF
  8517  				}
  8518  				b := dAtA[iNdEx]
  8519  				iNdEx++
  8520  				m.Direction |= Direction(b&0x7F) << shift
  8521  				if b < 0x80 {
  8522  					break
  8523  				}
  8524  			}
  8525  		case 7:
  8526  			if wireType != 2 {
  8527  				return fmt.Errorf("proto: wrong wireType = %d for field Shards", wireType)
  8528  			}
  8529  			var stringLen uint64
  8530  			for shift := uint(0); ; shift += 7 {
  8531  				if shift >= 64 {
  8532  					return ErrIntOverflowLogproto
  8533  				}
  8534  				if iNdEx >= l {
  8535  					return io.ErrUnexpectedEOF
  8536  				}
  8537  				b := dAtA[iNdEx]
  8538  				iNdEx++
  8539  				stringLen |= uint64(b&0x7F) << shift
  8540  				if b < 0x80 {
  8541  					break
  8542  				}
  8543  			}
  8544  			intStringLen := int(stringLen)
  8545  			if intStringLen < 0 {
  8546  				return ErrInvalidLengthLogproto
  8547  			}
  8548  			postIndex := iNdEx + intStringLen
  8549  			if postIndex < 0 {
  8550  				return ErrInvalidLengthLogproto
  8551  			}
  8552  			if postIndex > l {
  8553  				return io.ErrUnexpectedEOF
  8554  			}
  8555  			m.Shards = append(m.Shards, string(dAtA[iNdEx:postIndex]))
  8556  			iNdEx = postIndex
  8557  		case 8:
  8558  			if wireType != 2 {
  8559  				return fmt.Errorf("proto: wrong wireType = %d for field Deletes", wireType)
  8560  			}
  8561  			var msglen int
  8562  			for shift := uint(0); ; shift += 7 {
  8563  				if shift >= 64 {
  8564  					return ErrIntOverflowLogproto
  8565  				}
  8566  				if iNdEx >= l {
  8567  					return io.ErrUnexpectedEOF
  8568  				}
  8569  				b := dAtA[iNdEx]
  8570  				iNdEx++
  8571  				msglen |= int(b&0x7F) << shift
  8572  				if b < 0x80 {
  8573  					break
  8574  				}
  8575  			}
  8576  			if msglen < 0 {
  8577  				return ErrInvalidLengthLogproto
  8578  			}
  8579  			postIndex := iNdEx + msglen
  8580  			if postIndex < 0 {
  8581  				return ErrInvalidLengthLogproto
  8582  			}
  8583  			if postIndex > l {
  8584  				return io.ErrUnexpectedEOF
  8585  			}
  8586  			m.Deletes = append(m.Deletes, &Delete{})
  8587  			if err := m.Deletes[len(m.Deletes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8588  				return err
  8589  			}
  8590  			iNdEx = postIndex
  8591  		default:
  8592  			iNdEx = preIndex
  8593  			skippy, err := skipLogproto(dAtA[iNdEx:])
  8594  			if err != nil {
  8595  				return err
  8596  			}
  8597  			if skippy < 0 {
  8598  				return ErrInvalidLengthLogproto
  8599  			}
  8600  			if (iNdEx + skippy) < 0 {
  8601  				return ErrInvalidLengthLogproto
  8602  			}
  8603  			if (iNdEx + skippy) > l {
  8604  				return io.ErrUnexpectedEOF
  8605  			}
  8606  			iNdEx += skippy
  8607  		}
  8608  	}
  8609  
  8610  	if iNdEx > l {
  8611  		return io.ErrUnexpectedEOF
  8612  	}
  8613  	return nil
  8614  }
  8615  func (m *SampleQueryRequest) Unmarshal(dAtA []byte) error {
  8616  	l := len(dAtA)
  8617  	iNdEx := 0
  8618  	for iNdEx < l {
  8619  		preIndex := iNdEx
  8620  		var wire uint64
  8621  		for shift := uint(0); ; shift += 7 {
  8622  			if shift >= 64 {
  8623  				return ErrIntOverflowLogproto
  8624  			}
  8625  			if iNdEx >= l {
  8626  				return io.ErrUnexpectedEOF
  8627  			}
  8628  			b := dAtA[iNdEx]
  8629  			iNdEx++
  8630  			wire |= uint64(b&0x7F) << shift
  8631  			if b < 0x80 {
  8632  				break
  8633  			}
  8634  		}
  8635  		fieldNum := int32(wire >> 3)
  8636  		wireType := int(wire & 0x7)
  8637  		if wireType == 4 {
  8638  			return fmt.Errorf("proto: SampleQueryRequest: wiretype end group for non-group")
  8639  		}
  8640  		if fieldNum <= 0 {
  8641  			return fmt.Errorf("proto: SampleQueryRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  8642  		}
  8643  		switch fieldNum {
  8644  		case 1:
  8645  			if wireType != 2 {
  8646  				return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType)
  8647  			}
  8648  			var stringLen uint64
  8649  			for shift := uint(0); ; shift += 7 {
  8650  				if shift >= 64 {
  8651  					return ErrIntOverflowLogproto
  8652  				}
  8653  				if iNdEx >= l {
  8654  					return io.ErrUnexpectedEOF
  8655  				}
  8656  				b := dAtA[iNdEx]
  8657  				iNdEx++
  8658  				stringLen |= uint64(b&0x7F) << shift
  8659  				if b < 0x80 {
  8660  					break
  8661  				}
  8662  			}
  8663  			intStringLen := int(stringLen)
  8664  			if intStringLen < 0 {
  8665  				return ErrInvalidLengthLogproto
  8666  			}
  8667  			postIndex := iNdEx + intStringLen
  8668  			if postIndex < 0 {
  8669  				return ErrInvalidLengthLogproto
  8670  			}
  8671  			if postIndex > l {
  8672  				return io.ErrUnexpectedEOF
  8673  			}
  8674  			m.Selector = string(dAtA[iNdEx:postIndex])
  8675  			iNdEx = postIndex
  8676  		case 2:
  8677  			if wireType != 2 {
  8678  				return fmt.Errorf("proto: wrong wireType = %d for field Start", wireType)
  8679  			}
  8680  			var msglen int
  8681  			for shift := uint(0); ; shift += 7 {
  8682  				if shift >= 64 {
  8683  					return ErrIntOverflowLogproto
  8684  				}
  8685  				if iNdEx >= l {
  8686  					return io.ErrUnexpectedEOF
  8687  				}
  8688  				b := dAtA[iNdEx]
  8689  				iNdEx++
  8690  				msglen |= int(b&0x7F) << shift
  8691  				if b < 0x80 {
  8692  					break
  8693  				}
  8694  			}
  8695  			if msglen < 0 {
  8696  				return ErrInvalidLengthLogproto
  8697  			}
  8698  			postIndex := iNdEx + msglen
  8699  			if postIndex < 0 {
  8700  				return ErrInvalidLengthLogproto
  8701  			}
  8702  			if postIndex > l {
  8703  				return io.ErrUnexpectedEOF
  8704  			}
  8705  			if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.Start, dAtA[iNdEx:postIndex]); err != nil {
  8706  				return err
  8707  			}
  8708  			iNdEx = postIndex
  8709  		case 3:
  8710  			if wireType != 2 {
  8711  				return fmt.Errorf("proto: wrong wireType = %d for field End", wireType)
  8712  			}
  8713  			var msglen int
  8714  			for shift := uint(0); ; shift += 7 {
  8715  				if shift >= 64 {
  8716  					return ErrIntOverflowLogproto
  8717  				}
  8718  				if iNdEx >= l {
  8719  					return io.ErrUnexpectedEOF
  8720  				}
  8721  				b := dAtA[iNdEx]
  8722  				iNdEx++
  8723  				msglen |= int(b&0x7F) << shift
  8724  				if b < 0x80 {
  8725  					break
  8726  				}
  8727  			}
  8728  			if msglen < 0 {
  8729  				return ErrInvalidLengthLogproto
  8730  			}
  8731  			postIndex := iNdEx + msglen
  8732  			if postIndex < 0 {
  8733  				return ErrInvalidLengthLogproto
  8734  			}
  8735  			if postIndex > l {
  8736  				return io.ErrUnexpectedEOF
  8737  			}
  8738  			if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.End, dAtA[iNdEx:postIndex]); err != nil {
  8739  				return err
  8740  			}
  8741  			iNdEx = postIndex
  8742  		case 4:
  8743  			if wireType != 2 {
  8744  				return fmt.Errorf("proto: wrong wireType = %d for field Shards", wireType)
  8745  			}
  8746  			var stringLen uint64
  8747  			for shift := uint(0); ; shift += 7 {
  8748  				if shift >= 64 {
  8749  					return ErrIntOverflowLogproto
  8750  				}
  8751  				if iNdEx >= l {
  8752  					return io.ErrUnexpectedEOF
  8753  				}
  8754  				b := dAtA[iNdEx]
  8755  				iNdEx++
  8756  				stringLen |= uint64(b&0x7F) << shift
  8757  				if b < 0x80 {
  8758  					break
  8759  				}
  8760  			}
  8761  			intStringLen := int(stringLen)
  8762  			if intStringLen < 0 {
  8763  				return ErrInvalidLengthLogproto
  8764  			}
  8765  			postIndex := iNdEx + intStringLen
  8766  			if postIndex < 0 {
  8767  				return ErrInvalidLengthLogproto
  8768  			}
  8769  			if postIndex > l {
  8770  				return io.ErrUnexpectedEOF
  8771  			}
  8772  			m.Shards = append(m.Shards, string(dAtA[iNdEx:postIndex]))
  8773  			iNdEx = postIndex
  8774  		case 5:
  8775  			if wireType != 2 {
  8776  				return fmt.Errorf("proto: wrong wireType = %d for field Deletes", wireType)
  8777  			}
  8778  			var msglen int
  8779  			for shift := uint(0); ; shift += 7 {
  8780  				if shift >= 64 {
  8781  					return ErrIntOverflowLogproto
  8782  				}
  8783  				if iNdEx >= l {
  8784  					return io.ErrUnexpectedEOF
  8785  				}
  8786  				b := dAtA[iNdEx]
  8787  				iNdEx++
  8788  				msglen |= int(b&0x7F) << shift
  8789  				if b < 0x80 {
  8790  					break
  8791  				}
  8792  			}
  8793  			if msglen < 0 {
  8794  				return ErrInvalidLengthLogproto
  8795  			}
  8796  			postIndex := iNdEx + msglen
  8797  			if postIndex < 0 {
  8798  				return ErrInvalidLengthLogproto
  8799  			}
  8800  			if postIndex > l {
  8801  				return io.ErrUnexpectedEOF
  8802  			}
  8803  			m.Deletes = append(m.Deletes, &Delete{})
  8804  			if err := m.Deletes[len(m.Deletes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8805  				return err
  8806  			}
  8807  			iNdEx = postIndex
  8808  		default:
  8809  			iNdEx = preIndex
  8810  			skippy, err := skipLogproto(dAtA[iNdEx:])
  8811  			if err != nil {
  8812  				return err
  8813  			}
  8814  			if skippy < 0 {
  8815  				return ErrInvalidLengthLogproto
  8816  			}
  8817  			if (iNdEx + skippy) < 0 {
  8818  				return ErrInvalidLengthLogproto
  8819  			}
  8820  			if (iNdEx + skippy) > l {
  8821  				return io.ErrUnexpectedEOF
  8822  			}
  8823  			iNdEx += skippy
  8824  		}
  8825  	}
  8826  
  8827  	if iNdEx > l {
  8828  		return io.ErrUnexpectedEOF
  8829  	}
  8830  	return nil
  8831  }
  8832  func (m *Delete) Unmarshal(dAtA []byte) error {
  8833  	l := len(dAtA)
  8834  	iNdEx := 0
  8835  	for iNdEx < l {
  8836  		preIndex := iNdEx
  8837  		var wire uint64
  8838  		for shift := uint(0); ; shift += 7 {
  8839  			if shift >= 64 {
  8840  				return ErrIntOverflowLogproto
  8841  			}
  8842  			if iNdEx >= l {
  8843  				return io.ErrUnexpectedEOF
  8844  			}
  8845  			b := dAtA[iNdEx]
  8846  			iNdEx++
  8847  			wire |= uint64(b&0x7F) << shift
  8848  			if b < 0x80 {
  8849  				break
  8850  			}
  8851  		}
  8852  		fieldNum := int32(wire >> 3)
  8853  		wireType := int(wire & 0x7)
  8854  		if wireType == 4 {
  8855  			return fmt.Errorf("proto: Delete: wiretype end group for non-group")
  8856  		}
  8857  		if fieldNum <= 0 {
  8858  			return fmt.Errorf("proto: Delete: illegal tag %d (wire type %d)", fieldNum, wire)
  8859  		}
  8860  		switch fieldNum {
  8861  		case 1:
  8862  			if wireType != 2 {
  8863  				return fmt.Errorf("proto: wrong wireType = %d for field Selector", wireType)
  8864  			}
  8865  			var stringLen uint64
  8866  			for shift := uint(0); ; shift += 7 {
  8867  				if shift >= 64 {
  8868  					return ErrIntOverflowLogproto
  8869  				}
  8870  				if iNdEx >= l {
  8871  					return io.ErrUnexpectedEOF
  8872  				}
  8873  				b := dAtA[iNdEx]
  8874  				iNdEx++
  8875  				stringLen |= uint64(b&0x7F) << shift
  8876  				if b < 0x80 {
  8877  					break
  8878  				}
  8879  			}
  8880  			intStringLen := int(stringLen)
  8881  			if intStringLen < 0 {
  8882  				return ErrInvalidLengthLogproto
  8883  			}
  8884  			postIndex := iNdEx + intStringLen
  8885  			if postIndex < 0 {
  8886  				return ErrInvalidLengthLogproto
  8887  			}
  8888  			if postIndex > l {
  8889  				return io.ErrUnexpectedEOF
  8890  			}
  8891  			m.Selector = string(dAtA[iNdEx:postIndex])
  8892  			iNdEx = postIndex
  8893  		case 2:
  8894  			if wireType != 0 {
  8895  				return fmt.Errorf("proto: wrong wireType = %d for field Start", wireType)
  8896  			}
  8897  			m.Start = 0
  8898  			for shift := uint(0); ; shift += 7 {
  8899  				if shift >= 64 {
  8900  					return ErrIntOverflowLogproto
  8901  				}
  8902  				if iNdEx >= l {
  8903  					return io.ErrUnexpectedEOF
  8904  				}
  8905  				b := dAtA[iNdEx]
  8906  				iNdEx++
  8907  				m.Start |= int64(b&0x7F) << shift
  8908  				if b < 0x80 {
  8909  					break
  8910  				}
  8911  			}
  8912  		case 3:
  8913  			if wireType != 0 {
  8914  				return fmt.Errorf("proto: wrong wireType = %d for field End", wireType)
  8915  			}
  8916  			m.End = 0
  8917  			for shift := uint(0); ; shift += 7 {
  8918  				if shift >= 64 {
  8919  					return ErrIntOverflowLogproto
  8920  				}
  8921  				if iNdEx >= l {
  8922  					return io.ErrUnexpectedEOF
  8923  				}
  8924  				b := dAtA[iNdEx]
  8925  				iNdEx++
  8926  				m.End |= int64(b&0x7F) << shift
  8927  				if b < 0x80 {
  8928  					break
  8929  				}
  8930  			}
  8931  		default:
  8932  			iNdEx = preIndex
  8933  			skippy, err := skipLogproto(dAtA[iNdEx:])
  8934  			if err != nil {
  8935  				return err
  8936  			}
  8937  			if skippy < 0 {
  8938  				return ErrInvalidLengthLogproto
  8939  			}
  8940  			if (iNdEx + skippy) < 0 {
  8941  				return ErrInvalidLengthLogproto
  8942  			}
  8943  			if (iNdEx + skippy) > l {
  8944  				return io.ErrUnexpectedEOF
  8945  			}
  8946  			iNdEx += skippy
  8947  		}
  8948  	}
  8949  
  8950  	if iNdEx > l {
  8951  		return io.ErrUnexpectedEOF
  8952  	}
  8953  	return nil
  8954  }
  8955  func (m *QueryResponse) Unmarshal(dAtA []byte) error {
  8956  	l := len(dAtA)
  8957  	iNdEx := 0
  8958  	for iNdEx < l {
  8959  		preIndex := iNdEx
  8960  		var wire uint64
  8961  		for shift := uint(0); ; shift += 7 {
  8962  			if shift >= 64 {
  8963  				return ErrIntOverflowLogproto
  8964  			}
  8965  			if iNdEx >= l {
  8966  				return io.ErrUnexpectedEOF
  8967  			}
  8968  			b := dAtA[iNdEx]
  8969  			iNdEx++
  8970  			wire |= uint64(b&0x7F) << shift
  8971  			if b < 0x80 {
  8972  				break
  8973  			}
  8974  		}
  8975  		fieldNum := int32(wire >> 3)
  8976  		wireType := int(wire & 0x7)
  8977  		if wireType == 4 {
  8978  			return fmt.Errorf("proto: QueryResponse: wiretype end group for non-group")
  8979  		}
  8980  		if fieldNum <= 0 {
  8981  			return fmt.Errorf("proto: QueryResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  8982  		}
  8983  		switch fieldNum {
  8984  		case 1:
  8985  			if wireType != 2 {
  8986  				return fmt.Errorf("proto: wrong wireType = %d for field Streams", wireType)
  8987  			}
  8988  			var msglen int
  8989  			for shift := uint(0); ; shift += 7 {
  8990  				if shift >= 64 {
  8991  					return ErrIntOverflowLogproto
  8992  				}
  8993  				if iNdEx >= l {
  8994  					return io.ErrUnexpectedEOF
  8995  				}
  8996  				b := dAtA[iNdEx]
  8997  				iNdEx++
  8998  				msglen |= int(b&0x7F) << shift
  8999  				if b < 0x80 {
  9000  					break
  9001  				}
  9002  			}
  9003  			if msglen < 0 {
  9004  				return ErrInvalidLengthLogproto
  9005  			}
  9006  			postIndex := iNdEx + msglen
  9007  			if postIndex < 0 {
  9008  				return ErrInvalidLengthLogproto
  9009  			}
  9010  			if postIndex > l {
  9011  				return io.ErrUnexpectedEOF
  9012  			}
  9013  			m.Streams = append(m.Streams, Stream{})
  9014  			if err := m.Streams[len(m.Streams)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  9015  				return err
  9016  			}
  9017  			iNdEx = postIndex
  9018  		case 2:
  9019  			if wireType != 2 {
  9020  				return fmt.Errorf("proto: wrong wireType = %d for field Stats", wireType)
  9021  			}
  9022  			var msglen int
  9023  			for shift := uint(0); ; shift += 7 {
  9024  				if shift >= 64 {
  9025  					return ErrIntOverflowLogproto
  9026  				}
  9027  				if iNdEx >= l {
  9028  					return io.ErrUnexpectedEOF
  9029  				}
  9030  				b := dAtA[iNdEx]
  9031  				iNdEx++
  9032  				msglen |= int(b&0x7F) << shift
  9033  				if b < 0x80 {
  9034  					break
  9035  				}
  9036  			}
  9037  			if msglen < 0 {
  9038  				return ErrInvalidLengthLogproto
  9039  			}
  9040  			postIndex := iNdEx + msglen
  9041  			if postIndex < 0 {
  9042  				return ErrInvalidLengthLogproto
  9043  			}
  9044  			if postIndex > l {
  9045  				return io.ErrUnexpectedEOF
  9046  			}
  9047  			if err := m.Stats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  9048  				return err
  9049  			}
  9050  			iNdEx = postIndex
  9051  		default:
  9052  			iNdEx = preIndex
  9053  			skippy, err := skipLogproto(dAtA[iNdEx:])
  9054  			if err != nil {
  9055  				return err
  9056  			}
  9057  			if skippy < 0 {
  9058  				return ErrInvalidLengthLogproto
  9059  			}
  9060  			if (iNdEx + skippy) < 0 {
  9061  				return ErrInvalidLengthLogproto
  9062  			}
  9063  			if (iNdEx + skippy) > l {
  9064  				return io.ErrUnexpectedEOF
  9065  			}
  9066  			iNdEx += skippy
  9067  		}
  9068  	}
  9069  
  9070  	if iNdEx > l {
  9071  		return io.ErrUnexpectedEOF
  9072  	}
  9073  	return nil
  9074  }
  9075  func (m *SampleQueryResponse) Unmarshal(dAtA []byte) error {
  9076  	l := len(dAtA)
  9077  	iNdEx := 0
  9078  	for iNdEx < l {
  9079  		preIndex := iNdEx
  9080  		var wire uint64
  9081  		for shift := uint(0); ; shift += 7 {
  9082  			if shift >= 64 {
  9083  				return ErrIntOverflowLogproto
  9084  			}
  9085  			if iNdEx >= l {
  9086  				return io.ErrUnexpectedEOF
  9087  			}
  9088  			b := dAtA[iNdEx]
  9089  			iNdEx++
  9090  			wire |= uint64(b&0x7F) << shift
  9091  			if b < 0x80 {
  9092  				break
  9093  			}
  9094  		}
  9095  		fieldNum := int32(wire >> 3)
  9096  		wireType := int(wire & 0x7)
  9097  		if wireType == 4 {
  9098  			return fmt.Errorf("proto: SampleQueryResponse: wiretype end group for non-group")
  9099  		}
  9100  		if fieldNum <= 0 {
  9101  			return fmt.Errorf("proto: SampleQueryResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  9102  		}
  9103  		switch fieldNum {
  9104  		case 1:
  9105  			if wireType != 2 {
  9106  				return fmt.Errorf("proto: wrong wireType = %d for field Series", wireType)
  9107  			}
  9108  			var msglen int
  9109  			for shift := uint(0); ; shift += 7 {
  9110  				if shift >= 64 {
  9111  					return ErrIntOverflowLogproto
  9112  				}
  9113  				if iNdEx >= l {
  9114  					return io.ErrUnexpectedEOF
  9115  				}
  9116  				b := dAtA[iNdEx]
  9117  				iNdEx++
  9118  				msglen |= int(b&0x7F) << shift
  9119  				if b < 0x80 {
  9120  					break
  9121  				}
  9122  			}
  9123  			if msglen < 0 {
  9124  				return ErrInvalidLengthLogproto
  9125  			}
  9126  			postIndex := iNdEx + msglen
  9127  			if postIndex < 0 {
  9128  				return ErrInvalidLengthLogproto
  9129  			}
  9130  			if postIndex > l {
  9131  				return io.ErrUnexpectedEOF
  9132  			}
  9133  			m.Series = append(m.Series, Series{})
  9134  			if err := m.Series[len(m.Series)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  9135  				return err
  9136  			}
  9137  			iNdEx = postIndex
  9138  		case 2:
  9139  			if wireType != 2 {
  9140  				return fmt.Errorf("proto: wrong wireType = %d for field Stats", wireType)
  9141  			}
  9142  			var msglen int
  9143  			for shift := uint(0); ; shift += 7 {
  9144  				if shift >= 64 {
  9145  					return ErrIntOverflowLogproto
  9146  				}
  9147  				if iNdEx >= l {
  9148  					return io.ErrUnexpectedEOF
  9149  				}
  9150  				b := dAtA[iNdEx]
  9151  				iNdEx++
  9152  				msglen |= int(b&0x7F) << shift
  9153  				if b < 0x80 {
  9154  					break
  9155  				}
  9156  			}
  9157  			if msglen < 0 {
  9158  				return ErrInvalidLengthLogproto
  9159  			}
  9160  			postIndex := iNdEx + msglen
  9161  			if postIndex < 0 {
  9162  				return ErrInvalidLengthLogproto
  9163  			}
  9164  			if postIndex > l {
  9165  				return io.ErrUnexpectedEOF
  9166  			}
  9167  			if err := m.Stats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  9168  				return err
  9169  			}
  9170  			iNdEx = postIndex
  9171  		default:
  9172  			iNdEx = preIndex
  9173  			skippy, err := skipLogproto(dAtA[iNdEx:])
  9174  			if err != nil {
  9175  				return err
  9176  			}
  9177  			if skippy < 0 {
  9178  				return ErrInvalidLengthLogproto
  9179  			}
  9180  			if (iNdEx + skippy) < 0 {
  9181  				return ErrInvalidLengthLogproto
  9182  			}
  9183  			if (iNdEx + skippy) > l {
  9184  				return io.ErrUnexpectedEOF
  9185  			}
  9186  			iNdEx += skippy
  9187  		}
  9188  	}
  9189  
  9190  	if iNdEx > l {
  9191  		return io.ErrUnexpectedEOF
  9192  	}
  9193  	return nil
  9194  }
  9195  func (m *LabelRequest) Unmarshal(dAtA []byte) error {
  9196  	l := len(dAtA)
  9197  	iNdEx := 0
  9198  	for iNdEx < l {
  9199  		preIndex := iNdEx
  9200  		var wire uint64
  9201  		for shift := uint(0); ; shift += 7 {
  9202  			if shift >= 64 {
  9203  				return ErrIntOverflowLogproto
  9204  			}
  9205  			if iNdEx >= l {
  9206  				return io.ErrUnexpectedEOF
  9207  			}
  9208  			b := dAtA[iNdEx]
  9209  			iNdEx++
  9210  			wire |= uint64(b&0x7F) << shift
  9211  			if b < 0x80 {
  9212  				break
  9213  			}
  9214  		}
  9215  		fieldNum := int32(wire >> 3)
  9216  		wireType := int(wire & 0x7)
  9217  		if wireType == 4 {
  9218  			return fmt.Errorf("proto: LabelRequest: wiretype end group for non-group")
  9219  		}
  9220  		if fieldNum <= 0 {
  9221  			return fmt.Errorf("proto: LabelRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  9222  		}
  9223  		switch fieldNum {
  9224  		case 1:
  9225  			if wireType != 2 {
  9226  				return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  9227  			}
  9228  			var stringLen uint64
  9229  			for shift := uint(0); ; shift += 7 {
  9230  				if shift >= 64 {
  9231  					return ErrIntOverflowLogproto
  9232  				}
  9233  				if iNdEx >= l {
  9234  					return io.ErrUnexpectedEOF
  9235  				}
  9236  				b := dAtA[iNdEx]
  9237  				iNdEx++
  9238  				stringLen |= uint64(b&0x7F) << shift
  9239  				if b < 0x80 {
  9240  					break
  9241  				}
  9242  			}
  9243  			intStringLen := int(stringLen)
  9244  			if intStringLen < 0 {
  9245  				return ErrInvalidLengthLogproto
  9246  			}
  9247  			postIndex := iNdEx + intStringLen
  9248  			if postIndex < 0 {
  9249  				return ErrInvalidLengthLogproto
  9250  			}
  9251  			if postIndex > l {
  9252  				return io.ErrUnexpectedEOF
  9253  			}
  9254  			m.Name = string(dAtA[iNdEx:postIndex])
  9255  			iNdEx = postIndex
  9256  		case 2:
  9257  			if wireType != 0 {
  9258  				return fmt.Errorf("proto: wrong wireType = %d for field Values", wireType)
  9259  			}
  9260  			var v int
  9261  			for shift := uint(0); ; shift += 7 {
  9262  				if shift >= 64 {
  9263  					return ErrIntOverflowLogproto
  9264  				}
  9265  				if iNdEx >= l {
  9266  					return io.ErrUnexpectedEOF
  9267  				}
  9268  				b := dAtA[iNdEx]
  9269  				iNdEx++
  9270  				v |= int(b&0x7F) << shift
  9271  				if b < 0x80 {
  9272  					break
  9273  				}
  9274  			}
  9275  			m.Values = bool(v != 0)
  9276  		case 3:
  9277  			if wireType != 2 {
  9278  				return fmt.Errorf("proto: wrong wireType = %d for field Start", wireType)
  9279  			}
  9280  			var msglen int
  9281  			for shift := uint(0); ; shift += 7 {
  9282  				if shift >= 64 {
  9283  					return ErrIntOverflowLogproto
  9284  				}
  9285  				if iNdEx >= l {
  9286  					return io.ErrUnexpectedEOF
  9287  				}
  9288  				b := dAtA[iNdEx]
  9289  				iNdEx++
  9290  				msglen |= int(b&0x7F) << shift
  9291  				if b < 0x80 {
  9292  					break
  9293  				}
  9294  			}
  9295  			if msglen < 0 {
  9296  				return ErrInvalidLengthLogproto
  9297  			}
  9298  			postIndex := iNdEx + msglen
  9299  			if postIndex < 0 {
  9300  				return ErrInvalidLengthLogproto
  9301  			}
  9302  			if postIndex > l {
  9303  				return io.ErrUnexpectedEOF
  9304  			}
  9305  			if m.Start == nil {
  9306  				m.Start = new(time.Time)
  9307  			}
  9308  			if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.Start, dAtA[iNdEx:postIndex]); err != nil {
  9309  				return err
  9310  			}
  9311  			iNdEx = postIndex
  9312  		case 4:
  9313  			if wireType != 2 {
  9314  				return fmt.Errorf("proto: wrong wireType = %d for field End", wireType)
  9315  			}
  9316  			var msglen int
  9317  			for shift := uint(0); ; shift += 7 {
  9318  				if shift >= 64 {
  9319  					return ErrIntOverflowLogproto
  9320  				}
  9321  				if iNdEx >= l {
  9322  					return io.ErrUnexpectedEOF
  9323  				}
  9324  				b := dAtA[iNdEx]
  9325  				iNdEx++
  9326  				msglen |= int(b&0x7F) << shift
  9327  				if b < 0x80 {
  9328  					break
  9329  				}
  9330  			}
  9331  			if msglen < 0 {
  9332  				return ErrInvalidLengthLogproto
  9333  			}
  9334  			postIndex := iNdEx + msglen
  9335  			if postIndex < 0 {
  9336  				return ErrInvalidLengthLogproto
  9337  			}
  9338  			if postIndex > l {
  9339  				return io.ErrUnexpectedEOF
  9340  			}
  9341  			if m.End == nil {
  9342  				m.End = new(time.Time)
  9343  			}
  9344  			if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(m.End, dAtA[iNdEx:postIndex]); err != nil {
  9345  				return err
  9346  			}
  9347  			iNdEx = postIndex
  9348  		default:
  9349  			iNdEx = preIndex
  9350  			skippy, err := skipLogproto(dAtA[iNdEx:])
  9351  			if err != nil {
  9352  				return err
  9353  			}
  9354  			if skippy < 0 {
  9355  				return ErrInvalidLengthLogproto
  9356  			}
  9357  			if (iNdEx + skippy) < 0 {
  9358  				return ErrInvalidLengthLogproto
  9359  			}
  9360  			if (iNdEx + skippy) > l {
  9361  				return io.ErrUnexpectedEOF
  9362  			}
  9363  			iNdEx += skippy
  9364  		}
  9365  	}
  9366  
  9367  	if iNdEx > l {
  9368  		return io.ErrUnexpectedEOF
  9369  	}
  9370  	return nil
  9371  }
  9372  func (m *LabelResponse) Unmarshal(dAtA []byte) error {
  9373  	l := len(dAtA)
  9374  	iNdEx := 0
  9375  	for iNdEx < l {
  9376  		preIndex := iNdEx
  9377  		var wire uint64
  9378  		for shift := uint(0); ; shift += 7 {
  9379  			if shift >= 64 {
  9380  				return ErrIntOverflowLogproto
  9381  			}
  9382  			if iNdEx >= l {
  9383  				return io.ErrUnexpectedEOF
  9384  			}
  9385  			b := dAtA[iNdEx]
  9386  			iNdEx++
  9387  			wire |= uint64(b&0x7F) << shift
  9388  			if b < 0x80 {
  9389  				break
  9390  			}
  9391  		}
  9392  		fieldNum := int32(wire >> 3)
  9393  		wireType := int(wire & 0x7)
  9394  		if wireType == 4 {
  9395  			return fmt.Errorf("proto: LabelResponse: wiretype end group for non-group")
  9396  		}
  9397  		if fieldNum <= 0 {
  9398  			return fmt.Errorf("proto: LabelResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  9399  		}
  9400  		switch fieldNum {
  9401  		case 1:
  9402  			if wireType != 2 {
  9403  				return fmt.Errorf("proto: wrong wireType = %d for field Values", wireType)
  9404  			}
  9405  			var stringLen uint64
  9406  			for shift := uint(0); ; shift += 7 {
  9407  				if shift >= 64 {
  9408  					return ErrIntOverflowLogproto
  9409  				}
  9410  				if iNdEx >= l {
  9411  					return io.ErrUnexpectedEOF
  9412  				}
  9413  				b := dAtA[iNdEx]
  9414  				iNdEx++
  9415  				stringLen |= uint64(b&0x7F) << shift
  9416  				if b < 0x80 {
  9417  					break
  9418  				}
  9419  			}
  9420  			intStringLen := int(stringLen)
  9421  			if intStringLen < 0 {
  9422  				return ErrInvalidLengthLogproto
  9423  			}
  9424  			postIndex := iNdEx + intStringLen
  9425  			if postIndex < 0 {
  9426  				return ErrInvalidLengthLogproto
  9427  			}
  9428  			if postIndex > l {
  9429  				return io.ErrUnexpectedEOF
  9430  			}
  9431  			m.Values = append(m.Values, string(dAtA[iNdEx:postIndex]))
  9432  			iNdEx = postIndex
  9433  		default:
  9434  			iNdEx = preIndex
  9435  			skippy, err := skipLogproto(dAtA[iNdEx:])
  9436  			if err != nil {
  9437  				return err
  9438  			}
  9439  			if skippy < 0 {
  9440  				return ErrInvalidLengthLogproto
  9441  			}
  9442  			if (iNdEx + skippy) < 0 {
  9443  				return ErrInvalidLengthLogproto
  9444  			}
  9445  			if (iNdEx + skippy) > l {
  9446  				return io.ErrUnexpectedEOF
  9447  			}
  9448  			iNdEx += skippy
  9449  		}
  9450  	}
  9451  
  9452  	if iNdEx > l {
  9453  		return io.ErrUnexpectedEOF
  9454  	}
  9455  	return nil
  9456  }
  9457  func (m *StreamAdapter) Unmarshal(dAtA []byte) error {
  9458  	l := len(dAtA)
  9459  	iNdEx := 0
  9460  	for iNdEx < l {
  9461  		preIndex := iNdEx
  9462  		var wire uint64
  9463  		for shift := uint(0); ; shift += 7 {
  9464  			if shift >= 64 {
  9465  				return ErrIntOverflowLogproto
  9466  			}
  9467  			if iNdEx >= l {
  9468  				return io.ErrUnexpectedEOF
  9469  			}
  9470  			b := dAtA[iNdEx]
  9471  			iNdEx++
  9472  			wire |= uint64(b&0x7F) << shift
  9473  			if b < 0x80 {
  9474  				break
  9475  			}
  9476  		}
  9477  		fieldNum := int32(wire >> 3)
  9478  		wireType := int(wire & 0x7)
  9479  		if wireType == 4 {
  9480  			return fmt.Errorf("proto: StreamAdapter: wiretype end group for non-group")
  9481  		}
  9482  		if fieldNum <= 0 {
  9483  			return fmt.Errorf("proto: StreamAdapter: illegal tag %d (wire type %d)", fieldNum, wire)
  9484  		}
  9485  		switch fieldNum {
  9486  		case 1:
  9487  			if wireType != 2 {
  9488  				return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType)
  9489  			}
  9490  			var stringLen uint64
  9491  			for shift := uint(0); ; shift += 7 {
  9492  				if shift >= 64 {
  9493  					return ErrIntOverflowLogproto
  9494  				}
  9495  				if iNdEx >= l {
  9496  					return io.ErrUnexpectedEOF
  9497  				}
  9498  				b := dAtA[iNdEx]
  9499  				iNdEx++
  9500  				stringLen |= uint64(b&0x7F) << shift
  9501  				if b < 0x80 {
  9502  					break
  9503  				}
  9504  			}
  9505  			intStringLen := int(stringLen)
  9506  			if intStringLen < 0 {
  9507  				return ErrInvalidLengthLogproto
  9508  			}
  9509  			postIndex := iNdEx + intStringLen
  9510  			if postIndex < 0 {
  9511  				return ErrInvalidLengthLogproto
  9512  			}
  9513  			if postIndex > l {
  9514  				return io.ErrUnexpectedEOF
  9515  			}
  9516  			m.Labels = string(dAtA[iNdEx:postIndex])
  9517  			iNdEx = postIndex
  9518  		case 2:
  9519  			if wireType != 2 {
  9520  				return fmt.Errorf("proto: wrong wireType = %d for field Entries", wireType)
  9521  			}
  9522  			var msglen int
  9523  			for shift := uint(0); ; shift += 7 {
  9524  				if shift >= 64 {
  9525  					return ErrIntOverflowLogproto
  9526  				}
  9527  				if iNdEx >= l {
  9528  					return io.ErrUnexpectedEOF
  9529  				}
  9530  				b := dAtA[iNdEx]
  9531  				iNdEx++
  9532  				msglen |= int(b&0x7F) << shift
  9533  				if b < 0x80 {
  9534  					break
  9535  				}
  9536  			}
  9537  			if msglen < 0 {
  9538  				return ErrInvalidLengthLogproto
  9539  			}
  9540  			postIndex := iNdEx + msglen
  9541  			if postIndex < 0 {
  9542  				return ErrInvalidLengthLogproto
  9543  			}
  9544  			if postIndex > l {
  9545  				return io.ErrUnexpectedEOF
  9546  			}
  9547  			m.Entries = append(m.Entries, EntryAdapter{})
  9548  			if err := m.Entries[len(m.Entries)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  9549  				return err
  9550  			}
  9551  			iNdEx = postIndex
  9552  		case 3:
  9553  			if wireType != 0 {
  9554  				return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType)
  9555  			}
  9556  			m.Hash = 0
  9557  			for shift := uint(0); ; shift += 7 {
  9558  				if shift >= 64 {
  9559  					return ErrIntOverflowLogproto
  9560  				}
  9561  				if iNdEx >= l {
  9562  					return io.ErrUnexpectedEOF
  9563  				}
  9564  				b := dAtA[iNdEx]
  9565  				iNdEx++
  9566  				m.Hash |= uint64(b&0x7F) << shift
  9567  				if b < 0x80 {
  9568  					break
  9569  				}
  9570  			}
  9571  		default:
  9572  			iNdEx = preIndex
  9573  			skippy, err := skipLogproto(dAtA[iNdEx:])
  9574  			if err != nil {
  9575  				return err
  9576  			}
  9577  			if skippy < 0 {
  9578  				return ErrInvalidLengthLogproto
  9579  			}
  9580  			if (iNdEx + skippy) < 0 {
  9581  				return ErrInvalidLengthLogproto
  9582  			}
  9583  			if (iNdEx + skippy) > l {
  9584  				return io.ErrUnexpectedEOF
  9585  			}
  9586  			iNdEx += skippy
  9587  		}
  9588  	}
  9589  
  9590  	if iNdEx > l {
  9591  		return io.ErrUnexpectedEOF
  9592  	}
  9593  	return nil
  9594  }
  9595  func (m *EntryAdapter) Unmarshal(dAtA []byte) error {
  9596  	l := len(dAtA)
  9597  	iNdEx := 0
  9598  	for iNdEx < l {
  9599  		preIndex := iNdEx
  9600  		var wire uint64
  9601  		for shift := uint(0); ; shift += 7 {
  9602  			if shift >= 64 {
  9603  				return ErrIntOverflowLogproto
  9604  			}
  9605  			if iNdEx >= l {
  9606  				return io.ErrUnexpectedEOF
  9607  			}
  9608  			b := dAtA[iNdEx]
  9609  			iNdEx++
  9610  			wire |= uint64(b&0x7F) << shift
  9611  			if b < 0x80 {
  9612  				break
  9613  			}
  9614  		}
  9615  		fieldNum := int32(wire >> 3)
  9616  		wireType := int(wire & 0x7)
  9617  		if wireType == 4 {
  9618  			return fmt.Errorf("proto: EntryAdapter: wiretype end group for non-group")
  9619  		}
  9620  		if fieldNum <= 0 {
  9621  			return fmt.Errorf("proto: EntryAdapter: illegal tag %d (wire type %d)", fieldNum, wire)
  9622  		}
  9623  		switch fieldNum {
  9624  		case 1:
  9625  			if wireType != 2 {
  9626  				return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType)
  9627  			}
  9628  			var msglen int
  9629  			for shift := uint(0); ; shift += 7 {
  9630  				if shift >= 64 {
  9631  					return ErrIntOverflowLogproto
  9632  				}
  9633  				if iNdEx >= l {
  9634  					return io.ErrUnexpectedEOF
  9635  				}
  9636  				b := dAtA[iNdEx]
  9637  				iNdEx++
  9638  				msglen |= int(b&0x7F) << shift
  9639  				if b < 0x80 {
  9640  					break
  9641  				}
  9642  			}
  9643  			if msglen < 0 {
  9644  				return ErrInvalidLengthLogproto
  9645  			}
  9646  			postIndex := iNdEx + msglen
  9647  			if postIndex < 0 {
  9648  				return ErrInvalidLengthLogproto
  9649  			}
  9650  			if postIndex > l {
  9651  				return io.ErrUnexpectedEOF
  9652  			}
  9653  			if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.Timestamp, dAtA[iNdEx:postIndex]); err != nil {
  9654  				return err
  9655  			}
  9656  			iNdEx = postIndex
  9657  		case 2:
  9658  			if wireType != 2 {
  9659  				return fmt.Errorf("proto: wrong wireType = %d for field Line", wireType)
  9660  			}
  9661  			var stringLen uint64
  9662  			for shift := uint(0); ; shift += 7 {
  9663  				if shift >= 64 {
  9664  					return ErrIntOverflowLogproto
  9665  				}
  9666  				if iNdEx >= l {
  9667  					return io.ErrUnexpectedEOF
  9668  				}
  9669  				b := dAtA[iNdEx]
  9670  				iNdEx++
  9671  				stringLen |= uint64(b&0x7F) << shift
  9672  				if b < 0x80 {
  9673  					break
  9674  				}
  9675  			}
  9676  			intStringLen := int(stringLen)
  9677  			if intStringLen < 0 {
  9678  				return ErrInvalidLengthLogproto
  9679  			}
  9680  			postIndex := iNdEx + intStringLen
  9681  			if postIndex < 0 {
  9682  				return ErrInvalidLengthLogproto
  9683  			}
  9684  			if postIndex > l {
  9685  				return io.ErrUnexpectedEOF
  9686  			}
  9687  			m.Line = string(dAtA[iNdEx:postIndex])
  9688  			iNdEx = postIndex
  9689  		default:
  9690  			iNdEx = preIndex
  9691  			skippy, err := skipLogproto(dAtA[iNdEx:])
  9692  			if err != nil {
  9693  				return err
  9694  			}
  9695  			if skippy < 0 {
  9696  				return ErrInvalidLengthLogproto
  9697  			}
  9698  			if (iNdEx + skippy) < 0 {
  9699  				return ErrInvalidLengthLogproto
  9700  			}
  9701  			if (iNdEx + skippy) > l {
  9702  				return io.ErrUnexpectedEOF
  9703  			}
  9704  			iNdEx += skippy
  9705  		}
  9706  	}
  9707  
  9708  	if iNdEx > l {
  9709  		return io.ErrUnexpectedEOF
  9710  	}
  9711  	return nil
  9712  }
  9713  func (m *Sample) Unmarshal(dAtA []byte) error {
  9714  	l := len(dAtA)
  9715  	iNdEx := 0
  9716  	for iNdEx < l {
  9717  		preIndex := iNdEx
  9718  		var wire uint64
  9719  		for shift := uint(0); ; shift += 7 {
  9720  			if shift >= 64 {
  9721  				return ErrIntOverflowLogproto
  9722  			}
  9723  			if iNdEx >= l {
  9724  				return io.ErrUnexpectedEOF
  9725  			}
  9726  			b := dAtA[iNdEx]
  9727  			iNdEx++
  9728  			wire |= uint64(b&0x7F) << shift
  9729  			if b < 0x80 {
  9730  				break
  9731  			}
  9732  		}
  9733  		fieldNum := int32(wire >> 3)
  9734  		wireType := int(wire & 0x7)
  9735  		if wireType == 4 {
  9736  			return fmt.Errorf("proto: Sample: wiretype end group for non-group")
  9737  		}
  9738  		if fieldNum <= 0 {
  9739  			return fmt.Errorf("proto: Sample: illegal tag %d (wire type %d)", fieldNum, wire)
  9740  		}
  9741  		switch fieldNum {
  9742  		case 1:
  9743  			if wireType != 0 {
  9744  				return fmt.Errorf("proto: wrong wireType = %d for field Timestamp", wireType)
  9745  			}
  9746  			m.Timestamp = 0
  9747  			for shift := uint(0); ; shift += 7 {
  9748  				if shift >= 64 {
  9749  					return ErrIntOverflowLogproto
  9750  				}
  9751  				if iNdEx >= l {
  9752  					return io.ErrUnexpectedEOF
  9753  				}
  9754  				b := dAtA[iNdEx]
  9755  				iNdEx++
  9756  				m.Timestamp |= int64(b&0x7F) << shift
  9757  				if b < 0x80 {
  9758  					break
  9759  				}
  9760  			}
  9761  		case 2:
  9762  			if wireType != 1 {
  9763  				return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
  9764  			}
  9765  			var v uint64
  9766  			if (iNdEx + 8) > l {
  9767  				return io.ErrUnexpectedEOF
  9768  			}
  9769  			v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:]))
  9770  			iNdEx += 8
  9771  			m.Value = float64(math.Float64frombits(v))
  9772  		case 3:
  9773  			if wireType != 0 {
  9774  				return fmt.Errorf("proto: wrong wireType = %d for field Hash", wireType)
  9775  			}
  9776  			m.Hash = 0
  9777  			for shift := uint(0); ; shift += 7 {
  9778  				if shift >= 64 {
  9779  					return ErrIntOverflowLogproto
  9780  				}
  9781  				if iNdEx >= l {
  9782  					return io.ErrUnexpectedEOF
  9783  				}
  9784  				b := dAtA[iNdEx]
  9785  				iNdEx++
  9786  				m.Hash |= uint64(b&0x7F) << shift
  9787  				if b < 0x80 {
  9788  					break
  9789  				}
  9790  			}
  9791  		default:
  9792  			iNdEx = preIndex
  9793  			skippy, err := skipLogproto(dAtA[iNdEx:])
  9794  			if err != nil {
  9795  				return err
  9796  			}
  9797  			if skippy < 0 {
  9798  				return ErrInvalidLengthLogproto
  9799  			}
  9800  			if (iNdEx + skippy) < 0 {
  9801  				return ErrInvalidLengthLogproto
  9802  			}
  9803  			if (iNdEx + skippy) > l {
  9804  				return io.ErrUnexpectedEOF
  9805  			}
  9806  			iNdEx += skippy
  9807  		}
  9808  	}
  9809  
  9810  	if iNdEx > l {
  9811  		return io.ErrUnexpectedEOF
  9812  	}
  9813  	return nil
  9814  }
  9815  func (m *LegacySample) Unmarshal(dAtA []byte) error {
  9816  	l := len(dAtA)
  9817  	iNdEx := 0
  9818  	for iNdEx < l {
  9819  		preIndex := iNdEx
  9820  		var wire uint64
  9821  		for shift := uint(0); ; shift += 7 {
  9822  			if shift >= 64 {
  9823  				return ErrIntOverflowLogproto
  9824  			}
  9825  			if iNdEx >= l {
  9826  				return io.ErrUnexpectedEOF
  9827  			}
  9828  			b := dAtA[iNdEx]
  9829  			iNdEx++
  9830  			wire |= uint64(b&0x7F) << shift
  9831  			if b < 0x80 {
  9832  				break
  9833  			}
  9834  		}
  9835  		fieldNum := int32(wire >> 3)
  9836  		wireType := int(wire & 0x7)
  9837  		if wireType == 4 {
  9838  			return fmt.Errorf("proto: LegacySample: wiretype end group for non-group")
  9839  		}
  9840  		if fieldNum <= 0 {
  9841  			return fmt.Errorf("proto: LegacySample: illegal tag %d (wire type %d)", fieldNum, wire)
  9842  		}
  9843  		switch fieldNum {
  9844  		case 1:
  9845  			if wireType != 1 {
  9846  				return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
  9847  			}
  9848  			var v uint64
  9849  			if (iNdEx + 8) > l {
  9850  				return io.ErrUnexpectedEOF
  9851  			}
  9852  			v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:]))
  9853  			iNdEx += 8
  9854  			m.Value = float64(math.Float64frombits(v))
  9855  		case 2:
  9856  			if wireType != 0 {
  9857  				return fmt.Errorf("proto: wrong wireType = %d for field TimestampMs", wireType)
  9858  			}
  9859  			m.TimestampMs = 0
  9860  			for shift := uint(0); ; shift += 7 {
  9861  				if shift >= 64 {
  9862  					return ErrIntOverflowLogproto
  9863  				}
  9864  				if iNdEx >= l {
  9865  					return io.ErrUnexpectedEOF
  9866  				}
  9867  				b := dAtA[iNdEx]
  9868  				iNdEx++
  9869  				m.TimestampMs |= int64(b&0x7F) << shift
  9870  				if b < 0x80 {
  9871  					break
  9872  				}
  9873  			}
  9874  		default:
  9875  			iNdEx = preIndex
  9876  			skippy, err := skipLogproto(dAtA[iNdEx:])
  9877  			if err != nil {
  9878  				return err
  9879  			}
  9880  			if skippy < 0 {
  9881  				return ErrInvalidLengthLogproto
  9882  			}
  9883  			if (iNdEx + skippy) < 0 {
  9884  				return ErrInvalidLengthLogproto
  9885  			}
  9886  			if (iNdEx + skippy) > l {
  9887  				return io.ErrUnexpectedEOF
  9888  			}
  9889  			iNdEx += skippy
  9890  		}
  9891  	}
  9892  
  9893  	if iNdEx > l {
  9894  		return io.ErrUnexpectedEOF
  9895  	}
  9896  	return nil
  9897  }
  9898  func (m *Series) Unmarshal(dAtA []byte) error {
  9899  	l := len(dAtA)
  9900  	iNdEx := 0
  9901  	for iNdEx < l {
  9902  		preIndex := iNdEx
  9903  		var wire uint64
  9904  		for shift := uint(0); ; shift += 7 {
  9905  			if shift >= 64 {
  9906  				return ErrIntOverflowLogproto
  9907  			}
  9908  			if iNdEx >= l {
  9909  				return io.ErrUnexpectedEOF
  9910  			}
  9911  			b := dAtA[iNdEx]
  9912  			iNdEx++
  9913  			wire |= uint64(b&0x7F) << shift
  9914  			if b < 0x80 {
  9915  				break
  9916  			}
  9917  		}
  9918  		fieldNum := int32(wire >> 3)
  9919  		wireType := int(wire & 0x7)
  9920  		if wireType == 4 {
  9921  			return fmt.Errorf("proto: Series: wiretype end group for non-group")
  9922  		}
  9923  		if fieldNum <= 0 {
  9924  			return fmt.Errorf("proto: Series: illegal tag %d (wire type %d)", fieldNum, wire)
  9925  		}
  9926  		switch fieldNum {
  9927  		case 1:
  9928  			if wireType != 2 {
  9929  				return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType)
  9930  			}
  9931  			var stringLen uint64
  9932  			for shift := uint(0); ; shift += 7 {
  9933  				if shift >= 64 {
  9934  					return ErrIntOverflowLogproto
  9935  				}
  9936  				if iNdEx >= l {
  9937  					return io.ErrUnexpectedEOF
  9938  				}
  9939  				b := dAtA[iNdEx]
  9940  				iNdEx++
  9941  				stringLen |= uint64(b&0x7F) << shift
  9942  				if b < 0x80 {
  9943  					break
  9944  				}
  9945  			}
  9946  			intStringLen := int(stringLen)
  9947  			if intStringLen < 0 {
  9948  				return ErrInvalidLengthLogproto
  9949  			}
  9950  			postIndex := iNdEx + intStringLen
  9951  			if postIndex < 0 {
  9952  				return ErrInvalidLengthLogproto
  9953  			}
  9954  			if postIndex > l {
  9955  				return io.ErrUnexpectedEOF
  9956  			}
  9957  			m.Labels = string(dAtA[iNdEx:postIndex])
  9958  			iNdEx = postIndex
  9959  		case 2:
  9960  			if wireType != 2 {
  9961  				return fmt.Errorf("proto: wrong wireType = %d for field Samples", wireType)
  9962  			}
  9963  			var msglen int
  9964  			for shift := uint(0); ; shift += 7 {
  9965  				if shift >= 64 {
  9966  					return ErrIntOverflowLogproto
  9967  				}
  9968  				if iNdEx >= l {
  9969  					return io.ErrUnexpectedEOF
  9970  				}
  9971  				b := dAtA[iNdEx]
  9972  				iNdEx++
  9973  				msglen |= int(b&0x7F) << shift
  9974  				if b < 0x80 {
  9975  					break
  9976  				}
  9977  			}
  9978  			if msglen < 0 {
  9979  				return ErrInvalidLengthLogproto
  9980  			}
  9981  			postIndex := iNdEx + msglen
  9982  			if postIndex < 0 {
  9983  				return ErrInvalidLengthLogproto
  9984  			}
  9985  			if postIndex > l {
  9986  				return io.ErrUnexpectedEOF
  9987  			}
  9988  			m.Samples = append(m.Samples, Sample{})
  9989  			if err := m.Samples[len(m.Samples)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  9990  				return err
  9991  			}
  9992  			iNdEx = postIndex
  9993  		case 3:
  9994  			if wireType != 0 {
  9995  				return fmt.Errorf("proto: wrong wireType = %d for field StreamHash", wireType)
  9996  			}
  9997  			m.StreamHash = 0
  9998  			for shift := uint(0); ; shift += 7 {
  9999  				if shift >= 64 {
 10000  					return ErrIntOverflowLogproto
 10001  				}
 10002  				if iNdEx >= l {
 10003  					return io.ErrUnexpectedEOF
 10004  				}
 10005  				b := dAtA[iNdEx]
 10006  				iNdEx++
 10007  				m.StreamHash |= uint64(b&0x7F) << shift
 10008  				if b < 0x80 {
 10009  					break
 10010  				}
 10011  			}
 10012  		default:
 10013  			iNdEx = preIndex
 10014  			skippy, err := skipLogproto(dAtA[iNdEx:])
 10015  			if err != nil {
 10016  				return err
 10017  			}
 10018  			if skippy < 0 {
 10019  				return ErrInvalidLengthLogproto
 10020  			}
 10021  			if (iNdEx + skippy) < 0 {
 10022  				return ErrInvalidLengthLogproto
 10023  			}
 10024  			if (iNdEx + skippy) > l {
 10025  				return io.ErrUnexpectedEOF
 10026  			}
 10027  			iNdEx += skippy
 10028  		}
 10029  	}
 10030  
 10031  	if iNdEx > l {
 10032  		return io.ErrUnexpectedEOF
 10033  	}
 10034  	return nil
 10035  }
 10036  func (m *TailRequest) Unmarshal(dAtA []byte) error {
 10037  	l := len(dAtA)
 10038  	iNdEx := 0
 10039  	for iNdEx < l {
 10040  		preIndex := iNdEx
 10041  		var wire uint64
 10042  		for shift := uint(0); ; shift += 7 {
 10043  			if shift >= 64 {
 10044  				return ErrIntOverflowLogproto
 10045  			}
 10046  			if iNdEx >= l {
 10047  				return io.ErrUnexpectedEOF
 10048  			}
 10049  			b := dAtA[iNdEx]
 10050  			iNdEx++
 10051  			wire |= uint64(b&0x7F) << shift
 10052  			if b < 0x80 {
 10053  				break
 10054  			}
 10055  		}
 10056  		fieldNum := int32(wire >> 3)
 10057  		wireType := int(wire & 0x7)
 10058  		if wireType == 4 {
 10059  			return fmt.Errorf("proto: TailRequest: wiretype end group for non-group")
 10060  		}
 10061  		if fieldNum <= 0 {
 10062  			return fmt.Errorf("proto: TailRequest: illegal tag %d (wire type %d)", fieldNum, wire)
 10063  		}
 10064  		switch fieldNum {
 10065  		case 1:
 10066  			if wireType != 2 {
 10067  				return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType)
 10068  			}
 10069  			var stringLen uint64
 10070  			for shift := uint(0); ; shift += 7 {
 10071  				if shift >= 64 {
 10072  					return ErrIntOverflowLogproto
 10073  				}
 10074  				if iNdEx >= l {
 10075  					return io.ErrUnexpectedEOF
 10076  				}
 10077  				b := dAtA[iNdEx]
 10078  				iNdEx++
 10079  				stringLen |= uint64(b&0x7F) << shift
 10080  				if b < 0x80 {
 10081  					break
 10082  				}
 10083  			}
 10084  			intStringLen := int(stringLen)
 10085  			if intStringLen < 0 {
 10086  				return ErrInvalidLengthLogproto
 10087  			}
 10088  			postIndex := iNdEx + intStringLen
 10089  			if postIndex < 0 {
 10090  				return ErrInvalidLengthLogproto
 10091  			}
 10092  			if postIndex > l {
 10093  				return io.ErrUnexpectedEOF
 10094  			}
 10095  			m.Query = string(dAtA[iNdEx:postIndex])
 10096  			iNdEx = postIndex
 10097  		case 3:
 10098  			if wireType != 0 {
 10099  				return fmt.Errorf("proto: wrong wireType = %d for field DelayFor", wireType)
 10100  			}
 10101  			m.DelayFor = 0
 10102  			for shift := uint(0); ; shift += 7 {
 10103  				if shift >= 64 {
 10104  					return ErrIntOverflowLogproto
 10105  				}
 10106  				if iNdEx >= l {
 10107  					return io.ErrUnexpectedEOF
 10108  				}
 10109  				b := dAtA[iNdEx]
 10110  				iNdEx++
 10111  				m.DelayFor |= uint32(b&0x7F) << shift
 10112  				if b < 0x80 {
 10113  					break
 10114  				}
 10115  			}
 10116  		case 4:
 10117  			if wireType != 0 {
 10118  				return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType)
 10119  			}
 10120  			m.Limit = 0
 10121  			for shift := uint(0); ; shift += 7 {
 10122  				if shift >= 64 {
 10123  					return ErrIntOverflowLogproto
 10124  				}
 10125  				if iNdEx >= l {
 10126  					return io.ErrUnexpectedEOF
 10127  				}
 10128  				b := dAtA[iNdEx]
 10129  				iNdEx++
 10130  				m.Limit |= uint32(b&0x7F) << shift
 10131  				if b < 0x80 {
 10132  					break
 10133  				}
 10134  			}
 10135  		case 5:
 10136  			if wireType != 2 {
 10137  				return fmt.Errorf("proto: wrong wireType = %d for field Start", wireType)
 10138  			}
 10139  			var msglen int
 10140  			for shift := uint(0); ; shift += 7 {
 10141  				if shift >= 64 {
 10142  					return ErrIntOverflowLogproto
 10143  				}
 10144  				if iNdEx >= l {
 10145  					return io.ErrUnexpectedEOF
 10146  				}
 10147  				b := dAtA[iNdEx]
 10148  				iNdEx++
 10149  				msglen |= int(b&0x7F) << shift
 10150  				if b < 0x80 {
 10151  					break
 10152  				}
 10153  			}
 10154  			if msglen < 0 {
 10155  				return ErrInvalidLengthLogproto
 10156  			}
 10157  			postIndex := iNdEx + msglen
 10158  			if postIndex < 0 {
 10159  				return ErrInvalidLengthLogproto
 10160  			}
 10161  			if postIndex > l {
 10162  				return io.ErrUnexpectedEOF
 10163  			}
 10164  			if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.Start, dAtA[iNdEx:postIndex]); err != nil {
 10165  				return err
 10166  			}
 10167  			iNdEx = postIndex
 10168  		default:
 10169  			iNdEx = preIndex
 10170  			skippy, err := skipLogproto(dAtA[iNdEx:])
 10171  			if err != nil {
 10172  				return err
 10173  			}
 10174  			if skippy < 0 {
 10175  				return ErrInvalidLengthLogproto
 10176  			}
 10177  			if (iNdEx + skippy) < 0 {
 10178  				return ErrInvalidLengthLogproto
 10179  			}
 10180  			if (iNdEx + skippy) > l {
 10181  				return io.ErrUnexpectedEOF
 10182  			}
 10183  			iNdEx += skippy
 10184  		}
 10185  	}
 10186  
 10187  	if iNdEx > l {
 10188  		return io.ErrUnexpectedEOF
 10189  	}
 10190  	return nil
 10191  }
 10192  func (m *TailResponse) Unmarshal(dAtA []byte) error {
 10193  	l := len(dAtA)
 10194  	iNdEx := 0
 10195  	for iNdEx < l {
 10196  		preIndex := iNdEx
 10197  		var wire uint64
 10198  		for shift := uint(0); ; shift += 7 {
 10199  			if shift >= 64 {
 10200  				return ErrIntOverflowLogproto
 10201  			}
 10202  			if iNdEx >= l {
 10203  				return io.ErrUnexpectedEOF
 10204  			}
 10205  			b := dAtA[iNdEx]
 10206  			iNdEx++
 10207  			wire |= uint64(b&0x7F) << shift
 10208  			if b < 0x80 {
 10209  				break
 10210  			}
 10211  		}
 10212  		fieldNum := int32(wire >> 3)
 10213  		wireType := int(wire & 0x7)
 10214  		if wireType == 4 {
 10215  			return fmt.Errorf("proto: TailResponse: wiretype end group for non-group")
 10216  		}
 10217  		if fieldNum <= 0 {
 10218  			return fmt.Errorf("proto: TailResponse: illegal tag %d (wire type %d)", fieldNum, wire)
 10219  		}
 10220  		switch fieldNum {
 10221  		case 1:
 10222  			if wireType != 2 {
 10223  				return fmt.Errorf("proto: wrong wireType = %d for field Stream", wireType)
 10224  			}
 10225  			var msglen int
 10226  			for shift := uint(0); ; shift += 7 {
 10227  				if shift >= 64 {
 10228  					return ErrIntOverflowLogproto
 10229  				}
 10230  				if iNdEx >= l {
 10231  					return io.ErrUnexpectedEOF
 10232  				}
 10233  				b := dAtA[iNdEx]
 10234  				iNdEx++
 10235  				msglen |= int(b&0x7F) << shift
 10236  				if b < 0x80 {
 10237  					break
 10238  				}
 10239  			}
 10240  			if msglen < 0 {
 10241  				return ErrInvalidLengthLogproto
 10242  			}
 10243  			postIndex := iNdEx + msglen
 10244  			if postIndex < 0 {
 10245  				return ErrInvalidLengthLogproto
 10246  			}
 10247  			if postIndex > l {
 10248  				return io.ErrUnexpectedEOF
 10249  			}
 10250  			if m.Stream == nil {
 10251  				m.Stream = &Stream{}
 10252  			}
 10253  			if err := m.Stream.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 10254  				return err
 10255  			}
 10256  			iNdEx = postIndex
 10257  		case 2:
 10258  			if wireType != 2 {
 10259  				return fmt.Errorf("proto: wrong wireType = %d for field DroppedStreams", wireType)
 10260  			}
 10261  			var msglen int
 10262  			for shift := uint(0); ; shift += 7 {
 10263  				if shift >= 64 {
 10264  					return ErrIntOverflowLogproto
 10265  				}
 10266  				if iNdEx >= l {
 10267  					return io.ErrUnexpectedEOF
 10268  				}
 10269  				b := dAtA[iNdEx]
 10270  				iNdEx++
 10271  				msglen |= int(b&0x7F) << shift
 10272  				if b < 0x80 {
 10273  					break
 10274  				}
 10275  			}
 10276  			if msglen < 0 {
 10277  				return ErrInvalidLengthLogproto
 10278  			}
 10279  			postIndex := iNdEx + msglen
 10280  			if postIndex < 0 {
 10281  				return ErrInvalidLengthLogproto
 10282  			}
 10283  			if postIndex > l {
 10284  				return io.ErrUnexpectedEOF
 10285  			}
 10286  			m.DroppedStreams = append(m.DroppedStreams, &DroppedStream{})
 10287  			if err := m.DroppedStreams[len(m.DroppedStreams)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 10288  				return err
 10289  			}
 10290  			iNdEx = postIndex
 10291  		default:
 10292  			iNdEx = preIndex
 10293  			skippy, err := skipLogproto(dAtA[iNdEx:])
 10294  			if err != nil {
 10295  				return err
 10296  			}
 10297  			if skippy < 0 {
 10298  				return ErrInvalidLengthLogproto
 10299  			}
 10300  			if (iNdEx + skippy) < 0 {
 10301  				return ErrInvalidLengthLogproto
 10302  			}
 10303  			if (iNdEx + skippy) > l {
 10304  				return io.ErrUnexpectedEOF
 10305  			}
 10306  			iNdEx += skippy
 10307  		}
 10308  	}
 10309  
 10310  	if iNdEx > l {
 10311  		return io.ErrUnexpectedEOF
 10312  	}
 10313  	return nil
 10314  }
 10315  func (m *SeriesRequest) Unmarshal(dAtA []byte) error {
 10316  	l := len(dAtA)
 10317  	iNdEx := 0
 10318  	for iNdEx < l {
 10319  		preIndex := iNdEx
 10320  		var wire uint64
 10321  		for shift := uint(0); ; shift += 7 {
 10322  			if shift >= 64 {
 10323  				return ErrIntOverflowLogproto
 10324  			}
 10325  			if iNdEx >= l {
 10326  				return io.ErrUnexpectedEOF
 10327  			}
 10328  			b := dAtA[iNdEx]
 10329  			iNdEx++
 10330  			wire |= uint64(b&0x7F) << shift
 10331  			if b < 0x80 {
 10332  				break
 10333  			}
 10334  		}
 10335  		fieldNum := int32(wire >> 3)
 10336  		wireType := int(wire & 0x7)
 10337  		if wireType == 4 {
 10338  			return fmt.Errorf("proto: SeriesRequest: wiretype end group for non-group")
 10339  		}
 10340  		if fieldNum <= 0 {
 10341  			return fmt.Errorf("proto: SeriesRequest: illegal tag %d (wire type %d)", fieldNum, wire)
 10342  		}
 10343  		switch fieldNum {
 10344  		case 1:
 10345  			if wireType != 2 {
 10346  				return fmt.Errorf("proto: wrong wireType = %d for field Start", wireType)
 10347  			}
 10348  			var msglen int
 10349  			for shift := uint(0); ; shift += 7 {
 10350  				if shift >= 64 {
 10351  					return ErrIntOverflowLogproto
 10352  				}
 10353  				if iNdEx >= l {
 10354  					return io.ErrUnexpectedEOF
 10355  				}
 10356  				b := dAtA[iNdEx]
 10357  				iNdEx++
 10358  				msglen |= int(b&0x7F) << shift
 10359  				if b < 0x80 {
 10360  					break
 10361  				}
 10362  			}
 10363  			if msglen < 0 {
 10364  				return ErrInvalidLengthLogproto
 10365  			}
 10366  			postIndex := iNdEx + msglen
 10367  			if postIndex < 0 {
 10368  				return ErrInvalidLengthLogproto
 10369  			}
 10370  			if postIndex > l {
 10371  				return io.ErrUnexpectedEOF
 10372  			}
 10373  			if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.Start, dAtA[iNdEx:postIndex]); err != nil {
 10374  				return err
 10375  			}
 10376  			iNdEx = postIndex
 10377  		case 2:
 10378  			if wireType != 2 {
 10379  				return fmt.Errorf("proto: wrong wireType = %d for field End", wireType)
 10380  			}
 10381  			var msglen int
 10382  			for shift := uint(0); ; shift += 7 {
 10383  				if shift >= 64 {
 10384  					return ErrIntOverflowLogproto
 10385  				}
 10386  				if iNdEx >= l {
 10387  					return io.ErrUnexpectedEOF
 10388  				}
 10389  				b := dAtA[iNdEx]
 10390  				iNdEx++
 10391  				msglen |= int(b&0x7F) << shift
 10392  				if b < 0x80 {
 10393  					break
 10394  				}
 10395  			}
 10396  			if msglen < 0 {
 10397  				return ErrInvalidLengthLogproto
 10398  			}
 10399  			postIndex := iNdEx + msglen
 10400  			if postIndex < 0 {
 10401  				return ErrInvalidLengthLogproto
 10402  			}
 10403  			if postIndex > l {
 10404  				return io.ErrUnexpectedEOF
 10405  			}
 10406  			if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.End, dAtA[iNdEx:postIndex]); err != nil {
 10407  				return err
 10408  			}
 10409  			iNdEx = postIndex
 10410  		case 3:
 10411  			if wireType != 2 {
 10412  				return fmt.Errorf("proto: wrong wireType = %d for field Groups", wireType)
 10413  			}
 10414  			var stringLen uint64
 10415  			for shift := uint(0); ; shift += 7 {
 10416  				if shift >= 64 {
 10417  					return ErrIntOverflowLogproto
 10418  				}
 10419  				if iNdEx >= l {
 10420  					return io.ErrUnexpectedEOF
 10421  				}
 10422  				b := dAtA[iNdEx]
 10423  				iNdEx++
 10424  				stringLen |= uint64(b&0x7F) << shift
 10425  				if b < 0x80 {
 10426  					break
 10427  				}
 10428  			}
 10429  			intStringLen := int(stringLen)
 10430  			if intStringLen < 0 {
 10431  				return ErrInvalidLengthLogproto
 10432  			}
 10433  			postIndex := iNdEx + intStringLen
 10434  			if postIndex < 0 {
 10435  				return ErrInvalidLengthLogproto
 10436  			}
 10437  			if postIndex > l {
 10438  				return io.ErrUnexpectedEOF
 10439  			}
 10440  			m.Groups = append(m.Groups, string(dAtA[iNdEx:postIndex]))
 10441  			iNdEx = postIndex
 10442  		case 4:
 10443  			if wireType != 2 {
 10444  				return fmt.Errorf("proto: wrong wireType = %d for field Shards", wireType)
 10445  			}
 10446  			var stringLen uint64
 10447  			for shift := uint(0); ; shift += 7 {
 10448  				if shift >= 64 {
 10449  					return ErrIntOverflowLogproto
 10450  				}
 10451  				if iNdEx >= l {
 10452  					return io.ErrUnexpectedEOF
 10453  				}
 10454  				b := dAtA[iNdEx]
 10455  				iNdEx++
 10456  				stringLen |= uint64(b&0x7F) << shift
 10457  				if b < 0x80 {
 10458  					break
 10459  				}
 10460  			}
 10461  			intStringLen := int(stringLen)
 10462  			if intStringLen < 0 {
 10463  				return ErrInvalidLengthLogproto
 10464  			}
 10465  			postIndex := iNdEx + intStringLen
 10466  			if postIndex < 0 {
 10467  				return ErrInvalidLengthLogproto
 10468  			}
 10469  			if postIndex > l {
 10470  				return io.ErrUnexpectedEOF
 10471  			}
 10472  			m.Shards = append(m.Shards, string(dAtA[iNdEx:postIndex]))
 10473  			iNdEx = postIndex
 10474  		default:
 10475  			iNdEx = preIndex
 10476  			skippy, err := skipLogproto(dAtA[iNdEx:])
 10477  			if err != nil {
 10478  				return err
 10479  			}
 10480  			if skippy < 0 {
 10481  				return ErrInvalidLengthLogproto
 10482  			}
 10483  			if (iNdEx + skippy) < 0 {
 10484  				return ErrInvalidLengthLogproto
 10485  			}
 10486  			if (iNdEx + skippy) > l {
 10487  				return io.ErrUnexpectedEOF
 10488  			}
 10489  			iNdEx += skippy
 10490  		}
 10491  	}
 10492  
 10493  	if iNdEx > l {
 10494  		return io.ErrUnexpectedEOF
 10495  	}
 10496  	return nil
 10497  }
 10498  func (m *SeriesResponse) Unmarshal(dAtA []byte) error {
 10499  	l := len(dAtA)
 10500  	iNdEx := 0
 10501  	for iNdEx < l {
 10502  		preIndex := iNdEx
 10503  		var wire uint64
 10504  		for shift := uint(0); ; shift += 7 {
 10505  			if shift >= 64 {
 10506  				return ErrIntOverflowLogproto
 10507  			}
 10508  			if iNdEx >= l {
 10509  				return io.ErrUnexpectedEOF
 10510  			}
 10511  			b := dAtA[iNdEx]
 10512  			iNdEx++
 10513  			wire |= uint64(b&0x7F) << shift
 10514  			if b < 0x80 {
 10515  				break
 10516  			}
 10517  		}
 10518  		fieldNum := int32(wire >> 3)
 10519  		wireType := int(wire & 0x7)
 10520  		if wireType == 4 {
 10521  			return fmt.Errorf("proto: SeriesResponse: wiretype end group for non-group")
 10522  		}
 10523  		if fieldNum <= 0 {
 10524  			return fmt.Errorf("proto: SeriesResponse: illegal tag %d (wire type %d)", fieldNum, wire)
 10525  		}
 10526  		switch fieldNum {
 10527  		case 1:
 10528  			if wireType != 2 {
 10529  				return fmt.Errorf("proto: wrong wireType = %d for field Series", wireType)
 10530  			}
 10531  			var msglen int
 10532  			for shift := uint(0); ; shift += 7 {
 10533  				if shift >= 64 {
 10534  					return ErrIntOverflowLogproto
 10535  				}
 10536  				if iNdEx >= l {
 10537  					return io.ErrUnexpectedEOF
 10538  				}
 10539  				b := dAtA[iNdEx]
 10540  				iNdEx++
 10541  				msglen |= int(b&0x7F) << shift
 10542  				if b < 0x80 {
 10543  					break
 10544  				}
 10545  			}
 10546  			if msglen < 0 {
 10547  				return ErrInvalidLengthLogproto
 10548  			}
 10549  			postIndex := iNdEx + msglen
 10550  			if postIndex < 0 {
 10551  				return ErrInvalidLengthLogproto
 10552  			}
 10553  			if postIndex > l {
 10554  				return io.ErrUnexpectedEOF
 10555  			}
 10556  			m.Series = append(m.Series, SeriesIdentifier{})
 10557  			if err := m.Series[len(m.Series)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 10558  				return err
 10559  			}
 10560  			iNdEx = postIndex
 10561  		default:
 10562  			iNdEx = preIndex
 10563  			skippy, err := skipLogproto(dAtA[iNdEx:])
 10564  			if err != nil {
 10565  				return err
 10566  			}
 10567  			if skippy < 0 {
 10568  				return ErrInvalidLengthLogproto
 10569  			}
 10570  			if (iNdEx + skippy) < 0 {
 10571  				return ErrInvalidLengthLogproto
 10572  			}
 10573  			if (iNdEx + skippy) > l {
 10574  				return io.ErrUnexpectedEOF
 10575  			}
 10576  			iNdEx += skippy
 10577  		}
 10578  	}
 10579  
 10580  	if iNdEx > l {
 10581  		return io.ErrUnexpectedEOF
 10582  	}
 10583  	return nil
 10584  }
 10585  func (m *SeriesIdentifier) Unmarshal(dAtA []byte) error {
 10586  	l := len(dAtA)
 10587  	iNdEx := 0
 10588  	for iNdEx < l {
 10589  		preIndex := iNdEx
 10590  		var wire uint64
 10591  		for shift := uint(0); ; shift += 7 {
 10592  			if shift >= 64 {
 10593  				return ErrIntOverflowLogproto
 10594  			}
 10595  			if iNdEx >= l {
 10596  				return io.ErrUnexpectedEOF
 10597  			}
 10598  			b := dAtA[iNdEx]
 10599  			iNdEx++
 10600  			wire |= uint64(b&0x7F) << shift
 10601  			if b < 0x80 {
 10602  				break
 10603  			}
 10604  		}
 10605  		fieldNum := int32(wire >> 3)
 10606  		wireType := int(wire & 0x7)
 10607  		if wireType == 4 {
 10608  			return fmt.Errorf("proto: SeriesIdentifier: wiretype end group for non-group")
 10609  		}
 10610  		if fieldNum <= 0 {
 10611  			return fmt.Errorf("proto: SeriesIdentifier: illegal tag %d (wire type %d)", fieldNum, wire)
 10612  		}
 10613  		switch fieldNum {
 10614  		case 1:
 10615  			if wireType != 2 {
 10616  				return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType)
 10617  			}
 10618  			var msglen int
 10619  			for shift := uint(0); ; shift += 7 {
 10620  				if shift >= 64 {
 10621  					return ErrIntOverflowLogproto
 10622  				}
 10623  				if iNdEx >= l {
 10624  					return io.ErrUnexpectedEOF
 10625  				}
 10626  				b := dAtA[iNdEx]
 10627  				iNdEx++
 10628  				msglen |= int(b&0x7F) << shift
 10629  				if b < 0x80 {
 10630  					break
 10631  				}
 10632  			}
 10633  			if msglen < 0 {
 10634  				return ErrInvalidLengthLogproto
 10635  			}
 10636  			postIndex := iNdEx + msglen
 10637  			if postIndex < 0 {
 10638  				return ErrInvalidLengthLogproto
 10639  			}
 10640  			if postIndex > l {
 10641  				return io.ErrUnexpectedEOF
 10642  			}
 10643  			if m.Labels == nil {
 10644  				m.Labels = make(map[string]string)
 10645  			}
 10646  			var mapkey string
 10647  			var mapvalue string
 10648  			for iNdEx < postIndex {
 10649  				entryPreIndex := iNdEx
 10650  				var wire uint64
 10651  				for shift := uint(0); ; shift += 7 {
 10652  					if shift >= 64 {
 10653  						return ErrIntOverflowLogproto
 10654  					}
 10655  					if iNdEx >= l {
 10656  						return io.ErrUnexpectedEOF
 10657  					}
 10658  					b := dAtA[iNdEx]
 10659  					iNdEx++
 10660  					wire |= uint64(b&0x7F) << shift
 10661  					if b < 0x80 {
 10662  						break
 10663  					}
 10664  				}
 10665  				fieldNum := int32(wire >> 3)
 10666  				if fieldNum == 1 {
 10667  					var stringLenmapkey uint64
 10668  					for shift := uint(0); ; shift += 7 {
 10669  						if shift >= 64 {
 10670  							return ErrIntOverflowLogproto
 10671  						}
 10672  						if iNdEx >= l {
 10673  							return io.ErrUnexpectedEOF
 10674  						}
 10675  						b := dAtA[iNdEx]
 10676  						iNdEx++
 10677  						stringLenmapkey |= uint64(b&0x7F) << shift
 10678  						if b < 0x80 {
 10679  							break
 10680  						}
 10681  					}
 10682  					intStringLenmapkey := int(stringLenmapkey)
 10683  					if intStringLenmapkey < 0 {
 10684  						return ErrInvalidLengthLogproto
 10685  					}
 10686  					postStringIndexmapkey := iNdEx + intStringLenmapkey
 10687  					if postStringIndexmapkey < 0 {
 10688  						return ErrInvalidLengthLogproto
 10689  					}
 10690  					if postStringIndexmapkey > l {
 10691  						return io.ErrUnexpectedEOF
 10692  					}
 10693  					mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
 10694  					iNdEx = postStringIndexmapkey
 10695  				} else if fieldNum == 2 {
 10696  					var stringLenmapvalue uint64
 10697  					for shift := uint(0); ; shift += 7 {
 10698  						if shift >= 64 {
 10699  							return ErrIntOverflowLogproto
 10700  						}
 10701  						if iNdEx >= l {
 10702  							return io.ErrUnexpectedEOF
 10703  						}
 10704  						b := dAtA[iNdEx]
 10705  						iNdEx++
 10706  						stringLenmapvalue |= uint64(b&0x7F) << shift
 10707  						if b < 0x80 {
 10708  							break
 10709  						}
 10710  					}
 10711  					intStringLenmapvalue := int(stringLenmapvalue)
 10712  					if intStringLenmapvalue < 0 {
 10713  						return ErrInvalidLengthLogproto
 10714  					}
 10715  					postStringIndexmapvalue := iNdEx + intStringLenmapvalue
 10716  					if postStringIndexmapvalue < 0 {
 10717  						return ErrInvalidLengthLogproto
 10718  					}
 10719  					if postStringIndexmapvalue > l {
 10720  						return io.ErrUnexpectedEOF
 10721  					}
 10722  					mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
 10723  					iNdEx = postStringIndexmapvalue
 10724  				} else {
 10725  					iNdEx = entryPreIndex
 10726  					skippy, err := skipLogproto(dAtA[iNdEx:])
 10727  					if err != nil {
 10728  						return err
 10729  					}
 10730  					if skippy < 0 {
 10731  						return ErrInvalidLengthLogproto
 10732  					}
 10733  					if (iNdEx + skippy) > postIndex {
 10734  						return io.ErrUnexpectedEOF
 10735  					}
 10736  					iNdEx += skippy
 10737  				}
 10738  			}
 10739  			m.Labels[mapkey] = mapvalue
 10740  			iNdEx = postIndex
 10741  		default:
 10742  			iNdEx = preIndex
 10743  			skippy, err := skipLogproto(dAtA[iNdEx:])
 10744  			if err != nil {
 10745  				return err
 10746  			}
 10747  			if skippy < 0 {
 10748  				return ErrInvalidLengthLogproto
 10749  			}
 10750  			if (iNdEx + skippy) < 0 {
 10751  				return ErrInvalidLengthLogproto
 10752  			}
 10753  			if (iNdEx + skippy) > l {
 10754  				return io.ErrUnexpectedEOF
 10755  			}
 10756  			iNdEx += skippy
 10757  		}
 10758  	}
 10759  
 10760  	if iNdEx > l {
 10761  		return io.ErrUnexpectedEOF
 10762  	}
 10763  	return nil
 10764  }
 10765  func (m *DroppedStream) Unmarshal(dAtA []byte) error {
 10766  	l := len(dAtA)
 10767  	iNdEx := 0
 10768  	for iNdEx < l {
 10769  		preIndex := iNdEx
 10770  		var wire uint64
 10771  		for shift := uint(0); ; shift += 7 {
 10772  			if shift >= 64 {
 10773  				return ErrIntOverflowLogproto
 10774  			}
 10775  			if iNdEx >= l {
 10776  				return io.ErrUnexpectedEOF
 10777  			}
 10778  			b := dAtA[iNdEx]
 10779  			iNdEx++
 10780  			wire |= uint64(b&0x7F) << shift
 10781  			if b < 0x80 {
 10782  				break
 10783  			}
 10784  		}
 10785  		fieldNum := int32(wire >> 3)
 10786  		wireType := int(wire & 0x7)
 10787  		if wireType == 4 {
 10788  			return fmt.Errorf("proto: DroppedStream: wiretype end group for non-group")
 10789  		}
 10790  		if fieldNum <= 0 {
 10791  			return fmt.Errorf("proto: DroppedStream: illegal tag %d (wire type %d)", fieldNum, wire)
 10792  		}
 10793  		switch fieldNum {
 10794  		case 1:
 10795  			if wireType != 2 {
 10796  				return fmt.Errorf("proto: wrong wireType = %d for field From", wireType)
 10797  			}
 10798  			var msglen int
 10799  			for shift := uint(0); ; shift += 7 {
 10800  				if shift >= 64 {
 10801  					return ErrIntOverflowLogproto
 10802  				}
 10803  				if iNdEx >= l {
 10804  					return io.ErrUnexpectedEOF
 10805  				}
 10806  				b := dAtA[iNdEx]
 10807  				iNdEx++
 10808  				msglen |= int(b&0x7F) << shift
 10809  				if b < 0x80 {
 10810  					break
 10811  				}
 10812  			}
 10813  			if msglen < 0 {
 10814  				return ErrInvalidLengthLogproto
 10815  			}
 10816  			postIndex := iNdEx + msglen
 10817  			if postIndex < 0 {
 10818  				return ErrInvalidLengthLogproto
 10819  			}
 10820  			if postIndex > l {
 10821  				return io.ErrUnexpectedEOF
 10822  			}
 10823  			if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.From, dAtA[iNdEx:postIndex]); err != nil {
 10824  				return err
 10825  			}
 10826  			iNdEx = postIndex
 10827  		case 2:
 10828  			if wireType != 2 {
 10829  				return fmt.Errorf("proto: wrong wireType = %d for field To", wireType)
 10830  			}
 10831  			var msglen int
 10832  			for shift := uint(0); ; shift += 7 {
 10833  				if shift >= 64 {
 10834  					return ErrIntOverflowLogproto
 10835  				}
 10836  				if iNdEx >= l {
 10837  					return io.ErrUnexpectedEOF
 10838  				}
 10839  				b := dAtA[iNdEx]
 10840  				iNdEx++
 10841  				msglen |= int(b&0x7F) << shift
 10842  				if b < 0x80 {
 10843  					break
 10844  				}
 10845  			}
 10846  			if msglen < 0 {
 10847  				return ErrInvalidLengthLogproto
 10848  			}
 10849  			postIndex := iNdEx + msglen
 10850  			if postIndex < 0 {
 10851  				return ErrInvalidLengthLogproto
 10852  			}
 10853  			if postIndex > l {
 10854  				return io.ErrUnexpectedEOF
 10855  			}
 10856  			if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.To, dAtA[iNdEx:postIndex]); err != nil {
 10857  				return err
 10858  			}
 10859  			iNdEx = postIndex
 10860  		case 3:
 10861  			if wireType != 2 {
 10862  				return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType)
 10863  			}
 10864  			var stringLen uint64
 10865  			for shift := uint(0); ; shift += 7 {
 10866  				if shift >= 64 {
 10867  					return ErrIntOverflowLogproto
 10868  				}
 10869  				if iNdEx >= l {
 10870  					return io.ErrUnexpectedEOF
 10871  				}
 10872  				b := dAtA[iNdEx]
 10873  				iNdEx++
 10874  				stringLen |= uint64(b&0x7F) << shift
 10875  				if b < 0x80 {
 10876  					break
 10877  				}
 10878  			}
 10879  			intStringLen := int(stringLen)
 10880  			if intStringLen < 0 {
 10881  				return ErrInvalidLengthLogproto
 10882  			}
 10883  			postIndex := iNdEx + intStringLen
 10884  			if postIndex < 0 {
 10885  				return ErrInvalidLengthLogproto
 10886  			}
 10887  			if postIndex > l {
 10888  				return io.ErrUnexpectedEOF
 10889  			}
 10890  			m.Labels = string(dAtA[iNdEx:postIndex])
 10891  			iNdEx = postIndex
 10892  		default:
 10893  			iNdEx = preIndex
 10894  			skippy, err := skipLogproto(dAtA[iNdEx:])
 10895  			if err != nil {
 10896  				return err
 10897  			}
 10898  			if skippy < 0 {
 10899  				return ErrInvalidLengthLogproto
 10900  			}
 10901  			if (iNdEx + skippy) < 0 {
 10902  				return ErrInvalidLengthLogproto
 10903  			}
 10904  			if (iNdEx + skippy) > l {
 10905  				return io.ErrUnexpectedEOF
 10906  			}
 10907  			iNdEx += skippy
 10908  		}
 10909  	}
 10910  
 10911  	if iNdEx > l {
 10912  		return io.ErrUnexpectedEOF
 10913  	}
 10914  	return nil
 10915  }
 10916  func (m *TimeSeriesChunk) Unmarshal(dAtA []byte) error {
 10917  	l := len(dAtA)
 10918  	iNdEx := 0
 10919  	for iNdEx < l {
 10920  		preIndex := iNdEx
 10921  		var wire uint64
 10922  		for shift := uint(0); ; shift += 7 {
 10923  			if shift >= 64 {
 10924  				return ErrIntOverflowLogproto
 10925  			}
 10926  			if iNdEx >= l {
 10927  				return io.ErrUnexpectedEOF
 10928  			}
 10929  			b := dAtA[iNdEx]
 10930  			iNdEx++
 10931  			wire |= uint64(b&0x7F) << shift
 10932  			if b < 0x80 {
 10933  				break
 10934  			}
 10935  		}
 10936  		fieldNum := int32(wire >> 3)
 10937  		wireType := int(wire & 0x7)
 10938  		if wireType == 4 {
 10939  			return fmt.Errorf("proto: TimeSeriesChunk: wiretype end group for non-group")
 10940  		}
 10941  		if fieldNum <= 0 {
 10942  			return fmt.Errorf("proto: TimeSeriesChunk: illegal tag %d (wire type %d)", fieldNum, wire)
 10943  		}
 10944  		switch fieldNum {
 10945  		case 1:
 10946  			if wireType != 2 {
 10947  				return fmt.Errorf("proto: wrong wireType = %d for field FromIngesterId", wireType)
 10948  			}
 10949  			var stringLen uint64
 10950  			for shift := uint(0); ; shift += 7 {
 10951  				if shift >= 64 {
 10952  					return ErrIntOverflowLogproto
 10953  				}
 10954  				if iNdEx >= l {
 10955  					return io.ErrUnexpectedEOF
 10956  				}
 10957  				b := dAtA[iNdEx]
 10958  				iNdEx++
 10959  				stringLen |= uint64(b&0x7F) << shift
 10960  				if b < 0x80 {
 10961  					break
 10962  				}
 10963  			}
 10964  			intStringLen := int(stringLen)
 10965  			if intStringLen < 0 {
 10966  				return ErrInvalidLengthLogproto
 10967  			}
 10968  			postIndex := iNdEx + intStringLen
 10969  			if postIndex < 0 {
 10970  				return ErrInvalidLengthLogproto
 10971  			}
 10972  			if postIndex > l {
 10973  				return io.ErrUnexpectedEOF
 10974  			}
 10975  			m.FromIngesterId = string(dAtA[iNdEx:postIndex])
 10976  			iNdEx = postIndex
 10977  		case 2:
 10978  			if wireType != 2 {
 10979  				return fmt.Errorf("proto: wrong wireType = %d for field UserId", wireType)
 10980  			}
 10981  			var stringLen uint64
 10982  			for shift := uint(0); ; shift += 7 {
 10983  				if shift >= 64 {
 10984  					return ErrIntOverflowLogproto
 10985  				}
 10986  				if iNdEx >= l {
 10987  					return io.ErrUnexpectedEOF
 10988  				}
 10989  				b := dAtA[iNdEx]
 10990  				iNdEx++
 10991  				stringLen |= uint64(b&0x7F) << shift
 10992  				if b < 0x80 {
 10993  					break
 10994  				}
 10995  			}
 10996  			intStringLen := int(stringLen)
 10997  			if intStringLen < 0 {
 10998  				return ErrInvalidLengthLogproto
 10999  			}
 11000  			postIndex := iNdEx + intStringLen
 11001  			if postIndex < 0 {
 11002  				return ErrInvalidLengthLogproto
 11003  			}
 11004  			if postIndex > l {
 11005  				return io.ErrUnexpectedEOF
 11006  			}
 11007  			m.UserId = string(dAtA[iNdEx:postIndex])
 11008  			iNdEx = postIndex
 11009  		case 3:
 11010  			if wireType != 2 {
 11011  				return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType)
 11012  			}
 11013  			var msglen int
 11014  			for shift := uint(0); ; shift += 7 {
 11015  				if shift >= 64 {
 11016  					return ErrIntOverflowLogproto
 11017  				}
 11018  				if iNdEx >= l {
 11019  					return io.ErrUnexpectedEOF
 11020  				}
 11021  				b := dAtA[iNdEx]
 11022  				iNdEx++
 11023  				msglen |= int(b&0x7F) << shift
 11024  				if b < 0x80 {
 11025  					break
 11026  				}
 11027  			}
 11028  			if msglen < 0 {
 11029  				return ErrInvalidLengthLogproto
 11030  			}
 11031  			postIndex := iNdEx + msglen
 11032  			if postIndex < 0 {
 11033  				return ErrInvalidLengthLogproto
 11034  			}
 11035  			if postIndex > l {
 11036  				return io.ErrUnexpectedEOF
 11037  			}
 11038  			m.Labels = append(m.Labels, &LabelPair{})
 11039  			if err := m.Labels[len(m.Labels)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 11040  				return err
 11041  			}
 11042  			iNdEx = postIndex
 11043  		case 4:
 11044  			if wireType != 2 {
 11045  				return fmt.Errorf("proto: wrong wireType = %d for field Chunks", wireType)
 11046  			}
 11047  			var msglen int
 11048  			for shift := uint(0); ; shift += 7 {
 11049  				if shift >= 64 {
 11050  					return ErrIntOverflowLogproto
 11051  				}
 11052  				if iNdEx >= l {
 11053  					return io.ErrUnexpectedEOF
 11054  				}
 11055  				b := dAtA[iNdEx]
 11056  				iNdEx++
 11057  				msglen |= int(b&0x7F) << shift
 11058  				if b < 0x80 {
 11059  					break
 11060  				}
 11061  			}
 11062  			if msglen < 0 {
 11063  				return ErrInvalidLengthLogproto
 11064  			}
 11065  			postIndex := iNdEx + msglen
 11066  			if postIndex < 0 {
 11067  				return ErrInvalidLengthLogproto
 11068  			}
 11069  			if postIndex > l {
 11070  				return io.ErrUnexpectedEOF
 11071  			}
 11072  			m.Chunks = append(m.Chunks, &Chunk{})
 11073  			if err := m.Chunks[len(m.Chunks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 11074  				return err
 11075  			}
 11076  			iNdEx = postIndex
 11077  		default:
 11078  			iNdEx = preIndex
 11079  			skippy, err := skipLogproto(dAtA[iNdEx:])
 11080  			if err != nil {
 11081  				return err
 11082  			}
 11083  			if skippy < 0 {
 11084  				return ErrInvalidLengthLogproto
 11085  			}
 11086  			if (iNdEx + skippy) < 0 {
 11087  				return ErrInvalidLengthLogproto
 11088  			}
 11089  			if (iNdEx + skippy) > l {
 11090  				return io.ErrUnexpectedEOF
 11091  			}
 11092  			iNdEx += skippy
 11093  		}
 11094  	}
 11095  
 11096  	if iNdEx > l {
 11097  		return io.ErrUnexpectedEOF
 11098  	}
 11099  	return nil
 11100  }
 11101  func (m *LabelPair) Unmarshal(dAtA []byte) error {
 11102  	l := len(dAtA)
 11103  	iNdEx := 0
 11104  	for iNdEx < l {
 11105  		preIndex := iNdEx
 11106  		var wire uint64
 11107  		for shift := uint(0); ; shift += 7 {
 11108  			if shift >= 64 {
 11109  				return ErrIntOverflowLogproto
 11110  			}
 11111  			if iNdEx >= l {
 11112  				return io.ErrUnexpectedEOF
 11113  			}
 11114  			b := dAtA[iNdEx]
 11115  			iNdEx++
 11116  			wire |= uint64(b&0x7F) << shift
 11117  			if b < 0x80 {
 11118  				break
 11119  			}
 11120  		}
 11121  		fieldNum := int32(wire >> 3)
 11122  		wireType := int(wire & 0x7)
 11123  		if wireType == 4 {
 11124  			return fmt.Errorf("proto: LabelPair: wiretype end group for non-group")
 11125  		}
 11126  		if fieldNum <= 0 {
 11127  			return fmt.Errorf("proto: LabelPair: illegal tag %d (wire type %d)", fieldNum, wire)
 11128  		}
 11129  		switch fieldNum {
 11130  		case 1:
 11131  			if wireType != 2 {
 11132  				return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
 11133  			}
 11134  			var stringLen uint64
 11135  			for shift := uint(0); ; shift += 7 {
 11136  				if shift >= 64 {
 11137  					return ErrIntOverflowLogproto
 11138  				}
 11139  				if iNdEx >= l {
 11140  					return io.ErrUnexpectedEOF
 11141  				}
 11142  				b := dAtA[iNdEx]
 11143  				iNdEx++
 11144  				stringLen |= uint64(b&0x7F) << shift
 11145  				if b < 0x80 {
 11146  					break
 11147  				}
 11148  			}
 11149  			intStringLen := int(stringLen)
 11150  			if intStringLen < 0 {
 11151  				return ErrInvalidLengthLogproto
 11152  			}
 11153  			postIndex := iNdEx + intStringLen
 11154  			if postIndex < 0 {
 11155  				return ErrInvalidLengthLogproto
 11156  			}
 11157  			if postIndex > l {
 11158  				return io.ErrUnexpectedEOF
 11159  			}
 11160  			m.Name = string(dAtA[iNdEx:postIndex])
 11161  			iNdEx = postIndex
 11162  		case 2:
 11163  			if wireType != 2 {
 11164  				return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
 11165  			}
 11166  			var stringLen uint64
 11167  			for shift := uint(0); ; shift += 7 {
 11168  				if shift >= 64 {
 11169  					return ErrIntOverflowLogproto
 11170  				}
 11171  				if iNdEx >= l {
 11172  					return io.ErrUnexpectedEOF
 11173  				}
 11174  				b := dAtA[iNdEx]
 11175  				iNdEx++
 11176  				stringLen |= uint64(b&0x7F) << shift
 11177  				if b < 0x80 {
 11178  					break
 11179  				}
 11180  			}
 11181  			intStringLen := int(stringLen)
 11182  			if intStringLen < 0 {
 11183  				return ErrInvalidLengthLogproto
 11184  			}
 11185  			postIndex := iNdEx + intStringLen
 11186  			if postIndex < 0 {
 11187  				return ErrInvalidLengthLogproto
 11188  			}
 11189  			if postIndex > l {
 11190  				return io.ErrUnexpectedEOF
 11191  			}
 11192  			m.Value = string(dAtA[iNdEx:postIndex])
 11193  			iNdEx = postIndex
 11194  		default:
 11195  			iNdEx = preIndex
 11196  			skippy, err := skipLogproto(dAtA[iNdEx:])
 11197  			if err != nil {
 11198  				return err
 11199  			}
 11200  			if skippy < 0 {
 11201  				return ErrInvalidLengthLogproto
 11202  			}
 11203  			if (iNdEx + skippy) < 0 {
 11204  				return ErrInvalidLengthLogproto
 11205  			}
 11206  			if (iNdEx + skippy) > l {
 11207  				return io.ErrUnexpectedEOF
 11208  			}
 11209  			iNdEx += skippy
 11210  		}
 11211  	}
 11212  
 11213  	if iNdEx > l {
 11214  		return io.ErrUnexpectedEOF
 11215  	}
 11216  	return nil
 11217  }
 11218  func (m *LegacyLabelPair) Unmarshal(dAtA []byte) error {
 11219  	l := len(dAtA)
 11220  	iNdEx := 0
 11221  	for iNdEx < l {
 11222  		preIndex := iNdEx
 11223  		var wire uint64
 11224  		for shift := uint(0); ; shift += 7 {
 11225  			if shift >= 64 {
 11226  				return ErrIntOverflowLogproto
 11227  			}
 11228  			if iNdEx >= l {
 11229  				return io.ErrUnexpectedEOF
 11230  			}
 11231  			b := dAtA[iNdEx]
 11232  			iNdEx++
 11233  			wire |= uint64(b&0x7F) << shift
 11234  			if b < 0x80 {
 11235  				break
 11236  			}
 11237  		}
 11238  		fieldNum := int32(wire >> 3)
 11239  		wireType := int(wire & 0x7)
 11240  		if wireType == 4 {
 11241  			return fmt.Errorf("proto: LegacyLabelPair: wiretype end group for non-group")
 11242  		}
 11243  		if fieldNum <= 0 {
 11244  			return fmt.Errorf("proto: LegacyLabelPair: illegal tag %d (wire type %d)", fieldNum, wire)
 11245  		}
 11246  		switch fieldNum {
 11247  		case 1:
 11248  			if wireType != 2 {
 11249  				return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
 11250  			}
 11251  			var byteLen int
 11252  			for shift := uint(0); ; shift += 7 {
 11253  				if shift >= 64 {
 11254  					return ErrIntOverflowLogproto
 11255  				}
 11256  				if iNdEx >= l {
 11257  					return io.ErrUnexpectedEOF
 11258  				}
 11259  				b := dAtA[iNdEx]
 11260  				iNdEx++
 11261  				byteLen |= int(b&0x7F) << shift
 11262  				if b < 0x80 {
 11263  					break
 11264  				}
 11265  			}
 11266  			if byteLen < 0 {
 11267  				return ErrInvalidLengthLogproto
 11268  			}
 11269  			postIndex := iNdEx + byteLen
 11270  			if postIndex < 0 {
 11271  				return ErrInvalidLengthLogproto
 11272  			}
 11273  			if postIndex > l {
 11274  				return io.ErrUnexpectedEOF
 11275  			}
 11276  			m.Name = append(m.Name[:0], dAtA[iNdEx:postIndex]...)
 11277  			if m.Name == nil {
 11278  				m.Name = []byte{}
 11279  			}
 11280  			iNdEx = postIndex
 11281  		case 2:
 11282  			if wireType != 2 {
 11283  				return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
 11284  			}
 11285  			var byteLen int
 11286  			for shift := uint(0); ; shift += 7 {
 11287  				if shift >= 64 {
 11288  					return ErrIntOverflowLogproto
 11289  				}
 11290  				if iNdEx >= l {
 11291  					return io.ErrUnexpectedEOF
 11292  				}
 11293  				b := dAtA[iNdEx]
 11294  				iNdEx++
 11295  				byteLen |= int(b&0x7F) << shift
 11296  				if b < 0x80 {
 11297  					break
 11298  				}
 11299  			}
 11300  			if byteLen < 0 {
 11301  				return ErrInvalidLengthLogproto
 11302  			}
 11303  			postIndex := iNdEx + byteLen
 11304  			if postIndex < 0 {
 11305  				return ErrInvalidLengthLogproto
 11306  			}
 11307  			if postIndex > l {
 11308  				return io.ErrUnexpectedEOF
 11309  			}
 11310  			m.Value = append(m.Value[:0], dAtA[iNdEx:postIndex]...)
 11311  			if m.Value == nil {
 11312  				m.Value = []byte{}
 11313  			}
 11314  			iNdEx = postIndex
 11315  		default:
 11316  			iNdEx = preIndex
 11317  			skippy, err := skipLogproto(dAtA[iNdEx:])
 11318  			if err != nil {
 11319  				return err
 11320  			}
 11321  			if skippy < 0 {
 11322  				return ErrInvalidLengthLogproto
 11323  			}
 11324  			if (iNdEx + skippy) < 0 {
 11325  				return ErrInvalidLengthLogproto
 11326  			}
 11327  			if (iNdEx + skippy) > l {
 11328  				return io.ErrUnexpectedEOF
 11329  			}
 11330  			iNdEx += skippy
 11331  		}
 11332  	}
 11333  
 11334  	if iNdEx > l {
 11335  		return io.ErrUnexpectedEOF
 11336  	}
 11337  	return nil
 11338  }
 11339  func (m *Chunk) Unmarshal(dAtA []byte) error {
 11340  	l := len(dAtA)
 11341  	iNdEx := 0
 11342  	for iNdEx < l {
 11343  		preIndex := iNdEx
 11344  		var wire uint64
 11345  		for shift := uint(0); ; shift += 7 {
 11346  			if shift >= 64 {
 11347  				return ErrIntOverflowLogproto
 11348  			}
 11349  			if iNdEx >= l {
 11350  				return io.ErrUnexpectedEOF
 11351  			}
 11352  			b := dAtA[iNdEx]
 11353  			iNdEx++
 11354  			wire |= uint64(b&0x7F) << shift
 11355  			if b < 0x80 {
 11356  				break
 11357  			}
 11358  		}
 11359  		fieldNum := int32(wire >> 3)
 11360  		wireType := int(wire & 0x7)
 11361  		if wireType == 4 {
 11362  			return fmt.Errorf("proto: Chunk: wiretype end group for non-group")
 11363  		}
 11364  		if fieldNum <= 0 {
 11365  			return fmt.Errorf("proto: Chunk: illegal tag %d (wire type %d)", fieldNum, wire)
 11366  		}
 11367  		switch fieldNum {
 11368  		case 1:
 11369  			if wireType != 2 {
 11370  				return fmt.Errorf("proto: wrong wireType = %d for field Data", wireType)
 11371  			}
 11372  			var byteLen int
 11373  			for shift := uint(0); ; shift += 7 {
 11374  				if shift >= 64 {
 11375  					return ErrIntOverflowLogproto
 11376  				}
 11377  				if iNdEx >= l {
 11378  					return io.ErrUnexpectedEOF
 11379  				}
 11380  				b := dAtA[iNdEx]
 11381  				iNdEx++
 11382  				byteLen |= int(b&0x7F) << shift
 11383  				if b < 0x80 {
 11384  					break
 11385  				}
 11386  			}
 11387  			if byteLen < 0 {
 11388  				return ErrInvalidLengthLogproto
 11389  			}
 11390  			postIndex := iNdEx + byteLen
 11391  			if postIndex < 0 {
 11392  				return ErrInvalidLengthLogproto
 11393  			}
 11394  			if postIndex > l {
 11395  				return io.ErrUnexpectedEOF
 11396  			}
 11397  			m.Data = append(m.Data[:0], dAtA[iNdEx:postIndex]...)
 11398  			if m.Data == nil {
 11399  				m.Data = []byte{}
 11400  			}
 11401  			iNdEx = postIndex
 11402  		default:
 11403  			iNdEx = preIndex
 11404  			skippy, err := skipLogproto(dAtA[iNdEx:])
 11405  			if err != nil {
 11406  				return err
 11407  			}
 11408  			if skippy < 0 {
 11409  				return ErrInvalidLengthLogproto
 11410  			}
 11411  			if (iNdEx + skippy) < 0 {
 11412  				return ErrInvalidLengthLogproto
 11413  			}
 11414  			if (iNdEx + skippy) > l {
 11415  				return io.ErrUnexpectedEOF
 11416  			}
 11417  			iNdEx += skippy
 11418  		}
 11419  	}
 11420  
 11421  	if iNdEx > l {
 11422  		return io.ErrUnexpectedEOF
 11423  	}
 11424  	return nil
 11425  }
 11426  func (m *TransferChunksResponse) Unmarshal(dAtA []byte) error {
 11427  	l := len(dAtA)
 11428  	iNdEx := 0
 11429  	for iNdEx < l {
 11430  		preIndex := iNdEx
 11431  		var wire uint64
 11432  		for shift := uint(0); ; shift += 7 {
 11433  			if shift >= 64 {
 11434  				return ErrIntOverflowLogproto
 11435  			}
 11436  			if iNdEx >= l {
 11437  				return io.ErrUnexpectedEOF
 11438  			}
 11439  			b := dAtA[iNdEx]
 11440  			iNdEx++
 11441  			wire |= uint64(b&0x7F) << shift
 11442  			if b < 0x80 {
 11443  				break
 11444  			}
 11445  		}
 11446  		fieldNum := int32(wire >> 3)
 11447  		wireType := int(wire & 0x7)
 11448  		if wireType == 4 {
 11449  			return fmt.Errorf("proto: TransferChunksResponse: wiretype end group for non-group")
 11450  		}
 11451  		if fieldNum <= 0 {
 11452  			return fmt.Errorf("proto: TransferChunksResponse: illegal tag %d (wire type %d)", fieldNum, wire)
 11453  		}
 11454  		switch fieldNum {
 11455  		default:
 11456  			iNdEx = preIndex
 11457  			skippy, err := skipLogproto(dAtA[iNdEx:])
 11458  			if err != nil {
 11459  				return err
 11460  			}
 11461  			if skippy < 0 {
 11462  				return ErrInvalidLengthLogproto
 11463  			}
 11464  			if (iNdEx + skippy) < 0 {
 11465  				return ErrInvalidLengthLogproto
 11466  			}
 11467  			if (iNdEx + skippy) > l {
 11468  				return io.ErrUnexpectedEOF
 11469  			}
 11470  			iNdEx += skippy
 11471  		}
 11472  	}
 11473  
 11474  	if iNdEx > l {
 11475  		return io.ErrUnexpectedEOF
 11476  	}
 11477  	return nil
 11478  }
 11479  func (m *TailersCountRequest) Unmarshal(dAtA []byte) error {
 11480  	l := len(dAtA)
 11481  	iNdEx := 0
 11482  	for iNdEx < l {
 11483  		preIndex := iNdEx
 11484  		var wire uint64
 11485  		for shift := uint(0); ; shift += 7 {
 11486  			if shift >= 64 {
 11487  				return ErrIntOverflowLogproto
 11488  			}
 11489  			if iNdEx >= l {
 11490  				return io.ErrUnexpectedEOF
 11491  			}
 11492  			b := dAtA[iNdEx]
 11493  			iNdEx++
 11494  			wire |= uint64(b&0x7F) << shift
 11495  			if b < 0x80 {
 11496  				break
 11497  			}
 11498  		}
 11499  		fieldNum := int32(wire >> 3)
 11500  		wireType := int(wire & 0x7)
 11501  		if wireType == 4 {
 11502  			return fmt.Errorf("proto: TailersCountRequest: wiretype end group for non-group")
 11503  		}
 11504  		if fieldNum <= 0 {
 11505  			return fmt.Errorf("proto: TailersCountRequest: illegal tag %d (wire type %d)", fieldNum, wire)
 11506  		}
 11507  		switch fieldNum {
 11508  		default:
 11509  			iNdEx = preIndex
 11510  			skippy, err := skipLogproto(dAtA[iNdEx:])
 11511  			if err != nil {
 11512  				return err
 11513  			}
 11514  			if skippy < 0 {
 11515  				return ErrInvalidLengthLogproto
 11516  			}
 11517  			if (iNdEx + skippy) < 0 {
 11518  				return ErrInvalidLengthLogproto
 11519  			}
 11520  			if (iNdEx + skippy) > l {
 11521  				return io.ErrUnexpectedEOF
 11522  			}
 11523  			iNdEx += skippy
 11524  		}
 11525  	}
 11526  
 11527  	if iNdEx > l {
 11528  		return io.ErrUnexpectedEOF
 11529  	}
 11530  	return nil
 11531  }
 11532  func (m *TailersCountResponse) Unmarshal(dAtA []byte) error {
 11533  	l := len(dAtA)
 11534  	iNdEx := 0
 11535  	for iNdEx < l {
 11536  		preIndex := iNdEx
 11537  		var wire uint64
 11538  		for shift := uint(0); ; shift += 7 {
 11539  			if shift >= 64 {
 11540  				return ErrIntOverflowLogproto
 11541  			}
 11542  			if iNdEx >= l {
 11543  				return io.ErrUnexpectedEOF
 11544  			}
 11545  			b := dAtA[iNdEx]
 11546  			iNdEx++
 11547  			wire |= uint64(b&0x7F) << shift
 11548  			if b < 0x80 {
 11549  				break
 11550  			}
 11551  		}
 11552  		fieldNum := int32(wire >> 3)
 11553  		wireType := int(wire & 0x7)
 11554  		if wireType == 4 {
 11555  			return fmt.Errorf("proto: TailersCountResponse: wiretype end group for non-group")
 11556  		}
 11557  		if fieldNum <= 0 {
 11558  			return fmt.Errorf("proto: TailersCountResponse: illegal tag %d (wire type %d)", fieldNum, wire)
 11559  		}
 11560  		switch fieldNum {
 11561  		case 1:
 11562  			if wireType != 0 {
 11563  				return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType)
 11564  			}
 11565  			m.Count = 0
 11566  			for shift := uint(0); ; shift += 7 {
 11567  				if shift >= 64 {
 11568  					return ErrIntOverflowLogproto
 11569  				}
 11570  				if iNdEx >= l {
 11571  					return io.ErrUnexpectedEOF
 11572  				}
 11573  				b := dAtA[iNdEx]
 11574  				iNdEx++
 11575  				m.Count |= uint32(b&0x7F) << shift
 11576  				if b < 0x80 {
 11577  					break
 11578  				}
 11579  			}
 11580  		default:
 11581  			iNdEx = preIndex
 11582  			skippy, err := skipLogproto(dAtA[iNdEx:])
 11583  			if err != nil {
 11584  				return err
 11585  			}
 11586  			if skippy < 0 {
 11587  				return ErrInvalidLengthLogproto
 11588  			}
 11589  			if (iNdEx + skippy) < 0 {
 11590  				return ErrInvalidLengthLogproto
 11591  			}
 11592  			if (iNdEx + skippy) > l {
 11593  				return io.ErrUnexpectedEOF
 11594  			}
 11595  			iNdEx += skippy
 11596  		}
 11597  	}
 11598  
 11599  	if iNdEx > l {
 11600  		return io.ErrUnexpectedEOF
 11601  	}
 11602  	return nil
 11603  }
 11604  func (m *GetChunkIDsRequest) Unmarshal(dAtA []byte) error {
 11605  	l := len(dAtA)
 11606  	iNdEx := 0
 11607  	for iNdEx < l {
 11608  		preIndex := iNdEx
 11609  		var wire uint64
 11610  		for shift := uint(0); ; shift += 7 {
 11611  			if shift >= 64 {
 11612  				return ErrIntOverflowLogproto
 11613  			}
 11614  			if iNdEx >= l {
 11615  				return io.ErrUnexpectedEOF
 11616  			}
 11617  			b := dAtA[iNdEx]
 11618  			iNdEx++
 11619  			wire |= uint64(b&0x7F) << shift
 11620  			if b < 0x80 {
 11621  				break
 11622  			}
 11623  		}
 11624  		fieldNum := int32(wire >> 3)
 11625  		wireType := int(wire & 0x7)
 11626  		if wireType == 4 {
 11627  			return fmt.Errorf("proto: GetChunkIDsRequest: wiretype end group for non-group")
 11628  		}
 11629  		if fieldNum <= 0 {
 11630  			return fmt.Errorf("proto: GetChunkIDsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
 11631  		}
 11632  		switch fieldNum {
 11633  		case 1:
 11634  			if wireType != 2 {
 11635  				return fmt.Errorf("proto: wrong wireType = %d for field Matchers", wireType)
 11636  			}
 11637  			var stringLen uint64
 11638  			for shift := uint(0); ; shift += 7 {
 11639  				if shift >= 64 {
 11640  					return ErrIntOverflowLogproto
 11641  				}
 11642  				if iNdEx >= l {
 11643  					return io.ErrUnexpectedEOF
 11644  				}
 11645  				b := dAtA[iNdEx]
 11646  				iNdEx++
 11647  				stringLen |= uint64(b&0x7F) << shift
 11648  				if b < 0x80 {
 11649  					break
 11650  				}
 11651  			}
 11652  			intStringLen := int(stringLen)
 11653  			if intStringLen < 0 {
 11654  				return ErrInvalidLengthLogproto
 11655  			}
 11656  			postIndex := iNdEx + intStringLen
 11657  			if postIndex < 0 {
 11658  				return ErrInvalidLengthLogproto
 11659  			}
 11660  			if postIndex > l {
 11661  				return io.ErrUnexpectedEOF
 11662  			}
 11663  			m.Matchers = string(dAtA[iNdEx:postIndex])
 11664  			iNdEx = postIndex
 11665  		case 2:
 11666  			if wireType != 2 {
 11667  				return fmt.Errorf("proto: wrong wireType = %d for field Start", wireType)
 11668  			}
 11669  			var msglen int
 11670  			for shift := uint(0); ; shift += 7 {
 11671  				if shift >= 64 {
 11672  					return ErrIntOverflowLogproto
 11673  				}
 11674  				if iNdEx >= l {
 11675  					return io.ErrUnexpectedEOF
 11676  				}
 11677  				b := dAtA[iNdEx]
 11678  				iNdEx++
 11679  				msglen |= int(b&0x7F) << shift
 11680  				if b < 0x80 {
 11681  					break
 11682  				}
 11683  			}
 11684  			if msglen < 0 {
 11685  				return ErrInvalidLengthLogproto
 11686  			}
 11687  			postIndex := iNdEx + msglen
 11688  			if postIndex < 0 {
 11689  				return ErrInvalidLengthLogproto
 11690  			}
 11691  			if postIndex > l {
 11692  				return io.ErrUnexpectedEOF
 11693  			}
 11694  			if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.Start, dAtA[iNdEx:postIndex]); err != nil {
 11695  				return err
 11696  			}
 11697  			iNdEx = postIndex
 11698  		case 3:
 11699  			if wireType != 2 {
 11700  				return fmt.Errorf("proto: wrong wireType = %d for field End", wireType)
 11701  			}
 11702  			var msglen int
 11703  			for shift := uint(0); ; shift += 7 {
 11704  				if shift >= 64 {
 11705  					return ErrIntOverflowLogproto
 11706  				}
 11707  				if iNdEx >= l {
 11708  					return io.ErrUnexpectedEOF
 11709  				}
 11710  				b := dAtA[iNdEx]
 11711  				iNdEx++
 11712  				msglen |= int(b&0x7F) << shift
 11713  				if b < 0x80 {
 11714  					break
 11715  				}
 11716  			}
 11717  			if msglen < 0 {
 11718  				return ErrInvalidLengthLogproto
 11719  			}
 11720  			postIndex := iNdEx + msglen
 11721  			if postIndex < 0 {
 11722  				return ErrInvalidLengthLogproto
 11723  			}
 11724  			if postIndex > l {
 11725  				return io.ErrUnexpectedEOF
 11726  			}
 11727  			if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.End, dAtA[iNdEx:postIndex]); err != nil {
 11728  				return err
 11729  			}
 11730  			iNdEx = postIndex
 11731  		default:
 11732  			iNdEx = preIndex
 11733  			skippy, err := skipLogproto(dAtA[iNdEx:])
 11734  			if err != nil {
 11735  				return err
 11736  			}
 11737  			if skippy < 0 {
 11738  				return ErrInvalidLengthLogproto
 11739  			}
 11740  			if (iNdEx + skippy) < 0 {
 11741  				return ErrInvalidLengthLogproto
 11742  			}
 11743  			if (iNdEx + skippy) > l {
 11744  				return io.ErrUnexpectedEOF
 11745  			}
 11746  			iNdEx += skippy
 11747  		}
 11748  	}
 11749  
 11750  	if iNdEx > l {
 11751  		return io.ErrUnexpectedEOF
 11752  	}
 11753  	return nil
 11754  }
 11755  func (m *GetChunkIDsResponse) Unmarshal(dAtA []byte) error {
 11756  	l := len(dAtA)
 11757  	iNdEx := 0
 11758  	for iNdEx < l {
 11759  		preIndex := iNdEx
 11760  		var wire uint64
 11761  		for shift := uint(0); ; shift += 7 {
 11762  			if shift >= 64 {
 11763  				return ErrIntOverflowLogproto
 11764  			}
 11765  			if iNdEx >= l {
 11766  				return io.ErrUnexpectedEOF
 11767  			}
 11768  			b := dAtA[iNdEx]
 11769  			iNdEx++
 11770  			wire |= uint64(b&0x7F) << shift
 11771  			if b < 0x80 {
 11772  				break
 11773  			}
 11774  		}
 11775  		fieldNum := int32(wire >> 3)
 11776  		wireType := int(wire & 0x7)
 11777  		if wireType == 4 {
 11778  			return fmt.Errorf("proto: GetChunkIDsResponse: wiretype end group for non-group")
 11779  		}
 11780  		if fieldNum <= 0 {
 11781  			return fmt.Errorf("proto: GetChunkIDsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
 11782  		}
 11783  		switch fieldNum {
 11784  		case 1:
 11785  			if wireType != 2 {
 11786  				return fmt.Errorf("proto: wrong wireType = %d for field ChunkIDs", wireType)
 11787  			}
 11788  			var stringLen uint64
 11789  			for shift := uint(0); ; shift += 7 {
 11790  				if shift >= 64 {
 11791  					return ErrIntOverflowLogproto
 11792  				}
 11793  				if iNdEx >= l {
 11794  					return io.ErrUnexpectedEOF
 11795  				}
 11796  				b := dAtA[iNdEx]
 11797  				iNdEx++
 11798  				stringLen |= uint64(b&0x7F) << shift
 11799  				if b < 0x80 {
 11800  					break
 11801  				}
 11802  			}
 11803  			intStringLen := int(stringLen)
 11804  			if intStringLen < 0 {
 11805  				return ErrInvalidLengthLogproto
 11806  			}
 11807  			postIndex := iNdEx + intStringLen
 11808  			if postIndex < 0 {
 11809  				return ErrInvalidLengthLogproto
 11810  			}
 11811  			if postIndex > l {
 11812  				return io.ErrUnexpectedEOF
 11813  			}
 11814  			m.ChunkIDs = append(m.ChunkIDs, string(dAtA[iNdEx:postIndex]))
 11815  			iNdEx = postIndex
 11816  		default:
 11817  			iNdEx = preIndex
 11818  			skippy, err := skipLogproto(dAtA[iNdEx:])
 11819  			if err != nil {
 11820  				return err
 11821  			}
 11822  			if skippy < 0 {
 11823  				return ErrInvalidLengthLogproto
 11824  			}
 11825  			if (iNdEx + skippy) < 0 {
 11826  				return ErrInvalidLengthLogproto
 11827  			}
 11828  			if (iNdEx + skippy) > l {
 11829  				return io.ErrUnexpectedEOF
 11830  			}
 11831  			iNdEx += skippy
 11832  		}
 11833  	}
 11834  
 11835  	if iNdEx > l {
 11836  		return io.ErrUnexpectedEOF
 11837  	}
 11838  	return nil
 11839  }
 11840  func (m *ChunkRef) Unmarshal(dAtA []byte) error {
 11841  	l := len(dAtA)
 11842  	iNdEx := 0
 11843  	for iNdEx < l {
 11844  		preIndex := iNdEx
 11845  		var wire uint64
 11846  		for shift := uint(0); ; shift += 7 {
 11847  			if shift >= 64 {
 11848  				return ErrIntOverflowLogproto
 11849  			}
 11850  			if iNdEx >= l {
 11851  				return io.ErrUnexpectedEOF
 11852  			}
 11853  			b := dAtA[iNdEx]
 11854  			iNdEx++
 11855  			wire |= uint64(b&0x7F) << shift
 11856  			if b < 0x80 {
 11857  				break
 11858  			}
 11859  		}
 11860  		fieldNum := int32(wire >> 3)
 11861  		wireType := int(wire & 0x7)
 11862  		if wireType == 4 {
 11863  			return fmt.Errorf("proto: ChunkRef: wiretype end group for non-group")
 11864  		}
 11865  		if fieldNum <= 0 {
 11866  			return fmt.Errorf("proto: ChunkRef: illegal tag %d (wire type %d)", fieldNum, wire)
 11867  		}
 11868  		switch fieldNum {
 11869  		case 1:
 11870  			if wireType != 0 {
 11871  				return fmt.Errorf("proto: wrong wireType = %d for field Fingerprint", wireType)
 11872  			}
 11873  			m.Fingerprint = 0
 11874  			for shift := uint(0); ; shift += 7 {
 11875  				if shift >= 64 {
 11876  					return ErrIntOverflowLogproto
 11877  				}
 11878  				if iNdEx >= l {
 11879  					return io.ErrUnexpectedEOF
 11880  				}
 11881  				b := dAtA[iNdEx]
 11882  				iNdEx++
 11883  				m.Fingerprint |= uint64(b&0x7F) << shift
 11884  				if b < 0x80 {
 11885  					break
 11886  				}
 11887  			}
 11888  		case 2:
 11889  			if wireType != 2 {
 11890  				return fmt.Errorf("proto: wrong wireType = %d for field UserID", wireType)
 11891  			}
 11892  			var stringLen uint64
 11893  			for shift := uint(0); ; shift += 7 {
 11894  				if shift >= 64 {
 11895  					return ErrIntOverflowLogproto
 11896  				}
 11897  				if iNdEx >= l {
 11898  					return io.ErrUnexpectedEOF
 11899  				}
 11900  				b := dAtA[iNdEx]
 11901  				iNdEx++
 11902  				stringLen |= uint64(b&0x7F) << shift
 11903  				if b < 0x80 {
 11904  					break
 11905  				}
 11906  			}
 11907  			intStringLen := int(stringLen)
 11908  			if intStringLen < 0 {
 11909  				return ErrInvalidLengthLogproto
 11910  			}
 11911  			postIndex := iNdEx + intStringLen
 11912  			if postIndex < 0 {
 11913  				return ErrInvalidLengthLogproto
 11914  			}
 11915  			if postIndex > l {
 11916  				return io.ErrUnexpectedEOF
 11917  			}
 11918  			m.UserID = string(dAtA[iNdEx:postIndex])
 11919  			iNdEx = postIndex
 11920  		case 3:
 11921  			if wireType != 0 {
 11922  				return fmt.Errorf("proto: wrong wireType = %d for field From", wireType)
 11923  			}
 11924  			m.From = 0
 11925  			for shift := uint(0); ; shift += 7 {
 11926  				if shift >= 64 {
 11927  					return ErrIntOverflowLogproto
 11928  				}
 11929  				if iNdEx >= l {
 11930  					return io.ErrUnexpectedEOF
 11931  				}
 11932  				b := dAtA[iNdEx]
 11933  				iNdEx++
 11934  				m.From |= github_com_prometheus_common_model.Time(b&0x7F) << shift
 11935  				if b < 0x80 {
 11936  					break
 11937  				}
 11938  			}
 11939  		case 4:
 11940  			if wireType != 0 {
 11941  				return fmt.Errorf("proto: wrong wireType = %d for field Through", wireType)
 11942  			}
 11943  			m.Through = 0
 11944  			for shift := uint(0); ; shift += 7 {
 11945  				if shift >= 64 {
 11946  					return ErrIntOverflowLogproto
 11947  				}
 11948  				if iNdEx >= l {
 11949  					return io.ErrUnexpectedEOF
 11950  				}
 11951  				b := dAtA[iNdEx]
 11952  				iNdEx++
 11953  				m.Through |= github_com_prometheus_common_model.Time(b&0x7F) << shift
 11954  				if b < 0x80 {
 11955  					break
 11956  				}
 11957  			}
 11958  		case 5:
 11959  			if wireType != 0 {
 11960  				return fmt.Errorf("proto: wrong wireType = %d for field Checksum", wireType)
 11961  			}
 11962  			m.Checksum = 0
 11963  			for shift := uint(0); ; shift += 7 {
 11964  				if shift >= 64 {
 11965  					return ErrIntOverflowLogproto
 11966  				}
 11967  				if iNdEx >= l {
 11968  					return io.ErrUnexpectedEOF
 11969  				}
 11970  				b := dAtA[iNdEx]
 11971  				iNdEx++
 11972  				m.Checksum |= uint32(b&0x7F) << shift
 11973  				if b < 0x80 {
 11974  					break
 11975  				}
 11976  			}
 11977  		default:
 11978  			iNdEx = preIndex
 11979  			skippy, err := skipLogproto(dAtA[iNdEx:])
 11980  			if err != nil {
 11981  				return err
 11982  			}
 11983  			if skippy < 0 {
 11984  				return ErrInvalidLengthLogproto
 11985  			}
 11986  			if (iNdEx + skippy) < 0 {
 11987  				return ErrInvalidLengthLogproto
 11988  			}
 11989  			if (iNdEx + skippy) > l {
 11990  				return io.ErrUnexpectedEOF
 11991  			}
 11992  			iNdEx += skippy
 11993  		}
 11994  	}
 11995  
 11996  	if iNdEx > l {
 11997  		return io.ErrUnexpectedEOF
 11998  	}
 11999  	return nil
 12000  }
 12001  func (m *LabelValuesForMetricNameRequest) Unmarshal(dAtA []byte) error {
 12002  	l := len(dAtA)
 12003  	iNdEx := 0
 12004  	for iNdEx < l {
 12005  		preIndex := iNdEx
 12006  		var wire uint64
 12007  		for shift := uint(0); ; shift += 7 {
 12008  			if shift >= 64 {
 12009  				return ErrIntOverflowLogproto
 12010  			}
 12011  			if iNdEx >= l {
 12012  				return io.ErrUnexpectedEOF
 12013  			}
 12014  			b := dAtA[iNdEx]
 12015  			iNdEx++
 12016  			wire |= uint64(b&0x7F) << shift
 12017  			if b < 0x80 {
 12018  				break
 12019  			}
 12020  		}
 12021  		fieldNum := int32(wire >> 3)
 12022  		wireType := int(wire & 0x7)
 12023  		if wireType == 4 {
 12024  			return fmt.Errorf("proto: LabelValuesForMetricNameRequest: wiretype end group for non-group")
 12025  		}
 12026  		if fieldNum <= 0 {
 12027  			return fmt.Errorf("proto: LabelValuesForMetricNameRequest: illegal tag %d (wire type %d)", fieldNum, wire)
 12028  		}
 12029  		switch fieldNum {
 12030  		case 1:
 12031  			if wireType != 2 {
 12032  				return fmt.Errorf("proto: wrong wireType = %d for field MetricName", wireType)
 12033  			}
 12034  			var stringLen uint64
 12035  			for shift := uint(0); ; shift += 7 {
 12036  				if shift >= 64 {
 12037  					return ErrIntOverflowLogproto
 12038  				}
 12039  				if iNdEx >= l {
 12040  					return io.ErrUnexpectedEOF
 12041  				}
 12042  				b := dAtA[iNdEx]
 12043  				iNdEx++
 12044  				stringLen |= uint64(b&0x7F) << shift
 12045  				if b < 0x80 {
 12046  					break
 12047  				}
 12048  			}
 12049  			intStringLen := int(stringLen)
 12050  			if intStringLen < 0 {
 12051  				return ErrInvalidLengthLogproto
 12052  			}
 12053  			postIndex := iNdEx + intStringLen
 12054  			if postIndex < 0 {
 12055  				return ErrInvalidLengthLogproto
 12056  			}
 12057  			if postIndex > l {
 12058  				return io.ErrUnexpectedEOF
 12059  			}
 12060  			m.MetricName = string(dAtA[iNdEx:postIndex])
 12061  			iNdEx = postIndex
 12062  		case 2:
 12063  			if wireType != 2 {
 12064  				return fmt.Errorf("proto: wrong wireType = %d for field LabelName", wireType)
 12065  			}
 12066  			var stringLen uint64
 12067  			for shift := uint(0); ; shift += 7 {
 12068  				if shift >= 64 {
 12069  					return ErrIntOverflowLogproto
 12070  				}
 12071  				if iNdEx >= l {
 12072  					return io.ErrUnexpectedEOF
 12073  				}
 12074  				b := dAtA[iNdEx]
 12075  				iNdEx++
 12076  				stringLen |= uint64(b&0x7F) << shift
 12077  				if b < 0x80 {
 12078  					break
 12079  				}
 12080  			}
 12081  			intStringLen := int(stringLen)
 12082  			if intStringLen < 0 {
 12083  				return ErrInvalidLengthLogproto
 12084  			}
 12085  			postIndex := iNdEx + intStringLen
 12086  			if postIndex < 0 {
 12087  				return ErrInvalidLengthLogproto
 12088  			}
 12089  			if postIndex > l {
 12090  				return io.ErrUnexpectedEOF
 12091  			}
 12092  			m.LabelName = string(dAtA[iNdEx:postIndex])
 12093  			iNdEx = postIndex
 12094  		case 3:
 12095  			if wireType != 0 {
 12096  				return fmt.Errorf("proto: wrong wireType = %d for field From", wireType)
 12097  			}
 12098  			m.From = 0
 12099  			for shift := uint(0); ; shift += 7 {
 12100  				if shift >= 64 {
 12101  					return ErrIntOverflowLogproto
 12102  				}
 12103  				if iNdEx >= l {
 12104  					return io.ErrUnexpectedEOF
 12105  				}
 12106  				b := dAtA[iNdEx]
 12107  				iNdEx++
 12108  				m.From |= github_com_prometheus_common_model.Time(b&0x7F) << shift
 12109  				if b < 0x80 {
 12110  					break
 12111  				}
 12112  			}
 12113  		case 4:
 12114  			if wireType != 0 {
 12115  				return fmt.Errorf("proto: wrong wireType = %d for field Through", wireType)
 12116  			}
 12117  			m.Through = 0
 12118  			for shift := uint(0); ; shift += 7 {
 12119  				if shift >= 64 {
 12120  					return ErrIntOverflowLogproto
 12121  				}
 12122  				if iNdEx >= l {
 12123  					return io.ErrUnexpectedEOF
 12124  				}
 12125  				b := dAtA[iNdEx]
 12126  				iNdEx++
 12127  				m.Through |= github_com_prometheus_common_model.Time(b&0x7F) << shift
 12128  				if b < 0x80 {
 12129  					break
 12130  				}
 12131  			}
 12132  		case 5:
 12133  			if wireType != 2 {
 12134  				return fmt.Errorf("proto: wrong wireType = %d for field Matchers", wireType)
 12135  			}
 12136  			var stringLen uint64
 12137  			for shift := uint(0); ; shift += 7 {
 12138  				if shift >= 64 {
 12139  					return ErrIntOverflowLogproto
 12140  				}
 12141  				if iNdEx >= l {
 12142  					return io.ErrUnexpectedEOF
 12143  				}
 12144  				b := dAtA[iNdEx]
 12145  				iNdEx++
 12146  				stringLen |= uint64(b&0x7F) << shift
 12147  				if b < 0x80 {
 12148  					break
 12149  				}
 12150  			}
 12151  			intStringLen := int(stringLen)
 12152  			if intStringLen < 0 {
 12153  				return ErrInvalidLengthLogproto
 12154  			}
 12155  			postIndex := iNdEx + intStringLen
 12156  			if postIndex < 0 {
 12157  				return ErrInvalidLengthLogproto
 12158  			}
 12159  			if postIndex > l {
 12160  				return io.ErrUnexpectedEOF
 12161  			}
 12162  			m.Matchers = string(dAtA[iNdEx:postIndex])
 12163  			iNdEx = postIndex
 12164  		default:
 12165  			iNdEx = preIndex
 12166  			skippy, err := skipLogproto(dAtA[iNdEx:])
 12167  			if err != nil {
 12168  				return err
 12169  			}
 12170  			if skippy < 0 {
 12171  				return ErrInvalidLengthLogproto
 12172  			}
 12173  			if (iNdEx + skippy) < 0 {
 12174  				return ErrInvalidLengthLogproto
 12175  			}
 12176  			if (iNdEx + skippy) > l {
 12177  				return io.ErrUnexpectedEOF
 12178  			}
 12179  			iNdEx += skippy
 12180  		}
 12181  	}
 12182  
 12183  	if iNdEx > l {
 12184  		return io.ErrUnexpectedEOF
 12185  	}
 12186  	return nil
 12187  }
 12188  func (m *LabelNamesForMetricNameRequest) Unmarshal(dAtA []byte) error {
 12189  	l := len(dAtA)
 12190  	iNdEx := 0
 12191  	for iNdEx < l {
 12192  		preIndex := iNdEx
 12193  		var wire uint64
 12194  		for shift := uint(0); ; shift += 7 {
 12195  			if shift >= 64 {
 12196  				return ErrIntOverflowLogproto
 12197  			}
 12198  			if iNdEx >= l {
 12199  				return io.ErrUnexpectedEOF
 12200  			}
 12201  			b := dAtA[iNdEx]
 12202  			iNdEx++
 12203  			wire |= uint64(b&0x7F) << shift
 12204  			if b < 0x80 {
 12205  				break
 12206  			}
 12207  		}
 12208  		fieldNum := int32(wire >> 3)
 12209  		wireType := int(wire & 0x7)
 12210  		if wireType == 4 {
 12211  			return fmt.Errorf("proto: LabelNamesForMetricNameRequest: wiretype end group for non-group")
 12212  		}
 12213  		if fieldNum <= 0 {
 12214  			return fmt.Errorf("proto: LabelNamesForMetricNameRequest: illegal tag %d (wire type %d)", fieldNum, wire)
 12215  		}
 12216  		switch fieldNum {
 12217  		case 1:
 12218  			if wireType != 2 {
 12219  				return fmt.Errorf("proto: wrong wireType = %d for field MetricName", wireType)
 12220  			}
 12221  			var stringLen uint64
 12222  			for shift := uint(0); ; shift += 7 {
 12223  				if shift >= 64 {
 12224  					return ErrIntOverflowLogproto
 12225  				}
 12226  				if iNdEx >= l {
 12227  					return io.ErrUnexpectedEOF
 12228  				}
 12229  				b := dAtA[iNdEx]
 12230  				iNdEx++
 12231  				stringLen |= uint64(b&0x7F) << shift
 12232  				if b < 0x80 {
 12233  					break
 12234  				}
 12235  			}
 12236  			intStringLen := int(stringLen)
 12237  			if intStringLen < 0 {
 12238  				return ErrInvalidLengthLogproto
 12239  			}
 12240  			postIndex := iNdEx + intStringLen
 12241  			if postIndex < 0 {
 12242  				return ErrInvalidLengthLogproto
 12243  			}
 12244  			if postIndex > l {
 12245  				return io.ErrUnexpectedEOF
 12246  			}
 12247  			m.MetricName = string(dAtA[iNdEx:postIndex])
 12248  			iNdEx = postIndex
 12249  		case 2:
 12250  			if wireType != 0 {
 12251  				return fmt.Errorf("proto: wrong wireType = %d for field From", wireType)
 12252  			}
 12253  			m.From = 0
 12254  			for shift := uint(0); ; shift += 7 {
 12255  				if shift >= 64 {
 12256  					return ErrIntOverflowLogproto
 12257  				}
 12258  				if iNdEx >= l {
 12259  					return io.ErrUnexpectedEOF
 12260  				}
 12261  				b := dAtA[iNdEx]
 12262  				iNdEx++
 12263  				m.From |= github_com_prometheus_common_model.Time(b&0x7F) << shift
 12264  				if b < 0x80 {
 12265  					break
 12266  				}
 12267  			}
 12268  		case 3:
 12269  			if wireType != 0 {
 12270  				return fmt.Errorf("proto: wrong wireType = %d for field Through", wireType)
 12271  			}
 12272  			m.Through = 0
 12273  			for shift := uint(0); ; shift += 7 {
 12274  				if shift >= 64 {
 12275  					return ErrIntOverflowLogproto
 12276  				}
 12277  				if iNdEx >= l {
 12278  					return io.ErrUnexpectedEOF
 12279  				}
 12280  				b := dAtA[iNdEx]
 12281  				iNdEx++
 12282  				m.Through |= github_com_prometheus_common_model.Time(b&0x7F) << shift
 12283  				if b < 0x80 {
 12284  					break
 12285  				}
 12286  			}
 12287  		default:
 12288  			iNdEx = preIndex
 12289  			skippy, err := skipLogproto(dAtA[iNdEx:])
 12290  			if err != nil {
 12291  				return err
 12292  			}
 12293  			if skippy < 0 {
 12294  				return ErrInvalidLengthLogproto
 12295  			}
 12296  			if (iNdEx + skippy) < 0 {
 12297  				return ErrInvalidLengthLogproto
 12298  			}
 12299  			if (iNdEx + skippy) > l {
 12300  				return io.ErrUnexpectedEOF
 12301  			}
 12302  			iNdEx += skippy
 12303  		}
 12304  	}
 12305  
 12306  	if iNdEx > l {
 12307  		return io.ErrUnexpectedEOF
 12308  	}
 12309  	return nil
 12310  }
 12311  func (m *GetChunkRefRequest) Unmarshal(dAtA []byte) error {
 12312  	l := len(dAtA)
 12313  	iNdEx := 0
 12314  	for iNdEx < l {
 12315  		preIndex := iNdEx
 12316  		var wire uint64
 12317  		for shift := uint(0); ; shift += 7 {
 12318  			if shift >= 64 {
 12319  				return ErrIntOverflowLogproto
 12320  			}
 12321  			if iNdEx >= l {
 12322  				return io.ErrUnexpectedEOF
 12323  			}
 12324  			b := dAtA[iNdEx]
 12325  			iNdEx++
 12326  			wire |= uint64(b&0x7F) << shift
 12327  			if b < 0x80 {
 12328  				break
 12329  			}
 12330  		}
 12331  		fieldNum := int32(wire >> 3)
 12332  		wireType := int(wire & 0x7)
 12333  		if wireType == 4 {
 12334  			return fmt.Errorf("proto: GetChunkRefRequest: wiretype end group for non-group")
 12335  		}
 12336  		if fieldNum <= 0 {
 12337  			return fmt.Errorf("proto: GetChunkRefRequest: illegal tag %d (wire type %d)", fieldNum, wire)
 12338  		}
 12339  		switch fieldNum {
 12340  		case 1:
 12341  			if wireType != 0 {
 12342  				return fmt.Errorf("proto: wrong wireType = %d for field From", wireType)
 12343  			}
 12344  			m.From = 0
 12345  			for shift := uint(0); ; shift += 7 {
 12346  				if shift >= 64 {
 12347  					return ErrIntOverflowLogproto
 12348  				}
 12349  				if iNdEx >= l {
 12350  					return io.ErrUnexpectedEOF
 12351  				}
 12352  				b := dAtA[iNdEx]
 12353  				iNdEx++
 12354  				m.From |= github_com_prometheus_common_model.Time(b&0x7F) << shift
 12355  				if b < 0x80 {
 12356  					break
 12357  				}
 12358  			}
 12359  		case 2:
 12360  			if wireType != 0 {
 12361  				return fmt.Errorf("proto: wrong wireType = %d for field Through", wireType)
 12362  			}
 12363  			m.Through = 0
 12364  			for shift := uint(0); ; shift += 7 {
 12365  				if shift >= 64 {
 12366  					return ErrIntOverflowLogproto
 12367  				}
 12368  				if iNdEx >= l {
 12369  					return io.ErrUnexpectedEOF
 12370  				}
 12371  				b := dAtA[iNdEx]
 12372  				iNdEx++
 12373  				m.Through |= github_com_prometheus_common_model.Time(b&0x7F) << shift
 12374  				if b < 0x80 {
 12375  					break
 12376  				}
 12377  			}
 12378  		case 3:
 12379  			if wireType != 2 {
 12380  				return fmt.Errorf("proto: wrong wireType = %d for field Matchers", wireType)
 12381  			}
 12382  			var stringLen uint64
 12383  			for shift := uint(0); ; shift += 7 {
 12384  				if shift >= 64 {
 12385  					return ErrIntOverflowLogproto
 12386  				}
 12387  				if iNdEx >= l {
 12388  					return io.ErrUnexpectedEOF
 12389  				}
 12390  				b := dAtA[iNdEx]
 12391  				iNdEx++
 12392  				stringLen |= uint64(b&0x7F) << shift
 12393  				if b < 0x80 {
 12394  					break
 12395  				}
 12396  			}
 12397  			intStringLen := int(stringLen)
 12398  			if intStringLen < 0 {
 12399  				return ErrInvalidLengthLogproto
 12400  			}
 12401  			postIndex := iNdEx + intStringLen
 12402  			if postIndex < 0 {
 12403  				return ErrInvalidLengthLogproto
 12404  			}
 12405  			if postIndex > l {
 12406  				return io.ErrUnexpectedEOF
 12407  			}
 12408  			m.Matchers = string(dAtA[iNdEx:postIndex])
 12409  			iNdEx = postIndex
 12410  		default:
 12411  			iNdEx = preIndex
 12412  			skippy, err := skipLogproto(dAtA[iNdEx:])
 12413  			if err != nil {
 12414  				return err
 12415  			}
 12416  			if skippy < 0 {
 12417  				return ErrInvalidLengthLogproto
 12418  			}
 12419  			if (iNdEx + skippy) < 0 {
 12420  				return ErrInvalidLengthLogproto
 12421  			}
 12422  			if (iNdEx + skippy) > l {
 12423  				return io.ErrUnexpectedEOF
 12424  			}
 12425  			iNdEx += skippy
 12426  		}
 12427  	}
 12428  
 12429  	if iNdEx > l {
 12430  		return io.ErrUnexpectedEOF
 12431  	}
 12432  	return nil
 12433  }
 12434  func (m *GetChunkRefResponse) Unmarshal(dAtA []byte) error {
 12435  	l := len(dAtA)
 12436  	iNdEx := 0
 12437  	for iNdEx < l {
 12438  		preIndex := iNdEx
 12439  		var wire uint64
 12440  		for shift := uint(0); ; shift += 7 {
 12441  			if shift >= 64 {
 12442  				return ErrIntOverflowLogproto
 12443  			}
 12444  			if iNdEx >= l {
 12445  				return io.ErrUnexpectedEOF
 12446  			}
 12447  			b := dAtA[iNdEx]
 12448  			iNdEx++
 12449  			wire |= uint64(b&0x7F) << shift
 12450  			if b < 0x80 {
 12451  				break
 12452  			}
 12453  		}
 12454  		fieldNum := int32(wire >> 3)
 12455  		wireType := int(wire & 0x7)
 12456  		if wireType == 4 {
 12457  			return fmt.Errorf("proto: GetChunkRefResponse: wiretype end group for non-group")
 12458  		}
 12459  		if fieldNum <= 0 {
 12460  			return fmt.Errorf("proto: GetChunkRefResponse: illegal tag %d (wire type %d)", fieldNum, wire)
 12461  		}
 12462  		switch fieldNum {
 12463  		case 1:
 12464  			if wireType != 2 {
 12465  				return fmt.Errorf("proto: wrong wireType = %d for field Refs", wireType)
 12466  			}
 12467  			var msglen int
 12468  			for shift := uint(0); ; shift += 7 {
 12469  				if shift >= 64 {
 12470  					return ErrIntOverflowLogproto
 12471  				}
 12472  				if iNdEx >= l {
 12473  					return io.ErrUnexpectedEOF
 12474  				}
 12475  				b := dAtA[iNdEx]
 12476  				iNdEx++
 12477  				msglen |= int(b&0x7F) << shift
 12478  				if b < 0x80 {
 12479  					break
 12480  				}
 12481  			}
 12482  			if msglen < 0 {
 12483  				return ErrInvalidLengthLogproto
 12484  			}
 12485  			postIndex := iNdEx + msglen
 12486  			if postIndex < 0 {
 12487  				return ErrInvalidLengthLogproto
 12488  			}
 12489  			if postIndex > l {
 12490  				return io.ErrUnexpectedEOF
 12491  			}
 12492  			m.Refs = append(m.Refs, &ChunkRef{})
 12493  			if err := m.Refs[len(m.Refs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 12494  				return err
 12495  			}
 12496  			iNdEx = postIndex
 12497  		default:
 12498  			iNdEx = preIndex
 12499  			skippy, err := skipLogproto(dAtA[iNdEx:])
 12500  			if err != nil {
 12501  				return err
 12502  			}
 12503  			if skippy < 0 {
 12504  				return ErrInvalidLengthLogproto
 12505  			}
 12506  			if (iNdEx + skippy) < 0 {
 12507  				return ErrInvalidLengthLogproto
 12508  			}
 12509  			if (iNdEx + skippy) > l {
 12510  				return io.ErrUnexpectedEOF
 12511  			}
 12512  			iNdEx += skippy
 12513  		}
 12514  	}
 12515  
 12516  	if iNdEx > l {
 12517  		return io.ErrUnexpectedEOF
 12518  	}
 12519  	return nil
 12520  }
 12521  func (m *GetSeriesRequest) Unmarshal(dAtA []byte) error {
 12522  	l := len(dAtA)
 12523  	iNdEx := 0
 12524  	for iNdEx < l {
 12525  		preIndex := iNdEx
 12526  		var wire uint64
 12527  		for shift := uint(0); ; shift += 7 {
 12528  			if shift >= 64 {
 12529  				return ErrIntOverflowLogproto
 12530  			}
 12531  			if iNdEx >= l {
 12532  				return io.ErrUnexpectedEOF
 12533  			}
 12534  			b := dAtA[iNdEx]
 12535  			iNdEx++
 12536  			wire |= uint64(b&0x7F) << shift
 12537  			if b < 0x80 {
 12538  				break
 12539  			}
 12540  		}
 12541  		fieldNum := int32(wire >> 3)
 12542  		wireType := int(wire & 0x7)
 12543  		if wireType == 4 {
 12544  			return fmt.Errorf("proto: GetSeriesRequest: wiretype end group for non-group")
 12545  		}
 12546  		if fieldNum <= 0 {
 12547  			return fmt.Errorf("proto: GetSeriesRequest: illegal tag %d (wire type %d)", fieldNum, wire)
 12548  		}
 12549  		switch fieldNum {
 12550  		case 1:
 12551  			if wireType != 0 {
 12552  				return fmt.Errorf("proto: wrong wireType = %d for field From", wireType)
 12553  			}
 12554  			m.From = 0
 12555  			for shift := uint(0); ; shift += 7 {
 12556  				if shift >= 64 {
 12557  					return ErrIntOverflowLogproto
 12558  				}
 12559  				if iNdEx >= l {
 12560  					return io.ErrUnexpectedEOF
 12561  				}
 12562  				b := dAtA[iNdEx]
 12563  				iNdEx++
 12564  				m.From |= github_com_prometheus_common_model.Time(b&0x7F) << shift
 12565  				if b < 0x80 {
 12566  					break
 12567  				}
 12568  			}
 12569  		case 2:
 12570  			if wireType != 0 {
 12571  				return fmt.Errorf("proto: wrong wireType = %d for field Through", wireType)
 12572  			}
 12573  			m.Through = 0
 12574  			for shift := uint(0); ; shift += 7 {
 12575  				if shift >= 64 {
 12576  					return ErrIntOverflowLogproto
 12577  				}
 12578  				if iNdEx >= l {
 12579  					return io.ErrUnexpectedEOF
 12580  				}
 12581  				b := dAtA[iNdEx]
 12582  				iNdEx++
 12583  				m.Through |= github_com_prometheus_common_model.Time(b&0x7F) << shift
 12584  				if b < 0x80 {
 12585  					break
 12586  				}
 12587  			}
 12588  		case 3:
 12589  			if wireType != 2 {
 12590  				return fmt.Errorf("proto: wrong wireType = %d for field Matchers", wireType)
 12591  			}
 12592  			var stringLen uint64
 12593  			for shift := uint(0); ; shift += 7 {
 12594  				if shift >= 64 {
 12595  					return ErrIntOverflowLogproto
 12596  				}
 12597  				if iNdEx >= l {
 12598  					return io.ErrUnexpectedEOF
 12599  				}
 12600  				b := dAtA[iNdEx]
 12601  				iNdEx++
 12602  				stringLen |= uint64(b&0x7F) << shift
 12603  				if b < 0x80 {
 12604  					break
 12605  				}
 12606  			}
 12607  			intStringLen := int(stringLen)
 12608  			if intStringLen < 0 {
 12609  				return ErrInvalidLengthLogproto
 12610  			}
 12611  			postIndex := iNdEx + intStringLen
 12612  			if postIndex < 0 {
 12613  				return ErrInvalidLengthLogproto
 12614  			}
 12615  			if postIndex > l {
 12616  				return io.ErrUnexpectedEOF
 12617  			}
 12618  			m.Matchers = string(dAtA[iNdEx:postIndex])
 12619  			iNdEx = postIndex
 12620  		default:
 12621  			iNdEx = preIndex
 12622  			skippy, err := skipLogproto(dAtA[iNdEx:])
 12623  			if err != nil {
 12624  				return err
 12625  			}
 12626  			if skippy < 0 {
 12627  				return ErrInvalidLengthLogproto
 12628  			}
 12629  			if (iNdEx + skippy) < 0 {
 12630  				return ErrInvalidLengthLogproto
 12631  			}
 12632  			if (iNdEx + skippy) > l {
 12633  				return io.ErrUnexpectedEOF
 12634  			}
 12635  			iNdEx += skippy
 12636  		}
 12637  	}
 12638  
 12639  	if iNdEx > l {
 12640  		return io.ErrUnexpectedEOF
 12641  	}
 12642  	return nil
 12643  }
 12644  func (m *GetSeriesResponse) Unmarshal(dAtA []byte) error {
 12645  	l := len(dAtA)
 12646  	iNdEx := 0
 12647  	for iNdEx < l {
 12648  		preIndex := iNdEx
 12649  		var wire uint64
 12650  		for shift := uint(0); ; shift += 7 {
 12651  			if shift >= 64 {
 12652  				return ErrIntOverflowLogproto
 12653  			}
 12654  			if iNdEx >= l {
 12655  				return io.ErrUnexpectedEOF
 12656  			}
 12657  			b := dAtA[iNdEx]
 12658  			iNdEx++
 12659  			wire |= uint64(b&0x7F) << shift
 12660  			if b < 0x80 {
 12661  				break
 12662  			}
 12663  		}
 12664  		fieldNum := int32(wire >> 3)
 12665  		wireType := int(wire & 0x7)
 12666  		if wireType == 4 {
 12667  			return fmt.Errorf("proto: GetSeriesResponse: wiretype end group for non-group")
 12668  		}
 12669  		if fieldNum <= 0 {
 12670  			return fmt.Errorf("proto: GetSeriesResponse: illegal tag %d (wire type %d)", fieldNum, wire)
 12671  		}
 12672  		switch fieldNum {
 12673  		case 1:
 12674  			if wireType != 2 {
 12675  				return fmt.Errorf("proto: wrong wireType = %d for field Series", wireType)
 12676  			}
 12677  			var msglen int
 12678  			for shift := uint(0); ; shift += 7 {
 12679  				if shift >= 64 {
 12680  					return ErrIntOverflowLogproto
 12681  				}
 12682  				if iNdEx >= l {
 12683  					return io.ErrUnexpectedEOF
 12684  				}
 12685  				b := dAtA[iNdEx]
 12686  				iNdEx++
 12687  				msglen |= int(b&0x7F) << shift
 12688  				if b < 0x80 {
 12689  					break
 12690  				}
 12691  			}
 12692  			if msglen < 0 {
 12693  				return ErrInvalidLengthLogproto
 12694  			}
 12695  			postIndex := iNdEx + msglen
 12696  			if postIndex < 0 {
 12697  				return ErrInvalidLengthLogproto
 12698  			}
 12699  			if postIndex > l {
 12700  				return io.ErrUnexpectedEOF
 12701  			}
 12702  			m.Series = append(m.Series, IndexSeries{})
 12703  			if err := m.Series[len(m.Series)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 12704  				return err
 12705  			}
 12706  			iNdEx = postIndex
 12707  		default:
 12708  			iNdEx = preIndex
 12709  			skippy, err := skipLogproto(dAtA[iNdEx:])
 12710  			if err != nil {
 12711  				return err
 12712  			}
 12713  			if skippy < 0 {
 12714  				return ErrInvalidLengthLogproto
 12715  			}
 12716  			if (iNdEx + skippy) < 0 {
 12717  				return ErrInvalidLengthLogproto
 12718  			}
 12719  			if (iNdEx + skippy) > l {
 12720  				return io.ErrUnexpectedEOF
 12721  			}
 12722  			iNdEx += skippy
 12723  		}
 12724  	}
 12725  
 12726  	if iNdEx > l {
 12727  		return io.ErrUnexpectedEOF
 12728  	}
 12729  	return nil
 12730  }
 12731  func (m *IndexSeries) Unmarshal(dAtA []byte) error {
 12732  	l := len(dAtA)
 12733  	iNdEx := 0
 12734  	for iNdEx < l {
 12735  		preIndex := iNdEx
 12736  		var wire uint64
 12737  		for shift := uint(0); ; shift += 7 {
 12738  			if shift >= 64 {
 12739  				return ErrIntOverflowLogproto
 12740  			}
 12741  			if iNdEx >= l {
 12742  				return io.ErrUnexpectedEOF
 12743  			}
 12744  			b := dAtA[iNdEx]
 12745  			iNdEx++
 12746  			wire |= uint64(b&0x7F) << shift
 12747  			if b < 0x80 {
 12748  				break
 12749  			}
 12750  		}
 12751  		fieldNum := int32(wire >> 3)
 12752  		wireType := int(wire & 0x7)
 12753  		if wireType == 4 {
 12754  			return fmt.Errorf("proto: IndexSeries: wiretype end group for non-group")
 12755  		}
 12756  		if fieldNum <= 0 {
 12757  			return fmt.Errorf("proto: IndexSeries: illegal tag %d (wire type %d)", fieldNum, wire)
 12758  		}
 12759  		switch fieldNum {
 12760  		case 1:
 12761  			if wireType != 2 {
 12762  				return fmt.Errorf("proto: wrong wireType = %d for field Labels", wireType)
 12763  			}
 12764  			var msglen int
 12765  			for shift := uint(0); ; shift += 7 {
 12766  				if shift >= 64 {
 12767  					return ErrIntOverflowLogproto
 12768  				}
 12769  				if iNdEx >= l {
 12770  					return io.ErrUnexpectedEOF
 12771  				}
 12772  				b := dAtA[iNdEx]
 12773  				iNdEx++
 12774  				msglen |= int(b&0x7F) << shift
 12775  				if b < 0x80 {
 12776  					break
 12777  				}
 12778  			}
 12779  			if msglen < 0 {
 12780  				return ErrInvalidLengthLogproto
 12781  			}
 12782  			postIndex := iNdEx + msglen
 12783  			if postIndex < 0 {
 12784  				return ErrInvalidLengthLogproto
 12785  			}
 12786  			if postIndex > l {
 12787  				return io.ErrUnexpectedEOF
 12788  			}
 12789  			m.Labels = append(m.Labels, LabelAdapter{})
 12790  			if err := m.Labels[len(m.Labels)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 12791  				return err
 12792  			}
 12793  			iNdEx = postIndex
 12794  		default:
 12795  			iNdEx = preIndex
 12796  			skippy, err := skipLogproto(dAtA[iNdEx:])
 12797  			if err != nil {
 12798  				return err
 12799  			}
 12800  			if skippy < 0 {
 12801  				return ErrInvalidLengthLogproto
 12802  			}
 12803  			if (iNdEx + skippy) < 0 {
 12804  				return ErrInvalidLengthLogproto
 12805  			}
 12806  			if (iNdEx + skippy) > l {
 12807  				return io.ErrUnexpectedEOF
 12808  			}
 12809  			iNdEx += skippy
 12810  		}
 12811  	}
 12812  
 12813  	if iNdEx > l {
 12814  		return io.ErrUnexpectedEOF
 12815  	}
 12816  	return nil
 12817  }
 12818  func (m *QueryIndexResponse) Unmarshal(dAtA []byte) error {
 12819  	l := len(dAtA)
 12820  	iNdEx := 0
 12821  	for iNdEx < l {
 12822  		preIndex := iNdEx
 12823  		var wire uint64
 12824  		for shift := uint(0); ; shift += 7 {
 12825  			if shift >= 64 {
 12826  				return ErrIntOverflowLogproto
 12827  			}
 12828  			if iNdEx >= l {
 12829  				return io.ErrUnexpectedEOF
 12830  			}
 12831  			b := dAtA[iNdEx]
 12832  			iNdEx++
 12833  			wire |= uint64(b&0x7F) << shift
 12834  			if b < 0x80 {
 12835  				break
 12836  			}
 12837  		}
 12838  		fieldNum := int32(wire >> 3)
 12839  		wireType := int(wire & 0x7)
 12840  		if wireType == 4 {
 12841  			return fmt.Errorf("proto: QueryIndexResponse: wiretype end group for non-group")
 12842  		}
 12843  		if fieldNum <= 0 {
 12844  			return fmt.Errorf("proto: QueryIndexResponse: illegal tag %d (wire type %d)", fieldNum, wire)
 12845  		}
 12846  		switch fieldNum {
 12847  		case 1:
 12848  			if wireType != 2 {
 12849  				return fmt.Errorf("proto: wrong wireType = %d for field QueryKey", wireType)
 12850  			}
 12851  			var stringLen uint64
 12852  			for shift := uint(0); ; shift += 7 {
 12853  				if shift >= 64 {
 12854  					return ErrIntOverflowLogproto
 12855  				}
 12856  				if iNdEx >= l {
 12857  					return io.ErrUnexpectedEOF
 12858  				}
 12859  				b := dAtA[iNdEx]
 12860  				iNdEx++
 12861  				stringLen |= uint64(b&0x7F) << shift
 12862  				if b < 0x80 {
 12863  					break
 12864  				}
 12865  			}
 12866  			intStringLen := int(stringLen)
 12867  			if intStringLen < 0 {
 12868  				return ErrInvalidLengthLogproto
 12869  			}
 12870  			postIndex := iNdEx + intStringLen
 12871  			if postIndex < 0 {
 12872  				return ErrInvalidLengthLogproto
 12873  			}
 12874  			if postIndex > l {
 12875  				return io.ErrUnexpectedEOF
 12876  			}
 12877  			m.QueryKey = string(dAtA[iNdEx:postIndex])
 12878  			iNdEx = postIndex
 12879  		case 2:
 12880  			if wireType != 2 {
 12881  				return fmt.Errorf("proto: wrong wireType = %d for field Rows", wireType)
 12882  			}
 12883  			var msglen int
 12884  			for shift := uint(0); ; shift += 7 {
 12885  				if shift >= 64 {
 12886  					return ErrIntOverflowLogproto
 12887  				}
 12888  				if iNdEx >= l {
 12889  					return io.ErrUnexpectedEOF
 12890  				}
 12891  				b := dAtA[iNdEx]
 12892  				iNdEx++
 12893  				msglen |= int(b&0x7F) << shift
 12894  				if b < 0x80 {
 12895  					break
 12896  				}
 12897  			}
 12898  			if msglen < 0 {
 12899  				return ErrInvalidLengthLogproto
 12900  			}
 12901  			postIndex := iNdEx + msglen
 12902  			if postIndex < 0 {
 12903  				return ErrInvalidLengthLogproto
 12904  			}
 12905  			if postIndex > l {
 12906  				return io.ErrUnexpectedEOF
 12907  			}
 12908  			m.Rows = append(m.Rows, &Row{})
 12909  			if err := m.Rows[len(m.Rows)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 12910  				return err
 12911  			}
 12912  			iNdEx = postIndex
 12913  		default:
 12914  			iNdEx = preIndex
 12915  			skippy, err := skipLogproto(dAtA[iNdEx:])
 12916  			if err != nil {
 12917  				return err
 12918  			}
 12919  			if skippy < 0 {
 12920  				return ErrInvalidLengthLogproto
 12921  			}
 12922  			if (iNdEx + skippy) < 0 {
 12923  				return ErrInvalidLengthLogproto
 12924  			}
 12925  			if (iNdEx + skippy) > l {
 12926  				return io.ErrUnexpectedEOF
 12927  			}
 12928  			iNdEx += skippy
 12929  		}
 12930  	}
 12931  
 12932  	if iNdEx > l {
 12933  		return io.ErrUnexpectedEOF
 12934  	}
 12935  	return nil
 12936  }
 12937  func (m *Row) Unmarshal(dAtA []byte) error {
 12938  	l := len(dAtA)
 12939  	iNdEx := 0
 12940  	for iNdEx < l {
 12941  		preIndex := iNdEx
 12942  		var wire uint64
 12943  		for shift := uint(0); ; shift += 7 {
 12944  			if shift >= 64 {
 12945  				return ErrIntOverflowLogproto
 12946  			}
 12947  			if iNdEx >= l {
 12948  				return io.ErrUnexpectedEOF
 12949  			}
 12950  			b := dAtA[iNdEx]
 12951  			iNdEx++
 12952  			wire |= uint64(b&0x7F) << shift
 12953  			if b < 0x80 {
 12954  				break
 12955  			}
 12956  		}
 12957  		fieldNum := int32(wire >> 3)
 12958  		wireType := int(wire & 0x7)
 12959  		if wireType == 4 {
 12960  			return fmt.Errorf("proto: Row: wiretype end group for non-group")
 12961  		}
 12962  		if fieldNum <= 0 {
 12963  			return fmt.Errorf("proto: Row: illegal tag %d (wire type %d)", fieldNum, wire)
 12964  		}
 12965  		switch fieldNum {
 12966  		case 1:
 12967  			if wireType != 2 {
 12968  				return fmt.Errorf("proto: wrong wireType = %d for field RangeValue", wireType)
 12969  			}
 12970  			var byteLen int
 12971  			for shift := uint(0); ; shift += 7 {
 12972  				if shift >= 64 {
 12973  					return ErrIntOverflowLogproto
 12974  				}
 12975  				if iNdEx >= l {
 12976  					return io.ErrUnexpectedEOF
 12977  				}
 12978  				b := dAtA[iNdEx]
 12979  				iNdEx++
 12980  				byteLen |= int(b&0x7F) << shift
 12981  				if b < 0x80 {
 12982  					break
 12983  				}
 12984  			}
 12985  			if byteLen < 0 {
 12986  				return ErrInvalidLengthLogproto
 12987  			}
 12988  			postIndex := iNdEx + byteLen
 12989  			if postIndex < 0 {
 12990  				return ErrInvalidLengthLogproto
 12991  			}
 12992  			if postIndex > l {
 12993  				return io.ErrUnexpectedEOF
 12994  			}
 12995  			m.RangeValue = append(m.RangeValue[:0], dAtA[iNdEx:postIndex]...)
 12996  			if m.RangeValue == nil {
 12997  				m.RangeValue = []byte{}
 12998  			}
 12999  			iNdEx = postIndex
 13000  		case 2:
 13001  			if wireType != 2 {
 13002  				return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
 13003  			}
 13004  			var byteLen int
 13005  			for shift := uint(0); ; shift += 7 {
 13006  				if shift >= 64 {
 13007  					return ErrIntOverflowLogproto
 13008  				}
 13009  				if iNdEx >= l {
 13010  					return io.ErrUnexpectedEOF
 13011  				}
 13012  				b := dAtA[iNdEx]
 13013  				iNdEx++
 13014  				byteLen |= int(b&0x7F) << shift
 13015  				if b < 0x80 {
 13016  					break
 13017  				}
 13018  			}
 13019  			if byteLen < 0 {
 13020  				return ErrInvalidLengthLogproto
 13021  			}
 13022  			postIndex := iNdEx + byteLen
 13023  			if postIndex < 0 {
 13024  				return ErrInvalidLengthLogproto
 13025  			}
 13026  			if postIndex > l {
 13027  				return io.ErrUnexpectedEOF
 13028  			}
 13029  			m.Value = append(m.Value[:0], dAtA[iNdEx:postIndex]...)
 13030  			if m.Value == nil {
 13031  				m.Value = []byte{}
 13032  			}
 13033  			iNdEx = postIndex
 13034  		default:
 13035  			iNdEx = preIndex
 13036  			skippy, err := skipLogproto(dAtA[iNdEx:])
 13037  			if err != nil {
 13038  				return err
 13039  			}
 13040  			if skippy < 0 {
 13041  				return ErrInvalidLengthLogproto
 13042  			}
 13043  			if (iNdEx + skippy) < 0 {
 13044  				return ErrInvalidLengthLogproto
 13045  			}
 13046  			if (iNdEx + skippy) > l {
 13047  				return io.ErrUnexpectedEOF
 13048  			}
 13049  			iNdEx += skippy
 13050  		}
 13051  	}
 13052  
 13053  	if iNdEx > l {
 13054  		return io.ErrUnexpectedEOF
 13055  	}
 13056  	return nil
 13057  }
 13058  func (m *QueryIndexRequest) Unmarshal(dAtA []byte) error {
 13059  	l := len(dAtA)
 13060  	iNdEx := 0
 13061  	for iNdEx < l {
 13062  		preIndex := iNdEx
 13063  		var wire uint64
 13064  		for shift := uint(0); ; shift += 7 {
 13065  			if shift >= 64 {
 13066  				return ErrIntOverflowLogproto
 13067  			}
 13068  			if iNdEx >= l {
 13069  				return io.ErrUnexpectedEOF
 13070  			}
 13071  			b := dAtA[iNdEx]
 13072  			iNdEx++
 13073  			wire |= uint64(b&0x7F) << shift
 13074  			if b < 0x80 {
 13075  				break
 13076  			}
 13077  		}
 13078  		fieldNum := int32(wire >> 3)
 13079  		wireType := int(wire & 0x7)
 13080  		if wireType == 4 {
 13081  			return fmt.Errorf("proto: QueryIndexRequest: wiretype end group for non-group")
 13082  		}
 13083  		if fieldNum <= 0 {
 13084  			return fmt.Errorf("proto: QueryIndexRequest: illegal tag %d (wire type %d)", fieldNum, wire)
 13085  		}
 13086  		switch fieldNum {
 13087  		case 1:
 13088  			if wireType != 2 {
 13089  				return fmt.Errorf("proto: wrong wireType = %d for field Queries", wireType)
 13090  			}
 13091  			var msglen int
 13092  			for shift := uint(0); ; shift += 7 {
 13093  				if shift >= 64 {
 13094  					return ErrIntOverflowLogproto
 13095  				}
 13096  				if iNdEx >= l {
 13097  					return io.ErrUnexpectedEOF
 13098  				}
 13099  				b := dAtA[iNdEx]
 13100  				iNdEx++
 13101  				msglen |= int(b&0x7F) << shift
 13102  				if b < 0x80 {
 13103  					break
 13104  				}
 13105  			}
 13106  			if msglen < 0 {
 13107  				return ErrInvalidLengthLogproto
 13108  			}
 13109  			postIndex := iNdEx + msglen
 13110  			if postIndex < 0 {
 13111  				return ErrInvalidLengthLogproto
 13112  			}
 13113  			if postIndex > l {
 13114  				return io.ErrUnexpectedEOF
 13115  			}
 13116  			m.Queries = append(m.Queries, &IndexQuery{})
 13117  			if err := m.Queries[len(m.Queries)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
 13118  				return err
 13119  			}
 13120  			iNdEx = postIndex
 13121  		default:
 13122  			iNdEx = preIndex
 13123  			skippy, err := skipLogproto(dAtA[iNdEx:])
 13124  			if err != nil {
 13125  				return err
 13126  			}
 13127  			if skippy < 0 {
 13128  				return ErrInvalidLengthLogproto
 13129  			}
 13130  			if (iNdEx + skippy) < 0 {
 13131  				return ErrInvalidLengthLogproto
 13132  			}
 13133  			if (iNdEx + skippy) > l {
 13134  				return io.ErrUnexpectedEOF
 13135  			}
 13136  			iNdEx += skippy
 13137  		}
 13138  	}
 13139  
 13140  	if iNdEx > l {
 13141  		return io.ErrUnexpectedEOF
 13142  	}
 13143  	return nil
 13144  }
 13145  func (m *IndexQuery) Unmarshal(dAtA []byte) error {
 13146  	l := len(dAtA)
 13147  	iNdEx := 0
 13148  	for iNdEx < l {
 13149  		preIndex := iNdEx
 13150  		var wire uint64
 13151  		for shift := uint(0); ; shift += 7 {
 13152  			if shift >= 64 {
 13153  				return ErrIntOverflowLogproto
 13154  			}
 13155  			if iNdEx >= l {
 13156  				return io.ErrUnexpectedEOF
 13157  			}
 13158  			b := dAtA[iNdEx]
 13159  			iNdEx++
 13160  			wire |= uint64(b&0x7F) << shift
 13161  			if b < 0x80 {
 13162  				break
 13163  			}
 13164  		}
 13165  		fieldNum := int32(wire >> 3)
 13166  		wireType := int(wire & 0x7)
 13167  		if wireType == 4 {
 13168  			return fmt.Errorf("proto: IndexQuery: wiretype end group for non-group")
 13169  		}
 13170  		if fieldNum <= 0 {
 13171  			return fmt.Errorf("proto: IndexQuery: illegal tag %d (wire type %d)", fieldNum, wire)
 13172  		}
 13173  		switch fieldNum {
 13174  		case 1:
 13175  			if wireType != 2 {
 13176  				return fmt.Errorf("proto: wrong wireType = %d for field TableName", wireType)
 13177  			}
 13178  			var stringLen uint64
 13179  			for shift := uint(0); ; shift += 7 {
 13180  				if shift >= 64 {
 13181  					return ErrIntOverflowLogproto
 13182  				}
 13183  				if iNdEx >= l {
 13184  					return io.ErrUnexpectedEOF
 13185  				}
 13186  				b := dAtA[iNdEx]
 13187  				iNdEx++
 13188  				stringLen |= uint64(b&0x7F) << shift
 13189  				if b < 0x80 {
 13190  					break
 13191  				}
 13192  			}
 13193  			intStringLen := int(stringLen)
 13194  			if intStringLen < 0 {
 13195  				return ErrInvalidLengthLogproto
 13196  			}
 13197  			postIndex := iNdEx + intStringLen
 13198  			if postIndex < 0 {
 13199  				return ErrInvalidLengthLogproto
 13200  			}
 13201  			if postIndex > l {
 13202  				return io.ErrUnexpectedEOF
 13203  			}
 13204  			m.TableName = string(dAtA[iNdEx:postIndex])
 13205  			iNdEx = postIndex
 13206  		case 2:
 13207  			if wireType != 2 {
 13208  				return fmt.Errorf("proto: wrong wireType = %d for field HashValue", wireType)
 13209  			}
 13210  			var stringLen uint64
 13211  			for shift := uint(0); ; shift += 7 {
 13212  				if shift >= 64 {
 13213  					return ErrIntOverflowLogproto
 13214  				}
 13215  				if iNdEx >= l {
 13216  					return io.ErrUnexpectedEOF
 13217  				}
 13218  				b := dAtA[iNdEx]
 13219  				iNdEx++
 13220  				stringLen |= uint64(b&0x7F) << shift
 13221  				if b < 0x80 {
 13222  					break
 13223  				}
 13224  			}
 13225  			intStringLen := int(stringLen)
 13226  			if intStringLen < 0 {
 13227  				return ErrInvalidLengthLogproto
 13228  			}
 13229  			postIndex := iNdEx + intStringLen
 13230  			if postIndex < 0 {
 13231  				return ErrInvalidLengthLogproto
 13232  			}
 13233  			if postIndex > l {
 13234  				return io.ErrUnexpectedEOF
 13235  			}
 13236  			m.HashValue = string(dAtA[iNdEx:postIndex])
 13237  			iNdEx = postIndex
 13238  		case 3:
 13239  			if wireType != 2 {
 13240  				return fmt.Errorf("proto: wrong wireType = %d for field RangeValuePrefix", wireType)
 13241  			}
 13242  			var byteLen int
 13243  			for shift := uint(0); ; shift += 7 {
 13244  				if shift >= 64 {
 13245  					return ErrIntOverflowLogproto
 13246  				}
 13247  				if iNdEx >= l {
 13248  					return io.ErrUnexpectedEOF
 13249  				}
 13250  				b := dAtA[iNdEx]
 13251  				iNdEx++
 13252  				byteLen |= int(b&0x7F) << shift
 13253  				if b < 0x80 {
 13254  					break
 13255  				}
 13256  			}
 13257  			if byteLen < 0 {
 13258  				return ErrInvalidLengthLogproto
 13259  			}
 13260  			postIndex := iNdEx + byteLen
 13261  			if postIndex < 0 {
 13262  				return ErrInvalidLengthLogproto
 13263  			}
 13264  			if postIndex > l {
 13265  				return io.ErrUnexpectedEOF
 13266  			}
 13267  			m.RangeValuePrefix = append(m.RangeValuePrefix[:0], dAtA[iNdEx:postIndex]...)
 13268  			if m.RangeValuePrefix == nil {
 13269  				m.RangeValuePrefix = []byte{}
 13270  			}
 13271  			iNdEx = postIndex
 13272  		case 4:
 13273  			if wireType != 2 {
 13274  				return fmt.Errorf("proto: wrong wireType = %d for field RangeValueStart", wireType)
 13275  			}
 13276  			var byteLen int
 13277  			for shift := uint(0); ; shift += 7 {
 13278  				if shift >= 64 {
 13279  					return ErrIntOverflowLogproto
 13280  				}
 13281  				if iNdEx >= l {
 13282  					return io.ErrUnexpectedEOF
 13283  				}
 13284  				b := dAtA[iNdEx]
 13285  				iNdEx++
 13286  				byteLen |= int(b&0x7F) << shift
 13287  				if b < 0x80 {
 13288  					break
 13289  				}
 13290  			}
 13291  			if byteLen < 0 {
 13292  				return ErrInvalidLengthLogproto
 13293  			}
 13294  			postIndex := iNdEx + byteLen
 13295  			if postIndex < 0 {
 13296  				return ErrInvalidLengthLogproto
 13297  			}
 13298  			if postIndex > l {
 13299  				return io.ErrUnexpectedEOF
 13300  			}
 13301  			m.RangeValueStart = append(m.RangeValueStart[:0], dAtA[iNdEx:postIndex]...)
 13302  			if m.RangeValueStart == nil {
 13303  				m.RangeValueStart = []byte{}
 13304  			}
 13305  			iNdEx = postIndex
 13306  		case 5:
 13307  			if wireType != 2 {
 13308  				return fmt.Errorf("proto: wrong wireType = %d for field ValueEqual", wireType)
 13309  			}
 13310  			var byteLen int
 13311  			for shift := uint(0); ; shift += 7 {
 13312  				if shift >= 64 {
 13313  					return ErrIntOverflowLogproto
 13314  				}
 13315  				if iNdEx >= l {
 13316  					return io.ErrUnexpectedEOF
 13317  				}
 13318  				b := dAtA[iNdEx]
 13319  				iNdEx++
 13320  				byteLen |= int(b&0x7F) << shift
 13321  				if b < 0x80 {
 13322  					break
 13323  				}
 13324  			}
 13325  			if byteLen < 0 {
 13326  				return ErrInvalidLengthLogproto
 13327  			}
 13328  			postIndex := iNdEx + byteLen
 13329  			if postIndex < 0 {
 13330  				return ErrInvalidLengthLogproto
 13331  			}
 13332  			if postIndex > l {
 13333  				return io.ErrUnexpectedEOF
 13334  			}
 13335  			m.ValueEqual = append(m.ValueEqual[:0], dAtA[iNdEx:postIndex]...)
 13336  			if m.ValueEqual == nil {
 13337  				m.ValueEqual = []byte{}
 13338  			}
 13339  			iNdEx = postIndex
 13340  		default:
 13341  			iNdEx = preIndex
 13342  			skippy, err := skipLogproto(dAtA[iNdEx:])
 13343  			if err != nil {
 13344  				return err
 13345  			}
 13346  			if skippy < 0 {
 13347  				return ErrInvalidLengthLogproto
 13348  			}
 13349  			if (iNdEx + skippy) < 0 {
 13350  				return ErrInvalidLengthLogproto
 13351  			}
 13352  			if (iNdEx + skippy) > l {
 13353  				return io.ErrUnexpectedEOF
 13354  			}
 13355  			iNdEx += skippy
 13356  		}
 13357  	}
 13358  
 13359  	if iNdEx > l {
 13360  		return io.ErrUnexpectedEOF
 13361  	}
 13362  	return nil
 13363  }
 13364  func (m *IndexStatsRequest) Unmarshal(dAtA []byte) error {
 13365  	l := len(dAtA)
 13366  	iNdEx := 0
 13367  	for iNdEx < l {
 13368  		preIndex := iNdEx
 13369  		var wire uint64
 13370  		for shift := uint(0); ; shift += 7 {
 13371  			if shift >= 64 {
 13372  				return ErrIntOverflowLogproto
 13373  			}
 13374  			if iNdEx >= l {
 13375  				return io.ErrUnexpectedEOF
 13376  			}
 13377  			b := dAtA[iNdEx]
 13378  			iNdEx++
 13379  			wire |= uint64(b&0x7F) << shift
 13380  			if b < 0x80 {
 13381  				break
 13382  			}
 13383  		}
 13384  		fieldNum := int32(wire >> 3)
 13385  		wireType := int(wire & 0x7)
 13386  		if wireType == 4 {
 13387  			return fmt.Errorf("proto: IndexStatsRequest: wiretype end group for non-group")
 13388  		}
 13389  		if fieldNum <= 0 {
 13390  			return fmt.Errorf("proto: IndexStatsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
 13391  		}
 13392  		switch fieldNum {
 13393  		case 1:
 13394  			if wireType != 0 {
 13395  				return fmt.Errorf("proto: wrong wireType = %d for field From", wireType)
 13396  			}
 13397  			m.From = 0
 13398  			for shift := uint(0); ; shift += 7 {
 13399  				if shift >= 64 {
 13400  					return ErrIntOverflowLogproto
 13401  				}
 13402  				if iNdEx >= l {
 13403  					return io.ErrUnexpectedEOF
 13404  				}
 13405  				b := dAtA[iNdEx]
 13406  				iNdEx++
 13407  				m.From |= github_com_prometheus_common_model.Time(b&0x7F) << shift
 13408  				if b < 0x80 {
 13409  					break
 13410  				}
 13411  			}
 13412  		case 2:
 13413  			if wireType != 0 {
 13414  				return fmt.Errorf("proto: wrong wireType = %d for field Through", wireType)
 13415  			}
 13416  			m.Through = 0
 13417  			for shift := uint(0); ; shift += 7 {
 13418  				if shift >= 64 {
 13419  					return ErrIntOverflowLogproto
 13420  				}
 13421  				if iNdEx >= l {
 13422  					return io.ErrUnexpectedEOF
 13423  				}
 13424  				b := dAtA[iNdEx]
 13425  				iNdEx++
 13426  				m.Through |= github_com_prometheus_common_model.Time(b&0x7F) << shift
 13427  				if b < 0x80 {
 13428  					break
 13429  				}
 13430  			}
 13431  		case 3:
 13432  			if wireType != 2 {
 13433  				return fmt.Errorf("proto: wrong wireType = %d for field Matchers", wireType)
 13434  			}
 13435  			var stringLen uint64
 13436  			for shift := uint(0); ; shift += 7 {
 13437  				if shift >= 64 {
 13438  					return ErrIntOverflowLogproto
 13439  				}
 13440  				if iNdEx >= l {
 13441  					return io.ErrUnexpectedEOF
 13442  				}
 13443  				b := dAtA[iNdEx]
 13444  				iNdEx++
 13445  				stringLen |= uint64(b&0x7F) << shift
 13446  				if b < 0x80 {
 13447  					break
 13448  				}
 13449  			}
 13450  			intStringLen := int(stringLen)
 13451  			if intStringLen < 0 {
 13452  				return ErrInvalidLengthLogproto
 13453  			}
 13454  			postIndex := iNdEx + intStringLen
 13455  			if postIndex < 0 {
 13456  				return ErrInvalidLengthLogproto
 13457  			}
 13458  			if postIndex > l {
 13459  				return io.ErrUnexpectedEOF
 13460  			}
 13461  			m.Matchers = string(dAtA[iNdEx:postIndex])
 13462  			iNdEx = postIndex
 13463  		default:
 13464  			iNdEx = preIndex
 13465  			skippy, err := skipLogproto(dAtA[iNdEx:])
 13466  			if err != nil {
 13467  				return err
 13468  			}
 13469  			if skippy < 0 {
 13470  				return ErrInvalidLengthLogproto
 13471  			}
 13472  			if (iNdEx + skippy) < 0 {
 13473  				return ErrInvalidLengthLogproto
 13474  			}
 13475  			if (iNdEx + skippy) > l {
 13476  				return io.ErrUnexpectedEOF
 13477  			}
 13478  			iNdEx += skippy
 13479  		}
 13480  	}
 13481  
 13482  	if iNdEx > l {
 13483  		return io.ErrUnexpectedEOF
 13484  	}
 13485  	return nil
 13486  }
 13487  func (m *IndexStatsResponse) Unmarshal(dAtA []byte) error {
 13488  	l := len(dAtA)
 13489  	iNdEx := 0
 13490  	for iNdEx < l {
 13491  		preIndex := iNdEx
 13492  		var wire uint64
 13493  		for shift := uint(0); ; shift += 7 {
 13494  			if shift >= 64 {
 13495  				return ErrIntOverflowLogproto
 13496  			}
 13497  			if iNdEx >= l {
 13498  				return io.ErrUnexpectedEOF
 13499  			}
 13500  			b := dAtA[iNdEx]
 13501  			iNdEx++
 13502  			wire |= uint64(b&0x7F) << shift
 13503  			if b < 0x80 {
 13504  				break
 13505  			}
 13506  		}
 13507  		fieldNum := int32(wire >> 3)
 13508  		wireType := int(wire & 0x7)
 13509  		if wireType == 4 {
 13510  			return fmt.Errorf("proto: IndexStatsResponse: wiretype end group for non-group")
 13511  		}
 13512  		if fieldNum <= 0 {
 13513  			return fmt.Errorf("proto: IndexStatsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
 13514  		}
 13515  		switch fieldNum {
 13516  		case 1:
 13517  			if wireType != 0 {
 13518  				return fmt.Errorf("proto: wrong wireType = %d for field Streams", wireType)
 13519  			}
 13520  			m.Streams = 0
 13521  			for shift := uint(0); ; shift += 7 {
 13522  				if shift >= 64 {
 13523  					return ErrIntOverflowLogproto
 13524  				}
 13525  				if iNdEx >= l {
 13526  					return io.ErrUnexpectedEOF
 13527  				}
 13528  				b := dAtA[iNdEx]
 13529  				iNdEx++
 13530  				m.Streams |= uint64(b&0x7F) << shift
 13531  				if b < 0x80 {
 13532  					break
 13533  				}
 13534  			}
 13535  		case 2:
 13536  			if wireType != 0 {
 13537  				return fmt.Errorf("proto: wrong wireType = %d for field Chunks", wireType)
 13538  			}
 13539  			m.Chunks = 0
 13540  			for shift := uint(0); ; shift += 7 {
 13541  				if shift >= 64 {
 13542  					return ErrIntOverflowLogproto
 13543  				}
 13544  				if iNdEx >= l {
 13545  					return io.ErrUnexpectedEOF
 13546  				}
 13547  				b := dAtA[iNdEx]
 13548  				iNdEx++
 13549  				m.Chunks |= uint64(b&0x7F) << shift
 13550  				if b < 0x80 {
 13551  					break
 13552  				}
 13553  			}
 13554  		case 3:
 13555  			if wireType != 0 {
 13556  				return fmt.Errorf("proto: wrong wireType = %d for field Bytes", wireType)
 13557  			}
 13558  			m.Bytes = 0
 13559  			for shift := uint(0); ; shift += 7 {
 13560  				if shift >= 64 {
 13561  					return ErrIntOverflowLogproto
 13562  				}
 13563  				if iNdEx >= l {
 13564  					return io.ErrUnexpectedEOF
 13565  				}
 13566  				b := dAtA[iNdEx]
 13567  				iNdEx++
 13568  				m.Bytes |= uint64(b&0x7F) << shift
 13569  				if b < 0x80 {
 13570  					break
 13571  				}
 13572  			}
 13573  		case 4:
 13574  			if wireType != 0 {
 13575  				return fmt.Errorf("proto: wrong wireType = %d for field Entries", wireType)
 13576  			}
 13577  			m.Entries = 0
 13578  			for shift := uint(0); ; shift += 7 {
 13579  				if shift >= 64 {
 13580  					return ErrIntOverflowLogproto
 13581  				}
 13582  				if iNdEx >= l {
 13583  					return io.ErrUnexpectedEOF
 13584  				}
 13585  				b := dAtA[iNdEx]
 13586  				iNdEx++
 13587  				m.Entries |= uint64(b&0x7F) << shift
 13588  				if b < 0x80 {
 13589  					break
 13590  				}
 13591  			}
 13592  		default:
 13593  			iNdEx = preIndex
 13594  			skippy, err := skipLogproto(dAtA[iNdEx:])
 13595  			if err != nil {
 13596  				return err
 13597  			}
 13598  			if skippy < 0 {
 13599  				return ErrInvalidLengthLogproto
 13600  			}
 13601  			if (iNdEx + skippy) < 0 {
 13602  				return ErrInvalidLengthLogproto
 13603  			}
 13604  			if (iNdEx + skippy) > l {
 13605  				return io.ErrUnexpectedEOF
 13606  			}
 13607  			iNdEx += skippy
 13608  		}
 13609  	}
 13610  
 13611  	if iNdEx > l {
 13612  		return io.ErrUnexpectedEOF
 13613  	}
 13614  	return nil
 13615  }
 13616  func skipLogproto(dAtA []byte) (n int, err error) {
 13617  	l := len(dAtA)
 13618  	iNdEx := 0
 13619  	for iNdEx < l {
 13620  		var wire uint64
 13621  		for shift := uint(0); ; shift += 7 {
 13622  			if shift >= 64 {
 13623  				return 0, ErrIntOverflowLogproto
 13624  			}
 13625  			if iNdEx >= l {
 13626  				return 0, io.ErrUnexpectedEOF
 13627  			}
 13628  			b := dAtA[iNdEx]
 13629  			iNdEx++
 13630  			wire |= (uint64(b) & 0x7F) << shift
 13631  			if b < 0x80 {
 13632  				break
 13633  			}
 13634  		}
 13635  		wireType := int(wire & 0x7)
 13636  		switch wireType {
 13637  		case 0:
 13638  			for shift := uint(0); ; shift += 7 {
 13639  				if shift >= 64 {
 13640  					return 0, ErrIntOverflowLogproto
 13641  				}
 13642  				if iNdEx >= l {
 13643  					return 0, io.ErrUnexpectedEOF
 13644  				}
 13645  				iNdEx++
 13646  				if dAtA[iNdEx-1] < 0x80 {
 13647  					break
 13648  				}
 13649  			}
 13650  			return iNdEx, nil
 13651  		case 1:
 13652  			iNdEx += 8
 13653  			return iNdEx, nil
 13654  		case 2:
 13655  			var length int
 13656  			for shift := uint(0); ; shift += 7 {
 13657  				if shift >= 64 {
 13658  					return 0, ErrIntOverflowLogproto
 13659  				}
 13660  				if iNdEx >= l {
 13661  					return 0, io.ErrUnexpectedEOF
 13662  				}
 13663  				b := dAtA[iNdEx]
 13664  				iNdEx++
 13665  				length |= (int(b) & 0x7F) << shift
 13666  				if b < 0x80 {
 13667  					break
 13668  				}
 13669  			}
 13670  			if length < 0 {
 13671  				return 0, ErrInvalidLengthLogproto
 13672  			}
 13673  			iNdEx += length
 13674  			if iNdEx < 0 {
 13675  				return 0, ErrInvalidLengthLogproto
 13676  			}
 13677  			return iNdEx, nil
 13678  		case 3:
 13679  			for {
 13680  				var innerWire uint64
 13681  				var start int = iNdEx
 13682  				for shift := uint(0); ; shift += 7 {
 13683  					if shift >= 64 {
 13684  						return 0, ErrIntOverflowLogproto
 13685  					}
 13686  					if iNdEx >= l {
 13687  						return 0, io.ErrUnexpectedEOF
 13688  					}
 13689  					b := dAtA[iNdEx]
 13690  					iNdEx++
 13691  					innerWire |= (uint64(b) & 0x7F) << shift
 13692  					if b < 0x80 {
 13693  						break
 13694  					}
 13695  				}
 13696  				innerWireType := int(innerWire & 0x7)
 13697  				if innerWireType == 4 {
 13698  					break
 13699  				}
 13700  				next, err := skipLogproto(dAtA[start:])
 13701  				if err != nil {
 13702  					return 0, err
 13703  				}
 13704  				iNdEx = start + next
 13705  				if iNdEx < 0 {
 13706  					return 0, ErrInvalidLengthLogproto
 13707  				}
 13708  			}
 13709  			return iNdEx, nil
 13710  		case 4:
 13711  			return iNdEx, nil
 13712  		case 5:
 13713  			iNdEx += 4
 13714  			return iNdEx, nil
 13715  		default:
 13716  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
 13717  		}
 13718  	}
 13719  	panic("unreachable")
 13720  }
 13721  
 13722  var (
 13723  	ErrInvalidLengthLogproto = fmt.Errorf("proto: negative length found during unmarshaling")
 13724  	ErrIntOverflowLogproto   = fmt.Errorf("proto: integer overflow")
 13725  )