github.com/m3db/m3@v1.5.0/src/query/generated/proto/rpcpb/query.pb.go (about)

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