deprecation_grpc.pb.go 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
  2. package grpc
  3. import (
  4. context "context"
  5. grpc "google.golang.org/grpc"
  6. )
  7. // Reference imports to suppress errors if they are not otherwise used.
  8. var _ context.Context
  9. var _ grpc.ClientConn
  10. // This is a compile-time assertion to ensure that this generated file
  11. // is compatible with the grpc package it is being compiled against.
  12. const _ = grpc.SupportPackageIsVersion4
  13. // DeprecatedServiceClient is the client API for DeprecatedService service.
  14. //
  15. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  16. //
  17. // Deprecated: Do not use.
  18. type DeprecatedServiceClient interface {
  19. DeprecatedCall(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
  20. }
  21. type deprecatedServiceClient struct {
  22. cc *grpc.ClientConn
  23. }
  24. // Deprecated: Do not use.
  25. func NewDeprecatedServiceClient(cc *grpc.ClientConn) DeprecatedServiceClient {
  26. return &deprecatedServiceClient{cc}
  27. }
  28. // Deprecated: Do not use.
  29. func (c *deprecatedServiceClient) DeprecatedCall(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) {
  30. out := new(Response)
  31. err := c.cc.Invoke(ctx, "/goproto.protoc.grpc.DeprecatedService/DeprecatedCall", in, out, opts...)
  32. if err != nil {
  33. return nil, err
  34. }
  35. return out, nil
  36. }
  37. // DeprecatedServiceServer is the server API for DeprecatedService service.
  38. //
  39. // Deprecated: Do not use.
  40. type DeprecatedServiceServer interface {
  41. DeprecatedCall(context.Context, *Request) (*Response, error)
  42. }
  43. // Deprecated: Do not use.
  44. func RegisterDeprecatedServiceServer(s *grpc.Server, srv DeprecatedServiceServer) {
  45. s.RegisterService(&_DeprecatedService_serviceDesc, srv)
  46. }
  47. func _DeprecatedService_DeprecatedCall_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  48. in := new(Request)
  49. if err := dec(in); err != nil {
  50. return nil, err
  51. }
  52. if interceptor == nil {
  53. return srv.(DeprecatedServiceServer).DeprecatedCall(ctx, in)
  54. }
  55. info := &grpc.UnaryServerInfo{
  56. Server: srv,
  57. FullMethod: "/goproto.protoc.grpc.DeprecatedService/DeprecatedCall",
  58. }
  59. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  60. return srv.(DeprecatedServiceServer).DeprecatedCall(ctx, req.(*Request))
  61. }
  62. return interceptor(ctx, in, info, handler)
  63. }
  64. var _DeprecatedService_serviceDesc = grpc.ServiceDesc{
  65. ServiceName: "goproto.protoc.grpc.DeprecatedService",
  66. HandlerType: (*DeprecatedServiceServer)(nil),
  67. Methods: []grpc.MethodDesc{
  68. {
  69. MethodName: "DeprecatedCall",
  70. Handler: _DeprecatedService_DeprecatedCall_Handler,
  71. },
  72. },
  73. Streams: []grpc.StreamDesc{},
  74. Metadata: "grpc/deprecation.proto",
  75. }