# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc

from . import raw_api_pb2 as raw__api__pb2


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

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

        Args:
            channel: A grpc.Channel.
        """
        self.RawRequest = channel.unary_unary(
                '/dialog.RawAPI/RawRequest',
                request_serializer=raw__api__pb2.RequestRawRequest.SerializeToString,
                response_deserializer=raw__api__pb2.ResponseRawRequest.FromString,
                )


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

    def RawRequest(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_RawAPIServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'RawRequest': grpc.unary_unary_rpc_method_handler(
                    servicer.RawRequest,
                    request_deserializer=raw__api__pb2.RequestRawRequest.FromString,
                    response_serializer=raw__api__pb2.ResponseRawRequest.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'dialog.RawAPI', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))


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

    @staticmethod
    def RawRequest(request,
            target,
            options=(),
            channel_credentials=None,
            call_credentials=None,
            compression=None,
            wait_for_ready=None,
            timeout=None,
            metadata=None):
        return grpc.experimental.unary_unary(request, target, '/dialog.RawAPI/RawRequest',
            raw__api__pb2.RequestRawRequest.SerializeToString,
            raw__api__pb2.ResponseRawRequest.FromString,
            options, channel_credentials,
            call_credentials, compression, wait_for_ready, timeout, metadata)
