// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.2.0
// - protoc             v3.19.3
// source: walletServer.proto

package service

import (
	context "context"
	grpc "google.golang.org/grpc"
	codes "google.golang.org/grpc/codes"
	status "google.golang.org/grpc/status"
)

// 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

// WalletServerClient is the client API for WalletServer 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 WalletServerClient interface {
	Transfer(ctx context.Context, in *TransferRequest, opts ...grpc.CallOption) (*TransferResponse, error)
}

type walletServerClient struct {
	cc grpc.ClientConnInterface
}

func NewWalletServerClient(cc grpc.ClientConnInterface) WalletServerClient {
	return &walletServerClient{cc}
}

func (c *walletServerClient) Transfer(ctx context.Context, in *TransferRequest, opts ...grpc.CallOption) (*TransferResponse, error) {
	out := new(TransferResponse)
	err := c.cc.Invoke(ctx, "/service.WalletServer/Transfer", in, out, opts...)
	if err != nil {
		return nil, err
	}
	return out, nil
}

// WalletServerServer is the server API for WalletServer service.
// All implementations must embed UnimplementedWalletServerServer
// for forward compatibility
type WalletServerServer interface {
	Transfer(context.Context, *TransferRequest) (*TransferResponse, error)
	mustEmbedUnimplementedWalletServerServer()
}

// UnimplementedWalletServerServer must be embedded to have forward compatible implementations.
type UnimplementedWalletServerServer struct {
}

func (UnimplementedWalletServerServer) Transfer(context.Context, *TransferRequest) (*TransferResponse, error) {
	return nil, status.Errorf(codes.Unimplemented, "method Transfer not implemented")
}
func (UnimplementedWalletServerServer) mustEmbedUnimplementedWalletServerServer() {}

// UnsafeWalletServerServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to WalletServerServer will
// result in compilation errors.
type UnsafeWalletServerServer interface {
	mustEmbedUnimplementedWalletServerServer()
}

func RegisterWalletServerServer(s grpc.ServiceRegistrar, srv WalletServerServer) {
	s.RegisterService(&WalletServer_ServiceDesc, srv)
}

func _WalletServer_Transfer_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
	in := new(TransferRequest)
	if err := dec(in); err != nil {
		return nil, err
	}
	if interceptor == nil {
		return srv.(WalletServerServer).Transfer(ctx, in)
	}
	info := &grpc.UnaryServerInfo{
		Server:     srv,
		FullMethod: "/service.WalletServer/Transfer",
	}
	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
		return srv.(WalletServerServer).Transfer(ctx, req.(*TransferRequest))
	}
	return interceptor(ctx, in, info, handler)
}

// WalletServer_ServiceDesc is the grpc.ServiceDesc for WalletServer service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var WalletServer_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "service.WalletServer",
	HandlerType: (*WalletServerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Transfer",
			Handler:    _WalletServer_Transfer_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "walletServer.proto",
}
