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

import olcarpc.generated.commons_pb2 as commons__pb2
import olcarpc.generated.data_update_service_pb2 as data__update__service__pb2
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
import olcarpc.generated.olca_pb2 as olca__pb2


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

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

        Args:
            channel: A grpc.Channel.
        """
        self.Put = channel.unary_unary(
                '/protolca.services.DataUpdateService/Put',
                request_serializer=commons__pb2.ProtoDataSet.SerializeToString,
                response_deserializer=olca__pb2.ProtoRef.FromString,
                )
        self.Delete = channel.unary_unary(
                '/protolca.services.DataUpdateService/Delete',
                request_serializer=data__update__service__pb2.DeleteRequest.SerializeToString,
                response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
                )
        self.CreateProductSystem = channel.unary_unary(
                '/protolca.services.DataUpdateService/CreateProductSystem',
                request_serializer=data__update__service__pb2.CreateSystemRequest.SerializeToString,
                response_deserializer=olca__pb2.ProtoRef.FromString,
                )


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

    def Put(self, request, context):
        """Inserts or updates the given data set in the database. Returns the data
        set reference of the inserted or updated data set.
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def Delete(self, request, context):
        """Deletes the object with the ID and type of the request message from the
        database.
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def CreateProductSystem(self, request, context):
        """Creates a new product system.
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')


def add_DataUpdateServiceServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'Put': grpc.unary_unary_rpc_method_handler(
                    servicer.Put,
                    request_deserializer=commons__pb2.ProtoDataSet.FromString,
                    response_serializer=olca__pb2.ProtoRef.SerializeToString,
            ),
            'Delete': grpc.unary_unary_rpc_method_handler(
                    servicer.Delete,
                    request_deserializer=data__update__service__pb2.DeleteRequest.FromString,
                    response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
            ),
            'CreateProductSystem': grpc.unary_unary_rpc_method_handler(
                    servicer.CreateProductSystem,
                    request_deserializer=data__update__service__pb2.CreateSystemRequest.FromString,
                    response_serializer=olca__pb2.ProtoRef.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'protolca.services.DataUpdateService', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))


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

    @staticmethod
    def Put(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, '/protolca.services.DataUpdateService/Put',
            commons__pb2.ProtoDataSet.SerializeToString,
            olca__pb2.ProtoRef.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def Delete(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, '/protolca.services.DataUpdateService/Delete',
            data__update__service__pb2.DeleteRequest.SerializeToString,
            google_dot_protobuf_dot_empty__pb2.Empty.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def CreateProductSystem(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, '/protolca.services.DataUpdateService/CreateProductSystem',
            data__update__service__pb2.CreateSystemRequest.SerializeToString,
            olca__pb2.ProtoRef.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
