github.com/kiali/kiali@v1.84.0/tracing/tempo/tempopb/tempo.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: pkg/tempopb/tempo.proto
     3  
     4  package tempopb
     5  
     6  import (
     7  	context "context"
     8  	encoding_binary "encoding/binary"
     9  	fmt "fmt"
    10  	_ "github.com/gogo/protobuf/gogoproto"
    11  	proto "github.com/gogo/protobuf/proto"
    12  	v1 "github.com/kiali/kiali/tracing/tempo/tempopb/common/v1"
    13  	v11 "github.com/kiali/kiali/tracing/tempo/tempopb/trace/v1"
    14  	grpc "google.golang.org/grpc"
    15  	codes "google.golang.org/grpc/codes"
    16  	status "google.golang.org/grpc/status"
    17  	io "io"
    18  	math "math"
    19  	math_bits "math/bits"
    20  )
    21  
    22  // Reference imports to suppress errors if they are not otherwise used.
    23  var _ = proto.Marshal
    24  var _ = fmt.Errorf
    25  var _ = math.Inf
    26  
    27  // This is a compile-time assertion to ensure that this generated file
    28  // is compatible with the proto package it is being compiled against.
    29  // A compilation error at this line likely means your copy of the
    30  // proto package needs to be updated.
    31  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    32  
    33  type DedicatedColumn_Scope int32
    34  
    35  const (
    36  	DedicatedColumn_SPAN     DedicatedColumn_Scope = 0
    37  	DedicatedColumn_RESOURCE DedicatedColumn_Scope = 1
    38  )
    39  
    40  var DedicatedColumn_Scope_name = map[int32]string{
    41  	0: "SPAN",
    42  	1: "RESOURCE",
    43  }
    44  
    45  var DedicatedColumn_Scope_value = map[string]int32{
    46  	"SPAN":     0,
    47  	"RESOURCE": 1,
    48  }
    49  
    50  func (x DedicatedColumn_Scope) String() string {
    51  	return proto.EnumName(DedicatedColumn_Scope_name, int32(x))
    52  }
    53  
    54  func (DedicatedColumn_Scope) EnumDescriptor() ([]byte, []int) {
    55  	return fileDescriptor_f22805646f4f62b6, []int{5, 0}
    56  }
    57  
    58  type DedicatedColumn_Type int32
    59  
    60  const (
    61  	DedicatedColumn_STRING DedicatedColumn_Type = 0
    62  )
    63  
    64  var DedicatedColumn_Type_name = map[int32]string{
    65  	0: "STRING",
    66  }
    67  
    68  var DedicatedColumn_Type_value = map[string]int32{
    69  	"STRING": 0,
    70  }
    71  
    72  func (x DedicatedColumn_Type) String() string {
    73  	return proto.EnumName(DedicatedColumn_Type_name, int32(x))
    74  }
    75  
    76  func (DedicatedColumn_Type) EnumDescriptor() ([]byte, []int) {
    77  	return fileDescriptor_f22805646f4f62b6, []int{5, 1}
    78  }
    79  
    80  // Read
    81  type TraceByIDRequest struct {
    82  	TraceID    []byte `protobuf:"bytes,1,opt,name=traceID,proto3" json:"traceID,omitempty"`
    83  	BlockStart string `protobuf:"bytes,2,opt,name=blockStart,proto3" json:"blockStart,omitempty"`
    84  	BlockEnd   string `protobuf:"bytes,3,opt,name=blockEnd,proto3" json:"blockEnd,omitempty"`
    85  	QueryMode  string `protobuf:"bytes,5,opt,name=queryMode,proto3" json:"queryMode,omitempty"`
    86  }
    87  
    88  func (m *TraceByIDRequest) Reset()         { *m = TraceByIDRequest{} }
    89  func (m *TraceByIDRequest) String() string { return proto.CompactTextString(m) }
    90  func (*TraceByIDRequest) ProtoMessage()    {}
    91  func (*TraceByIDRequest) Descriptor() ([]byte, []int) {
    92  	return fileDescriptor_f22805646f4f62b6, []int{0}
    93  }
    94  func (m *TraceByIDRequest) XXX_Unmarshal(b []byte) error {
    95  	return m.Unmarshal(b)
    96  }
    97  func (m *TraceByIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    98  	if deterministic {
    99  		return xxx_messageInfo_TraceByIDRequest.Marshal(b, m, deterministic)
   100  	} else {
   101  		b = b[:cap(b)]
   102  		n, err := m.MarshalToSizedBuffer(b)
   103  		if err != nil {
   104  			return nil, err
   105  		}
   106  		return b[:n], nil
   107  	}
   108  }
   109  func (m *TraceByIDRequest) XXX_Merge(src proto.Message) {
   110  	xxx_messageInfo_TraceByIDRequest.Merge(m, src)
   111  }
   112  func (m *TraceByIDRequest) XXX_Size() int {
   113  	return m.Size()
   114  }
   115  func (m *TraceByIDRequest) XXX_DiscardUnknown() {
   116  	xxx_messageInfo_TraceByIDRequest.DiscardUnknown(m)
   117  }
   118  
   119  var xxx_messageInfo_TraceByIDRequest proto.InternalMessageInfo
   120  
   121  func (m *TraceByIDRequest) GetTraceID() []byte {
   122  	if m != nil {
   123  		return m.TraceID
   124  	}
   125  	return nil
   126  }
   127  
   128  func (m *TraceByIDRequest) GetBlockStart() string {
   129  	if m != nil {
   130  		return m.BlockStart
   131  	}
   132  	return ""
   133  }
   134  
   135  func (m *TraceByIDRequest) GetBlockEnd() string {
   136  	if m != nil {
   137  		return m.BlockEnd
   138  	}
   139  	return ""
   140  }
   141  
   142  func (m *TraceByIDRequest) GetQueryMode() string {
   143  	if m != nil {
   144  		return m.QueryMode
   145  	}
   146  	return ""
   147  }
   148  
   149  type TraceByIDResponse struct {
   150  	Trace   *Trace            `protobuf:"bytes,1,opt,name=trace,proto3" json:"trace,omitempty"`
   151  	Metrics *TraceByIDMetrics `protobuf:"bytes,2,opt,name=metrics,proto3" json:"metrics,omitempty"`
   152  }
   153  
   154  func (m *TraceByIDResponse) Reset()         { *m = TraceByIDResponse{} }
   155  func (m *TraceByIDResponse) String() string { return proto.CompactTextString(m) }
   156  func (*TraceByIDResponse) ProtoMessage()    {}
   157  func (*TraceByIDResponse) Descriptor() ([]byte, []int) {
   158  	return fileDescriptor_f22805646f4f62b6, []int{1}
   159  }
   160  func (m *TraceByIDResponse) XXX_Unmarshal(b []byte) error {
   161  	return m.Unmarshal(b)
   162  }
   163  func (m *TraceByIDResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   164  	if deterministic {
   165  		return xxx_messageInfo_TraceByIDResponse.Marshal(b, m, deterministic)
   166  	} else {
   167  		b = b[:cap(b)]
   168  		n, err := m.MarshalToSizedBuffer(b)
   169  		if err != nil {
   170  			return nil, err
   171  		}
   172  		return b[:n], nil
   173  	}
   174  }
   175  func (m *TraceByIDResponse) XXX_Merge(src proto.Message) {
   176  	xxx_messageInfo_TraceByIDResponse.Merge(m, src)
   177  }
   178  func (m *TraceByIDResponse) XXX_Size() int {
   179  	return m.Size()
   180  }
   181  func (m *TraceByIDResponse) XXX_DiscardUnknown() {
   182  	xxx_messageInfo_TraceByIDResponse.DiscardUnknown(m)
   183  }
   184  
   185  var xxx_messageInfo_TraceByIDResponse proto.InternalMessageInfo
   186  
   187  func (m *TraceByIDResponse) GetTrace() *Trace {
   188  	if m != nil {
   189  		return m.Trace
   190  	}
   191  	return nil
   192  }
   193  
   194  func (m *TraceByIDResponse) GetMetrics() *TraceByIDMetrics {
   195  	if m != nil {
   196  		return m.Metrics
   197  	}
   198  	return nil
   199  }
   200  
   201  type TraceByIDMetrics struct {
   202  }
   203  
   204  func (m *TraceByIDMetrics) Reset()         { *m = TraceByIDMetrics{} }
   205  func (m *TraceByIDMetrics) String() string { return proto.CompactTextString(m) }
   206  func (*TraceByIDMetrics) ProtoMessage()    {}
   207  func (*TraceByIDMetrics) Descriptor() ([]byte, []int) {
   208  	return fileDescriptor_f22805646f4f62b6, []int{2}
   209  }
   210  func (m *TraceByIDMetrics) XXX_Unmarshal(b []byte) error {
   211  	return m.Unmarshal(b)
   212  }
   213  func (m *TraceByIDMetrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   214  	if deterministic {
   215  		return xxx_messageInfo_TraceByIDMetrics.Marshal(b, m, deterministic)
   216  	} else {
   217  		b = b[:cap(b)]
   218  		n, err := m.MarshalToSizedBuffer(b)
   219  		if err != nil {
   220  			return nil, err
   221  		}
   222  		return b[:n], nil
   223  	}
   224  }
   225  func (m *TraceByIDMetrics) XXX_Merge(src proto.Message) {
   226  	xxx_messageInfo_TraceByIDMetrics.Merge(m, src)
   227  }
   228  func (m *TraceByIDMetrics) XXX_Size() int {
   229  	return m.Size()
   230  }
   231  func (m *TraceByIDMetrics) XXX_DiscardUnknown() {
   232  	xxx_messageInfo_TraceByIDMetrics.DiscardUnknown(m)
   233  }
   234  
   235  var xxx_messageInfo_TraceByIDMetrics proto.InternalMessageInfo
   236  
   237  // SearchRequest takes no block parameters and implies a "recent traces" search
   238  type SearchRequest struct {
   239  	// case insensitive partial match
   240  	Tags          map[string]string `protobuf:"bytes,1,rep,name=Tags,proto3" json:"Tags" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
   241  	MinDurationMs uint32            `protobuf:"varint,2,opt,name=MinDurationMs,proto3" json:"MinDurationMs,omitempty"`
   242  	MaxDurationMs uint32            `protobuf:"varint,3,opt,name=MaxDurationMs,proto3" json:"MaxDurationMs,omitempty"`
   243  	Limit         uint32            `protobuf:"varint,4,opt,name=Limit,proto3" json:"Limit,omitempty"`
   244  	Start         uint32            `protobuf:"varint,5,opt,name=start,proto3" json:"start,omitempty"`
   245  	End           uint32            `protobuf:"varint,6,opt,name=end,proto3" json:"end,omitempty"`
   246  	// TraceQL query
   247  	Query           string `protobuf:"bytes,8,opt,name=Query,proto3" json:"Query,omitempty"`
   248  	SpansPerSpanSet uint32 `protobuf:"varint,9,opt,name=SpansPerSpanSet,proto3" json:"SpansPerSpanSet,omitempty"`
   249  }
   250  
   251  func (m *SearchRequest) Reset()         { *m = SearchRequest{} }
   252  func (m *SearchRequest) String() string { return proto.CompactTextString(m) }
   253  func (*SearchRequest) ProtoMessage()    {}
   254  func (*SearchRequest) Descriptor() ([]byte, []int) {
   255  	return fileDescriptor_f22805646f4f62b6, []int{3}
   256  }
   257  func (m *SearchRequest) XXX_Unmarshal(b []byte) error {
   258  	return m.Unmarshal(b)
   259  }
   260  func (m *SearchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   261  	if deterministic {
   262  		return xxx_messageInfo_SearchRequest.Marshal(b, m, deterministic)
   263  	} else {
   264  		b = b[:cap(b)]
   265  		n, err := m.MarshalToSizedBuffer(b)
   266  		if err != nil {
   267  			return nil, err
   268  		}
   269  		return b[:n], nil
   270  	}
   271  }
   272  func (m *SearchRequest) XXX_Merge(src proto.Message) {
   273  	xxx_messageInfo_SearchRequest.Merge(m, src)
   274  }
   275  func (m *SearchRequest) XXX_Size() int {
   276  	return m.Size()
   277  }
   278  func (m *SearchRequest) XXX_DiscardUnknown() {
   279  	xxx_messageInfo_SearchRequest.DiscardUnknown(m)
   280  }
   281  
   282  var xxx_messageInfo_SearchRequest proto.InternalMessageInfo
   283  
   284  func (m *SearchRequest) GetTags() map[string]string {
   285  	if m != nil {
   286  		return m.Tags
   287  	}
   288  	return nil
   289  }
   290  
   291  func (m *SearchRequest) GetMinDurationMs() uint32 {
   292  	if m != nil {
   293  		return m.MinDurationMs
   294  	}
   295  	return 0
   296  }
   297  
   298  func (m *SearchRequest) GetMaxDurationMs() uint32 {
   299  	if m != nil {
   300  		return m.MaxDurationMs
   301  	}
   302  	return 0
   303  }
   304  
   305  func (m *SearchRequest) GetLimit() uint32 {
   306  	if m != nil {
   307  		return m.Limit
   308  	}
   309  	return 0
   310  }
   311  
   312  func (m *SearchRequest) GetStart() uint32 {
   313  	if m != nil {
   314  		return m.Start
   315  	}
   316  	return 0
   317  }
   318  
   319  func (m *SearchRequest) GetEnd() uint32 {
   320  	if m != nil {
   321  		return m.End
   322  	}
   323  	return 0
   324  }
   325  
   326  func (m *SearchRequest) GetQuery() string {
   327  	if m != nil {
   328  		return m.Query
   329  	}
   330  	return ""
   331  }
   332  
   333  func (m *SearchRequest) GetSpansPerSpanSet() uint32 {
   334  	if m != nil {
   335  		return m.SpansPerSpanSet
   336  	}
   337  	return 0
   338  }
   339  
   340  // SearchBlockRequest takes SearchRequest parameters as well as all information necessary
   341  // to search a block in the backend.
   342  type SearchBlockRequest struct {
   343  	SearchReq        *SearchRequest     `protobuf:"bytes,1,opt,name=searchReq,proto3" json:"searchReq,omitempty"`
   344  	BlockID          string             `protobuf:"bytes,2,opt,name=blockID,proto3" json:"blockID,omitempty"`
   345  	StartPage        uint32             `protobuf:"varint,3,opt,name=startPage,proto3" json:"startPage,omitempty"`
   346  	PagesToSearch    uint32             `protobuf:"varint,4,opt,name=pagesToSearch,proto3" json:"pagesToSearch,omitempty"`
   347  	Encoding         string             `protobuf:"bytes,5,opt,name=encoding,proto3" json:"encoding,omitempty"`
   348  	IndexPageSize    uint32             `protobuf:"varint,6,opt,name=indexPageSize,proto3" json:"indexPageSize,omitempty"`
   349  	TotalRecords     uint32             `protobuf:"varint,7,opt,name=totalRecords,proto3" json:"totalRecords,omitempty"`
   350  	DataEncoding     string             `protobuf:"bytes,8,opt,name=dataEncoding,proto3" json:"dataEncoding,omitempty"`
   351  	Version          string             `protobuf:"bytes,9,opt,name=version,proto3" json:"version,omitempty"`
   352  	Size_            uint64             `protobuf:"varint,10,opt,name=size,proto3" json:"size,omitempty"`
   353  	FooterSize       uint32             `protobuf:"varint,11,opt,name=footerSize,proto3" json:"footerSize,omitempty"`
   354  	DedicatedColumns []*DedicatedColumn `protobuf:"bytes,12,rep,name=dedicatedColumns,proto3" json:"dedicatedColumns,omitempty"`
   355  }
   356  
   357  func (m *SearchBlockRequest) Reset()         { *m = SearchBlockRequest{} }
   358  func (m *SearchBlockRequest) String() string { return proto.CompactTextString(m) }
   359  func (*SearchBlockRequest) ProtoMessage()    {}
   360  func (*SearchBlockRequest) Descriptor() ([]byte, []int) {
   361  	return fileDescriptor_f22805646f4f62b6, []int{4}
   362  }
   363  func (m *SearchBlockRequest) XXX_Unmarshal(b []byte) error {
   364  	return m.Unmarshal(b)
   365  }
   366  func (m *SearchBlockRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   367  	if deterministic {
   368  		return xxx_messageInfo_SearchBlockRequest.Marshal(b, m, deterministic)
   369  	} else {
   370  		b = b[:cap(b)]
   371  		n, err := m.MarshalToSizedBuffer(b)
   372  		if err != nil {
   373  			return nil, err
   374  		}
   375  		return b[:n], nil
   376  	}
   377  }
   378  func (m *SearchBlockRequest) XXX_Merge(src proto.Message) {
   379  	xxx_messageInfo_SearchBlockRequest.Merge(m, src)
   380  }
   381  func (m *SearchBlockRequest) XXX_Size() int {
   382  	return m.Size()
   383  }
   384  func (m *SearchBlockRequest) XXX_DiscardUnknown() {
   385  	xxx_messageInfo_SearchBlockRequest.DiscardUnknown(m)
   386  }
   387  
   388  var xxx_messageInfo_SearchBlockRequest proto.InternalMessageInfo
   389  
   390  func (m *SearchBlockRequest) GetSearchReq() *SearchRequest {
   391  	if m != nil {
   392  		return m.SearchReq
   393  	}
   394  	return nil
   395  }
   396  
   397  func (m *SearchBlockRequest) GetBlockID() string {
   398  	if m != nil {
   399  		return m.BlockID
   400  	}
   401  	return ""
   402  }
   403  
   404  func (m *SearchBlockRequest) GetStartPage() uint32 {
   405  	if m != nil {
   406  		return m.StartPage
   407  	}
   408  	return 0
   409  }
   410  
   411  func (m *SearchBlockRequest) GetPagesToSearch() uint32 {
   412  	if m != nil {
   413  		return m.PagesToSearch
   414  	}
   415  	return 0
   416  }
   417  
   418  func (m *SearchBlockRequest) GetEncoding() string {
   419  	if m != nil {
   420  		return m.Encoding
   421  	}
   422  	return ""
   423  }
   424  
   425  func (m *SearchBlockRequest) GetIndexPageSize() uint32 {
   426  	if m != nil {
   427  		return m.IndexPageSize
   428  	}
   429  	return 0
   430  }
   431  
   432  func (m *SearchBlockRequest) GetTotalRecords() uint32 {
   433  	if m != nil {
   434  		return m.TotalRecords
   435  	}
   436  	return 0
   437  }
   438  
   439  func (m *SearchBlockRequest) GetDataEncoding() string {
   440  	if m != nil {
   441  		return m.DataEncoding
   442  	}
   443  	return ""
   444  }
   445  
   446  func (m *SearchBlockRequest) GetVersion() string {
   447  	if m != nil {
   448  		return m.Version
   449  	}
   450  	return ""
   451  }
   452  
   453  func (m *SearchBlockRequest) GetSize_() uint64 {
   454  	if m != nil {
   455  		return m.Size_
   456  	}
   457  	return 0
   458  }
   459  
   460  func (m *SearchBlockRequest) GetFooterSize() uint32 {
   461  	if m != nil {
   462  		return m.FooterSize
   463  	}
   464  	return 0
   465  }
   466  
   467  func (m *SearchBlockRequest) GetDedicatedColumns() []*DedicatedColumn {
   468  	if m != nil {
   469  		return m.DedicatedColumns
   470  	}
   471  	return nil
   472  }
   473  
   474  // Configuration for a single dedicated attribute column.
   475  type DedicatedColumn struct {
   476  	Scope DedicatedColumn_Scope `protobuf:"varint,3,opt,name=scope,proto3,enum=tempopb.DedicatedColumn_Scope" json:"scope,omitempty"`
   477  	Name  string                `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
   478  	Type  DedicatedColumn_Type  `protobuf:"varint,1,opt,name=type,proto3,enum=tempopb.DedicatedColumn_Type" json:"type,omitempty"`
   479  }
   480  
   481  func (m *DedicatedColumn) Reset()         { *m = DedicatedColumn{} }
   482  func (m *DedicatedColumn) String() string { return proto.CompactTextString(m) }
   483  func (*DedicatedColumn) ProtoMessage()    {}
   484  func (*DedicatedColumn) Descriptor() ([]byte, []int) {
   485  	return fileDescriptor_f22805646f4f62b6, []int{5}
   486  }
   487  func (m *DedicatedColumn) XXX_Unmarshal(b []byte) error {
   488  	return m.Unmarshal(b)
   489  }
   490  func (m *DedicatedColumn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   491  	if deterministic {
   492  		return xxx_messageInfo_DedicatedColumn.Marshal(b, m, deterministic)
   493  	} else {
   494  		b = b[:cap(b)]
   495  		n, err := m.MarshalToSizedBuffer(b)
   496  		if err != nil {
   497  			return nil, err
   498  		}
   499  		return b[:n], nil
   500  	}
   501  }
   502  func (m *DedicatedColumn) XXX_Merge(src proto.Message) {
   503  	xxx_messageInfo_DedicatedColumn.Merge(m, src)
   504  }
   505  func (m *DedicatedColumn) XXX_Size() int {
   506  	return m.Size()
   507  }
   508  func (m *DedicatedColumn) XXX_DiscardUnknown() {
   509  	xxx_messageInfo_DedicatedColumn.DiscardUnknown(m)
   510  }
   511  
   512  var xxx_messageInfo_DedicatedColumn proto.InternalMessageInfo
   513  
   514  func (m *DedicatedColumn) GetScope() DedicatedColumn_Scope {
   515  	if m != nil {
   516  		return m.Scope
   517  	}
   518  	return DedicatedColumn_SPAN
   519  }
   520  
   521  func (m *DedicatedColumn) GetName() string {
   522  	if m != nil {
   523  		return m.Name
   524  	}
   525  	return ""
   526  }
   527  
   528  func (m *DedicatedColumn) GetType() DedicatedColumn_Type {
   529  	if m != nil {
   530  		return m.Type
   531  	}
   532  	return DedicatedColumn_STRING
   533  }
   534  
   535  type SearchResponse struct {
   536  	Traces  []*TraceSearchMetadata `protobuf:"bytes,1,rep,name=traces,proto3" json:"traces,omitempty"`
   537  	Metrics *SearchMetrics         `protobuf:"bytes,2,opt,name=metrics,proto3" json:"metrics,omitempty"`
   538  }
   539  
   540  func (m *SearchResponse) Reset()         { *m = SearchResponse{} }
   541  func (m *SearchResponse) String() string { return proto.CompactTextString(m) }
   542  func (*SearchResponse) ProtoMessage()    {}
   543  func (*SearchResponse) Descriptor() ([]byte, []int) {
   544  	return fileDescriptor_f22805646f4f62b6, []int{6}
   545  }
   546  func (m *SearchResponse) XXX_Unmarshal(b []byte) error {
   547  	return m.Unmarshal(b)
   548  }
   549  func (m *SearchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   550  	if deterministic {
   551  		return xxx_messageInfo_SearchResponse.Marshal(b, m, deterministic)
   552  	} else {
   553  		b = b[:cap(b)]
   554  		n, err := m.MarshalToSizedBuffer(b)
   555  		if err != nil {
   556  			return nil, err
   557  		}
   558  		return b[:n], nil
   559  	}
   560  }
   561  func (m *SearchResponse) XXX_Merge(src proto.Message) {
   562  	xxx_messageInfo_SearchResponse.Merge(m, src)
   563  }
   564  func (m *SearchResponse) XXX_Size() int {
   565  	return m.Size()
   566  }
   567  func (m *SearchResponse) XXX_DiscardUnknown() {
   568  	xxx_messageInfo_SearchResponse.DiscardUnknown(m)
   569  }
   570  
   571  var xxx_messageInfo_SearchResponse proto.InternalMessageInfo
   572  
   573  func (m *SearchResponse) GetTraces() []*TraceSearchMetadata {
   574  	if m != nil {
   575  		return m.Traces
   576  	}
   577  	return nil
   578  }
   579  
   580  func (m *SearchResponse) GetMetrics() *SearchMetrics {
   581  	if m != nil {
   582  		return m.Metrics
   583  	}
   584  	return nil
   585  }
   586  
   587  type TraceSearchMetadata struct {
   588  	TraceID           string     `protobuf:"bytes,1,opt,name=traceID,proto3" json:"traceID,omitempty"`
   589  	RootServiceName   string     `protobuf:"bytes,2,opt,name=rootServiceName,proto3" json:"rootServiceName,omitempty"`
   590  	RootTraceName     string     `protobuf:"bytes,3,opt,name=rootTraceName,proto3" json:"rootTraceName,omitempty"`
   591  	StartTimeUnixNano uint64     `protobuf:"varint,4,opt,name=startTimeUnixNano,proto3" json:"startTimeUnixNano,omitempty"`
   592  	DurationMs        uint32     `protobuf:"varint,5,opt,name=durationMs,proto3" json:"durationMs,omitempty"`
   593  	SpanSet           *SpanSet   `protobuf:"bytes,6,opt,name=spanSet,proto3" json:"spanSet,omitempty"`
   594  	SpanSets          []*SpanSet `protobuf:"bytes,7,rep,name=spanSets,proto3" json:"spanSets,omitempty"`
   595  }
   596  
   597  func (m *TraceSearchMetadata) Reset()         { *m = TraceSearchMetadata{} }
   598  func (m *TraceSearchMetadata) String() string { return proto.CompactTextString(m) }
   599  func (*TraceSearchMetadata) ProtoMessage()    {}
   600  func (*TraceSearchMetadata) Descriptor() ([]byte, []int) {
   601  	return fileDescriptor_f22805646f4f62b6, []int{7}
   602  }
   603  func (m *TraceSearchMetadata) XXX_Unmarshal(b []byte) error {
   604  	return m.Unmarshal(b)
   605  }
   606  func (m *TraceSearchMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   607  	if deterministic {
   608  		return xxx_messageInfo_TraceSearchMetadata.Marshal(b, m, deterministic)
   609  	} else {
   610  		b = b[:cap(b)]
   611  		n, err := m.MarshalToSizedBuffer(b)
   612  		if err != nil {
   613  			return nil, err
   614  		}
   615  		return b[:n], nil
   616  	}
   617  }
   618  func (m *TraceSearchMetadata) XXX_Merge(src proto.Message) {
   619  	xxx_messageInfo_TraceSearchMetadata.Merge(m, src)
   620  }
   621  func (m *TraceSearchMetadata) XXX_Size() int {
   622  	return m.Size()
   623  }
   624  func (m *TraceSearchMetadata) XXX_DiscardUnknown() {
   625  	xxx_messageInfo_TraceSearchMetadata.DiscardUnknown(m)
   626  }
   627  
   628  var xxx_messageInfo_TraceSearchMetadata proto.InternalMessageInfo
   629  
   630  func (m *TraceSearchMetadata) GetTraceID() string {
   631  	if m != nil {
   632  		return m.TraceID
   633  	}
   634  	return ""
   635  }
   636  
   637  func (m *TraceSearchMetadata) GetRootServiceName() string {
   638  	if m != nil {
   639  		return m.RootServiceName
   640  	}
   641  	return ""
   642  }
   643  
   644  func (m *TraceSearchMetadata) GetRootTraceName() string {
   645  	if m != nil {
   646  		return m.RootTraceName
   647  	}
   648  	return ""
   649  }
   650  
   651  func (m *TraceSearchMetadata) GetStartTimeUnixNano() uint64 {
   652  	if m != nil {
   653  		return m.StartTimeUnixNano
   654  	}
   655  	return 0
   656  }
   657  
   658  func (m *TraceSearchMetadata) GetDurationMs() uint32 {
   659  	if m != nil {
   660  		return m.DurationMs
   661  	}
   662  	return 0
   663  }
   664  
   665  func (m *TraceSearchMetadata) GetSpanSet() *SpanSet {
   666  	if m != nil {
   667  		return m.SpanSet
   668  	}
   669  	return nil
   670  }
   671  
   672  func (m *TraceSearchMetadata) GetSpanSets() []*SpanSet {
   673  	if m != nil {
   674  		return m.SpanSets
   675  	}
   676  	return nil
   677  }
   678  
   679  type SpanSet struct {
   680  	Spans      []*Span        `protobuf:"bytes,1,rep,name=spans,proto3" json:"spans,omitempty"`
   681  	Matched    uint32         `protobuf:"varint,2,opt,name=matched,proto3" json:"matched,omitempty"`
   682  	Attributes []*v1.KeyValue `protobuf:"bytes,3,rep,name=attributes,proto3" json:"attributes,omitempty"`
   683  }
   684  
   685  func (m *SpanSet) Reset()         { *m = SpanSet{} }
   686  func (m *SpanSet) String() string { return proto.CompactTextString(m) }
   687  func (*SpanSet) ProtoMessage()    {}
   688  func (*SpanSet) Descriptor() ([]byte, []int) {
   689  	return fileDescriptor_f22805646f4f62b6, []int{8}
   690  }
   691  func (m *SpanSet) XXX_Unmarshal(b []byte) error {
   692  	return m.Unmarshal(b)
   693  }
   694  func (m *SpanSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   695  	if deterministic {
   696  		return xxx_messageInfo_SpanSet.Marshal(b, m, deterministic)
   697  	} else {
   698  		b = b[:cap(b)]
   699  		n, err := m.MarshalToSizedBuffer(b)
   700  		if err != nil {
   701  			return nil, err
   702  		}
   703  		return b[:n], nil
   704  	}
   705  }
   706  func (m *SpanSet) XXX_Merge(src proto.Message) {
   707  	xxx_messageInfo_SpanSet.Merge(m, src)
   708  }
   709  func (m *SpanSet) XXX_Size() int {
   710  	return m.Size()
   711  }
   712  func (m *SpanSet) XXX_DiscardUnknown() {
   713  	xxx_messageInfo_SpanSet.DiscardUnknown(m)
   714  }
   715  
   716  var xxx_messageInfo_SpanSet proto.InternalMessageInfo
   717  
   718  func (m *SpanSet) GetSpans() []*Span {
   719  	if m != nil {
   720  		return m.Spans
   721  	}
   722  	return nil
   723  }
   724  
   725  func (m *SpanSet) GetMatched() uint32 {
   726  	if m != nil {
   727  		return m.Matched
   728  	}
   729  	return 0
   730  }
   731  
   732  func (m *SpanSet) GetAttributes() []*v1.KeyValue {
   733  	if m != nil {
   734  		return m.Attributes
   735  	}
   736  	return nil
   737  }
   738  
   739  type Span struct {
   740  	SpanID            string         `protobuf:"bytes,1,opt,name=spanID,proto3" json:"spanID,omitempty"`
   741  	Name              string         `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
   742  	StartTimeUnixNano uint64         `protobuf:"varint,3,opt,name=startTimeUnixNano,proto3" json:"startTimeUnixNano,omitempty"`
   743  	DurationNanos     uint64         `protobuf:"varint,4,opt,name=durationNanos,proto3" json:"durationNanos,omitempty"`
   744  	Attributes        []*v1.KeyValue `protobuf:"bytes,5,rep,name=attributes,proto3" json:"attributes,omitempty"`
   745  }
   746  
   747  func (m *Span) Reset()         { *m = Span{} }
   748  func (m *Span) String() string { return proto.CompactTextString(m) }
   749  func (*Span) ProtoMessage()    {}
   750  func (*Span) Descriptor() ([]byte, []int) {
   751  	return fileDescriptor_f22805646f4f62b6, []int{9}
   752  }
   753  func (m *Span) XXX_Unmarshal(b []byte) error {
   754  	return m.Unmarshal(b)
   755  }
   756  func (m *Span) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   757  	if deterministic {
   758  		return xxx_messageInfo_Span.Marshal(b, m, deterministic)
   759  	} else {
   760  		b = b[:cap(b)]
   761  		n, err := m.MarshalToSizedBuffer(b)
   762  		if err != nil {
   763  			return nil, err
   764  		}
   765  		return b[:n], nil
   766  	}
   767  }
   768  func (m *Span) XXX_Merge(src proto.Message) {
   769  	xxx_messageInfo_Span.Merge(m, src)
   770  }
   771  func (m *Span) XXX_Size() int {
   772  	return m.Size()
   773  }
   774  func (m *Span) XXX_DiscardUnknown() {
   775  	xxx_messageInfo_Span.DiscardUnknown(m)
   776  }
   777  
   778  var xxx_messageInfo_Span proto.InternalMessageInfo
   779  
   780  func (m *Span) GetSpanID() string {
   781  	if m != nil {
   782  		return m.SpanID
   783  	}
   784  	return ""
   785  }
   786  
   787  func (m *Span) GetName() string {
   788  	if m != nil {
   789  		return m.Name
   790  	}
   791  	return ""
   792  }
   793  
   794  func (m *Span) GetStartTimeUnixNano() uint64 {
   795  	if m != nil {
   796  		return m.StartTimeUnixNano
   797  	}
   798  	return 0
   799  }
   800  
   801  func (m *Span) GetDurationNanos() uint64 {
   802  	if m != nil {
   803  		return m.DurationNanos
   804  	}
   805  	return 0
   806  }
   807  
   808  func (m *Span) GetAttributes() []*v1.KeyValue {
   809  	if m != nil {
   810  		return m.Attributes
   811  	}
   812  	return nil
   813  }
   814  
   815  type SearchMetrics struct {
   816  	InspectedTraces uint32 `protobuf:"varint,1,opt,name=inspectedTraces,proto3" json:"inspectedTraces,omitempty"`
   817  	InspectedBytes  uint64 `protobuf:"varint,2,opt,name=inspectedBytes,proto3" json:"inspectedBytes,omitempty"`
   818  	TotalBlocks     uint32 `protobuf:"varint,3,opt,name=totalBlocks,proto3" json:"totalBlocks,omitempty"`
   819  	CompletedJobs   uint32 `protobuf:"varint,4,opt,name=completedJobs,proto3" json:"completedJobs,omitempty"`
   820  	TotalJobs       uint32 `protobuf:"varint,5,opt,name=totalJobs,proto3" json:"totalJobs,omitempty"`
   821  	TotalBlockBytes uint64 `protobuf:"varint,6,opt,name=totalBlockBytes,proto3" json:"totalBlockBytes,omitempty"`
   822  }
   823  
   824  func (m *SearchMetrics) Reset()         { *m = SearchMetrics{} }
   825  func (m *SearchMetrics) String() string { return proto.CompactTextString(m) }
   826  func (*SearchMetrics) ProtoMessage()    {}
   827  func (*SearchMetrics) Descriptor() ([]byte, []int) {
   828  	return fileDescriptor_f22805646f4f62b6, []int{10}
   829  }
   830  func (m *SearchMetrics) XXX_Unmarshal(b []byte) error {
   831  	return m.Unmarshal(b)
   832  }
   833  func (m *SearchMetrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   834  	if deterministic {
   835  		return xxx_messageInfo_SearchMetrics.Marshal(b, m, deterministic)
   836  	} else {
   837  		b = b[:cap(b)]
   838  		n, err := m.MarshalToSizedBuffer(b)
   839  		if err != nil {
   840  			return nil, err
   841  		}
   842  		return b[:n], nil
   843  	}
   844  }
   845  func (m *SearchMetrics) XXX_Merge(src proto.Message) {
   846  	xxx_messageInfo_SearchMetrics.Merge(m, src)
   847  }
   848  func (m *SearchMetrics) XXX_Size() int {
   849  	return m.Size()
   850  }
   851  func (m *SearchMetrics) XXX_DiscardUnknown() {
   852  	xxx_messageInfo_SearchMetrics.DiscardUnknown(m)
   853  }
   854  
   855  var xxx_messageInfo_SearchMetrics proto.InternalMessageInfo
   856  
   857  func (m *SearchMetrics) GetInspectedTraces() uint32 {
   858  	if m != nil {
   859  		return m.InspectedTraces
   860  	}
   861  	return 0
   862  }
   863  
   864  func (m *SearchMetrics) GetInspectedBytes() uint64 {
   865  	if m != nil {
   866  		return m.InspectedBytes
   867  	}
   868  	return 0
   869  }
   870  
   871  func (m *SearchMetrics) GetTotalBlocks() uint32 {
   872  	if m != nil {
   873  		return m.TotalBlocks
   874  	}
   875  	return 0
   876  }
   877  
   878  func (m *SearchMetrics) GetCompletedJobs() uint32 {
   879  	if m != nil {
   880  		return m.CompletedJobs
   881  	}
   882  	return 0
   883  }
   884  
   885  func (m *SearchMetrics) GetTotalJobs() uint32 {
   886  	if m != nil {
   887  		return m.TotalJobs
   888  	}
   889  	return 0
   890  }
   891  
   892  func (m *SearchMetrics) GetTotalBlockBytes() uint64 {
   893  	if m != nil {
   894  		return m.TotalBlockBytes
   895  	}
   896  	return 0
   897  }
   898  
   899  type SearchTagsRequest struct {
   900  	Scope string `protobuf:"bytes,1,opt,name=scope,proto3" json:"scope,omitempty"`
   901  }
   902  
   903  func (m *SearchTagsRequest) Reset()         { *m = SearchTagsRequest{} }
   904  func (m *SearchTagsRequest) String() string { return proto.CompactTextString(m) }
   905  func (*SearchTagsRequest) ProtoMessage()    {}
   906  func (*SearchTagsRequest) Descriptor() ([]byte, []int) {
   907  	return fileDescriptor_f22805646f4f62b6, []int{11}
   908  }
   909  func (m *SearchTagsRequest) XXX_Unmarshal(b []byte) error {
   910  	return m.Unmarshal(b)
   911  }
   912  func (m *SearchTagsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   913  	if deterministic {
   914  		return xxx_messageInfo_SearchTagsRequest.Marshal(b, m, deterministic)
   915  	} else {
   916  		b = b[:cap(b)]
   917  		n, err := m.MarshalToSizedBuffer(b)
   918  		if err != nil {
   919  			return nil, err
   920  		}
   921  		return b[:n], nil
   922  	}
   923  }
   924  func (m *SearchTagsRequest) XXX_Merge(src proto.Message) {
   925  	xxx_messageInfo_SearchTagsRequest.Merge(m, src)
   926  }
   927  func (m *SearchTagsRequest) XXX_Size() int {
   928  	return m.Size()
   929  }
   930  func (m *SearchTagsRequest) XXX_DiscardUnknown() {
   931  	xxx_messageInfo_SearchTagsRequest.DiscardUnknown(m)
   932  }
   933  
   934  var xxx_messageInfo_SearchTagsRequest proto.InternalMessageInfo
   935  
   936  func (m *SearchTagsRequest) GetScope() string {
   937  	if m != nil {
   938  		return m.Scope
   939  	}
   940  	return ""
   941  }
   942  
   943  type SearchTagsResponse struct {
   944  	TagNames []string `protobuf:"bytes,1,rep,name=tagNames,proto3" json:"tagNames,omitempty"`
   945  }
   946  
   947  func (m *SearchTagsResponse) Reset()         { *m = SearchTagsResponse{} }
   948  func (m *SearchTagsResponse) String() string { return proto.CompactTextString(m) }
   949  func (*SearchTagsResponse) ProtoMessage()    {}
   950  func (*SearchTagsResponse) Descriptor() ([]byte, []int) {
   951  	return fileDescriptor_f22805646f4f62b6, []int{12}
   952  }
   953  func (m *SearchTagsResponse) XXX_Unmarshal(b []byte) error {
   954  	return m.Unmarshal(b)
   955  }
   956  func (m *SearchTagsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   957  	if deterministic {
   958  		return xxx_messageInfo_SearchTagsResponse.Marshal(b, m, deterministic)
   959  	} else {
   960  		b = b[:cap(b)]
   961  		n, err := m.MarshalToSizedBuffer(b)
   962  		if err != nil {
   963  			return nil, err
   964  		}
   965  		return b[:n], nil
   966  	}
   967  }
   968  func (m *SearchTagsResponse) XXX_Merge(src proto.Message) {
   969  	xxx_messageInfo_SearchTagsResponse.Merge(m, src)
   970  }
   971  func (m *SearchTagsResponse) XXX_Size() int {
   972  	return m.Size()
   973  }
   974  func (m *SearchTagsResponse) XXX_DiscardUnknown() {
   975  	xxx_messageInfo_SearchTagsResponse.DiscardUnknown(m)
   976  }
   977  
   978  var xxx_messageInfo_SearchTagsResponse proto.InternalMessageInfo
   979  
   980  func (m *SearchTagsResponse) GetTagNames() []string {
   981  	if m != nil {
   982  		return m.TagNames
   983  	}
   984  	return nil
   985  }
   986  
   987  type SearchTagsV2Response struct {
   988  	Scopes []*SearchTagsV2Scope `protobuf:"bytes,1,rep,name=scopes,proto3" json:"scopes,omitempty"`
   989  }
   990  
   991  func (m *SearchTagsV2Response) Reset()         { *m = SearchTagsV2Response{} }
   992  func (m *SearchTagsV2Response) String() string { return proto.CompactTextString(m) }
   993  func (*SearchTagsV2Response) ProtoMessage()    {}
   994  func (*SearchTagsV2Response) Descriptor() ([]byte, []int) {
   995  	return fileDescriptor_f22805646f4f62b6, []int{13}
   996  }
   997  func (m *SearchTagsV2Response) XXX_Unmarshal(b []byte) error {
   998  	return m.Unmarshal(b)
   999  }
  1000  func (m *SearchTagsV2Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1001  	if deterministic {
  1002  		return xxx_messageInfo_SearchTagsV2Response.Marshal(b, m, deterministic)
  1003  	} else {
  1004  		b = b[:cap(b)]
  1005  		n, err := m.MarshalToSizedBuffer(b)
  1006  		if err != nil {
  1007  			return nil, err
  1008  		}
  1009  		return b[:n], nil
  1010  	}
  1011  }
  1012  func (m *SearchTagsV2Response) XXX_Merge(src proto.Message) {
  1013  	xxx_messageInfo_SearchTagsV2Response.Merge(m, src)
  1014  }
  1015  func (m *SearchTagsV2Response) XXX_Size() int {
  1016  	return m.Size()
  1017  }
  1018  func (m *SearchTagsV2Response) XXX_DiscardUnknown() {
  1019  	xxx_messageInfo_SearchTagsV2Response.DiscardUnknown(m)
  1020  }
  1021  
  1022  var xxx_messageInfo_SearchTagsV2Response proto.InternalMessageInfo
  1023  
  1024  func (m *SearchTagsV2Response) GetScopes() []*SearchTagsV2Scope {
  1025  	if m != nil {
  1026  		return m.Scopes
  1027  	}
  1028  	return nil
  1029  }
  1030  
  1031  type SearchTagsV2Scope struct {
  1032  	Name string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  1033  	Tags []string `protobuf:"bytes,2,rep,name=tags,proto3" json:"tags,omitempty"`
  1034  }
  1035  
  1036  func (m *SearchTagsV2Scope) Reset()         { *m = SearchTagsV2Scope{} }
  1037  func (m *SearchTagsV2Scope) String() string { return proto.CompactTextString(m) }
  1038  func (*SearchTagsV2Scope) ProtoMessage()    {}
  1039  func (*SearchTagsV2Scope) Descriptor() ([]byte, []int) {
  1040  	return fileDescriptor_f22805646f4f62b6, []int{14}
  1041  }
  1042  func (m *SearchTagsV2Scope) XXX_Unmarshal(b []byte) error {
  1043  	return m.Unmarshal(b)
  1044  }
  1045  func (m *SearchTagsV2Scope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1046  	if deterministic {
  1047  		return xxx_messageInfo_SearchTagsV2Scope.Marshal(b, m, deterministic)
  1048  	} else {
  1049  		b = b[:cap(b)]
  1050  		n, err := m.MarshalToSizedBuffer(b)
  1051  		if err != nil {
  1052  			return nil, err
  1053  		}
  1054  		return b[:n], nil
  1055  	}
  1056  }
  1057  func (m *SearchTagsV2Scope) XXX_Merge(src proto.Message) {
  1058  	xxx_messageInfo_SearchTagsV2Scope.Merge(m, src)
  1059  }
  1060  func (m *SearchTagsV2Scope) XXX_Size() int {
  1061  	return m.Size()
  1062  }
  1063  func (m *SearchTagsV2Scope) XXX_DiscardUnknown() {
  1064  	xxx_messageInfo_SearchTagsV2Scope.DiscardUnknown(m)
  1065  }
  1066  
  1067  var xxx_messageInfo_SearchTagsV2Scope proto.InternalMessageInfo
  1068  
  1069  func (m *SearchTagsV2Scope) GetName() string {
  1070  	if m != nil {
  1071  		return m.Name
  1072  	}
  1073  	return ""
  1074  }
  1075  
  1076  func (m *SearchTagsV2Scope) GetTags() []string {
  1077  	if m != nil {
  1078  		return m.Tags
  1079  	}
  1080  	return nil
  1081  }
  1082  
  1083  type SearchTagValuesRequest struct {
  1084  	TagName string `protobuf:"bytes,1,opt,name=tagName,proto3" json:"tagName,omitempty"`
  1085  	Query   string `protobuf:"bytes,2,opt,name=query,proto3" json:"query,omitempty"`
  1086  }
  1087  
  1088  func (m *SearchTagValuesRequest) Reset()         { *m = SearchTagValuesRequest{} }
  1089  func (m *SearchTagValuesRequest) String() string { return proto.CompactTextString(m) }
  1090  func (*SearchTagValuesRequest) ProtoMessage()    {}
  1091  func (*SearchTagValuesRequest) Descriptor() ([]byte, []int) {
  1092  	return fileDescriptor_f22805646f4f62b6, []int{15}
  1093  }
  1094  func (m *SearchTagValuesRequest) XXX_Unmarshal(b []byte) error {
  1095  	return m.Unmarshal(b)
  1096  }
  1097  func (m *SearchTagValuesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1098  	if deterministic {
  1099  		return xxx_messageInfo_SearchTagValuesRequest.Marshal(b, m, deterministic)
  1100  	} else {
  1101  		b = b[:cap(b)]
  1102  		n, err := m.MarshalToSizedBuffer(b)
  1103  		if err != nil {
  1104  			return nil, err
  1105  		}
  1106  		return b[:n], nil
  1107  	}
  1108  }
  1109  func (m *SearchTagValuesRequest) XXX_Merge(src proto.Message) {
  1110  	xxx_messageInfo_SearchTagValuesRequest.Merge(m, src)
  1111  }
  1112  func (m *SearchTagValuesRequest) XXX_Size() int {
  1113  	return m.Size()
  1114  }
  1115  func (m *SearchTagValuesRequest) XXX_DiscardUnknown() {
  1116  	xxx_messageInfo_SearchTagValuesRequest.DiscardUnknown(m)
  1117  }
  1118  
  1119  var xxx_messageInfo_SearchTagValuesRequest proto.InternalMessageInfo
  1120  
  1121  func (m *SearchTagValuesRequest) GetTagName() string {
  1122  	if m != nil {
  1123  		return m.TagName
  1124  	}
  1125  	return ""
  1126  }
  1127  
  1128  func (m *SearchTagValuesRequest) GetQuery() string {
  1129  	if m != nil {
  1130  		return m.Query
  1131  	}
  1132  	return ""
  1133  }
  1134  
  1135  type SearchTagValuesResponse struct {
  1136  	TagValues []string `protobuf:"bytes,1,rep,name=tagValues,proto3" json:"tagValues,omitempty"`
  1137  }
  1138  
  1139  func (m *SearchTagValuesResponse) Reset()         { *m = SearchTagValuesResponse{} }
  1140  func (m *SearchTagValuesResponse) String() string { return proto.CompactTextString(m) }
  1141  func (*SearchTagValuesResponse) ProtoMessage()    {}
  1142  func (*SearchTagValuesResponse) Descriptor() ([]byte, []int) {
  1143  	return fileDescriptor_f22805646f4f62b6, []int{16}
  1144  }
  1145  func (m *SearchTagValuesResponse) XXX_Unmarshal(b []byte) error {
  1146  	return m.Unmarshal(b)
  1147  }
  1148  func (m *SearchTagValuesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1149  	if deterministic {
  1150  		return xxx_messageInfo_SearchTagValuesResponse.Marshal(b, m, deterministic)
  1151  	} else {
  1152  		b = b[:cap(b)]
  1153  		n, err := m.MarshalToSizedBuffer(b)
  1154  		if err != nil {
  1155  			return nil, err
  1156  		}
  1157  		return b[:n], nil
  1158  	}
  1159  }
  1160  func (m *SearchTagValuesResponse) XXX_Merge(src proto.Message) {
  1161  	xxx_messageInfo_SearchTagValuesResponse.Merge(m, src)
  1162  }
  1163  func (m *SearchTagValuesResponse) XXX_Size() int {
  1164  	return m.Size()
  1165  }
  1166  func (m *SearchTagValuesResponse) XXX_DiscardUnknown() {
  1167  	xxx_messageInfo_SearchTagValuesResponse.DiscardUnknown(m)
  1168  }
  1169  
  1170  var xxx_messageInfo_SearchTagValuesResponse proto.InternalMessageInfo
  1171  
  1172  func (m *SearchTagValuesResponse) GetTagValues() []string {
  1173  	if m != nil {
  1174  		return m.TagValues
  1175  	}
  1176  	return nil
  1177  }
  1178  
  1179  type TagValue struct {
  1180  	Type  string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
  1181  	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
  1182  }
  1183  
  1184  func (m *TagValue) Reset()         { *m = TagValue{} }
  1185  func (m *TagValue) String() string { return proto.CompactTextString(m) }
  1186  func (*TagValue) ProtoMessage()    {}
  1187  func (*TagValue) Descriptor() ([]byte, []int) {
  1188  	return fileDescriptor_f22805646f4f62b6, []int{17}
  1189  }
  1190  func (m *TagValue) XXX_Unmarshal(b []byte) error {
  1191  	return m.Unmarshal(b)
  1192  }
  1193  func (m *TagValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1194  	if deterministic {
  1195  		return xxx_messageInfo_TagValue.Marshal(b, m, deterministic)
  1196  	} else {
  1197  		b = b[:cap(b)]
  1198  		n, err := m.MarshalToSizedBuffer(b)
  1199  		if err != nil {
  1200  			return nil, err
  1201  		}
  1202  		return b[:n], nil
  1203  	}
  1204  }
  1205  func (m *TagValue) XXX_Merge(src proto.Message) {
  1206  	xxx_messageInfo_TagValue.Merge(m, src)
  1207  }
  1208  func (m *TagValue) XXX_Size() int {
  1209  	return m.Size()
  1210  }
  1211  func (m *TagValue) XXX_DiscardUnknown() {
  1212  	xxx_messageInfo_TagValue.DiscardUnknown(m)
  1213  }
  1214  
  1215  var xxx_messageInfo_TagValue proto.InternalMessageInfo
  1216  
  1217  func (m *TagValue) GetType() string {
  1218  	if m != nil {
  1219  		return m.Type
  1220  	}
  1221  	return ""
  1222  }
  1223  
  1224  func (m *TagValue) GetValue() string {
  1225  	if m != nil {
  1226  		return m.Value
  1227  	}
  1228  	return ""
  1229  }
  1230  
  1231  type SearchTagValuesV2Response struct {
  1232  	TagValues []*TagValue `protobuf:"bytes,1,rep,name=tagValues,proto3" json:"tagValues,omitempty"`
  1233  }
  1234  
  1235  func (m *SearchTagValuesV2Response) Reset()         { *m = SearchTagValuesV2Response{} }
  1236  func (m *SearchTagValuesV2Response) String() string { return proto.CompactTextString(m) }
  1237  func (*SearchTagValuesV2Response) ProtoMessage()    {}
  1238  func (*SearchTagValuesV2Response) Descriptor() ([]byte, []int) {
  1239  	return fileDescriptor_f22805646f4f62b6, []int{18}
  1240  }
  1241  func (m *SearchTagValuesV2Response) XXX_Unmarshal(b []byte) error {
  1242  	return m.Unmarshal(b)
  1243  }
  1244  func (m *SearchTagValuesV2Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1245  	if deterministic {
  1246  		return xxx_messageInfo_SearchTagValuesV2Response.Marshal(b, m, deterministic)
  1247  	} else {
  1248  		b = b[:cap(b)]
  1249  		n, err := m.MarshalToSizedBuffer(b)
  1250  		if err != nil {
  1251  			return nil, err
  1252  		}
  1253  		return b[:n], nil
  1254  	}
  1255  }
  1256  func (m *SearchTagValuesV2Response) XXX_Merge(src proto.Message) {
  1257  	xxx_messageInfo_SearchTagValuesV2Response.Merge(m, src)
  1258  }
  1259  func (m *SearchTagValuesV2Response) XXX_Size() int {
  1260  	return m.Size()
  1261  }
  1262  func (m *SearchTagValuesV2Response) XXX_DiscardUnknown() {
  1263  	xxx_messageInfo_SearchTagValuesV2Response.DiscardUnknown(m)
  1264  }
  1265  
  1266  var xxx_messageInfo_SearchTagValuesV2Response proto.InternalMessageInfo
  1267  
  1268  func (m *SearchTagValuesV2Response) GetTagValues() []*TagValue {
  1269  	if m != nil {
  1270  		return m.TagValues
  1271  	}
  1272  	return nil
  1273  }
  1274  
  1275  type Trace struct {
  1276  	Batches []*v11.ResourceSpans `protobuf:"bytes,1,rep,name=batches,proto3" json:"batches,omitempty"`
  1277  }
  1278  
  1279  func (m *Trace) Reset()         { *m = Trace{} }
  1280  func (m *Trace) String() string { return proto.CompactTextString(m) }
  1281  func (*Trace) ProtoMessage()    {}
  1282  func (*Trace) Descriptor() ([]byte, []int) {
  1283  	return fileDescriptor_f22805646f4f62b6, []int{19}
  1284  }
  1285  func (m *Trace) XXX_Unmarshal(b []byte) error {
  1286  	return m.Unmarshal(b)
  1287  }
  1288  func (m *Trace) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1289  	if deterministic {
  1290  		return xxx_messageInfo_Trace.Marshal(b, m, deterministic)
  1291  	} else {
  1292  		b = b[:cap(b)]
  1293  		n, err := m.MarshalToSizedBuffer(b)
  1294  		if err != nil {
  1295  			return nil, err
  1296  		}
  1297  		return b[:n], nil
  1298  	}
  1299  }
  1300  func (m *Trace) XXX_Merge(src proto.Message) {
  1301  	xxx_messageInfo_Trace.Merge(m, src)
  1302  }
  1303  func (m *Trace) XXX_Size() int {
  1304  	return m.Size()
  1305  }
  1306  func (m *Trace) XXX_DiscardUnknown() {
  1307  	xxx_messageInfo_Trace.DiscardUnknown(m)
  1308  }
  1309  
  1310  var xxx_messageInfo_Trace proto.InternalMessageInfo
  1311  
  1312  func (m *Trace) GetBatches() []*v11.ResourceSpans {
  1313  	if m != nil {
  1314  		return m.Batches
  1315  	}
  1316  	return nil
  1317  }
  1318  
  1319  // Write
  1320  type PushResponse struct {
  1321  }
  1322  
  1323  func (m *PushResponse) Reset()         { *m = PushResponse{} }
  1324  func (m *PushResponse) String() string { return proto.CompactTextString(m) }
  1325  func (*PushResponse) ProtoMessage()    {}
  1326  func (*PushResponse) Descriptor() ([]byte, []int) {
  1327  	return fileDescriptor_f22805646f4f62b6, []int{20}
  1328  }
  1329  func (m *PushResponse) XXX_Unmarshal(b []byte) error {
  1330  	return m.Unmarshal(b)
  1331  }
  1332  func (m *PushResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1333  	if deterministic {
  1334  		return xxx_messageInfo_PushResponse.Marshal(b, m, deterministic)
  1335  	} else {
  1336  		b = b[:cap(b)]
  1337  		n, err := m.MarshalToSizedBuffer(b)
  1338  		if err != nil {
  1339  			return nil, err
  1340  		}
  1341  		return b[:n], nil
  1342  	}
  1343  }
  1344  func (m *PushResponse) XXX_Merge(src proto.Message) {
  1345  	xxx_messageInfo_PushResponse.Merge(m, src)
  1346  }
  1347  func (m *PushResponse) XXX_Size() int {
  1348  	return m.Size()
  1349  }
  1350  func (m *PushResponse) XXX_DiscardUnknown() {
  1351  	xxx_messageInfo_PushResponse.DiscardUnknown(m)
  1352  }
  1353  
  1354  var xxx_messageInfo_PushResponse proto.InternalMessageInfo
  1355  
  1356  // PushBytesRequest pushes slices of traces, ids and searchdata. Traces are encoded using the
  1357  //  current BatchDecoder in ./pkg/model
  1358  type PushBytesRequest struct {
  1359  	// pre-marshalled Traces. length must match ids
  1360  	Traces []PreallocBytes `protobuf:"bytes,2,rep,name=traces,proto3,customtype=PreallocBytes" json:"traces"`
  1361  	// trace ids. length must match traces
  1362  	Ids []PreallocBytes `protobuf:"bytes,3,rep,name=ids,proto3,customtype=PreallocBytes" json:"ids"`
  1363  	// search data, length must match traces
  1364  	SearchData []PreallocBytes `protobuf:"bytes,4,rep,name=searchData,proto3,customtype=PreallocBytes" json:"searchData"`
  1365  }
  1366  
  1367  func (m *PushBytesRequest) Reset()         { *m = PushBytesRequest{} }
  1368  func (m *PushBytesRequest) String() string { return proto.CompactTextString(m) }
  1369  func (*PushBytesRequest) ProtoMessage()    {}
  1370  func (*PushBytesRequest) Descriptor() ([]byte, []int) {
  1371  	return fileDescriptor_f22805646f4f62b6, []int{21}
  1372  }
  1373  func (m *PushBytesRequest) XXX_Unmarshal(b []byte) error {
  1374  	return m.Unmarshal(b)
  1375  }
  1376  func (m *PushBytesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1377  	if deterministic {
  1378  		return xxx_messageInfo_PushBytesRequest.Marshal(b, m, deterministic)
  1379  	} else {
  1380  		b = b[:cap(b)]
  1381  		n, err := m.MarshalToSizedBuffer(b)
  1382  		if err != nil {
  1383  			return nil, err
  1384  		}
  1385  		return b[:n], nil
  1386  	}
  1387  }
  1388  func (m *PushBytesRequest) XXX_Merge(src proto.Message) {
  1389  	xxx_messageInfo_PushBytesRequest.Merge(m, src)
  1390  }
  1391  func (m *PushBytesRequest) XXX_Size() int {
  1392  	return m.Size()
  1393  }
  1394  func (m *PushBytesRequest) XXX_DiscardUnknown() {
  1395  	xxx_messageInfo_PushBytesRequest.DiscardUnknown(m)
  1396  }
  1397  
  1398  var xxx_messageInfo_PushBytesRequest proto.InternalMessageInfo
  1399  
  1400  type PushSpansRequest struct {
  1401  	// just send entire OTel spans for now
  1402  	Batches []*v11.ResourceSpans `protobuf:"bytes,1,rep,name=batches,proto3" json:"batches,omitempty"`
  1403  }
  1404  
  1405  func (m *PushSpansRequest) Reset()         { *m = PushSpansRequest{} }
  1406  func (m *PushSpansRequest) String() string { return proto.CompactTextString(m) }
  1407  func (*PushSpansRequest) ProtoMessage()    {}
  1408  func (*PushSpansRequest) Descriptor() ([]byte, []int) {
  1409  	return fileDescriptor_f22805646f4f62b6, []int{22}
  1410  }
  1411  func (m *PushSpansRequest) XXX_Unmarshal(b []byte) error {
  1412  	return m.Unmarshal(b)
  1413  }
  1414  func (m *PushSpansRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1415  	if deterministic {
  1416  		return xxx_messageInfo_PushSpansRequest.Marshal(b, m, deterministic)
  1417  	} else {
  1418  		b = b[:cap(b)]
  1419  		n, err := m.MarshalToSizedBuffer(b)
  1420  		if err != nil {
  1421  			return nil, err
  1422  		}
  1423  		return b[:n], nil
  1424  	}
  1425  }
  1426  func (m *PushSpansRequest) XXX_Merge(src proto.Message) {
  1427  	xxx_messageInfo_PushSpansRequest.Merge(m, src)
  1428  }
  1429  func (m *PushSpansRequest) XXX_Size() int {
  1430  	return m.Size()
  1431  }
  1432  func (m *PushSpansRequest) XXX_DiscardUnknown() {
  1433  	xxx_messageInfo_PushSpansRequest.DiscardUnknown(m)
  1434  }
  1435  
  1436  var xxx_messageInfo_PushSpansRequest proto.InternalMessageInfo
  1437  
  1438  func (m *PushSpansRequest) GetBatches() []*v11.ResourceSpans {
  1439  	if m != nil {
  1440  		return m.Batches
  1441  	}
  1442  	return nil
  1443  }
  1444  
  1445  type TraceBytes struct {
  1446  	// pre-marshalled Traces
  1447  	Traces [][]byte `protobuf:"bytes,1,rep,name=traces,proto3" json:"traces,omitempty"`
  1448  }
  1449  
  1450  func (m *TraceBytes) Reset()         { *m = TraceBytes{} }
  1451  func (m *TraceBytes) String() string { return proto.CompactTextString(m) }
  1452  func (*TraceBytes) ProtoMessage()    {}
  1453  func (*TraceBytes) Descriptor() ([]byte, []int) {
  1454  	return fileDescriptor_f22805646f4f62b6, []int{23}
  1455  }
  1456  func (m *TraceBytes) XXX_Unmarshal(b []byte) error {
  1457  	return m.Unmarshal(b)
  1458  }
  1459  func (m *TraceBytes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1460  	if deterministic {
  1461  		return xxx_messageInfo_TraceBytes.Marshal(b, m, deterministic)
  1462  	} else {
  1463  		b = b[:cap(b)]
  1464  		n, err := m.MarshalToSizedBuffer(b)
  1465  		if err != nil {
  1466  			return nil, err
  1467  		}
  1468  		return b[:n], nil
  1469  	}
  1470  }
  1471  func (m *TraceBytes) XXX_Merge(src proto.Message) {
  1472  	xxx_messageInfo_TraceBytes.Merge(m, src)
  1473  }
  1474  func (m *TraceBytes) XXX_Size() int {
  1475  	return m.Size()
  1476  }
  1477  func (m *TraceBytes) XXX_DiscardUnknown() {
  1478  	xxx_messageInfo_TraceBytes.DiscardUnknown(m)
  1479  }
  1480  
  1481  var xxx_messageInfo_TraceBytes proto.InternalMessageInfo
  1482  
  1483  func (m *TraceBytes) GetTraces() [][]byte {
  1484  	if m != nil {
  1485  		return m.Traces
  1486  	}
  1487  	return nil
  1488  }
  1489  
  1490  // this message exists for marshalling/unmarshalling convenience to/from parquet. in parquet we proto encode
  1491  // links to a column. unfortunately you can't encode a slice directly so we use this wrapper to generate
  1492  // the required marshalling/unmarshalling functions.
  1493  type LinkSlice struct {
  1494  	Links []*v11.Span_Link `protobuf:"bytes,1,rep,name=links,proto3" json:"links,omitempty"`
  1495  }
  1496  
  1497  func (m *LinkSlice) Reset()         { *m = LinkSlice{} }
  1498  func (m *LinkSlice) String() string { return proto.CompactTextString(m) }
  1499  func (*LinkSlice) ProtoMessage()    {}
  1500  func (*LinkSlice) Descriptor() ([]byte, []int) {
  1501  	return fileDescriptor_f22805646f4f62b6, []int{24}
  1502  }
  1503  func (m *LinkSlice) XXX_Unmarshal(b []byte) error {
  1504  	return m.Unmarshal(b)
  1505  }
  1506  func (m *LinkSlice) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1507  	if deterministic {
  1508  		return xxx_messageInfo_LinkSlice.Marshal(b, m, deterministic)
  1509  	} else {
  1510  		b = b[:cap(b)]
  1511  		n, err := m.MarshalToSizedBuffer(b)
  1512  		if err != nil {
  1513  			return nil, err
  1514  		}
  1515  		return b[:n], nil
  1516  	}
  1517  }
  1518  func (m *LinkSlice) XXX_Merge(src proto.Message) {
  1519  	xxx_messageInfo_LinkSlice.Merge(m, src)
  1520  }
  1521  func (m *LinkSlice) XXX_Size() int {
  1522  	return m.Size()
  1523  }
  1524  func (m *LinkSlice) XXX_DiscardUnknown() {
  1525  	xxx_messageInfo_LinkSlice.DiscardUnknown(m)
  1526  }
  1527  
  1528  var xxx_messageInfo_LinkSlice proto.InternalMessageInfo
  1529  
  1530  func (m *LinkSlice) GetLinks() []*v11.Span_Link {
  1531  	if m != nil {
  1532  		return m.Links
  1533  	}
  1534  	return nil
  1535  }
  1536  
  1537  type SpanMetricsRequest struct {
  1538  	Query   string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
  1539  	GroupBy string `protobuf:"bytes,2,opt,name=groupBy,proto3" json:"groupBy,omitempty"`
  1540  	Limit   uint64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
  1541  	Start   uint32 `protobuf:"varint,4,opt,name=start,proto3" json:"start,omitempty"`
  1542  	End     uint32 `protobuf:"varint,5,opt,name=end,proto3" json:"end,omitempty"`
  1543  }
  1544  
  1545  func (m *SpanMetricsRequest) Reset()         { *m = SpanMetricsRequest{} }
  1546  func (m *SpanMetricsRequest) String() string { return proto.CompactTextString(m) }
  1547  func (*SpanMetricsRequest) ProtoMessage()    {}
  1548  func (*SpanMetricsRequest) Descriptor() ([]byte, []int) {
  1549  	return fileDescriptor_f22805646f4f62b6, []int{25}
  1550  }
  1551  func (m *SpanMetricsRequest) XXX_Unmarshal(b []byte) error {
  1552  	return m.Unmarshal(b)
  1553  }
  1554  func (m *SpanMetricsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1555  	if deterministic {
  1556  		return xxx_messageInfo_SpanMetricsRequest.Marshal(b, m, deterministic)
  1557  	} else {
  1558  		b = b[:cap(b)]
  1559  		n, err := m.MarshalToSizedBuffer(b)
  1560  		if err != nil {
  1561  			return nil, err
  1562  		}
  1563  		return b[:n], nil
  1564  	}
  1565  }
  1566  func (m *SpanMetricsRequest) XXX_Merge(src proto.Message) {
  1567  	xxx_messageInfo_SpanMetricsRequest.Merge(m, src)
  1568  }
  1569  func (m *SpanMetricsRequest) XXX_Size() int {
  1570  	return m.Size()
  1571  }
  1572  func (m *SpanMetricsRequest) XXX_DiscardUnknown() {
  1573  	xxx_messageInfo_SpanMetricsRequest.DiscardUnknown(m)
  1574  }
  1575  
  1576  var xxx_messageInfo_SpanMetricsRequest proto.InternalMessageInfo
  1577  
  1578  func (m *SpanMetricsRequest) GetQuery() string {
  1579  	if m != nil {
  1580  		return m.Query
  1581  	}
  1582  	return ""
  1583  }
  1584  
  1585  func (m *SpanMetricsRequest) GetGroupBy() string {
  1586  	if m != nil {
  1587  		return m.GroupBy
  1588  	}
  1589  	return ""
  1590  }
  1591  
  1592  func (m *SpanMetricsRequest) GetLimit() uint64 {
  1593  	if m != nil {
  1594  		return m.Limit
  1595  	}
  1596  	return 0
  1597  }
  1598  
  1599  func (m *SpanMetricsRequest) GetStart() uint32 {
  1600  	if m != nil {
  1601  		return m.Start
  1602  	}
  1603  	return 0
  1604  }
  1605  
  1606  func (m *SpanMetricsRequest) GetEnd() uint32 {
  1607  	if m != nil {
  1608  		return m.End
  1609  	}
  1610  	return 0
  1611  }
  1612  
  1613  type SpanMetricsSummaryRequest struct {
  1614  	Query   string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
  1615  	GroupBy string `protobuf:"bytes,2,opt,name=groupBy,proto3" json:"groupBy,omitempty"`
  1616  	Limit   uint64 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"`
  1617  	Start   uint32 `protobuf:"varint,4,opt,name=start,proto3" json:"start,omitempty"`
  1618  	End     uint32 `protobuf:"varint,5,opt,name=end,proto3" json:"end,omitempty"`
  1619  }
  1620  
  1621  func (m *SpanMetricsSummaryRequest) Reset()         { *m = SpanMetricsSummaryRequest{} }
  1622  func (m *SpanMetricsSummaryRequest) String() string { return proto.CompactTextString(m) }
  1623  func (*SpanMetricsSummaryRequest) ProtoMessage()    {}
  1624  func (*SpanMetricsSummaryRequest) Descriptor() ([]byte, []int) {
  1625  	return fileDescriptor_f22805646f4f62b6, []int{26}
  1626  }
  1627  func (m *SpanMetricsSummaryRequest) XXX_Unmarshal(b []byte) error {
  1628  	return m.Unmarshal(b)
  1629  }
  1630  func (m *SpanMetricsSummaryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1631  	if deterministic {
  1632  		return xxx_messageInfo_SpanMetricsSummaryRequest.Marshal(b, m, deterministic)
  1633  	} else {
  1634  		b = b[:cap(b)]
  1635  		n, err := m.MarshalToSizedBuffer(b)
  1636  		if err != nil {
  1637  			return nil, err
  1638  		}
  1639  		return b[:n], nil
  1640  	}
  1641  }
  1642  func (m *SpanMetricsSummaryRequest) XXX_Merge(src proto.Message) {
  1643  	xxx_messageInfo_SpanMetricsSummaryRequest.Merge(m, src)
  1644  }
  1645  func (m *SpanMetricsSummaryRequest) XXX_Size() int {
  1646  	return m.Size()
  1647  }
  1648  func (m *SpanMetricsSummaryRequest) XXX_DiscardUnknown() {
  1649  	xxx_messageInfo_SpanMetricsSummaryRequest.DiscardUnknown(m)
  1650  }
  1651  
  1652  var xxx_messageInfo_SpanMetricsSummaryRequest proto.InternalMessageInfo
  1653  
  1654  func (m *SpanMetricsSummaryRequest) GetQuery() string {
  1655  	if m != nil {
  1656  		return m.Query
  1657  	}
  1658  	return ""
  1659  }
  1660  
  1661  func (m *SpanMetricsSummaryRequest) GetGroupBy() string {
  1662  	if m != nil {
  1663  		return m.GroupBy
  1664  	}
  1665  	return ""
  1666  }
  1667  
  1668  func (m *SpanMetricsSummaryRequest) GetLimit() uint64 {
  1669  	if m != nil {
  1670  		return m.Limit
  1671  	}
  1672  	return 0
  1673  }
  1674  
  1675  func (m *SpanMetricsSummaryRequest) GetStart() uint32 {
  1676  	if m != nil {
  1677  		return m.Start
  1678  	}
  1679  	return 0
  1680  }
  1681  
  1682  func (m *SpanMetricsSummaryRequest) GetEnd() uint32 {
  1683  	if m != nil {
  1684  		return m.End
  1685  	}
  1686  	return 0
  1687  }
  1688  
  1689  type SpanMetricsResponse struct {
  1690  	Estimated      bool           `protobuf:"varint,1,opt,name=estimated,proto3" json:"estimated,omitempty"`
  1691  	SpanCount      uint64         `protobuf:"varint,2,opt,name=spanCount,proto3" json:"spanCount,omitempty"`
  1692  	ErrorSpanCount uint64         `protobuf:"varint,3,opt,name=errorSpanCount,proto3" json:"errorSpanCount,omitempty"`
  1693  	Metrics        []*SpanMetrics `protobuf:"bytes,4,rep,name=metrics,proto3" json:"metrics,omitempty"`
  1694  }
  1695  
  1696  func (m *SpanMetricsResponse) Reset()         { *m = SpanMetricsResponse{} }
  1697  func (m *SpanMetricsResponse) String() string { return proto.CompactTextString(m) }
  1698  func (*SpanMetricsResponse) ProtoMessage()    {}
  1699  func (*SpanMetricsResponse) Descriptor() ([]byte, []int) {
  1700  	return fileDescriptor_f22805646f4f62b6, []int{27}
  1701  }
  1702  func (m *SpanMetricsResponse) XXX_Unmarshal(b []byte) error {
  1703  	return m.Unmarshal(b)
  1704  }
  1705  func (m *SpanMetricsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1706  	if deterministic {
  1707  		return xxx_messageInfo_SpanMetricsResponse.Marshal(b, m, deterministic)
  1708  	} else {
  1709  		b = b[:cap(b)]
  1710  		n, err := m.MarshalToSizedBuffer(b)
  1711  		if err != nil {
  1712  			return nil, err
  1713  		}
  1714  		return b[:n], nil
  1715  	}
  1716  }
  1717  func (m *SpanMetricsResponse) XXX_Merge(src proto.Message) {
  1718  	xxx_messageInfo_SpanMetricsResponse.Merge(m, src)
  1719  }
  1720  func (m *SpanMetricsResponse) XXX_Size() int {
  1721  	return m.Size()
  1722  }
  1723  func (m *SpanMetricsResponse) XXX_DiscardUnknown() {
  1724  	xxx_messageInfo_SpanMetricsResponse.DiscardUnknown(m)
  1725  }
  1726  
  1727  var xxx_messageInfo_SpanMetricsResponse proto.InternalMessageInfo
  1728  
  1729  func (m *SpanMetricsResponse) GetEstimated() bool {
  1730  	if m != nil {
  1731  		return m.Estimated
  1732  	}
  1733  	return false
  1734  }
  1735  
  1736  func (m *SpanMetricsResponse) GetSpanCount() uint64 {
  1737  	if m != nil {
  1738  		return m.SpanCount
  1739  	}
  1740  	return 0
  1741  }
  1742  
  1743  func (m *SpanMetricsResponse) GetErrorSpanCount() uint64 {
  1744  	if m != nil {
  1745  		return m.ErrorSpanCount
  1746  	}
  1747  	return 0
  1748  }
  1749  
  1750  func (m *SpanMetricsResponse) GetMetrics() []*SpanMetrics {
  1751  	if m != nil {
  1752  		return m.Metrics
  1753  	}
  1754  	return nil
  1755  }
  1756  
  1757  type RawHistogram struct {
  1758  	Bucket uint64 `protobuf:"varint,1,opt,name=bucket,proto3" json:"bucket,omitempty"`
  1759  	Count  uint64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
  1760  }
  1761  
  1762  func (m *RawHistogram) Reset()         { *m = RawHistogram{} }
  1763  func (m *RawHistogram) String() string { return proto.CompactTextString(m) }
  1764  func (*RawHistogram) ProtoMessage()    {}
  1765  func (*RawHistogram) Descriptor() ([]byte, []int) {
  1766  	return fileDescriptor_f22805646f4f62b6, []int{28}
  1767  }
  1768  func (m *RawHistogram) XXX_Unmarshal(b []byte) error {
  1769  	return m.Unmarshal(b)
  1770  }
  1771  func (m *RawHistogram) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1772  	if deterministic {
  1773  		return xxx_messageInfo_RawHistogram.Marshal(b, m, deterministic)
  1774  	} else {
  1775  		b = b[:cap(b)]
  1776  		n, err := m.MarshalToSizedBuffer(b)
  1777  		if err != nil {
  1778  			return nil, err
  1779  		}
  1780  		return b[:n], nil
  1781  	}
  1782  }
  1783  func (m *RawHistogram) XXX_Merge(src proto.Message) {
  1784  	xxx_messageInfo_RawHistogram.Merge(m, src)
  1785  }
  1786  func (m *RawHistogram) XXX_Size() int {
  1787  	return m.Size()
  1788  }
  1789  func (m *RawHistogram) XXX_DiscardUnknown() {
  1790  	xxx_messageInfo_RawHistogram.DiscardUnknown(m)
  1791  }
  1792  
  1793  var xxx_messageInfo_RawHistogram proto.InternalMessageInfo
  1794  
  1795  func (m *RawHistogram) GetBucket() uint64 {
  1796  	if m != nil {
  1797  		return m.Bucket
  1798  	}
  1799  	return 0
  1800  }
  1801  
  1802  func (m *RawHistogram) GetCount() uint64 {
  1803  	if m != nil {
  1804  		return m.Count
  1805  	}
  1806  	return 0
  1807  }
  1808  
  1809  type KeyValue struct {
  1810  	Key   string         `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
  1811  	Value *TraceQLStatic `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
  1812  }
  1813  
  1814  func (m *KeyValue) Reset()         { *m = KeyValue{} }
  1815  func (m *KeyValue) String() string { return proto.CompactTextString(m) }
  1816  func (*KeyValue) ProtoMessage()    {}
  1817  func (*KeyValue) Descriptor() ([]byte, []int) {
  1818  	return fileDescriptor_f22805646f4f62b6, []int{29}
  1819  }
  1820  func (m *KeyValue) XXX_Unmarshal(b []byte) error {
  1821  	return m.Unmarshal(b)
  1822  }
  1823  func (m *KeyValue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1824  	if deterministic {
  1825  		return xxx_messageInfo_KeyValue.Marshal(b, m, deterministic)
  1826  	} else {
  1827  		b = b[:cap(b)]
  1828  		n, err := m.MarshalToSizedBuffer(b)
  1829  		if err != nil {
  1830  			return nil, err
  1831  		}
  1832  		return b[:n], nil
  1833  	}
  1834  }
  1835  func (m *KeyValue) XXX_Merge(src proto.Message) {
  1836  	xxx_messageInfo_KeyValue.Merge(m, src)
  1837  }
  1838  func (m *KeyValue) XXX_Size() int {
  1839  	return m.Size()
  1840  }
  1841  func (m *KeyValue) XXX_DiscardUnknown() {
  1842  	xxx_messageInfo_KeyValue.DiscardUnknown(m)
  1843  }
  1844  
  1845  var xxx_messageInfo_KeyValue proto.InternalMessageInfo
  1846  
  1847  func (m *KeyValue) GetKey() string {
  1848  	if m != nil {
  1849  		return m.Key
  1850  	}
  1851  	return ""
  1852  }
  1853  
  1854  func (m *KeyValue) GetValue() *TraceQLStatic {
  1855  	if m != nil {
  1856  		return m.Value
  1857  	}
  1858  	return nil
  1859  }
  1860  
  1861  type SpanMetrics struct {
  1862  	LatencyHistogram []*RawHistogram `protobuf:"bytes,1,rep,name=latency_histogram,json=latencyHistogram,proto3" json:"latency_histogram,omitempty"`
  1863  	Series           []*KeyValue     `protobuf:"bytes,2,rep,name=series,proto3" json:"series,omitempty"`
  1864  	Errors           uint64          `protobuf:"varint,3,opt,name=errors,proto3" json:"errors,omitempty"`
  1865  }
  1866  
  1867  func (m *SpanMetrics) Reset()         { *m = SpanMetrics{} }
  1868  func (m *SpanMetrics) String() string { return proto.CompactTextString(m) }
  1869  func (*SpanMetrics) ProtoMessage()    {}
  1870  func (*SpanMetrics) Descriptor() ([]byte, []int) {
  1871  	return fileDescriptor_f22805646f4f62b6, []int{30}
  1872  }
  1873  func (m *SpanMetrics) XXX_Unmarshal(b []byte) error {
  1874  	return m.Unmarshal(b)
  1875  }
  1876  func (m *SpanMetrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1877  	if deterministic {
  1878  		return xxx_messageInfo_SpanMetrics.Marshal(b, m, deterministic)
  1879  	} else {
  1880  		b = b[:cap(b)]
  1881  		n, err := m.MarshalToSizedBuffer(b)
  1882  		if err != nil {
  1883  			return nil, err
  1884  		}
  1885  		return b[:n], nil
  1886  	}
  1887  }
  1888  func (m *SpanMetrics) XXX_Merge(src proto.Message) {
  1889  	xxx_messageInfo_SpanMetrics.Merge(m, src)
  1890  }
  1891  func (m *SpanMetrics) XXX_Size() int {
  1892  	return m.Size()
  1893  }
  1894  func (m *SpanMetrics) XXX_DiscardUnknown() {
  1895  	xxx_messageInfo_SpanMetrics.DiscardUnknown(m)
  1896  }
  1897  
  1898  var xxx_messageInfo_SpanMetrics proto.InternalMessageInfo
  1899  
  1900  func (m *SpanMetrics) GetLatencyHistogram() []*RawHistogram {
  1901  	if m != nil {
  1902  		return m.LatencyHistogram
  1903  	}
  1904  	return nil
  1905  }
  1906  
  1907  func (m *SpanMetrics) GetSeries() []*KeyValue {
  1908  	if m != nil {
  1909  		return m.Series
  1910  	}
  1911  	return nil
  1912  }
  1913  
  1914  func (m *SpanMetrics) GetErrors() uint64 {
  1915  	if m != nil {
  1916  		return m.Errors
  1917  	}
  1918  	return 0
  1919  }
  1920  
  1921  type SpanMetricsSummary struct {
  1922  	SpanCount      uint64      `protobuf:"varint,1,opt,name=spanCount,proto3" json:"spanCount,omitempty"`
  1923  	ErrorSpanCount uint64      `protobuf:"varint,2,opt,name=errorSpanCount,proto3" json:"errorSpanCount,omitempty"`
  1924  	Series         []*KeyValue `protobuf:"bytes,3,rep,name=series,proto3" json:"series,omitempty"`
  1925  	P99            uint64      `protobuf:"varint,4,opt,name=p99,proto3" json:"p99,omitempty"`
  1926  	P95            uint64      `protobuf:"varint,5,opt,name=p95,proto3" json:"p95,omitempty"`
  1927  	P90            uint64      `protobuf:"varint,6,opt,name=p90,proto3" json:"p90,omitempty"`
  1928  	P50            uint64      `protobuf:"varint,7,opt,name=p50,proto3" json:"p50,omitempty"`
  1929  }
  1930  
  1931  func (m *SpanMetricsSummary) Reset()         { *m = SpanMetricsSummary{} }
  1932  func (m *SpanMetricsSummary) String() string { return proto.CompactTextString(m) }
  1933  func (*SpanMetricsSummary) ProtoMessage()    {}
  1934  func (*SpanMetricsSummary) Descriptor() ([]byte, []int) {
  1935  	return fileDescriptor_f22805646f4f62b6, []int{31}
  1936  }
  1937  func (m *SpanMetricsSummary) XXX_Unmarshal(b []byte) error {
  1938  	return m.Unmarshal(b)
  1939  }
  1940  func (m *SpanMetricsSummary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  1941  	if deterministic {
  1942  		return xxx_messageInfo_SpanMetricsSummary.Marshal(b, m, deterministic)
  1943  	} else {
  1944  		b = b[:cap(b)]
  1945  		n, err := m.MarshalToSizedBuffer(b)
  1946  		if err != nil {
  1947  			return nil, err
  1948  		}
  1949  		return b[:n], nil
  1950  	}
  1951  }
  1952  func (m *SpanMetricsSummary) XXX_Merge(src proto.Message) {
  1953  	xxx_messageInfo_SpanMetricsSummary.Merge(m, src)
  1954  }
  1955  func (m *SpanMetricsSummary) XXX_Size() int {
  1956  	return m.Size()
  1957  }
  1958  func (m *SpanMetricsSummary) XXX_DiscardUnknown() {
  1959  	xxx_messageInfo_SpanMetricsSummary.DiscardUnknown(m)
  1960  }
  1961  
  1962  var xxx_messageInfo_SpanMetricsSummary proto.InternalMessageInfo
  1963  
  1964  func (m *SpanMetricsSummary) GetSpanCount() uint64 {
  1965  	if m != nil {
  1966  		return m.SpanCount
  1967  	}
  1968  	return 0
  1969  }
  1970  
  1971  func (m *SpanMetricsSummary) GetErrorSpanCount() uint64 {
  1972  	if m != nil {
  1973  		return m.ErrorSpanCount
  1974  	}
  1975  	return 0
  1976  }
  1977  
  1978  func (m *SpanMetricsSummary) GetSeries() []*KeyValue {
  1979  	if m != nil {
  1980  		return m.Series
  1981  	}
  1982  	return nil
  1983  }
  1984  
  1985  func (m *SpanMetricsSummary) GetP99() uint64 {
  1986  	if m != nil {
  1987  		return m.P99
  1988  	}
  1989  	return 0
  1990  }
  1991  
  1992  func (m *SpanMetricsSummary) GetP95() uint64 {
  1993  	if m != nil {
  1994  		return m.P95
  1995  	}
  1996  	return 0
  1997  }
  1998  
  1999  func (m *SpanMetricsSummary) GetP90() uint64 {
  2000  	if m != nil {
  2001  		return m.P90
  2002  	}
  2003  	return 0
  2004  }
  2005  
  2006  func (m *SpanMetricsSummary) GetP50() uint64 {
  2007  	if m != nil {
  2008  		return m.P50
  2009  	}
  2010  	return 0
  2011  }
  2012  
  2013  type SpanMetricsSummaryResponse struct {
  2014  	Summaries []*SpanMetricsSummary `protobuf:"bytes,1,rep,name=summaries,proto3" json:"summaries,omitempty"`
  2015  }
  2016  
  2017  func (m *SpanMetricsSummaryResponse) Reset()         { *m = SpanMetricsSummaryResponse{} }
  2018  func (m *SpanMetricsSummaryResponse) String() string { return proto.CompactTextString(m) }
  2019  func (*SpanMetricsSummaryResponse) ProtoMessage()    {}
  2020  func (*SpanMetricsSummaryResponse) Descriptor() ([]byte, []int) {
  2021  	return fileDescriptor_f22805646f4f62b6, []int{32}
  2022  }
  2023  func (m *SpanMetricsSummaryResponse) XXX_Unmarshal(b []byte) error {
  2024  	return m.Unmarshal(b)
  2025  }
  2026  func (m *SpanMetricsSummaryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2027  	if deterministic {
  2028  		return xxx_messageInfo_SpanMetricsSummaryResponse.Marshal(b, m, deterministic)
  2029  	} else {
  2030  		b = b[:cap(b)]
  2031  		n, err := m.MarshalToSizedBuffer(b)
  2032  		if err != nil {
  2033  			return nil, err
  2034  		}
  2035  		return b[:n], nil
  2036  	}
  2037  }
  2038  func (m *SpanMetricsSummaryResponse) XXX_Merge(src proto.Message) {
  2039  	xxx_messageInfo_SpanMetricsSummaryResponse.Merge(m, src)
  2040  }
  2041  func (m *SpanMetricsSummaryResponse) XXX_Size() int {
  2042  	return m.Size()
  2043  }
  2044  func (m *SpanMetricsSummaryResponse) XXX_DiscardUnknown() {
  2045  	xxx_messageInfo_SpanMetricsSummaryResponse.DiscardUnknown(m)
  2046  }
  2047  
  2048  var xxx_messageInfo_SpanMetricsSummaryResponse proto.InternalMessageInfo
  2049  
  2050  func (m *SpanMetricsSummaryResponse) GetSummaries() []*SpanMetricsSummary {
  2051  	if m != nil {
  2052  		return m.Summaries
  2053  	}
  2054  	return nil
  2055  }
  2056  
  2057  type TraceQLStatic struct {
  2058  	Type   int32   `protobuf:"varint,1,opt,name=type,proto3" json:"type,omitempty"`
  2059  	N      int64   `protobuf:"varint,2,opt,name=n,proto3" json:"n,omitempty"`
  2060  	F      float64 `protobuf:"fixed64,3,opt,name=f,proto3" json:"f,omitempty"`
  2061  	S      string  `protobuf:"bytes,4,opt,name=s,proto3" json:"s,omitempty"`
  2062  	B      bool    `protobuf:"varint,5,opt,name=b,proto3" json:"b,omitempty"`
  2063  	D      uint64  `protobuf:"varint,6,opt,name=d,proto3" json:"d,omitempty"`
  2064  	Status int32   `protobuf:"varint,7,opt,name=status,proto3" json:"status,omitempty"`
  2065  	Kind   int32   `protobuf:"varint,8,opt,name=kind,proto3" json:"kind,omitempty"`
  2066  }
  2067  
  2068  func (m *TraceQLStatic) Reset()         { *m = TraceQLStatic{} }
  2069  func (m *TraceQLStatic) String() string { return proto.CompactTextString(m) }
  2070  func (*TraceQLStatic) ProtoMessage()    {}
  2071  func (*TraceQLStatic) Descriptor() ([]byte, []int) {
  2072  	return fileDescriptor_f22805646f4f62b6, []int{33}
  2073  }
  2074  func (m *TraceQLStatic) XXX_Unmarshal(b []byte) error {
  2075  	return m.Unmarshal(b)
  2076  }
  2077  func (m *TraceQLStatic) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  2078  	if deterministic {
  2079  		return xxx_messageInfo_TraceQLStatic.Marshal(b, m, deterministic)
  2080  	} else {
  2081  		b = b[:cap(b)]
  2082  		n, err := m.MarshalToSizedBuffer(b)
  2083  		if err != nil {
  2084  			return nil, err
  2085  		}
  2086  		return b[:n], nil
  2087  	}
  2088  }
  2089  func (m *TraceQLStatic) XXX_Merge(src proto.Message) {
  2090  	xxx_messageInfo_TraceQLStatic.Merge(m, src)
  2091  }
  2092  func (m *TraceQLStatic) XXX_Size() int {
  2093  	return m.Size()
  2094  }
  2095  func (m *TraceQLStatic) XXX_DiscardUnknown() {
  2096  	xxx_messageInfo_TraceQLStatic.DiscardUnknown(m)
  2097  }
  2098  
  2099  var xxx_messageInfo_TraceQLStatic proto.InternalMessageInfo
  2100  
  2101  func (m *TraceQLStatic) GetType() int32 {
  2102  	if m != nil {
  2103  		return m.Type
  2104  	}
  2105  	return 0
  2106  }
  2107  
  2108  func (m *TraceQLStatic) GetN() int64 {
  2109  	if m != nil {
  2110  		return m.N
  2111  	}
  2112  	return 0
  2113  }
  2114  
  2115  func (m *TraceQLStatic) GetF() float64 {
  2116  	if m != nil {
  2117  		return m.F
  2118  	}
  2119  	return 0
  2120  }
  2121  
  2122  func (m *TraceQLStatic) GetS() string {
  2123  	if m != nil {
  2124  		return m.S
  2125  	}
  2126  	return ""
  2127  }
  2128  
  2129  func (m *TraceQLStatic) GetB() bool {
  2130  	if m != nil {
  2131  		return m.B
  2132  	}
  2133  	return false
  2134  }
  2135  
  2136  func (m *TraceQLStatic) GetD() uint64 {
  2137  	if m != nil {
  2138  		return m.D
  2139  	}
  2140  	return 0
  2141  }
  2142  
  2143  func (m *TraceQLStatic) GetStatus() int32 {
  2144  	if m != nil {
  2145  		return m.Status
  2146  	}
  2147  	return 0
  2148  }
  2149  
  2150  func (m *TraceQLStatic) GetKind() int32 {
  2151  	if m != nil {
  2152  		return m.Kind
  2153  	}
  2154  	return 0
  2155  }
  2156  
  2157  func init() {
  2158  	proto.RegisterEnum("tempopb.DedicatedColumn_Scope", DedicatedColumn_Scope_name, DedicatedColumn_Scope_value)
  2159  	proto.RegisterEnum("tempopb.DedicatedColumn_Type", DedicatedColumn_Type_name, DedicatedColumn_Type_value)
  2160  	proto.RegisterType((*TraceByIDRequest)(nil), "tempopb.TraceByIDRequest")
  2161  	proto.RegisterType((*TraceByIDResponse)(nil), "tempopb.TraceByIDResponse")
  2162  	proto.RegisterType((*TraceByIDMetrics)(nil), "tempopb.TraceByIDMetrics")
  2163  	proto.RegisterType((*SearchRequest)(nil), "tempopb.SearchRequest")
  2164  	proto.RegisterMapType((map[string]string)(nil), "tempopb.SearchRequest.TagsEntry")
  2165  	proto.RegisterType((*SearchBlockRequest)(nil), "tempopb.SearchBlockRequest")
  2166  	proto.RegisterType((*DedicatedColumn)(nil), "tempopb.DedicatedColumn")
  2167  	proto.RegisterType((*SearchResponse)(nil), "tempopb.SearchResponse")
  2168  	proto.RegisterType((*TraceSearchMetadata)(nil), "tempopb.TraceSearchMetadata")
  2169  	proto.RegisterType((*SpanSet)(nil), "tempopb.SpanSet")
  2170  	proto.RegisterType((*Span)(nil), "tempopb.Span")
  2171  	proto.RegisterType((*SearchMetrics)(nil), "tempopb.SearchMetrics")
  2172  	proto.RegisterType((*SearchTagsRequest)(nil), "tempopb.SearchTagsRequest")
  2173  	proto.RegisterType((*SearchTagsResponse)(nil), "tempopb.SearchTagsResponse")
  2174  	proto.RegisterType((*SearchTagsV2Response)(nil), "tempopb.SearchTagsV2Response")
  2175  	proto.RegisterType((*SearchTagsV2Scope)(nil), "tempopb.SearchTagsV2Scope")
  2176  	proto.RegisterType((*SearchTagValuesRequest)(nil), "tempopb.SearchTagValuesRequest")
  2177  	proto.RegisterType((*SearchTagValuesResponse)(nil), "tempopb.SearchTagValuesResponse")
  2178  	proto.RegisterType((*TagValue)(nil), "tempopb.TagValue")
  2179  	proto.RegisterType((*SearchTagValuesV2Response)(nil), "tempopb.SearchTagValuesV2Response")
  2180  	proto.RegisterType((*Trace)(nil), "tempopb.Trace")
  2181  	proto.RegisterType((*PushResponse)(nil), "tempopb.PushResponse")
  2182  	proto.RegisterType((*PushBytesRequest)(nil), "tempopb.PushBytesRequest")
  2183  	proto.RegisterType((*PushSpansRequest)(nil), "tempopb.PushSpansRequest")
  2184  	proto.RegisterType((*TraceBytes)(nil), "tempopb.TraceBytes")
  2185  	proto.RegisterType((*LinkSlice)(nil), "tempopb.LinkSlice")
  2186  	proto.RegisterType((*SpanMetricsRequest)(nil), "tempopb.SpanMetricsRequest")
  2187  	proto.RegisterType((*SpanMetricsSummaryRequest)(nil), "tempopb.SpanMetricsSummaryRequest")
  2188  	proto.RegisterType((*SpanMetricsResponse)(nil), "tempopb.SpanMetricsResponse")
  2189  	proto.RegisterType((*RawHistogram)(nil), "tempopb.RawHistogram")
  2190  	proto.RegisterType((*KeyValue)(nil), "tempopb.KeyValue")
  2191  	proto.RegisterType((*SpanMetrics)(nil), "tempopb.SpanMetrics")
  2192  	proto.RegisterType((*SpanMetricsSummary)(nil), "tempopb.SpanMetricsSummary")
  2193  	proto.RegisterType((*SpanMetricsSummaryResponse)(nil), "tempopb.SpanMetricsSummaryResponse")
  2194  	proto.RegisterType((*TraceQLStatic)(nil), "tempopb.TraceQLStatic")
  2195  }
  2196  
  2197  func init() { proto.RegisterFile("pkg/tempopb/tempo.proto", fileDescriptor_f22805646f4f62b6) }
  2198  
  2199  var fileDescriptor_f22805646f4f62b6 = []byte{
  2200  	// 1996 bytes of a gzipped FileDescriptorProto
  2201  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x58, 0x4f, 0x6f, 0x1b, 0xc7,
  2202  	0x15, 0xd7, 0x8a, 0x7f, 0x44, 0x3e, 0x51, 0x32, 0x3d, 0x71, 0x64, 0x9a, 0x76, 0x24, 0x61, 0x63,
  2203  	0xb4, 0x4a, 0xe1, 0x50, 0x32, 0x63, 0x21, 0x75, 0x5c, 0xb4, 0x88, 0x2c, 0xd5, 0x96, 0x63, 0x39,
  2204  	0xf2, 0x50, 0x71, 0x81, 0x5e, 0x82, 0xe5, 0xee, 0x98, 0xde, 0x8a, 0xdc, 0x65, 0x76, 0x87, 0xaa,
  2205  	0xd9, 0x63, 0x81, 0x16, 0x28, 0xd0, 0x43, 0x0f, 0xed, 0xb5, 0x40, 0x4f, 0x41, 0x3f, 0x47, 0x81,
  2206  	0x22, 0x97, 0x16, 0x39, 0x16, 0x3d, 0x04, 0x85, 0xfd, 0x09, 0xfa, 0x0d, 0x8a, 0xf7, 0x66, 0x66,
  2207  	0xff, 0x90, 0x2b, 0x19, 0x69, 0x0f, 0x3d, 0x71, 0xde, 0x6f, 0x7e, 0xf3, 0xe6, 0xcd, 0x9b, 0x37,
  2208  	0xef, 0x3d, 0x2e, 0x5c, 0x1d, 0x9f, 0x0e, 0xb6, 0xa5, 0x18, 0x8d, 0xc3, 0x71, 0x5f, 0xfd, 0x76,
  2209  	0xc6, 0x51, 0x28, 0x43, 0xb6, 0xa4, 0xc1, 0xf6, 0x15, 0x19, 0x39, 0xae, 0xd8, 0x3e, 0xbb, 0xbd,
  2210  	0x4d, 0x03, 0x35, 0xdd, 0x5e, 0x73, 0xc3, 0xd1, 0x28, 0x0c, 0x10, 0x56, 0x23, 0x8d, 0xbf, 0x3f,
  2211  	0xf0, 0xe5, 0x8b, 0x49, 0xbf, 0xe3, 0x86, 0xa3, 0xed, 0x41, 0x38, 0x08, 0xb7, 0x09, 0xee, 0x4f,
  2212  	0x9e, 0x93, 0x44, 0x02, 0x8d, 0x14, 0xdd, 0xfe, 0xb5, 0x05, 0xcd, 0x13, 0x54, 0xbb, 0x37, 0x3d,
  2213  	0xdc, 0xe7, 0xe2, 0x8b, 0x89, 0x88, 0x25, 0x6b, 0xc1, 0x12, 0x6d, 0x75, 0xb8, 0xdf, 0xb2, 0x36,
  2214  	0xad, 0xad, 0x06, 0x37, 0x22, 0x5b, 0x07, 0xe8, 0x0f, 0x43, 0xf7, 0xb4, 0x27, 0x9d, 0x48, 0xb6,
  2215  	0x16, 0x37, 0xad, 0xad, 0x3a, 0xcf, 0x20, 0xac, 0x0d, 0x35, 0x92, 0x0e, 0x02, 0xaf, 0x55, 0xa2,
  2216  	0xd9, 0x44, 0x66, 0x37, 0xa0, 0xfe, 0xc5, 0x44, 0x44, 0xd3, 0xa3, 0xd0, 0x13, 0xad, 0x0a, 0x4d,
  2217  	0xa6, 0x80, 0x1d, 0xc0, 0xe5, 0x8c, 0x1d, 0xf1, 0x38, 0x0c, 0x62, 0xc1, 0x6e, 0x42, 0x85, 0x76,
  2218  	0x26, 0x33, 0x96, 0xbb, 0xab, 0x1d, 0xed, 0x93, 0x0e, 0x51, 0xb9, 0x9a, 0x64, 0x1f, 0xc0, 0xd2,
  2219  	0x48, 0xc8, 0xc8, 0x77, 0x63, 0xb2, 0x68, 0xb9, 0x7b, 0x2d, 0xcf, 0x43, 0x95, 0x47, 0x8a, 0xc0,
  2220  	0x0d, 0xd3, 0x66, 0x99, 0x73, 0xeb, 0x49, 0xfb, 0xef, 0x8b, 0xb0, 0xd2, 0x13, 0x4e, 0xe4, 0xbe,
  2221  	0x30, 0x9e, 0xf8, 0x08, 0xca, 0x27, 0xce, 0x20, 0x6e, 0x59, 0x9b, 0xa5, 0xad, 0xe5, 0xee, 0x66,
  2222  	0xa2, 0x37, 0xc7, 0xea, 0x20, 0xe5, 0x20, 0x90, 0xd1, 0x74, 0xaf, 0xfc, 0xd5, 0x37, 0x1b, 0x0b,
  2223  	0x9c, 0xd6, 0xb0, 0x9b, 0xb0, 0x72, 0xe4, 0x07, 0xfb, 0x93, 0xc8, 0x91, 0x7e, 0x18, 0x1c, 0x29,
  2224  	0xe3, 0x56, 0x78, 0x1e, 0x24, 0x96, 0xf3, 0x32, 0xc3, 0x2a, 0x69, 0x56, 0x16, 0x64, 0x57, 0xa0,
  2225  	0xf2, 0xd8, 0x1f, 0xf9, 0xb2, 0x55, 0xa6, 0x59, 0x25, 0x20, 0x1a, 0xd3, 0x45, 0x54, 0x14, 0x4a,
  2226  	0x02, 0x6b, 0x42, 0x49, 0x04, 0x5e, 0xab, 0x4a, 0x18, 0x0e, 0x91, 0xf7, 0x14, 0x1d, 0xdd, 0xaa,
  2227  	0x91, 0xd7, 0x95, 0xc0, 0xb6, 0xe0, 0x52, 0x6f, 0xec, 0x04, 0xf1, 0xb1, 0x88, 0xf0, 0xb7, 0x27,
  2228  	0x64, 0xab, 0x4e, 0x6b, 0x66, 0xe1, 0xf6, 0x87, 0x50, 0x4f, 0x8e, 0x88, 0xea, 0x4f, 0xc5, 0x94,
  2229  	0x6e, 0xa4, 0xce, 0x71, 0x88, 0xea, 0xcf, 0x9c, 0xe1, 0x44, 0xe8, 0x78, 0x50, 0xc2, 0x47, 0x8b,
  2230  	0xdf, 0xb7, 0xec, 0xbf, 0x96, 0x80, 0x29, 0x57, 0xed, 0x61, 0x14, 0x18, 0xaf, 0xde, 0x81, 0x7a,
  2231  	0x6c, 0x1c, 0xa8, 0xaf, 0x76, 0xad, 0xd8, 0xb5, 0x3c, 0x25, 0x62, 0x54, 0x52, 0x2c, 0x1d, 0xee,
  2232  	0xeb, 0x8d, 0x8c, 0x88, 0x91, 0x45, 0x47, 0x3f, 0x76, 0x06, 0x42, 0xfb, 0x2f, 0x05, 0xd0, 0xc3,
  2233  	0x63, 0x67, 0x20, 0xe2, 0x93, 0x50, 0xa9, 0xd6, 0x3e, 0xcc, 0x83, 0x18, 0xb9, 0x22, 0x70, 0x43,
  2234  	0xcf, 0x0f, 0x06, 0x3a, 0x38, 0x13, 0x19, 0x35, 0xf8, 0x81, 0x27, 0x5e, 0xa2, 0xba, 0x9e, 0xff,
  2235  	0x0b, 0xa1, 0x7d, 0x9b, 0x07, 0x99, 0x0d, 0x0d, 0x19, 0x4a, 0x67, 0xc8, 0x85, 0x1b, 0x46, 0x5e,
  2236  	0xdc, 0x5a, 0x22, 0x52, 0x0e, 0x43, 0x8e, 0xe7, 0x48, 0xe7, 0xc0, 0xec, 0xa4, 0x2e, 0x24, 0x87,
  2237  	0xe1, 0x39, 0xcf, 0x44, 0x14, 0xfb, 0x61, 0x40, 0xf7, 0x51, 0xe7, 0x46, 0x64, 0x0c, 0xca, 0x31,
  2238  	0x6e, 0x0f, 0x9b, 0xd6, 0x56, 0x99, 0xd3, 0x18, 0x5f, 0xe4, 0xf3, 0x30, 0x94, 0x22, 0x22, 0xc3,
  2239  	0x96, 0x69, 0xcf, 0x0c, 0xc2, 0xf6, 0xa1, 0xe9, 0x09, 0xcf, 0x77, 0x1d, 0x29, 0xbc, 0xfb, 0xe1,
  2240  	0x70, 0x32, 0x0a, 0xe2, 0x56, 0x83, 0xa2, 0xb9, 0x95, 0xb8, 0x7c, 0x3f, 0x4f, 0xe0, 0x73, 0x2b,
  2241  	0xec, 0xbf, 0x58, 0x70, 0x69, 0x86, 0xc5, 0xee, 0x40, 0x25, 0x76, 0xc3, 0xb1, 0xf2, 0xf8, 0x6a,
  2242  	0x77, 0xfd, 0x3c, 0x75, 0x9d, 0x1e, 0xb2, 0xb8, 0x22, 0xe3, 0x19, 0x02, 0x67, 0x64, 0x62, 0x85,
  2243  	0xc6, 0xec, 0x36, 0x94, 0xe5, 0x74, 0xac, 0x5e, 0xf9, 0x6a, 0xf7, 0x9d, 0x73, 0x15, 0x9d, 0x4c,
  2244  	0xc7, 0x82, 0x13, 0xd5, 0xde, 0x80, 0x0a, 0xa9, 0x65, 0x35, 0x28, 0xf7, 0x8e, 0x3f, 0x7e, 0xd2,
  2245  	0x5c, 0x60, 0x0d, 0xa8, 0xf1, 0x83, 0xde, 0xa7, 0x9f, 0xf1, 0xfb, 0x07, 0x4d, 0xcb, 0x66, 0x50,
  2246  	0x46, 0x3a, 0x03, 0xa8, 0xf6, 0x4e, 0xf8, 0xe1, 0x93, 0x07, 0xcd, 0x05, 0xfb, 0x25, 0xac, 0x9a,
  2247  	0xe8, 0xd2, 0x09, 0xe6, 0x0e, 0x54, 0x29, 0x87, 0x98, 0x17, 0x7e, 0x23, 0x9f, 0x39, 0x14, 0xfb,
  2248  	0x48, 0x48, 0x07, 0x6f, 0x88, 0x6b, 0x2e, 0xdb, 0x99, 0x4d, 0x38, 0xb3, 0xd1, 0x3b, 0x97, 0x6d,
  2249  	0xbe, 0x5c, 0x84, 0xb7, 0x0a, 0x34, 0xce, 0x66, 0xda, 0x7a, 0x9a, 0x69, 0xb7, 0xe0, 0x52, 0x14,
  2250  	0x86, 0xb2, 0x27, 0xa2, 0x33, 0xdf, 0x15, 0x4f, 0x52, 0x97, 0xcd, 0xc2, 0x18, 0x9d, 0x08, 0x91,
  2251  	0x7a, 0xe2, 0xa9, 0xc4, 0x9b, 0x07, 0xd9, 0x2d, 0xb8, 0x4c, 0x4f, 0xe2, 0xc4, 0x1f, 0x89, 0xcf,
  2252  	0x02, 0xff, 0xe5, 0x13, 0x27, 0x08, 0xe9, 0x25, 0x94, 0xf9, 0xfc, 0x04, 0x46, 0x95, 0x97, 0xa6,
  2253  	0x24, 0x95, 0x5e, 0x32, 0x08, 0xfb, 0x1e, 0x2c, 0xc5, 0x3a, 0x67, 0x54, 0xc9, 0x03, 0xcd, 0xd4,
  2254  	0x03, 0x0a, 0xe7, 0x86, 0xc0, 0x6e, 0x41, 0x4d, 0x0f, 0xf1, 0x4d, 0x94, 0x0a, 0xc9, 0x09, 0xc3,
  2255  	0xfe, 0x95, 0x05, 0x4b, 0x1a, 0x65, 0xef, 0x42, 0x05, 0x71, 0x73, 0x39, 0x2b, 0xb9, 0x65, 0x5c,
  2256  	0xcd, 0xa1, 0x0b, 0x47, 0x8e, 0x74, 0x5f, 0x08, 0x4f, 0x27, 0x58, 0x23, 0xb2, 0x7b, 0x00, 0x8e,
  2257  	0x94, 0x91, 0xdf, 0x9f, 0x48, 0x81, 0x79, 0x15, 0x75, 0x5c, 0x4f, 0x74, 0xe8, 0xaa, 0x79, 0x76,
  2258  	0xbb, 0xf3, 0x89, 0x98, 0x3e, 0xc3, 0x94, 0xc5, 0x33, 0x74, 0x8c, 0xf8, 0x32, 0x6e, 0xc3, 0xd6,
  2259  	0xa0, 0x8a, 0x1b, 0x25, 0x37, 0xa4, 0xa5, 0xc2, 0x40, 0x2e, 0x74, 0x72, 0xe9, 0x3c, 0x27, 0xdf,
  2260  	0x84, 0x15, 0xe3, 0x52, 0x94, 0x63, 0x7d, 0x1d, 0x79, 0x70, 0xe6, 0x14, 0x95, 0x6f, 0x77, 0x8a,
  2261  	0x7f, 0x5b, 0xa6, 0xa2, 0xe9, 0x90, 0xc4, 0xb8, 0xf2, 0x83, 0x78, 0x2c, 0x5c, 0x29, 0xbc, 0x13,
  2262  	0x13, 0xfa, 0x94, 0xf5, 0x67, 0x60, 0xf6, 0x1d, 0x58, 0x4d, 0xa0, 0xbd, 0x29, 0x6e, 0xbe, 0x48,
  2263  	0xf6, 0xcd, 0xa0, 0x6c, 0x13, 0x96, 0x29, 0xc7, 0x51, 0x8a, 0x37, 0xf5, 0x2b, 0x0b, 0xe1, 0x41,
  2264  	0xdd, 0x70, 0x34, 0x1e, 0x0a, 0x29, 0xbc, 0x47, 0x61, 0x3f, 0x36, 0x19, 0x38, 0x07, 0x62, 0x16,
  2265  	0xa7, 0x45, 0xc4, 0x50, 0x21, 0x97, 0x02, 0x68, 0x77, 0xaa, 0x52, 0x99, 0x53, 0x25, 0x73, 0x66,
  2266  	0x61, 0xfb, 0x3d, 0xb8, 0xac, 0x8e, 0x8c, 0x35, 0xcb, 0x94, 0x9c, 0x2b, 0x26, 0x59, 0xa9, 0x4b,
  2267  	0x54, 0x82, 0xbd, 0x63, 0xca, 0x93, 0xa2, 0xea, 0xa4, 0xd0, 0x86, 0x9a, 0x74, 0x06, 0xf8, 0x6a,
  2268  	0x54, 0xe4, 0xd5, 0x79, 0x22, 0xdb, 0x8f, 0xe0, 0x4a, 0xba, 0xe2, 0x59, 0x37, 0x59, 0xd3, 0x85,
  2269  	0x2a, 0xa9, 0x34, 0xb1, 0xda, 0x9e, 0xc9, 0x08, 0x8a, 0xae, 0x32, 0xa1, 0x66, 0xda, 0xf7, 0xb2,
  2270  	0x86, 0xea, 0xc9, 0x24, 0xac, 0xac, 0x4c, 0x58, 0x31, 0x28, 0x4b, 0xec, 0x42, 0x16, 0xc9, 0x18,
  2271  	0x1a, 0xdb, 0x0f, 0x61, 0x2d, 0x59, 0x4c, 0xf7, 0x1e, 0x67, 0xbb, 0x37, 0x65, 0x6e, 0x92, 0x53,
  2272  	0x94, 0x88, 0x4e, 0xa0, 0x86, 0xcb, 0x14, 0x6a, 0x12, 0xec, 0x0f, 0xe1, 0xea, 0x9c, 0x26, 0x7d,
  2273  	0x2a, 0xbc, 0x12, 0x03, 0x6a, 0x57, 0xa4, 0x80, 0x7d, 0x07, 0x6a, 0x66, 0x09, 0x99, 0x38, 0x4d,
  2274  	0xdc, 0x4b, 0xe3, 0xe2, 0xbe, 0xc0, 0x7e, 0x0c, 0xd7, 0x66, 0xb6, 0xcb, 0xb8, 0x71, 0x7b, 0x76,
  2275  	0xc3, 0xe5, 0xee, 0xe5, 0x34, 0x25, 0xeb, 0x99, 0xac, 0x0d, 0x7b, 0x50, 0xa1, 0x70, 0x65, 0x77,
  2276  	0x61, 0xa9, 0x4f, 0xef, 0xde, 0xac, 0xdb, 0x48, 0xd6, 0xa9, 0xb6, 0xf9, 0xec, 0x76, 0x87, 0x8b,
  2277  	0x38, 0x9c, 0x44, 0xae, 0xa0, 0xfe, 0x86, 0x1b, 0xbe, 0xbd, 0x0a, 0x8d, 0xe3, 0x49, 0x9c, 0x14,
  2278  	0x05, 0xfb, 0x4f, 0x16, 0x34, 0x11, 0xa0, 0x70, 0x32, 0x5e, 0x7d, 0x3f, 0xa9, 0x14, 0x78, 0x0b,
  2279  	0x8d, 0xbd, 0xb7, 0xb1, 0xd3, 0xfb, 0xe7, 0x37, 0x1b, 0x2b, 0xc7, 0x91, 0x70, 0x86, 0xc3, 0xd0,
  2280  	0x55, 0x6c, 0x53, 0x22, 0xbe, 0x0b, 0x25, 0xdf, 0x53, 0x49, 0xe7, 0x5c, 0x2e, 0x32, 0xd8, 0x2e,
  2281  	0x80, 0x6a, 0x71, 0xf6, 0x1d, 0xe9, 0xb4, 0xca, 0x17, 0xf1, 0x33, 0x44, 0xfb, 0x48, 0x99, 0xa8,
  2282  	0x4e, 0xa2, 0x4d, 0xfc, 0x1f, 0x5c, 0x70, 0x13, 0x40, 0x77, 0xc3, 0xf8, 0xa2, 0xd7, 0x72, 0x55,
  2283  	0xb1, 0x61, 0x0e, 0x65, 0xff, 0x10, 0xea, 0x8f, 0xfd, 0xe0, 0xb4, 0x37, 0xf4, 0x5d, 0x2c, 0xda,
  2284  	0x95, 0xa1, 0x1f, 0x9c, 0x9a, 0xbd, 0xae, 0xcf, 0xef, 0x85, 0x7b, 0x74, 0x70, 0x01, 0x57, 0x4c,
  2285  	0xfb, 0x97, 0x16, 0x30, 0x04, 0x4d, 0x79, 0x4c, 0xdf, 0xa6, 0x0a, 0x4b, 0x2b, 0x13, 0x96, 0x18,
  2286  	0xc6, 0x83, 0x28, 0x9c, 0x8c, 0xf7, 0x4c, 0xb8, 0x1a, 0x11, 0xf9, 0x43, 0x6a, 0x86, 0x55, 0x66,
  2287  	0x55, 0x42, 0xda, 0x0c, 0x97, 0x0b, 0x9a, 0xe1, 0x4a, 0xd2, 0x0c, 0xdb, 0xbf, 0xb1, 0xe0, 0x5a,
  2288  	0xc6, 0x88, 0xde, 0x64, 0x34, 0x72, 0xa2, 0xe9, 0xff, 0xc7, 0x96, 0x3f, 0x5b, 0xf0, 0x56, 0xce,
  2289  	0x21, 0xe9, 0xbb, 0x13, 0xb1, 0xf4, 0x47, 0xd8, 0xfb, 0x90, 0x25, 0x35, 0x9e, 0x02, 0xd4, 0xee,
  2290  	0x8e, 0x9d, 0xe0, 0x7e, 0x38, 0x09, 0xa4, 0xce, 0xc9, 0x29, 0x80, 0x69, 0x5b, 0x44, 0x51, 0x48,
  2291  	0xcd, 0xbb, 0xa2, 0x28, 0xd3, 0x66, 0x50, 0xd6, 0x49, 0x9b, 0x98, 0x32, 0xdd, 0xe0, 0x95, 0x5c,
  2292  	0x79, 0x9d, 0x6b, 0x61, 0x7e, 0x00, 0x0d, 0xee, 0xfc, 0xfc, 0xa1, 0x1f, 0xcb, 0x70, 0x10, 0x39,
  2293  	0x23, 0x0c, 0x92, 0xfe, 0xc4, 0x3d, 0x15, 0x92, 0x0c, 0x2c, 0x73, 0x2d, 0xe1, 0xd9, 0xdd, 0x8c,
  2294  	0x65, 0x4a, 0xb0, 0x1f, 0x41, 0xcd, 0x14, 0xa8, 0x82, 0x7f, 0x10, 0xb7, 0xb2, 0x99, 0x22, 0xdb,
  2295  	0x4e, 0x51, 0x50, 0x3e, 0x7d, 0xdc, 0x93, 0x8e, 0xf4, 0x5d, 0x93, 0x41, 0x7e, 0x6f, 0xc1, 0x72,
  2296  	0xc6, 0x44, 0xb6, 0x07, 0x97, 0x87, 0x8e, 0x14, 0x81, 0x3b, 0xfd, 0xfc, 0x85, 0x31, 0x4f, 0x47,
  2297  	0xe5, 0xdb, 0x89, 0xa6, 0xac, 0xed, 0xbc, 0xa9, 0xf9, 0xe9, 0x69, 0xde, 0x83, 0x6a, 0x2c, 0x22,
  2298  	0x5f, 0x3f, 0xef, 0x6c, 0xd6, 0x49, 0xea, 0xaa, 0x26, 0xe0, 0xc1, 0xc9, 0x95, 0xb1, 0x76, 0xac,
  2299  	0x96, 0xec, 0xbf, 0xe5, 0xa3, 0x5b, 0x07, 0x56, 0xfe, 0xb6, 0xac, 0x37, 0xdf, 0xd6, 0x62, 0xe1,
  2300  	0x6d, 0xa5, 0xf6, 0x95, 0xde, 0x64, 0x5f, 0x13, 0x4a, 0xe3, 0xbb, 0x77, 0x75, 0x33, 0x81, 0x43,
  2301  	0x85, 0xec, 0x52, 0xe0, 0x11, 0xb2, 0xab, 0x90, 0x1d, 0x5d, 0x41, 0x71, 0x48, 0xc8, 0xee, 0x0e,
  2302  	0xfd, 0x69, 0x41, 0x64, 0x77, 0xc7, 0xfe, 0x09, 0xb4, 0x8b, 0xde, 0x89, 0x0e, 0xd1, 0xbb, 0x50,
  2303  	0x8f, 0x09, 0xf2, 0xc5, 0x7c, 0x0a, 0x28, 0x58, 0x97, 0xb2, 0xed, 0x3f, 0x58, 0xb0, 0x92, 0xbb,
  2304  	0xd8, 0x5c, 0xf5, 0xa8, 0xe8, 0xea, 0xd1, 0x00, 0x2b, 0x20, 0x67, 0x94, 0xb8, 0x15, 0xa0, 0xf4,
  2305  	0x9c, 0xfc, 0x6d, 0x71, 0xeb, 0x39, 0x4a, 0xaa, 0x89, 0xa8, 0x73, 0x2b, 0x46, 0xa9, 0x4f, 0x87,
  2306  	0xab, 0x71, 0xab, 0x8f, 0x92, 0xa7, 0x0f, 0x66, 0x79, 0xd4, 0xbd, 0x49, 0x47, 0x4e, 0xd4, 0xdf,
  2307  	0xb1, 0x0a, 0xd7, 0x12, 0xee, 0x78, 0xea, 0x07, 0x1e, 0xfd, 0x01, 0xab, 0x70, 0x1a, 0x77, 0x7f,
  2308  	0x6b, 0x41, 0x15, 0x93, 0xaa, 0x88, 0xd8, 0x8f, 0xa0, 0x9e, 0x54, 0x00, 0x96, 0x7e, 0x4e, 0x98,
  2309  	0xad, 0x0a, 0xed, 0xb7, 0x73, 0x53, 0x49, 0x05, 0x59, 0x60, 0x1f, 0xc3, 0x72, 0x42, 0x7e, 0xd6,
  2310  	0xfd, 0x6f, 0x54, 0x74, 0xff, 0x68, 0x41, 0x53, 0x3b, 0xf1, 0x81, 0x08, 0x44, 0xe4, 0xc8, 0x30,
  2311  	0x31, 0x8c, 0xd2, 0xf7, 0x8c, 0xd6, 0x6c, 0x2d, 0x38, 0xdf, 0xb0, 0x43, 0x80, 0x07, 0x42, 0x9a,
  2312  	0xa7, 0x53, 0x78, 0x65, 0x46, 0xc7, 0x8d, 0xe2, 0xc9, 0xc4, 0xc0, 0x2f, 0xcb, 0xb0, 0xf4, 0x74,
  2313  	0x82, 0x41, 0x17, 0xb1, 0x87, 0xb0, 0xf2, 0x63, 0x3f, 0xf0, 0x92, 0x4f, 0x2a, 0xac, 0xe0, 0x1b,
  2314  	0x8c, 0xd1, 0xdb, 0x2e, 0x9a, 0xca, 0x78, 0xae, 0x61, 0xfe, 0xa4, 0xb9, 0x22, 0x90, 0xec, 0x9c,
  2315  	0x2f, 0x03, 0xed, 0xab, 0x73, 0x78, 0xa2, 0xe2, 0x00, 0x96, 0x33, 0x5f, 0x1d, 0xb2, 0x87, 0x9c,
  2316  	0xfb, 0x16, 0x71, 0x91, 0x9a, 0x07, 0x00, 0x69, 0x7f, 0xc6, 0x8a, 0x3a, 0x3a, 0xa3, 0xe4, 0x7a,
  2317  	0xe1, 0x5c, 0xa2, 0xe8, 0x13, 0x73, 0x24, 0xd5, 0xe8, 0x5d, 0xa8, 0xea, 0x9d, 0xc2, 0xc6, 0x31,
  2318  	0xa3, 0xec, 0x19, 0x5c, 0x9a, 0xe9, 0x9f, 0xd8, 0xc6, 0xfc, 0x9a, 0x5c, 0x4b, 0xd8, 0xde, 0x3c,
  2319  	0x9f, 0x90, 0xe8, 0xfd, 0x69, 0xa6, 0x1b, 0x35, 0x7d, 0xd9, 0x9b, 0x35, 0xdb, 0xe7, 0x11, 0xb2,
  2320  	0x36, 0x77, 0x3f, 0x85, 0x66, 0x4f, 0x46, 0xc2, 0x19, 0xf9, 0xc1, 0xc0, 0x44, 0xcc, 0x3d, 0xa8,
  2321  	0xea, 0x4f, 0x2f, 0xdf, 0xf6, 0x86, 0x77, 0xac, 0xee, 0xcf, 0x60, 0xc9, 0x84, 0xf0, 0xe7, 0x85,
  2322  	0x59, 0xd7, 0xbe, 0x28, 0x17, 0x69, 0xfd, 0xef, 0x5e, 0xc8, 0x31, 0xc6, 0xef, 0xb5, 0xbe, 0x7a,
  2323  	0xb5, 0x6e, 0x7d, 0xfd, 0x6a, 0xdd, 0xfa, 0xd7, 0xab, 0x75, 0xeb, 0x77, 0xaf, 0xd7, 0x17, 0xbe,
  2324  	0x7e, 0xbd, 0xbe, 0xf0, 0x8f, 0xd7, 0xeb, 0x0b, 0xfd, 0x2a, 0x7d, 0x43, 0xfd, 0xe0, 0x3f, 0x01,
  2325  	0x00, 0x00, 0xff, 0xff, 0x1d, 0xf6, 0x35, 0x13, 0xc4, 0x15, 0x00, 0x00,
  2326  }
  2327  
  2328  // Reference imports to suppress errors if they are not otherwise used.
  2329  var _ context.Context
  2330  var _ grpc.ClientConn
  2331  
  2332  // This is a compile-time assertion to ensure that this generated file
  2333  // is compatible with the grpc package it is being compiled against.
  2334  const _ = grpc.SupportPackageIsVersion4
  2335  
  2336  // PusherClient is the client API for Pusher service.
  2337  //
  2338  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  2339  type PusherClient interface {
  2340  	// different versions of PushBytes expect the trace data to be pushed in different formats
  2341  	PushBytes(ctx context.Context, in *PushBytesRequest, opts ...grpc.CallOption) (*PushResponse, error)
  2342  	PushBytesV2(ctx context.Context, in *PushBytesRequest, opts ...grpc.CallOption) (*PushResponse, error)
  2343  }
  2344  
  2345  type pusherClient struct {
  2346  	cc *grpc.ClientConn
  2347  }
  2348  
  2349  func NewPusherClient(cc *grpc.ClientConn) PusherClient {
  2350  	return &pusherClient{cc}
  2351  }
  2352  
  2353  func (c *pusherClient) PushBytes(ctx context.Context, in *PushBytesRequest, opts ...grpc.CallOption) (*PushResponse, error) {
  2354  	out := new(PushResponse)
  2355  	err := c.cc.Invoke(ctx, "/tempopb.Pusher/PushBytes", in, out, opts...)
  2356  	if err != nil {
  2357  		return nil, err
  2358  	}
  2359  	return out, nil
  2360  }
  2361  
  2362  func (c *pusherClient) PushBytesV2(ctx context.Context, in *PushBytesRequest, opts ...grpc.CallOption) (*PushResponse, error) {
  2363  	out := new(PushResponse)
  2364  	err := c.cc.Invoke(ctx, "/tempopb.Pusher/PushBytesV2", in, out, opts...)
  2365  	if err != nil {
  2366  		return nil, err
  2367  	}
  2368  	return out, nil
  2369  }
  2370  
  2371  // PusherServer is the server API for Pusher service.
  2372  type PusherServer interface {
  2373  	// different versions of PushBytes expect the trace data to be pushed in different formats
  2374  	PushBytes(context.Context, *PushBytesRequest) (*PushResponse, error)
  2375  	PushBytesV2(context.Context, *PushBytesRequest) (*PushResponse, error)
  2376  }
  2377  
  2378  // UnimplementedPusherServer can be embedded to have forward compatible implementations.
  2379  type UnimplementedPusherServer struct {
  2380  }
  2381  
  2382  func (*UnimplementedPusherServer) PushBytes(ctx context.Context, req *PushBytesRequest) (*PushResponse, error) {
  2383  	return nil, status.Errorf(codes.Unimplemented, "method PushBytes not implemented")
  2384  }
  2385  func (*UnimplementedPusherServer) PushBytesV2(ctx context.Context, req *PushBytesRequest) (*PushResponse, error) {
  2386  	return nil, status.Errorf(codes.Unimplemented, "method PushBytesV2 not implemented")
  2387  }
  2388  
  2389  func RegisterPusherServer(s *grpc.Server, srv PusherServer) {
  2390  	s.RegisterService(&_Pusher_serviceDesc, srv)
  2391  }
  2392  
  2393  func _Pusher_PushBytes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2394  	in := new(PushBytesRequest)
  2395  	if err := dec(in); err != nil {
  2396  		return nil, err
  2397  	}
  2398  	if interceptor == nil {
  2399  		return srv.(PusherServer).PushBytes(ctx, in)
  2400  	}
  2401  	info := &grpc.UnaryServerInfo{
  2402  		Server:     srv,
  2403  		FullMethod: "/tempopb.Pusher/PushBytes",
  2404  	}
  2405  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2406  		return srv.(PusherServer).PushBytes(ctx, req.(*PushBytesRequest))
  2407  	}
  2408  	return interceptor(ctx, in, info, handler)
  2409  }
  2410  
  2411  func _Pusher_PushBytesV2_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2412  	in := new(PushBytesRequest)
  2413  	if err := dec(in); err != nil {
  2414  		return nil, err
  2415  	}
  2416  	if interceptor == nil {
  2417  		return srv.(PusherServer).PushBytesV2(ctx, in)
  2418  	}
  2419  	info := &grpc.UnaryServerInfo{
  2420  		Server:     srv,
  2421  		FullMethod: "/tempopb.Pusher/PushBytesV2",
  2422  	}
  2423  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2424  		return srv.(PusherServer).PushBytesV2(ctx, req.(*PushBytesRequest))
  2425  	}
  2426  	return interceptor(ctx, in, info, handler)
  2427  }
  2428  
  2429  var _Pusher_serviceDesc = grpc.ServiceDesc{
  2430  	ServiceName: "tempopb.Pusher",
  2431  	HandlerType: (*PusherServer)(nil),
  2432  	Methods: []grpc.MethodDesc{
  2433  		{
  2434  			MethodName: "PushBytes",
  2435  			Handler:    _Pusher_PushBytes_Handler,
  2436  		},
  2437  		{
  2438  			MethodName: "PushBytesV2",
  2439  			Handler:    _Pusher_PushBytesV2_Handler,
  2440  		},
  2441  	},
  2442  	Streams:  []grpc.StreamDesc{},
  2443  	Metadata: "pkg/tempopb/tempo.proto",
  2444  }
  2445  
  2446  // MetricsGeneratorClient is the client API for MetricsGenerator service.
  2447  //
  2448  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  2449  type MetricsGeneratorClient interface {
  2450  	PushSpans(ctx context.Context, in *PushSpansRequest, opts ...grpc.CallOption) (*PushResponse, error)
  2451  	GetMetrics(ctx context.Context, in *SpanMetricsRequest, opts ...grpc.CallOption) (*SpanMetricsResponse, error)
  2452  }
  2453  
  2454  type metricsGeneratorClient struct {
  2455  	cc *grpc.ClientConn
  2456  }
  2457  
  2458  func NewMetricsGeneratorClient(cc *grpc.ClientConn) MetricsGeneratorClient {
  2459  	return &metricsGeneratorClient{cc}
  2460  }
  2461  
  2462  func (c *metricsGeneratorClient) PushSpans(ctx context.Context, in *PushSpansRequest, opts ...grpc.CallOption) (*PushResponse, error) {
  2463  	out := new(PushResponse)
  2464  	err := c.cc.Invoke(ctx, "/tempopb.MetricsGenerator/PushSpans", in, out, opts...)
  2465  	if err != nil {
  2466  		return nil, err
  2467  	}
  2468  	return out, nil
  2469  }
  2470  
  2471  func (c *metricsGeneratorClient) GetMetrics(ctx context.Context, in *SpanMetricsRequest, opts ...grpc.CallOption) (*SpanMetricsResponse, error) {
  2472  	out := new(SpanMetricsResponse)
  2473  	err := c.cc.Invoke(ctx, "/tempopb.MetricsGenerator/GetMetrics", in, out, opts...)
  2474  	if err != nil {
  2475  		return nil, err
  2476  	}
  2477  	return out, nil
  2478  }
  2479  
  2480  // MetricsGeneratorServer is the server API for MetricsGenerator service.
  2481  type MetricsGeneratorServer interface {
  2482  	PushSpans(context.Context, *PushSpansRequest) (*PushResponse, error)
  2483  	GetMetrics(context.Context, *SpanMetricsRequest) (*SpanMetricsResponse, error)
  2484  }
  2485  
  2486  // UnimplementedMetricsGeneratorServer can be embedded to have forward compatible implementations.
  2487  type UnimplementedMetricsGeneratorServer struct {
  2488  }
  2489  
  2490  func (*UnimplementedMetricsGeneratorServer) PushSpans(ctx context.Context, req *PushSpansRequest) (*PushResponse, error) {
  2491  	return nil, status.Errorf(codes.Unimplemented, "method PushSpans not implemented")
  2492  }
  2493  func (*UnimplementedMetricsGeneratorServer) GetMetrics(ctx context.Context, req *SpanMetricsRequest) (*SpanMetricsResponse, error) {
  2494  	return nil, status.Errorf(codes.Unimplemented, "method GetMetrics not implemented")
  2495  }
  2496  
  2497  func RegisterMetricsGeneratorServer(s *grpc.Server, srv MetricsGeneratorServer) {
  2498  	s.RegisterService(&_MetricsGenerator_serviceDesc, srv)
  2499  }
  2500  
  2501  func _MetricsGenerator_PushSpans_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2502  	in := new(PushSpansRequest)
  2503  	if err := dec(in); err != nil {
  2504  		return nil, err
  2505  	}
  2506  	if interceptor == nil {
  2507  		return srv.(MetricsGeneratorServer).PushSpans(ctx, in)
  2508  	}
  2509  	info := &grpc.UnaryServerInfo{
  2510  		Server:     srv,
  2511  		FullMethod: "/tempopb.MetricsGenerator/PushSpans",
  2512  	}
  2513  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2514  		return srv.(MetricsGeneratorServer).PushSpans(ctx, req.(*PushSpansRequest))
  2515  	}
  2516  	return interceptor(ctx, in, info, handler)
  2517  }
  2518  
  2519  func _MetricsGenerator_GetMetrics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2520  	in := new(SpanMetricsRequest)
  2521  	if err := dec(in); err != nil {
  2522  		return nil, err
  2523  	}
  2524  	if interceptor == nil {
  2525  		return srv.(MetricsGeneratorServer).GetMetrics(ctx, in)
  2526  	}
  2527  	info := &grpc.UnaryServerInfo{
  2528  		Server:     srv,
  2529  		FullMethod: "/tempopb.MetricsGenerator/GetMetrics",
  2530  	}
  2531  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2532  		return srv.(MetricsGeneratorServer).GetMetrics(ctx, req.(*SpanMetricsRequest))
  2533  	}
  2534  	return interceptor(ctx, in, info, handler)
  2535  }
  2536  
  2537  var _MetricsGenerator_serviceDesc = grpc.ServiceDesc{
  2538  	ServiceName: "tempopb.MetricsGenerator",
  2539  	HandlerType: (*MetricsGeneratorServer)(nil),
  2540  	Methods: []grpc.MethodDesc{
  2541  		{
  2542  			MethodName: "PushSpans",
  2543  			Handler:    _MetricsGenerator_PushSpans_Handler,
  2544  		},
  2545  		{
  2546  			MethodName: "GetMetrics",
  2547  			Handler:    _MetricsGenerator_GetMetrics_Handler,
  2548  		},
  2549  	},
  2550  	Streams:  []grpc.StreamDesc{},
  2551  	Metadata: "pkg/tempopb/tempo.proto",
  2552  }
  2553  
  2554  // QuerierClient is the client API for Querier service.
  2555  //
  2556  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  2557  type QuerierClient interface {
  2558  	FindTraceByID(ctx context.Context, in *TraceByIDRequest, opts ...grpc.CallOption) (*TraceByIDResponse, error)
  2559  	SearchRecent(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (*SearchResponse, error)
  2560  	SearchBlock(ctx context.Context, in *SearchBlockRequest, opts ...grpc.CallOption) (*SearchResponse, error)
  2561  	SearchTags(ctx context.Context, in *SearchTagsRequest, opts ...grpc.CallOption) (*SearchTagsResponse, error)
  2562  	SearchTagsV2(ctx context.Context, in *SearchTagsRequest, opts ...grpc.CallOption) (*SearchTagsV2Response, error)
  2563  	SearchTagValues(ctx context.Context, in *SearchTagValuesRequest, opts ...grpc.CallOption) (*SearchTagValuesResponse, error)
  2564  	SearchTagValuesV2(ctx context.Context, in *SearchTagValuesRequest, opts ...grpc.CallOption) (*SearchTagValuesV2Response, error)
  2565  }
  2566  
  2567  type querierClient struct {
  2568  	cc *grpc.ClientConn
  2569  }
  2570  
  2571  func NewQuerierClient(cc *grpc.ClientConn) QuerierClient {
  2572  	return &querierClient{cc}
  2573  }
  2574  
  2575  func (c *querierClient) FindTraceByID(ctx context.Context, in *TraceByIDRequest, opts ...grpc.CallOption) (*TraceByIDResponse, error) {
  2576  	out := new(TraceByIDResponse)
  2577  	err := c.cc.Invoke(ctx, "/tempopb.Querier/FindTraceByID", in, out, opts...)
  2578  	if err != nil {
  2579  		return nil, err
  2580  	}
  2581  	return out, nil
  2582  }
  2583  
  2584  func (c *querierClient) SearchRecent(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (*SearchResponse, error) {
  2585  	out := new(SearchResponse)
  2586  	err := c.cc.Invoke(ctx, "/tempopb.Querier/SearchRecent", in, out, opts...)
  2587  	if err != nil {
  2588  		return nil, err
  2589  	}
  2590  	return out, nil
  2591  }
  2592  
  2593  func (c *querierClient) SearchBlock(ctx context.Context, in *SearchBlockRequest, opts ...grpc.CallOption) (*SearchResponse, error) {
  2594  	out := new(SearchResponse)
  2595  	err := c.cc.Invoke(ctx, "/tempopb.Querier/SearchBlock", in, out, opts...)
  2596  	if err != nil {
  2597  		return nil, err
  2598  	}
  2599  	return out, nil
  2600  }
  2601  
  2602  func (c *querierClient) SearchTags(ctx context.Context, in *SearchTagsRequest, opts ...grpc.CallOption) (*SearchTagsResponse, error) {
  2603  	out := new(SearchTagsResponse)
  2604  	err := c.cc.Invoke(ctx, "/tempopb.Querier/SearchTags", in, out, opts...)
  2605  	if err != nil {
  2606  		return nil, err
  2607  	}
  2608  	return out, nil
  2609  }
  2610  
  2611  func (c *querierClient) SearchTagsV2(ctx context.Context, in *SearchTagsRequest, opts ...grpc.CallOption) (*SearchTagsV2Response, error) {
  2612  	out := new(SearchTagsV2Response)
  2613  	err := c.cc.Invoke(ctx, "/tempopb.Querier/SearchTagsV2", in, out, opts...)
  2614  	if err != nil {
  2615  		return nil, err
  2616  	}
  2617  	return out, nil
  2618  }
  2619  
  2620  func (c *querierClient) SearchTagValues(ctx context.Context, in *SearchTagValuesRequest, opts ...grpc.CallOption) (*SearchTagValuesResponse, error) {
  2621  	out := new(SearchTagValuesResponse)
  2622  	err := c.cc.Invoke(ctx, "/tempopb.Querier/SearchTagValues", in, out, opts...)
  2623  	if err != nil {
  2624  		return nil, err
  2625  	}
  2626  	return out, nil
  2627  }
  2628  
  2629  func (c *querierClient) SearchTagValuesV2(ctx context.Context, in *SearchTagValuesRequest, opts ...grpc.CallOption) (*SearchTagValuesV2Response, error) {
  2630  	out := new(SearchTagValuesV2Response)
  2631  	err := c.cc.Invoke(ctx, "/tempopb.Querier/SearchTagValuesV2", in, out, opts...)
  2632  	if err != nil {
  2633  		return nil, err
  2634  	}
  2635  	return out, nil
  2636  }
  2637  
  2638  // QuerierServer is the server API for Querier service.
  2639  type QuerierServer interface {
  2640  	FindTraceByID(context.Context, *TraceByIDRequest) (*TraceByIDResponse, error)
  2641  	SearchRecent(context.Context, *SearchRequest) (*SearchResponse, error)
  2642  	SearchBlock(context.Context, *SearchBlockRequest) (*SearchResponse, error)
  2643  	SearchTags(context.Context, *SearchTagsRequest) (*SearchTagsResponse, error)
  2644  	SearchTagsV2(context.Context, *SearchTagsRequest) (*SearchTagsV2Response, error)
  2645  	SearchTagValues(context.Context, *SearchTagValuesRequest) (*SearchTagValuesResponse, error)
  2646  	SearchTagValuesV2(context.Context, *SearchTagValuesRequest) (*SearchTagValuesV2Response, error)
  2647  }
  2648  
  2649  // UnimplementedQuerierServer can be embedded to have forward compatible implementations.
  2650  type UnimplementedQuerierServer struct {
  2651  }
  2652  
  2653  func (*UnimplementedQuerierServer) FindTraceByID(ctx context.Context, req *TraceByIDRequest) (*TraceByIDResponse, error) {
  2654  	return nil, status.Errorf(codes.Unimplemented, "method FindTraceByID not implemented")
  2655  }
  2656  func (*UnimplementedQuerierServer) SearchRecent(ctx context.Context, req *SearchRequest) (*SearchResponse, error) {
  2657  	return nil, status.Errorf(codes.Unimplemented, "method SearchRecent not implemented")
  2658  }
  2659  func (*UnimplementedQuerierServer) SearchBlock(ctx context.Context, req *SearchBlockRequest) (*SearchResponse, error) {
  2660  	return nil, status.Errorf(codes.Unimplemented, "method SearchBlock not implemented")
  2661  }
  2662  func (*UnimplementedQuerierServer) SearchTags(ctx context.Context, req *SearchTagsRequest) (*SearchTagsResponse, error) {
  2663  	return nil, status.Errorf(codes.Unimplemented, "method SearchTags not implemented")
  2664  }
  2665  func (*UnimplementedQuerierServer) SearchTagsV2(ctx context.Context, req *SearchTagsRequest) (*SearchTagsV2Response, error) {
  2666  	return nil, status.Errorf(codes.Unimplemented, "method SearchTagsV2 not implemented")
  2667  }
  2668  func (*UnimplementedQuerierServer) SearchTagValues(ctx context.Context, req *SearchTagValuesRequest) (*SearchTagValuesResponse, error) {
  2669  	return nil, status.Errorf(codes.Unimplemented, "method SearchTagValues not implemented")
  2670  }
  2671  func (*UnimplementedQuerierServer) SearchTagValuesV2(ctx context.Context, req *SearchTagValuesRequest) (*SearchTagValuesV2Response, error) {
  2672  	return nil, status.Errorf(codes.Unimplemented, "method SearchTagValuesV2 not implemented")
  2673  }
  2674  
  2675  func RegisterQuerierServer(s *grpc.Server, srv QuerierServer) {
  2676  	s.RegisterService(&_Querier_serviceDesc, srv)
  2677  }
  2678  
  2679  func _Querier_FindTraceByID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2680  	in := new(TraceByIDRequest)
  2681  	if err := dec(in); err != nil {
  2682  		return nil, err
  2683  	}
  2684  	if interceptor == nil {
  2685  		return srv.(QuerierServer).FindTraceByID(ctx, in)
  2686  	}
  2687  	info := &grpc.UnaryServerInfo{
  2688  		Server:     srv,
  2689  		FullMethod: "/tempopb.Querier/FindTraceByID",
  2690  	}
  2691  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2692  		return srv.(QuerierServer).FindTraceByID(ctx, req.(*TraceByIDRequest))
  2693  	}
  2694  	return interceptor(ctx, in, info, handler)
  2695  }
  2696  
  2697  func _Querier_SearchRecent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2698  	in := new(SearchRequest)
  2699  	if err := dec(in); err != nil {
  2700  		return nil, err
  2701  	}
  2702  	if interceptor == nil {
  2703  		return srv.(QuerierServer).SearchRecent(ctx, in)
  2704  	}
  2705  	info := &grpc.UnaryServerInfo{
  2706  		Server:     srv,
  2707  		FullMethod: "/tempopb.Querier/SearchRecent",
  2708  	}
  2709  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2710  		return srv.(QuerierServer).SearchRecent(ctx, req.(*SearchRequest))
  2711  	}
  2712  	return interceptor(ctx, in, info, handler)
  2713  }
  2714  
  2715  func _Querier_SearchBlock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2716  	in := new(SearchBlockRequest)
  2717  	if err := dec(in); err != nil {
  2718  		return nil, err
  2719  	}
  2720  	if interceptor == nil {
  2721  		return srv.(QuerierServer).SearchBlock(ctx, in)
  2722  	}
  2723  	info := &grpc.UnaryServerInfo{
  2724  		Server:     srv,
  2725  		FullMethod: "/tempopb.Querier/SearchBlock",
  2726  	}
  2727  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2728  		return srv.(QuerierServer).SearchBlock(ctx, req.(*SearchBlockRequest))
  2729  	}
  2730  	return interceptor(ctx, in, info, handler)
  2731  }
  2732  
  2733  func _Querier_SearchTags_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2734  	in := new(SearchTagsRequest)
  2735  	if err := dec(in); err != nil {
  2736  		return nil, err
  2737  	}
  2738  	if interceptor == nil {
  2739  		return srv.(QuerierServer).SearchTags(ctx, in)
  2740  	}
  2741  	info := &grpc.UnaryServerInfo{
  2742  		Server:     srv,
  2743  		FullMethod: "/tempopb.Querier/SearchTags",
  2744  	}
  2745  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2746  		return srv.(QuerierServer).SearchTags(ctx, req.(*SearchTagsRequest))
  2747  	}
  2748  	return interceptor(ctx, in, info, handler)
  2749  }
  2750  
  2751  func _Querier_SearchTagsV2_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2752  	in := new(SearchTagsRequest)
  2753  	if err := dec(in); err != nil {
  2754  		return nil, err
  2755  	}
  2756  	if interceptor == nil {
  2757  		return srv.(QuerierServer).SearchTagsV2(ctx, in)
  2758  	}
  2759  	info := &grpc.UnaryServerInfo{
  2760  		Server:     srv,
  2761  		FullMethod: "/tempopb.Querier/SearchTagsV2",
  2762  	}
  2763  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2764  		return srv.(QuerierServer).SearchTagsV2(ctx, req.(*SearchTagsRequest))
  2765  	}
  2766  	return interceptor(ctx, in, info, handler)
  2767  }
  2768  
  2769  func _Querier_SearchTagValues_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2770  	in := new(SearchTagValuesRequest)
  2771  	if err := dec(in); err != nil {
  2772  		return nil, err
  2773  	}
  2774  	if interceptor == nil {
  2775  		return srv.(QuerierServer).SearchTagValues(ctx, in)
  2776  	}
  2777  	info := &grpc.UnaryServerInfo{
  2778  		Server:     srv,
  2779  		FullMethod: "/tempopb.Querier/SearchTagValues",
  2780  	}
  2781  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2782  		return srv.(QuerierServer).SearchTagValues(ctx, req.(*SearchTagValuesRequest))
  2783  	}
  2784  	return interceptor(ctx, in, info, handler)
  2785  }
  2786  
  2787  func _Querier_SearchTagValuesV2_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2788  	in := new(SearchTagValuesRequest)
  2789  	if err := dec(in); err != nil {
  2790  		return nil, err
  2791  	}
  2792  	if interceptor == nil {
  2793  		return srv.(QuerierServer).SearchTagValuesV2(ctx, in)
  2794  	}
  2795  	info := &grpc.UnaryServerInfo{
  2796  		Server:     srv,
  2797  		FullMethod: "/tempopb.Querier/SearchTagValuesV2",
  2798  	}
  2799  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2800  		return srv.(QuerierServer).SearchTagValuesV2(ctx, req.(*SearchTagValuesRequest))
  2801  	}
  2802  	return interceptor(ctx, in, info, handler)
  2803  }
  2804  
  2805  var _Querier_serviceDesc = grpc.ServiceDesc{
  2806  	ServiceName: "tempopb.Querier",
  2807  	HandlerType: (*QuerierServer)(nil),
  2808  	Methods: []grpc.MethodDesc{
  2809  		{
  2810  			MethodName: "FindTraceByID",
  2811  			Handler:    _Querier_FindTraceByID_Handler,
  2812  		},
  2813  		{
  2814  			MethodName: "SearchRecent",
  2815  			Handler:    _Querier_SearchRecent_Handler,
  2816  		},
  2817  		{
  2818  			MethodName: "SearchBlock",
  2819  			Handler:    _Querier_SearchBlock_Handler,
  2820  		},
  2821  		{
  2822  			MethodName: "SearchTags",
  2823  			Handler:    _Querier_SearchTags_Handler,
  2824  		},
  2825  		{
  2826  			MethodName: "SearchTagsV2",
  2827  			Handler:    _Querier_SearchTagsV2_Handler,
  2828  		},
  2829  		{
  2830  			MethodName: "SearchTagValues",
  2831  			Handler:    _Querier_SearchTagValues_Handler,
  2832  		},
  2833  		{
  2834  			MethodName: "SearchTagValuesV2",
  2835  			Handler:    _Querier_SearchTagValuesV2_Handler,
  2836  		},
  2837  	},
  2838  	Streams:  []grpc.StreamDesc{},
  2839  	Metadata: "pkg/tempopb/tempo.proto",
  2840  }
  2841  
  2842  // StreamingQuerierClient is the client API for StreamingQuerier service.
  2843  //
  2844  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  2845  type StreamingQuerierClient interface {
  2846  	Search(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (StreamingQuerier_SearchClient, error)
  2847  }
  2848  
  2849  type streamingQuerierClient struct {
  2850  	cc *grpc.ClientConn
  2851  }
  2852  
  2853  func NewStreamingQuerierClient(cc *grpc.ClientConn) StreamingQuerierClient {
  2854  	return &streamingQuerierClient{cc}
  2855  }
  2856  
  2857  func (c *streamingQuerierClient) Search(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (StreamingQuerier_SearchClient, error) {
  2858  	stream, err := c.cc.NewStream(ctx, &_StreamingQuerier_serviceDesc.Streams[0], "/tempopb.StreamingQuerier/Search", opts...)
  2859  	if err != nil {
  2860  		return nil, err
  2861  	}
  2862  	x := &streamingQuerierSearchClient{stream}
  2863  	if err := x.ClientStream.SendMsg(in); err != nil {
  2864  		return nil, err
  2865  	}
  2866  	if err := x.ClientStream.CloseSend(); err != nil {
  2867  		return nil, err
  2868  	}
  2869  	return x, nil
  2870  }
  2871  
  2872  type StreamingQuerier_SearchClient interface {
  2873  	Recv() (*SearchResponse, error)
  2874  	grpc.ClientStream
  2875  }
  2876  
  2877  type streamingQuerierSearchClient struct {
  2878  	grpc.ClientStream
  2879  }
  2880  
  2881  func (x *streamingQuerierSearchClient) Recv() (*SearchResponse, error) {
  2882  	m := new(SearchResponse)
  2883  	if err := x.ClientStream.RecvMsg(m); err != nil {
  2884  		return nil, err
  2885  	}
  2886  	return m, nil
  2887  }
  2888  
  2889  // StreamingQuerierServer is the server API for StreamingQuerier service.
  2890  type StreamingQuerierServer interface {
  2891  	Search(*SearchRequest, StreamingQuerier_SearchServer) error
  2892  }
  2893  
  2894  // UnimplementedStreamingQuerierServer can be embedded to have forward compatible implementations.
  2895  type UnimplementedStreamingQuerierServer struct {
  2896  }
  2897  
  2898  func (*UnimplementedStreamingQuerierServer) Search(req *SearchRequest, srv StreamingQuerier_SearchServer) error {
  2899  	return status.Errorf(codes.Unimplemented, "method Search not implemented")
  2900  }
  2901  
  2902  func RegisterStreamingQuerierServer(s *grpc.Server, srv StreamingQuerierServer) {
  2903  	s.RegisterService(&_StreamingQuerier_serviceDesc, srv)
  2904  }
  2905  
  2906  func _StreamingQuerier_Search_Handler(srv interface{}, stream grpc.ServerStream) error {
  2907  	m := new(SearchRequest)
  2908  	if err := stream.RecvMsg(m); err != nil {
  2909  		return err
  2910  	}
  2911  	return srv.(StreamingQuerierServer).Search(m, &streamingQuerierSearchServer{stream})
  2912  }
  2913  
  2914  type StreamingQuerier_SearchServer interface {
  2915  	Send(*SearchResponse) error
  2916  	grpc.ServerStream
  2917  }
  2918  
  2919  type streamingQuerierSearchServer struct {
  2920  	grpc.ServerStream
  2921  }
  2922  
  2923  func (x *streamingQuerierSearchServer) Send(m *SearchResponse) error {
  2924  	return x.ServerStream.SendMsg(m)
  2925  }
  2926  
  2927  var _StreamingQuerier_serviceDesc = grpc.ServiceDesc{
  2928  	ServiceName: "tempopb.StreamingQuerier",
  2929  	HandlerType: (*StreamingQuerierServer)(nil),
  2930  	Methods:     []grpc.MethodDesc{},
  2931  	Streams: []grpc.StreamDesc{
  2932  		{
  2933  			StreamName:    "Search",
  2934  			Handler:       _StreamingQuerier_Search_Handler,
  2935  			ServerStreams: true,
  2936  		},
  2937  	},
  2938  	Metadata: "pkg/tempopb/tempo.proto",
  2939  }
  2940  
  2941  // MetricsClient is the client API for Metrics service.
  2942  //
  2943  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  2944  type MetricsClient interface {
  2945  	SpanMetricsSummary(ctx context.Context, in *SpanMetricsSummaryRequest, opts ...grpc.CallOption) (*SpanMetricsSummaryResponse, error)
  2946  }
  2947  
  2948  type metricsClient struct {
  2949  	cc *grpc.ClientConn
  2950  }
  2951  
  2952  func NewMetricsClient(cc *grpc.ClientConn) MetricsClient {
  2953  	return &metricsClient{cc}
  2954  }
  2955  
  2956  func (c *metricsClient) SpanMetricsSummary(ctx context.Context, in *SpanMetricsSummaryRequest, opts ...grpc.CallOption) (*SpanMetricsSummaryResponse, error) {
  2957  	out := new(SpanMetricsSummaryResponse)
  2958  	err := c.cc.Invoke(ctx, "/tempopb.Metrics/SpanMetricsSummary", in, out, opts...)
  2959  	if err != nil {
  2960  		return nil, err
  2961  	}
  2962  	return out, nil
  2963  }
  2964  
  2965  // MetricsServer is the server API for Metrics service.
  2966  type MetricsServer interface {
  2967  	SpanMetricsSummary(context.Context, *SpanMetricsSummaryRequest) (*SpanMetricsSummaryResponse, error)
  2968  }
  2969  
  2970  // UnimplementedMetricsServer can be embedded to have forward compatible implementations.
  2971  type UnimplementedMetricsServer struct {
  2972  }
  2973  
  2974  func (*UnimplementedMetricsServer) SpanMetricsSummary(ctx context.Context, req *SpanMetricsSummaryRequest) (*SpanMetricsSummaryResponse, error) {
  2975  	return nil, status.Errorf(codes.Unimplemented, "method SpanMetricsSummary not implemented")
  2976  }
  2977  
  2978  func RegisterMetricsServer(s *grpc.Server, srv MetricsServer) {
  2979  	s.RegisterService(&_Metrics_serviceDesc, srv)
  2980  }
  2981  
  2982  func _Metrics_SpanMetricsSummary_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2983  	in := new(SpanMetricsSummaryRequest)
  2984  	if err := dec(in); err != nil {
  2985  		return nil, err
  2986  	}
  2987  	if interceptor == nil {
  2988  		return srv.(MetricsServer).SpanMetricsSummary(ctx, in)
  2989  	}
  2990  	info := &grpc.UnaryServerInfo{
  2991  		Server:     srv,
  2992  		FullMethod: "/tempopb.Metrics/SpanMetricsSummary",
  2993  	}
  2994  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2995  		return srv.(MetricsServer).SpanMetricsSummary(ctx, req.(*SpanMetricsSummaryRequest))
  2996  	}
  2997  	return interceptor(ctx, in, info, handler)
  2998  }
  2999  
  3000  var _Metrics_serviceDesc = grpc.ServiceDesc{
  3001  	ServiceName: "tempopb.Metrics",
  3002  	HandlerType: (*MetricsServer)(nil),
  3003  	Methods: []grpc.MethodDesc{
  3004  		{
  3005  			MethodName: "SpanMetricsSummary",
  3006  			Handler:    _Metrics_SpanMetricsSummary_Handler,
  3007  		},
  3008  	},
  3009  	Streams:  []grpc.StreamDesc{},
  3010  	Metadata: "pkg/tempopb/tempo.proto",
  3011  }
  3012  
  3013  func (m *TraceByIDRequest) Marshal() (dAtA []byte, err error) {
  3014  	size := m.Size()
  3015  	dAtA = make([]byte, size)
  3016  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3017  	if err != nil {
  3018  		return nil, err
  3019  	}
  3020  	return dAtA[:n], nil
  3021  }
  3022  
  3023  func (m *TraceByIDRequest) MarshalTo(dAtA []byte) (int, error) {
  3024  	size := m.Size()
  3025  	return m.MarshalToSizedBuffer(dAtA[:size])
  3026  }
  3027  
  3028  func (m *TraceByIDRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3029  	i := len(dAtA)
  3030  	_ = i
  3031  	var l int
  3032  	_ = l
  3033  	if len(m.QueryMode) > 0 {
  3034  		i -= len(m.QueryMode)
  3035  		copy(dAtA[i:], m.QueryMode)
  3036  		i = encodeVarintTempo(dAtA, i, uint64(len(m.QueryMode)))
  3037  		i--
  3038  		dAtA[i] = 0x2a
  3039  	}
  3040  	if len(m.BlockEnd) > 0 {
  3041  		i -= len(m.BlockEnd)
  3042  		copy(dAtA[i:], m.BlockEnd)
  3043  		i = encodeVarintTempo(dAtA, i, uint64(len(m.BlockEnd)))
  3044  		i--
  3045  		dAtA[i] = 0x1a
  3046  	}
  3047  	if len(m.BlockStart) > 0 {
  3048  		i -= len(m.BlockStart)
  3049  		copy(dAtA[i:], m.BlockStart)
  3050  		i = encodeVarintTempo(dAtA, i, uint64(len(m.BlockStart)))
  3051  		i--
  3052  		dAtA[i] = 0x12
  3053  	}
  3054  	if len(m.TraceID) > 0 {
  3055  		i -= len(m.TraceID)
  3056  		copy(dAtA[i:], m.TraceID)
  3057  		i = encodeVarintTempo(dAtA, i, uint64(len(m.TraceID)))
  3058  		i--
  3059  		dAtA[i] = 0xa
  3060  	}
  3061  	return len(dAtA) - i, nil
  3062  }
  3063  
  3064  func (m *TraceByIDResponse) Marshal() (dAtA []byte, err error) {
  3065  	size := m.Size()
  3066  	dAtA = make([]byte, size)
  3067  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3068  	if err != nil {
  3069  		return nil, err
  3070  	}
  3071  	return dAtA[:n], nil
  3072  }
  3073  
  3074  func (m *TraceByIDResponse) MarshalTo(dAtA []byte) (int, error) {
  3075  	size := m.Size()
  3076  	return m.MarshalToSizedBuffer(dAtA[:size])
  3077  }
  3078  
  3079  func (m *TraceByIDResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3080  	i := len(dAtA)
  3081  	_ = i
  3082  	var l int
  3083  	_ = l
  3084  	if m.Metrics != nil {
  3085  		{
  3086  			size, err := m.Metrics.MarshalToSizedBuffer(dAtA[:i])
  3087  			if err != nil {
  3088  				return 0, err
  3089  			}
  3090  			i -= size
  3091  			i = encodeVarintTempo(dAtA, i, uint64(size))
  3092  		}
  3093  		i--
  3094  		dAtA[i] = 0x12
  3095  	}
  3096  	if m.Trace != nil {
  3097  		{
  3098  			size, err := m.Trace.MarshalToSizedBuffer(dAtA[:i])
  3099  			if err != nil {
  3100  				return 0, err
  3101  			}
  3102  			i -= size
  3103  			i = encodeVarintTempo(dAtA, i, uint64(size))
  3104  		}
  3105  		i--
  3106  		dAtA[i] = 0xa
  3107  	}
  3108  	return len(dAtA) - i, nil
  3109  }
  3110  
  3111  func (m *TraceByIDMetrics) Marshal() (dAtA []byte, err error) {
  3112  	size := m.Size()
  3113  	dAtA = make([]byte, size)
  3114  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3115  	if err != nil {
  3116  		return nil, err
  3117  	}
  3118  	return dAtA[:n], nil
  3119  }
  3120  
  3121  func (m *TraceByIDMetrics) MarshalTo(dAtA []byte) (int, error) {
  3122  	size := m.Size()
  3123  	return m.MarshalToSizedBuffer(dAtA[:size])
  3124  }
  3125  
  3126  func (m *TraceByIDMetrics) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3127  	i := len(dAtA)
  3128  	_ = i
  3129  	var l int
  3130  	_ = l
  3131  	return len(dAtA) - i, nil
  3132  }
  3133  
  3134  func (m *SearchRequest) Marshal() (dAtA []byte, err error) {
  3135  	size := m.Size()
  3136  	dAtA = make([]byte, size)
  3137  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3138  	if err != nil {
  3139  		return nil, err
  3140  	}
  3141  	return dAtA[:n], nil
  3142  }
  3143  
  3144  func (m *SearchRequest) MarshalTo(dAtA []byte) (int, error) {
  3145  	size := m.Size()
  3146  	return m.MarshalToSizedBuffer(dAtA[:size])
  3147  }
  3148  
  3149  func (m *SearchRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3150  	i := len(dAtA)
  3151  	_ = i
  3152  	var l int
  3153  	_ = l
  3154  	if m.SpansPerSpanSet != 0 {
  3155  		i = encodeVarintTempo(dAtA, i, uint64(m.SpansPerSpanSet))
  3156  		i--
  3157  		dAtA[i] = 0x48
  3158  	}
  3159  	if len(m.Query) > 0 {
  3160  		i -= len(m.Query)
  3161  		copy(dAtA[i:], m.Query)
  3162  		i = encodeVarintTempo(dAtA, i, uint64(len(m.Query)))
  3163  		i--
  3164  		dAtA[i] = 0x42
  3165  	}
  3166  	if m.End != 0 {
  3167  		i = encodeVarintTempo(dAtA, i, uint64(m.End))
  3168  		i--
  3169  		dAtA[i] = 0x30
  3170  	}
  3171  	if m.Start != 0 {
  3172  		i = encodeVarintTempo(dAtA, i, uint64(m.Start))
  3173  		i--
  3174  		dAtA[i] = 0x28
  3175  	}
  3176  	if m.Limit != 0 {
  3177  		i = encodeVarintTempo(dAtA, i, uint64(m.Limit))
  3178  		i--
  3179  		dAtA[i] = 0x20
  3180  	}
  3181  	if m.MaxDurationMs != 0 {
  3182  		i = encodeVarintTempo(dAtA, i, uint64(m.MaxDurationMs))
  3183  		i--
  3184  		dAtA[i] = 0x18
  3185  	}
  3186  	if m.MinDurationMs != 0 {
  3187  		i = encodeVarintTempo(dAtA, i, uint64(m.MinDurationMs))
  3188  		i--
  3189  		dAtA[i] = 0x10
  3190  	}
  3191  	if len(m.Tags) > 0 {
  3192  		for k := range m.Tags {
  3193  			v := m.Tags[k]
  3194  			baseI := i
  3195  			i -= len(v)
  3196  			copy(dAtA[i:], v)
  3197  			i = encodeVarintTempo(dAtA, i, uint64(len(v)))
  3198  			i--
  3199  			dAtA[i] = 0x12
  3200  			i -= len(k)
  3201  			copy(dAtA[i:], k)
  3202  			i = encodeVarintTempo(dAtA, i, uint64(len(k)))
  3203  			i--
  3204  			dAtA[i] = 0xa
  3205  			i = encodeVarintTempo(dAtA, i, uint64(baseI-i))
  3206  			i--
  3207  			dAtA[i] = 0xa
  3208  		}
  3209  	}
  3210  	return len(dAtA) - i, nil
  3211  }
  3212  
  3213  func (m *SearchBlockRequest) Marshal() (dAtA []byte, err error) {
  3214  	size := m.Size()
  3215  	dAtA = make([]byte, size)
  3216  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3217  	if err != nil {
  3218  		return nil, err
  3219  	}
  3220  	return dAtA[:n], nil
  3221  }
  3222  
  3223  func (m *SearchBlockRequest) MarshalTo(dAtA []byte) (int, error) {
  3224  	size := m.Size()
  3225  	return m.MarshalToSizedBuffer(dAtA[:size])
  3226  }
  3227  
  3228  func (m *SearchBlockRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3229  	i := len(dAtA)
  3230  	_ = i
  3231  	var l int
  3232  	_ = l
  3233  	if len(m.DedicatedColumns) > 0 {
  3234  		for iNdEx := len(m.DedicatedColumns) - 1; iNdEx >= 0; iNdEx-- {
  3235  			{
  3236  				size, err := m.DedicatedColumns[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  3237  				if err != nil {
  3238  					return 0, err
  3239  				}
  3240  				i -= size
  3241  				i = encodeVarintTempo(dAtA, i, uint64(size))
  3242  			}
  3243  			i--
  3244  			dAtA[i] = 0x62
  3245  		}
  3246  	}
  3247  	if m.FooterSize != 0 {
  3248  		i = encodeVarintTempo(dAtA, i, uint64(m.FooterSize))
  3249  		i--
  3250  		dAtA[i] = 0x58
  3251  	}
  3252  	if m.Size_ != 0 {
  3253  		i = encodeVarintTempo(dAtA, i, uint64(m.Size_))
  3254  		i--
  3255  		dAtA[i] = 0x50
  3256  	}
  3257  	if len(m.Version) > 0 {
  3258  		i -= len(m.Version)
  3259  		copy(dAtA[i:], m.Version)
  3260  		i = encodeVarintTempo(dAtA, i, uint64(len(m.Version)))
  3261  		i--
  3262  		dAtA[i] = 0x4a
  3263  	}
  3264  	if len(m.DataEncoding) > 0 {
  3265  		i -= len(m.DataEncoding)
  3266  		copy(dAtA[i:], m.DataEncoding)
  3267  		i = encodeVarintTempo(dAtA, i, uint64(len(m.DataEncoding)))
  3268  		i--
  3269  		dAtA[i] = 0x42
  3270  	}
  3271  	if m.TotalRecords != 0 {
  3272  		i = encodeVarintTempo(dAtA, i, uint64(m.TotalRecords))
  3273  		i--
  3274  		dAtA[i] = 0x38
  3275  	}
  3276  	if m.IndexPageSize != 0 {
  3277  		i = encodeVarintTempo(dAtA, i, uint64(m.IndexPageSize))
  3278  		i--
  3279  		dAtA[i] = 0x30
  3280  	}
  3281  	if len(m.Encoding) > 0 {
  3282  		i -= len(m.Encoding)
  3283  		copy(dAtA[i:], m.Encoding)
  3284  		i = encodeVarintTempo(dAtA, i, uint64(len(m.Encoding)))
  3285  		i--
  3286  		dAtA[i] = 0x2a
  3287  	}
  3288  	if m.PagesToSearch != 0 {
  3289  		i = encodeVarintTempo(dAtA, i, uint64(m.PagesToSearch))
  3290  		i--
  3291  		dAtA[i] = 0x20
  3292  	}
  3293  	if m.StartPage != 0 {
  3294  		i = encodeVarintTempo(dAtA, i, uint64(m.StartPage))
  3295  		i--
  3296  		dAtA[i] = 0x18
  3297  	}
  3298  	if len(m.BlockID) > 0 {
  3299  		i -= len(m.BlockID)
  3300  		copy(dAtA[i:], m.BlockID)
  3301  		i = encodeVarintTempo(dAtA, i, uint64(len(m.BlockID)))
  3302  		i--
  3303  		dAtA[i] = 0x12
  3304  	}
  3305  	if m.SearchReq != nil {
  3306  		{
  3307  			size, err := m.SearchReq.MarshalToSizedBuffer(dAtA[:i])
  3308  			if err != nil {
  3309  				return 0, err
  3310  			}
  3311  			i -= size
  3312  			i = encodeVarintTempo(dAtA, i, uint64(size))
  3313  		}
  3314  		i--
  3315  		dAtA[i] = 0xa
  3316  	}
  3317  	return len(dAtA) - i, nil
  3318  }
  3319  
  3320  func (m *DedicatedColumn) Marshal() (dAtA []byte, err error) {
  3321  	size := m.Size()
  3322  	dAtA = make([]byte, size)
  3323  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3324  	if err != nil {
  3325  		return nil, err
  3326  	}
  3327  	return dAtA[:n], nil
  3328  }
  3329  
  3330  func (m *DedicatedColumn) MarshalTo(dAtA []byte) (int, error) {
  3331  	size := m.Size()
  3332  	return m.MarshalToSizedBuffer(dAtA[:size])
  3333  }
  3334  
  3335  func (m *DedicatedColumn) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3336  	i := len(dAtA)
  3337  	_ = i
  3338  	var l int
  3339  	_ = l
  3340  	if m.Scope != 0 {
  3341  		i = encodeVarintTempo(dAtA, i, uint64(m.Scope))
  3342  		i--
  3343  		dAtA[i] = 0x18
  3344  	}
  3345  	if len(m.Name) > 0 {
  3346  		i -= len(m.Name)
  3347  		copy(dAtA[i:], m.Name)
  3348  		i = encodeVarintTempo(dAtA, i, uint64(len(m.Name)))
  3349  		i--
  3350  		dAtA[i] = 0x12
  3351  	}
  3352  	if m.Type != 0 {
  3353  		i = encodeVarintTempo(dAtA, i, uint64(m.Type))
  3354  		i--
  3355  		dAtA[i] = 0x8
  3356  	}
  3357  	return len(dAtA) - i, nil
  3358  }
  3359  
  3360  func (m *SearchResponse) Marshal() (dAtA []byte, err error) {
  3361  	size := m.Size()
  3362  	dAtA = make([]byte, size)
  3363  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3364  	if err != nil {
  3365  		return nil, err
  3366  	}
  3367  	return dAtA[:n], nil
  3368  }
  3369  
  3370  func (m *SearchResponse) MarshalTo(dAtA []byte) (int, error) {
  3371  	size := m.Size()
  3372  	return m.MarshalToSizedBuffer(dAtA[:size])
  3373  }
  3374  
  3375  func (m *SearchResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3376  	i := len(dAtA)
  3377  	_ = i
  3378  	var l int
  3379  	_ = l
  3380  	if m.Metrics != nil {
  3381  		{
  3382  			size, err := m.Metrics.MarshalToSizedBuffer(dAtA[:i])
  3383  			if err != nil {
  3384  				return 0, err
  3385  			}
  3386  			i -= size
  3387  			i = encodeVarintTempo(dAtA, i, uint64(size))
  3388  		}
  3389  		i--
  3390  		dAtA[i] = 0x12
  3391  	}
  3392  	if len(m.Traces) > 0 {
  3393  		for iNdEx := len(m.Traces) - 1; iNdEx >= 0; iNdEx-- {
  3394  			{
  3395  				size, err := m.Traces[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  3396  				if err != nil {
  3397  					return 0, err
  3398  				}
  3399  				i -= size
  3400  				i = encodeVarintTempo(dAtA, i, uint64(size))
  3401  			}
  3402  			i--
  3403  			dAtA[i] = 0xa
  3404  		}
  3405  	}
  3406  	return len(dAtA) - i, nil
  3407  }
  3408  
  3409  func (m *TraceSearchMetadata) Marshal() (dAtA []byte, err error) {
  3410  	size := m.Size()
  3411  	dAtA = make([]byte, size)
  3412  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3413  	if err != nil {
  3414  		return nil, err
  3415  	}
  3416  	return dAtA[:n], nil
  3417  }
  3418  
  3419  func (m *TraceSearchMetadata) MarshalTo(dAtA []byte) (int, error) {
  3420  	size := m.Size()
  3421  	return m.MarshalToSizedBuffer(dAtA[:size])
  3422  }
  3423  
  3424  func (m *TraceSearchMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3425  	i := len(dAtA)
  3426  	_ = i
  3427  	var l int
  3428  	_ = l
  3429  	if len(m.SpanSets) > 0 {
  3430  		for iNdEx := len(m.SpanSets) - 1; iNdEx >= 0; iNdEx-- {
  3431  			{
  3432  				size, err := m.SpanSets[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  3433  				if err != nil {
  3434  					return 0, err
  3435  				}
  3436  				i -= size
  3437  				i = encodeVarintTempo(dAtA, i, uint64(size))
  3438  			}
  3439  			i--
  3440  			dAtA[i] = 0x3a
  3441  		}
  3442  	}
  3443  	if m.SpanSet != nil {
  3444  		{
  3445  			size, err := m.SpanSet.MarshalToSizedBuffer(dAtA[:i])
  3446  			if err != nil {
  3447  				return 0, err
  3448  			}
  3449  			i -= size
  3450  			i = encodeVarintTempo(dAtA, i, uint64(size))
  3451  		}
  3452  		i--
  3453  		dAtA[i] = 0x32
  3454  	}
  3455  	if m.DurationMs != 0 {
  3456  		i = encodeVarintTempo(dAtA, i, uint64(m.DurationMs))
  3457  		i--
  3458  		dAtA[i] = 0x28
  3459  	}
  3460  	if m.StartTimeUnixNano != 0 {
  3461  		i = encodeVarintTempo(dAtA, i, uint64(m.StartTimeUnixNano))
  3462  		i--
  3463  		dAtA[i] = 0x20
  3464  	}
  3465  	if len(m.RootTraceName) > 0 {
  3466  		i -= len(m.RootTraceName)
  3467  		copy(dAtA[i:], m.RootTraceName)
  3468  		i = encodeVarintTempo(dAtA, i, uint64(len(m.RootTraceName)))
  3469  		i--
  3470  		dAtA[i] = 0x1a
  3471  	}
  3472  	if len(m.RootServiceName) > 0 {
  3473  		i -= len(m.RootServiceName)
  3474  		copy(dAtA[i:], m.RootServiceName)
  3475  		i = encodeVarintTempo(dAtA, i, uint64(len(m.RootServiceName)))
  3476  		i--
  3477  		dAtA[i] = 0x12
  3478  	}
  3479  	if len(m.TraceID) > 0 {
  3480  		i -= len(m.TraceID)
  3481  		copy(dAtA[i:], m.TraceID)
  3482  		i = encodeVarintTempo(dAtA, i, uint64(len(m.TraceID)))
  3483  		i--
  3484  		dAtA[i] = 0xa
  3485  	}
  3486  	return len(dAtA) - i, nil
  3487  }
  3488  
  3489  func (m *SpanSet) Marshal() (dAtA []byte, err error) {
  3490  	size := m.Size()
  3491  	dAtA = make([]byte, size)
  3492  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3493  	if err != nil {
  3494  		return nil, err
  3495  	}
  3496  	return dAtA[:n], nil
  3497  }
  3498  
  3499  func (m *SpanSet) MarshalTo(dAtA []byte) (int, error) {
  3500  	size := m.Size()
  3501  	return m.MarshalToSizedBuffer(dAtA[:size])
  3502  }
  3503  
  3504  func (m *SpanSet) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3505  	i := len(dAtA)
  3506  	_ = i
  3507  	var l int
  3508  	_ = l
  3509  	if len(m.Attributes) > 0 {
  3510  		for iNdEx := len(m.Attributes) - 1; iNdEx >= 0; iNdEx-- {
  3511  			{
  3512  				size, err := m.Attributes[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  3513  				if err != nil {
  3514  					return 0, err
  3515  				}
  3516  				i -= size
  3517  				i = encodeVarintTempo(dAtA, i, uint64(size))
  3518  			}
  3519  			i--
  3520  			dAtA[i] = 0x1a
  3521  		}
  3522  	}
  3523  	if m.Matched != 0 {
  3524  		i = encodeVarintTempo(dAtA, i, uint64(m.Matched))
  3525  		i--
  3526  		dAtA[i] = 0x10
  3527  	}
  3528  	if len(m.Spans) > 0 {
  3529  		for iNdEx := len(m.Spans) - 1; iNdEx >= 0; iNdEx-- {
  3530  			{
  3531  				size, err := m.Spans[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  3532  				if err != nil {
  3533  					return 0, err
  3534  				}
  3535  				i -= size
  3536  				i = encodeVarintTempo(dAtA, i, uint64(size))
  3537  			}
  3538  			i--
  3539  			dAtA[i] = 0xa
  3540  		}
  3541  	}
  3542  	return len(dAtA) - i, nil
  3543  }
  3544  
  3545  func (m *Span) Marshal() (dAtA []byte, err error) {
  3546  	size := m.Size()
  3547  	dAtA = make([]byte, size)
  3548  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3549  	if err != nil {
  3550  		return nil, err
  3551  	}
  3552  	return dAtA[:n], nil
  3553  }
  3554  
  3555  func (m *Span) MarshalTo(dAtA []byte) (int, error) {
  3556  	size := m.Size()
  3557  	return m.MarshalToSizedBuffer(dAtA[:size])
  3558  }
  3559  
  3560  func (m *Span) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3561  	i := len(dAtA)
  3562  	_ = i
  3563  	var l int
  3564  	_ = l
  3565  	if len(m.Attributes) > 0 {
  3566  		for iNdEx := len(m.Attributes) - 1; iNdEx >= 0; iNdEx-- {
  3567  			{
  3568  				size, err := m.Attributes[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  3569  				if err != nil {
  3570  					return 0, err
  3571  				}
  3572  				i -= size
  3573  				i = encodeVarintTempo(dAtA, i, uint64(size))
  3574  			}
  3575  			i--
  3576  			dAtA[i] = 0x2a
  3577  		}
  3578  	}
  3579  	if m.DurationNanos != 0 {
  3580  		i = encodeVarintTempo(dAtA, i, uint64(m.DurationNanos))
  3581  		i--
  3582  		dAtA[i] = 0x20
  3583  	}
  3584  	if m.StartTimeUnixNano != 0 {
  3585  		i = encodeVarintTempo(dAtA, i, uint64(m.StartTimeUnixNano))
  3586  		i--
  3587  		dAtA[i] = 0x18
  3588  	}
  3589  	if len(m.Name) > 0 {
  3590  		i -= len(m.Name)
  3591  		copy(dAtA[i:], m.Name)
  3592  		i = encodeVarintTempo(dAtA, i, uint64(len(m.Name)))
  3593  		i--
  3594  		dAtA[i] = 0x12
  3595  	}
  3596  	if len(m.SpanID) > 0 {
  3597  		i -= len(m.SpanID)
  3598  		copy(dAtA[i:], m.SpanID)
  3599  		i = encodeVarintTempo(dAtA, i, uint64(len(m.SpanID)))
  3600  		i--
  3601  		dAtA[i] = 0xa
  3602  	}
  3603  	return len(dAtA) - i, nil
  3604  }
  3605  
  3606  func (m *SearchMetrics) Marshal() (dAtA []byte, err error) {
  3607  	size := m.Size()
  3608  	dAtA = make([]byte, size)
  3609  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3610  	if err != nil {
  3611  		return nil, err
  3612  	}
  3613  	return dAtA[:n], nil
  3614  }
  3615  
  3616  func (m *SearchMetrics) MarshalTo(dAtA []byte) (int, error) {
  3617  	size := m.Size()
  3618  	return m.MarshalToSizedBuffer(dAtA[:size])
  3619  }
  3620  
  3621  func (m *SearchMetrics) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3622  	i := len(dAtA)
  3623  	_ = i
  3624  	var l int
  3625  	_ = l
  3626  	if m.TotalBlockBytes != 0 {
  3627  		i = encodeVarintTempo(dAtA, i, uint64(m.TotalBlockBytes))
  3628  		i--
  3629  		dAtA[i] = 0x30
  3630  	}
  3631  	if m.TotalJobs != 0 {
  3632  		i = encodeVarintTempo(dAtA, i, uint64(m.TotalJobs))
  3633  		i--
  3634  		dAtA[i] = 0x28
  3635  	}
  3636  	if m.CompletedJobs != 0 {
  3637  		i = encodeVarintTempo(dAtA, i, uint64(m.CompletedJobs))
  3638  		i--
  3639  		dAtA[i] = 0x20
  3640  	}
  3641  	if m.TotalBlocks != 0 {
  3642  		i = encodeVarintTempo(dAtA, i, uint64(m.TotalBlocks))
  3643  		i--
  3644  		dAtA[i] = 0x18
  3645  	}
  3646  	if m.InspectedBytes != 0 {
  3647  		i = encodeVarintTempo(dAtA, i, uint64(m.InspectedBytes))
  3648  		i--
  3649  		dAtA[i] = 0x10
  3650  	}
  3651  	if m.InspectedTraces != 0 {
  3652  		i = encodeVarintTempo(dAtA, i, uint64(m.InspectedTraces))
  3653  		i--
  3654  		dAtA[i] = 0x8
  3655  	}
  3656  	return len(dAtA) - i, nil
  3657  }
  3658  
  3659  func (m *SearchTagsRequest) Marshal() (dAtA []byte, err error) {
  3660  	size := m.Size()
  3661  	dAtA = make([]byte, size)
  3662  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3663  	if err != nil {
  3664  		return nil, err
  3665  	}
  3666  	return dAtA[:n], nil
  3667  }
  3668  
  3669  func (m *SearchTagsRequest) MarshalTo(dAtA []byte) (int, error) {
  3670  	size := m.Size()
  3671  	return m.MarshalToSizedBuffer(dAtA[:size])
  3672  }
  3673  
  3674  func (m *SearchTagsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3675  	i := len(dAtA)
  3676  	_ = i
  3677  	var l int
  3678  	_ = l
  3679  	if len(m.Scope) > 0 {
  3680  		i -= len(m.Scope)
  3681  		copy(dAtA[i:], m.Scope)
  3682  		i = encodeVarintTempo(dAtA, i, uint64(len(m.Scope)))
  3683  		i--
  3684  		dAtA[i] = 0xa
  3685  	}
  3686  	return len(dAtA) - i, nil
  3687  }
  3688  
  3689  func (m *SearchTagsResponse) Marshal() (dAtA []byte, err error) {
  3690  	size := m.Size()
  3691  	dAtA = make([]byte, size)
  3692  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3693  	if err != nil {
  3694  		return nil, err
  3695  	}
  3696  	return dAtA[:n], nil
  3697  }
  3698  
  3699  func (m *SearchTagsResponse) MarshalTo(dAtA []byte) (int, error) {
  3700  	size := m.Size()
  3701  	return m.MarshalToSizedBuffer(dAtA[:size])
  3702  }
  3703  
  3704  func (m *SearchTagsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3705  	i := len(dAtA)
  3706  	_ = i
  3707  	var l int
  3708  	_ = l
  3709  	if len(m.TagNames) > 0 {
  3710  		for iNdEx := len(m.TagNames) - 1; iNdEx >= 0; iNdEx-- {
  3711  			i -= len(m.TagNames[iNdEx])
  3712  			copy(dAtA[i:], m.TagNames[iNdEx])
  3713  			i = encodeVarintTempo(dAtA, i, uint64(len(m.TagNames[iNdEx])))
  3714  			i--
  3715  			dAtA[i] = 0xa
  3716  		}
  3717  	}
  3718  	return len(dAtA) - i, nil
  3719  }
  3720  
  3721  func (m *SearchTagsV2Response) Marshal() (dAtA []byte, err error) {
  3722  	size := m.Size()
  3723  	dAtA = make([]byte, size)
  3724  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3725  	if err != nil {
  3726  		return nil, err
  3727  	}
  3728  	return dAtA[:n], nil
  3729  }
  3730  
  3731  func (m *SearchTagsV2Response) MarshalTo(dAtA []byte) (int, error) {
  3732  	size := m.Size()
  3733  	return m.MarshalToSizedBuffer(dAtA[:size])
  3734  }
  3735  
  3736  func (m *SearchTagsV2Response) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3737  	i := len(dAtA)
  3738  	_ = i
  3739  	var l int
  3740  	_ = l
  3741  	if len(m.Scopes) > 0 {
  3742  		for iNdEx := len(m.Scopes) - 1; iNdEx >= 0; iNdEx-- {
  3743  			{
  3744  				size, err := m.Scopes[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  3745  				if err != nil {
  3746  					return 0, err
  3747  				}
  3748  				i -= size
  3749  				i = encodeVarintTempo(dAtA, i, uint64(size))
  3750  			}
  3751  			i--
  3752  			dAtA[i] = 0xa
  3753  		}
  3754  	}
  3755  	return len(dAtA) - i, nil
  3756  }
  3757  
  3758  func (m *SearchTagsV2Scope) Marshal() (dAtA []byte, err error) {
  3759  	size := m.Size()
  3760  	dAtA = make([]byte, size)
  3761  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3762  	if err != nil {
  3763  		return nil, err
  3764  	}
  3765  	return dAtA[:n], nil
  3766  }
  3767  
  3768  func (m *SearchTagsV2Scope) MarshalTo(dAtA []byte) (int, error) {
  3769  	size := m.Size()
  3770  	return m.MarshalToSizedBuffer(dAtA[:size])
  3771  }
  3772  
  3773  func (m *SearchTagsV2Scope) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3774  	i := len(dAtA)
  3775  	_ = i
  3776  	var l int
  3777  	_ = l
  3778  	if len(m.Tags) > 0 {
  3779  		for iNdEx := len(m.Tags) - 1; iNdEx >= 0; iNdEx-- {
  3780  			i -= len(m.Tags[iNdEx])
  3781  			copy(dAtA[i:], m.Tags[iNdEx])
  3782  			i = encodeVarintTempo(dAtA, i, uint64(len(m.Tags[iNdEx])))
  3783  			i--
  3784  			dAtA[i] = 0x12
  3785  		}
  3786  	}
  3787  	if len(m.Name) > 0 {
  3788  		i -= len(m.Name)
  3789  		copy(dAtA[i:], m.Name)
  3790  		i = encodeVarintTempo(dAtA, i, uint64(len(m.Name)))
  3791  		i--
  3792  		dAtA[i] = 0xa
  3793  	}
  3794  	return len(dAtA) - i, nil
  3795  }
  3796  
  3797  func (m *SearchTagValuesRequest) Marshal() (dAtA []byte, err error) {
  3798  	size := m.Size()
  3799  	dAtA = make([]byte, size)
  3800  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3801  	if err != nil {
  3802  		return nil, err
  3803  	}
  3804  	return dAtA[:n], nil
  3805  }
  3806  
  3807  func (m *SearchTagValuesRequest) MarshalTo(dAtA []byte) (int, error) {
  3808  	size := m.Size()
  3809  	return m.MarshalToSizedBuffer(dAtA[:size])
  3810  }
  3811  
  3812  func (m *SearchTagValuesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3813  	i := len(dAtA)
  3814  	_ = i
  3815  	var l int
  3816  	_ = l
  3817  	if len(m.Query) > 0 {
  3818  		i -= len(m.Query)
  3819  		copy(dAtA[i:], m.Query)
  3820  		i = encodeVarintTempo(dAtA, i, uint64(len(m.Query)))
  3821  		i--
  3822  		dAtA[i] = 0x12
  3823  	}
  3824  	if len(m.TagName) > 0 {
  3825  		i -= len(m.TagName)
  3826  		copy(dAtA[i:], m.TagName)
  3827  		i = encodeVarintTempo(dAtA, i, uint64(len(m.TagName)))
  3828  		i--
  3829  		dAtA[i] = 0xa
  3830  	}
  3831  	return len(dAtA) - i, nil
  3832  }
  3833  
  3834  func (m *SearchTagValuesResponse) Marshal() (dAtA []byte, err error) {
  3835  	size := m.Size()
  3836  	dAtA = make([]byte, size)
  3837  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3838  	if err != nil {
  3839  		return nil, err
  3840  	}
  3841  	return dAtA[:n], nil
  3842  }
  3843  
  3844  func (m *SearchTagValuesResponse) MarshalTo(dAtA []byte) (int, error) {
  3845  	size := m.Size()
  3846  	return m.MarshalToSizedBuffer(dAtA[:size])
  3847  }
  3848  
  3849  func (m *SearchTagValuesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3850  	i := len(dAtA)
  3851  	_ = i
  3852  	var l int
  3853  	_ = l
  3854  	if len(m.TagValues) > 0 {
  3855  		for iNdEx := len(m.TagValues) - 1; iNdEx >= 0; iNdEx-- {
  3856  			i -= len(m.TagValues[iNdEx])
  3857  			copy(dAtA[i:], m.TagValues[iNdEx])
  3858  			i = encodeVarintTempo(dAtA, i, uint64(len(m.TagValues[iNdEx])))
  3859  			i--
  3860  			dAtA[i] = 0xa
  3861  		}
  3862  	}
  3863  	return len(dAtA) - i, nil
  3864  }
  3865  
  3866  func (m *TagValue) Marshal() (dAtA []byte, err error) {
  3867  	size := m.Size()
  3868  	dAtA = make([]byte, size)
  3869  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3870  	if err != nil {
  3871  		return nil, err
  3872  	}
  3873  	return dAtA[:n], nil
  3874  }
  3875  
  3876  func (m *TagValue) MarshalTo(dAtA []byte) (int, error) {
  3877  	size := m.Size()
  3878  	return m.MarshalToSizedBuffer(dAtA[:size])
  3879  }
  3880  
  3881  func (m *TagValue) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3882  	i := len(dAtA)
  3883  	_ = i
  3884  	var l int
  3885  	_ = l
  3886  	if len(m.Value) > 0 {
  3887  		i -= len(m.Value)
  3888  		copy(dAtA[i:], m.Value)
  3889  		i = encodeVarintTempo(dAtA, i, uint64(len(m.Value)))
  3890  		i--
  3891  		dAtA[i] = 0x12
  3892  	}
  3893  	if len(m.Type) > 0 {
  3894  		i -= len(m.Type)
  3895  		copy(dAtA[i:], m.Type)
  3896  		i = encodeVarintTempo(dAtA, i, uint64(len(m.Type)))
  3897  		i--
  3898  		dAtA[i] = 0xa
  3899  	}
  3900  	return len(dAtA) - i, nil
  3901  }
  3902  
  3903  func (m *SearchTagValuesV2Response) Marshal() (dAtA []byte, err error) {
  3904  	size := m.Size()
  3905  	dAtA = make([]byte, size)
  3906  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3907  	if err != nil {
  3908  		return nil, err
  3909  	}
  3910  	return dAtA[:n], nil
  3911  }
  3912  
  3913  func (m *SearchTagValuesV2Response) MarshalTo(dAtA []byte) (int, error) {
  3914  	size := m.Size()
  3915  	return m.MarshalToSizedBuffer(dAtA[:size])
  3916  }
  3917  
  3918  func (m *SearchTagValuesV2Response) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3919  	i := len(dAtA)
  3920  	_ = i
  3921  	var l int
  3922  	_ = l
  3923  	if len(m.TagValues) > 0 {
  3924  		for iNdEx := len(m.TagValues) - 1; iNdEx >= 0; iNdEx-- {
  3925  			{
  3926  				size, err := m.TagValues[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  3927  				if err != nil {
  3928  					return 0, err
  3929  				}
  3930  				i -= size
  3931  				i = encodeVarintTempo(dAtA, i, uint64(size))
  3932  			}
  3933  			i--
  3934  			dAtA[i] = 0xa
  3935  		}
  3936  	}
  3937  	return len(dAtA) - i, nil
  3938  }
  3939  
  3940  func (m *Trace) Marshal() (dAtA []byte, err error) {
  3941  	size := m.Size()
  3942  	dAtA = make([]byte, size)
  3943  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3944  	if err != nil {
  3945  		return nil, err
  3946  	}
  3947  	return dAtA[:n], nil
  3948  }
  3949  
  3950  func (m *Trace) MarshalTo(dAtA []byte) (int, error) {
  3951  	size := m.Size()
  3952  	return m.MarshalToSizedBuffer(dAtA[:size])
  3953  }
  3954  
  3955  func (m *Trace) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3956  	i := len(dAtA)
  3957  	_ = i
  3958  	var l int
  3959  	_ = l
  3960  	if len(m.Batches) > 0 {
  3961  		for iNdEx := len(m.Batches) - 1; iNdEx >= 0; iNdEx-- {
  3962  			{
  3963  				size, err := m.Batches[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  3964  				if err != nil {
  3965  					return 0, err
  3966  				}
  3967  				i -= size
  3968  				i = encodeVarintTempo(dAtA, i, uint64(size))
  3969  			}
  3970  			i--
  3971  			dAtA[i] = 0xa
  3972  		}
  3973  	}
  3974  	return len(dAtA) - i, nil
  3975  }
  3976  
  3977  func (m *PushResponse) Marshal() (dAtA []byte, err error) {
  3978  	size := m.Size()
  3979  	dAtA = make([]byte, size)
  3980  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  3981  	if err != nil {
  3982  		return nil, err
  3983  	}
  3984  	return dAtA[:n], nil
  3985  }
  3986  
  3987  func (m *PushResponse) MarshalTo(dAtA []byte) (int, error) {
  3988  	size := m.Size()
  3989  	return m.MarshalToSizedBuffer(dAtA[:size])
  3990  }
  3991  
  3992  func (m *PushResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  3993  	i := len(dAtA)
  3994  	_ = i
  3995  	var l int
  3996  	_ = l
  3997  	return len(dAtA) - i, nil
  3998  }
  3999  
  4000  func (m *PushBytesRequest) Marshal() (dAtA []byte, err error) {
  4001  	size := m.Size()
  4002  	dAtA = make([]byte, size)
  4003  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  4004  	if err != nil {
  4005  		return nil, err
  4006  	}
  4007  	return dAtA[:n], nil
  4008  }
  4009  
  4010  func (m *PushBytesRequest) MarshalTo(dAtA []byte) (int, error) {
  4011  	size := m.Size()
  4012  	return m.MarshalToSizedBuffer(dAtA[:size])
  4013  }
  4014  
  4015  func (m *PushBytesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4016  	i := len(dAtA)
  4017  	_ = i
  4018  	var l int
  4019  	_ = l
  4020  	if len(m.SearchData) > 0 {
  4021  		for iNdEx := len(m.SearchData) - 1; iNdEx >= 0; iNdEx-- {
  4022  			{
  4023  				size := m.SearchData[iNdEx].Size()
  4024  				i -= size
  4025  				if _, err := m.SearchData[iNdEx].MarshalTo(dAtA[i:]); err != nil {
  4026  					return 0, err
  4027  				}
  4028  				i = encodeVarintTempo(dAtA, i, uint64(size))
  4029  			}
  4030  			i--
  4031  			dAtA[i] = 0x22
  4032  		}
  4033  	}
  4034  	if len(m.Ids) > 0 {
  4035  		for iNdEx := len(m.Ids) - 1; iNdEx >= 0; iNdEx-- {
  4036  			{
  4037  				size := m.Ids[iNdEx].Size()
  4038  				i -= size
  4039  				if _, err := m.Ids[iNdEx].MarshalTo(dAtA[i:]); err != nil {
  4040  					return 0, err
  4041  				}
  4042  				i = encodeVarintTempo(dAtA, i, uint64(size))
  4043  			}
  4044  			i--
  4045  			dAtA[i] = 0x1a
  4046  		}
  4047  	}
  4048  	if len(m.Traces) > 0 {
  4049  		for iNdEx := len(m.Traces) - 1; iNdEx >= 0; iNdEx-- {
  4050  			{
  4051  				size := m.Traces[iNdEx].Size()
  4052  				i -= size
  4053  				if _, err := m.Traces[iNdEx].MarshalTo(dAtA[i:]); err != nil {
  4054  					return 0, err
  4055  				}
  4056  				i = encodeVarintTempo(dAtA, i, uint64(size))
  4057  			}
  4058  			i--
  4059  			dAtA[i] = 0x12
  4060  		}
  4061  	}
  4062  	return len(dAtA) - i, nil
  4063  }
  4064  
  4065  func (m *PushSpansRequest) Marshal() (dAtA []byte, err error) {
  4066  	size := m.Size()
  4067  	dAtA = make([]byte, size)
  4068  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  4069  	if err != nil {
  4070  		return nil, err
  4071  	}
  4072  	return dAtA[:n], nil
  4073  }
  4074  
  4075  func (m *PushSpansRequest) MarshalTo(dAtA []byte) (int, error) {
  4076  	size := m.Size()
  4077  	return m.MarshalToSizedBuffer(dAtA[:size])
  4078  }
  4079  
  4080  func (m *PushSpansRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4081  	i := len(dAtA)
  4082  	_ = i
  4083  	var l int
  4084  	_ = l
  4085  	if len(m.Batches) > 0 {
  4086  		for iNdEx := len(m.Batches) - 1; iNdEx >= 0; iNdEx-- {
  4087  			{
  4088  				size, err := m.Batches[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  4089  				if err != nil {
  4090  					return 0, err
  4091  				}
  4092  				i -= size
  4093  				i = encodeVarintTempo(dAtA, i, uint64(size))
  4094  			}
  4095  			i--
  4096  			dAtA[i] = 0xa
  4097  		}
  4098  	}
  4099  	return len(dAtA) - i, nil
  4100  }
  4101  
  4102  func (m *TraceBytes) Marshal() (dAtA []byte, err error) {
  4103  	size := m.Size()
  4104  	dAtA = make([]byte, size)
  4105  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  4106  	if err != nil {
  4107  		return nil, err
  4108  	}
  4109  	return dAtA[:n], nil
  4110  }
  4111  
  4112  func (m *TraceBytes) MarshalTo(dAtA []byte) (int, error) {
  4113  	size := m.Size()
  4114  	return m.MarshalToSizedBuffer(dAtA[:size])
  4115  }
  4116  
  4117  func (m *TraceBytes) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4118  	i := len(dAtA)
  4119  	_ = i
  4120  	var l int
  4121  	_ = l
  4122  	if len(m.Traces) > 0 {
  4123  		for iNdEx := len(m.Traces) - 1; iNdEx >= 0; iNdEx-- {
  4124  			i -= len(m.Traces[iNdEx])
  4125  			copy(dAtA[i:], m.Traces[iNdEx])
  4126  			i = encodeVarintTempo(dAtA, i, uint64(len(m.Traces[iNdEx])))
  4127  			i--
  4128  			dAtA[i] = 0xa
  4129  		}
  4130  	}
  4131  	return len(dAtA) - i, nil
  4132  }
  4133  
  4134  func (m *LinkSlice) Marshal() (dAtA []byte, err error) {
  4135  	size := m.Size()
  4136  	dAtA = make([]byte, size)
  4137  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  4138  	if err != nil {
  4139  		return nil, err
  4140  	}
  4141  	return dAtA[:n], nil
  4142  }
  4143  
  4144  func (m *LinkSlice) MarshalTo(dAtA []byte) (int, error) {
  4145  	size := m.Size()
  4146  	return m.MarshalToSizedBuffer(dAtA[:size])
  4147  }
  4148  
  4149  func (m *LinkSlice) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4150  	i := len(dAtA)
  4151  	_ = i
  4152  	var l int
  4153  	_ = l
  4154  	if len(m.Links) > 0 {
  4155  		for iNdEx := len(m.Links) - 1; iNdEx >= 0; iNdEx-- {
  4156  			{
  4157  				size, err := m.Links[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  4158  				if err != nil {
  4159  					return 0, err
  4160  				}
  4161  				i -= size
  4162  				i = encodeVarintTempo(dAtA, i, uint64(size))
  4163  			}
  4164  			i--
  4165  			dAtA[i] = 0xa
  4166  		}
  4167  	}
  4168  	return len(dAtA) - i, nil
  4169  }
  4170  
  4171  func (m *SpanMetricsRequest) Marshal() (dAtA []byte, err error) {
  4172  	size := m.Size()
  4173  	dAtA = make([]byte, size)
  4174  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  4175  	if err != nil {
  4176  		return nil, err
  4177  	}
  4178  	return dAtA[:n], nil
  4179  }
  4180  
  4181  func (m *SpanMetricsRequest) MarshalTo(dAtA []byte) (int, error) {
  4182  	size := m.Size()
  4183  	return m.MarshalToSizedBuffer(dAtA[:size])
  4184  }
  4185  
  4186  func (m *SpanMetricsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4187  	i := len(dAtA)
  4188  	_ = i
  4189  	var l int
  4190  	_ = l
  4191  	if m.End != 0 {
  4192  		i = encodeVarintTempo(dAtA, i, uint64(m.End))
  4193  		i--
  4194  		dAtA[i] = 0x28
  4195  	}
  4196  	if m.Start != 0 {
  4197  		i = encodeVarintTempo(dAtA, i, uint64(m.Start))
  4198  		i--
  4199  		dAtA[i] = 0x20
  4200  	}
  4201  	if m.Limit != 0 {
  4202  		i = encodeVarintTempo(dAtA, i, uint64(m.Limit))
  4203  		i--
  4204  		dAtA[i] = 0x18
  4205  	}
  4206  	if len(m.GroupBy) > 0 {
  4207  		i -= len(m.GroupBy)
  4208  		copy(dAtA[i:], m.GroupBy)
  4209  		i = encodeVarintTempo(dAtA, i, uint64(len(m.GroupBy)))
  4210  		i--
  4211  		dAtA[i] = 0x12
  4212  	}
  4213  	if len(m.Query) > 0 {
  4214  		i -= len(m.Query)
  4215  		copy(dAtA[i:], m.Query)
  4216  		i = encodeVarintTempo(dAtA, i, uint64(len(m.Query)))
  4217  		i--
  4218  		dAtA[i] = 0xa
  4219  	}
  4220  	return len(dAtA) - i, nil
  4221  }
  4222  
  4223  func (m *SpanMetricsSummaryRequest) Marshal() (dAtA []byte, err error) {
  4224  	size := m.Size()
  4225  	dAtA = make([]byte, size)
  4226  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  4227  	if err != nil {
  4228  		return nil, err
  4229  	}
  4230  	return dAtA[:n], nil
  4231  }
  4232  
  4233  func (m *SpanMetricsSummaryRequest) MarshalTo(dAtA []byte) (int, error) {
  4234  	size := m.Size()
  4235  	return m.MarshalToSizedBuffer(dAtA[:size])
  4236  }
  4237  
  4238  func (m *SpanMetricsSummaryRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4239  	i := len(dAtA)
  4240  	_ = i
  4241  	var l int
  4242  	_ = l
  4243  	if m.End != 0 {
  4244  		i = encodeVarintTempo(dAtA, i, uint64(m.End))
  4245  		i--
  4246  		dAtA[i] = 0x28
  4247  	}
  4248  	if m.Start != 0 {
  4249  		i = encodeVarintTempo(dAtA, i, uint64(m.Start))
  4250  		i--
  4251  		dAtA[i] = 0x20
  4252  	}
  4253  	if m.Limit != 0 {
  4254  		i = encodeVarintTempo(dAtA, i, uint64(m.Limit))
  4255  		i--
  4256  		dAtA[i] = 0x18
  4257  	}
  4258  	if len(m.GroupBy) > 0 {
  4259  		i -= len(m.GroupBy)
  4260  		copy(dAtA[i:], m.GroupBy)
  4261  		i = encodeVarintTempo(dAtA, i, uint64(len(m.GroupBy)))
  4262  		i--
  4263  		dAtA[i] = 0x12
  4264  	}
  4265  	if len(m.Query) > 0 {
  4266  		i -= len(m.Query)
  4267  		copy(dAtA[i:], m.Query)
  4268  		i = encodeVarintTempo(dAtA, i, uint64(len(m.Query)))
  4269  		i--
  4270  		dAtA[i] = 0xa
  4271  	}
  4272  	return len(dAtA) - i, nil
  4273  }
  4274  
  4275  func (m *SpanMetricsResponse) Marshal() (dAtA []byte, err error) {
  4276  	size := m.Size()
  4277  	dAtA = make([]byte, size)
  4278  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  4279  	if err != nil {
  4280  		return nil, err
  4281  	}
  4282  	return dAtA[:n], nil
  4283  }
  4284  
  4285  func (m *SpanMetricsResponse) MarshalTo(dAtA []byte) (int, error) {
  4286  	size := m.Size()
  4287  	return m.MarshalToSizedBuffer(dAtA[:size])
  4288  }
  4289  
  4290  func (m *SpanMetricsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4291  	i := len(dAtA)
  4292  	_ = i
  4293  	var l int
  4294  	_ = l
  4295  	if len(m.Metrics) > 0 {
  4296  		for iNdEx := len(m.Metrics) - 1; iNdEx >= 0; iNdEx-- {
  4297  			{
  4298  				size, err := m.Metrics[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  4299  				if err != nil {
  4300  					return 0, err
  4301  				}
  4302  				i -= size
  4303  				i = encodeVarintTempo(dAtA, i, uint64(size))
  4304  			}
  4305  			i--
  4306  			dAtA[i] = 0x22
  4307  		}
  4308  	}
  4309  	if m.ErrorSpanCount != 0 {
  4310  		i = encodeVarintTempo(dAtA, i, uint64(m.ErrorSpanCount))
  4311  		i--
  4312  		dAtA[i] = 0x18
  4313  	}
  4314  	if m.SpanCount != 0 {
  4315  		i = encodeVarintTempo(dAtA, i, uint64(m.SpanCount))
  4316  		i--
  4317  		dAtA[i] = 0x10
  4318  	}
  4319  	if m.Estimated {
  4320  		i--
  4321  		if m.Estimated {
  4322  			dAtA[i] = 1
  4323  		} else {
  4324  			dAtA[i] = 0
  4325  		}
  4326  		i--
  4327  		dAtA[i] = 0x8
  4328  	}
  4329  	return len(dAtA) - i, nil
  4330  }
  4331  
  4332  func (m *RawHistogram) Marshal() (dAtA []byte, err error) {
  4333  	size := m.Size()
  4334  	dAtA = make([]byte, size)
  4335  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  4336  	if err != nil {
  4337  		return nil, err
  4338  	}
  4339  	return dAtA[:n], nil
  4340  }
  4341  
  4342  func (m *RawHistogram) MarshalTo(dAtA []byte) (int, error) {
  4343  	size := m.Size()
  4344  	return m.MarshalToSizedBuffer(dAtA[:size])
  4345  }
  4346  
  4347  func (m *RawHistogram) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4348  	i := len(dAtA)
  4349  	_ = i
  4350  	var l int
  4351  	_ = l
  4352  	if m.Count != 0 {
  4353  		i = encodeVarintTempo(dAtA, i, uint64(m.Count))
  4354  		i--
  4355  		dAtA[i] = 0x10
  4356  	}
  4357  	if m.Bucket != 0 {
  4358  		i = encodeVarintTempo(dAtA, i, uint64(m.Bucket))
  4359  		i--
  4360  		dAtA[i] = 0x8
  4361  	}
  4362  	return len(dAtA) - i, nil
  4363  }
  4364  
  4365  func (m *KeyValue) Marshal() (dAtA []byte, err error) {
  4366  	size := m.Size()
  4367  	dAtA = make([]byte, size)
  4368  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  4369  	if err != nil {
  4370  		return nil, err
  4371  	}
  4372  	return dAtA[:n], nil
  4373  }
  4374  
  4375  func (m *KeyValue) MarshalTo(dAtA []byte) (int, error) {
  4376  	size := m.Size()
  4377  	return m.MarshalToSizedBuffer(dAtA[:size])
  4378  }
  4379  
  4380  func (m *KeyValue) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4381  	i := len(dAtA)
  4382  	_ = i
  4383  	var l int
  4384  	_ = l
  4385  	if m.Value != nil {
  4386  		{
  4387  			size, err := m.Value.MarshalToSizedBuffer(dAtA[:i])
  4388  			if err != nil {
  4389  				return 0, err
  4390  			}
  4391  			i -= size
  4392  			i = encodeVarintTempo(dAtA, i, uint64(size))
  4393  		}
  4394  		i--
  4395  		dAtA[i] = 0x12
  4396  	}
  4397  	if len(m.Key) > 0 {
  4398  		i -= len(m.Key)
  4399  		copy(dAtA[i:], m.Key)
  4400  		i = encodeVarintTempo(dAtA, i, uint64(len(m.Key)))
  4401  		i--
  4402  		dAtA[i] = 0xa
  4403  	}
  4404  	return len(dAtA) - i, nil
  4405  }
  4406  
  4407  func (m *SpanMetrics) Marshal() (dAtA []byte, err error) {
  4408  	size := m.Size()
  4409  	dAtA = make([]byte, size)
  4410  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  4411  	if err != nil {
  4412  		return nil, err
  4413  	}
  4414  	return dAtA[:n], nil
  4415  }
  4416  
  4417  func (m *SpanMetrics) MarshalTo(dAtA []byte) (int, error) {
  4418  	size := m.Size()
  4419  	return m.MarshalToSizedBuffer(dAtA[:size])
  4420  }
  4421  
  4422  func (m *SpanMetrics) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4423  	i := len(dAtA)
  4424  	_ = i
  4425  	var l int
  4426  	_ = l
  4427  	if m.Errors != 0 {
  4428  		i = encodeVarintTempo(dAtA, i, uint64(m.Errors))
  4429  		i--
  4430  		dAtA[i] = 0x18
  4431  	}
  4432  	if len(m.Series) > 0 {
  4433  		for iNdEx := len(m.Series) - 1; iNdEx >= 0; iNdEx-- {
  4434  			{
  4435  				size, err := m.Series[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  4436  				if err != nil {
  4437  					return 0, err
  4438  				}
  4439  				i -= size
  4440  				i = encodeVarintTempo(dAtA, i, uint64(size))
  4441  			}
  4442  			i--
  4443  			dAtA[i] = 0x12
  4444  		}
  4445  	}
  4446  	if len(m.LatencyHistogram) > 0 {
  4447  		for iNdEx := len(m.LatencyHistogram) - 1; iNdEx >= 0; iNdEx-- {
  4448  			{
  4449  				size, err := m.LatencyHistogram[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  4450  				if err != nil {
  4451  					return 0, err
  4452  				}
  4453  				i -= size
  4454  				i = encodeVarintTempo(dAtA, i, uint64(size))
  4455  			}
  4456  			i--
  4457  			dAtA[i] = 0xa
  4458  		}
  4459  	}
  4460  	return len(dAtA) - i, nil
  4461  }
  4462  
  4463  func (m *SpanMetricsSummary) Marshal() (dAtA []byte, err error) {
  4464  	size := m.Size()
  4465  	dAtA = make([]byte, size)
  4466  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  4467  	if err != nil {
  4468  		return nil, err
  4469  	}
  4470  	return dAtA[:n], nil
  4471  }
  4472  
  4473  func (m *SpanMetricsSummary) MarshalTo(dAtA []byte) (int, error) {
  4474  	size := m.Size()
  4475  	return m.MarshalToSizedBuffer(dAtA[:size])
  4476  }
  4477  
  4478  func (m *SpanMetricsSummary) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4479  	i := len(dAtA)
  4480  	_ = i
  4481  	var l int
  4482  	_ = l
  4483  	if m.P50 != 0 {
  4484  		i = encodeVarintTempo(dAtA, i, uint64(m.P50))
  4485  		i--
  4486  		dAtA[i] = 0x38
  4487  	}
  4488  	if m.P90 != 0 {
  4489  		i = encodeVarintTempo(dAtA, i, uint64(m.P90))
  4490  		i--
  4491  		dAtA[i] = 0x30
  4492  	}
  4493  	if m.P95 != 0 {
  4494  		i = encodeVarintTempo(dAtA, i, uint64(m.P95))
  4495  		i--
  4496  		dAtA[i] = 0x28
  4497  	}
  4498  	if m.P99 != 0 {
  4499  		i = encodeVarintTempo(dAtA, i, uint64(m.P99))
  4500  		i--
  4501  		dAtA[i] = 0x20
  4502  	}
  4503  	if len(m.Series) > 0 {
  4504  		for iNdEx := len(m.Series) - 1; iNdEx >= 0; iNdEx-- {
  4505  			{
  4506  				size, err := m.Series[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  4507  				if err != nil {
  4508  					return 0, err
  4509  				}
  4510  				i -= size
  4511  				i = encodeVarintTempo(dAtA, i, uint64(size))
  4512  			}
  4513  			i--
  4514  			dAtA[i] = 0x1a
  4515  		}
  4516  	}
  4517  	if m.ErrorSpanCount != 0 {
  4518  		i = encodeVarintTempo(dAtA, i, uint64(m.ErrorSpanCount))
  4519  		i--
  4520  		dAtA[i] = 0x10
  4521  	}
  4522  	if m.SpanCount != 0 {
  4523  		i = encodeVarintTempo(dAtA, i, uint64(m.SpanCount))
  4524  		i--
  4525  		dAtA[i] = 0x8
  4526  	}
  4527  	return len(dAtA) - i, nil
  4528  }
  4529  
  4530  func (m *SpanMetricsSummaryResponse) Marshal() (dAtA []byte, err error) {
  4531  	size := m.Size()
  4532  	dAtA = make([]byte, size)
  4533  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  4534  	if err != nil {
  4535  		return nil, err
  4536  	}
  4537  	return dAtA[:n], nil
  4538  }
  4539  
  4540  func (m *SpanMetricsSummaryResponse) MarshalTo(dAtA []byte) (int, error) {
  4541  	size := m.Size()
  4542  	return m.MarshalToSizedBuffer(dAtA[:size])
  4543  }
  4544  
  4545  func (m *SpanMetricsSummaryResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4546  	i := len(dAtA)
  4547  	_ = i
  4548  	var l int
  4549  	_ = l
  4550  	if len(m.Summaries) > 0 {
  4551  		for iNdEx := len(m.Summaries) - 1; iNdEx >= 0; iNdEx-- {
  4552  			{
  4553  				size, err := m.Summaries[iNdEx].MarshalToSizedBuffer(dAtA[:i])
  4554  				if err != nil {
  4555  					return 0, err
  4556  				}
  4557  				i -= size
  4558  				i = encodeVarintTempo(dAtA, i, uint64(size))
  4559  			}
  4560  			i--
  4561  			dAtA[i] = 0xa
  4562  		}
  4563  	}
  4564  	return len(dAtA) - i, nil
  4565  }
  4566  
  4567  func (m *TraceQLStatic) Marshal() (dAtA []byte, err error) {
  4568  	size := m.Size()
  4569  	dAtA = make([]byte, size)
  4570  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
  4571  	if err != nil {
  4572  		return nil, err
  4573  	}
  4574  	return dAtA[:n], nil
  4575  }
  4576  
  4577  func (m *TraceQLStatic) MarshalTo(dAtA []byte) (int, error) {
  4578  	size := m.Size()
  4579  	return m.MarshalToSizedBuffer(dAtA[:size])
  4580  }
  4581  
  4582  func (m *TraceQLStatic) MarshalToSizedBuffer(dAtA []byte) (int, error) {
  4583  	i := len(dAtA)
  4584  	_ = i
  4585  	var l int
  4586  	_ = l
  4587  	if m.Kind != 0 {
  4588  		i = encodeVarintTempo(dAtA, i, uint64(m.Kind))
  4589  		i--
  4590  		dAtA[i] = 0x40
  4591  	}
  4592  	if m.Status != 0 {
  4593  		i = encodeVarintTempo(dAtA, i, uint64(m.Status))
  4594  		i--
  4595  		dAtA[i] = 0x38
  4596  	}
  4597  	if m.D != 0 {
  4598  		i = encodeVarintTempo(dAtA, i, uint64(m.D))
  4599  		i--
  4600  		dAtA[i] = 0x30
  4601  	}
  4602  	if m.B {
  4603  		i--
  4604  		if m.B {
  4605  			dAtA[i] = 1
  4606  		} else {
  4607  			dAtA[i] = 0
  4608  		}
  4609  		i--
  4610  		dAtA[i] = 0x28
  4611  	}
  4612  	if len(m.S) > 0 {
  4613  		i -= len(m.S)
  4614  		copy(dAtA[i:], m.S)
  4615  		i = encodeVarintTempo(dAtA, i, uint64(len(m.S)))
  4616  		i--
  4617  		dAtA[i] = 0x22
  4618  	}
  4619  	if m.F != 0 {
  4620  		i -= 8
  4621  		encoding_binary.LittleEndian.PutUint64(dAtA[i:], uint64(math.Float64bits(float64(m.F))))
  4622  		i--
  4623  		dAtA[i] = 0x19
  4624  	}
  4625  	if m.N != 0 {
  4626  		i = encodeVarintTempo(dAtA, i, uint64(m.N))
  4627  		i--
  4628  		dAtA[i] = 0x10
  4629  	}
  4630  	if m.Type != 0 {
  4631  		i = encodeVarintTempo(dAtA, i, uint64(m.Type))
  4632  		i--
  4633  		dAtA[i] = 0x8
  4634  	}
  4635  	return len(dAtA) - i, nil
  4636  }
  4637  
  4638  func encodeVarintTempo(dAtA []byte, offset int, v uint64) int {
  4639  	offset -= sovTempo(v)
  4640  	base := offset
  4641  	for v >= 1<<7 {
  4642  		dAtA[offset] = uint8(v&0x7f | 0x80)
  4643  		v >>= 7
  4644  		offset++
  4645  	}
  4646  	dAtA[offset] = uint8(v)
  4647  	return base
  4648  }
  4649  func (m *TraceByIDRequest) Size() (n int) {
  4650  	if m == nil {
  4651  		return 0
  4652  	}
  4653  	var l int
  4654  	_ = l
  4655  	l = len(m.TraceID)
  4656  	if l > 0 {
  4657  		n += 1 + l + sovTempo(uint64(l))
  4658  	}
  4659  	l = len(m.BlockStart)
  4660  	if l > 0 {
  4661  		n += 1 + l + sovTempo(uint64(l))
  4662  	}
  4663  	l = len(m.BlockEnd)
  4664  	if l > 0 {
  4665  		n += 1 + l + sovTempo(uint64(l))
  4666  	}
  4667  	l = len(m.QueryMode)
  4668  	if l > 0 {
  4669  		n += 1 + l + sovTempo(uint64(l))
  4670  	}
  4671  	return n
  4672  }
  4673  
  4674  func (m *TraceByIDResponse) Size() (n int) {
  4675  	if m == nil {
  4676  		return 0
  4677  	}
  4678  	var l int
  4679  	_ = l
  4680  	if m.Trace != nil {
  4681  		l = m.Trace.Size()
  4682  		n += 1 + l + sovTempo(uint64(l))
  4683  	}
  4684  	if m.Metrics != nil {
  4685  		l = m.Metrics.Size()
  4686  		n += 1 + l + sovTempo(uint64(l))
  4687  	}
  4688  	return n
  4689  }
  4690  
  4691  func (m *TraceByIDMetrics) Size() (n int) {
  4692  	if m == nil {
  4693  		return 0
  4694  	}
  4695  	var l int
  4696  	_ = l
  4697  	return n
  4698  }
  4699  
  4700  func (m *SearchRequest) Size() (n int) {
  4701  	if m == nil {
  4702  		return 0
  4703  	}
  4704  	var l int
  4705  	_ = l
  4706  	if len(m.Tags) > 0 {
  4707  		for k, v := range m.Tags {
  4708  			_ = k
  4709  			_ = v
  4710  			mapEntrySize := 1 + len(k) + sovTempo(uint64(len(k))) + 1 + len(v) + sovTempo(uint64(len(v)))
  4711  			n += mapEntrySize + 1 + sovTempo(uint64(mapEntrySize))
  4712  		}
  4713  	}
  4714  	if m.MinDurationMs != 0 {
  4715  		n += 1 + sovTempo(uint64(m.MinDurationMs))
  4716  	}
  4717  	if m.MaxDurationMs != 0 {
  4718  		n += 1 + sovTempo(uint64(m.MaxDurationMs))
  4719  	}
  4720  	if m.Limit != 0 {
  4721  		n += 1 + sovTempo(uint64(m.Limit))
  4722  	}
  4723  	if m.Start != 0 {
  4724  		n += 1 + sovTempo(uint64(m.Start))
  4725  	}
  4726  	if m.End != 0 {
  4727  		n += 1 + sovTempo(uint64(m.End))
  4728  	}
  4729  	l = len(m.Query)
  4730  	if l > 0 {
  4731  		n += 1 + l + sovTempo(uint64(l))
  4732  	}
  4733  	if m.SpansPerSpanSet != 0 {
  4734  		n += 1 + sovTempo(uint64(m.SpansPerSpanSet))
  4735  	}
  4736  	return n
  4737  }
  4738  
  4739  func (m *SearchBlockRequest) Size() (n int) {
  4740  	if m == nil {
  4741  		return 0
  4742  	}
  4743  	var l int
  4744  	_ = l
  4745  	if m.SearchReq != nil {
  4746  		l = m.SearchReq.Size()
  4747  		n += 1 + l + sovTempo(uint64(l))
  4748  	}
  4749  	l = len(m.BlockID)
  4750  	if l > 0 {
  4751  		n += 1 + l + sovTempo(uint64(l))
  4752  	}
  4753  	if m.StartPage != 0 {
  4754  		n += 1 + sovTempo(uint64(m.StartPage))
  4755  	}
  4756  	if m.PagesToSearch != 0 {
  4757  		n += 1 + sovTempo(uint64(m.PagesToSearch))
  4758  	}
  4759  	l = len(m.Encoding)
  4760  	if l > 0 {
  4761  		n += 1 + l + sovTempo(uint64(l))
  4762  	}
  4763  	if m.IndexPageSize != 0 {
  4764  		n += 1 + sovTempo(uint64(m.IndexPageSize))
  4765  	}
  4766  	if m.TotalRecords != 0 {
  4767  		n += 1 + sovTempo(uint64(m.TotalRecords))
  4768  	}
  4769  	l = len(m.DataEncoding)
  4770  	if l > 0 {
  4771  		n += 1 + l + sovTempo(uint64(l))
  4772  	}
  4773  	l = len(m.Version)
  4774  	if l > 0 {
  4775  		n += 1 + l + sovTempo(uint64(l))
  4776  	}
  4777  	if m.Size_ != 0 {
  4778  		n += 1 + sovTempo(uint64(m.Size_))
  4779  	}
  4780  	if m.FooterSize != 0 {
  4781  		n += 1 + sovTempo(uint64(m.FooterSize))
  4782  	}
  4783  	if len(m.DedicatedColumns) > 0 {
  4784  		for _, e := range m.DedicatedColumns {
  4785  			l = e.Size()
  4786  			n += 1 + l + sovTempo(uint64(l))
  4787  		}
  4788  	}
  4789  	return n
  4790  }
  4791  
  4792  func (m *DedicatedColumn) Size() (n int) {
  4793  	if m == nil {
  4794  		return 0
  4795  	}
  4796  	var l int
  4797  	_ = l
  4798  	if m.Type != 0 {
  4799  		n += 1 + sovTempo(uint64(m.Type))
  4800  	}
  4801  	l = len(m.Name)
  4802  	if l > 0 {
  4803  		n += 1 + l + sovTempo(uint64(l))
  4804  	}
  4805  	if m.Scope != 0 {
  4806  		n += 1 + sovTempo(uint64(m.Scope))
  4807  	}
  4808  	return n
  4809  }
  4810  
  4811  func (m *SearchResponse) Size() (n int) {
  4812  	if m == nil {
  4813  		return 0
  4814  	}
  4815  	var l int
  4816  	_ = l
  4817  	if len(m.Traces) > 0 {
  4818  		for _, e := range m.Traces {
  4819  			l = e.Size()
  4820  			n += 1 + l + sovTempo(uint64(l))
  4821  		}
  4822  	}
  4823  	if m.Metrics != nil {
  4824  		l = m.Metrics.Size()
  4825  		n += 1 + l + sovTempo(uint64(l))
  4826  	}
  4827  	return n
  4828  }
  4829  
  4830  func (m *TraceSearchMetadata) Size() (n int) {
  4831  	if m == nil {
  4832  		return 0
  4833  	}
  4834  	var l int
  4835  	_ = l
  4836  	l = len(m.TraceID)
  4837  	if l > 0 {
  4838  		n += 1 + l + sovTempo(uint64(l))
  4839  	}
  4840  	l = len(m.RootServiceName)
  4841  	if l > 0 {
  4842  		n += 1 + l + sovTempo(uint64(l))
  4843  	}
  4844  	l = len(m.RootTraceName)
  4845  	if l > 0 {
  4846  		n += 1 + l + sovTempo(uint64(l))
  4847  	}
  4848  	if m.StartTimeUnixNano != 0 {
  4849  		n += 1 + sovTempo(uint64(m.StartTimeUnixNano))
  4850  	}
  4851  	if m.DurationMs != 0 {
  4852  		n += 1 + sovTempo(uint64(m.DurationMs))
  4853  	}
  4854  	if m.SpanSet != nil {
  4855  		l = m.SpanSet.Size()
  4856  		n += 1 + l + sovTempo(uint64(l))
  4857  	}
  4858  	if len(m.SpanSets) > 0 {
  4859  		for _, e := range m.SpanSets {
  4860  			l = e.Size()
  4861  			n += 1 + l + sovTempo(uint64(l))
  4862  		}
  4863  	}
  4864  	return n
  4865  }
  4866  
  4867  func (m *SpanSet) Size() (n int) {
  4868  	if m == nil {
  4869  		return 0
  4870  	}
  4871  	var l int
  4872  	_ = l
  4873  	if len(m.Spans) > 0 {
  4874  		for _, e := range m.Spans {
  4875  			l = e.Size()
  4876  			n += 1 + l + sovTempo(uint64(l))
  4877  		}
  4878  	}
  4879  	if m.Matched != 0 {
  4880  		n += 1 + sovTempo(uint64(m.Matched))
  4881  	}
  4882  	if len(m.Attributes) > 0 {
  4883  		for _, e := range m.Attributes {
  4884  			l = e.Size()
  4885  			n += 1 + l + sovTempo(uint64(l))
  4886  		}
  4887  	}
  4888  	return n
  4889  }
  4890  
  4891  func (m *Span) Size() (n int) {
  4892  	if m == nil {
  4893  		return 0
  4894  	}
  4895  	var l int
  4896  	_ = l
  4897  	l = len(m.SpanID)
  4898  	if l > 0 {
  4899  		n += 1 + l + sovTempo(uint64(l))
  4900  	}
  4901  	l = len(m.Name)
  4902  	if l > 0 {
  4903  		n += 1 + l + sovTempo(uint64(l))
  4904  	}
  4905  	if m.StartTimeUnixNano != 0 {
  4906  		n += 1 + sovTempo(uint64(m.StartTimeUnixNano))
  4907  	}
  4908  	if m.DurationNanos != 0 {
  4909  		n += 1 + sovTempo(uint64(m.DurationNanos))
  4910  	}
  4911  	if len(m.Attributes) > 0 {
  4912  		for _, e := range m.Attributes {
  4913  			l = e.Size()
  4914  			n += 1 + l + sovTempo(uint64(l))
  4915  		}
  4916  	}
  4917  	return n
  4918  }
  4919  
  4920  func (m *SearchMetrics) Size() (n int) {
  4921  	if m == nil {
  4922  		return 0
  4923  	}
  4924  	var l int
  4925  	_ = l
  4926  	if m.InspectedTraces != 0 {
  4927  		n += 1 + sovTempo(uint64(m.InspectedTraces))
  4928  	}
  4929  	if m.InspectedBytes != 0 {
  4930  		n += 1 + sovTempo(uint64(m.InspectedBytes))
  4931  	}
  4932  	if m.TotalBlocks != 0 {
  4933  		n += 1 + sovTempo(uint64(m.TotalBlocks))
  4934  	}
  4935  	if m.CompletedJobs != 0 {
  4936  		n += 1 + sovTempo(uint64(m.CompletedJobs))
  4937  	}
  4938  	if m.TotalJobs != 0 {
  4939  		n += 1 + sovTempo(uint64(m.TotalJobs))
  4940  	}
  4941  	if m.TotalBlockBytes != 0 {
  4942  		n += 1 + sovTempo(uint64(m.TotalBlockBytes))
  4943  	}
  4944  	return n
  4945  }
  4946  
  4947  func (m *SearchTagsRequest) Size() (n int) {
  4948  	if m == nil {
  4949  		return 0
  4950  	}
  4951  	var l int
  4952  	_ = l
  4953  	l = len(m.Scope)
  4954  	if l > 0 {
  4955  		n += 1 + l + sovTempo(uint64(l))
  4956  	}
  4957  	return n
  4958  }
  4959  
  4960  func (m *SearchTagsResponse) Size() (n int) {
  4961  	if m == nil {
  4962  		return 0
  4963  	}
  4964  	var l int
  4965  	_ = l
  4966  	if len(m.TagNames) > 0 {
  4967  		for _, s := range m.TagNames {
  4968  			l = len(s)
  4969  			n += 1 + l + sovTempo(uint64(l))
  4970  		}
  4971  	}
  4972  	return n
  4973  }
  4974  
  4975  func (m *SearchTagsV2Response) Size() (n int) {
  4976  	if m == nil {
  4977  		return 0
  4978  	}
  4979  	var l int
  4980  	_ = l
  4981  	if len(m.Scopes) > 0 {
  4982  		for _, e := range m.Scopes {
  4983  			l = e.Size()
  4984  			n += 1 + l + sovTempo(uint64(l))
  4985  		}
  4986  	}
  4987  	return n
  4988  }
  4989  
  4990  func (m *SearchTagsV2Scope) Size() (n int) {
  4991  	if m == nil {
  4992  		return 0
  4993  	}
  4994  	var l int
  4995  	_ = l
  4996  	l = len(m.Name)
  4997  	if l > 0 {
  4998  		n += 1 + l + sovTempo(uint64(l))
  4999  	}
  5000  	if len(m.Tags) > 0 {
  5001  		for _, s := range m.Tags {
  5002  			l = len(s)
  5003  			n += 1 + l + sovTempo(uint64(l))
  5004  		}
  5005  	}
  5006  	return n
  5007  }
  5008  
  5009  func (m *SearchTagValuesRequest) Size() (n int) {
  5010  	if m == nil {
  5011  		return 0
  5012  	}
  5013  	var l int
  5014  	_ = l
  5015  	l = len(m.TagName)
  5016  	if l > 0 {
  5017  		n += 1 + l + sovTempo(uint64(l))
  5018  	}
  5019  	l = len(m.Query)
  5020  	if l > 0 {
  5021  		n += 1 + l + sovTempo(uint64(l))
  5022  	}
  5023  	return n
  5024  }
  5025  
  5026  func (m *SearchTagValuesResponse) Size() (n int) {
  5027  	if m == nil {
  5028  		return 0
  5029  	}
  5030  	var l int
  5031  	_ = l
  5032  	if len(m.TagValues) > 0 {
  5033  		for _, s := range m.TagValues {
  5034  			l = len(s)
  5035  			n += 1 + l + sovTempo(uint64(l))
  5036  		}
  5037  	}
  5038  	return n
  5039  }
  5040  
  5041  func (m *TagValue) Size() (n int) {
  5042  	if m == nil {
  5043  		return 0
  5044  	}
  5045  	var l int
  5046  	_ = l
  5047  	l = len(m.Type)
  5048  	if l > 0 {
  5049  		n += 1 + l + sovTempo(uint64(l))
  5050  	}
  5051  	l = len(m.Value)
  5052  	if l > 0 {
  5053  		n += 1 + l + sovTempo(uint64(l))
  5054  	}
  5055  	return n
  5056  }
  5057  
  5058  func (m *SearchTagValuesV2Response) Size() (n int) {
  5059  	if m == nil {
  5060  		return 0
  5061  	}
  5062  	var l int
  5063  	_ = l
  5064  	if len(m.TagValues) > 0 {
  5065  		for _, e := range m.TagValues {
  5066  			l = e.Size()
  5067  			n += 1 + l + sovTempo(uint64(l))
  5068  		}
  5069  	}
  5070  	return n
  5071  }
  5072  
  5073  func (m *Trace) Size() (n int) {
  5074  	if m == nil {
  5075  		return 0
  5076  	}
  5077  	var l int
  5078  	_ = l
  5079  	if len(m.Batches) > 0 {
  5080  		for _, e := range m.Batches {
  5081  			l = e.Size()
  5082  			n += 1 + l + sovTempo(uint64(l))
  5083  		}
  5084  	}
  5085  	return n
  5086  }
  5087  
  5088  func (m *PushResponse) Size() (n int) {
  5089  	if m == nil {
  5090  		return 0
  5091  	}
  5092  	var l int
  5093  	_ = l
  5094  	return n
  5095  }
  5096  
  5097  func (m *PushBytesRequest) Size() (n int) {
  5098  	if m == nil {
  5099  		return 0
  5100  	}
  5101  	var l int
  5102  	_ = l
  5103  	if len(m.Traces) > 0 {
  5104  		for _, e := range m.Traces {
  5105  			l = e.Size()
  5106  			n += 1 + l + sovTempo(uint64(l))
  5107  		}
  5108  	}
  5109  	if len(m.Ids) > 0 {
  5110  		for _, e := range m.Ids {
  5111  			l = e.Size()
  5112  			n += 1 + l + sovTempo(uint64(l))
  5113  		}
  5114  	}
  5115  	if len(m.SearchData) > 0 {
  5116  		for _, e := range m.SearchData {
  5117  			l = e.Size()
  5118  			n += 1 + l + sovTempo(uint64(l))
  5119  		}
  5120  	}
  5121  	return n
  5122  }
  5123  
  5124  func (m *PushSpansRequest) Size() (n int) {
  5125  	if m == nil {
  5126  		return 0
  5127  	}
  5128  	var l int
  5129  	_ = l
  5130  	if len(m.Batches) > 0 {
  5131  		for _, e := range m.Batches {
  5132  			l = e.Size()
  5133  			n += 1 + l + sovTempo(uint64(l))
  5134  		}
  5135  	}
  5136  	return n
  5137  }
  5138  
  5139  func (m *TraceBytes) Size() (n int) {
  5140  	if m == nil {
  5141  		return 0
  5142  	}
  5143  	var l int
  5144  	_ = l
  5145  	if len(m.Traces) > 0 {
  5146  		for _, b := range m.Traces {
  5147  			l = len(b)
  5148  			n += 1 + l + sovTempo(uint64(l))
  5149  		}
  5150  	}
  5151  	return n
  5152  }
  5153  
  5154  func (m *LinkSlice) Size() (n int) {
  5155  	if m == nil {
  5156  		return 0
  5157  	}
  5158  	var l int
  5159  	_ = l
  5160  	if len(m.Links) > 0 {
  5161  		for _, e := range m.Links {
  5162  			l = e.Size()
  5163  			n += 1 + l + sovTempo(uint64(l))
  5164  		}
  5165  	}
  5166  	return n
  5167  }
  5168  
  5169  func (m *SpanMetricsRequest) Size() (n int) {
  5170  	if m == nil {
  5171  		return 0
  5172  	}
  5173  	var l int
  5174  	_ = l
  5175  	l = len(m.Query)
  5176  	if l > 0 {
  5177  		n += 1 + l + sovTempo(uint64(l))
  5178  	}
  5179  	l = len(m.GroupBy)
  5180  	if l > 0 {
  5181  		n += 1 + l + sovTempo(uint64(l))
  5182  	}
  5183  	if m.Limit != 0 {
  5184  		n += 1 + sovTempo(uint64(m.Limit))
  5185  	}
  5186  	if m.Start != 0 {
  5187  		n += 1 + sovTempo(uint64(m.Start))
  5188  	}
  5189  	if m.End != 0 {
  5190  		n += 1 + sovTempo(uint64(m.End))
  5191  	}
  5192  	return n
  5193  }
  5194  
  5195  func (m *SpanMetricsSummaryRequest) Size() (n int) {
  5196  	if m == nil {
  5197  		return 0
  5198  	}
  5199  	var l int
  5200  	_ = l
  5201  	l = len(m.Query)
  5202  	if l > 0 {
  5203  		n += 1 + l + sovTempo(uint64(l))
  5204  	}
  5205  	l = len(m.GroupBy)
  5206  	if l > 0 {
  5207  		n += 1 + l + sovTempo(uint64(l))
  5208  	}
  5209  	if m.Limit != 0 {
  5210  		n += 1 + sovTempo(uint64(m.Limit))
  5211  	}
  5212  	if m.Start != 0 {
  5213  		n += 1 + sovTempo(uint64(m.Start))
  5214  	}
  5215  	if m.End != 0 {
  5216  		n += 1 + sovTempo(uint64(m.End))
  5217  	}
  5218  	return n
  5219  }
  5220  
  5221  func (m *SpanMetricsResponse) Size() (n int) {
  5222  	if m == nil {
  5223  		return 0
  5224  	}
  5225  	var l int
  5226  	_ = l
  5227  	if m.Estimated {
  5228  		n += 2
  5229  	}
  5230  	if m.SpanCount != 0 {
  5231  		n += 1 + sovTempo(uint64(m.SpanCount))
  5232  	}
  5233  	if m.ErrorSpanCount != 0 {
  5234  		n += 1 + sovTempo(uint64(m.ErrorSpanCount))
  5235  	}
  5236  	if len(m.Metrics) > 0 {
  5237  		for _, e := range m.Metrics {
  5238  			l = e.Size()
  5239  			n += 1 + l + sovTempo(uint64(l))
  5240  		}
  5241  	}
  5242  	return n
  5243  }
  5244  
  5245  func (m *RawHistogram) Size() (n int) {
  5246  	if m == nil {
  5247  		return 0
  5248  	}
  5249  	var l int
  5250  	_ = l
  5251  	if m.Bucket != 0 {
  5252  		n += 1 + sovTempo(uint64(m.Bucket))
  5253  	}
  5254  	if m.Count != 0 {
  5255  		n += 1 + sovTempo(uint64(m.Count))
  5256  	}
  5257  	return n
  5258  }
  5259  
  5260  func (m *KeyValue) Size() (n int) {
  5261  	if m == nil {
  5262  		return 0
  5263  	}
  5264  	var l int
  5265  	_ = l
  5266  	l = len(m.Key)
  5267  	if l > 0 {
  5268  		n += 1 + l + sovTempo(uint64(l))
  5269  	}
  5270  	if m.Value != nil {
  5271  		l = m.Value.Size()
  5272  		n += 1 + l + sovTempo(uint64(l))
  5273  	}
  5274  	return n
  5275  }
  5276  
  5277  func (m *SpanMetrics) Size() (n int) {
  5278  	if m == nil {
  5279  		return 0
  5280  	}
  5281  	var l int
  5282  	_ = l
  5283  	if len(m.LatencyHistogram) > 0 {
  5284  		for _, e := range m.LatencyHistogram {
  5285  			l = e.Size()
  5286  			n += 1 + l + sovTempo(uint64(l))
  5287  		}
  5288  	}
  5289  	if len(m.Series) > 0 {
  5290  		for _, e := range m.Series {
  5291  			l = e.Size()
  5292  			n += 1 + l + sovTempo(uint64(l))
  5293  		}
  5294  	}
  5295  	if m.Errors != 0 {
  5296  		n += 1 + sovTempo(uint64(m.Errors))
  5297  	}
  5298  	return n
  5299  }
  5300  
  5301  func (m *SpanMetricsSummary) Size() (n int) {
  5302  	if m == nil {
  5303  		return 0
  5304  	}
  5305  	var l int
  5306  	_ = l
  5307  	if m.SpanCount != 0 {
  5308  		n += 1 + sovTempo(uint64(m.SpanCount))
  5309  	}
  5310  	if m.ErrorSpanCount != 0 {
  5311  		n += 1 + sovTempo(uint64(m.ErrorSpanCount))
  5312  	}
  5313  	if len(m.Series) > 0 {
  5314  		for _, e := range m.Series {
  5315  			l = e.Size()
  5316  			n += 1 + l + sovTempo(uint64(l))
  5317  		}
  5318  	}
  5319  	if m.P99 != 0 {
  5320  		n += 1 + sovTempo(uint64(m.P99))
  5321  	}
  5322  	if m.P95 != 0 {
  5323  		n += 1 + sovTempo(uint64(m.P95))
  5324  	}
  5325  	if m.P90 != 0 {
  5326  		n += 1 + sovTempo(uint64(m.P90))
  5327  	}
  5328  	if m.P50 != 0 {
  5329  		n += 1 + sovTempo(uint64(m.P50))
  5330  	}
  5331  	return n
  5332  }
  5333  
  5334  func (m *SpanMetricsSummaryResponse) Size() (n int) {
  5335  	if m == nil {
  5336  		return 0
  5337  	}
  5338  	var l int
  5339  	_ = l
  5340  	if len(m.Summaries) > 0 {
  5341  		for _, e := range m.Summaries {
  5342  			l = e.Size()
  5343  			n += 1 + l + sovTempo(uint64(l))
  5344  		}
  5345  	}
  5346  	return n
  5347  }
  5348  
  5349  func (m *TraceQLStatic) Size() (n int) {
  5350  	if m == nil {
  5351  		return 0
  5352  	}
  5353  	var l int
  5354  	_ = l
  5355  	if m.Type != 0 {
  5356  		n += 1 + sovTempo(uint64(m.Type))
  5357  	}
  5358  	if m.N != 0 {
  5359  		n += 1 + sovTempo(uint64(m.N))
  5360  	}
  5361  	if m.F != 0 {
  5362  		n += 9
  5363  	}
  5364  	l = len(m.S)
  5365  	if l > 0 {
  5366  		n += 1 + l + sovTempo(uint64(l))
  5367  	}
  5368  	if m.B {
  5369  		n += 2
  5370  	}
  5371  	if m.D != 0 {
  5372  		n += 1 + sovTempo(uint64(m.D))
  5373  	}
  5374  	if m.Status != 0 {
  5375  		n += 1 + sovTempo(uint64(m.Status))
  5376  	}
  5377  	if m.Kind != 0 {
  5378  		n += 1 + sovTempo(uint64(m.Kind))
  5379  	}
  5380  	return n
  5381  }
  5382  
  5383  func sovTempo(x uint64) (n int) {
  5384  	return (math_bits.Len64(x|1) + 6) / 7
  5385  }
  5386  func sozTempo(x uint64) (n int) {
  5387  	return sovTempo(uint64((x << 1) ^ uint64((int64(x) >> 63))))
  5388  }
  5389  func (m *TraceByIDRequest) Unmarshal(dAtA []byte) error {
  5390  	l := len(dAtA)
  5391  	iNdEx := 0
  5392  	for iNdEx < l {
  5393  		preIndex := iNdEx
  5394  		var wire uint64
  5395  		for shift := uint(0); ; shift += 7 {
  5396  			if shift >= 64 {
  5397  				return ErrIntOverflowTempo
  5398  			}
  5399  			if iNdEx >= l {
  5400  				return io.ErrUnexpectedEOF
  5401  			}
  5402  			b := dAtA[iNdEx]
  5403  			iNdEx++
  5404  			wire |= uint64(b&0x7F) << shift
  5405  			if b < 0x80 {
  5406  				break
  5407  			}
  5408  		}
  5409  		fieldNum := int32(wire >> 3)
  5410  		wireType := int(wire & 0x7)
  5411  		if wireType == 4 {
  5412  			return fmt.Errorf("proto: TraceByIDRequest: wiretype end group for non-group")
  5413  		}
  5414  		if fieldNum <= 0 {
  5415  			return fmt.Errorf("proto: TraceByIDRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  5416  		}
  5417  		switch fieldNum {
  5418  		case 1:
  5419  			if wireType != 2 {
  5420  				return fmt.Errorf("proto: wrong wireType = %d for field TraceID", wireType)
  5421  			}
  5422  			var byteLen int
  5423  			for shift := uint(0); ; shift += 7 {
  5424  				if shift >= 64 {
  5425  					return ErrIntOverflowTempo
  5426  				}
  5427  				if iNdEx >= l {
  5428  					return io.ErrUnexpectedEOF
  5429  				}
  5430  				b := dAtA[iNdEx]
  5431  				iNdEx++
  5432  				byteLen |= int(b&0x7F) << shift
  5433  				if b < 0x80 {
  5434  					break
  5435  				}
  5436  			}
  5437  			if byteLen < 0 {
  5438  				return ErrInvalidLengthTempo
  5439  			}
  5440  			postIndex := iNdEx + byteLen
  5441  			if postIndex < 0 {
  5442  				return ErrInvalidLengthTempo
  5443  			}
  5444  			if postIndex > l {
  5445  				return io.ErrUnexpectedEOF
  5446  			}
  5447  			m.TraceID = append(m.TraceID[:0], dAtA[iNdEx:postIndex]...)
  5448  			if m.TraceID == nil {
  5449  				m.TraceID = []byte{}
  5450  			}
  5451  			iNdEx = postIndex
  5452  		case 2:
  5453  			if wireType != 2 {
  5454  				return fmt.Errorf("proto: wrong wireType = %d for field BlockStart", wireType)
  5455  			}
  5456  			var stringLen uint64
  5457  			for shift := uint(0); ; shift += 7 {
  5458  				if shift >= 64 {
  5459  					return ErrIntOverflowTempo
  5460  				}
  5461  				if iNdEx >= l {
  5462  					return io.ErrUnexpectedEOF
  5463  				}
  5464  				b := dAtA[iNdEx]
  5465  				iNdEx++
  5466  				stringLen |= uint64(b&0x7F) << shift
  5467  				if b < 0x80 {
  5468  					break
  5469  				}
  5470  			}
  5471  			intStringLen := int(stringLen)
  5472  			if intStringLen < 0 {
  5473  				return ErrInvalidLengthTempo
  5474  			}
  5475  			postIndex := iNdEx + intStringLen
  5476  			if postIndex < 0 {
  5477  				return ErrInvalidLengthTempo
  5478  			}
  5479  			if postIndex > l {
  5480  				return io.ErrUnexpectedEOF
  5481  			}
  5482  			m.BlockStart = string(dAtA[iNdEx:postIndex])
  5483  			iNdEx = postIndex
  5484  		case 3:
  5485  			if wireType != 2 {
  5486  				return fmt.Errorf("proto: wrong wireType = %d for field BlockEnd", wireType)
  5487  			}
  5488  			var stringLen uint64
  5489  			for shift := uint(0); ; shift += 7 {
  5490  				if shift >= 64 {
  5491  					return ErrIntOverflowTempo
  5492  				}
  5493  				if iNdEx >= l {
  5494  					return io.ErrUnexpectedEOF
  5495  				}
  5496  				b := dAtA[iNdEx]
  5497  				iNdEx++
  5498  				stringLen |= uint64(b&0x7F) << shift
  5499  				if b < 0x80 {
  5500  					break
  5501  				}
  5502  			}
  5503  			intStringLen := int(stringLen)
  5504  			if intStringLen < 0 {
  5505  				return ErrInvalidLengthTempo
  5506  			}
  5507  			postIndex := iNdEx + intStringLen
  5508  			if postIndex < 0 {
  5509  				return ErrInvalidLengthTempo
  5510  			}
  5511  			if postIndex > l {
  5512  				return io.ErrUnexpectedEOF
  5513  			}
  5514  			m.BlockEnd = string(dAtA[iNdEx:postIndex])
  5515  			iNdEx = postIndex
  5516  		case 5:
  5517  			if wireType != 2 {
  5518  				return fmt.Errorf("proto: wrong wireType = %d for field QueryMode", wireType)
  5519  			}
  5520  			var stringLen uint64
  5521  			for shift := uint(0); ; shift += 7 {
  5522  				if shift >= 64 {
  5523  					return ErrIntOverflowTempo
  5524  				}
  5525  				if iNdEx >= l {
  5526  					return io.ErrUnexpectedEOF
  5527  				}
  5528  				b := dAtA[iNdEx]
  5529  				iNdEx++
  5530  				stringLen |= uint64(b&0x7F) << shift
  5531  				if b < 0x80 {
  5532  					break
  5533  				}
  5534  			}
  5535  			intStringLen := int(stringLen)
  5536  			if intStringLen < 0 {
  5537  				return ErrInvalidLengthTempo
  5538  			}
  5539  			postIndex := iNdEx + intStringLen
  5540  			if postIndex < 0 {
  5541  				return ErrInvalidLengthTempo
  5542  			}
  5543  			if postIndex > l {
  5544  				return io.ErrUnexpectedEOF
  5545  			}
  5546  			m.QueryMode = string(dAtA[iNdEx:postIndex])
  5547  			iNdEx = postIndex
  5548  		default:
  5549  			iNdEx = preIndex
  5550  			skippy, err := skipTempo(dAtA[iNdEx:])
  5551  			if err != nil {
  5552  				return err
  5553  			}
  5554  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  5555  				return ErrInvalidLengthTempo
  5556  			}
  5557  			if (iNdEx + skippy) > l {
  5558  				return io.ErrUnexpectedEOF
  5559  			}
  5560  			iNdEx += skippy
  5561  		}
  5562  	}
  5563  
  5564  	if iNdEx > l {
  5565  		return io.ErrUnexpectedEOF
  5566  	}
  5567  	return nil
  5568  }
  5569  func (m *TraceByIDResponse) Unmarshal(dAtA []byte) error {
  5570  	l := len(dAtA)
  5571  	iNdEx := 0
  5572  	for iNdEx < l {
  5573  		preIndex := iNdEx
  5574  		var wire uint64
  5575  		for shift := uint(0); ; shift += 7 {
  5576  			if shift >= 64 {
  5577  				return ErrIntOverflowTempo
  5578  			}
  5579  			if iNdEx >= l {
  5580  				return io.ErrUnexpectedEOF
  5581  			}
  5582  			b := dAtA[iNdEx]
  5583  			iNdEx++
  5584  			wire |= uint64(b&0x7F) << shift
  5585  			if b < 0x80 {
  5586  				break
  5587  			}
  5588  		}
  5589  		fieldNum := int32(wire >> 3)
  5590  		wireType := int(wire & 0x7)
  5591  		if wireType == 4 {
  5592  			return fmt.Errorf("proto: TraceByIDResponse: wiretype end group for non-group")
  5593  		}
  5594  		if fieldNum <= 0 {
  5595  			return fmt.Errorf("proto: TraceByIDResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  5596  		}
  5597  		switch fieldNum {
  5598  		case 1:
  5599  			if wireType != 2 {
  5600  				return fmt.Errorf("proto: wrong wireType = %d for field Trace", wireType)
  5601  			}
  5602  			var msglen int
  5603  			for shift := uint(0); ; shift += 7 {
  5604  				if shift >= 64 {
  5605  					return ErrIntOverflowTempo
  5606  				}
  5607  				if iNdEx >= l {
  5608  					return io.ErrUnexpectedEOF
  5609  				}
  5610  				b := dAtA[iNdEx]
  5611  				iNdEx++
  5612  				msglen |= int(b&0x7F) << shift
  5613  				if b < 0x80 {
  5614  					break
  5615  				}
  5616  			}
  5617  			if msglen < 0 {
  5618  				return ErrInvalidLengthTempo
  5619  			}
  5620  			postIndex := iNdEx + msglen
  5621  			if postIndex < 0 {
  5622  				return ErrInvalidLengthTempo
  5623  			}
  5624  			if postIndex > l {
  5625  				return io.ErrUnexpectedEOF
  5626  			}
  5627  			if m.Trace == nil {
  5628  				m.Trace = &Trace{}
  5629  			}
  5630  			if err := m.Trace.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5631  				return err
  5632  			}
  5633  			iNdEx = postIndex
  5634  		case 2:
  5635  			if wireType != 2 {
  5636  				return fmt.Errorf("proto: wrong wireType = %d for field Metrics", wireType)
  5637  			}
  5638  			var msglen int
  5639  			for shift := uint(0); ; shift += 7 {
  5640  				if shift >= 64 {
  5641  					return ErrIntOverflowTempo
  5642  				}
  5643  				if iNdEx >= l {
  5644  					return io.ErrUnexpectedEOF
  5645  				}
  5646  				b := dAtA[iNdEx]
  5647  				iNdEx++
  5648  				msglen |= int(b&0x7F) << shift
  5649  				if b < 0x80 {
  5650  					break
  5651  				}
  5652  			}
  5653  			if msglen < 0 {
  5654  				return ErrInvalidLengthTempo
  5655  			}
  5656  			postIndex := iNdEx + msglen
  5657  			if postIndex < 0 {
  5658  				return ErrInvalidLengthTempo
  5659  			}
  5660  			if postIndex > l {
  5661  				return io.ErrUnexpectedEOF
  5662  			}
  5663  			if m.Metrics == nil {
  5664  				m.Metrics = &TraceByIDMetrics{}
  5665  			}
  5666  			if err := m.Metrics.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  5667  				return err
  5668  			}
  5669  			iNdEx = postIndex
  5670  		default:
  5671  			iNdEx = preIndex
  5672  			skippy, err := skipTempo(dAtA[iNdEx:])
  5673  			if err != nil {
  5674  				return err
  5675  			}
  5676  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  5677  				return ErrInvalidLengthTempo
  5678  			}
  5679  			if (iNdEx + skippy) > l {
  5680  				return io.ErrUnexpectedEOF
  5681  			}
  5682  			iNdEx += skippy
  5683  		}
  5684  	}
  5685  
  5686  	if iNdEx > l {
  5687  		return io.ErrUnexpectedEOF
  5688  	}
  5689  	return nil
  5690  }
  5691  func (m *TraceByIDMetrics) Unmarshal(dAtA []byte) error {
  5692  	l := len(dAtA)
  5693  	iNdEx := 0
  5694  	for iNdEx < l {
  5695  		preIndex := iNdEx
  5696  		var wire uint64
  5697  		for shift := uint(0); ; shift += 7 {
  5698  			if shift >= 64 {
  5699  				return ErrIntOverflowTempo
  5700  			}
  5701  			if iNdEx >= l {
  5702  				return io.ErrUnexpectedEOF
  5703  			}
  5704  			b := dAtA[iNdEx]
  5705  			iNdEx++
  5706  			wire |= uint64(b&0x7F) << shift
  5707  			if b < 0x80 {
  5708  				break
  5709  			}
  5710  		}
  5711  		fieldNum := int32(wire >> 3)
  5712  		wireType := int(wire & 0x7)
  5713  		if wireType == 4 {
  5714  			return fmt.Errorf("proto: TraceByIDMetrics: wiretype end group for non-group")
  5715  		}
  5716  		if fieldNum <= 0 {
  5717  			return fmt.Errorf("proto: TraceByIDMetrics: illegal tag %d (wire type %d)", fieldNum, wire)
  5718  		}
  5719  		switch fieldNum {
  5720  		default:
  5721  			iNdEx = preIndex
  5722  			skippy, err := skipTempo(dAtA[iNdEx:])
  5723  			if err != nil {
  5724  				return err
  5725  			}
  5726  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  5727  				return ErrInvalidLengthTempo
  5728  			}
  5729  			if (iNdEx + skippy) > l {
  5730  				return io.ErrUnexpectedEOF
  5731  			}
  5732  			iNdEx += skippy
  5733  		}
  5734  	}
  5735  
  5736  	if iNdEx > l {
  5737  		return io.ErrUnexpectedEOF
  5738  	}
  5739  	return nil
  5740  }
  5741  func (m *SearchRequest) Unmarshal(dAtA []byte) error {
  5742  	l := len(dAtA)
  5743  	iNdEx := 0
  5744  	for iNdEx < l {
  5745  		preIndex := iNdEx
  5746  		var wire uint64
  5747  		for shift := uint(0); ; shift += 7 {
  5748  			if shift >= 64 {
  5749  				return ErrIntOverflowTempo
  5750  			}
  5751  			if iNdEx >= l {
  5752  				return io.ErrUnexpectedEOF
  5753  			}
  5754  			b := dAtA[iNdEx]
  5755  			iNdEx++
  5756  			wire |= uint64(b&0x7F) << shift
  5757  			if b < 0x80 {
  5758  				break
  5759  			}
  5760  		}
  5761  		fieldNum := int32(wire >> 3)
  5762  		wireType := int(wire & 0x7)
  5763  		if wireType == 4 {
  5764  			return fmt.Errorf("proto: SearchRequest: wiretype end group for non-group")
  5765  		}
  5766  		if fieldNum <= 0 {
  5767  			return fmt.Errorf("proto: SearchRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  5768  		}
  5769  		switch fieldNum {
  5770  		case 1:
  5771  			if wireType != 2 {
  5772  				return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType)
  5773  			}
  5774  			var msglen int
  5775  			for shift := uint(0); ; shift += 7 {
  5776  				if shift >= 64 {
  5777  					return ErrIntOverflowTempo
  5778  				}
  5779  				if iNdEx >= l {
  5780  					return io.ErrUnexpectedEOF
  5781  				}
  5782  				b := dAtA[iNdEx]
  5783  				iNdEx++
  5784  				msglen |= int(b&0x7F) << shift
  5785  				if b < 0x80 {
  5786  					break
  5787  				}
  5788  			}
  5789  			if msglen < 0 {
  5790  				return ErrInvalidLengthTempo
  5791  			}
  5792  			postIndex := iNdEx + msglen
  5793  			if postIndex < 0 {
  5794  				return ErrInvalidLengthTempo
  5795  			}
  5796  			if postIndex > l {
  5797  				return io.ErrUnexpectedEOF
  5798  			}
  5799  			if m.Tags == nil {
  5800  				m.Tags = make(map[string]string)
  5801  			}
  5802  			var mapkey string
  5803  			var mapvalue string
  5804  			for iNdEx < postIndex {
  5805  				entryPreIndex := iNdEx
  5806  				var wire uint64
  5807  				for shift := uint(0); ; shift += 7 {
  5808  					if shift >= 64 {
  5809  						return ErrIntOverflowTempo
  5810  					}
  5811  					if iNdEx >= l {
  5812  						return io.ErrUnexpectedEOF
  5813  					}
  5814  					b := dAtA[iNdEx]
  5815  					iNdEx++
  5816  					wire |= uint64(b&0x7F) << shift
  5817  					if b < 0x80 {
  5818  						break
  5819  					}
  5820  				}
  5821  				fieldNum := int32(wire >> 3)
  5822  				if fieldNum == 1 {
  5823  					var stringLenmapkey uint64
  5824  					for shift := uint(0); ; shift += 7 {
  5825  						if shift >= 64 {
  5826  							return ErrIntOverflowTempo
  5827  						}
  5828  						if iNdEx >= l {
  5829  							return io.ErrUnexpectedEOF
  5830  						}
  5831  						b := dAtA[iNdEx]
  5832  						iNdEx++
  5833  						stringLenmapkey |= uint64(b&0x7F) << shift
  5834  						if b < 0x80 {
  5835  							break
  5836  						}
  5837  					}
  5838  					intStringLenmapkey := int(stringLenmapkey)
  5839  					if intStringLenmapkey < 0 {
  5840  						return ErrInvalidLengthTempo
  5841  					}
  5842  					postStringIndexmapkey := iNdEx + intStringLenmapkey
  5843  					if postStringIndexmapkey < 0 {
  5844  						return ErrInvalidLengthTempo
  5845  					}
  5846  					if postStringIndexmapkey > l {
  5847  						return io.ErrUnexpectedEOF
  5848  					}
  5849  					mapkey = string(dAtA[iNdEx:postStringIndexmapkey])
  5850  					iNdEx = postStringIndexmapkey
  5851  				} else if fieldNum == 2 {
  5852  					var stringLenmapvalue uint64
  5853  					for shift := uint(0); ; shift += 7 {
  5854  						if shift >= 64 {
  5855  							return ErrIntOverflowTempo
  5856  						}
  5857  						if iNdEx >= l {
  5858  							return io.ErrUnexpectedEOF
  5859  						}
  5860  						b := dAtA[iNdEx]
  5861  						iNdEx++
  5862  						stringLenmapvalue |= uint64(b&0x7F) << shift
  5863  						if b < 0x80 {
  5864  							break
  5865  						}
  5866  					}
  5867  					intStringLenmapvalue := int(stringLenmapvalue)
  5868  					if intStringLenmapvalue < 0 {
  5869  						return ErrInvalidLengthTempo
  5870  					}
  5871  					postStringIndexmapvalue := iNdEx + intStringLenmapvalue
  5872  					if postStringIndexmapvalue < 0 {
  5873  						return ErrInvalidLengthTempo
  5874  					}
  5875  					if postStringIndexmapvalue > l {
  5876  						return io.ErrUnexpectedEOF
  5877  					}
  5878  					mapvalue = string(dAtA[iNdEx:postStringIndexmapvalue])
  5879  					iNdEx = postStringIndexmapvalue
  5880  				} else {
  5881  					iNdEx = entryPreIndex
  5882  					skippy, err := skipTempo(dAtA[iNdEx:])
  5883  					if err != nil {
  5884  						return err
  5885  					}
  5886  					if (skippy < 0) || (iNdEx+skippy) < 0 {
  5887  						return ErrInvalidLengthTempo
  5888  					}
  5889  					if (iNdEx + skippy) > postIndex {
  5890  						return io.ErrUnexpectedEOF
  5891  					}
  5892  					iNdEx += skippy
  5893  				}
  5894  			}
  5895  			m.Tags[mapkey] = mapvalue
  5896  			iNdEx = postIndex
  5897  		case 2:
  5898  			if wireType != 0 {
  5899  				return fmt.Errorf("proto: wrong wireType = %d for field MinDurationMs", wireType)
  5900  			}
  5901  			m.MinDurationMs = 0
  5902  			for shift := uint(0); ; shift += 7 {
  5903  				if shift >= 64 {
  5904  					return ErrIntOverflowTempo
  5905  				}
  5906  				if iNdEx >= l {
  5907  					return io.ErrUnexpectedEOF
  5908  				}
  5909  				b := dAtA[iNdEx]
  5910  				iNdEx++
  5911  				m.MinDurationMs |= uint32(b&0x7F) << shift
  5912  				if b < 0x80 {
  5913  					break
  5914  				}
  5915  			}
  5916  		case 3:
  5917  			if wireType != 0 {
  5918  				return fmt.Errorf("proto: wrong wireType = %d for field MaxDurationMs", wireType)
  5919  			}
  5920  			m.MaxDurationMs = 0
  5921  			for shift := uint(0); ; shift += 7 {
  5922  				if shift >= 64 {
  5923  					return ErrIntOverflowTempo
  5924  				}
  5925  				if iNdEx >= l {
  5926  					return io.ErrUnexpectedEOF
  5927  				}
  5928  				b := dAtA[iNdEx]
  5929  				iNdEx++
  5930  				m.MaxDurationMs |= uint32(b&0x7F) << shift
  5931  				if b < 0x80 {
  5932  					break
  5933  				}
  5934  			}
  5935  		case 4:
  5936  			if wireType != 0 {
  5937  				return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType)
  5938  			}
  5939  			m.Limit = 0
  5940  			for shift := uint(0); ; shift += 7 {
  5941  				if shift >= 64 {
  5942  					return ErrIntOverflowTempo
  5943  				}
  5944  				if iNdEx >= l {
  5945  					return io.ErrUnexpectedEOF
  5946  				}
  5947  				b := dAtA[iNdEx]
  5948  				iNdEx++
  5949  				m.Limit |= uint32(b&0x7F) << shift
  5950  				if b < 0x80 {
  5951  					break
  5952  				}
  5953  			}
  5954  		case 5:
  5955  			if wireType != 0 {
  5956  				return fmt.Errorf("proto: wrong wireType = %d for field Start", wireType)
  5957  			}
  5958  			m.Start = 0
  5959  			for shift := uint(0); ; shift += 7 {
  5960  				if shift >= 64 {
  5961  					return ErrIntOverflowTempo
  5962  				}
  5963  				if iNdEx >= l {
  5964  					return io.ErrUnexpectedEOF
  5965  				}
  5966  				b := dAtA[iNdEx]
  5967  				iNdEx++
  5968  				m.Start |= uint32(b&0x7F) << shift
  5969  				if b < 0x80 {
  5970  					break
  5971  				}
  5972  			}
  5973  		case 6:
  5974  			if wireType != 0 {
  5975  				return fmt.Errorf("proto: wrong wireType = %d for field End", wireType)
  5976  			}
  5977  			m.End = 0
  5978  			for shift := uint(0); ; shift += 7 {
  5979  				if shift >= 64 {
  5980  					return ErrIntOverflowTempo
  5981  				}
  5982  				if iNdEx >= l {
  5983  					return io.ErrUnexpectedEOF
  5984  				}
  5985  				b := dAtA[iNdEx]
  5986  				iNdEx++
  5987  				m.End |= uint32(b&0x7F) << shift
  5988  				if b < 0x80 {
  5989  					break
  5990  				}
  5991  			}
  5992  		case 8:
  5993  			if wireType != 2 {
  5994  				return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType)
  5995  			}
  5996  			var stringLen uint64
  5997  			for shift := uint(0); ; shift += 7 {
  5998  				if shift >= 64 {
  5999  					return ErrIntOverflowTempo
  6000  				}
  6001  				if iNdEx >= l {
  6002  					return io.ErrUnexpectedEOF
  6003  				}
  6004  				b := dAtA[iNdEx]
  6005  				iNdEx++
  6006  				stringLen |= uint64(b&0x7F) << shift
  6007  				if b < 0x80 {
  6008  					break
  6009  				}
  6010  			}
  6011  			intStringLen := int(stringLen)
  6012  			if intStringLen < 0 {
  6013  				return ErrInvalidLengthTempo
  6014  			}
  6015  			postIndex := iNdEx + intStringLen
  6016  			if postIndex < 0 {
  6017  				return ErrInvalidLengthTempo
  6018  			}
  6019  			if postIndex > l {
  6020  				return io.ErrUnexpectedEOF
  6021  			}
  6022  			m.Query = string(dAtA[iNdEx:postIndex])
  6023  			iNdEx = postIndex
  6024  		case 9:
  6025  			if wireType != 0 {
  6026  				return fmt.Errorf("proto: wrong wireType = %d for field SpansPerSpanSet", wireType)
  6027  			}
  6028  			m.SpansPerSpanSet = 0
  6029  			for shift := uint(0); ; shift += 7 {
  6030  				if shift >= 64 {
  6031  					return ErrIntOverflowTempo
  6032  				}
  6033  				if iNdEx >= l {
  6034  					return io.ErrUnexpectedEOF
  6035  				}
  6036  				b := dAtA[iNdEx]
  6037  				iNdEx++
  6038  				m.SpansPerSpanSet |= uint32(b&0x7F) << shift
  6039  				if b < 0x80 {
  6040  					break
  6041  				}
  6042  			}
  6043  		default:
  6044  			iNdEx = preIndex
  6045  			skippy, err := skipTempo(dAtA[iNdEx:])
  6046  			if err != nil {
  6047  				return err
  6048  			}
  6049  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  6050  				return ErrInvalidLengthTempo
  6051  			}
  6052  			if (iNdEx + skippy) > l {
  6053  				return io.ErrUnexpectedEOF
  6054  			}
  6055  			iNdEx += skippy
  6056  		}
  6057  	}
  6058  
  6059  	if iNdEx > l {
  6060  		return io.ErrUnexpectedEOF
  6061  	}
  6062  	return nil
  6063  }
  6064  func (m *SearchBlockRequest) Unmarshal(dAtA []byte) error {
  6065  	l := len(dAtA)
  6066  	iNdEx := 0
  6067  	for iNdEx < l {
  6068  		preIndex := iNdEx
  6069  		var wire uint64
  6070  		for shift := uint(0); ; shift += 7 {
  6071  			if shift >= 64 {
  6072  				return ErrIntOverflowTempo
  6073  			}
  6074  			if iNdEx >= l {
  6075  				return io.ErrUnexpectedEOF
  6076  			}
  6077  			b := dAtA[iNdEx]
  6078  			iNdEx++
  6079  			wire |= uint64(b&0x7F) << shift
  6080  			if b < 0x80 {
  6081  				break
  6082  			}
  6083  		}
  6084  		fieldNum := int32(wire >> 3)
  6085  		wireType := int(wire & 0x7)
  6086  		if wireType == 4 {
  6087  			return fmt.Errorf("proto: SearchBlockRequest: wiretype end group for non-group")
  6088  		}
  6089  		if fieldNum <= 0 {
  6090  			return fmt.Errorf("proto: SearchBlockRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  6091  		}
  6092  		switch fieldNum {
  6093  		case 1:
  6094  			if wireType != 2 {
  6095  				return fmt.Errorf("proto: wrong wireType = %d for field SearchReq", wireType)
  6096  			}
  6097  			var msglen int
  6098  			for shift := uint(0); ; shift += 7 {
  6099  				if shift >= 64 {
  6100  					return ErrIntOverflowTempo
  6101  				}
  6102  				if iNdEx >= l {
  6103  					return io.ErrUnexpectedEOF
  6104  				}
  6105  				b := dAtA[iNdEx]
  6106  				iNdEx++
  6107  				msglen |= int(b&0x7F) << shift
  6108  				if b < 0x80 {
  6109  					break
  6110  				}
  6111  			}
  6112  			if msglen < 0 {
  6113  				return ErrInvalidLengthTempo
  6114  			}
  6115  			postIndex := iNdEx + msglen
  6116  			if postIndex < 0 {
  6117  				return ErrInvalidLengthTempo
  6118  			}
  6119  			if postIndex > l {
  6120  				return io.ErrUnexpectedEOF
  6121  			}
  6122  			if m.SearchReq == nil {
  6123  				m.SearchReq = &SearchRequest{}
  6124  			}
  6125  			if err := m.SearchReq.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6126  				return err
  6127  			}
  6128  			iNdEx = postIndex
  6129  		case 2:
  6130  			if wireType != 2 {
  6131  				return fmt.Errorf("proto: wrong wireType = %d for field BlockID", wireType)
  6132  			}
  6133  			var stringLen uint64
  6134  			for shift := uint(0); ; shift += 7 {
  6135  				if shift >= 64 {
  6136  					return ErrIntOverflowTempo
  6137  				}
  6138  				if iNdEx >= l {
  6139  					return io.ErrUnexpectedEOF
  6140  				}
  6141  				b := dAtA[iNdEx]
  6142  				iNdEx++
  6143  				stringLen |= uint64(b&0x7F) << shift
  6144  				if b < 0x80 {
  6145  					break
  6146  				}
  6147  			}
  6148  			intStringLen := int(stringLen)
  6149  			if intStringLen < 0 {
  6150  				return ErrInvalidLengthTempo
  6151  			}
  6152  			postIndex := iNdEx + intStringLen
  6153  			if postIndex < 0 {
  6154  				return ErrInvalidLengthTempo
  6155  			}
  6156  			if postIndex > l {
  6157  				return io.ErrUnexpectedEOF
  6158  			}
  6159  			m.BlockID = string(dAtA[iNdEx:postIndex])
  6160  			iNdEx = postIndex
  6161  		case 3:
  6162  			if wireType != 0 {
  6163  				return fmt.Errorf("proto: wrong wireType = %d for field StartPage", wireType)
  6164  			}
  6165  			m.StartPage = 0
  6166  			for shift := uint(0); ; shift += 7 {
  6167  				if shift >= 64 {
  6168  					return ErrIntOverflowTempo
  6169  				}
  6170  				if iNdEx >= l {
  6171  					return io.ErrUnexpectedEOF
  6172  				}
  6173  				b := dAtA[iNdEx]
  6174  				iNdEx++
  6175  				m.StartPage |= uint32(b&0x7F) << shift
  6176  				if b < 0x80 {
  6177  					break
  6178  				}
  6179  			}
  6180  		case 4:
  6181  			if wireType != 0 {
  6182  				return fmt.Errorf("proto: wrong wireType = %d for field PagesToSearch", wireType)
  6183  			}
  6184  			m.PagesToSearch = 0
  6185  			for shift := uint(0); ; shift += 7 {
  6186  				if shift >= 64 {
  6187  					return ErrIntOverflowTempo
  6188  				}
  6189  				if iNdEx >= l {
  6190  					return io.ErrUnexpectedEOF
  6191  				}
  6192  				b := dAtA[iNdEx]
  6193  				iNdEx++
  6194  				m.PagesToSearch |= uint32(b&0x7F) << shift
  6195  				if b < 0x80 {
  6196  					break
  6197  				}
  6198  			}
  6199  		case 5:
  6200  			if wireType != 2 {
  6201  				return fmt.Errorf("proto: wrong wireType = %d for field Encoding", wireType)
  6202  			}
  6203  			var stringLen uint64
  6204  			for shift := uint(0); ; shift += 7 {
  6205  				if shift >= 64 {
  6206  					return ErrIntOverflowTempo
  6207  				}
  6208  				if iNdEx >= l {
  6209  					return io.ErrUnexpectedEOF
  6210  				}
  6211  				b := dAtA[iNdEx]
  6212  				iNdEx++
  6213  				stringLen |= uint64(b&0x7F) << shift
  6214  				if b < 0x80 {
  6215  					break
  6216  				}
  6217  			}
  6218  			intStringLen := int(stringLen)
  6219  			if intStringLen < 0 {
  6220  				return ErrInvalidLengthTempo
  6221  			}
  6222  			postIndex := iNdEx + intStringLen
  6223  			if postIndex < 0 {
  6224  				return ErrInvalidLengthTempo
  6225  			}
  6226  			if postIndex > l {
  6227  				return io.ErrUnexpectedEOF
  6228  			}
  6229  			m.Encoding = string(dAtA[iNdEx:postIndex])
  6230  			iNdEx = postIndex
  6231  		case 6:
  6232  			if wireType != 0 {
  6233  				return fmt.Errorf("proto: wrong wireType = %d for field IndexPageSize", wireType)
  6234  			}
  6235  			m.IndexPageSize = 0
  6236  			for shift := uint(0); ; shift += 7 {
  6237  				if shift >= 64 {
  6238  					return ErrIntOverflowTempo
  6239  				}
  6240  				if iNdEx >= l {
  6241  					return io.ErrUnexpectedEOF
  6242  				}
  6243  				b := dAtA[iNdEx]
  6244  				iNdEx++
  6245  				m.IndexPageSize |= uint32(b&0x7F) << shift
  6246  				if b < 0x80 {
  6247  					break
  6248  				}
  6249  			}
  6250  		case 7:
  6251  			if wireType != 0 {
  6252  				return fmt.Errorf("proto: wrong wireType = %d for field TotalRecords", wireType)
  6253  			}
  6254  			m.TotalRecords = 0
  6255  			for shift := uint(0); ; shift += 7 {
  6256  				if shift >= 64 {
  6257  					return ErrIntOverflowTempo
  6258  				}
  6259  				if iNdEx >= l {
  6260  					return io.ErrUnexpectedEOF
  6261  				}
  6262  				b := dAtA[iNdEx]
  6263  				iNdEx++
  6264  				m.TotalRecords |= uint32(b&0x7F) << shift
  6265  				if b < 0x80 {
  6266  					break
  6267  				}
  6268  			}
  6269  		case 8:
  6270  			if wireType != 2 {
  6271  				return fmt.Errorf("proto: wrong wireType = %d for field DataEncoding", wireType)
  6272  			}
  6273  			var stringLen uint64
  6274  			for shift := uint(0); ; shift += 7 {
  6275  				if shift >= 64 {
  6276  					return ErrIntOverflowTempo
  6277  				}
  6278  				if iNdEx >= l {
  6279  					return io.ErrUnexpectedEOF
  6280  				}
  6281  				b := dAtA[iNdEx]
  6282  				iNdEx++
  6283  				stringLen |= uint64(b&0x7F) << shift
  6284  				if b < 0x80 {
  6285  					break
  6286  				}
  6287  			}
  6288  			intStringLen := int(stringLen)
  6289  			if intStringLen < 0 {
  6290  				return ErrInvalidLengthTempo
  6291  			}
  6292  			postIndex := iNdEx + intStringLen
  6293  			if postIndex < 0 {
  6294  				return ErrInvalidLengthTempo
  6295  			}
  6296  			if postIndex > l {
  6297  				return io.ErrUnexpectedEOF
  6298  			}
  6299  			m.DataEncoding = string(dAtA[iNdEx:postIndex])
  6300  			iNdEx = postIndex
  6301  		case 9:
  6302  			if wireType != 2 {
  6303  				return fmt.Errorf("proto: wrong wireType = %d for field Version", wireType)
  6304  			}
  6305  			var stringLen uint64
  6306  			for shift := uint(0); ; shift += 7 {
  6307  				if shift >= 64 {
  6308  					return ErrIntOverflowTempo
  6309  				}
  6310  				if iNdEx >= l {
  6311  					return io.ErrUnexpectedEOF
  6312  				}
  6313  				b := dAtA[iNdEx]
  6314  				iNdEx++
  6315  				stringLen |= uint64(b&0x7F) << shift
  6316  				if b < 0x80 {
  6317  					break
  6318  				}
  6319  			}
  6320  			intStringLen := int(stringLen)
  6321  			if intStringLen < 0 {
  6322  				return ErrInvalidLengthTempo
  6323  			}
  6324  			postIndex := iNdEx + intStringLen
  6325  			if postIndex < 0 {
  6326  				return ErrInvalidLengthTempo
  6327  			}
  6328  			if postIndex > l {
  6329  				return io.ErrUnexpectedEOF
  6330  			}
  6331  			m.Version = string(dAtA[iNdEx:postIndex])
  6332  			iNdEx = postIndex
  6333  		case 10:
  6334  			if wireType != 0 {
  6335  				return fmt.Errorf("proto: wrong wireType = %d for field Size_", wireType)
  6336  			}
  6337  			m.Size_ = 0
  6338  			for shift := uint(0); ; shift += 7 {
  6339  				if shift >= 64 {
  6340  					return ErrIntOverflowTempo
  6341  				}
  6342  				if iNdEx >= l {
  6343  					return io.ErrUnexpectedEOF
  6344  				}
  6345  				b := dAtA[iNdEx]
  6346  				iNdEx++
  6347  				m.Size_ |= uint64(b&0x7F) << shift
  6348  				if b < 0x80 {
  6349  					break
  6350  				}
  6351  			}
  6352  		case 11:
  6353  			if wireType != 0 {
  6354  				return fmt.Errorf("proto: wrong wireType = %d for field FooterSize", wireType)
  6355  			}
  6356  			m.FooterSize = 0
  6357  			for shift := uint(0); ; shift += 7 {
  6358  				if shift >= 64 {
  6359  					return ErrIntOverflowTempo
  6360  				}
  6361  				if iNdEx >= l {
  6362  					return io.ErrUnexpectedEOF
  6363  				}
  6364  				b := dAtA[iNdEx]
  6365  				iNdEx++
  6366  				m.FooterSize |= uint32(b&0x7F) << shift
  6367  				if b < 0x80 {
  6368  					break
  6369  				}
  6370  			}
  6371  		case 12:
  6372  			if wireType != 2 {
  6373  				return fmt.Errorf("proto: wrong wireType = %d for field DedicatedColumns", wireType)
  6374  			}
  6375  			var msglen int
  6376  			for shift := uint(0); ; shift += 7 {
  6377  				if shift >= 64 {
  6378  					return ErrIntOverflowTempo
  6379  				}
  6380  				if iNdEx >= l {
  6381  					return io.ErrUnexpectedEOF
  6382  				}
  6383  				b := dAtA[iNdEx]
  6384  				iNdEx++
  6385  				msglen |= int(b&0x7F) << shift
  6386  				if b < 0x80 {
  6387  					break
  6388  				}
  6389  			}
  6390  			if msglen < 0 {
  6391  				return ErrInvalidLengthTempo
  6392  			}
  6393  			postIndex := iNdEx + msglen
  6394  			if postIndex < 0 {
  6395  				return ErrInvalidLengthTempo
  6396  			}
  6397  			if postIndex > l {
  6398  				return io.ErrUnexpectedEOF
  6399  			}
  6400  			m.DedicatedColumns = append(m.DedicatedColumns, &DedicatedColumn{})
  6401  			if err := m.DedicatedColumns[len(m.DedicatedColumns)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6402  				return err
  6403  			}
  6404  			iNdEx = postIndex
  6405  		default:
  6406  			iNdEx = preIndex
  6407  			skippy, err := skipTempo(dAtA[iNdEx:])
  6408  			if err != nil {
  6409  				return err
  6410  			}
  6411  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  6412  				return ErrInvalidLengthTempo
  6413  			}
  6414  			if (iNdEx + skippy) > l {
  6415  				return io.ErrUnexpectedEOF
  6416  			}
  6417  			iNdEx += skippy
  6418  		}
  6419  	}
  6420  
  6421  	if iNdEx > l {
  6422  		return io.ErrUnexpectedEOF
  6423  	}
  6424  	return nil
  6425  }
  6426  func (m *DedicatedColumn) Unmarshal(dAtA []byte) error {
  6427  	l := len(dAtA)
  6428  	iNdEx := 0
  6429  	for iNdEx < l {
  6430  		preIndex := iNdEx
  6431  		var wire uint64
  6432  		for shift := uint(0); ; shift += 7 {
  6433  			if shift >= 64 {
  6434  				return ErrIntOverflowTempo
  6435  			}
  6436  			if iNdEx >= l {
  6437  				return io.ErrUnexpectedEOF
  6438  			}
  6439  			b := dAtA[iNdEx]
  6440  			iNdEx++
  6441  			wire |= uint64(b&0x7F) << shift
  6442  			if b < 0x80 {
  6443  				break
  6444  			}
  6445  		}
  6446  		fieldNum := int32(wire >> 3)
  6447  		wireType := int(wire & 0x7)
  6448  		if wireType == 4 {
  6449  			return fmt.Errorf("proto: DedicatedColumn: wiretype end group for non-group")
  6450  		}
  6451  		if fieldNum <= 0 {
  6452  			return fmt.Errorf("proto: DedicatedColumn: illegal tag %d (wire type %d)", fieldNum, wire)
  6453  		}
  6454  		switch fieldNum {
  6455  		case 1:
  6456  			if wireType != 0 {
  6457  				return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  6458  			}
  6459  			m.Type = 0
  6460  			for shift := uint(0); ; shift += 7 {
  6461  				if shift >= 64 {
  6462  					return ErrIntOverflowTempo
  6463  				}
  6464  				if iNdEx >= l {
  6465  					return io.ErrUnexpectedEOF
  6466  				}
  6467  				b := dAtA[iNdEx]
  6468  				iNdEx++
  6469  				m.Type |= DedicatedColumn_Type(b&0x7F) << shift
  6470  				if b < 0x80 {
  6471  					break
  6472  				}
  6473  			}
  6474  		case 2:
  6475  			if wireType != 2 {
  6476  				return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  6477  			}
  6478  			var stringLen uint64
  6479  			for shift := uint(0); ; shift += 7 {
  6480  				if shift >= 64 {
  6481  					return ErrIntOverflowTempo
  6482  				}
  6483  				if iNdEx >= l {
  6484  					return io.ErrUnexpectedEOF
  6485  				}
  6486  				b := dAtA[iNdEx]
  6487  				iNdEx++
  6488  				stringLen |= uint64(b&0x7F) << shift
  6489  				if b < 0x80 {
  6490  					break
  6491  				}
  6492  			}
  6493  			intStringLen := int(stringLen)
  6494  			if intStringLen < 0 {
  6495  				return ErrInvalidLengthTempo
  6496  			}
  6497  			postIndex := iNdEx + intStringLen
  6498  			if postIndex < 0 {
  6499  				return ErrInvalidLengthTempo
  6500  			}
  6501  			if postIndex > l {
  6502  				return io.ErrUnexpectedEOF
  6503  			}
  6504  			m.Name = string(dAtA[iNdEx:postIndex])
  6505  			iNdEx = postIndex
  6506  		case 3:
  6507  			if wireType != 0 {
  6508  				return fmt.Errorf("proto: wrong wireType = %d for field Scope", wireType)
  6509  			}
  6510  			m.Scope = 0
  6511  			for shift := uint(0); ; shift += 7 {
  6512  				if shift >= 64 {
  6513  					return ErrIntOverflowTempo
  6514  				}
  6515  				if iNdEx >= l {
  6516  					return io.ErrUnexpectedEOF
  6517  				}
  6518  				b := dAtA[iNdEx]
  6519  				iNdEx++
  6520  				m.Scope |= DedicatedColumn_Scope(b&0x7F) << shift
  6521  				if b < 0x80 {
  6522  					break
  6523  				}
  6524  			}
  6525  		default:
  6526  			iNdEx = preIndex
  6527  			skippy, err := skipTempo(dAtA[iNdEx:])
  6528  			if err != nil {
  6529  				return err
  6530  			}
  6531  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  6532  				return ErrInvalidLengthTempo
  6533  			}
  6534  			if (iNdEx + skippy) > l {
  6535  				return io.ErrUnexpectedEOF
  6536  			}
  6537  			iNdEx += skippy
  6538  		}
  6539  	}
  6540  
  6541  	if iNdEx > l {
  6542  		return io.ErrUnexpectedEOF
  6543  	}
  6544  	return nil
  6545  }
  6546  func (m *SearchResponse) Unmarshal(dAtA []byte) error {
  6547  	l := len(dAtA)
  6548  	iNdEx := 0
  6549  	for iNdEx < l {
  6550  		preIndex := iNdEx
  6551  		var wire uint64
  6552  		for shift := uint(0); ; shift += 7 {
  6553  			if shift >= 64 {
  6554  				return ErrIntOverflowTempo
  6555  			}
  6556  			if iNdEx >= l {
  6557  				return io.ErrUnexpectedEOF
  6558  			}
  6559  			b := dAtA[iNdEx]
  6560  			iNdEx++
  6561  			wire |= uint64(b&0x7F) << shift
  6562  			if b < 0x80 {
  6563  				break
  6564  			}
  6565  		}
  6566  		fieldNum := int32(wire >> 3)
  6567  		wireType := int(wire & 0x7)
  6568  		if wireType == 4 {
  6569  			return fmt.Errorf("proto: SearchResponse: wiretype end group for non-group")
  6570  		}
  6571  		if fieldNum <= 0 {
  6572  			return fmt.Errorf("proto: SearchResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  6573  		}
  6574  		switch fieldNum {
  6575  		case 1:
  6576  			if wireType != 2 {
  6577  				return fmt.Errorf("proto: wrong wireType = %d for field Traces", wireType)
  6578  			}
  6579  			var msglen int
  6580  			for shift := uint(0); ; shift += 7 {
  6581  				if shift >= 64 {
  6582  					return ErrIntOverflowTempo
  6583  				}
  6584  				if iNdEx >= l {
  6585  					return io.ErrUnexpectedEOF
  6586  				}
  6587  				b := dAtA[iNdEx]
  6588  				iNdEx++
  6589  				msglen |= int(b&0x7F) << shift
  6590  				if b < 0x80 {
  6591  					break
  6592  				}
  6593  			}
  6594  			if msglen < 0 {
  6595  				return ErrInvalidLengthTempo
  6596  			}
  6597  			postIndex := iNdEx + msglen
  6598  			if postIndex < 0 {
  6599  				return ErrInvalidLengthTempo
  6600  			}
  6601  			if postIndex > l {
  6602  				return io.ErrUnexpectedEOF
  6603  			}
  6604  			m.Traces = append(m.Traces, &TraceSearchMetadata{})
  6605  			if err := m.Traces[len(m.Traces)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6606  				return err
  6607  			}
  6608  			iNdEx = postIndex
  6609  		case 2:
  6610  			if wireType != 2 {
  6611  				return fmt.Errorf("proto: wrong wireType = %d for field Metrics", wireType)
  6612  			}
  6613  			var msglen int
  6614  			for shift := uint(0); ; shift += 7 {
  6615  				if shift >= 64 {
  6616  					return ErrIntOverflowTempo
  6617  				}
  6618  				if iNdEx >= l {
  6619  					return io.ErrUnexpectedEOF
  6620  				}
  6621  				b := dAtA[iNdEx]
  6622  				iNdEx++
  6623  				msglen |= int(b&0x7F) << shift
  6624  				if b < 0x80 {
  6625  					break
  6626  				}
  6627  			}
  6628  			if msglen < 0 {
  6629  				return ErrInvalidLengthTempo
  6630  			}
  6631  			postIndex := iNdEx + msglen
  6632  			if postIndex < 0 {
  6633  				return ErrInvalidLengthTempo
  6634  			}
  6635  			if postIndex > l {
  6636  				return io.ErrUnexpectedEOF
  6637  			}
  6638  			if m.Metrics == nil {
  6639  				m.Metrics = &SearchMetrics{}
  6640  			}
  6641  			if err := m.Metrics.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6642  				return err
  6643  			}
  6644  			iNdEx = postIndex
  6645  		default:
  6646  			iNdEx = preIndex
  6647  			skippy, err := skipTempo(dAtA[iNdEx:])
  6648  			if err != nil {
  6649  				return err
  6650  			}
  6651  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  6652  				return ErrInvalidLengthTempo
  6653  			}
  6654  			if (iNdEx + skippy) > l {
  6655  				return io.ErrUnexpectedEOF
  6656  			}
  6657  			iNdEx += skippy
  6658  		}
  6659  	}
  6660  
  6661  	if iNdEx > l {
  6662  		return io.ErrUnexpectedEOF
  6663  	}
  6664  	return nil
  6665  }
  6666  func (m *TraceSearchMetadata) Unmarshal(dAtA []byte) error {
  6667  	l := len(dAtA)
  6668  	iNdEx := 0
  6669  	for iNdEx < l {
  6670  		preIndex := iNdEx
  6671  		var wire uint64
  6672  		for shift := uint(0); ; shift += 7 {
  6673  			if shift >= 64 {
  6674  				return ErrIntOverflowTempo
  6675  			}
  6676  			if iNdEx >= l {
  6677  				return io.ErrUnexpectedEOF
  6678  			}
  6679  			b := dAtA[iNdEx]
  6680  			iNdEx++
  6681  			wire |= uint64(b&0x7F) << shift
  6682  			if b < 0x80 {
  6683  				break
  6684  			}
  6685  		}
  6686  		fieldNum := int32(wire >> 3)
  6687  		wireType := int(wire & 0x7)
  6688  		if wireType == 4 {
  6689  			return fmt.Errorf("proto: TraceSearchMetadata: wiretype end group for non-group")
  6690  		}
  6691  		if fieldNum <= 0 {
  6692  			return fmt.Errorf("proto: TraceSearchMetadata: illegal tag %d (wire type %d)", fieldNum, wire)
  6693  		}
  6694  		switch fieldNum {
  6695  		case 1:
  6696  			if wireType != 2 {
  6697  				return fmt.Errorf("proto: wrong wireType = %d for field TraceID", wireType)
  6698  			}
  6699  			var stringLen uint64
  6700  			for shift := uint(0); ; shift += 7 {
  6701  				if shift >= 64 {
  6702  					return ErrIntOverflowTempo
  6703  				}
  6704  				if iNdEx >= l {
  6705  					return io.ErrUnexpectedEOF
  6706  				}
  6707  				b := dAtA[iNdEx]
  6708  				iNdEx++
  6709  				stringLen |= uint64(b&0x7F) << shift
  6710  				if b < 0x80 {
  6711  					break
  6712  				}
  6713  			}
  6714  			intStringLen := int(stringLen)
  6715  			if intStringLen < 0 {
  6716  				return ErrInvalidLengthTempo
  6717  			}
  6718  			postIndex := iNdEx + intStringLen
  6719  			if postIndex < 0 {
  6720  				return ErrInvalidLengthTempo
  6721  			}
  6722  			if postIndex > l {
  6723  				return io.ErrUnexpectedEOF
  6724  			}
  6725  			m.TraceID = string(dAtA[iNdEx:postIndex])
  6726  			iNdEx = postIndex
  6727  		case 2:
  6728  			if wireType != 2 {
  6729  				return fmt.Errorf("proto: wrong wireType = %d for field RootServiceName", wireType)
  6730  			}
  6731  			var stringLen uint64
  6732  			for shift := uint(0); ; shift += 7 {
  6733  				if shift >= 64 {
  6734  					return ErrIntOverflowTempo
  6735  				}
  6736  				if iNdEx >= l {
  6737  					return io.ErrUnexpectedEOF
  6738  				}
  6739  				b := dAtA[iNdEx]
  6740  				iNdEx++
  6741  				stringLen |= uint64(b&0x7F) << shift
  6742  				if b < 0x80 {
  6743  					break
  6744  				}
  6745  			}
  6746  			intStringLen := int(stringLen)
  6747  			if intStringLen < 0 {
  6748  				return ErrInvalidLengthTempo
  6749  			}
  6750  			postIndex := iNdEx + intStringLen
  6751  			if postIndex < 0 {
  6752  				return ErrInvalidLengthTempo
  6753  			}
  6754  			if postIndex > l {
  6755  				return io.ErrUnexpectedEOF
  6756  			}
  6757  			m.RootServiceName = string(dAtA[iNdEx:postIndex])
  6758  			iNdEx = postIndex
  6759  		case 3:
  6760  			if wireType != 2 {
  6761  				return fmt.Errorf("proto: wrong wireType = %d for field RootTraceName", wireType)
  6762  			}
  6763  			var stringLen uint64
  6764  			for shift := uint(0); ; shift += 7 {
  6765  				if shift >= 64 {
  6766  					return ErrIntOverflowTempo
  6767  				}
  6768  				if iNdEx >= l {
  6769  					return io.ErrUnexpectedEOF
  6770  				}
  6771  				b := dAtA[iNdEx]
  6772  				iNdEx++
  6773  				stringLen |= uint64(b&0x7F) << shift
  6774  				if b < 0x80 {
  6775  					break
  6776  				}
  6777  			}
  6778  			intStringLen := int(stringLen)
  6779  			if intStringLen < 0 {
  6780  				return ErrInvalidLengthTempo
  6781  			}
  6782  			postIndex := iNdEx + intStringLen
  6783  			if postIndex < 0 {
  6784  				return ErrInvalidLengthTempo
  6785  			}
  6786  			if postIndex > l {
  6787  				return io.ErrUnexpectedEOF
  6788  			}
  6789  			m.RootTraceName = string(dAtA[iNdEx:postIndex])
  6790  			iNdEx = postIndex
  6791  		case 4:
  6792  			if wireType != 0 {
  6793  				return fmt.Errorf("proto: wrong wireType = %d for field StartTimeUnixNano", wireType)
  6794  			}
  6795  			m.StartTimeUnixNano = 0
  6796  			for shift := uint(0); ; shift += 7 {
  6797  				if shift >= 64 {
  6798  					return ErrIntOverflowTempo
  6799  				}
  6800  				if iNdEx >= l {
  6801  					return io.ErrUnexpectedEOF
  6802  				}
  6803  				b := dAtA[iNdEx]
  6804  				iNdEx++
  6805  				m.StartTimeUnixNano |= uint64(b&0x7F) << shift
  6806  				if b < 0x80 {
  6807  					break
  6808  				}
  6809  			}
  6810  		case 5:
  6811  			if wireType != 0 {
  6812  				return fmt.Errorf("proto: wrong wireType = %d for field DurationMs", wireType)
  6813  			}
  6814  			m.DurationMs = 0
  6815  			for shift := uint(0); ; shift += 7 {
  6816  				if shift >= 64 {
  6817  					return ErrIntOverflowTempo
  6818  				}
  6819  				if iNdEx >= l {
  6820  					return io.ErrUnexpectedEOF
  6821  				}
  6822  				b := dAtA[iNdEx]
  6823  				iNdEx++
  6824  				m.DurationMs |= uint32(b&0x7F) << shift
  6825  				if b < 0x80 {
  6826  					break
  6827  				}
  6828  			}
  6829  		case 6:
  6830  			if wireType != 2 {
  6831  				return fmt.Errorf("proto: wrong wireType = %d for field SpanSet", wireType)
  6832  			}
  6833  			var msglen int
  6834  			for shift := uint(0); ; shift += 7 {
  6835  				if shift >= 64 {
  6836  					return ErrIntOverflowTempo
  6837  				}
  6838  				if iNdEx >= l {
  6839  					return io.ErrUnexpectedEOF
  6840  				}
  6841  				b := dAtA[iNdEx]
  6842  				iNdEx++
  6843  				msglen |= int(b&0x7F) << shift
  6844  				if b < 0x80 {
  6845  					break
  6846  				}
  6847  			}
  6848  			if msglen < 0 {
  6849  				return ErrInvalidLengthTempo
  6850  			}
  6851  			postIndex := iNdEx + msglen
  6852  			if postIndex < 0 {
  6853  				return ErrInvalidLengthTempo
  6854  			}
  6855  			if postIndex > l {
  6856  				return io.ErrUnexpectedEOF
  6857  			}
  6858  			if m.SpanSet == nil {
  6859  				m.SpanSet = &SpanSet{}
  6860  			}
  6861  			if err := m.SpanSet.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6862  				return err
  6863  			}
  6864  			iNdEx = postIndex
  6865  		case 7:
  6866  			if wireType != 2 {
  6867  				return fmt.Errorf("proto: wrong wireType = %d for field SpanSets", wireType)
  6868  			}
  6869  			var msglen int
  6870  			for shift := uint(0); ; shift += 7 {
  6871  				if shift >= 64 {
  6872  					return ErrIntOverflowTempo
  6873  				}
  6874  				if iNdEx >= l {
  6875  					return io.ErrUnexpectedEOF
  6876  				}
  6877  				b := dAtA[iNdEx]
  6878  				iNdEx++
  6879  				msglen |= int(b&0x7F) << shift
  6880  				if b < 0x80 {
  6881  					break
  6882  				}
  6883  			}
  6884  			if msglen < 0 {
  6885  				return ErrInvalidLengthTempo
  6886  			}
  6887  			postIndex := iNdEx + msglen
  6888  			if postIndex < 0 {
  6889  				return ErrInvalidLengthTempo
  6890  			}
  6891  			if postIndex > l {
  6892  				return io.ErrUnexpectedEOF
  6893  			}
  6894  			m.SpanSets = append(m.SpanSets, &SpanSet{})
  6895  			if err := m.SpanSets[len(m.SpanSets)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6896  				return err
  6897  			}
  6898  			iNdEx = postIndex
  6899  		default:
  6900  			iNdEx = preIndex
  6901  			skippy, err := skipTempo(dAtA[iNdEx:])
  6902  			if err != nil {
  6903  				return err
  6904  			}
  6905  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  6906  				return ErrInvalidLengthTempo
  6907  			}
  6908  			if (iNdEx + skippy) > l {
  6909  				return io.ErrUnexpectedEOF
  6910  			}
  6911  			iNdEx += skippy
  6912  		}
  6913  	}
  6914  
  6915  	if iNdEx > l {
  6916  		return io.ErrUnexpectedEOF
  6917  	}
  6918  	return nil
  6919  }
  6920  func (m *SpanSet) Unmarshal(dAtA []byte) error {
  6921  	l := len(dAtA)
  6922  	iNdEx := 0
  6923  	for iNdEx < l {
  6924  		preIndex := iNdEx
  6925  		var wire uint64
  6926  		for shift := uint(0); ; shift += 7 {
  6927  			if shift >= 64 {
  6928  				return ErrIntOverflowTempo
  6929  			}
  6930  			if iNdEx >= l {
  6931  				return io.ErrUnexpectedEOF
  6932  			}
  6933  			b := dAtA[iNdEx]
  6934  			iNdEx++
  6935  			wire |= uint64(b&0x7F) << shift
  6936  			if b < 0x80 {
  6937  				break
  6938  			}
  6939  		}
  6940  		fieldNum := int32(wire >> 3)
  6941  		wireType := int(wire & 0x7)
  6942  		if wireType == 4 {
  6943  			return fmt.Errorf("proto: SpanSet: wiretype end group for non-group")
  6944  		}
  6945  		if fieldNum <= 0 {
  6946  			return fmt.Errorf("proto: SpanSet: illegal tag %d (wire type %d)", fieldNum, wire)
  6947  		}
  6948  		switch fieldNum {
  6949  		case 1:
  6950  			if wireType != 2 {
  6951  				return fmt.Errorf("proto: wrong wireType = %d for field Spans", wireType)
  6952  			}
  6953  			var msglen int
  6954  			for shift := uint(0); ; shift += 7 {
  6955  				if shift >= 64 {
  6956  					return ErrIntOverflowTempo
  6957  				}
  6958  				if iNdEx >= l {
  6959  					return io.ErrUnexpectedEOF
  6960  				}
  6961  				b := dAtA[iNdEx]
  6962  				iNdEx++
  6963  				msglen |= int(b&0x7F) << shift
  6964  				if b < 0x80 {
  6965  					break
  6966  				}
  6967  			}
  6968  			if msglen < 0 {
  6969  				return ErrInvalidLengthTempo
  6970  			}
  6971  			postIndex := iNdEx + msglen
  6972  			if postIndex < 0 {
  6973  				return ErrInvalidLengthTempo
  6974  			}
  6975  			if postIndex > l {
  6976  				return io.ErrUnexpectedEOF
  6977  			}
  6978  			m.Spans = append(m.Spans, &Span{})
  6979  			if err := m.Spans[len(m.Spans)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  6980  				return err
  6981  			}
  6982  			iNdEx = postIndex
  6983  		case 2:
  6984  			if wireType != 0 {
  6985  				return fmt.Errorf("proto: wrong wireType = %d for field Matched", wireType)
  6986  			}
  6987  			m.Matched = 0
  6988  			for shift := uint(0); ; shift += 7 {
  6989  				if shift >= 64 {
  6990  					return ErrIntOverflowTempo
  6991  				}
  6992  				if iNdEx >= l {
  6993  					return io.ErrUnexpectedEOF
  6994  				}
  6995  				b := dAtA[iNdEx]
  6996  				iNdEx++
  6997  				m.Matched |= uint32(b&0x7F) << shift
  6998  				if b < 0x80 {
  6999  					break
  7000  				}
  7001  			}
  7002  		case 3:
  7003  			if wireType != 2 {
  7004  				return fmt.Errorf("proto: wrong wireType = %d for field Attributes", wireType)
  7005  			}
  7006  			var msglen int
  7007  			for shift := uint(0); ; shift += 7 {
  7008  				if shift >= 64 {
  7009  					return ErrIntOverflowTempo
  7010  				}
  7011  				if iNdEx >= l {
  7012  					return io.ErrUnexpectedEOF
  7013  				}
  7014  				b := dAtA[iNdEx]
  7015  				iNdEx++
  7016  				msglen |= int(b&0x7F) << shift
  7017  				if b < 0x80 {
  7018  					break
  7019  				}
  7020  			}
  7021  			if msglen < 0 {
  7022  				return ErrInvalidLengthTempo
  7023  			}
  7024  			postIndex := iNdEx + msglen
  7025  			if postIndex < 0 {
  7026  				return ErrInvalidLengthTempo
  7027  			}
  7028  			if postIndex > l {
  7029  				return io.ErrUnexpectedEOF
  7030  			}
  7031  			m.Attributes = append(m.Attributes, &v1.KeyValue{})
  7032  			if err := m.Attributes[len(m.Attributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  7033  				return err
  7034  			}
  7035  			iNdEx = postIndex
  7036  		default:
  7037  			iNdEx = preIndex
  7038  			skippy, err := skipTempo(dAtA[iNdEx:])
  7039  			if err != nil {
  7040  				return err
  7041  			}
  7042  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  7043  				return ErrInvalidLengthTempo
  7044  			}
  7045  			if (iNdEx + skippy) > l {
  7046  				return io.ErrUnexpectedEOF
  7047  			}
  7048  			iNdEx += skippy
  7049  		}
  7050  	}
  7051  
  7052  	if iNdEx > l {
  7053  		return io.ErrUnexpectedEOF
  7054  	}
  7055  	return nil
  7056  }
  7057  func (m *Span) Unmarshal(dAtA []byte) error {
  7058  	l := len(dAtA)
  7059  	iNdEx := 0
  7060  	for iNdEx < l {
  7061  		preIndex := iNdEx
  7062  		var wire uint64
  7063  		for shift := uint(0); ; shift += 7 {
  7064  			if shift >= 64 {
  7065  				return ErrIntOverflowTempo
  7066  			}
  7067  			if iNdEx >= l {
  7068  				return io.ErrUnexpectedEOF
  7069  			}
  7070  			b := dAtA[iNdEx]
  7071  			iNdEx++
  7072  			wire |= uint64(b&0x7F) << shift
  7073  			if b < 0x80 {
  7074  				break
  7075  			}
  7076  		}
  7077  		fieldNum := int32(wire >> 3)
  7078  		wireType := int(wire & 0x7)
  7079  		if wireType == 4 {
  7080  			return fmt.Errorf("proto: Span: wiretype end group for non-group")
  7081  		}
  7082  		if fieldNum <= 0 {
  7083  			return fmt.Errorf("proto: Span: illegal tag %d (wire type %d)", fieldNum, wire)
  7084  		}
  7085  		switch fieldNum {
  7086  		case 1:
  7087  			if wireType != 2 {
  7088  				return fmt.Errorf("proto: wrong wireType = %d for field SpanID", wireType)
  7089  			}
  7090  			var stringLen uint64
  7091  			for shift := uint(0); ; shift += 7 {
  7092  				if shift >= 64 {
  7093  					return ErrIntOverflowTempo
  7094  				}
  7095  				if iNdEx >= l {
  7096  					return io.ErrUnexpectedEOF
  7097  				}
  7098  				b := dAtA[iNdEx]
  7099  				iNdEx++
  7100  				stringLen |= uint64(b&0x7F) << shift
  7101  				if b < 0x80 {
  7102  					break
  7103  				}
  7104  			}
  7105  			intStringLen := int(stringLen)
  7106  			if intStringLen < 0 {
  7107  				return ErrInvalidLengthTempo
  7108  			}
  7109  			postIndex := iNdEx + intStringLen
  7110  			if postIndex < 0 {
  7111  				return ErrInvalidLengthTempo
  7112  			}
  7113  			if postIndex > l {
  7114  				return io.ErrUnexpectedEOF
  7115  			}
  7116  			m.SpanID = string(dAtA[iNdEx:postIndex])
  7117  			iNdEx = postIndex
  7118  		case 2:
  7119  			if wireType != 2 {
  7120  				return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  7121  			}
  7122  			var stringLen uint64
  7123  			for shift := uint(0); ; shift += 7 {
  7124  				if shift >= 64 {
  7125  					return ErrIntOverflowTempo
  7126  				}
  7127  				if iNdEx >= l {
  7128  					return io.ErrUnexpectedEOF
  7129  				}
  7130  				b := dAtA[iNdEx]
  7131  				iNdEx++
  7132  				stringLen |= uint64(b&0x7F) << shift
  7133  				if b < 0x80 {
  7134  					break
  7135  				}
  7136  			}
  7137  			intStringLen := int(stringLen)
  7138  			if intStringLen < 0 {
  7139  				return ErrInvalidLengthTempo
  7140  			}
  7141  			postIndex := iNdEx + intStringLen
  7142  			if postIndex < 0 {
  7143  				return ErrInvalidLengthTempo
  7144  			}
  7145  			if postIndex > l {
  7146  				return io.ErrUnexpectedEOF
  7147  			}
  7148  			m.Name = string(dAtA[iNdEx:postIndex])
  7149  			iNdEx = postIndex
  7150  		case 3:
  7151  			if wireType != 0 {
  7152  				return fmt.Errorf("proto: wrong wireType = %d for field StartTimeUnixNano", wireType)
  7153  			}
  7154  			m.StartTimeUnixNano = 0
  7155  			for shift := uint(0); ; shift += 7 {
  7156  				if shift >= 64 {
  7157  					return ErrIntOverflowTempo
  7158  				}
  7159  				if iNdEx >= l {
  7160  					return io.ErrUnexpectedEOF
  7161  				}
  7162  				b := dAtA[iNdEx]
  7163  				iNdEx++
  7164  				m.StartTimeUnixNano |= uint64(b&0x7F) << shift
  7165  				if b < 0x80 {
  7166  					break
  7167  				}
  7168  			}
  7169  		case 4:
  7170  			if wireType != 0 {
  7171  				return fmt.Errorf("proto: wrong wireType = %d for field DurationNanos", wireType)
  7172  			}
  7173  			m.DurationNanos = 0
  7174  			for shift := uint(0); ; shift += 7 {
  7175  				if shift >= 64 {
  7176  					return ErrIntOverflowTempo
  7177  				}
  7178  				if iNdEx >= l {
  7179  					return io.ErrUnexpectedEOF
  7180  				}
  7181  				b := dAtA[iNdEx]
  7182  				iNdEx++
  7183  				m.DurationNanos |= uint64(b&0x7F) << shift
  7184  				if b < 0x80 {
  7185  					break
  7186  				}
  7187  			}
  7188  		case 5:
  7189  			if wireType != 2 {
  7190  				return fmt.Errorf("proto: wrong wireType = %d for field Attributes", wireType)
  7191  			}
  7192  			var msglen int
  7193  			for shift := uint(0); ; shift += 7 {
  7194  				if shift >= 64 {
  7195  					return ErrIntOverflowTempo
  7196  				}
  7197  				if iNdEx >= l {
  7198  					return io.ErrUnexpectedEOF
  7199  				}
  7200  				b := dAtA[iNdEx]
  7201  				iNdEx++
  7202  				msglen |= int(b&0x7F) << shift
  7203  				if b < 0x80 {
  7204  					break
  7205  				}
  7206  			}
  7207  			if msglen < 0 {
  7208  				return ErrInvalidLengthTempo
  7209  			}
  7210  			postIndex := iNdEx + msglen
  7211  			if postIndex < 0 {
  7212  				return ErrInvalidLengthTempo
  7213  			}
  7214  			if postIndex > l {
  7215  				return io.ErrUnexpectedEOF
  7216  			}
  7217  			m.Attributes = append(m.Attributes, &v1.KeyValue{})
  7218  			if err := m.Attributes[len(m.Attributes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  7219  				return err
  7220  			}
  7221  			iNdEx = postIndex
  7222  		default:
  7223  			iNdEx = preIndex
  7224  			skippy, err := skipTempo(dAtA[iNdEx:])
  7225  			if err != nil {
  7226  				return err
  7227  			}
  7228  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  7229  				return ErrInvalidLengthTempo
  7230  			}
  7231  			if (iNdEx + skippy) > l {
  7232  				return io.ErrUnexpectedEOF
  7233  			}
  7234  			iNdEx += skippy
  7235  		}
  7236  	}
  7237  
  7238  	if iNdEx > l {
  7239  		return io.ErrUnexpectedEOF
  7240  	}
  7241  	return nil
  7242  }
  7243  func (m *SearchMetrics) Unmarshal(dAtA []byte) error {
  7244  	l := len(dAtA)
  7245  	iNdEx := 0
  7246  	for iNdEx < l {
  7247  		preIndex := iNdEx
  7248  		var wire uint64
  7249  		for shift := uint(0); ; shift += 7 {
  7250  			if shift >= 64 {
  7251  				return ErrIntOverflowTempo
  7252  			}
  7253  			if iNdEx >= l {
  7254  				return io.ErrUnexpectedEOF
  7255  			}
  7256  			b := dAtA[iNdEx]
  7257  			iNdEx++
  7258  			wire |= uint64(b&0x7F) << shift
  7259  			if b < 0x80 {
  7260  				break
  7261  			}
  7262  		}
  7263  		fieldNum := int32(wire >> 3)
  7264  		wireType := int(wire & 0x7)
  7265  		if wireType == 4 {
  7266  			return fmt.Errorf("proto: SearchMetrics: wiretype end group for non-group")
  7267  		}
  7268  		if fieldNum <= 0 {
  7269  			return fmt.Errorf("proto: SearchMetrics: illegal tag %d (wire type %d)", fieldNum, wire)
  7270  		}
  7271  		switch fieldNum {
  7272  		case 1:
  7273  			if wireType != 0 {
  7274  				return fmt.Errorf("proto: wrong wireType = %d for field InspectedTraces", wireType)
  7275  			}
  7276  			m.InspectedTraces = 0
  7277  			for shift := uint(0); ; shift += 7 {
  7278  				if shift >= 64 {
  7279  					return ErrIntOverflowTempo
  7280  				}
  7281  				if iNdEx >= l {
  7282  					return io.ErrUnexpectedEOF
  7283  				}
  7284  				b := dAtA[iNdEx]
  7285  				iNdEx++
  7286  				m.InspectedTraces |= uint32(b&0x7F) << shift
  7287  				if b < 0x80 {
  7288  					break
  7289  				}
  7290  			}
  7291  		case 2:
  7292  			if wireType != 0 {
  7293  				return fmt.Errorf("proto: wrong wireType = %d for field InspectedBytes", wireType)
  7294  			}
  7295  			m.InspectedBytes = 0
  7296  			for shift := uint(0); ; shift += 7 {
  7297  				if shift >= 64 {
  7298  					return ErrIntOverflowTempo
  7299  				}
  7300  				if iNdEx >= l {
  7301  					return io.ErrUnexpectedEOF
  7302  				}
  7303  				b := dAtA[iNdEx]
  7304  				iNdEx++
  7305  				m.InspectedBytes |= uint64(b&0x7F) << shift
  7306  				if b < 0x80 {
  7307  					break
  7308  				}
  7309  			}
  7310  		case 3:
  7311  			if wireType != 0 {
  7312  				return fmt.Errorf("proto: wrong wireType = %d for field TotalBlocks", wireType)
  7313  			}
  7314  			m.TotalBlocks = 0
  7315  			for shift := uint(0); ; shift += 7 {
  7316  				if shift >= 64 {
  7317  					return ErrIntOverflowTempo
  7318  				}
  7319  				if iNdEx >= l {
  7320  					return io.ErrUnexpectedEOF
  7321  				}
  7322  				b := dAtA[iNdEx]
  7323  				iNdEx++
  7324  				m.TotalBlocks |= uint32(b&0x7F) << shift
  7325  				if b < 0x80 {
  7326  					break
  7327  				}
  7328  			}
  7329  		case 4:
  7330  			if wireType != 0 {
  7331  				return fmt.Errorf("proto: wrong wireType = %d for field CompletedJobs", wireType)
  7332  			}
  7333  			m.CompletedJobs = 0
  7334  			for shift := uint(0); ; shift += 7 {
  7335  				if shift >= 64 {
  7336  					return ErrIntOverflowTempo
  7337  				}
  7338  				if iNdEx >= l {
  7339  					return io.ErrUnexpectedEOF
  7340  				}
  7341  				b := dAtA[iNdEx]
  7342  				iNdEx++
  7343  				m.CompletedJobs |= uint32(b&0x7F) << shift
  7344  				if b < 0x80 {
  7345  					break
  7346  				}
  7347  			}
  7348  		case 5:
  7349  			if wireType != 0 {
  7350  				return fmt.Errorf("proto: wrong wireType = %d for field TotalJobs", wireType)
  7351  			}
  7352  			m.TotalJobs = 0
  7353  			for shift := uint(0); ; shift += 7 {
  7354  				if shift >= 64 {
  7355  					return ErrIntOverflowTempo
  7356  				}
  7357  				if iNdEx >= l {
  7358  					return io.ErrUnexpectedEOF
  7359  				}
  7360  				b := dAtA[iNdEx]
  7361  				iNdEx++
  7362  				m.TotalJobs |= uint32(b&0x7F) << shift
  7363  				if b < 0x80 {
  7364  					break
  7365  				}
  7366  			}
  7367  		case 6:
  7368  			if wireType != 0 {
  7369  				return fmt.Errorf("proto: wrong wireType = %d for field TotalBlockBytes", wireType)
  7370  			}
  7371  			m.TotalBlockBytes = 0
  7372  			for shift := uint(0); ; shift += 7 {
  7373  				if shift >= 64 {
  7374  					return ErrIntOverflowTempo
  7375  				}
  7376  				if iNdEx >= l {
  7377  					return io.ErrUnexpectedEOF
  7378  				}
  7379  				b := dAtA[iNdEx]
  7380  				iNdEx++
  7381  				m.TotalBlockBytes |= uint64(b&0x7F) << shift
  7382  				if b < 0x80 {
  7383  					break
  7384  				}
  7385  			}
  7386  		default:
  7387  			iNdEx = preIndex
  7388  			skippy, err := skipTempo(dAtA[iNdEx:])
  7389  			if err != nil {
  7390  				return err
  7391  			}
  7392  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  7393  				return ErrInvalidLengthTempo
  7394  			}
  7395  			if (iNdEx + skippy) > l {
  7396  				return io.ErrUnexpectedEOF
  7397  			}
  7398  			iNdEx += skippy
  7399  		}
  7400  	}
  7401  
  7402  	if iNdEx > l {
  7403  		return io.ErrUnexpectedEOF
  7404  	}
  7405  	return nil
  7406  }
  7407  func (m *SearchTagsRequest) Unmarshal(dAtA []byte) error {
  7408  	l := len(dAtA)
  7409  	iNdEx := 0
  7410  	for iNdEx < l {
  7411  		preIndex := iNdEx
  7412  		var wire uint64
  7413  		for shift := uint(0); ; shift += 7 {
  7414  			if shift >= 64 {
  7415  				return ErrIntOverflowTempo
  7416  			}
  7417  			if iNdEx >= l {
  7418  				return io.ErrUnexpectedEOF
  7419  			}
  7420  			b := dAtA[iNdEx]
  7421  			iNdEx++
  7422  			wire |= uint64(b&0x7F) << shift
  7423  			if b < 0x80 {
  7424  				break
  7425  			}
  7426  		}
  7427  		fieldNum := int32(wire >> 3)
  7428  		wireType := int(wire & 0x7)
  7429  		if wireType == 4 {
  7430  			return fmt.Errorf("proto: SearchTagsRequest: wiretype end group for non-group")
  7431  		}
  7432  		if fieldNum <= 0 {
  7433  			return fmt.Errorf("proto: SearchTagsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  7434  		}
  7435  		switch fieldNum {
  7436  		case 1:
  7437  			if wireType != 2 {
  7438  				return fmt.Errorf("proto: wrong wireType = %d for field Scope", wireType)
  7439  			}
  7440  			var stringLen uint64
  7441  			for shift := uint(0); ; shift += 7 {
  7442  				if shift >= 64 {
  7443  					return ErrIntOverflowTempo
  7444  				}
  7445  				if iNdEx >= l {
  7446  					return io.ErrUnexpectedEOF
  7447  				}
  7448  				b := dAtA[iNdEx]
  7449  				iNdEx++
  7450  				stringLen |= uint64(b&0x7F) << shift
  7451  				if b < 0x80 {
  7452  					break
  7453  				}
  7454  			}
  7455  			intStringLen := int(stringLen)
  7456  			if intStringLen < 0 {
  7457  				return ErrInvalidLengthTempo
  7458  			}
  7459  			postIndex := iNdEx + intStringLen
  7460  			if postIndex < 0 {
  7461  				return ErrInvalidLengthTempo
  7462  			}
  7463  			if postIndex > l {
  7464  				return io.ErrUnexpectedEOF
  7465  			}
  7466  			m.Scope = string(dAtA[iNdEx:postIndex])
  7467  			iNdEx = postIndex
  7468  		default:
  7469  			iNdEx = preIndex
  7470  			skippy, err := skipTempo(dAtA[iNdEx:])
  7471  			if err != nil {
  7472  				return err
  7473  			}
  7474  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  7475  				return ErrInvalidLengthTempo
  7476  			}
  7477  			if (iNdEx + skippy) > l {
  7478  				return io.ErrUnexpectedEOF
  7479  			}
  7480  			iNdEx += skippy
  7481  		}
  7482  	}
  7483  
  7484  	if iNdEx > l {
  7485  		return io.ErrUnexpectedEOF
  7486  	}
  7487  	return nil
  7488  }
  7489  func (m *SearchTagsResponse) Unmarshal(dAtA []byte) error {
  7490  	l := len(dAtA)
  7491  	iNdEx := 0
  7492  	for iNdEx < l {
  7493  		preIndex := iNdEx
  7494  		var wire uint64
  7495  		for shift := uint(0); ; shift += 7 {
  7496  			if shift >= 64 {
  7497  				return ErrIntOverflowTempo
  7498  			}
  7499  			if iNdEx >= l {
  7500  				return io.ErrUnexpectedEOF
  7501  			}
  7502  			b := dAtA[iNdEx]
  7503  			iNdEx++
  7504  			wire |= uint64(b&0x7F) << shift
  7505  			if b < 0x80 {
  7506  				break
  7507  			}
  7508  		}
  7509  		fieldNum := int32(wire >> 3)
  7510  		wireType := int(wire & 0x7)
  7511  		if wireType == 4 {
  7512  			return fmt.Errorf("proto: SearchTagsResponse: wiretype end group for non-group")
  7513  		}
  7514  		if fieldNum <= 0 {
  7515  			return fmt.Errorf("proto: SearchTagsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  7516  		}
  7517  		switch fieldNum {
  7518  		case 1:
  7519  			if wireType != 2 {
  7520  				return fmt.Errorf("proto: wrong wireType = %d for field TagNames", wireType)
  7521  			}
  7522  			var stringLen uint64
  7523  			for shift := uint(0); ; shift += 7 {
  7524  				if shift >= 64 {
  7525  					return ErrIntOverflowTempo
  7526  				}
  7527  				if iNdEx >= l {
  7528  					return io.ErrUnexpectedEOF
  7529  				}
  7530  				b := dAtA[iNdEx]
  7531  				iNdEx++
  7532  				stringLen |= uint64(b&0x7F) << shift
  7533  				if b < 0x80 {
  7534  					break
  7535  				}
  7536  			}
  7537  			intStringLen := int(stringLen)
  7538  			if intStringLen < 0 {
  7539  				return ErrInvalidLengthTempo
  7540  			}
  7541  			postIndex := iNdEx + intStringLen
  7542  			if postIndex < 0 {
  7543  				return ErrInvalidLengthTempo
  7544  			}
  7545  			if postIndex > l {
  7546  				return io.ErrUnexpectedEOF
  7547  			}
  7548  			m.TagNames = append(m.TagNames, string(dAtA[iNdEx:postIndex]))
  7549  			iNdEx = postIndex
  7550  		default:
  7551  			iNdEx = preIndex
  7552  			skippy, err := skipTempo(dAtA[iNdEx:])
  7553  			if err != nil {
  7554  				return err
  7555  			}
  7556  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  7557  				return ErrInvalidLengthTempo
  7558  			}
  7559  			if (iNdEx + skippy) > l {
  7560  				return io.ErrUnexpectedEOF
  7561  			}
  7562  			iNdEx += skippy
  7563  		}
  7564  	}
  7565  
  7566  	if iNdEx > l {
  7567  		return io.ErrUnexpectedEOF
  7568  	}
  7569  	return nil
  7570  }
  7571  func (m *SearchTagsV2Response) Unmarshal(dAtA []byte) error {
  7572  	l := len(dAtA)
  7573  	iNdEx := 0
  7574  	for iNdEx < l {
  7575  		preIndex := iNdEx
  7576  		var wire uint64
  7577  		for shift := uint(0); ; shift += 7 {
  7578  			if shift >= 64 {
  7579  				return ErrIntOverflowTempo
  7580  			}
  7581  			if iNdEx >= l {
  7582  				return io.ErrUnexpectedEOF
  7583  			}
  7584  			b := dAtA[iNdEx]
  7585  			iNdEx++
  7586  			wire |= uint64(b&0x7F) << shift
  7587  			if b < 0x80 {
  7588  				break
  7589  			}
  7590  		}
  7591  		fieldNum := int32(wire >> 3)
  7592  		wireType := int(wire & 0x7)
  7593  		if wireType == 4 {
  7594  			return fmt.Errorf("proto: SearchTagsV2Response: wiretype end group for non-group")
  7595  		}
  7596  		if fieldNum <= 0 {
  7597  			return fmt.Errorf("proto: SearchTagsV2Response: illegal tag %d (wire type %d)", fieldNum, wire)
  7598  		}
  7599  		switch fieldNum {
  7600  		case 1:
  7601  			if wireType != 2 {
  7602  				return fmt.Errorf("proto: wrong wireType = %d for field Scopes", wireType)
  7603  			}
  7604  			var msglen int
  7605  			for shift := uint(0); ; shift += 7 {
  7606  				if shift >= 64 {
  7607  					return ErrIntOverflowTempo
  7608  				}
  7609  				if iNdEx >= l {
  7610  					return io.ErrUnexpectedEOF
  7611  				}
  7612  				b := dAtA[iNdEx]
  7613  				iNdEx++
  7614  				msglen |= int(b&0x7F) << shift
  7615  				if b < 0x80 {
  7616  					break
  7617  				}
  7618  			}
  7619  			if msglen < 0 {
  7620  				return ErrInvalidLengthTempo
  7621  			}
  7622  			postIndex := iNdEx + msglen
  7623  			if postIndex < 0 {
  7624  				return ErrInvalidLengthTempo
  7625  			}
  7626  			if postIndex > l {
  7627  				return io.ErrUnexpectedEOF
  7628  			}
  7629  			m.Scopes = append(m.Scopes, &SearchTagsV2Scope{})
  7630  			if err := m.Scopes[len(m.Scopes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  7631  				return err
  7632  			}
  7633  			iNdEx = postIndex
  7634  		default:
  7635  			iNdEx = preIndex
  7636  			skippy, err := skipTempo(dAtA[iNdEx:])
  7637  			if err != nil {
  7638  				return err
  7639  			}
  7640  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  7641  				return ErrInvalidLengthTempo
  7642  			}
  7643  			if (iNdEx + skippy) > l {
  7644  				return io.ErrUnexpectedEOF
  7645  			}
  7646  			iNdEx += skippy
  7647  		}
  7648  	}
  7649  
  7650  	if iNdEx > l {
  7651  		return io.ErrUnexpectedEOF
  7652  	}
  7653  	return nil
  7654  }
  7655  func (m *SearchTagsV2Scope) Unmarshal(dAtA []byte) error {
  7656  	l := len(dAtA)
  7657  	iNdEx := 0
  7658  	for iNdEx < l {
  7659  		preIndex := iNdEx
  7660  		var wire uint64
  7661  		for shift := uint(0); ; shift += 7 {
  7662  			if shift >= 64 {
  7663  				return ErrIntOverflowTempo
  7664  			}
  7665  			if iNdEx >= l {
  7666  				return io.ErrUnexpectedEOF
  7667  			}
  7668  			b := dAtA[iNdEx]
  7669  			iNdEx++
  7670  			wire |= uint64(b&0x7F) << shift
  7671  			if b < 0x80 {
  7672  				break
  7673  			}
  7674  		}
  7675  		fieldNum := int32(wire >> 3)
  7676  		wireType := int(wire & 0x7)
  7677  		if wireType == 4 {
  7678  			return fmt.Errorf("proto: SearchTagsV2Scope: wiretype end group for non-group")
  7679  		}
  7680  		if fieldNum <= 0 {
  7681  			return fmt.Errorf("proto: SearchTagsV2Scope: illegal tag %d (wire type %d)", fieldNum, wire)
  7682  		}
  7683  		switch fieldNum {
  7684  		case 1:
  7685  			if wireType != 2 {
  7686  				return fmt.Errorf("proto: wrong wireType = %d for field Name", wireType)
  7687  			}
  7688  			var stringLen uint64
  7689  			for shift := uint(0); ; shift += 7 {
  7690  				if shift >= 64 {
  7691  					return ErrIntOverflowTempo
  7692  				}
  7693  				if iNdEx >= l {
  7694  					return io.ErrUnexpectedEOF
  7695  				}
  7696  				b := dAtA[iNdEx]
  7697  				iNdEx++
  7698  				stringLen |= uint64(b&0x7F) << shift
  7699  				if b < 0x80 {
  7700  					break
  7701  				}
  7702  			}
  7703  			intStringLen := int(stringLen)
  7704  			if intStringLen < 0 {
  7705  				return ErrInvalidLengthTempo
  7706  			}
  7707  			postIndex := iNdEx + intStringLen
  7708  			if postIndex < 0 {
  7709  				return ErrInvalidLengthTempo
  7710  			}
  7711  			if postIndex > l {
  7712  				return io.ErrUnexpectedEOF
  7713  			}
  7714  			m.Name = string(dAtA[iNdEx:postIndex])
  7715  			iNdEx = postIndex
  7716  		case 2:
  7717  			if wireType != 2 {
  7718  				return fmt.Errorf("proto: wrong wireType = %d for field Tags", wireType)
  7719  			}
  7720  			var stringLen uint64
  7721  			for shift := uint(0); ; shift += 7 {
  7722  				if shift >= 64 {
  7723  					return ErrIntOverflowTempo
  7724  				}
  7725  				if iNdEx >= l {
  7726  					return io.ErrUnexpectedEOF
  7727  				}
  7728  				b := dAtA[iNdEx]
  7729  				iNdEx++
  7730  				stringLen |= uint64(b&0x7F) << shift
  7731  				if b < 0x80 {
  7732  					break
  7733  				}
  7734  			}
  7735  			intStringLen := int(stringLen)
  7736  			if intStringLen < 0 {
  7737  				return ErrInvalidLengthTempo
  7738  			}
  7739  			postIndex := iNdEx + intStringLen
  7740  			if postIndex < 0 {
  7741  				return ErrInvalidLengthTempo
  7742  			}
  7743  			if postIndex > l {
  7744  				return io.ErrUnexpectedEOF
  7745  			}
  7746  			m.Tags = append(m.Tags, string(dAtA[iNdEx:postIndex]))
  7747  			iNdEx = postIndex
  7748  		default:
  7749  			iNdEx = preIndex
  7750  			skippy, err := skipTempo(dAtA[iNdEx:])
  7751  			if err != nil {
  7752  				return err
  7753  			}
  7754  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  7755  				return ErrInvalidLengthTempo
  7756  			}
  7757  			if (iNdEx + skippy) > l {
  7758  				return io.ErrUnexpectedEOF
  7759  			}
  7760  			iNdEx += skippy
  7761  		}
  7762  	}
  7763  
  7764  	if iNdEx > l {
  7765  		return io.ErrUnexpectedEOF
  7766  	}
  7767  	return nil
  7768  }
  7769  func (m *SearchTagValuesRequest) Unmarshal(dAtA []byte) error {
  7770  	l := len(dAtA)
  7771  	iNdEx := 0
  7772  	for iNdEx < l {
  7773  		preIndex := iNdEx
  7774  		var wire uint64
  7775  		for shift := uint(0); ; shift += 7 {
  7776  			if shift >= 64 {
  7777  				return ErrIntOverflowTempo
  7778  			}
  7779  			if iNdEx >= l {
  7780  				return io.ErrUnexpectedEOF
  7781  			}
  7782  			b := dAtA[iNdEx]
  7783  			iNdEx++
  7784  			wire |= uint64(b&0x7F) << shift
  7785  			if b < 0x80 {
  7786  				break
  7787  			}
  7788  		}
  7789  		fieldNum := int32(wire >> 3)
  7790  		wireType := int(wire & 0x7)
  7791  		if wireType == 4 {
  7792  			return fmt.Errorf("proto: SearchTagValuesRequest: wiretype end group for non-group")
  7793  		}
  7794  		if fieldNum <= 0 {
  7795  			return fmt.Errorf("proto: SearchTagValuesRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  7796  		}
  7797  		switch fieldNum {
  7798  		case 1:
  7799  			if wireType != 2 {
  7800  				return fmt.Errorf("proto: wrong wireType = %d for field TagName", wireType)
  7801  			}
  7802  			var stringLen uint64
  7803  			for shift := uint(0); ; shift += 7 {
  7804  				if shift >= 64 {
  7805  					return ErrIntOverflowTempo
  7806  				}
  7807  				if iNdEx >= l {
  7808  					return io.ErrUnexpectedEOF
  7809  				}
  7810  				b := dAtA[iNdEx]
  7811  				iNdEx++
  7812  				stringLen |= uint64(b&0x7F) << shift
  7813  				if b < 0x80 {
  7814  					break
  7815  				}
  7816  			}
  7817  			intStringLen := int(stringLen)
  7818  			if intStringLen < 0 {
  7819  				return ErrInvalidLengthTempo
  7820  			}
  7821  			postIndex := iNdEx + intStringLen
  7822  			if postIndex < 0 {
  7823  				return ErrInvalidLengthTempo
  7824  			}
  7825  			if postIndex > l {
  7826  				return io.ErrUnexpectedEOF
  7827  			}
  7828  			m.TagName = string(dAtA[iNdEx:postIndex])
  7829  			iNdEx = postIndex
  7830  		case 2:
  7831  			if wireType != 2 {
  7832  				return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType)
  7833  			}
  7834  			var stringLen uint64
  7835  			for shift := uint(0); ; shift += 7 {
  7836  				if shift >= 64 {
  7837  					return ErrIntOverflowTempo
  7838  				}
  7839  				if iNdEx >= l {
  7840  					return io.ErrUnexpectedEOF
  7841  				}
  7842  				b := dAtA[iNdEx]
  7843  				iNdEx++
  7844  				stringLen |= uint64(b&0x7F) << shift
  7845  				if b < 0x80 {
  7846  					break
  7847  				}
  7848  			}
  7849  			intStringLen := int(stringLen)
  7850  			if intStringLen < 0 {
  7851  				return ErrInvalidLengthTempo
  7852  			}
  7853  			postIndex := iNdEx + intStringLen
  7854  			if postIndex < 0 {
  7855  				return ErrInvalidLengthTempo
  7856  			}
  7857  			if postIndex > l {
  7858  				return io.ErrUnexpectedEOF
  7859  			}
  7860  			m.Query = string(dAtA[iNdEx:postIndex])
  7861  			iNdEx = postIndex
  7862  		default:
  7863  			iNdEx = preIndex
  7864  			skippy, err := skipTempo(dAtA[iNdEx:])
  7865  			if err != nil {
  7866  				return err
  7867  			}
  7868  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  7869  				return ErrInvalidLengthTempo
  7870  			}
  7871  			if (iNdEx + skippy) > l {
  7872  				return io.ErrUnexpectedEOF
  7873  			}
  7874  			iNdEx += skippy
  7875  		}
  7876  	}
  7877  
  7878  	if iNdEx > l {
  7879  		return io.ErrUnexpectedEOF
  7880  	}
  7881  	return nil
  7882  }
  7883  func (m *SearchTagValuesResponse) Unmarshal(dAtA []byte) error {
  7884  	l := len(dAtA)
  7885  	iNdEx := 0
  7886  	for iNdEx < l {
  7887  		preIndex := iNdEx
  7888  		var wire uint64
  7889  		for shift := uint(0); ; shift += 7 {
  7890  			if shift >= 64 {
  7891  				return ErrIntOverflowTempo
  7892  			}
  7893  			if iNdEx >= l {
  7894  				return io.ErrUnexpectedEOF
  7895  			}
  7896  			b := dAtA[iNdEx]
  7897  			iNdEx++
  7898  			wire |= uint64(b&0x7F) << shift
  7899  			if b < 0x80 {
  7900  				break
  7901  			}
  7902  		}
  7903  		fieldNum := int32(wire >> 3)
  7904  		wireType := int(wire & 0x7)
  7905  		if wireType == 4 {
  7906  			return fmt.Errorf("proto: SearchTagValuesResponse: wiretype end group for non-group")
  7907  		}
  7908  		if fieldNum <= 0 {
  7909  			return fmt.Errorf("proto: SearchTagValuesResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  7910  		}
  7911  		switch fieldNum {
  7912  		case 1:
  7913  			if wireType != 2 {
  7914  				return fmt.Errorf("proto: wrong wireType = %d for field TagValues", wireType)
  7915  			}
  7916  			var stringLen uint64
  7917  			for shift := uint(0); ; shift += 7 {
  7918  				if shift >= 64 {
  7919  					return ErrIntOverflowTempo
  7920  				}
  7921  				if iNdEx >= l {
  7922  					return io.ErrUnexpectedEOF
  7923  				}
  7924  				b := dAtA[iNdEx]
  7925  				iNdEx++
  7926  				stringLen |= uint64(b&0x7F) << shift
  7927  				if b < 0x80 {
  7928  					break
  7929  				}
  7930  			}
  7931  			intStringLen := int(stringLen)
  7932  			if intStringLen < 0 {
  7933  				return ErrInvalidLengthTempo
  7934  			}
  7935  			postIndex := iNdEx + intStringLen
  7936  			if postIndex < 0 {
  7937  				return ErrInvalidLengthTempo
  7938  			}
  7939  			if postIndex > l {
  7940  				return io.ErrUnexpectedEOF
  7941  			}
  7942  			m.TagValues = append(m.TagValues, string(dAtA[iNdEx:postIndex]))
  7943  			iNdEx = postIndex
  7944  		default:
  7945  			iNdEx = preIndex
  7946  			skippy, err := skipTempo(dAtA[iNdEx:])
  7947  			if err != nil {
  7948  				return err
  7949  			}
  7950  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  7951  				return ErrInvalidLengthTempo
  7952  			}
  7953  			if (iNdEx + skippy) > l {
  7954  				return io.ErrUnexpectedEOF
  7955  			}
  7956  			iNdEx += skippy
  7957  		}
  7958  	}
  7959  
  7960  	if iNdEx > l {
  7961  		return io.ErrUnexpectedEOF
  7962  	}
  7963  	return nil
  7964  }
  7965  func (m *TagValue) Unmarshal(dAtA []byte) error {
  7966  	l := len(dAtA)
  7967  	iNdEx := 0
  7968  	for iNdEx < l {
  7969  		preIndex := iNdEx
  7970  		var wire uint64
  7971  		for shift := uint(0); ; shift += 7 {
  7972  			if shift >= 64 {
  7973  				return ErrIntOverflowTempo
  7974  			}
  7975  			if iNdEx >= l {
  7976  				return io.ErrUnexpectedEOF
  7977  			}
  7978  			b := dAtA[iNdEx]
  7979  			iNdEx++
  7980  			wire |= uint64(b&0x7F) << shift
  7981  			if b < 0x80 {
  7982  				break
  7983  			}
  7984  		}
  7985  		fieldNum := int32(wire >> 3)
  7986  		wireType := int(wire & 0x7)
  7987  		if wireType == 4 {
  7988  			return fmt.Errorf("proto: TagValue: wiretype end group for non-group")
  7989  		}
  7990  		if fieldNum <= 0 {
  7991  			return fmt.Errorf("proto: TagValue: illegal tag %d (wire type %d)", fieldNum, wire)
  7992  		}
  7993  		switch fieldNum {
  7994  		case 1:
  7995  			if wireType != 2 {
  7996  				return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  7997  			}
  7998  			var stringLen uint64
  7999  			for shift := uint(0); ; shift += 7 {
  8000  				if shift >= 64 {
  8001  					return ErrIntOverflowTempo
  8002  				}
  8003  				if iNdEx >= l {
  8004  					return io.ErrUnexpectedEOF
  8005  				}
  8006  				b := dAtA[iNdEx]
  8007  				iNdEx++
  8008  				stringLen |= uint64(b&0x7F) << shift
  8009  				if b < 0x80 {
  8010  					break
  8011  				}
  8012  			}
  8013  			intStringLen := int(stringLen)
  8014  			if intStringLen < 0 {
  8015  				return ErrInvalidLengthTempo
  8016  			}
  8017  			postIndex := iNdEx + intStringLen
  8018  			if postIndex < 0 {
  8019  				return ErrInvalidLengthTempo
  8020  			}
  8021  			if postIndex > l {
  8022  				return io.ErrUnexpectedEOF
  8023  			}
  8024  			m.Type = string(dAtA[iNdEx:postIndex])
  8025  			iNdEx = postIndex
  8026  		case 2:
  8027  			if wireType != 2 {
  8028  				return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
  8029  			}
  8030  			var stringLen uint64
  8031  			for shift := uint(0); ; shift += 7 {
  8032  				if shift >= 64 {
  8033  					return ErrIntOverflowTempo
  8034  				}
  8035  				if iNdEx >= l {
  8036  					return io.ErrUnexpectedEOF
  8037  				}
  8038  				b := dAtA[iNdEx]
  8039  				iNdEx++
  8040  				stringLen |= uint64(b&0x7F) << shift
  8041  				if b < 0x80 {
  8042  					break
  8043  				}
  8044  			}
  8045  			intStringLen := int(stringLen)
  8046  			if intStringLen < 0 {
  8047  				return ErrInvalidLengthTempo
  8048  			}
  8049  			postIndex := iNdEx + intStringLen
  8050  			if postIndex < 0 {
  8051  				return ErrInvalidLengthTempo
  8052  			}
  8053  			if postIndex > l {
  8054  				return io.ErrUnexpectedEOF
  8055  			}
  8056  			m.Value = string(dAtA[iNdEx:postIndex])
  8057  			iNdEx = postIndex
  8058  		default:
  8059  			iNdEx = preIndex
  8060  			skippy, err := skipTempo(dAtA[iNdEx:])
  8061  			if err != nil {
  8062  				return err
  8063  			}
  8064  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  8065  				return ErrInvalidLengthTempo
  8066  			}
  8067  			if (iNdEx + skippy) > l {
  8068  				return io.ErrUnexpectedEOF
  8069  			}
  8070  			iNdEx += skippy
  8071  		}
  8072  	}
  8073  
  8074  	if iNdEx > l {
  8075  		return io.ErrUnexpectedEOF
  8076  	}
  8077  	return nil
  8078  }
  8079  func (m *SearchTagValuesV2Response) Unmarshal(dAtA []byte) error {
  8080  	l := len(dAtA)
  8081  	iNdEx := 0
  8082  	for iNdEx < l {
  8083  		preIndex := iNdEx
  8084  		var wire uint64
  8085  		for shift := uint(0); ; shift += 7 {
  8086  			if shift >= 64 {
  8087  				return ErrIntOverflowTempo
  8088  			}
  8089  			if iNdEx >= l {
  8090  				return io.ErrUnexpectedEOF
  8091  			}
  8092  			b := dAtA[iNdEx]
  8093  			iNdEx++
  8094  			wire |= uint64(b&0x7F) << shift
  8095  			if b < 0x80 {
  8096  				break
  8097  			}
  8098  		}
  8099  		fieldNum := int32(wire >> 3)
  8100  		wireType := int(wire & 0x7)
  8101  		if wireType == 4 {
  8102  			return fmt.Errorf("proto: SearchTagValuesV2Response: wiretype end group for non-group")
  8103  		}
  8104  		if fieldNum <= 0 {
  8105  			return fmt.Errorf("proto: SearchTagValuesV2Response: illegal tag %d (wire type %d)", fieldNum, wire)
  8106  		}
  8107  		switch fieldNum {
  8108  		case 1:
  8109  			if wireType != 2 {
  8110  				return fmt.Errorf("proto: wrong wireType = %d for field TagValues", wireType)
  8111  			}
  8112  			var msglen int
  8113  			for shift := uint(0); ; shift += 7 {
  8114  				if shift >= 64 {
  8115  					return ErrIntOverflowTempo
  8116  				}
  8117  				if iNdEx >= l {
  8118  					return io.ErrUnexpectedEOF
  8119  				}
  8120  				b := dAtA[iNdEx]
  8121  				iNdEx++
  8122  				msglen |= int(b&0x7F) << shift
  8123  				if b < 0x80 {
  8124  					break
  8125  				}
  8126  			}
  8127  			if msglen < 0 {
  8128  				return ErrInvalidLengthTempo
  8129  			}
  8130  			postIndex := iNdEx + msglen
  8131  			if postIndex < 0 {
  8132  				return ErrInvalidLengthTempo
  8133  			}
  8134  			if postIndex > l {
  8135  				return io.ErrUnexpectedEOF
  8136  			}
  8137  			m.TagValues = append(m.TagValues, &TagValue{})
  8138  			if err := m.TagValues[len(m.TagValues)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8139  				return err
  8140  			}
  8141  			iNdEx = postIndex
  8142  		default:
  8143  			iNdEx = preIndex
  8144  			skippy, err := skipTempo(dAtA[iNdEx:])
  8145  			if err != nil {
  8146  				return err
  8147  			}
  8148  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  8149  				return ErrInvalidLengthTempo
  8150  			}
  8151  			if (iNdEx + skippy) > l {
  8152  				return io.ErrUnexpectedEOF
  8153  			}
  8154  			iNdEx += skippy
  8155  		}
  8156  	}
  8157  
  8158  	if iNdEx > l {
  8159  		return io.ErrUnexpectedEOF
  8160  	}
  8161  	return nil
  8162  }
  8163  func (m *Trace) Unmarshal(dAtA []byte) error {
  8164  	l := len(dAtA)
  8165  	iNdEx := 0
  8166  	for iNdEx < l {
  8167  		preIndex := iNdEx
  8168  		var wire uint64
  8169  		for shift := uint(0); ; shift += 7 {
  8170  			if shift >= 64 {
  8171  				return ErrIntOverflowTempo
  8172  			}
  8173  			if iNdEx >= l {
  8174  				return io.ErrUnexpectedEOF
  8175  			}
  8176  			b := dAtA[iNdEx]
  8177  			iNdEx++
  8178  			wire |= uint64(b&0x7F) << shift
  8179  			if b < 0x80 {
  8180  				break
  8181  			}
  8182  		}
  8183  		fieldNum := int32(wire >> 3)
  8184  		wireType := int(wire & 0x7)
  8185  		if wireType == 4 {
  8186  			return fmt.Errorf("proto: Trace: wiretype end group for non-group")
  8187  		}
  8188  		if fieldNum <= 0 {
  8189  			return fmt.Errorf("proto: Trace: illegal tag %d (wire type %d)", fieldNum, wire)
  8190  		}
  8191  		switch fieldNum {
  8192  		case 1:
  8193  			if wireType != 2 {
  8194  				return fmt.Errorf("proto: wrong wireType = %d for field Batches", wireType)
  8195  			}
  8196  			var msglen int
  8197  			for shift := uint(0); ; shift += 7 {
  8198  				if shift >= 64 {
  8199  					return ErrIntOverflowTempo
  8200  				}
  8201  				if iNdEx >= l {
  8202  					return io.ErrUnexpectedEOF
  8203  				}
  8204  				b := dAtA[iNdEx]
  8205  				iNdEx++
  8206  				msglen |= int(b&0x7F) << shift
  8207  				if b < 0x80 {
  8208  					break
  8209  				}
  8210  			}
  8211  			if msglen < 0 {
  8212  				return ErrInvalidLengthTempo
  8213  			}
  8214  			postIndex := iNdEx + msglen
  8215  			if postIndex < 0 {
  8216  				return ErrInvalidLengthTempo
  8217  			}
  8218  			if postIndex > l {
  8219  				return io.ErrUnexpectedEOF
  8220  			}
  8221  			m.Batches = append(m.Batches, &v11.ResourceSpans{})
  8222  			if err := m.Batches[len(m.Batches)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8223  				return err
  8224  			}
  8225  			iNdEx = postIndex
  8226  		default:
  8227  			iNdEx = preIndex
  8228  			skippy, err := skipTempo(dAtA[iNdEx:])
  8229  			if err != nil {
  8230  				return err
  8231  			}
  8232  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  8233  				return ErrInvalidLengthTempo
  8234  			}
  8235  			if (iNdEx + skippy) > l {
  8236  				return io.ErrUnexpectedEOF
  8237  			}
  8238  			iNdEx += skippy
  8239  		}
  8240  	}
  8241  
  8242  	if iNdEx > l {
  8243  		return io.ErrUnexpectedEOF
  8244  	}
  8245  	return nil
  8246  }
  8247  func (m *PushResponse) Unmarshal(dAtA []byte) error {
  8248  	l := len(dAtA)
  8249  	iNdEx := 0
  8250  	for iNdEx < l {
  8251  		preIndex := iNdEx
  8252  		var wire uint64
  8253  		for shift := uint(0); ; shift += 7 {
  8254  			if shift >= 64 {
  8255  				return ErrIntOverflowTempo
  8256  			}
  8257  			if iNdEx >= l {
  8258  				return io.ErrUnexpectedEOF
  8259  			}
  8260  			b := dAtA[iNdEx]
  8261  			iNdEx++
  8262  			wire |= uint64(b&0x7F) << shift
  8263  			if b < 0x80 {
  8264  				break
  8265  			}
  8266  		}
  8267  		fieldNum := int32(wire >> 3)
  8268  		wireType := int(wire & 0x7)
  8269  		if wireType == 4 {
  8270  			return fmt.Errorf("proto: PushResponse: wiretype end group for non-group")
  8271  		}
  8272  		if fieldNum <= 0 {
  8273  			return fmt.Errorf("proto: PushResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  8274  		}
  8275  		switch fieldNum {
  8276  		default:
  8277  			iNdEx = preIndex
  8278  			skippy, err := skipTempo(dAtA[iNdEx:])
  8279  			if err != nil {
  8280  				return err
  8281  			}
  8282  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  8283  				return ErrInvalidLengthTempo
  8284  			}
  8285  			if (iNdEx + skippy) > l {
  8286  				return io.ErrUnexpectedEOF
  8287  			}
  8288  			iNdEx += skippy
  8289  		}
  8290  	}
  8291  
  8292  	if iNdEx > l {
  8293  		return io.ErrUnexpectedEOF
  8294  	}
  8295  	return nil
  8296  }
  8297  func (m *PushBytesRequest) Unmarshal(dAtA []byte) error {
  8298  	l := len(dAtA)
  8299  	iNdEx := 0
  8300  	for iNdEx < l {
  8301  		preIndex := iNdEx
  8302  		var wire uint64
  8303  		for shift := uint(0); ; shift += 7 {
  8304  			if shift >= 64 {
  8305  				return ErrIntOverflowTempo
  8306  			}
  8307  			if iNdEx >= l {
  8308  				return io.ErrUnexpectedEOF
  8309  			}
  8310  			b := dAtA[iNdEx]
  8311  			iNdEx++
  8312  			wire |= uint64(b&0x7F) << shift
  8313  			if b < 0x80 {
  8314  				break
  8315  			}
  8316  		}
  8317  		fieldNum := int32(wire >> 3)
  8318  		wireType := int(wire & 0x7)
  8319  		if wireType == 4 {
  8320  			return fmt.Errorf("proto: PushBytesRequest: wiretype end group for non-group")
  8321  		}
  8322  		if fieldNum <= 0 {
  8323  			return fmt.Errorf("proto: PushBytesRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  8324  		}
  8325  		switch fieldNum {
  8326  		case 2:
  8327  			if wireType != 2 {
  8328  				return fmt.Errorf("proto: wrong wireType = %d for field Traces", wireType)
  8329  			}
  8330  			var byteLen int
  8331  			for shift := uint(0); ; shift += 7 {
  8332  				if shift >= 64 {
  8333  					return ErrIntOverflowTempo
  8334  				}
  8335  				if iNdEx >= l {
  8336  					return io.ErrUnexpectedEOF
  8337  				}
  8338  				b := dAtA[iNdEx]
  8339  				iNdEx++
  8340  				byteLen |= int(b&0x7F) << shift
  8341  				if b < 0x80 {
  8342  					break
  8343  				}
  8344  			}
  8345  			if byteLen < 0 {
  8346  				return ErrInvalidLengthTempo
  8347  			}
  8348  			postIndex := iNdEx + byteLen
  8349  			if postIndex < 0 {
  8350  				return ErrInvalidLengthTempo
  8351  			}
  8352  			if postIndex > l {
  8353  				return io.ErrUnexpectedEOF
  8354  			}
  8355  			var v PreallocBytes
  8356  			m.Traces = append(m.Traces, v)
  8357  			if err := m.Traces[len(m.Traces)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8358  				return err
  8359  			}
  8360  			iNdEx = postIndex
  8361  		case 3:
  8362  			if wireType != 2 {
  8363  				return fmt.Errorf("proto: wrong wireType = %d for field Ids", wireType)
  8364  			}
  8365  			var byteLen int
  8366  			for shift := uint(0); ; shift += 7 {
  8367  				if shift >= 64 {
  8368  					return ErrIntOverflowTempo
  8369  				}
  8370  				if iNdEx >= l {
  8371  					return io.ErrUnexpectedEOF
  8372  				}
  8373  				b := dAtA[iNdEx]
  8374  				iNdEx++
  8375  				byteLen |= int(b&0x7F) << shift
  8376  				if b < 0x80 {
  8377  					break
  8378  				}
  8379  			}
  8380  			if byteLen < 0 {
  8381  				return ErrInvalidLengthTempo
  8382  			}
  8383  			postIndex := iNdEx + byteLen
  8384  			if postIndex < 0 {
  8385  				return ErrInvalidLengthTempo
  8386  			}
  8387  			if postIndex > l {
  8388  				return io.ErrUnexpectedEOF
  8389  			}
  8390  			var v PreallocBytes
  8391  			m.Ids = append(m.Ids, v)
  8392  			if err := m.Ids[len(m.Ids)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8393  				return err
  8394  			}
  8395  			iNdEx = postIndex
  8396  		case 4:
  8397  			if wireType != 2 {
  8398  				return fmt.Errorf("proto: wrong wireType = %d for field SearchData", wireType)
  8399  			}
  8400  			var byteLen int
  8401  			for shift := uint(0); ; shift += 7 {
  8402  				if shift >= 64 {
  8403  					return ErrIntOverflowTempo
  8404  				}
  8405  				if iNdEx >= l {
  8406  					return io.ErrUnexpectedEOF
  8407  				}
  8408  				b := dAtA[iNdEx]
  8409  				iNdEx++
  8410  				byteLen |= int(b&0x7F) << shift
  8411  				if b < 0x80 {
  8412  					break
  8413  				}
  8414  			}
  8415  			if byteLen < 0 {
  8416  				return ErrInvalidLengthTempo
  8417  			}
  8418  			postIndex := iNdEx + byteLen
  8419  			if postIndex < 0 {
  8420  				return ErrInvalidLengthTempo
  8421  			}
  8422  			if postIndex > l {
  8423  				return io.ErrUnexpectedEOF
  8424  			}
  8425  			var v PreallocBytes
  8426  			m.SearchData = append(m.SearchData, v)
  8427  			if err := m.SearchData[len(m.SearchData)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8428  				return err
  8429  			}
  8430  			iNdEx = postIndex
  8431  		default:
  8432  			iNdEx = preIndex
  8433  			skippy, err := skipTempo(dAtA[iNdEx:])
  8434  			if err != nil {
  8435  				return err
  8436  			}
  8437  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  8438  				return ErrInvalidLengthTempo
  8439  			}
  8440  			if (iNdEx + skippy) > l {
  8441  				return io.ErrUnexpectedEOF
  8442  			}
  8443  			iNdEx += skippy
  8444  		}
  8445  	}
  8446  
  8447  	if iNdEx > l {
  8448  		return io.ErrUnexpectedEOF
  8449  	}
  8450  	return nil
  8451  }
  8452  func (m *PushSpansRequest) Unmarshal(dAtA []byte) error {
  8453  	l := len(dAtA)
  8454  	iNdEx := 0
  8455  	for iNdEx < l {
  8456  		preIndex := iNdEx
  8457  		var wire uint64
  8458  		for shift := uint(0); ; shift += 7 {
  8459  			if shift >= 64 {
  8460  				return ErrIntOverflowTempo
  8461  			}
  8462  			if iNdEx >= l {
  8463  				return io.ErrUnexpectedEOF
  8464  			}
  8465  			b := dAtA[iNdEx]
  8466  			iNdEx++
  8467  			wire |= uint64(b&0x7F) << shift
  8468  			if b < 0x80 {
  8469  				break
  8470  			}
  8471  		}
  8472  		fieldNum := int32(wire >> 3)
  8473  		wireType := int(wire & 0x7)
  8474  		if wireType == 4 {
  8475  			return fmt.Errorf("proto: PushSpansRequest: wiretype end group for non-group")
  8476  		}
  8477  		if fieldNum <= 0 {
  8478  			return fmt.Errorf("proto: PushSpansRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  8479  		}
  8480  		switch fieldNum {
  8481  		case 1:
  8482  			if wireType != 2 {
  8483  				return fmt.Errorf("proto: wrong wireType = %d for field Batches", wireType)
  8484  			}
  8485  			var msglen int
  8486  			for shift := uint(0); ; shift += 7 {
  8487  				if shift >= 64 {
  8488  					return ErrIntOverflowTempo
  8489  				}
  8490  				if iNdEx >= l {
  8491  					return io.ErrUnexpectedEOF
  8492  				}
  8493  				b := dAtA[iNdEx]
  8494  				iNdEx++
  8495  				msglen |= int(b&0x7F) << shift
  8496  				if b < 0x80 {
  8497  					break
  8498  				}
  8499  			}
  8500  			if msglen < 0 {
  8501  				return ErrInvalidLengthTempo
  8502  			}
  8503  			postIndex := iNdEx + msglen
  8504  			if postIndex < 0 {
  8505  				return ErrInvalidLengthTempo
  8506  			}
  8507  			if postIndex > l {
  8508  				return io.ErrUnexpectedEOF
  8509  			}
  8510  			m.Batches = append(m.Batches, &v11.ResourceSpans{})
  8511  			if err := m.Batches[len(m.Batches)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8512  				return err
  8513  			}
  8514  			iNdEx = postIndex
  8515  		default:
  8516  			iNdEx = preIndex
  8517  			skippy, err := skipTempo(dAtA[iNdEx:])
  8518  			if err != nil {
  8519  				return err
  8520  			}
  8521  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  8522  				return ErrInvalidLengthTempo
  8523  			}
  8524  			if (iNdEx + skippy) > l {
  8525  				return io.ErrUnexpectedEOF
  8526  			}
  8527  			iNdEx += skippy
  8528  		}
  8529  	}
  8530  
  8531  	if iNdEx > l {
  8532  		return io.ErrUnexpectedEOF
  8533  	}
  8534  	return nil
  8535  }
  8536  func (m *TraceBytes) Unmarshal(dAtA []byte) error {
  8537  	l := len(dAtA)
  8538  	iNdEx := 0
  8539  	for iNdEx < l {
  8540  		preIndex := iNdEx
  8541  		var wire uint64
  8542  		for shift := uint(0); ; shift += 7 {
  8543  			if shift >= 64 {
  8544  				return ErrIntOverflowTempo
  8545  			}
  8546  			if iNdEx >= l {
  8547  				return io.ErrUnexpectedEOF
  8548  			}
  8549  			b := dAtA[iNdEx]
  8550  			iNdEx++
  8551  			wire |= uint64(b&0x7F) << shift
  8552  			if b < 0x80 {
  8553  				break
  8554  			}
  8555  		}
  8556  		fieldNum := int32(wire >> 3)
  8557  		wireType := int(wire & 0x7)
  8558  		if wireType == 4 {
  8559  			return fmt.Errorf("proto: TraceBytes: wiretype end group for non-group")
  8560  		}
  8561  		if fieldNum <= 0 {
  8562  			return fmt.Errorf("proto: TraceBytes: illegal tag %d (wire type %d)", fieldNum, wire)
  8563  		}
  8564  		switch fieldNum {
  8565  		case 1:
  8566  			if wireType != 2 {
  8567  				return fmt.Errorf("proto: wrong wireType = %d for field Traces", wireType)
  8568  			}
  8569  			var byteLen int
  8570  			for shift := uint(0); ; shift += 7 {
  8571  				if shift >= 64 {
  8572  					return ErrIntOverflowTempo
  8573  				}
  8574  				if iNdEx >= l {
  8575  					return io.ErrUnexpectedEOF
  8576  				}
  8577  				b := dAtA[iNdEx]
  8578  				iNdEx++
  8579  				byteLen |= int(b&0x7F) << shift
  8580  				if b < 0x80 {
  8581  					break
  8582  				}
  8583  			}
  8584  			if byteLen < 0 {
  8585  				return ErrInvalidLengthTempo
  8586  			}
  8587  			postIndex := iNdEx + byteLen
  8588  			if postIndex < 0 {
  8589  				return ErrInvalidLengthTempo
  8590  			}
  8591  			if postIndex > l {
  8592  				return io.ErrUnexpectedEOF
  8593  			}
  8594  			m.Traces = append(m.Traces, make([]byte, postIndex-iNdEx))
  8595  			copy(m.Traces[len(m.Traces)-1], dAtA[iNdEx:postIndex])
  8596  			iNdEx = postIndex
  8597  		default:
  8598  			iNdEx = preIndex
  8599  			skippy, err := skipTempo(dAtA[iNdEx:])
  8600  			if err != nil {
  8601  				return err
  8602  			}
  8603  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  8604  				return ErrInvalidLengthTempo
  8605  			}
  8606  			if (iNdEx + skippy) > l {
  8607  				return io.ErrUnexpectedEOF
  8608  			}
  8609  			iNdEx += skippy
  8610  		}
  8611  	}
  8612  
  8613  	if iNdEx > l {
  8614  		return io.ErrUnexpectedEOF
  8615  	}
  8616  	return nil
  8617  }
  8618  func (m *LinkSlice) Unmarshal(dAtA []byte) error {
  8619  	l := len(dAtA)
  8620  	iNdEx := 0
  8621  	for iNdEx < l {
  8622  		preIndex := iNdEx
  8623  		var wire uint64
  8624  		for shift := uint(0); ; shift += 7 {
  8625  			if shift >= 64 {
  8626  				return ErrIntOverflowTempo
  8627  			}
  8628  			if iNdEx >= l {
  8629  				return io.ErrUnexpectedEOF
  8630  			}
  8631  			b := dAtA[iNdEx]
  8632  			iNdEx++
  8633  			wire |= uint64(b&0x7F) << shift
  8634  			if b < 0x80 {
  8635  				break
  8636  			}
  8637  		}
  8638  		fieldNum := int32(wire >> 3)
  8639  		wireType := int(wire & 0x7)
  8640  		if wireType == 4 {
  8641  			return fmt.Errorf("proto: LinkSlice: wiretype end group for non-group")
  8642  		}
  8643  		if fieldNum <= 0 {
  8644  			return fmt.Errorf("proto: LinkSlice: illegal tag %d (wire type %d)", fieldNum, wire)
  8645  		}
  8646  		switch fieldNum {
  8647  		case 1:
  8648  			if wireType != 2 {
  8649  				return fmt.Errorf("proto: wrong wireType = %d for field Links", wireType)
  8650  			}
  8651  			var msglen int
  8652  			for shift := uint(0); ; shift += 7 {
  8653  				if shift >= 64 {
  8654  					return ErrIntOverflowTempo
  8655  				}
  8656  				if iNdEx >= l {
  8657  					return io.ErrUnexpectedEOF
  8658  				}
  8659  				b := dAtA[iNdEx]
  8660  				iNdEx++
  8661  				msglen |= int(b&0x7F) << shift
  8662  				if b < 0x80 {
  8663  					break
  8664  				}
  8665  			}
  8666  			if msglen < 0 {
  8667  				return ErrInvalidLengthTempo
  8668  			}
  8669  			postIndex := iNdEx + msglen
  8670  			if postIndex < 0 {
  8671  				return ErrInvalidLengthTempo
  8672  			}
  8673  			if postIndex > l {
  8674  				return io.ErrUnexpectedEOF
  8675  			}
  8676  			m.Links = append(m.Links, &v11.Span_Link{})
  8677  			if err := m.Links[len(m.Links)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  8678  				return err
  8679  			}
  8680  			iNdEx = postIndex
  8681  		default:
  8682  			iNdEx = preIndex
  8683  			skippy, err := skipTempo(dAtA[iNdEx:])
  8684  			if err != nil {
  8685  				return err
  8686  			}
  8687  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  8688  				return ErrInvalidLengthTempo
  8689  			}
  8690  			if (iNdEx + skippy) > l {
  8691  				return io.ErrUnexpectedEOF
  8692  			}
  8693  			iNdEx += skippy
  8694  		}
  8695  	}
  8696  
  8697  	if iNdEx > l {
  8698  		return io.ErrUnexpectedEOF
  8699  	}
  8700  	return nil
  8701  }
  8702  func (m *SpanMetricsRequest) Unmarshal(dAtA []byte) error {
  8703  	l := len(dAtA)
  8704  	iNdEx := 0
  8705  	for iNdEx < l {
  8706  		preIndex := iNdEx
  8707  		var wire uint64
  8708  		for shift := uint(0); ; shift += 7 {
  8709  			if shift >= 64 {
  8710  				return ErrIntOverflowTempo
  8711  			}
  8712  			if iNdEx >= l {
  8713  				return io.ErrUnexpectedEOF
  8714  			}
  8715  			b := dAtA[iNdEx]
  8716  			iNdEx++
  8717  			wire |= uint64(b&0x7F) << shift
  8718  			if b < 0x80 {
  8719  				break
  8720  			}
  8721  		}
  8722  		fieldNum := int32(wire >> 3)
  8723  		wireType := int(wire & 0x7)
  8724  		if wireType == 4 {
  8725  			return fmt.Errorf("proto: SpanMetricsRequest: wiretype end group for non-group")
  8726  		}
  8727  		if fieldNum <= 0 {
  8728  			return fmt.Errorf("proto: SpanMetricsRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  8729  		}
  8730  		switch fieldNum {
  8731  		case 1:
  8732  			if wireType != 2 {
  8733  				return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType)
  8734  			}
  8735  			var stringLen uint64
  8736  			for shift := uint(0); ; shift += 7 {
  8737  				if shift >= 64 {
  8738  					return ErrIntOverflowTempo
  8739  				}
  8740  				if iNdEx >= l {
  8741  					return io.ErrUnexpectedEOF
  8742  				}
  8743  				b := dAtA[iNdEx]
  8744  				iNdEx++
  8745  				stringLen |= uint64(b&0x7F) << shift
  8746  				if b < 0x80 {
  8747  					break
  8748  				}
  8749  			}
  8750  			intStringLen := int(stringLen)
  8751  			if intStringLen < 0 {
  8752  				return ErrInvalidLengthTempo
  8753  			}
  8754  			postIndex := iNdEx + intStringLen
  8755  			if postIndex < 0 {
  8756  				return ErrInvalidLengthTempo
  8757  			}
  8758  			if postIndex > l {
  8759  				return io.ErrUnexpectedEOF
  8760  			}
  8761  			m.Query = string(dAtA[iNdEx:postIndex])
  8762  			iNdEx = postIndex
  8763  		case 2:
  8764  			if wireType != 2 {
  8765  				return fmt.Errorf("proto: wrong wireType = %d for field GroupBy", wireType)
  8766  			}
  8767  			var stringLen uint64
  8768  			for shift := uint(0); ; shift += 7 {
  8769  				if shift >= 64 {
  8770  					return ErrIntOverflowTempo
  8771  				}
  8772  				if iNdEx >= l {
  8773  					return io.ErrUnexpectedEOF
  8774  				}
  8775  				b := dAtA[iNdEx]
  8776  				iNdEx++
  8777  				stringLen |= uint64(b&0x7F) << shift
  8778  				if b < 0x80 {
  8779  					break
  8780  				}
  8781  			}
  8782  			intStringLen := int(stringLen)
  8783  			if intStringLen < 0 {
  8784  				return ErrInvalidLengthTempo
  8785  			}
  8786  			postIndex := iNdEx + intStringLen
  8787  			if postIndex < 0 {
  8788  				return ErrInvalidLengthTempo
  8789  			}
  8790  			if postIndex > l {
  8791  				return io.ErrUnexpectedEOF
  8792  			}
  8793  			m.GroupBy = string(dAtA[iNdEx:postIndex])
  8794  			iNdEx = postIndex
  8795  		case 3:
  8796  			if wireType != 0 {
  8797  				return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType)
  8798  			}
  8799  			m.Limit = 0
  8800  			for shift := uint(0); ; shift += 7 {
  8801  				if shift >= 64 {
  8802  					return ErrIntOverflowTempo
  8803  				}
  8804  				if iNdEx >= l {
  8805  					return io.ErrUnexpectedEOF
  8806  				}
  8807  				b := dAtA[iNdEx]
  8808  				iNdEx++
  8809  				m.Limit |= uint64(b&0x7F) << shift
  8810  				if b < 0x80 {
  8811  					break
  8812  				}
  8813  			}
  8814  		case 4:
  8815  			if wireType != 0 {
  8816  				return fmt.Errorf("proto: wrong wireType = %d for field Start", wireType)
  8817  			}
  8818  			m.Start = 0
  8819  			for shift := uint(0); ; shift += 7 {
  8820  				if shift >= 64 {
  8821  					return ErrIntOverflowTempo
  8822  				}
  8823  				if iNdEx >= l {
  8824  					return io.ErrUnexpectedEOF
  8825  				}
  8826  				b := dAtA[iNdEx]
  8827  				iNdEx++
  8828  				m.Start |= uint32(b&0x7F) << shift
  8829  				if b < 0x80 {
  8830  					break
  8831  				}
  8832  			}
  8833  		case 5:
  8834  			if wireType != 0 {
  8835  				return fmt.Errorf("proto: wrong wireType = %d for field End", wireType)
  8836  			}
  8837  			m.End = 0
  8838  			for shift := uint(0); ; shift += 7 {
  8839  				if shift >= 64 {
  8840  					return ErrIntOverflowTempo
  8841  				}
  8842  				if iNdEx >= l {
  8843  					return io.ErrUnexpectedEOF
  8844  				}
  8845  				b := dAtA[iNdEx]
  8846  				iNdEx++
  8847  				m.End |= uint32(b&0x7F) << shift
  8848  				if b < 0x80 {
  8849  					break
  8850  				}
  8851  			}
  8852  		default:
  8853  			iNdEx = preIndex
  8854  			skippy, err := skipTempo(dAtA[iNdEx:])
  8855  			if err != nil {
  8856  				return err
  8857  			}
  8858  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  8859  				return ErrInvalidLengthTempo
  8860  			}
  8861  			if (iNdEx + skippy) > l {
  8862  				return io.ErrUnexpectedEOF
  8863  			}
  8864  			iNdEx += skippy
  8865  		}
  8866  	}
  8867  
  8868  	if iNdEx > l {
  8869  		return io.ErrUnexpectedEOF
  8870  	}
  8871  	return nil
  8872  }
  8873  func (m *SpanMetricsSummaryRequest) Unmarshal(dAtA []byte) error {
  8874  	l := len(dAtA)
  8875  	iNdEx := 0
  8876  	for iNdEx < l {
  8877  		preIndex := iNdEx
  8878  		var wire uint64
  8879  		for shift := uint(0); ; shift += 7 {
  8880  			if shift >= 64 {
  8881  				return ErrIntOverflowTempo
  8882  			}
  8883  			if iNdEx >= l {
  8884  				return io.ErrUnexpectedEOF
  8885  			}
  8886  			b := dAtA[iNdEx]
  8887  			iNdEx++
  8888  			wire |= uint64(b&0x7F) << shift
  8889  			if b < 0x80 {
  8890  				break
  8891  			}
  8892  		}
  8893  		fieldNum := int32(wire >> 3)
  8894  		wireType := int(wire & 0x7)
  8895  		if wireType == 4 {
  8896  			return fmt.Errorf("proto: SpanMetricsSummaryRequest: wiretype end group for non-group")
  8897  		}
  8898  		if fieldNum <= 0 {
  8899  			return fmt.Errorf("proto: SpanMetricsSummaryRequest: illegal tag %d (wire type %d)", fieldNum, wire)
  8900  		}
  8901  		switch fieldNum {
  8902  		case 1:
  8903  			if wireType != 2 {
  8904  				return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType)
  8905  			}
  8906  			var stringLen uint64
  8907  			for shift := uint(0); ; shift += 7 {
  8908  				if shift >= 64 {
  8909  					return ErrIntOverflowTempo
  8910  				}
  8911  				if iNdEx >= l {
  8912  					return io.ErrUnexpectedEOF
  8913  				}
  8914  				b := dAtA[iNdEx]
  8915  				iNdEx++
  8916  				stringLen |= uint64(b&0x7F) << shift
  8917  				if b < 0x80 {
  8918  					break
  8919  				}
  8920  			}
  8921  			intStringLen := int(stringLen)
  8922  			if intStringLen < 0 {
  8923  				return ErrInvalidLengthTempo
  8924  			}
  8925  			postIndex := iNdEx + intStringLen
  8926  			if postIndex < 0 {
  8927  				return ErrInvalidLengthTempo
  8928  			}
  8929  			if postIndex > l {
  8930  				return io.ErrUnexpectedEOF
  8931  			}
  8932  			m.Query = string(dAtA[iNdEx:postIndex])
  8933  			iNdEx = postIndex
  8934  		case 2:
  8935  			if wireType != 2 {
  8936  				return fmt.Errorf("proto: wrong wireType = %d for field GroupBy", wireType)
  8937  			}
  8938  			var stringLen uint64
  8939  			for shift := uint(0); ; shift += 7 {
  8940  				if shift >= 64 {
  8941  					return ErrIntOverflowTempo
  8942  				}
  8943  				if iNdEx >= l {
  8944  					return io.ErrUnexpectedEOF
  8945  				}
  8946  				b := dAtA[iNdEx]
  8947  				iNdEx++
  8948  				stringLen |= uint64(b&0x7F) << shift
  8949  				if b < 0x80 {
  8950  					break
  8951  				}
  8952  			}
  8953  			intStringLen := int(stringLen)
  8954  			if intStringLen < 0 {
  8955  				return ErrInvalidLengthTempo
  8956  			}
  8957  			postIndex := iNdEx + intStringLen
  8958  			if postIndex < 0 {
  8959  				return ErrInvalidLengthTempo
  8960  			}
  8961  			if postIndex > l {
  8962  				return io.ErrUnexpectedEOF
  8963  			}
  8964  			m.GroupBy = string(dAtA[iNdEx:postIndex])
  8965  			iNdEx = postIndex
  8966  		case 3:
  8967  			if wireType != 0 {
  8968  				return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType)
  8969  			}
  8970  			m.Limit = 0
  8971  			for shift := uint(0); ; shift += 7 {
  8972  				if shift >= 64 {
  8973  					return ErrIntOverflowTempo
  8974  				}
  8975  				if iNdEx >= l {
  8976  					return io.ErrUnexpectedEOF
  8977  				}
  8978  				b := dAtA[iNdEx]
  8979  				iNdEx++
  8980  				m.Limit |= uint64(b&0x7F) << shift
  8981  				if b < 0x80 {
  8982  					break
  8983  				}
  8984  			}
  8985  		case 4:
  8986  			if wireType != 0 {
  8987  				return fmt.Errorf("proto: wrong wireType = %d for field Start", wireType)
  8988  			}
  8989  			m.Start = 0
  8990  			for shift := uint(0); ; shift += 7 {
  8991  				if shift >= 64 {
  8992  					return ErrIntOverflowTempo
  8993  				}
  8994  				if iNdEx >= l {
  8995  					return io.ErrUnexpectedEOF
  8996  				}
  8997  				b := dAtA[iNdEx]
  8998  				iNdEx++
  8999  				m.Start |= uint32(b&0x7F) << shift
  9000  				if b < 0x80 {
  9001  					break
  9002  				}
  9003  			}
  9004  		case 5:
  9005  			if wireType != 0 {
  9006  				return fmt.Errorf("proto: wrong wireType = %d for field End", wireType)
  9007  			}
  9008  			m.End = 0
  9009  			for shift := uint(0); ; shift += 7 {
  9010  				if shift >= 64 {
  9011  					return ErrIntOverflowTempo
  9012  				}
  9013  				if iNdEx >= l {
  9014  					return io.ErrUnexpectedEOF
  9015  				}
  9016  				b := dAtA[iNdEx]
  9017  				iNdEx++
  9018  				m.End |= uint32(b&0x7F) << shift
  9019  				if b < 0x80 {
  9020  					break
  9021  				}
  9022  			}
  9023  		default:
  9024  			iNdEx = preIndex
  9025  			skippy, err := skipTempo(dAtA[iNdEx:])
  9026  			if err != nil {
  9027  				return err
  9028  			}
  9029  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  9030  				return ErrInvalidLengthTempo
  9031  			}
  9032  			if (iNdEx + skippy) > l {
  9033  				return io.ErrUnexpectedEOF
  9034  			}
  9035  			iNdEx += skippy
  9036  		}
  9037  	}
  9038  
  9039  	if iNdEx > l {
  9040  		return io.ErrUnexpectedEOF
  9041  	}
  9042  	return nil
  9043  }
  9044  func (m *SpanMetricsResponse) Unmarshal(dAtA []byte) error {
  9045  	l := len(dAtA)
  9046  	iNdEx := 0
  9047  	for iNdEx < l {
  9048  		preIndex := iNdEx
  9049  		var wire uint64
  9050  		for shift := uint(0); ; shift += 7 {
  9051  			if shift >= 64 {
  9052  				return ErrIntOverflowTempo
  9053  			}
  9054  			if iNdEx >= l {
  9055  				return io.ErrUnexpectedEOF
  9056  			}
  9057  			b := dAtA[iNdEx]
  9058  			iNdEx++
  9059  			wire |= uint64(b&0x7F) << shift
  9060  			if b < 0x80 {
  9061  				break
  9062  			}
  9063  		}
  9064  		fieldNum := int32(wire >> 3)
  9065  		wireType := int(wire & 0x7)
  9066  		if wireType == 4 {
  9067  			return fmt.Errorf("proto: SpanMetricsResponse: wiretype end group for non-group")
  9068  		}
  9069  		if fieldNum <= 0 {
  9070  			return fmt.Errorf("proto: SpanMetricsResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  9071  		}
  9072  		switch fieldNum {
  9073  		case 1:
  9074  			if wireType != 0 {
  9075  				return fmt.Errorf("proto: wrong wireType = %d for field Estimated", wireType)
  9076  			}
  9077  			var v int
  9078  			for shift := uint(0); ; shift += 7 {
  9079  				if shift >= 64 {
  9080  					return ErrIntOverflowTempo
  9081  				}
  9082  				if iNdEx >= l {
  9083  					return io.ErrUnexpectedEOF
  9084  				}
  9085  				b := dAtA[iNdEx]
  9086  				iNdEx++
  9087  				v |= int(b&0x7F) << shift
  9088  				if b < 0x80 {
  9089  					break
  9090  				}
  9091  			}
  9092  			m.Estimated = bool(v != 0)
  9093  		case 2:
  9094  			if wireType != 0 {
  9095  				return fmt.Errorf("proto: wrong wireType = %d for field SpanCount", wireType)
  9096  			}
  9097  			m.SpanCount = 0
  9098  			for shift := uint(0); ; shift += 7 {
  9099  				if shift >= 64 {
  9100  					return ErrIntOverflowTempo
  9101  				}
  9102  				if iNdEx >= l {
  9103  					return io.ErrUnexpectedEOF
  9104  				}
  9105  				b := dAtA[iNdEx]
  9106  				iNdEx++
  9107  				m.SpanCount |= uint64(b&0x7F) << shift
  9108  				if b < 0x80 {
  9109  					break
  9110  				}
  9111  			}
  9112  		case 3:
  9113  			if wireType != 0 {
  9114  				return fmt.Errorf("proto: wrong wireType = %d for field ErrorSpanCount", wireType)
  9115  			}
  9116  			m.ErrorSpanCount = 0
  9117  			for shift := uint(0); ; shift += 7 {
  9118  				if shift >= 64 {
  9119  					return ErrIntOverflowTempo
  9120  				}
  9121  				if iNdEx >= l {
  9122  					return io.ErrUnexpectedEOF
  9123  				}
  9124  				b := dAtA[iNdEx]
  9125  				iNdEx++
  9126  				m.ErrorSpanCount |= uint64(b&0x7F) << shift
  9127  				if b < 0x80 {
  9128  					break
  9129  				}
  9130  			}
  9131  		case 4:
  9132  			if wireType != 2 {
  9133  				return fmt.Errorf("proto: wrong wireType = %d for field Metrics", wireType)
  9134  			}
  9135  			var msglen int
  9136  			for shift := uint(0); ; shift += 7 {
  9137  				if shift >= 64 {
  9138  					return ErrIntOverflowTempo
  9139  				}
  9140  				if iNdEx >= l {
  9141  					return io.ErrUnexpectedEOF
  9142  				}
  9143  				b := dAtA[iNdEx]
  9144  				iNdEx++
  9145  				msglen |= int(b&0x7F) << shift
  9146  				if b < 0x80 {
  9147  					break
  9148  				}
  9149  			}
  9150  			if msglen < 0 {
  9151  				return ErrInvalidLengthTempo
  9152  			}
  9153  			postIndex := iNdEx + msglen
  9154  			if postIndex < 0 {
  9155  				return ErrInvalidLengthTempo
  9156  			}
  9157  			if postIndex > l {
  9158  				return io.ErrUnexpectedEOF
  9159  			}
  9160  			m.Metrics = append(m.Metrics, &SpanMetrics{})
  9161  			if err := m.Metrics[len(m.Metrics)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  9162  				return err
  9163  			}
  9164  			iNdEx = postIndex
  9165  		default:
  9166  			iNdEx = preIndex
  9167  			skippy, err := skipTempo(dAtA[iNdEx:])
  9168  			if err != nil {
  9169  				return err
  9170  			}
  9171  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  9172  				return ErrInvalidLengthTempo
  9173  			}
  9174  			if (iNdEx + skippy) > l {
  9175  				return io.ErrUnexpectedEOF
  9176  			}
  9177  			iNdEx += skippy
  9178  		}
  9179  	}
  9180  
  9181  	if iNdEx > l {
  9182  		return io.ErrUnexpectedEOF
  9183  	}
  9184  	return nil
  9185  }
  9186  func (m *RawHistogram) Unmarshal(dAtA []byte) error {
  9187  	l := len(dAtA)
  9188  	iNdEx := 0
  9189  	for iNdEx < l {
  9190  		preIndex := iNdEx
  9191  		var wire uint64
  9192  		for shift := uint(0); ; shift += 7 {
  9193  			if shift >= 64 {
  9194  				return ErrIntOverflowTempo
  9195  			}
  9196  			if iNdEx >= l {
  9197  				return io.ErrUnexpectedEOF
  9198  			}
  9199  			b := dAtA[iNdEx]
  9200  			iNdEx++
  9201  			wire |= uint64(b&0x7F) << shift
  9202  			if b < 0x80 {
  9203  				break
  9204  			}
  9205  		}
  9206  		fieldNum := int32(wire >> 3)
  9207  		wireType := int(wire & 0x7)
  9208  		if wireType == 4 {
  9209  			return fmt.Errorf("proto: RawHistogram: wiretype end group for non-group")
  9210  		}
  9211  		if fieldNum <= 0 {
  9212  			return fmt.Errorf("proto: RawHistogram: illegal tag %d (wire type %d)", fieldNum, wire)
  9213  		}
  9214  		switch fieldNum {
  9215  		case 1:
  9216  			if wireType != 0 {
  9217  				return fmt.Errorf("proto: wrong wireType = %d for field Bucket", wireType)
  9218  			}
  9219  			m.Bucket = 0
  9220  			for shift := uint(0); ; shift += 7 {
  9221  				if shift >= 64 {
  9222  					return ErrIntOverflowTempo
  9223  				}
  9224  				if iNdEx >= l {
  9225  					return io.ErrUnexpectedEOF
  9226  				}
  9227  				b := dAtA[iNdEx]
  9228  				iNdEx++
  9229  				m.Bucket |= uint64(b&0x7F) << shift
  9230  				if b < 0x80 {
  9231  					break
  9232  				}
  9233  			}
  9234  		case 2:
  9235  			if wireType != 0 {
  9236  				return fmt.Errorf("proto: wrong wireType = %d for field Count", wireType)
  9237  			}
  9238  			m.Count = 0
  9239  			for shift := uint(0); ; shift += 7 {
  9240  				if shift >= 64 {
  9241  					return ErrIntOverflowTempo
  9242  				}
  9243  				if iNdEx >= l {
  9244  					return io.ErrUnexpectedEOF
  9245  				}
  9246  				b := dAtA[iNdEx]
  9247  				iNdEx++
  9248  				m.Count |= uint64(b&0x7F) << shift
  9249  				if b < 0x80 {
  9250  					break
  9251  				}
  9252  			}
  9253  		default:
  9254  			iNdEx = preIndex
  9255  			skippy, err := skipTempo(dAtA[iNdEx:])
  9256  			if err != nil {
  9257  				return err
  9258  			}
  9259  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  9260  				return ErrInvalidLengthTempo
  9261  			}
  9262  			if (iNdEx + skippy) > l {
  9263  				return io.ErrUnexpectedEOF
  9264  			}
  9265  			iNdEx += skippy
  9266  		}
  9267  	}
  9268  
  9269  	if iNdEx > l {
  9270  		return io.ErrUnexpectedEOF
  9271  	}
  9272  	return nil
  9273  }
  9274  func (m *KeyValue) Unmarshal(dAtA []byte) error {
  9275  	l := len(dAtA)
  9276  	iNdEx := 0
  9277  	for iNdEx < l {
  9278  		preIndex := iNdEx
  9279  		var wire uint64
  9280  		for shift := uint(0); ; shift += 7 {
  9281  			if shift >= 64 {
  9282  				return ErrIntOverflowTempo
  9283  			}
  9284  			if iNdEx >= l {
  9285  				return io.ErrUnexpectedEOF
  9286  			}
  9287  			b := dAtA[iNdEx]
  9288  			iNdEx++
  9289  			wire |= uint64(b&0x7F) << shift
  9290  			if b < 0x80 {
  9291  				break
  9292  			}
  9293  		}
  9294  		fieldNum := int32(wire >> 3)
  9295  		wireType := int(wire & 0x7)
  9296  		if wireType == 4 {
  9297  			return fmt.Errorf("proto: KeyValue: wiretype end group for non-group")
  9298  		}
  9299  		if fieldNum <= 0 {
  9300  			return fmt.Errorf("proto: KeyValue: illegal tag %d (wire type %d)", fieldNum, wire)
  9301  		}
  9302  		switch fieldNum {
  9303  		case 1:
  9304  			if wireType != 2 {
  9305  				return fmt.Errorf("proto: wrong wireType = %d for field Key", wireType)
  9306  			}
  9307  			var stringLen uint64
  9308  			for shift := uint(0); ; shift += 7 {
  9309  				if shift >= 64 {
  9310  					return ErrIntOverflowTempo
  9311  				}
  9312  				if iNdEx >= l {
  9313  					return io.ErrUnexpectedEOF
  9314  				}
  9315  				b := dAtA[iNdEx]
  9316  				iNdEx++
  9317  				stringLen |= uint64(b&0x7F) << shift
  9318  				if b < 0x80 {
  9319  					break
  9320  				}
  9321  			}
  9322  			intStringLen := int(stringLen)
  9323  			if intStringLen < 0 {
  9324  				return ErrInvalidLengthTempo
  9325  			}
  9326  			postIndex := iNdEx + intStringLen
  9327  			if postIndex < 0 {
  9328  				return ErrInvalidLengthTempo
  9329  			}
  9330  			if postIndex > l {
  9331  				return io.ErrUnexpectedEOF
  9332  			}
  9333  			m.Key = string(dAtA[iNdEx:postIndex])
  9334  			iNdEx = postIndex
  9335  		case 2:
  9336  			if wireType != 2 {
  9337  				return fmt.Errorf("proto: wrong wireType = %d for field Value", wireType)
  9338  			}
  9339  			var msglen int
  9340  			for shift := uint(0); ; shift += 7 {
  9341  				if shift >= 64 {
  9342  					return ErrIntOverflowTempo
  9343  				}
  9344  				if iNdEx >= l {
  9345  					return io.ErrUnexpectedEOF
  9346  				}
  9347  				b := dAtA[iNdEx]
  9348  				iNdEx++
  9349  				msglen |= int(b&0x7F) << shift
  9350  				if b < 0x80 {
  9351  					break
  9352  				}
  9353  			}
  9354  			if msglen < 0 {
  9355  				return ErrInvalidLengthTempo
  9356  			}
  9357  			postIndex := iNdEx + msglen
  9358  			if postIndex < 0 {
  9359  				return ErrInvalidLengthTempo
  9360  			}
  9361  			if postIndex > l {
  9362  				return io.ErrUnexpectedEOF
  9363  			}
  9364  			if m.Value == nil {
  9365  				m.Value = &TraceQLStatic{}
  9366  			}
  9367  			if err := m.Value.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  9368  				return err
  9369  			}
  9370  			iNdEx = postIndex
  9371  		default:
  9372  			iNdEx = preIndex
  9373  			skippy, err := skipTempo(dAtA[iNdEx:])
  9374  			if err != nil {
  9375  				return err
  9376  			}
  9377  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  9378  				return ErrInvalidLengthTempo
  9379  			}
  9380  			if (iNdEx + skippy) > l {
  9381  				return io.ErrUnexpectedEOF
  9382  			}
  9383  			iNdEx += skippy
  9384  		}
  9385  	}
  9386  
  9387  	if iNdEx > l {
  9388  		return io.ErrUnexpectedEOF
  9389  	}
  9390  	return nil
  9391  }
  9392  func (m *SpanMetrics) Unmarshal(dAtA []byte) error {
  9393  	l := len(dAtA)
  9394  	iNdEx := 0
  9395  	for iNdEx < l {
  9396  		preIndex := iNdEx
  9397  		var wire uint64
  9398  		for shift := uint(0); ; shift += 7 {
  9399  			if shift >= 64 {
  9400  				return ErrIntOverflowTempo
  9401  			}
  9402  			if iNdEx >= l {
  9403  				return io.ErrUnexpectedEOF
  9404  			}
  9405  			b := dAtA[iNdEx]
  9406  			iNdEx++
  9407  			wire |= uint64(b&0x7F) << shift
  9408  			if b < 0x80 {
  9409  				break
  9410  			}
  9411  		}
  9412  		fieldNum := int32(wire >> 3)
  9413  		wireType := int(wire & 0x7)
  9414  		if wireType == 4 {
  9415  			return fmt.Errorf("proto: SpanMetrics: wiretype end group for non-group")
  9416  		}
  9417  		if fieldNum <= 0 {
  9418  			return fmt.Errorf("proto: SpanMetrics: illegal tag %d (wire type %d)", fieldNum, wire)
  9419  		}
  9420  		switch fieldNum {
  9421  		case 1:
  9422  			if wireType != 2 {
  9423  				return fmt.Errorf("proto: wrong wireType = %d for field LatencyHistogram", wireType)
  9424  			}
  9425  			var msglen int
  9426  			for shift := uint(0); ; shift += 7 {
  9427  				if shift >= 64 {
  9428  					return ErrIntOverflowTempo
  9429  				}
  9430  				if iNdEx >= l {
  9431  					return io.ErrUnexpectedEOF
  9432  				}
  9433  				b := dAtA[iNdEx]
  9434  				iNdEx++
  9435  				msglen |= int(b&0x7F) << shift
  9436  				if b < 0x80 {
  9437  					break
  9438  				}
  9439  			}
  9440  			if msglen < 0 {
  9441  				return ErrInvalidLengthTempo
  9442  			}
  9443  			postIndex := iNdEx + msglen
  9444  			if postIndex < 0 {
  9445  				return ErrInvalidLengthTempo
  9446  			}
  9447  			if postIndex > l {
  9448  				return io.ErrUnexpectedEOF
  9449  			}
  9450  			m.LatencyHistogram = append(m.LatencyHistogram, &RawHistogram{})
  9451  			if err := m.LatencyHistogram[len(m.LatencyHistogram)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  9452  				return err
  9453  			}
  9454  			iNdEx = postIndex
  9455  		case 2:
  9456  			if wireType != 2 {
  9457  				return fmt.Errorf("proto: wrong wireType = %d for field Series", wireType)
  9458  			}
  9459  			var msglen int
  9460  			for shift := uint(0); ; shift += 7 {
  9461  				if shift >= 64 {
  9462  					return ErrIntOverflowTempo
  9463  				}
  9464  				if iNdEx >= l {
  9465  					return io.ErrUnexpectedEOF
  9466  				}
  9467  				b := dAtA[iNdEx]
  9468  				iNdEx++
  9469  				msglen |= int(b&0x7F) << shift
  9470  				if b < 0x80 {
  9471  					break
  9472  				}
  9473  			}
  9474  			if msglen < 0 {
  9475  				return ErrInvalidLengthTempo
  9476  			}
  9477  			postIndex := iNdEx + msglen
  9478  			if postIndex < 0 {
  9479  				return ErrInvalidLengthTempo
  9480  			}
  9481  			if postIndex > l {
  9482  				return io.ErrUnexpectedEOF
  9483  			}
  9484  			m.Series = append(m.Series, &KeyValue{})
  9485  			if err := m.Series[len(m.Series)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  9486  				return err
  9487  			}
  9488  			iNdEx = postIndex
  9489  		case 3:
  9490  			if wireType != 0 {
  9491  				return fmt.Errorf("proto: wrong wireType = %d for field Errors", wireType)
  9492  			}
  9493  			m.Errors = 0
  9494  			for shift := uint(0); ; shift += 7 {
  9495  				if shift >= 64 {
  9496  					return ErrIntOverflowTempo
  9497  				}
  9498  				if iNdEx >= l {
  9499  					return io.ErrUnexpectedEOF
  9500  				}
  9501  				b := dAtA[iNdEx]
  9502  				iNdEx++
  9503  				m.Errors |= uint64(b&0x7F) << shift
  9504  				if b < 0x80 {
  9505  					break
  9506  				}
  9507  			}
  9508  		default:
  9509  			iNdEx = preIndex
  9510  			skippy, err := skipTempo(dAtA[iNdEx:])
  9511  			if err != nil {
  9512  				return err
  9513  			}
  9514  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  9515  				return ErrInvalidLengthTempo
  9516  			}
  9517  			if (iNdEx + skippy) > l {
  9518  				return io.ErrUnexpectedEOF
  9519  			}
  9520  			iNdEx += skippy
  9521  		}
  9522  	}
  9523  
  9524  	if iNdEx > l {
  9525  		return io.ErrUnexpectedEOF
  9526  	}
  9527  	return nil
  9528  }
  9529  func (m *SpanMetricsSummary) Unmarshal(dAtA []byte) error {
  9530  	l := len(dAtA)
  9531  	iNdEx := 0
  9532  	for iNdEx < l {
  9533  		preIndex := iNdEx
  9534  		var wire uint64
  9535  		for shift := uint(0); ; shift += 7 {
  9536  			if shift >= 64 {
  9537  				return ErrIntOverflowTempo
  9538  			}
  9539  			if iNdEx >= l {
  9540  				return io.ErrUnexpectedEOF
  9541  			}
  9542  			b := dAtA[iNdEx]
  9543  			iNdEx++
  9544  			wire |= uint64(b&0x7F) << shift
  9545  			if b < 0x80 {
  9546  				break
  9547  			}
  9548  		}
  9549  		fieldNum := int32(wire >> 3)
  9550  		wireType := int(wire & 0x7)
  9551  		if wireType == 4 {
  9552  			return fmt.Errorf("proto: SpanMetricsSummary: wiretype end group for non-group")
  9553  		}
  9554  		if fieldNum <= 0 {
  9555  			return fmt.Errorf("proto: SpanMetricsSummary: illegal tag %d (wire type %d)", fieldNum, wire)
  9556  		}
  9557  		switch fieldNum {
  9558  		case 1:
  9559  			if wireType != 0 {
  9560  				return fmt.Errorf("proto: wrong wireType = %d for field SpanCount", wireType)
  9561  			}
  9562  			m.SpanCount = 0
  9563  			for shift := uint(0); ; shift += 7 {
  9564  				if shift >= 64 {
  9565  					return ErrIntOverflowTempo
  9566  				}
  9567  				if iNdEx >= l {
  9568  					return io.ErrUnexpectedEOF
  9569  				}
  9570  				b := dAtA[iNdEx]
  9571  				iNdEx++
  9572  				m.SpanCount |= uint64(b&0x7F) << shift
  9573  				if b < 0x80 {
  9574  					break
  9575  				}
  9576  			}
  9577  		case 2:
  9578  			if wireType != 0 {
  9579  				return fmt.Errorf("proto: wrong wireType = %d for field ErrorSpanCount", wireType)
  9580  			}
  9581  			m.ErrorSpanCount = 0
  9582  			for shift := uint(0); ; shift += 7 {
  9583  				if shift >= 64 {
  9584  					return ErrIntOverflowTempo
  9585  				}
  9586  				if iNdEx >= l {
  9587  					return io.ErrUnexpectedEOF
  9588  				}
  9589  				b := dAtA[iNdEx]
  9590  				iNdEx++
  9591  				m.ErrorSpanCount |= uint64(b&0x7F) << shift
  9592  				if b < 0x80 {
  9593  					break
  9594  				}
  9595  			}
  9596  		case 3:
  9597  			if wireType != 2 {
  9598  				return fmt.Errorf("proto: wrong wireType = %d for field Series", wireType)
  9599  			}
  9600  			var msglen int
  9601  			for shift := uint(0); ; shift += 7 {
  9602  				if shift >= 64 {
  9603  					return ErrIntOverflowTempo
  9604  				}
  9605  				if iNdEx >= l {
  9606  					return io.ErrUnexpectedEOF
  9607  				}
  9608  				b := dAtA[iNdEx]
  9609  				iNdEx++
  9610  				msglen |= int(b&0x7F) << shift
  9611  				if b < 0x80 {
  9612  					break
  9613  				}
  9614  			}
  9615  			if msglen < 0 {
  9616  				return ErrInvalidLengthTempo
  9617  			}
  9618  			postIndex := iNdEx + msglen
  9619  			if postIndex < 0 {
  9620  				return ErrInvalidLengthTempo
  9621  			}
  9622  			if postIndex > l {
  9623  				return io.ErrUnexpectedEOF
  9624  			}
  9625  			m.Series = append(m.Series, &KeyValue{})
  9626  			if err := m.Series[len(m.Series)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  9627  				return err
  9628  			}
  9629  			iNdEx = postIndex
  9630  		case 4:
  9631  			if wireType != 0 {
  9632  				return fmt.Errorf("proto: wrong wireType = %d for field P99", wireType)
  9633  			}
  9634  			m.P99 = 0
  9635  			for shift := uint(0); ; shift += 7 {
  9636  				if shift >= 64 {
  9637  					return ErrIntOverflowTempo
  9638  				}
  9639  				if iNdEx >= l {
  9640  					return io.ErrUnexpectedEOF
  9641  				}
  9642  				b := dAtA[iNdEx]
  9643  				iNdEx++
  9644  				m.P99 |= uint64(b&0x7F) << shift
  9645  				if b < 0x80 {
  9646  					break
  9647  				}
  9648  			}
  9649  		case 5:
  9650  			if wireType != 0 {
  9651  				return fmt.Errorf("proto: wrong wireType = %d for field P95", wireType)
  9652  			}
  9653  			m.P95 = 0
  9654  			for shift := uint(0); ; shift += 7 {
  9655  				if shift >= 64 {
  9656  					return ErrIntOverflowTempo
  9657  				}
  9658  				if iNdEx >= l {
  9659  					return io.ErrUnexpectedEOF
  9660  				}
  9661  				b := dAtA[iNdEx]
  9662  				iNdEx++
  9663  				m.P95 |= uint64(b&0x7F) << shift
  9664  				if b < 0x80 {
  9665  					break
  9666  				}
  9667  			}
  9668  		case 6:
  9669  			if wireType != 0 {
  9670  				return fmt.Errorf("proto: wrong wireType = %d for field P90", wireType)
  9671  			}
  9672  			m.P90 = 0
  9673  			for shift := uint(0); ; shift += 7 {
  9674  				if shift >= 64 {
  9675  					return ErrIntOverflowTempo
  9676  				}
  9677  				if iNdEx >= l {
  9678  					return io.ErrUnexpectedEOF
  9679  				}
  9680  				b := dAtA[iNdEx]
  9681  				iNdEx++
  9682  				m.P90 |= uint64(b&0x7F) << shift
  9683  				if b < 0x80 {
  9684  					break
  9685  				}
  9686  			}
  9687  		case 7:
  9688  			if wireType != 0 {
  9689  				return fmt.Errorf("proto: wrong wireType = %d for field P50", wireType)
  9690  			}
  9691  			m.P50 = 0
  9692  			for shift := uint(0); ; shift += 7 {
  9693  				if shift >= 64 {
  9694  					return ErrIntOverflowTempo
  9695  				}
  9696  				if iNdEx >= l {
  9697  					return io.ErrUnexpectedEOF
  9698  				}
  9699  				b := dAtA[iNdEx]
  9700  				iNdEx++
  9701  				m.P50 |= uint64(b&0x7F) << shift
  9702  				if b < 0x80 {
  9703  					break
  9704  				}
  9705  			}
  9706  		default:
  9707  			iNdEx = preIndex
  9708  			skippy, err := skipTempo(dAtA[iNdEx:])
  9709  			if err != nil {
  9710  				return err
  9711  			}
  9712  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  9713  				return ErrInvalidLengthTempo
  9714  			}
  9715  			if (iNdEx + skippy) > l {
  9716  				return io.ErrUnexpectedEOF
  9717  			}
  9718  			iNdEx += skippy
  9719  		}
  9720  	}
  9721  
  9722  	if iNdEx > l {
  9723  		return io.ErrUnexpectedEOF
  9724  	}
  9725  	return nil
  9726  }
  9727  func (m *SpanMetricsSummaryResponse) Unmarshal(dAtA []byte) error {
  9728  	l := len(dAtA)
  9729  	iNdEx := 0
  9730  	for iNdEx < l {
  9731  		preIndex := iNdEx
  9732  		var wire uint64
  9733  		for shift := uint(0); ; shift += 7 {
  9734  			if shift >= 64 {
  9735  				return ErrIntOverflowTempo
  9736  			}
  9737  			if iNdEx >= l {
  9738  				return io.ErrUnexpectedEOF
  9739  			}
  9740  			b := dAtA[iNdEx]
  9741  			iNdEx++
  9742  			wire |= uint64(b&0x7F) << shift
  9743  			if b < 0x80 {
  9744  				break
  9745  			}
  9746  		}
  9747  		fieldNum := int32(wire >> 3)
  9748  		wireType := int(wire & 0x7)
  9749  		if wireType == 4 {
  9750  			return fmt.Errorf("proto: SpanMetricsSummaryResponse: wiretype end group for non-group")
  9751  		}
  9752  		if fieldNum <= 0 {
  9753  			return fmt.Errorf("proto: SpanMetricsSummaryResponse: illegal tag %d (wire type %d)", fieldNum, wire)
  9754  		}
  9755  		switch fieldNum {
  9756  		case 1:
  9757  			if wireType != 2 {
  9758  				return fmt.Errorf("proto: wrong wireType = %d for field Summaries", wireType)
  9759  			}
  9760  			var msglen int
  9761  			for shift := uint(0); ; shift += 7 {
  9762  				if shift >= 64 {
  9763  					return ErrIntOverflowTempo
  9764  				}
  9765  				if iNdEx >= l {
  9766  					return io.ErrUnexpectedEOF
  9767  				}
  9768  				b := dAtA[iNdEx]
  9769  				iNdEx++
  9770  				msglen |= int(b&0x7F) << shift
  9771  				if b < 0x80 {
  9772  					break
  9773  				}
  9774  			}
  9775  			if msglen < 0 {
  9776  				return ErrInvalidLengthTempo
  9777  			}
  9778  			postIndex := iNdEx + msglen
  9779  			if postIndex < 0 {
  9780  				return ErrInvalidLengthTempo
  9781  			}
  9782  			if postIndex > l {
  9783  				return io.ErrUnexpectedEOF
  9784  			}
  9785  			m.Summaries = append(m.Summaries, &SpanMetricsSummary{})
  9786  			if err := m.Summaries[len(m.Summaries)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  9787  				return err
  9788  			}
  9789  			iNdEx = postIndex
  9790  		default:
  9791  			iNdEx = preIndex
  9792  			skippy, err := skipTempo(dAtA[iNdEx:])
  9793  			if err != nil {
  9794  				return err
  9795  			}
  9796  			if (skippy < 0) || (iNdEx+skippy) < 0 {
  9797  				return ErrInvalidLengthTempo
  9798  			}
  9799  			if (iNdEx + skippy) > l {
  9800  				return io.ErrUnexpectedEOF
  9801  			}
  9802  			iNdEx += skippy
  9803  		}
  9804  	}
  9805  
  9806  	if iNdEx > l {
  9807  		return io.ErrUnexpectedEOF
  9808  	}
  9809  	return nil
  9810  }
  9811  func (m *TraceQLStatic) Unmarshal(dAtA []byte) error {
  9812  	l := len(dAtA)
  9813  	iNdEx := 0
  9814  	for iNdEx < l {
  9815  		preIndex := iNdEx
  9816  		var wire uint64
  9817  		for shift := uint(0); ; shift += 7 {
  9818  			if shift >= 64 {
  9819  				return ErrIntOverflowTempo
  9820  			}
  9821  			if iNdEx >= l {
  9822  				return io.ErrUnexpectedEOF
  9823  			}
  9824  			b := dAtA[iNdEx]
  9825  			iNdEx++
  9826  			wire |= uint64(b&0x7F) << shift
  9827  			if b < 0x80 {
  9828  				break
  9829  			}
  9830  		}
  9831  		fieldNum := int32(wire >> 3)
  9832  		wireType := int(wire & 0x7)
  9833  		if wireType == 4 {
  9834  			return fmt.Errorf("proto: TraceQLStatic: wiretype end group for non-group")
  9835  		}
  9836  		if fieldNum <= 0 {
  9837  			return fmt.Errorf("proto: TraceQLStatic: illegal tag %d (wire type %d)", fieldNum, wire)
  9838  		}
  9839  		switch fieldNum {
  9840  		case 1:
  9841  			if wireType != 0 {
  9842  				return fmt.Errorf("proto: wrong wireType = %d for field Type", wireType)
  9843  			}
  9844  			m.Type = 0
  9845  			for shift := uint(0); ; shift += 7 {
  9846  				if shift >= 64 {
  9847  					return ErrIntOverflowTempo
  9848  				}
  9849  				if iNdEx >= l {
  9850  					return io.ErrUnexpectedEOF
  9851  				}
  9852  				b := dAtA[iNdEx]
  9853  				iNdEx++
  9854  				m.Type |= int32(b&0x7F) << shift
  9855  				if b < 0x80 {
  9856  					break
  9857  				}
  9858  			}
  9859  		case 2:
  9860  			if wireType != 0 {
  9861  				return fmt.Errorf("proto: wrong wireType = %d for field N", wireType)
  9862  			}
  9863  			m.N = 0
  9864  			for shift := uint(0); ; shift += 7 {
  9865  				if shift >= 64 {
  9866  					return ErrIntOverflowTempo
  9867  				}
  9868  				if iNdEx >= l {
  9869  					return io.ErrUnexpectedEOF
  9870  				}
  9871  				b := dAtA[iNdEx]
  9872  				iNdEx++
  9873  				m.N |= int64(b&0x7F) << shift
  9874  				if b < 0x80 {
  9875  					break
  9876  				}
  9877  			}
  9878  		case 3:
  9879  			if wireType != 1 {
  9880  				return fmt.Errorf("proto: wrong wireType = %d for field F", wireType)
  9881  			}
  9882  			var v uint64
  9883  			if (iNdEx + 8) > l {
  9884  				return io.ErrUnexpectedEOF
  9885  			}
  9886  			v = uint64(encoding_binary.LittleEndian.Uint64(dAtA[iNdEx:]))
  9887  			iNdEx += 8
  9888  			m.F = float64(math.Float64frombits(v))
  9889  		case 4:
  9890  			if wireType != 2 {
  9891  				return fmt.Errorf("proto: wrong wireType = %d for field S", wireType)
  9892  			}
  9893  			var stringLen uint64
  9894  			for shift := uint(0); ; shift += 7 {
  9895  				if shift >= 64 {
  9896  					return ErrIntOverflowTempo
  9897  				}
  9898  				if iNdEx >= l {
  9899  					return io.ErrUnexpectedEOF
  9900  				}
  9901  				b := dAtA[iNdEx]
  9902  				iNdEx++
  9903  				stringLen |= uint64(b&0x7F) << shift
  9904  				if b < 0x80 {
  9905  					break
  9906  				}
  9907  			}
  9908  			intStringLen := int(stringLen)
  9909  			if intStringLen < 0 {
  9910  				return ErrInvalidLengthTempo
  9911  			}
  9912  			postIndex := iNdEx + intStringLen
  9913  			if postIndex < 0 {
  9914  				return ErrInvalidLengthTempo
  9915  			}
  9916  			if postIndex > l {
  9917  				return io.ErrUnexpectedEOF
  9918  			}
  9919  			m.S = string(dAtA[iNdEx:postIndex])
  9920  			iNdEx = postIndex
  9921  		case 5:
  9922  			if wireType != 0 {
  9923  				return fmt.Errorf("proto: wrong wireType = %d for field B", wireType)
  9924  			}
  9925  			var v int
  9926  			for shift := uint(0); ; shift += 7 {
  9927  				if shift >= 64 {
  9928  					return ErrIntOverflowTempo
  9929  				}
  9930  				if iNdEx >= l {
  9931  					return io.ErrUnexpectedEOF
  9932  				}
  9933  				b := dAtA[iNdEx]
  9934  				iNdEx++
  9935  				v |= int(b&0x7F) << shift
  9936  				if b < 0x80 {
  9937  					break
  9938  				}
  9939  			}
  9940  			m.B = bool(v != 0)
  9941  		case 6:
  9942  			if wireType != 0 {
  9943  				return fmt.Errorf("proto: wrong wireType = %d for field D", wireType)
  9944  			}
  9945  			m.D = 0
  9946  			for shift := uint(0); ; shift += 7 {
  9947  				if shift >= 64 {
  9948  					return ErrIntOverflowTempo
  9949  				}
  9950  				if iNdEx >= l {
  9951  					return io.ErrUnexpectedEOF
  9952  				}
  9953  				b := dAtA[iNdEx]
  9954  				iNdEx++
  9955  				m.D |= uint64(b&0x7F) << shift
  9956  				if b < 0x80 {
  9957  					break
  9958  				}
  9959  			}
  9960  		case 7:
  9961  			if wireType != 0 {
  9962  				return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
  9963  			}
  9964  			m.Status = 0
  9965  			for shift := uint(0); ; shift += 7 {
  9966  				if shift >= 64 {
  9967  					return ErrIntOverflowTempo
  9968  				}
  9969  				if iNdEx >= l {
  9970  					return io.ErrUnexpectedEOF
  9971  				}
  9972  				b := dAtA[iNdEx]
  9973  				iNdEx++
  9974  				m.Status |= int32(b&0x7F) << shift
  9975  				if b < 0x80 {
  9976  					break
  9977  				}
  9978  			}
  9979  		case 8:
  9980  			if wireType != 0 {
  9981  				return fmt.Errorf("proto: wrong wireType = %d for field Kind", wireType)
  9982  			}
  9983  			m.Kind = 0
  9984  			for shift := uint(0); ; shift += 7 {
  9985  				if shift >= 64 {
  9986  					return ErrIntOverflowTempo
  9987  				}
  9988  				if iNdEx >= l {
  9989  					return io.ErrUnexpectedEOF
  9990  				}
  9991  				b := dAtA[iNdEx]
  9992  				iNdEx++
  9993  				m.Kind |= int32(b&0x7F) << shift
  9994  				if b < 0x80 {
  9995  					break
  9996  				}
  9997  			}
  9998  		default:
  9999  			iNdEx = preIndex
 10000  			skippy, err := skipTempo(dAtA[iNdEx:])
 10001  			if err != nil {
 10002  				return err
 10003  			}
 10004  			if (skippy < 0) || (iNdEx+skippy) < 0 {
 10005  				return ErrInvalidLengthTempo
 10006  			}
 10007  			if (iNdEx + skippy) > l {
 10008  				return io.ErrUnexpectedEOF
 10009  			}
 10010  			iNdEx += skippy
 10011  		}
 10012  	}
 10013  
 10014  	if iNdEx > l {
 10015  		return io.ErrUnexpectedEOF
 10016  	}
 10017  	return nil
 10018  }
 10019  func skipTempo(dAtA []byte) (n int, err error) {
 10020  	l := len(dAtA)
 10021  	iNdEx := 0
 10022  	depth := 0
 10023  	for iNdEx < l {
 10024  		var wire uint64
 10025  		for shift := uint(0); ; shift += 7 {
 10026  			if shift >= 64 {
 10027  				return 0, ErrIntOverflowTempo
 10028  			}
 10029  			if iNdEx >= l {
 10030  				return 0, io.ErrUnexpectedEOF
 10031  			}
 10032  			b := dAtA[iNdEx]
 10033  			iNdEx++
 10034  			wire |= (uint64(b) & 0x7F) << shift
 10035  			if b < 0x80 {
 10036  				break
 10037  			}
 10038  		}
 10039  		wireType := int(wire & 0x7)
 10040  		switch wireType {
 10041  		case 0:
 10042  			for shift := uint(0); ; shift += 7 {
 10043  				if shift >= 64 {
 10044  					return 0, ErrIntOverflowTempo
 10045  				}
 10046  				if iNdEx >= l {
 10047  					return 0, io.ErrUnexpectedEOF
 10048  				}
 10049  				iNdEx++
 10050  				if dAtA[iNdEx-1] < 0x80 {
 10051  					break
 10052  				}
 10053  			}
 10054  		case 1:
 10055  			iNdEx += 8
 10056  		case 2:
 10057  			var length int
 10058  			for shift := uint(0); ; shift += 7 {
 10059  				if shift >= 64 {
 10060  					return 0, ErrIntOverflowTempo
 10061  				}
 10062  				if iNdEx >= l {
 10063  					return 0, io.ErrUnexpectedEOF
 10064  				}
 10065  				b := dAtA[iNdEx]
 10066  				iNdEx++
 10067  				length |= (int(b) & 0x7F) << shift
 10068  				if b < 0x80 {
 10069  					break
 10070  				}
 10071  			}
 10072  			if length < 0 {
 10073  				return 0, ErrInvalidLengthTempo
 10074  			}
 10075  			iNdEx += length
 10076  		case 3:
 10077  			depth++
 10078  		case 4:
 10079  			if depth == 0 {
 10080  				return 0, ErrUnexpectedEndOfGroupTempo
 10081  			}
 10082  			depth--
 10083  		case 5:
 10084  			iNdEx += 4
 10085  		default:
 10086  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
 10087  		}
 10088  		if iNdEx < 0 {
 10089  			return 0, ErrInvalidLengthTempo
 10090  		}
 10091  		if depth == 0 {
 10092  			return iNdEx, nil
 10093  		}
 10094  	}
 10095  	return 0, io.ErrUnexpectedEOF
 10096  }
 10097  
 10098  var (
 10099  	ErrInvalidLengthTempo        = fmt.Errorf("proto: negative length found during unmarshaling")
 10100  	ErrIntOverflowTempo          = fmt.Errorf("proto: integer overflow")
 10101  	ErrUnexpectedEndOfGroupTempo = fmt.Errorf("proto: unexpected end of group")
 10102  )