// Code generated by protoc-gen-go. // source: src/tokkee.org/go-talk/grpc/proto/backend/backend.proto // DO NOT EDIT! /* Package backend is a generated protocol buffer package. It is generated from these files: src/tokkee.org/go-talk/grpc/proto/backend/backend.proto It has these top-level messages: QueryRequest QueryReply */ package backend import proto "github.com/golang/protobuf/proto" import fmt "fmt" import math "math" import ( context "golang.org/x/net/context" grpc "google.golang.org/grpc" ) // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // This is a compile-time assertion to ensure that this generated file // is compatible with the proto package it is being compiled against. const _ = proto.ProtoPackageIsVersion1 type QueryRequest struct { Query string `protobuf:"bytes,1,opt,name=query" json:"query,omitempty"` } func (m *QueryRequest) Reset() { *m = QueryRequest{} } func (m *QueryRequest) String() string { return proto.CompactTextString(m) } func (*QueryRequest) ProtoMessage() {} func (*QueryRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} } type QueryReply struct { Type string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"` N int64 `protobuf:"varint,2,opt,name=n" json:"n,omitempty"` } func (m *QueryReply) Reset() { *m = QueryReply{} } func (m *QueryReply) String() string { return proto.CompactTextString(m) } func (*QueryReply) ProtoMessage() {} func (*QueryReply) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} } func init() { proto.RegisterType((*QueryRequest)(nil), "backend.QueryRequest") proto.RegisterType((*QueryReply)(nil), "backend.QueryReply") } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConn // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion2 // Client API for Backend service type BackendClient interface { Query(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (*QueryReply, error) } type backendClient struct { cc *grpc.ClientConn } func NewBackendClient(cc *grpc.ClientConn) BackendClient { return &backendClient{cc} } func (c *backendClient) Query(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (*QueryReply, error) { out := new(QueryReply) err := grpc.Invoke(ctx, "/backend.Backend/Query", in, out, c.cc, opts...) if err != nil { return nil, err } return out, nil } // Server API for Backend service type BackendServer interface { Query(context.Context, *QueryRequest) (*QueryReply, error) } func RegisterBackendServer(s *grpc.Server, srv BackendServer) { s.RegisterService(&_Backend_serviceDesc, srv) } func _Backend_Query_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(QueryRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(BackendServer).Query(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/backend.Backend/Query", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(BackendServer).Query(ctx, req.(*QueryRequest)) } return interceptor(ctx, in, info, handler) } var _Backend_serviceDesc = grpc.ServiceDesc{ ServiceName: "backend.Backend", HandlerType: (*BackendServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Query", Handler: _Backend_Query_Handler, }, }, Streams: []grpc.StreamDesc{}, } var fileDescriptor0 = []byte{ // 174 bytes of a gzipped FileDescriptorProto 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0x32, 0x2f, 0x2e, 0x4a, 0xd6, 0x2f, 0xc9, 0xcf, 0xce, 0x4e, 0x4d, 0xd5, 0xcb, 0x2f, 0x4a, 0xd7, 0x4f, 0xcf, 0xd7, 0x2d, 0x49, 0xcc, 0xc9, 0xd6, 0x4f, 0x2f, 0x2a, 0x48, 0xd6, 0x2f, 0x28, 0xca, 0x2f, 0xc9, 0xd7, 0x4f, 0x4a, 0x4c, 0xce, 0x4e, 0xcd, 0x4b, 0x81, 0xd1, 0x7a, 0x60, 0x51, 0x21, 0x76, 0x28, 0x57, 0x49, 0x85, 0x8b, 0x27, 0xb0, 0x34, 0xb5, 0xa8, 0x32, 0x28, 0xb5, 0xb0, 0x34, 0xb5, 0xb8, 0x44, 0x48, 0x84, 0x8b, 0xb5, 0x10, 0xc4, 0x97, 0x60, 0x54, 0x60, 0xd4, 0xe0, 0x0c, 0x82, 0x70, 0x94, 0xf4, 0xb8, 0xb8, 0xa0, 0xaa, 0x0a, 0x72, 0x2a, 0x85, 0x84, 0xb8, 0x58, 0x4a, 0x2a, 0x0b, 0x52, 0xa1, 0x4a, 0xc0, 0x6c, 0x21, 0x1e, 0x2e, 0xc6, 0x3c, 0x09, 0x26, 0xa0, 0x00, 0x73, 0x10, 0x63, 0x9e, 0x91, 0x03, 0x17, 0xbb, 0x13, 0xc4, 0x02, 0x21, 0x53, 0x2e, 0x56, 0xb0, 0x56, 0x21, 0x51, 0x3d, 0x98, 0x13, 0x90, 0x2d, 0x94, 0x12, 0x46, 0x17, 0x06, 0xda, 0xa0, 0xc4, 0x90, 0xc4, 0x06, 0x76, 0xa7, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff, 0x9b, 0xe0, 0x69, 0x75, 0xe2, 0x00, 0x00, 0x00, }