# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc

from cosmos.airdrop.v1beta1 import query_pb2 as cosmos_dot_airdrop_dot_v1beta1_dot_query__pb2


class QueryStub(object):
    """Query defines the gRPC querier service.
    """

    def __init__(self, channel):
        """Constructor.

        Args:
            channel: A grpc.Channel.
        """
        self.AllFunds = channel.unary_unary(
                '/cosmos.airdrop.v1beta1.Query/AllFunds',
                request_serializer=cosmos_dot_airdrop_dot_v1beta1_dot_query__pb2.QueryAllFundsRequest.SerializeToString,
                response_deserializer=cosmos_dot_airdrop_dot_v1beta1_dot_query__pb2.QueryAllFundsResponse.FromString,
                )
        self.Fund = channel.unary_unary(
                '/cosmos.airdrop.v1beta1.Query/Fund',
                request_serializer=cosmos_dot_airdrop_dot_v1beta1_dot_query__pb2.QueryFundRequest.SerializeToString,
                response_deserializer=cosmos_dot_airdrop_dot_v1beta1_dot_query__pb2.QueryFundResponse.FromString,
                )
        self.Params = channel.unary_unary(
                '/cosmos.airdrop.v1beta1.Query/Params',
                request_serializer=cosmos_dot_airdrop_dot_v1beta1_dot_query__pb2.QueryParamsRequest.SerializeToString,
                response_deserializer=cosmos_dot_airdrop_dot_v1beta1_dot_query__pb2.QueryParamsResponse.FromString,
                )


class QueryServicer(object):
    """Query defines the gRPC querier service.
    """

    def AllFunds(self, request, context):
        """AllFunds queries all active airdrop funds
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def Fund(self, request, context):
        """Fund queries a specific airdrop fund
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def Params(self, request, context):
        """Params queries the current modules parameters
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')


def add_QueryServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'AllFunds': grpc.unary_unary_rpc_method_handler(
                    servicer.AllFunds,
                    request_deserializer=cosmos_dot_airdrop_dot_v1beta1_dot_query__pb2.QueryAllFundsRequest.FromString,
                    response_serializer=cosmos_dot_airdrop_dot_v1beta1_dot_query__pb2.QueryAllFundsResponse.SerializeToString,
            ),
            'Fund': grpc.unary_unary_rpc_method_handler(
                    servicer.Fund,
                    request_deserializer=cosmos_dot_airdrop_dot_v1beta1_dot_query__pb2.QueryFundRequest.FromString,
                    response_serializer=cosmos_dot_airdrop_dot_v1beta1_dot_query__pb2.QueryFundResponse.SerializeToString,
            ),
            'Params': grpc.unary_unary_rpc_method_handler(
                    servicer.Params,
                    request_deserializer=cosmos_dot_airdrop_dot_v1beta1_dot_query__pb2.QueryParamsRequest.FromString,
                    response_serializer=cosmos_dot_airdrop_dot_v1beta1_dot_query__pb2.QueryParamsResponse.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'cosmos.airdrop.v1beta1.Query', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))


 # This class is part of an EXPERIMENTAL API.
class Query(object):
    """Query defines the gRPC querier service.
    """

    @staticmethod
    def AllFunds(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            insecure=False,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_unary(request, target, '/cosmos.airdrop.v1beta1.Query/AllFunds',
            cosmos_dot_airdrop_dot_v1beta1_dot_query__pb2.QueryAllFundsRequest.SerializeToString,
            cosmos_dot_airdrop_dot_v1beta1_dot_query__pb2.QueryAllFundsResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def Fund(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            insecure=False,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_unary(request, target, '/cosmos.airdrop.v1beta1.Query/Fund',
            cosmos_dot_airdrop_dot_v1beta1_dot_query__pb2.QueryFundRequest.SerializeToString,
            cosmos_dot_airdrop_dot_v1beta1_dot_query__pb2.QueryFundResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def Params(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            insecure=False,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_unary(request, target, '/cosmos.airdrop.v1beta1.Query/Params',
            cosmos_dot_airdrop_dot_v1beta1_dot_query__pb2.QueryParamsRequest.SerializeToString,
            cosmos_dot_airdrop_dot_v1beta1_dot_query__pb2.QueryParamsResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
