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

from api.services.v1 import dataset_object_service_models_pb2 as api_dot_services_dot_v1_dot_dataset__object__service__models__pb2


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

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

        Args:
            channel: A grpc.Channel.
        """
        self.CreateObjectGroup = channel.unary_unary(
                '/api.services.v1.DatasetObjectsService/CreateObjectGroup',
                request_serializer=api_dot_services_dot_v1_dot_dataset__object__service__models__pb2.CreateObjectGroupRequest.SerializeToString,
                response_deserializer=api_dot_services_dot_v1_dot_dataset__object__service__models__pb2.CreateObjectGroupResponse.FromString,
                )
        self.GetObjectGroup = channel.unary_unary(
                '/api.services.v1.DatasetObjectsService/GetObjectGroup',
                request_serializer=api_dot_services_dot_v1_dot_dataset__object__service__models__pb2.GetObjectGroupRequest.SerializeToString,
                response_deserializer=api_dot_services_dot_v1_dot_dataset__object__service__models__pb2.GetObjectGroupResponse.FromString,
                )
        self.FinishObjectUpload = channel.unary_unary(
                '/api.services.v1.DatasetObjectsService/FinishObjectUpload',
                request_serializer=api_dot_services_dot_v1_dot_dataset__object__service__models__pb2.FinishObjectUploadRequest.SerializeToString,
                response_deserializer=api_dot_services_dot_v1_dot_dataset__object__service__models__pb2.FinishObjectUploadResponse.FromString,
                )
        self.DeleteObjectGroup = channel.unary_unary(
                '/api.services.v1.DatasetObjectsService/DeleteObjectGroup',
                request_serializer=api_dot_services_dot_v1_dot_dataset__object__service__models__pb2.DeleteObjectGroupRequest.SerializeToString,
                response_deserializer=api_dot_services_dot_v1_dot_dataset__object__service__models__pb2.DeleteObjectGroupResponse.FromString,
                )


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

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

    def GetObjectGroup(self, request, context):
        """GetObjectGroup Returns the object group with the given ID
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def FinishObjectUpload(self, request, context):
        """FinishObjectUpload Finishes the upload process for an object
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')

    def DeleteObjectGroup(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_DatasetObjectsServiceServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'CreateObjectGroup': grpc.unary_unary_rpc_method_handler(
                    servicer.CreateObjectGroup,
                    request_deserializer=api_dot_services_dot_v1_dot_dataset__object__service__models__pb2.CreateObjectGroupRequest.FromString,
                    response_serializer=api_dot_services_dot_v1_dot_dataset__object__service__models__pb2.CreateObjectGroupResponse.SerializeToString,
            ),
            'GetObjectGroup': grpc.unary_unary_rpc_method_handler(
                    servicer.GetObjectGroup,
                    request_deserializer=api_dot_services_dot_v1_dot_dataset__object__service__models__pb2.GetObjectGroupRequest.FromString,
                    response_serializer=api_dot_services_dot_v1_dot_dataset__object__service__models__pb2.GetObjectGroupResponse.SerializeToString,
            ),
            'FinishObjectUpload': grpc.unary_unary_rpc_method_handler(
                    servicer.FinishObjectUpload,
                    request_deserializer=api_dot_services_dot_v1_dot_dataset__object__service__models__pb2.FinishObjectUploadRequest.FromString,
                    response_serializer=api_dot_services_dot_v1_dot_dataset__object__service__models__pb2.FinishObjectUploadResponse.SerializeToString,
            ),
            'DeleteObjectGroup': grpc.unary_unary_rpc_method_handler(
                    servicer.DeleteObjectGroup,
                    request_deserializer=api_dot_services_dot_v1_dot_dataset__object__service__models__pb2.DeleteObjectGroupRequest.FromString,
                    response_serializer=api_dot_services_dot_v1_dot_dataset__object__service__models__pb2.DeleteObjectGroupResponse.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'api.services.v1.DatasetObjectsService', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))


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

    @staticmethod
    def CreateObjectGroup(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, '/api.services.v1.DatasetObjectsService/CreateObjectGroup',
            api_dot_services_dot_v1_dot_dataset__object__service__models__pb2.CreateObjectGroupRequest.SerializeToString,
            api_dot_services_dot_v1_dot_dataset__object__service__models__pb2.CreateObjectGroupResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def GetObjectGroup(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, '/api.services.v1.DatasetObjectsService/GetObjectGroup',
            api_dot_services_dot_v1_dot_dataset__object__service__models__pb2.GetObjectGroupRequest.SerializeToString,
            api_dot_services_dot_v1_dot_dataset__object__service__models__pb2.GetObjectGroupResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def FinishObjectUpload(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, '/api.services.v1.DatasetObjectsService/FinishObjectUpload',
            api_dot_services_dot_v1_dot_dataset__object__service__models__pb2.FinishObjectUploadRequest.SerializeToString,
            api_dot_services_dot_v1_dot_dataset__object__service__models__pb2.FinishObjectUploadResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

    @staticmethod
    def DeleteObjectGroup(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, '/api.services.v1.DatasetObjectsService/DeleteObjectGroup',
            api_dot_services_dot_v1_dot_dataset__object__service__models__pb2.DeleteObjectGroupRequest.SerializeToString,
            api_dot_services_dot_v1_dot_dataset__object__service__models__pb2.DeleteObjectGroupResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
