github.com/muhammadn/cortex@v1.9.1-0.20220510110439-46bb7000d03d/pkg/frontend/v2/frontendv2pb/frontend.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: frontend.proto
     3  
     4  package frontendv2pb
     5  
     6  import (
     7  	context "context"
     8  	fmt "fmt"
     9  	stats "github.com/cortexproject/cortex/pkg/querier/stats"
    10  	_ "github.com/gogo/protobuf/gogoproto"
    11  	proto "github.com/gogo/protobuf/proto"
    12  	httpgrpc "github.com/weaveworks/common/httpgrpc"
    13  	grpc "google.golang.org/grpc"
    14  	codes "google.golang.org/grpc/codes"
    15  	status "google.golang.org/grpc/status"
    16  	io "io"
    17  	math "math"
    18  	math_bits "math/bits"
    19  	reflect "reflect"
    20  	strings "strings"
    21  )
    22  
    23  // Reference imports to suppress errors if they are not otherwise used.
    24  var _ = proto.Marshal
    25  var _ = fmt.Errorf
    26  var _ = math.Inf
    27  
    28  // This is a compile-time assertion to ensure that this generated file
    29  // is compatible with the proto package it is being compiled against.
    30  // A compilation error at this line likely means your copy of the
    31  // proto package needs to be updated.
    32  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    33  
    34  type QueryResultRequest struct {
    35  	QueryID      uint64                 `protobuf:"varint,1,opt,name=queryID,proto3" json:"queryID,omitempty"`
    36  	HttpResponse *httpgrpc.HTTPResponse `protobuf:"bytes,2,opt,name=httpResponse,proto3" json:"httpResponse,omitempty"`
    37  	Stats        *stats.Stats           `protobuf:"bytes,3,opt,name=stats,proto3" json:"stats,omitempty"`
    38  }
    39  
    40  func (m *QueryResultRequest) Reset()      { *m = QueryResultRequest{} }
    41  func (*QueryResultRequest) ProtoMessage() {}
    42  func (*QueryResultRequest) Descriptor() ([]byte, []int) {
    43  	return fileDescriptor_eca3873955a29cfe, []int{0}
    44  }
    45  func (m *QueryResultRequest) XXX_Unmarshal(b []byte) error {
    46  	return m.Unmarshal(b)
    47  }
    48  func (m *QueryResultRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    49  	if deterministic {
    50  		return xxx_messageInfo_QueryResultRequest.Marshal(b, m, deterministic)
    51  	} else {
    52  		b = b[:cap(b)]
    53  		n, err := m.MarshalToSizedBuffer(b)
    54  		if err != nil {
    55  			return nil, err
    56  		}
    57  		return b[:n], nil
    58  	}
    59  }
    60  func (m *QueryResultRequest) XXX_Merge(src proto.Message) {
    61  	xxx_messageInfo_QueryResultRequest.Merge(m, src)
    62  }
    63  func (m *QueryResultRequest) XXX_Size() int {
    64  	return m.Size()
    65  }
    66  func (m *QueryResultRequest) XXX_DiscardUnknown() {
    67  	xxx_messageInfo_QueryResultRequest.DiscardUnknown(m)
    68  }
    69  
    70  var xxx_messageInfo_QueryResultRequest proto.InternalMessageInfo
    71  
    72  func (m *QueryResultRequest) GetQueryID() uint64 {
    73  	if m != nil {
    74  		return m.QueryID
    75  	}
    76  	return 0
    77  }
    78  
    79  func (m *QueryResultRequest) GetHttpResponse() *httpgrpc.HTTPResponse {
    80  	if m != nil {
    81  		return m.HttpResponse
    82  	}
    83  	return nil
    84  }
    85  
    86  func (m *QueryResultRequest) GetStats() *stats.Stats {
    87  	if m != nil {
    88  		return m.Stats
    89  	}
    90  	return nil
    91  }
    92  
    93  type QueryResultResponse struct {
    94  }
    95  
    96  func (m *QueryResultResponse) Reset()      { *m = QueryResultResponse{} }
    97  func (*QueryResultResponse) ProtoMessage() {}
    98  func (*QueryResultResponse) Descriptor() ([]byte, []int) {
    99  	return fileDescriptor_eca3873955a29cfe, []int{1}
   100  }
   101  func (m *QueryResultResponse) XXX_Unmarshal(b []byte) error {
   102  	return m.Unmarshal(b)
   103  }
   104  func (m *QueryResultResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   105  	if deterministic {
   106  		return xxx_messageInfo_QueryResultResponse.Marshal(b, m, deterministic)
   107  	} else {
   108  		b = b[:cap(b)]
   109  		n, err := m.MarshalToSizedBuffer(b)
   110  		if err != nil {
   111  			return nil, err
   112  		}
   113  		return b[:n], nil
   114  	}
   115  }
   116  func (m *QueryResultResponse) XXX_Merge(src proto.Message) {
   117  	xxx_messageInfo_QueryResultResponse.Merge(m, src)
   118  }
   119  func (m *QueryResultResponse) XXX_Size() int {
   120  	return m.Size()
   121  }
   122  func (m *QueryResultResponse) XXX_DiscardUnknown() {
   123  	xxx_messageInfo_QueryResultResponse.DiscardUnknown(m)
   124  }
   125  
   126  var xxx_messageInfo_QueryResultResponse proto.InternalMessageInfo
   127  
   128  func init() {
   129  	proto.RegisterType((*QueryResultRequest)(nil), "frontendv2pb.QueryResultRequest")
   130  	proto.RegisterType((*QueryResultResponse)(nil), "frontendv2pb.QueryResultResponse")
   131  }
   132  
   133  func init() { proto.RegisterFile("frontend.proto", fileDescriptor_eca3873955a29cfe) }
   134  
   135  var fileDescriptor_eca3873955a29cfe = []byte{
   136  	// 351 bytes of a gzipped FileDescriptorProto
   137  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x91, 0xcd, 0x4e, 0x3a, 0x31,
   138  	0x14, 0xc5, 0xdb, 0xff, 0xdf, 0x8f, 0xa4, 0x10, 0x17, 0x35, 0x9a, 0x09, 0x8b, 0x06, 0x67, 0xc5,
   139  	0xc6, 0x69, 0x82, 0xae, 0x4c, 0xdc, 0x10, 0x43, 0x74, 0x27, 0x23, 0x2b, 0x77, 0xcc, 0x58, 0x86,
   140  	0x0f, 0x99, 0x96, 0xb6, 0x03, 0xb2, 0xf3, 0x09, 0x8c, 0x8f, 0xe1, 0xa3, 0xb8, 0x64, 0xc9, 0x52,
   141  	0xca, 0xc6, 0x25, 0x8f, 0x60, 0x68, 0x81, 0x0c, 0x31, 0x71, 0xd3, 0xdc, 0x93, 0x7b, 0x7e, 0xb9,
   142  	0xe7, 0xde, 0xa2, 0xa3, 0xb6, 0xe4, 0xa9, 0x66, 0xe9, 0x53, 0x20, 0x24, 0xd7, 0x1c, 0x17, 0x37,
   143  	0x7a, 0x54, 0x15, 0x51, 0xe9, 0x3c, 0xe9, 0xea, 0x4e, 0x16, 0x05, 0x31, 0x1f, 0xd0, 0x84, 0x27,
   144  	0x9c, 0x5a, 0x53, 0x94, 0xb5, 0xad, 0xb2, 0xc2, 0x56, 0x0e, 0x2e, 0x5d, 0xe6, 0xec, 0x63, 0xd6,
   145  	0x1a, 0xb1, 0x31, 0x97, 0x7d, 0x45, 0x63, 0x3e, 0x18, 0xf0, 0x94, 0x76, 0xb4, 0x16, 0x89, 0x14,
   146  	0xf1, 0xb6, 0x58, 0x53, 0xd7, 0x39, 0x2a, 0xe6, 0x52, 0xb3, 0x17, 0x21, 0x79, 0x8f, 0xc5, 0x7a,
   147  	0xad, 0xa8, 0xe8, 0x27, 0x74, 0x98, 0x31, 0xd9, 0x65, 0x92, 0x2a, 0xdd, 0xd2, 0xca, 0xbd, 0x0e,
   148  	0xf7, 0xdf, 0x20, 0xc2, 0x8d, 0x8c, 0xc9, 0x49, 0xc8, 0x54, 0xf6, 0xac, 0x43, 0x36, 0xcc, 0x98,
   149  	0xd2, 0xd8, 0x43, 0x87, 0x2b, 0x66, 0x72, 0x77, 0xe3, 0xc1, 0x32, 0xac, 0xec, 0x85, 0x1b, 0x89,
   150  	0xaf, 0x50, 0x71, 0x95, 0x20, 0x64, 0x4a, 0xf0, 0x54, 0x31, 0xef, 0x5f, 0x19, 0x56, 0x0a, 0xd5,
   151  	0xd3, 0x60, 0x1b, 0xeb, 0xb6, 0xd9, 0xbc, 0xdf, 0x74, 0xc3, 0x1d, 0x2f, 0xf6, 0xd1, 0xbe, 0x9d,
   152  	0xed, 0xfd, 0xb7, 0x50, 0x31, 0x70, 0x49, 0x1e, 0x56, 0x6f, 0xe8, 0x5a, 0xfe, 0x09, 0x3a, 0xde,
   153  	0xc9, 0xe3, 0xd0, 0x6a, 0x0f, 0xe1, 0xfa, 0xfa, 0xb6, 0x75, 0x2e, 0x1b, 0x6e, 0x1f, 0xdc, 0x44,
   154  	0x85, 0x9c, 0x19, 0x97, 0x83, 0xfc, 0xfd, 0x83, 0xdf, 0x7b, 0x95, 0xce, 0xfe, 0x70, 0xb8, 0x49,
   155  	0x3e, 0xa8, 0xd5, 0xa6, 0x73, 0x02, 0x66, 0x73, 0x02, 0x96, 0x73, 0x02, 0x5f, 0x0d, 0x81, 0x1f,
   156  	0x86, 0xc0, 0x4f, 0x43, 0xe0, 0xd4, 0x10, 0xf8, 0x65, 0x08, 0xfc, 0x36, 0x04, 0x2c, 0x0d, 0x81,
   157  	0xef, 0x0b, 0x02, 0xa6, 0x0b, 0x02, 0x66, 0x0b, 0x02, 0x1e, 0x77, 0xfe, 0x3e, 0x3a, 0xb0, 0xe7,
   158  	0xbd, 0xf8, 0x09, 0x00, 0x00, 0xff, 0xff, 0x02, 0xb0, 0x28, 0xb5, 0x22, 0x02, 0x00, 0x00,
   159  }
   160  
   161  func (this *QueryResultRequest) Equal(that interface{}) bool {
   162  	if that == nil {
   163  		return this == nil
   164  	}
   165  
   166  	that1, ok := that.(*QueryResultRequest)
   167  	if !ok {
   168  		that2, ok := that.(QueryResultRequest)
   169  		if ok {
   170  			that1 = &that2
   171  		} else {
   172  			return false
   173  		}
   174  	}
   175  	if that1 == nil {
   176  		return this == nil
   177  	} else if this == nil {
   178  		return false
   179  	}
   180  	if this.QueryID != that1.QueryID {
   181  		return false
   182  	}
   183  	if !this.HttpResponse.Equal(that1.HttpResponse) {
   184  		return false
   185  	}
   186  	if !this.Stats.Equal(that1.Stats) {
   187  		return false
   188  	}
   189  	return true
   190  }
   191  func (this *QueryResultResponse) Equal(that interface{}) bool {
   192  	if that == nil {
   193  		return this == nil
   194  	}
   195  
   196  	that1, ok := that.(*QueryResultResponse)
   197  	if !ok {
   198  		that2, ok := that.(QueryResultResponse)
   199  		if ok {
   200  			that1 = &that2
   201  		} else {
   202  			return false
   203  		}
   204  	}
   205  	if that1 == nil {
   206  		return this == nil
   207  	} else if this == nil {
   208  		return false
   209  	}
   210  	return true
   211  }
   212  func (this *QueryResultRequest) GoString() string {
   213  	if this == nil {
   214  		return "nil"
   215  	}
   216  	s := make([]string, 0, 7)
   217  	s = append(s, "&frontendv2pb.QueryResultRequest{")
   218  	s = append(s, "QueryID: "+fmt.Sprintf("%#v", this.QueryID)+",\n")
   219  	if this.HttpResponse != nil {
   220  		s = append(s, "HttpResponse: "+fmt.Sprintf("%#v", this.HttpResponse)+",\n")
   221  	}
   222  	if this.Stats != nil {
   223  		s = append(s, "Stats: "+fmt.Sprintf("%#v", this.Stats)+",\n")
   224  	}
   225  	s = append(s, "}")
   226  	return strings.Join(s, "")
   227  }
   228  func (this *QueryResultResponse) GoString() string {
   229  	if this == nil {
   230  		return "nil"
   231  	}
   232  	s := make([]string, 0, 4)
   233  	s = append(s, "&frontendv2pb.QueryResultResponse{")
   234  	s = append(s, "}")
   235  	return strings.Join(s, "")
   236  }
   237  func valueToGoStringFrontend(v interface{}, typ string) string {
   238  	rv := reflect.ValueOf(v)
   239  	if rv.IsNil() {
   240  		return "nil"
   241  	}
   242  	pv := reflect.Indirect(rv).Interface()
   243  	return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv)
   244  }
   245  
   246  // Reference imports to suppress errors if they are not otherwise used.
   247  var _ context.Context
   248  var _ grpc.ClientConn
   249  
   250  // This is a compile-time assertion to ensure that this generated file
   251  // is compatible with the grpc package it is being compiled against.
   252  const _ = grpc.SupportPackageIsVersion4
   253  
   254  // FrontendForQuerierClient is the client API for FrontendForQuerier service.
   255  //
   256  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   257  type FrontendForQuerierClient interface {
   258  	QueryResult(ctx context.Context, in *QueryResultRequest, opts ...grpc.CallOption) (*QueryResultResponse, error)
   259  }
   260  
   261  type frontendForQuerierClient struct {
   262  	cc *grpc.ClientConn
   263  }
   264  
   265  func NewFrontendForQuerierClient(cc *grpc.ClientConn) FrontendForQuerierClient {
   266  	return &frontendForQuerierClient{cc}
   267  }
   268  
   269  func (c *frontendForQuerierClient) QueryResult(ctx context.Context, in *QueryResultRequest, opts ...grpc.CallOption) (*QueryResultResponse, error) {
   270  	out := new(QueryResultResponse)
   271  	err := c.cc.Invoke(ctx, "/frontendv2pb.FrontendForQuerier/QueryResult", in, out, opts...)
   272  	if err != nil {
   273  		return nil, err
   274  	}
   275  	return out, nil
   276  }
   277  
   278  // FrontendForQuerierServer is the server API for FrontendForQuerier service.
   279  type FrontendForQuerierServer interface {
   280  	QueryResult(context.Context, *QueryResultRequest) (*QueryResultResponse, error)
   281  }
   282  
   283  // UnimplementedFrontendForQuerierServer can be embedded to have forward compatible implementations.
   284  type UnimplementedFrontendForQuerierServer struct {
   285  }
   286  
   287  func (*UnimplementedFrontendForQuerierServer) QueryResult(ctx context.Context, req *QueryResultRequest) (*QueryResultResponse, error) {
   288  	return nil, status.Errorf(codes.Unimplemented, "method QueryResult not implemented")
   289  }
   290  
   291  func RegisterFrontendForQuerierServer(s *grpc.Server, srv FrontendForQuerierServer) {
   292  	s.RegisterService(&_FrontendForQuerier_serviceDesc, srv)
   293  }
   294  
   295  func _FrontendForQuerier_QueryResult_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   296  	in := new(QueryResultRequest)
   297  	if err := dec(in); err != nil {
   298  		return nil, err
   299  	}
   300  	if interceptor == nil {
   301  		return srv.(FrontendForQuerierServer).QueryResult(ctx, in)
   302  	}
   303  	info := &grpc.UnaryServerInfo{
   304  		Server:     srv,
   305  		FullMethod: "/frontendv2pb.FrontendForQuerier/QueryResult",
   306  	}
   307  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   308  		return srv.(FrontendForQuerierServer).QueryResult(ctx, req.(*QueryResultRequest))
   309  	}
   310  	return interceptor(ctx, in, info, handler)
   311  }
   312  
   313  var _FrontendForQuerier_serviceDesc = grpc.ServiceDesc{
   314  	ServiceName: "frontendv2pb.FrontendForQuerier",
   315  	HandlerType: (*FrontendForQuerierServer)(nil),
   316  	Methods: []grpc.MethodDesc{
   317  		{
   318  			MethodName: "QueryResult",
   319  			Handler:    _FrontendForQuerier_QueryResult_Handler,
   320  		},
   321  	},
   322  	Streams:  []grpc.StreamDesc{},
   323  	Metadata: "frontend.proto",
   324  }
   325  
   326  func (m *QueryResultRequest) Marshal() (dAtA []byte, err error) {
   327  	size := m.Size()
   328  	dAtA = make([]byte, size)
   329  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   330  	if err != nil {
   331  		return nil, err
   332  	}
   333  	return dAtA[:n], nil
   334  }
   335  
   336  func (m *QueryResultRequest) MarshalTo(dAtA []byte) (int, error) {
   337  	size := m.Size()
   338  	return m.MarshalToSizedBuffer(dAtA[:size])
   339  }
   340  
   341  func (m *QueryResultRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   342  	i := len(dAtA)
   343  	_ = i
   344  	var l int
   345  	_ = l
   346  	if m.Stats != nil {
   347  		{
   348  			size, err := m.Stats.MarshalToSizedBuffer(dAtA[:i])
   349  			if err != nil {
   350  				return 0, err
   351  			}
   352  			i -= size
   353  			i = encodeVarintFrontend(dAtA, i, uint64(size))
   354  		}
   355  		i--
   356  		dAtA[i] = 0x1a
   357  	}
   358  	if m.HttpResponse != nil {
   359  		{
   360  			size, err := m.HttpResponse.MarshalToSizedBuffer(dAtA[:i])
   361  			if err != nil {
   362  				return 0, err
   363  			}
   364  			i -= size
   365  			i = encodeVarintFrontend(dAtA, i, uint64(size))
   366  		}
   367  		i--
   368  		dAtA[i] = 0x12
   369  	}
   370  	if m.QueryID != 0 {
   371  		i = encodeVarintFrontend(dAtA, i, uint64(m.QueryID))
   372  		i--
   373  		dAtA[i] = 0x8
   374  	}
   375  	return len(dAtA) - i, nil
   376  }
   377  
   378  func (m *QueryResultResponse) Marshal() (dAtA []byte, err error) {
   379  	size := m.Size()
   380  	dAtA = make([]byte, size)
   381  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   382  	if err != nil {
   383  		return nil, err
   384  	}
   385  	return dAtA[:n], nil
   386  }
   387  
   388  func (m *QueryResultResponse) MarshalTo(dAtA []byte) (int, error) {
   389  	size := m.Size()
   390  	return m.MarshalToSizedBuffer(dAtA[:size])
   391  }
   392  
   393  func (m *QueryResultResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   394  	i := len(dAtA)
   395  	_ = i
   396  	var l int
   397  	_ = l
   398  	return len(dAtA) - i, nil
   399  }
   400  
   401  func encodeVarintFrontend(dAtA []byte, offset int, v uint64) int {
   402  	offset -= sovFrontend(v)
   403  	base := offset
   404  	for v >= 1<<7 {
   405  		dAtA[offset] = uint8(v&0x7f | 0x80)
   406  		v >>= 7
   407  		offset++
   408  	}
   409  	dAtA[offset] = uint8(v)
   410  	return base
   411  }
   412  func (m *QueryResultRequest) Size() (n int) {
   413  	if m == nil {
   414  		return 0
   415  	}
   416  	var l int
   417  	_ = l
   418  	if m.QueryID != 0 {
   419  		n += 1 + sovFrontend(uint64(m.QueryID))
   420  	}
   421  	if m.HttpResponse != nil {
   422  		l = m.HttpResponse.Size()
   423  		n += 1 + l + sovFrontend(uint64(l))
   424  	}
   425  	if m.Stats != nil {
   426  		l = m.Stats.Size()
   427  		n += 1 + l + sovFrontend(uint64(l))
   428  	}
   429  	return n
   430  }
   431  
   432  func (m *QueryResultResponse) Size() (n int) {
   433  	if m == nil {
   434  		return 0
   435  	}
   436  	var l int
   437  	_ = l
   438  	return n
   439  }
   440  
   441  func sovFrontend(x uint64) (n int) {
   442  	return (math_bits.Len64(x|1) + 6) / 7
   443  }
   444  func sozFrontend(x uint64) (n int) {
   445  	return sovFrontend(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   446  }
   447  func (this *QueryResultRequest) String() string {
   448  	if this == nil {
   449  		return "nil"
   450  	}
   451  	s := strings.Join([]string{`&QueryResultRequest{`,
   452  		`QueryID:` + fmt.Sprintf("%v", this.QueryID) + `,`,
   453  		`HttpResponse:` + strings.Replace(fmt.Sprintf("%v", this.HttpResponse), "HTTPResponse", "httpgrpc.HTTPResponse", 1) + `,`,
   454  		`Stats:` + strings.Replace(fmt.Sprintf("%v", this.Stats), "Stats", "stats.Stats", 1) + `,`,
   455  		`}`,
   456  	}, "")
   457  	return s
   458  }
   459  func (this *QueryResultResponse) String() string {
   460  	if this == nil {
   461  		return "nil"
   462  	}
   463  	s := strings.Join([]string{`&QueryResultResponse{`,
   464  		`}`,
   465  	}, "")
   466  	return s
   467  }
   468  func valueToStringFrontend(v interface{}) string {
   469  	rv := reflect.ValueOf(v)
   470  	if rv.IsNil() {
   471  		return "nil"
   472  	}
   473  	pv := reflect.Indirect(rv).Interface()
   474  	return fmt.Sprintf("*%v", pv)
   475  }
   476  func (m *QueryResultRequest) Unmarshal(dAtA []byte) error {
   477  	l := len(dAtA)
   478  	iNdEx := 0
   479  	for iNdEx < l {
   480  		preIndex := iNdEx
   481  		var wire uint64
   482  		for shift := uint(0); ; shift += 7 {
   483  			if shift >= 64 {
   484  				return ErrIntOverflowFrontend
   485  			}
   486  			if iNdEx >= l {
   487  				return io.ErrUnexpectedEOF
   488  			}
   489  			b := dAtA[iNdEx]
   490  			iNdEx++
   491  			wire |= uint64(b&0x7F) << shift
   492  			if b < 0x80 {
   493  				break
   494  			}
   495  		}
   496  		fieldNum := int32(wire >> 3)
   497  		wireType := int(wire & 0x7)
   498  		if wireType == 4 {
   499  			return fmt.Errorf("proto: QueryResultRequest: wiretype end group for non-group")
   500  		}
   501  		if fieldNum <= 0 {
   502  			return fmt.Errorf("proto: QueryResultRequest: illegal tag %d (wire type %d)", fieldNum, wire)
   503  		}
   504  		switch fieldNum {
   505  		case 1:
   506  			if wireType != 0 {
   507  				return fmt.Errorf("proto: wrong wireType = %d for field QueryID", wireType)
   508  			}
   509  			m.QueryID = 0
   510  			for shift := uint(0); ; shift += 7 {
   511  				if shift >= 64 {
   512  					return ErrIntOverflowFrontend
   513  				}
   514  				if iNdEx >= l {
   515  					return io.ErrUnexpectedEOF
   516  				}
   517  				b := dAtA[iNdEx]
   518  				iNdEx++
   519  				m.QueryID |= uint64(b&0x7F) << shift
   520  				if b < 0x80 {
   521  					break
   522  				}
   523  			}
   524  		case 2:
   525  			if wireType != 2 {
   526  				return fmt.Errorf("proto: wrong wireType = %d for field HttpResponse", wireType)
   527  			}
   528  			var msglen int
   529  			for shift := uint(0); ; shift += 7 {
   530  				if shift >= 64 {
   531  					return ErrIntOverflowFrontend
   532  				}
   533  				if iNdEx >= l {
   534  					return io.ErrUnexpectedEOF
   535  				}
   536  				b := dAtA[iNdEx]
   537  				iNdEx++
   538  				msglen |= int(b&0x7F) << shift
   539  				if b < 0x80 {
   540  					break
   541  				}
   542  			}
   543  			if msglen < 0 {
   544  				return ErrInvalidLengthFrontend
   545  			}
   546  			postIndex := iNdEx + msglen
   547  			if postIndex < 0 {
   548  				return ErrInvalidLengthFrontend
   549  			}
   550  			if postIndex > l {
   551  				return io.ErrUnexpectedEOF
   552  			}
   553  			if m.HttpResponse == nil {
   554  				m.HttpResponse = &httpgrpc.HTTPResponse{}
   555  			}
   556  			if err := m.HttpResponse.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   557  				return err
   558  			}
   559  			iNdEx = postIndex
   560  		case 3:
   561  			if wireType != 2 {
   562  				return fmt.Errorf("proto: wrong wireType = %d for field Stats", wireType)
   563  			}
   564  			var msglen int
   565  			for shift := uint(0); ; shift += 7 {
   566  				if shift >= 64 {
   567  					return ErrIntOverflowFrontend
   568  				}
   569  				if iNdEx >= l {
   570  					return io.ErrUnexpectedEOF
   571  				}
   572  				b := dAtA[iNdEx]
   573  				iNdEx++
   574  				msglen |= int(b&0x7F) << shift
   575  				if b < 0x80 {
   576  					break
   577  				}
   578  			}
   579  			if msglen < 0 {
   580  				return ErrInvalidLengthFrontend
   581  			}
   582  			postIndex := iNdEx + msglen
   583  			if postIndex < 0 {
   584  				return ErrInvalidLengthFrontend
   585  			}
   586  			if postIndex > l {
   587  				return io.ErrUnexpectedEOF
   588  			}
   589  			if m.Stats == nil {
   590  				m.Stats = &stats.Stats{}
   591  			}
   592  			if err := m.Stats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   593  				return err
   594  			}
   595  			iNdEx = postIndex
   596  		default:
   597  			iNdEx = preIndex
   598  			skippy, err := skipFrontend(dAtA[iNdEx:])
   599  			if err != nil {
   600  				return err
   601  			}
   602  			if skippy < 0 {
   603  				return ErrInvalidLengthFrontend
   604  			}
   605  			if (iNdEx + skippy) < 0 {
   606  				return ErrInvalidLengthFrontend
   607  			}
   608  			if (iNdEx + skippy) > l {
   609  				return io.ErrUnexpectedEOF
   610  			}
   611  			iNdEx += skippy
   612  		}
   613  	}
   614  
   615  	if iNdEx > l {
   616  		return io.ErrUnexpectedEOF
   617  	}
   618  	return nil
   619  }
   620  func (m *QueryResultResponse) Unmarshal(dAtA []byte) error {
   621  	l := len(dAtA)
   622  	iNdEx := 0
   623  	for iNdEx < l {
   624  		preIndex := iNdEx
   625  		var wire uint64
   626  		for shift := uint(0); ; shift += 7 {
   627  			if shift >= 64 {
   628  				return ErrIntOverflowFrontend
   629  			}
   630  			if iNdEx >= l {
   631  				return io.ErrUnexpectedEOF
   632  			}
   633  			b := dAtA[iNdEx]
   634  			iNdEx++
   635  			wire |= uint64(b&0x7F) << shift
   636  			if b < 0x80 {
   637  				break
   638  			}
   639  		}
   640  		fieldNum := int32(wire >> 3)
   641  		wireType := int(wire & 0x7)
   642  		if wireType == 4 {
   643  			return fmt.Errorf("proto: QueryResultResponse: wiretype end group for non-group")
   644  		}
   645  		if fieldNum <= 0 {
   646  			return fmt.Errorf("proto: QueryResultResponse: illegal tag %d (wire type %d)", fieldNum, wire)
   647  		}
   648  		switch fieldNum {
   649  		default:
   650  			iNdEx = preIndex
   651  			skippy, err := skipFrontend(dAtA[iNdEx:])
   652  			if err != nil {
   653  				return err
   654  			}
   655  			if skippy < 0 {
   656  				return ErrInvalidLengthFrontend
   657  			}
   658  			if (iNdEx + skippy) < 0 {
   659  				return ErrInvalidLengthFrontend
   660  			}
   661  			if (iNdEx + skippy) > l {
   662  				return io.ErrUnexpectedEOF
   663  			}
   664  			iNdEx += skippy
   665  		}
   666  	}
   667  
   668  	if iNdEx > l {
   669  		return io.ErrUnexpectedEOF
   670  	}
   671  	return nil
   672  }
   673  func skipFrontend(dAtA []byte) (n int, err error) {
   674  	l := len(dAtA)
   675  	iNdEx := 0
   676  	for iNdEx < l {
   677  		var wire uint64
   678  		for shift := uint(0); ; shift += 7 {
   679  			if shift >= 64 {
   680  				return 0, ErrIntOverflowFrontend
   681  			}
   682  			if iNdEx >= l {
   683  				return 0, io.ErrUnexpectedEOF
   684  			}
   685  			b := dAtA[iNdEx]
   686  			iNdEx++
   687  			wire |= (uint64(b) & 0x7F) << shift
   688  			if b < 0x80 {
   689  				break
   690  			}
   691  		}
   692  		wireType := int(wire & 0x7)
   693  		switch wireType {
   694  		case 0:
   695  			for shift := uint(0); ; shift += 7 {
   696  				if shift >= 64 {
   697  					return 0, ErrIntOverflowFrontend
   698  				}
   699  				if iNdEx >= l {
   700  					return 0, io.ErrUnexpectedEOF
   701  				}
   702  				iNdEx++
   703  				if dAtA[iNdEx-1] < 0x80 {
   704  					break
   705  				}
   706  			}
   707  			return iNdEx, nil
   708  		case 1:
   709  			iNdEx += 8
   710  			return iNdEx, nil
   711  		case 2:
   712  			var length int
   713  			for shift := uint(0); ; shift += 7 {
   714  				if shift >= 64 {
   715  					return 0, ErrIntOverflowFrontend
   716  				}
   717  				if iNdEx >= l {
   718  					return 0, io.ErrUnexpectedEOF
   719  				}
   720  				b := dAtA[iNdEx]
   721  				iNdEx++
   722  				length |= (int(b) & 0x7F) << shift
   723  				if b < 0x80 {
   724  					break
   725  				}
   726  			}
   727  			if length < 0 {
   728  				return 0, ErrInvalidLengthFrontend
   729  			}
   730  			iNdEx += length
   731  			if iNdEx < 0 {
   732  				return 0, ErrInvalidLengthFrontend
   733  			}
   734  			return iNdEx, nil
   735  		case 3:
   736  			for {
   737  				var innerWire uint64
   738  				var start int = iNdEx
   739  				for shift := uint(0); ; shift += 7 {
   740  					if shift >= 64 {
   741  						return 0, ErrIntOverflowFrontend
   742  					}
   743  					if iNdEx >= l {
   744  						return 0, io.ErrUnexpectedEOF
   745  					}
   746  					b := dAtA[iNdEx]
   747  					iNdEx++
   748  					innerWire |= (uint64(b) & 0x7F) << shift
   749  					if b < 0x80 {
   750  						break
   751  					}
   752  				}
   753  				innerWireType := int(innerWire & 0x7)
   754  				if innerWireType == 4 {
   755  					break
   756  				}
   757  				next, err := skipFrontend(dAtA[start:])
   758  				if err != nil {
   759  					return 0, err
   760  				}
   761  				iNdEx = start + next
   762  				if iNdEx < 0 {
   763  					return 0, ErrInvalidLengthFrontend
   764  				}
   765  			}
   766  			return iNdEx, nil
   767  		case 4:
   768  			return iNdEx, nil
   769  		case 5:
   770  			iNdEx += 4
   771  			return iNdEx, nil
   772  		default:
   773  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
   774  		}
   775  	}
   776  	panic("unreachable")
   777  }
   778  
   779  var (
   780  	ErrInvalidLengthFrontend = fmt.Errorf("proto: negative length found during unmarshaling")
   781  	ErrIntOverflowFrontend   = fmt.Errorf("proto: integer overflow")
   782  )