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

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: pkg/lokifrontend/frontend/v2/frontendv2pb/frontend.proto
     3  
     4  package frontendv2pb
     5  
     6  import (
     7  	context "context"
     8  	fmt "fmt"
     9  	_ "github.com/gogo/protobuf/gogoproto"
    10  	proto "github.com/gogo/protobuf/proto"
    11  	stats "github.com/grafana/loki/pkg/querier/stats"
    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_85a7e5cdf8261f06, []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_85a7e5cdf8261f06, []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() {
   134  	proto.RegisterFile("pkg/lokifrontend/frontend/v2/frontendv2pb/frontend.proto", fileDescriptor_85a7e5cdf8261f06)
   135  }
   136  
   137  var fileDescriptor_85a7e5cdf8261f06 = []byte{
   138  	// 346 bytes of a gzipped FileDescriptorProto
   139  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x51, 0x3f, 0x4f, 0x02, 0x31,
   140  	0x1c, 0x6d, 0xfd, 0x9b, 0x14, 0xa6, 0x1a, 0xcd, 0x85, 0xc4, 0x06, 0x6f, 0x62, 0xf1, 0x9a, 0x9c,
   141  	0x0e, 0xc6, 0x91, 0x18, 0xa2, 0x9b, 0x9c, 0x4c, 0x6e, 0x1c, 0x96, 0x03, 0x81, 0xeb, 0xd1, 0xf6,
   142  	0x20, 0x6c, 0x7e, 0x02, 0xe3, 0xc7, 0xf0, 0xa3, 0x38, 0x32, 0x32, 0x4a, 0x59, 0x1c, 0xf9, 0x08,
   143  	0xe6, 0x5a, 0xb8, 0x1c, 0x31, 0x71, 0x69, 0xde, 0xcb, 0x7b, 0x2f, 0xef, 0xf7, 0xfb, 0x15, 0xdd,
   144  	0x24, 0x83, 0x88, 0x0e, 0xf9, 0xa0, 0xdf, 0x15, 0x3c, 0x56, 0x2c, 0x7e, 0xa1, 0x39, 0x98, 0xf8,
   145  	0x39, 0x9e, 0xf8, 0x49, 0x98, 0x13, 0x2f, 0x11, 0x5c, 0x71, 0x5c, 0x2e, 0x8a, 0x95, 0xcb, 0xa8,
   146  	0xaf, 0x7a, 0x69, 0xe8, 0x75, 0xf8, 0x88, 0x46, 0x3c, 0xe2, 0xd4, 0x98, 0xc2, 0xb4, 0x6b, 0x98,
   147  	0x21, 0x06, 0xd9, 0x70, 0xe5, 0xba, 0x60, 0x9f, 0xb2, 0xf6, 0x84, 0x4d, 0xb9, 0x18, 0x48, 0xda,
   148  	0xe1, 0xa3, 0x11, 0x8f, 0x69, 0x4f, 0xa9, 0x24, 0x12, 0x49, 0x27, 0x07, 0x9b, 0xd4, 0x79, 0x36,
   149  	0xec, 0x38, 0x65, 0xa2, 0xcf, 0x04, 0x95, 0xaa, 0xad, 0xa4, 0x7d, 0xad, 0xec, 0xbe, 0x43, 0x84,
   150  	0x9b, 0x29, 0x13, 0xb3, 0x80, 0xc9, 0x74, 0xa8, 0x02, 0x36, 0x4e, 0x99, 0x54, 0xd8, 0x41, 0xc7,
   151  	0x59, 0x66, 0xf6, 0x70, 0xe7, 0xc0, 0x2a, 0xac, 0x1d, 0x04, 0x5b, 0x8a, 0x6f, 0x51, 0x39, 0x6b,
   152  	0x08, 0x98, 0x4c, 0x78, 0x2c, 0x99, 0xb3, 0x57, 0x85, 0xb5, 0x92, 0x7f, 0xe6, 0xe5, 0xb5, 0xf7,
   153  	0xad, 0xd6, 0xe3, 0x56, 0x0d, 0x76, 0xbc, 0xd8, 0x45, 0x87, 0xa6, 0xdb, 0xd9, 0x37, 0xa1, 0xb2,
   154  	0x67, 0x27, 0x79, 0xca, 0xde, 0xc0, 0x4a, 0xee, 0x29, 0x3a, 0xd9, 0x99, 0xc7, 0x46, 0xfd, 0x57,
   155  	0x84, 0x1b, 0x9b, 0xdb, 0x35, 0xb8, 0x68, 0xda, 0x7d, 0x70, 0x0b, 0x95, 0x0a, 0x66, 0x5c, 0xf5,
   156  	0x8a, 0xf7, 0xf5, 0xfe, 0xee, 0x55, 0xb9, 0xf8, 0xc7, 0x61, 0x9b, 0x5c, 0x50, 0xaf, 0xcf, 0x97,
   157  	0x04, 0x2c, 0x96, 0x04, 0xac, 0x97, 0x04, 0xbe, 0x69, 0x02, 0x3f, 0x35, 0x81, 0x5f, 0x9a, 0xc0,
   158  	0xb9, 0x26, 0xf0, 0x5b, 0x13, 0xf8, 0xa3, 0x09, 0x58, 0x6b, 0x02, 0x3f, 0x56, 0x04, 0xcc, 0x57,
   159  	0x04, 0x2c, 0x56, 0x04, 0x3c, 0xef, 0xfc, 0x6d, 0x78, 0x64, 0xce, 0x7b, 0xf5, 0x1b, 0x00, 0x00,
   160  	0xff, 0xff, 0x32, 0xaf, 0x75, 0x88, 0x2c, 0x02, 0x00, 0x00,
   161  }
   162  
   163  func (this *QueryResultRequest) Equal(that interface{}) bool {
   164  	if that == nil {
   165  		return this == nil
   166  	}
   167  
   168  	that1, ok := that.(*QueryResultRequest)
   169  	if !ok {
   170  		that2, ok := that.(QueryResultRequest)
   171  		if ok {
   172  			that1 = &that2
   173  		} else {
   174  			return false
   175  		}
   176  	}
   177  	if that1 == nil {
   178  		return this == nil
   179  	} else if this == nil {
   180  		return false
   181  	}
   182  	if this.QueryID != that1.QueryID {
   183  		return false
   184  	}
   185  	if !this.HttpResponse.Equal(that1.HttpResponse) {
   186  		return false
   187  	}
   188  	if !this.Stats.Equal(that1.Stats) {
   189  		return false
   190  	}
   191  	return true
   192  }
   193  func (this *QueryResultResponse) Equal(that interface{}) bool {
   194  	if that == nil {
   195  		return this == nil
   196  	}
   197  
   198  	that1, ok := that.(*QueryResultResponse)
   199  	if !ok {
   200  		that2, ok := that.(QueryResultResponse)
   201  		if ok {
   202  			that1 = &that2
   203  		} else {
   204  			return false
   205  		}
   206  	}
   207  	if that1 == nil {
   208  		return this == nil
   209  	} else if this == nil {
   210  		return false
   211  	}
   212  	return true
   213  }
   214  func (this *QueryResultRequest) GoString() string {
   215  	if this == nil {
   216  		return "nil"
   217  	}
   218  	s := make([]string, 0, 7)
   219  	s = append(s, "&frontendv2pb.QueryResultRequest{")
   220  	s = append(s, "QueryID: "+fmt.Sprintf("%#v", this.QueryID)+",\n")
   221  	if this.HttpResponse != nil {
   222  		s = append(s, "HttpResponse: "+fmt.Sprintf("%#v", this.HttpResponse)+",\n")
   223  	}
   224  	if this.Stats != nil {
   225  		s = append(s, "Stats: "+fmt.Sprintf("%#v", this.Stats)+",\n")
   226  	}
   227  	s = append(s, "}")
   228  	return strings.Join(s, "")
   229  }
   230  func (this *QueryResultResponse) GoString() string {
   231  	if this == nil {
   232  		return "nil"
   233  	}
   234  	s := make([]string, 0, 4)
   235  	s = append(s, "&frontendv2pb.QueryResultResponse{")
   236  	s = append(s, "}")
   237  	return strings.Join(s, "")
   238  }
   239  func valueToGoStringFrontend(v interface{}, typ string) string {
   240  	rv := reflect.ValueOf(v)
   241  	if rv.IsNil() {
   242  		return "nil"
   243  	}
   244  	pv := reflect.Indirect(rv).Interface()
   245  	return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv)
   246  }
   247  
   248  // Reference imports to suppress errors if they are not otherwise used.
   249  var _ context.Context
   250  var _ grpc.ClientConn
   251  
   252  // This is a compile-time assertion to ensure that this generated file
   253  // is compatible with the grpc package it is being compiled against.
   254  const _ = grpc.SupportPackageIsVersion4
   255  
   256  // FrontendForQuerierClient is the client API for FrontendForQuerier service.
   257  //
   258  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   259  type FrontendForQuerierClient interface {
   260  	QueryResult(ctx context.Context, in *QueryResultRequest, opts ...grpc.CallOption) (*QueryResultResponse, error)
   261  }
   262  
   263  type frontendForQuerierClient struct {
   264  	cc *grpc.ClientConn
   265  }
   266  
   267  func NewFrontendForQuerierClient(cc *grpc.ClientConn) FrontendForQuerierClient {
   268  	return &frontendForQuerierClient{cc}
   269  }
   270  
   271  func (c *frontendForQuerierClient) QueryResult(ctx context.Context, in *QueryResultRequest, opts ...grpc.CallOption) (*QueryResultResponse, error) {
   272  	out := new(QueryResultResponse)
   273  	err := c.cc.Invoke(ctx, "/frontendv2pb.FrontendForQuerier/QueryResult", in, out, opts...)
   274  	if err != nil {
   275  		return nil, err
   276  	}
   277  	return out, nil
   278  }
   279  
   280  // FrontendForQuerierServer is the server API for FrontendForQuerier service.
   281  type FrontendForQuerierServer interface {
   282  	QueryResult(context.Context, *QueryResultRequest) (*QueryResultResponse, error)
   283  }
   284  
   285  // UnimplementedFrontendForQuerierServer can be embedded to have forward compatible implementations.
   286  type UnimplementedFrontendForQuerierServer struct {
   287  }
   288  
   289  func (*UnimplementedFrontendForQuerierServer) QueryResult(ctx context.Context, req *QueryResultRequest) (*QueryResultResponse, error) {
   290  	return nil, status.Errorf(codes.Unimplemented, "method QueryResult not implemented")
   291  }
   292  
   293  func RegisterFrontendForQuerierServer(s *grpc.Server, srv FrontendForQuerierServer) {
   294  	s.RegisterService(&_FrontendForQuerier_serviceDesc, srv)
   295  }
   296  
   297  func _FrontendForQuerier_QueryResult_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   298  	in := new(QueryResultRequest)
   299  	if err := dec(in); err != nil {
   300  		return nil, err
   301  	}
   302  	if interceptor == nil {
   303  		return srv.(FrontendForQuerierServer).QueryResult(ctx, in)
   304  	}
   305  	info := &grpc.UnaryServerInfo{
   306  		Server:     srv,
   307  		FullMethod: "/frontendv2pb.FrontendForQuerier/QueryResult",
   308  	}
   309  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   310  		return srv.(FrontendForQuerierServer).QueryResult(ctx, req.(*QueryResultRequest))
   311  	}
   312  	return interceptor(ctx, in, info, handler)
   313  }
   314  
   315  var _FrontendForQuerier_serviceDesc = grpc.ServiceDesc{
   316  	ServiceName: "frontendv2pb.FrontendForQuerier",
   317  	HandlerType: (*FrontendForQuerierServer)(nil),
   318  	Methods: []grpc.MethodDesc{
   319  		{
   320  			MethodName: "QueryResult",
   321  			Handler:    _FrontendForQuerier_QueryResult_Handler,
   322  		},
   323  	},
   324  	Streams:  []grpc.StreamDesc{},
   325  	Metadata: "pkg/lokifrontend/frontend/v2/frontendv2pb/frontend.proto",
   326  }
   327  
   328  func (m *QueryResultRequest) Marshal() (dAtA []byte, err error) {
   329  	size := m.Size()
   330  	dAtA = make([]byte, size)
   331  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   332  	if err != nil {
   333  		return nil, err
   334  	}
   335  	return dAtA[:n], nil
   336  }
   337  
   338  func (m *QueryResultRequest) MarshalTo(dAtA []byte) (int, error) {
   339  	size := m.Size()
   340  	return m.MarshalToSizedBuffer(dAtA[:size])
   341  }
   342  
   343  func (m *QueryResultRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   344  	i := len(dAtA)
   345  	_ = i
   346  	var l int
   347  	_ = l
   348  	if m.Stats != nil {
   349  		{
   350  			size, err := m.Stats.MarshalToSizedBuffer(dAtA[:i])
   351  			if err != nil {
   352  				return 0, err
   353  			}
   354  			i -= size
   355  			i = encodeVarintFrontend(dAtA, i, uint64(size))
   356  		}
   357  		i--
   358  		dAtA[i] = 0x1a
   359  	}
   360  	if m.HttpResponse != nil {
   361  		{
   362  			size, err := m.HttpResponse.MarshalToSizedBuffer(dAtA[:i])
   363  			if err != nil {
   364  				return 0, err
   365  			}
   366  			i -= size
   367  			i = encodeVarintFrontend(dAtA, i, uint64(size))
   368  		}
   369  		i--
   370  		dAtA[i] = 0x12
   371  	}
   372  	if m.QueryID != 0 {
   373  		i = encodeVarintFrontend(dAtA, i, uint64(m.QueryID))
   374  		i--
   375  		dAtA[i] = 0x8
   376  	}
   377  	return len(dAtA) - i, nil
   378  }
   379  
   380  func (m *QueryResultResponse) Marshal() (dAtA []byte, err error) {
   381  	size := m.Size()
   382  	dAtA = make([]byte, size)
   383  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   384  	if err != nil {
   385  		return nil, err
   386  	}
   387  	return dAtA[:n], nil
   388  }
   389  
   390  func (m *QueryResultResponse) MarshalTo(dAtA []byte) (int, error) {
   391  	size := m.Size()
   392  	return m.MarshalToSizedBuffer(dAtA[:size])
   393  }
   394  
   395  func (m *QueryResultResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   396  	i := len(dAtA)
   397  	_ = i
   398  	var l int
   399  	_ = l
   400  	return len(dAtA) - i, nil
   401  }
   402  
   403  func encodeVarintFrontend(dAtA []byte, offset int, v uint64) int {
   404  	offset -= sovFrontend(v)
   405  	base := offset
   406  	for v >= 1<<7 {
   407  		dAtA[offset] = uint8(v&0x7f | 0x80)
   408  		v >>= 7
   409  		offset++
   410  	}
   411  	dAtA[offset] = uint8(v)
   412  	return base
   413  }
   414  func (m *QueryResultRequest) Size() (n int) {
   415  	if m == nil {
   416  		return 0
   417  	}
   418  	var l int
   419  	_ = l
   420  	if m.QueryID != 0 {
   421  		n += 1 + sovFrontend(uint64(m.QueryID))
   422  	}
   423  	if m.HttpResponse != nil {
   424  		l = m.HttpResponse.Size()
   425  		n += 1 + l + sovFrontend(uint64(l))
   426  	}
   427  	if m.Stats != nil {
   428  		l = m.Stats.Size()
   429  		n += 1 + l + sovFrontend(uint64(l))
   430  	}
   431  	return n
   432  }
   433  
   434  func (m *QueryResultResponse) Size() (n int) {
   435  	if m == nil {
   436  		return 0
   437  	}
   438  	var l int
   439  	_ = l
   440  	return n
   441  }
   442  
   443  func sovFrontend(x uint64) (n int) {
   444  	return (math_bits.Len64(x|1) + 6) / 7
   445  }
   446  func sozFrontend(x uint64) (n int) {
   447  	return sovFrontend(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   448  }
   449  func (this *QueryResultRequest) String() string {
   450  	if this == nil {
   451  		return "nil"
   452  	}
   453  	s := strings.Join([]string{`&QueryResultRequest{`,
   454  		`QueryID:` + fmt.Sprintf("%v", this.QueryID) + `,`,
   455  		`HttpResponse:` + strings.Replace(fmt.Sprintf("%v", this.HttpResponse), "HTTPResponse", "httpgrpc.HTTPResponse", 1) + `,`,
   456  		`Stats:` + strings.Replace(fmt.Sprintf("%v", this.Stats), "Stats", "stats.Stats", 1) + `,`,
   457  		`}`,
   458  	}, "")
   459  	return s
   460  }
   461  func (this *QueryResultResponse) String() string {
   462  	if this == nil {
   463  		return "nil"
   464  	}
   465  	s := strings.Join([]string{`&QueryResultResponse{`,
   466  		`}`,
   467  	}, "")
   468  	return s
   469  }
   470  func valueToStringFrontend(v interface{}) string {
   471  	rv := reflect.ValueOf(v)
   472  	if rv.IsNil() {
   473  		return "nil"
   474  	}
   475  	pv := reflect.Indirect(rv).Interface()
   476  	return fmt.Sprintf("*%v", pv)
   477  }
   478  func (m *QueryResultRequest) Unmarshal(dAtA []byte) error {
   479  	l := len(dAtA)
   480  	iNdEx := 0
   481  	for iNdEx < l {
   482  		preIndex := iNdEx
   483  		var wire uint64
   484  		for shift := uint(0); ; shift += 7 {
   485  			if shift >= 64 {
   486  				return ErrIntOverflowFrontend
   487  			}
   488  			if iNdEx >= l {
   489  				return io.ErrUnexpectedEOF
   490  			}
   491  			b := dAtA[iNdEx]
   492  			iNdEx++
   493  			wire |= uint64(b&0x7F) << shift
   494  			if b < 0x80 {
   495  				break
   496  			}
   497  		}
   498  		fieldNum := int32(wire >> 3)
   499  		wireType := int(wire & 0x7)
   500  		if wireType == 4 {
   501  			return fmt.Errorf("proto: QueryResultRequest: wiretype end group for non-group")
   502  		}
   503  		if fieldNum <= 0 {
   504  			return fmt.Errorf("proto: QueryResultRequest: illegal tag %d (wire type %d)", fieldNum, wire)
   505  		}
   506  		switch fieldNum {
   507  		case 1:
   508  			if wireType != 0 {
   509  				return fmt.Errorf("proto: wrong wireType = %d for field QueryID", wireType)
   510  			}
   511  			m.QueryID = 0
   512  			for shift := uint(0); ; shift += 7 {
   513  				if shift >= 64 {
   514  					return ErrIntOverflowFrontend
   515  				}
   516  				if iNdEx >= l {
   517  					return io.ErrUnexpectedEOF
   518  				}
   519  				b := dAtA[iNdEx]
   520  				iNdEx++
   521  				m.QueryID |= uint64(b&0x7F) << shift
   522  				if b < 0x80 {
   523  					break
   524  				}
   525  			}
   526  		case 2:
   527  			if wireType != 2 {
   528  				return fmt.Errorf("proto: wrong wireType = %d for field HttpResponse", wireType)
   529  			}
   530  			var msglen int
   531  			for shift := uint(0); ; shift += 7 {
   532  				if shift >= 64 {
   533  					return ErrIntOverflowFrontend
   534  				}
   535  				if iNdEx >= l {
   536  					return io.ErrUnexpectedEOF
   537  				}
   538  				b := dAtA[iNdEx]
   539  				iNdEx++
   540  				msglen |= int(b&0x7F) << shift
   541  				if b < 0x80 {
   542  					break
   543  				}
   544  			}
   545  			if msglen < 0 {
   546  				return ErrInvalidLengthFrontend
   547  			}
   548  			postIndex := iNdEx + msglen
   549  			if postIndex < 0 {
   550  				return ErrInvalidLengthFrontend
   551  			}
   552  			if postIndex > l {
   553  				return io.ErrUnexpectedEOF
   554  			}
   555  			if m.HttpResponse == nil {
   556  				m.HttpResponse = &httpgrpc.HTTPResponse{}
   557  			}
   558  			if err := m.HttpResponse.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   559  				return err
   560  			}
   561  			iNdEx = postIndex
   562  		case 3:
   563  			if wireType != 2 {
   564  				return fmt.Errorf("proto: wrong wireType = %d for field Stats", wireType)
   565  			}
   566  			var msglen int
   567  			for shift := uint(0); ; shift += 7 {
   568  				if shift >= 64 {
   569  					return ErrIntOverflowFrontend
   570  				}
   571  				if iNdEx >= l {
   572  					return io.ErrUnexpectedEOF
   573  				}
   574  				b := dAtA[iNdEx]
   575  				iNdEx++
   576  				msglen |= int(b&0x7F) << shift
   577  				if b < 0x80 {
   578  					break
   579  				}
   580  			}
   581  			if msglen < 0 {
   582  				return ErrInvalidLengthFrontend
   583  			}
   584  			postIndex := iNdEx + msglen
   585  			if postIndex < 0 {
   586  				return ErrInvalidLengthFrontend
   587  			}
   588  			if postIndex > l {
   589  				return io.ErrUnexpectedEOF
   590  			}
   591  			if m.Stats == nil {
   592  				m.Stats = &stats.Stats{}
   593  			}
   594  			if err := m.Stats.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
   595  				return err
   596  			}
   597  			iNdEx = postIndex
   598  		default:
   599  			iNdEx = preIndex
   600  			skippy, err := skipFrontend(dAtA[iNdEx:])
   601  			if err != nil {
   602  				return err
   603  			}
   604  			if skippy < 0 {
   605  				return ErrInvalidLengthFrontend
   606  			}
   607  			if (iNdEx + skippy) < 0 {
   608  				return ErrInvalidLengthFrontend
   609  			}
   610  			if (iNdEx + skippy) > l {
   611  				return io.ErrUnexpectedEOF
   612  			}
   613  			iNdEx += skippy
   614  		}
   615  	}
   616  
   617  	if iNdEx > l {
   618  		return io.ErrUnexpectedEOF
   619  	}
   620  	return nil
   621  }
   622  func (m *QueryResultResponse) Unmarshal(dAtA []byte) error {
   623  	l := len(dAtA)
   624  	iNdEx := 0
   625  	for iNdEx < l {
   626  		preIndex := iNdEx
   627  		var wire uint64
   628  		for shift := uint(0); ; shift += 7 {
   629  			if shift >= 64 {
   630  				return ErrIntOverflowFrontend
   631  			}
   632  			if iNdEx >= l {
   633  				return io.ErrUnexpectedEOF
   634  			}
   635  			b := dAtA[iNdEx]
   636  			iNdEx++
   637  			wire |= uint64(b&0x7F) << shift
   638  			if b < 0x80 {
   639  				break
   640  			}
   641  		}
   642  		fieldNum := int32(wire >> 3)
   643  		wireType := int(wire & 0x7)
   644  		if wireType == 4 {
   645  			return fmt.Errorf("proto: QueryResultResponse: wiretype end group for non-group")
   646  		}
   647  		if fieldNum <= 0 {
   648  			return fmt.Errorf("proto: QueryResultResponse: illegal tag %d (wire type %d)", fieldNum, wire)
   649  		}
   650  		switch fieldNum {
   651  		default:
   652  			iNdEx = preIndex
   653  			skippy, err := skipFrontend(dAtA[iNdEx:])
   654  			if err != nil {
   655  				return err
   656  			}
   657  			if skippy < 0 {
   658  				return ErrInvalidLengthFrontend
   659  			}
   660  			if (iNdEx + skippy) < 0 {
   661  				return ErrInvalidLengthFrontend
   662  			}
   663  			if (iNdEx + skippy) > l {
   664  				return io.ErrUnexpectedEOF
   665  			}
   666  			iNdEx += skippy
   667  		}
   668  	}
   669  
   670  	if iNdEx > l {
   671  		return io.ErrUnexpectedEOF
   672  	}
   673  	return nil
   674  }
   675  func skipFrontend(dAtA []byte) (n int, err error) {
   676  	l := len(dAtA)
   677  	iNdEx := 0
   678  	for iNdEx < l {
   679  		var wire uint64
   680  		for shift := uint(0); ; shift += 7 {
   681  			if shift >= 64 {
   682  				return 0, ErrIntOverflowFrontend
   683  			}
   684  			if iNdEx >= l {
   685  				return 0, io.ErrUnexpectedEOF
   686  			}
   687  			b := dAtA[iNdEx]
   688  			iNdEx++
   689  			wire |= (uint64(b) & 0x7F) << shift
   690  			if b < 0x80 {
   691  				break
   692  			}
   693  		}
   694  		wireType := int(wire & 0x7)
   695  		switch wireType {
   696  		case 0:
   697  			for shift := uint(0); ; shift += 7 {
   698  				if shift >= 64 {
   699  					return 0, ErrIntOverflowFrontend
   700  				}
   701  				if iNdEx >= l {
   702  					return 0, io.ErrUnexpectedEOF
   703  				}
   704  				iNdEx++
   705  				if dAtA[iNdEx-1] < 0x80 {
   706  					break
   707  				}
   708  			}
   709  			return iNdEx, nil
   710  		case 1:
   711  			iNdEx += 8
   712  			return iNdEx, nil
   713  		case 2:
   714  			var length int
   715  			for shift := uint(0); ; shift += 7 {
   716  				if shift >= 64 {
   717  					return 0, ErrIntOverflowFrontend
   718  				}
   719  				if iNdEx >= l {
   720  					return 0, io.ErrUnexpectedEOF
   721  				}
   722  				b := dAtA[iNdEx]
   723  				iNdEx++
   724  				length |= (int(b) & 0x7F) << shift
   725  				if b < 0x80 {
   726  					break
   727  				}
   728  			}
   729  			if length < 0 {
   730  				return 0, ErrInvalidLengthFrontend
   731  			}
   732  			iNdEx += length
   733  			if iNdEx < 0 {
   734  				return 0, ErrInvalidLengthFrontend
   735  			}
   736  			return iNdEx, nil
   737  		case 3:
   738  			for {
   739  				var innerWire uint64
   740  				var start int = iNdEx
   741  				for shift := uint(0); ; shift += 7 {
   742  					if shift >= 64 {
   743  						return 0, ErrIntOverflowFrontend
   744  					}
   745  					if iNdEx >= l {
   746  						return 0, io.ErrUnexpectedEOF
   747  					}
   748  					b := dAtA[iNdEx]
   749  					iNdEx++
   750  					innerWire |= (uint64(b) & 0x7F) << shift
   751  					if b < 0x80 {
   752  						break
   753  					}
   754  				}
   755  				innerWireType := int(innerWire & 0x7)
   756  				if innerWireType == 4 {
   757  					break
   758  				}
   759  				next, err := skipFrontend(dAtA[start:])
   760  				if err != nil {
   761  					return 0, err
   762  				}
   763  				iNdEx = start + next
   764  				if iNdEx < 0 {
   765  					return 0, ErrInvalidLengthFrontend
   766  				}
   767  			}
   768  			return iNdEx, nil
   769  		case 4:
   770  			return iNdEx, nil
   771  		case 5:
   772  			iNdEx += 4
   773  			return iNdEx, nil
   774  		default:
   775  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
   776  		}
   777  	}
   778  	panic("unreachable")
   779  }
   780  
   781  var (
   782  	ErrInvalidLengthFrontend = fmt.Errorf("proto: negative length found during unmarshaling")
   783  	ErrIntOverflowFrontend   = fmt.Errorf("proto: integer overflow")
   784  )