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

from . import admin_pb2 as admin_dot_v1_dot_admin__pb2


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

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

        Args:
            channel: A grpc.Channel.
        """
        self.GetApiKeys = channel.unary_unary(
                '/admin.v1.DevService/GetApiKeys',
                request_serializer=admin_dot_v1_dot_admin__pb2.GetApiKeysRequest.SerializeToString,
                response_deserializer=admin_dot_v1_dot_admin__pb2.GetApiKeysResponse.FromString,
                _registered_method=True)
        self.CreateApiKey = channel.unary_unary(
                '/admin.v1.DevService/CreateApiKey',
                request_serializer=admin_dot_v1_dot_admin__pb2.CreateApiKeyRequest.SerializeToString,
                response_deserializer=admin_dot_v1_dot_admin__pb2.CreateApiKeyResponse.FromString,
                _registered_method=True)
        self.DeleteApiKey = channel.unary_unary(
                '/admin.v1.DevService/DeleteApiKey',
                request_serializer=admin_dot_v1_dot_admin__pb2.DeleteApiKeyRequest.SerializeToString,
                response_deserializer=admin_dot_v1_dot_admin__pb2.DeleteApiKeyResponse.FromString,
                _registered_method=True)


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

    def GetApiKeys(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 CreateApiKey(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 DeleteApiKey(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_DevServiceServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'GetApiKeys': grpc.unary_unary_rpc_method_handler(
                    servicer.GetApiKeys,
                    request_deserializer=admin_dot_v1_dot_admin__pb2.GetApiKeysRequest.FromString,
                    response_serializer=admin_dot_v1_dot_admin__pb2.GetApiKeysResponse.SerializeToString,
            ),
            'CreateApiKey': grpc.unary_unary_rpc_method_handler(
                    servicer.CreateApiKey,
                    request_deserializer=admin_dot_v1_dot_admin__pb2.CreateApiKeyRequest.FromString,
                    response_serializer=admin_dot_v1_dot_admin__pb2.CreateApiKeyResponse.SerializeToString,
            ),
            'DeleteApiKey': grpc.unary_unary_rpc_method_handler(
                    servicer.DeleteApiKey,
                    request_deserializer=admin_dot_v1_dot_admin__pb2.DeleteApiKeyRequest.FromString,
                    response_serializer=admin_dot_v1_dot_admin__pb2.DeleteApiKeyResponse.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'admin.v1.DevService', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))
    server.add_registered_method_handlers('admin.v1.DevService', rpc_method_handlers)


 # This class is part of an EXPERIMENTAL API.
class DevService(object):
    """Missing associated documentation comment in .proto file."""

    @staticmethod
    def GetApiKeys(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,
            '/admin.v1.DevService/GetApiKeys',
            admin_dot_v1_dot_admin__pb2.GetApiKeysRequest.SerializeToString,
            admin_dot_v1_dot_admin__pb2.GetApiKeysResponse.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def CreateApiKey(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,
            '/admin.v1.DevService/CreateApiKey',
            admin_dot_v1_dot_admin__pb2.CreateApiKeyRequest.SerializeToString,
            admin_dot_v1_dot_admin__pb2.CreateApiKeyResponse.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)

    @staticmethod
    def DeleteApiKey(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,
            '/admin.v1.DevService/DeleteApiKey',
            admin_dot_v1_dot_admin__pb2.DeleteApiKeyRequest.SerializeToString,
            admin_dot_v1_dot_admin__pb2.DeleteApiKeyResponse.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
            _registered_method=True)
