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

from systemathics.apis.services.tick.v1 import tick_raw_pb2 as systemathics_dot_apis_dot_services_dot_tick_dot_v1_dot_tick__raw__pb2


class TickRawServiceStub(object):
    """Called to request tick by tick raw data.
    """

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

        Args:
            channel: A grpc.Channel.
        """
        self.TickRaw = channel.unary_stream(
                '/systemathics.apis.services.tick.v1.TickRawService/TickRaw',
                request_serializer=systemathics_dot_apis_dot_services_dot_tick_dot_v1_dot_tick__raw__pb2.TickRawRequest.SerializeToString,
                response_deserializer=systemathics_dot_apis_dot_services_dot_tick_dot_v1_dot_tick__raw__pb2.TickRawResponse.FromString,
                )


class TickRawServiceServicer(object):
    """Called to request tick by tick raw data.
    """

    def TickRaw(self, request, context):
        """Gets tick by tick raw data.
        """
        context.set_code(grpc.StatusCode.UNIMPLEMENTED)
        context.set_details('Method not implemented!')
        raise NotImplementedError('Method not implemented!')


def add_TickRawServiceServicer_to_server(servicer, server):
    rpc_method_handlers = {
            'TickRaw': grpc.unary_stream_rpc_method_handler(
                    servicer.TickRaw,
                    request_deserializer=systemathics_dot_apis_dot_services_dot_tick_dot_v1_dot_tick__raw__pb2.TickRawRequest.FromString,
                    response_serializer=systemathics_dot_apis_dot_services_dot_tick_dot_v1_dot_tick__raw__pb2.TickRawResponse.SerializeToString,
            ),
    }
    generic_handler = grpc.method_handlers_generic_handler(
            'systemathics.apis.services.tick.v1.TickRawService', rpc_method_handlers)
    server.add_generic_rpc_handlers((generic_handler,))


 # This class is part of an EXPERIMENTAL API.
class TickRawService(object):
    """Called to request tick by tick raw data.
    """

    @staticmethod
    def TickRaw(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_stream(request, target, '/systemathics.apis.services.tick.v1.TickRawService/TickRaw',
            systemathics_dot_apis_dot_services_dot_tick_dot_v1_dot_tick__raw__pb2.TickRawRequest.SerializeToString,
            systemathics_dot_apis_dot_services_dot_tick_dot_v1_dot_tick__raw__pb2.TickRawResponse.FromString,
            options, channel_credentials,
            insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
