// Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 // - protoc v3.21.12 // source: greeter.proto package api import ( context "context" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" emptypb "google.golang.org/protobuf/types/known/emptypb" ) // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. // Requires gRPC-Go v1.32.0 or later. const _ = grpc.SupportPackageIsVersion7 const ( Greeter_Ping_FullMethodName = "/api.Greeter/Ping" Greeter_CountryList_FullMethodName = "/api.Greeter/CountryList" Greeter_DistrictCascade_FullMethodName = "/api.Greeter/DistrictCascade" Greeter_PayConsult_FullMethodName = "/api.Greeter/PayConsult" Greeter_PayTransactionWebUrl_FullMethodName = "/api.Greeter/PayTransactionWebUrl" Greeter_PaypalPayback_FullMethodName = "/api.Greeter/PaypalPayback" Greeter_AlipayGPayback_FullMethodName = "/api.Greeter/AlipayGPayback" Greeter_AlipayGCapture_FullMethodName = "/api.Greeter/AlipayGCapture" Greeter_PayoutsWebUrl_FullMethodName = "/api.Greeter/PayoutsWebUrl" Greeter_GetPayTransaction_FullMethodName = "/api.Greeter/GetPayTransaction" Greeter_CancelBill_FullMethodName = "/api.Greeter/CancelBill" Greeter_RefundBill_FullMethodName = "/api.Greeter/RefundBill" ) // GreeterClient is the client API for Greeter service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. type GreeterClient interface { // Sends a greeting Ping(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*PingReply, error) CountryList(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*CountryReply, error) DistrictCascade(ctx context.Context, in *DistrictRequest, opts ...grpc.CallOption) (*DistrictReply, error) PayConsult(ctx context.Context, in *PayConsultRequest, opts ...grpc.CallOption) (*PayConsultReply, error) PayTransactionWebUrl(ctx context.Context, in *PayTransRequest, opts ...grpc.CallOption) (*WebPayResponse, error) PaypalPayback(ctx context.Context, in *PaypalWebhook, opts ...grpc.CallOption) (*PaypalPaybackResp, error) AlipayGPayback(ctx context.Context, in *AlipayGWebhook, opts ...grpc.CallOption) (*AlipayGPaybackResp, error) AlipayGCapture(ctx context.Context, in *AlipayGWebhook, opts ...grpc.CallOption) (*AlipayGPaybackResp, error) PayoutsWebUrl(ctx context.Context, in *PayoutRequest, opts ...grpc.CallOption) (*WebPayResponse, error) GetPayTransaction(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetPayTransactionResp, error) CancelBill(ctx context.Context, in *CancelBillRequest, opts ...grpc.CallOption) (*PingReply, error) RefundBill(ctx context.Context, in *RefundRequest, opts ...grpc.CallOption) (*RefundResponse, error) } type greeterClient struct { cc grpc.ClientConnInterface } func NewGreeterClient(cc grpc.ClientConnInterface) GreeterClient { return &greeterClient{cc} } func (c *greeterClient) Ping(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*PingReply, error) { out := new(PingReply) err := c.cc.Invoke(ctx, Greeter_Ping_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *greeterClient) CountryList(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*CountryReply, error) { out := new(CountryReply) err := c.cc.Invoke(ctx, Greeter_CountryList_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *greeterClient) DistrictCascade(ctx context.Context, in *DistrictRequest, opts ...grpc.CallOption) (*DistrictReply, error) { out := new(DistrictReply) err := c.cc.Invoke(ctx, Greeter_DistrictCascade_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *greeterClient) PayConsult(ctx context.Context, in *PayConsultRequest, opts ...grpc.CallOption) (*PayConsultReply, error) { out := new(PayConsultReply) err := c.cc.Invoke(ctx, Greeter_PayConsult_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *greeterClient) PayTransactionWebUrl(ctx context.Context, in *PayTransRequest, opts ...grpc.CallOption) (*WebPayResponse, error) { out := new(WebPayResponse) err := c.cc.Invoke(ctx, Greeter_PayTransactionWebUrl_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *greeterClient) PaypalPayback(ctx context.Context, in *PaypalWebhook, opts ...grpc.CallOption) (*PaypalPaybackResp, error) { out := new(PaypalPaybackResp) err := c.cc.Invoke(ctx, Greeter_PaypalPayback_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *greeterClient) AlipayGPayback(ctx context.Context, in *AlipayGWebhook, opts ...grpc.CallOption) (*AlipayGPaybackResp, error) { out := new(AlipayGPaybackResp) err := c.cc.Invoke(ctx, Greeter_AlipayGPayback_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *greeterClient) AlipayGCapture(ctx context.Context, in *AlipayGWebhook, opts ...grpc.CallOption) (*AlipayGPaybackResp, error) { out := new(AlipayGPaybackResp) err := c.cc.Invoke(ctx, Greeter_AlipayGCapture_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *greeterClient) PayoutsWebUrl(ctx context.Context, in *PayoutRequest, opts ...grpc.CallOption) (*WebPayResponse, error) { out := new(WebPayResponse) err := c.cc.Invoke(ctx, Greeter_PayoutsWebUrl_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *greeterClient) GetPayTransaction(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetPayTransactionResp, error) { out := new(GetPayTransactionResp) err := c.cc.Invoke(ctx, Greeter_GetPayTransaction_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *greeterClient) CancelBill(ctx context.Context, in *CancelBillRequest, opts ...grpc.CallOption) (*PingReply, error) { out := new(PingReply) err := c.cc.Invoke(ctx, Greeter_CancelBill_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *greeterClient) RefundBill(ctx context.Context, in *RefundRequest, opts ...grpc.CallOption) (*RefundResponse, error) { out := new(RefundResponse) err := c.cc.Invoke(ctx, Greeter_RefundBill_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } // GreeterServer is the server API for Greeter service. // All implementations must embed UnimplementedGreeterServer // for forward compatibility type GreeterServer interface { // Sends a greeting Ping(context.Context, *emptypb.Empty) (*PingReply, error) CountryList(context.Context, *emptypb.Empty) (*CountryReply, error) DistrictCascade(context.Context, *DistrictRequest) (*DistrictReply, error) PayConsult(context.Context, *PayConsultRequest) (*PayConsultReply, error) PayTransactionWebUrl(context.Context, *PayTransRequest) (*WebPayResponse, error) PaypalPayback(context.Context, *PaypalWebhook) (*PaypalPaybackResp, error) AlipayGPayback(context.Context, *AlipayGWebhook) (*AlipayGPaybackResp, error) AlipayGCapture(context.Context, *AlipayGWebhook) (*AlipayGPaybackResp, error) PayoutsWebUrl(context.Context, *PayoutRequest) (*WebPayResponse, error) GetPayTransaction(context.Context, *emptypb.Empty) (*GetPayTransactionResp, error) CancelBill(context.Context, *CancelBillRequest) (*PingReply, error) RefundBill(context.Context, *RefundRequest) (*RefundResponse, error) mustEmbedUnimplementedGreeterServer() } // UnimplementedGreeterServer must be embedded to have forward compatible implementations. type UnimplementedGreeterServer struct { } func (UnimplementedGreeterServer) Ping(context.Context, *emptypb.Empty) (*PingReply, error) { return nil, status.Errorf(codes.Unimplemented, "method Ping not implemented") } func (UnimplementedGreeterServer) CountryList(context.Context, *emptypb.Empty) (*CountryReply, error) { return nil, status.Errorf(codes.Unimplemented, "method CountryList not implemented") } func (UnimplementedGreeterServer) DistrictCascade(context.Context, *DistrictRequest) (*DistrictReply, error) { return nil, status.Errorf(codes.Unimplemented, "method DistrictCascade not implemented") } func (UnimplementedGreeterServer) PayConsult(context.Context, *PayConsultRequest) (*PayConsultReply, error) { return nil, status.Errorf(codes.Unimplemented, "method PayConsult not implemented") } func (UnimplementedGreeterServer) PayTransactionWebUrl(context.Context, *PayTransRequest) (*WebPayResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method PayTransactionWebUrl not implemented") } func (UnimplementedGreeterServer) PaypalPayback(context.Context, *PaypalWebhook) (*PaypalPaybackResp, error) { return nil, status.Errorf(codes.Unimplemented, "method PaypalPayback not implemented") } func (UnimplementedGreeterServer) AlipayGPayback(context.Context, *AlipayGWebhook) (*AlipayGPaybackResp, error) { return nil, status.Errorf(codes.Unimplemented, "method AlipayGPayback not implemented") } func (UnimplementedGreeterServer) AlipayGCapture(context.Context, *AlipayGWebhook) (*AlipayGPaybackResp, error) { return nil, status.Errorf(codes.Unimplemented, "method AlipayGCapture not implemented") } func (UnimplementedGreeterServer) PayoutsWebUrl(context.Context, *PayoutRequest) (*WebPayResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method PayoutsWebUrl not implemented") } func (UnimplementedGreeterServer) GetPayTransaction(context.Context, *emptypb.Empty) (*GetPayTransactionResp, error) { return nil, status.Errorf(codes.Unimplemented, "method GetPayTransaction not implemented") } func (UnimplementedGreeterServer) CancelBill(context.Context, *CancelBillRequest) (*PingReply, error) { return nil, status.Errorf(codes.Unimplemented, "method CancelBill not implemented") } func (UnimplementedGreeterServer) RefundBill(context.Context, *RefundRequest) (*RefundResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method RefundBill not implemented") } func (UnimplementedGreeterServer) mustEmbedUnimplementedGreeterServer() {} // UnsafeGreeterServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to GreeterServer will // result in compilation errors. type UnsafeGreeterServer interface { mustEmbedUnimplementedGreeterServer() } func RegisterGreeterServer(s grpc.ServiceRegistrar, srv GreeterServer) { s.RegisterService(&Greeter_ServiceDesc, srv) } func _Greeter_Ping_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(emptypb.Empty) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(GreeterServer).Ping(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Greeter_Ping_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(GreeterServer).Ping(ctx, req.(*emptypb.Empty)) } return interceptor(ctx, in, info, handler) } func _Greeter_CountryList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(emptypb.Empty) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(GreeterServer).CountryList(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Greeter_CountryList_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(GreeterServer).CountryList(ctx, req.(*emptypb.Empty)) } return interceptor(ctx, in, info, handler) } func _Greeter_DistrictCascade_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(DistrictRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(GreeterServer).DistrictCascade(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Greeter_DistrictCascade_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(GreeterServer).DistrictCascade(ctx, req.(*DistrictRequest)) } return interceptor(ctx, in, info, handler) } func _Greeter_PayConsult_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(PayConsultRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(GreeterServer).PayConsult(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Greeter_PayConsult_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(GreeterServer).PayConsult(ctx, req.(*PayConsultRequest)) } return interceptor(ctx, in, info, handler) } func _Greeter_PayTransactionWebUrl_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(PayTransRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(GreeterServer).PayTransactionWebUrl(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Greeter_PayTransactionWebUrl_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(GreeterServer).PayTransactionWebUrl(ctx, req.(*PayTransRequest)) } return interceptor(ctx, in, info, handler) } func _Greeter_PaypalPayback_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(PaypalWebhook) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(GreeterServer).PaypalPayback(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Greeter_PaypalPayback_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(GreeterServer).PaypalPayback(ctx, req.(*PaypalWebhook)) } return interceptor(ctx, in, info, handler) } func _Greeter_AlipayGPayback_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(AlipayGWebhook) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(GreeterServer).AlipayGPayback(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Greeter_AlipayGPayback_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(GreeterServer).AlipayGPayback(ctx, req.(*AlipayGWebhook)) } return interceptor(ctx, in, info, handler) } func _Greeter_AlipayGCapture_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(AlipayGWebhook) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(GreeterServer).AlipayGCapture(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Greeter_AlipayGCapture_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(GreeterServer).AlipayGCapture(ctx, req.(*AlipayGWebhook)) } return interceptor(ctx, in, info, handler) } func _Greeter_PayoutsWebUrl_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(PayoutRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(GreeterServer).PayoutsWebUrl(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Greeter_PayoutsWebUrl_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(GreeterServer).PayoutsWebUrl(ctx, req.(*PayoutRequest)) } return interceptor(ctx, in, info, handler) } func _Greeter_GetPayTransaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(emptypb.Empty) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(GreeterServer).GetPayTransaction(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Greeter_GetPayTransaction_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(GreeterServer).GetPayTransaction(ctx, req.(*emptypb.Empty)) } return interceptor(ctx, in, info, handler) } func _Greeter_CancelBill_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CancelBillRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(GreeterServer).CancelBill(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Greeter_CancelBill_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(GreeterServer).CancelBill(ctx, req.(*CancelBillRequest)) } return interceptor(ctx, in, info, handler) } func _Greeter_RefundBill_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(RefundRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(GreeterServer).RefundBill(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: Greeter_RefundBill_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(GreeterServer).RefundBill(ctx, req.(*RefundRequest)) } return interceptor(ctx, in, info, handler) } // Greeter_ServiceDesc is the grpc.ServiceDesc for Greeter service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var Greeter_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.Greeter", HandlerType: (*GreeterServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Ping", Handler: _Greeter_Ping_Handler, }, { MethodName: "CountryList", Handler: _Greeter_CountryList_Handler, }, { MethodName: "DistrictCascade", Handler: _Greeter_DistrictCascade_Handler, }, { MethodName: "PayConsult", Handler: _Greeter_PayConsult_Handler, }, { MethodName: "PayTransactionWebUrl", Handler: _Greeter_PayTransactionWebUrl_Handler, }, { MethodName: "PaypalPayback", Handler: _Greeter_PaypalPayback_Handler, }, { MethodName: "AlipayGPayback", Handler: _Greeter_AlipayGPayback_Handler, }, { MethodName: "AlipayGCapture", Handler: _Greeter_AlipayGCapture_Handler, }, { MethodName: "PayoutsWebUrl", Handler: _Greeter_PayoutsWebUrl_Handler, }, { MethodName: "GetPayTransaction", Handler: _Greeter_GetPayTransaction_Handler, }, { MethodName: "CancelBill", Handler: _Greeter_CancelBill_Handler, }, { MethodName: "RefundBill", Handler: _Greeter_RefundBill_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "greeter.proto", }