# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
from omni.pro.protos.v1.sales import delivery_method_pb2 as v1_dot_sales_dot_delivery__method__pb2


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

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

        Args:
            channel: A grpc.Channel.
        """
        self.DeliveryServiceCreate = channel.unary_unary(
            "/pro.omni.oms.api.v1.sales.delivery.method.DeliveryMethodService/DeliveryServiceCreate",
            request_serializer=v1_dot_sales_dot_delivery__method__pb2.DeliveryMethodCreateRequest.SerializeToString,
            response_deserializer=v1_dot_sales_dot_delivery__method__pb2.DeliveryMethodCreateResponse.FromString,
        )
        self.DeliveryServiceRead = channel.unary_unary(
            "/pro.omni.oms.api.v1.sales.delivery.method.DeliveryMethodService/DeliveryServiceRead",
            request_serializer=v1_dot_sales_dot_delivery__method__pb2.DeliveryMethodReadRequest.SerializeToString,
            response_deserializer=v1_dot_sales_dot_delivery__method__pb2.DeliveryMethodReadResponse.FromString,
        )
        self.DeliveryServiceUpdate = channel.unary_unary(
            "/pro.omni.oms.api.v1.sales.delivery.method.DeliveryMethodService/DeliveryServiceUpdate",
            request_serializer=v1_dot_sales_dot_delivery__method__pb2.DeliveryMethodUpdateRequest.SerializeToString,
            response_deserializer=v1_dot_sales_dot_delivery__method__pb2.DeliveryMethodUpdateResponse.FromString,
        )
        self.DeliveryServiceDelete = channel.unary_unary(
            "/pro.omni.oms.api.v1.sales.delivery.method.DeliveryMethodService/DeliveryServiceDelete",
            request_serializer=v1_dot_sales_dot_delivery__method__pb2.DeliveryMethodDeleteRequest.SerializeToString,
            response_deserializer=v1_dot_sales_dot_delivery__method__pb2.DeliveryMethodDeleteResponse.FromString,
        )


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

    def DeliveryServiceCreate(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 DeliveryServiceRead(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 DeliveryServiceUpdate(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 DeliveryServiceDelete(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_DeliveryMethodServiceServicer_to_server(servicer, server):
    rpc_method_handlers = {
        "DeliveryServiceCreate": grpc.unary_unary_rpc_method_handler(
            servicer.DeliveryServiceCreate,
            request_deserializer=v1_dot_sales_dot_delivery__method__pb2.DeliveryMethodCreateRequest.FromString,
            response_serializer=v1_dot_sales_dot_delivery__method__pb2.DeliveryMethodCreateResponse.SerializeToString,
        ),
        "DeliveryServiceRead": grpc.unary_unary_rpc_method_handler(
            servicer.DeliveryServiceRead,
            request_deserializer=v1_dot_sales_dot_delivery__method__pb2.DeliveryMethodReadRequest.FromString,
            response_serializer=v1_dot_sales_dot_delivery__method__pb2.DeliveryMethodReadResponse.SerializeToString,
        ),
        "DeliveryServiceUpdate": grpc.unary_unary_rpc_method_handler(
            servicer.DeliveryServiceUpdate,
            request_deserializer=v1_dot_sales_dot_delivery__method__pb2.DeliveryMethodUpdateRequest.FromString,
            response_serializer=v1_dot_sales_dot_delivery__method__pb2.DeliveryMethodUpdateResponse.SerializeToString,
        ),
        "DeliveryServiceDelete": grpc.unary_unary_rpc_method_handler(
            servicer.DeliveryServiceDelete,
            request_deserializer=v1_dot_sales_dot_delivery__method__pb2.DeliveryMethodDeleteRequest.FromString,
            response_serializer=v1_dot_sales_dot_delivery__method__pb2.DeliveryMethodDeleteResponse.SerializeToString,
        ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
        "pro.omni.oms.api.v1.sales.delivery.method.DeliveryMethodService", rpc_method_handlers
    )
    server.add_generic_rpc_handlers((generic_handler,))


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

    @staticmethod
    def DeliveryServiceCreate(
        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,
            "/pro.omni.oms.api.v1.sales.delivery.method.DeliveryMethodService/DeliveryServiceCreate",
            v1_dot_sales_dot_delivery__method__pb2.DeliveryMethodCreateRequest.SerializeToString,
            v1_dot_sales_dot_delivery__method__pb2.DeliveryMethodCreateResponse.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
        )

    @staticmethod
    def DeliveryServiceRead(
        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,
            "/pro.omni.oms.api.v1.sales.delivery.method.DeliveryMethodService/DeliveryServiceRead",
            v1_dot_sales_dot_delivery__method__pb2.DeliveryMethodReadRequest.SerializeToString,
            v1_dot_sales_dot_delivery__method__pb2.DeliveryMethodReadResponse.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
        )

    @staticmethod
    def DeliveryServiceUpdate(
        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,
            "/pro.omni.oms.api.v1.sales.delivery.method.DeliveryMethodService/DeliveryServiceUpdate",
            v1_dot_sales_dot_delivery__method__pb2.DeliveryMethodUpdateRequest.SerializeToString,
            v1_dot_sales_dot_delivery__method__pb2.DeliveryMethodUpdateResponse.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
        )

    @staticmethod
    def DeliveryServiceDelete(
        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,
            "/pro.omni.oms.api.v1.sales.delivery.method.DeliveryMethodService/DeliveryServiceDelete",
            v1_dot_sales_dot_delivery__method__pb2.DeliveryMethodDeleteRequest.SerializeToString,
            v1_dot_sales_dot_delivery__method__pb2.DeliveryMethodDeleteResponse.FromString,
            options,
            channel_credentials,
            insecure,
            call_credentials,
            compression,
            wait_for_ready,
            timeout,
            metadata,
        )
