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

from github.com.metaprov.modelaapi.services.predictiveapp.v1 import predictiveapp_pb2 as github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictiveapp_dot_v1_dot_predictiveapp__pb2


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

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

        Args:
            channel: A grpc.Channel.
        """
        self.ListPredictiveApps = channel.unary_unary(
                '/github.com.metaprov.modelaapi.services.predictiveapp.v1.PredictiveAppService/ListPredictiveApps',
                request_serializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictiveapp_dot_v1_dot_predictiveapp__pb2.ListPredictiveAppsRequest.SerializeToString,
                response_deserializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictiveapp_dot_v1_dot_predictiveapp__pb2.ListPredictiveAppsResponse.FromString,
                )
        self.CreatePredictiveApp = channel.unary_unary(
                '/github.com.metaprov.modelaapi.services.predictiveapp.v1.PredictiveAppService/CreatePredictiveApp',
                request_serializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictiveapp_dot_v1_dot_predictiveapp__pb2.CreatePredictiveAppRequest.SerializeToString,
                response_deserializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictiveapp_dot_v1_dot_predictiveapp__pb2.CreatePredictiveAppResponse.FromString,
                )
        self.GetPredictiveApp = channel.unary_unary(
                '/github.com.metaprov.modelaapi.services.predictiveapp.v1.PredictiveAppService/GetPredictiveApp',
                request_serializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictiveapp_dot_v1_dot_predictiveapp__pb2.GetPredictiveAppRequest.SerializeToString,
                response_deserializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictiveapp_dot_v1_dot_predictiveapp__pb2.GetPredictiveAppResponse.FromString,
                )
        self.UpdatePredictiveApp = channel.unary_unary(
                '/github.com.metaprov.modelaapi.services.predictiveapp.v1.PredictiveAppService/UpdatePredictiveApp',
                request_serializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictiveapp_dot_v1_dot_predictiveapp__pb2.UpdatePredictiveAppRequest.SerializeToString,
                response_deserializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictiveapp_dot_v1_dot_predictiveapp__pb2.UpdatePredictiveAppResponse.FromString,
                )
        self.DeletePredictiveApp = channel.unary_unary(
                '/github.com.metaprov.modelaapi.services.predictiveapp.v1.PredictiveAppService/DeletePredictiveApp',
                request_serializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictiveapp_dot_v1_dot_predictiveapp__pb2.DeletePredictiveAppRequest.SerializeToString,
                response_deserializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictiveapp_dot_v1_dot_predictiveapp__pb2.DeletePredictiveAppResponse.FromString,
                )
        self.PausePredictiveApp = channel.unary_unary(
                '/github.com.metaprov.modelaapi.services.predictiveapp.v1.PredictiveAppService/PausePredictiveApp',
                request_serializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictiveapp_dot_v1_dot_predictiveapp__pb2.PausePredictiveAppRequest.SerializeToString,
                response_deserializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictiveapp_dot_v1_dot_predictiveapp__pb2.PausePredictiveAppResponse.FromString,
                )
        self.ResumePredictiveApp = channel.unary_unary(
                '/github.com.metaprov.modelaapi.services.predictiveapp.v1.PredictiveAppService/ResumePredictiveApp',
                request_serializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictiveapp_dot_v1_dot_predictiveapp__pb2.ResumePredictiveAppRequest.SerializeToString,
                response_deserializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictiveapp_dot_v1_dot_predictiveapp__pb2.ResumePredictiveAppResponse.FromString,
                )


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

    def ListPredictiveApps(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 CreatePredictiveApp(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 GetPredictiveApp(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 UpdatePredictiveApp(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 DeletePredictiveApp(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 PausePredictiveApp(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 ResumePredictiveApp(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_PredictiveAppServiceServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'ListPredictiveApps': grpc.unary_unary_rpc_method_handler(
                    servicer.ListPredictiveApps,
                    request_deserializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictiveapp_dot_v1_dot_predictiveapp__pb2.ListPredictiveAppsRequest.FromString,
                    response_serializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictiveapp_dot_v1_dot_predictiveapp__pb2.ListPredictiveAppsResponse.SerializeToString,
            ),
            'CreatePredictiveApp': grpc.unary_unary_rpc_method_handler(
                    servicer.CreatePredictiveApp,
                    request_deserializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictiveapp_dot_v1_dot_predictiveapp__pb2.CreatePredictiveAppRequest.FromString,
                    response_serializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictiveapp_dot_v1_dot_predictiveapp__pb2.CreatePredictiveAppResponse.SerializeToString,
            ),
            'GetPredictiveApp': grpc.unary_unary_rpc_method_handler(
                    servicer.GetPredictiveApp,
                    request_deserializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictiveapp_dot_v1_dot_predictiveapp__pb2.GetPredictiveAppRequest.FromString,
                    response_serializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictiveapp_dot_v1_dot_predictiveapp__pb2.GetPredictiveAppResponse.SerializeToString,
            ),
            'UpdatePredictiveApp': grpc.unary_unary_rpc_method_handler(
                    servicer.UpdatePredictiveApp,
                    request_deserializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictiveapp_dot_v1_dot_predictiveapp__pb2.UpdatePredictiveAppRequest.FromString,
                    response_serializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictiveapp_dot_v1_dot_predictiveapp__pb2.UpdatePredictiveAppResponse.SerializeToString,
            ),
            'DeletePredictiveApp': grpc.unary_unary_rpc_method_handler(
                    servicer.DeletePredictiveApp,
                    request_deserializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictiveapp_dot_v1_dot_predictiveapp__pb2.DeletePredictiveAppRequest.FromString,
                    response_serializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictiveapp_dot_v1_dot_predictiveapp__pb2.DeletePredictiveAppResponse.SerializeToString,
            ),
            'PausePredictiveApp': grpc.unary_unary_rpc_method_handler(
                    servicer.PausePredictiveApp,
                    request_deserializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictiveapp_dot_v1_dot_predictiveapp__pb2.PausePredictiveAppRequest.FromString,
                    response_serializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictiveapp_dot_v1_dot_predictiveapp__pb2.PausePredictiveAppResponse.SerializeToString,
            ),
            'ResumePredictiveApp': grpc.unary_unary_rpc_method_handler(
                    servicer.ResumePredictiveApp,
                    request_deserializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictiveapp_dot_v1_dot_predictiveapp__pb2.ResumePredictiveAppRequest.FromString,
                    response_serializer=github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictiveapp_dot_v1_dot_predictiveapp__pb2.ResumePredictiveAppResponse.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'github.com.metaprov.modelaapi.services.predictiveapp.v1.PredictiveAppService', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))


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

    @staticmethod
    def ListPredictiveApps(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, '/github.com.metaprov.modelaapi.services.predictiveapp.v1.PredictiveAppService/ListPredictiveApps',
            github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictiveapp_dot_v1_dot_predictiveapp__pb2.ListPredictiveAppsRequest.SerializeToString,
            github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictiveapp_dot_v1_dot_predictiveapp__pb2.ListPredictiveAppsResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def CreatePredictiveApp(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, '/github.com.metaprov.modelaapi.services.predictiveapp.v1.PredictiveAppService/CreatePredictiveApp',
            github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictiveapp_dot_v1_dot_predictiveapp__pb2.CreatePredictiveAppRequest.SerializeToString,
            github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictiveapp_dot_v1_dot_predictiveapp__pb2.CreatePredictiveAppResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def GetPredictiveApp(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, '/github.com.metaprov.modelaapi.services.predictiveapp.v1.PredictiveAppService/GetPredictiveApp',
            github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictiveapp_dot_v1_dot_predictiveapp__pb2.GetPredictiveAppRequest.SerializeToString,
            github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictiveapp_dot_v1_dot_predictiveapp__pb2.GetPredictiveAppResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def UpdatePredictiveApp(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, '/github.com.metaprov.modelaapi.services.predictiveapp.v1.PredictiveAppService/UpdatePredictiveApp',
            github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictiveapp_dot_v1_dot_predictiveapp__pb2.UpdatePredictiveAppRequest.SerializeToString,
            github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictiveapp_dot_v1_dot_predictiveapp__pb2.UpdatePredictiveAppResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def DeletePredictiveApp(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, '/github.com.metaprov.modelaapi.services.predictiveapp.v1.PredictiveAppService/DeletePredictiveApp',
            github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictiveapp_dot_v1_dot_predictiveapp__pb2.DeletePredictiveAppRequest.SerializeToString,
            github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictiveapp_dot_v1_dot_predictiveapp__pb2.DeletePredictiveAppResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def PausePredictiveApp(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, '/github.com.metaprov.modelaapi.services.predictiveapp.v1.PredictiveAppService/PausePredictiveApp',
            github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictiveapp_dot_v1_dot_predictiveapp__pb2.PausePredictiveAppRequest.SerializeToString,
            github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictiveapp_dot_v1_dot_predictiveapp__pb2.PausePredictiveAppResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def ResumePredictiveApp(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, '/github.com.metaprov.modelaapi.services.predictiveapp.v1.PredictiveAppService/ResumePredictiveApp',
            github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictiveapp_dot_v1_dot_predictiveapp__pb2.ResumePredictiveAppRequest.SerializeToString,
            github_dot_com_dot_metaprov_dot_modelaapi_dot_services_dot_predictiveapp_dot_v1_dot_predictiveapp__pb2.ResumePredictiveAppResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
