"""Client and server classes corresponding to protobuf-defined services."""
import grpc
import warnings
from ....sentinel.subscription.v1 import querier_pb2 as sentinel_dot_subscription_dot_v1_dot_querier__pb2
GRPC_GENERATED_VERSION = '1.71.0'
GRPC_VERSION = grpc.__version__
_version_not_supported = False
try:
    from grpc._utilities import first_version_is_lower
    _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
except ImportError:
    _version_not_supported = True
if _version_not_supported:
    raise RuntimeError(f'The grpc package installed is at version {GRPC_VERSION},' + f' but the generated code in sentinel/subscription/v1/querier_pb2_grpc.py depends on' + f' grpcio>={GRPC_GENERATED_VERSION}.' + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.')

class QueryServiceStub(object):
    """Missing associated documentation comment in .proto file."""

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

        Args:
            channel: A grpc.Channel.
        """
        self.QueryQuotas = channel.unary_unary('/sentinel.subscription.v1.QueryService/QueryQuotas', request_serializer=sentinel_dot_subscription_dot_v1_dot_querier__pb2.QueryQuotasRequest.SerializeToString, response_deserializer=sentinel_dot_subscription_dot_v1_dot_querier__pb2.QueryQuotasResponse.FromString, _registered_method=True)
        self.QueryQuota = channel.unary_unary('/sentinel.subscription.v1.QueryService/QueryQuota', request_serializer=sentinel_dot_subscription_dot_v1_dot_querier__pb2.QueryQuotaRequest.SerializeToString, response_deserializer=sentinel_dot_subscription_dot_v1_dot_querier__pb2.QueryQuotaResponse.FromString, _registered_method=True)
        self.QuerySubscriptions = channel.unary_unary('/sentinel.subscription.v1.QueryService/QuerySubscriptions', request_serializer=sentinel_dot_subscription_dot_v1_dot_querier__pb2.QuerySubscriptionsRequest.SerializeToString, response_deserializer=sentinel_dot_subscription_dot_v1_dot_querier__pb2.QuerySubscriptionsResponse.FromString, _registered_method=True)
        self.QuerySubscriptionsForAddress = channel.unary_unary('/sentinel.subscription.v1.QueryService/QuerySubscriptionsForAddress', request_serializer=sentinel_dot_subscription_dot_v1_dot_querier__pb2.QuerySubscriptionsForAddressRequest.SerializeToString, response_deserializer=sentinel_dot_subscription_dot_v1_dot_querier__pb2.QuerySubscriptionsForAddressResponse.FromString, _registered_method=True)
        self.QuerySubscription = channel.unary_unary('/sentinel.subscription.v1.QueryService/QuerySubscription', request_serializer=sentinel_dot_subscription_dot_v1_dot_querier__pb2.QuerySubscriptionRequest.SerializeToString, response_deserializer=sentinel_dot_subscription_dot_v1_dot_querier__pb2.QuerySubscriptionResponse.FromString, _registered_method=True)
        self.QueryParams = channel.unary_unary('/sentinel.subscription.v1.QueryService/QueryParams', request_serializer=sentinel_dot_subscription_dot_v1_dot_querier__pb2.QueryParamsRequest.SerializeToString, response_deserializer=sentinel_dot_subscription_dot_v1_dot_querier__pb2.QueryParamsResponse.FromString, _registered_method=True)

class QueryServiceServicer(object):
    """Missing associated documentation comment in .proto file."""

    def QueryQuotas(self, request, context):
        """Missing associated documentation comment in .proto file."""
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def QueryQuota(self, request, context):
        """Missing associated documentation comment in .proto file."""
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def QuerySubscriptions(self, request, context):
        """Missing associated documentation comment in .proto file."""
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def QuerySubscriptionsForAddress(self, request, context):
        """Missing associated documentation comment in .proto file."""
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def QuerySubscription(self, request, context):
        """Missing associated documentation comment in .proto file."""
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def QueryParams(self, request, context):
        """Missing associated documentation comment in .proto file."""
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

def add_QueryServiceServicer_to_server(servicer, server):
    rpc_method_handlers = {'QueryQuotas': grpc.unary_unary_rpc_method_handler(servicer.QueryQuotas, request_deserializer=sentinel_dot_subscription_dot_v1_dot_querier__pb2.QueryQuotasRequest.FromString, response_serializer=sentinel_dot_subscription_dot_v1_dot_querier__pb2.QueryQuotasResponse.SerializeToString), 'QueryQuota': grpc.unary_unary_rpc_method_handler(servicer.QueryQuota, request_deserializer=sentinel_dot_subscription_dot_v1_dot_querier__pb2.QueryQuotaRequest.FromString, response_serializer=sentinel_dot_subscription_dot_v1_dot_querier__pb2.QueryQuotaResponse.SerializeToString), 'QuerySubscriptions': grpc.unary_unary_rpc_method_handler(servicer.QuerySubscriptions, request_deserializer=sentinel_dot_subscription_dot_v1_dot_querier__pb2.QuerySubscriptionsRequest.FromString, response_serializer=sentinel_dot_subscription_dot_v1_dot_querier__pb2.QuerySubscriptionsResponse.SerializeToString), 'QuerySubscriptionsForAddress': grpc.unary_unary_rpc_method_handler(servicer.QuerySubscriptionsForAddress, request_deserializer=sentinel_dot_subscription_dot_v1_dot_querier__pb2.QuerySubscriptionsForAddressRequest.FromString, response_serializer=sentinel_dot_subscription_dot_v1_dot_querier__pb2.QuerySubscriptionsForAddressResponse.SerializeToString), 'QuerySubscription': grpc.unary_unary_rpc_method_handler(servicer.QuerySubscription, request_deserializer=sentinel_dot_subscription_dot_v1_dot_querier__pb2.QuerySubscriptionRequest.FromString, response_serializer=sentinel_dot_subscription_dot_v1_dot_querier__pb2.QuerySubscriptionResponse.SerializeToString), 'QueryParams': grpc.unary_unary_rpc_method_handler(servicer.QueryParams, request_deserializer=sentinel_dot_subscription_dot_v1_dot_querier__pb2.QueryParamsRequest.FromString, response_serializer=sentinel_dot_subscription_dot_v1_dot_querier__pb2.QueryParamsResponse.SerializeToString)}
    generic_handler = grpc.method_handlers_generic_handler('sentinel.subscription.v1.QueryService', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))
    server.add_registered_method_handlers('sentinel.subscription.v1.QueryService', rpc_method_handlers)

class QueryService(object):
    """Missing associated documentation comment in .proto file."""

    @staticmethod
    def QueryQuotas(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, '/sentinel.subscription.v1.QueryService/QueryQuotas', sentinel_dot_subscription_dot_v1_dot_querier__pb2.QueryQuotasRequest.SerializeToString, sentinel_dot_subscription_dot_v1_dot_querier__pb2.QueryQuotasResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata, _registered_method=True)

    @staticmethod
    def QueryQuota(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, '/sentinel.subscription.v1.QueryService/QueryQuota', sentinel_dot_subscription_dot_v1_dot_querier__pb2.QueryQuotaRequest.SerializeToString, sentinel_dot_subscription_dot_v1_dot_querier__pb2.QueryQuotaResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata, _registered_method=True)

    @staticmethod
    def QuerySubscriptions(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, '/sentinel.subscription.v1.QueryService/QuerySubscriptions', sentinel_dot_subscription_dot_v1_dot_querier__pb2.QuerySubscriptionsRequest.SerializeToString, sentinel_dot_subscription_dot_v1_dot_querier__pb2.QuerySubscriptionsResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata, _registered_method=True)

    @staticmethod
    def QuerySubscriptionsForAddress(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, '/sentinel.subscription.v1.QueryService/QuerySubscriptionsForAddress', sentinel_dot_subscription_dot_v1_dot_querier__pb2.QuerySubscriptionsForAddressRequest.SerializeToString, sentinel_dot_subscription_dot_v1_dot_querier__pb2.QuerySubscriptionsForAddressResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata, _registered_method=True)

    @staticmethod
    def QuerySubscription(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, '/sentinel.subscription.v1.QueryService/QuerySubscription', sentinel_dot_subscription_dot_v1_dot_querier__pb2.QuerySubscriptionRequest.SerializeToString, sentinel_dot_subscription_dot_v1_dot_querier__pb2.QuerySubscriptionResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata, _registered_method=True)

    @staticmethod
    def QueryParams(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, '/sentinel.subscription.v1.QueryService/QueryParams', sentinel_dot_subscription_dot_v1_dot_querier__pb2.QueryParamsRequest.SerializeToString, sentinel_dot_subscription_dot_v1_dot_querier__pb2.QueryParamsResponse.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata, _registered_method=True)