| // Code generated by protoc-gen-go-grpc. DO NOT EDIT. |
| |
| package grpc |
| |
| import ( |
| context "context" |
| grpc "google.golang.org/grpc" |
| ) |
| |
| // 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.SupportPackageIsVersion4 |
| |
| // DeprecatedServiceClient is the client API for DeprecatedService service. |
| // |
| // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| // |
| // Deprecated: Do not use. |
| type DeprecatedServiceClient interface { |
| DeprecatedCall(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) |
| } |
| |
| type deprecatedServiceClient struct { |
| cc *grpc.ClientConn |
| } |
| |
| // Deprecated: Do not use. |
| func NewDeprecatedServiceClient(cc *grpc.ClientConn) DeprecatedServiceClient { |
| return &deprecatedServiceClient{cc} |
| } |
| |
| // Deprecated: Do not use. |
| func (c *deprecatedServiceClient) DeprecatedCall(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) { |
| out := new(Response) |
| err := c.cc.Invoke(ctx, "/goproto.protoc.grpc.DeprecatedService/DeprecatedCall", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| // DeprecatedServiceServer is the server API for DeprecatedService service. |
| // |
| // Deprecated: Do not use. |
| type DeprecatedServiceServer interface { |
| DeprecatedCall(context.Context, *Request) (*Response, error) |
| } |
| |
| // Deprecated: Do not use. |
| func RegisterDeprecatedServiceServer(s *grpc.Server, srv DeprecatedServiceServer) { |
| s.RegisterService(&_DeprecatedService_serviceDesc, srv) |
| } |
| |
| func _DeprecatedService_DeprecatedCall_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(Request) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(DeprecatedServiceServer).DeprecatedCall(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/goproto.protoc.grpc.DeprecatedService/DeprecatedCall", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(DeprecatedServiceServer).DeprecatedCall(ctx, req.(*Request)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| var _DeprecatedService_serviceDesc = grpc.ServiceDesc{ |
| ServiceName: "goproto.protoc.grpc.DeprecatedService", |
| HandlerType: (*DeprecatedServiceServer)(nil), |
| Methods: []grpc.MethodDesc{ |
| { |
| MethodName: "DeprecatedCall", |
| Handler: _DeprecatedService_DeprecatedCall_Handler, |
| }, |
| }, |
| Streams: []grpc.StreamDesc{}, |
| Metadata: "grpc/deprecation.proto", |
| } |