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

from kikimr.public.api.protos import ydb_yql_internal_pb2 as kikimr_dot_public_dot_api_dot_protos_dot_ydb__yql__internal__pb2


class YqlInternalServiceStub(object):
  # missing associated documentation comment in .proto file
  pass

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

    Args:
      channel: A grpc.Channel.
    """
    self.ExecDataQueryAst = channel.unary_unary(
        '/Ydb.YqlInternal.V0.YqlInternalService/ExecDataQueryAst',
        request_serializer=kikimr_dot_public_dot_api_dot_protos_dot_ydb__yql__internal__pb2.ExecDataQueryAstRequest.SerializeToString,
        response_deserializer=kikimr_dot_public_dot_api_dot_protos_dot_ydb__yql__internal__pb2.ExecDataQueryAstResponse.FromString,
        )
    self.ExplainDataQueryAst = channel.unary_unary(
        '/Ydb.YqlInternal.V0.YqlInternalService/ExplainDataQueryAst',
        request_serializer=kikimr_dot_public_dot_api_dot_protos_dot_ydb__yql__internal__pb2.ExplainDataQueryAstRequest.SerializeToString,
        response_deserializer=kikimr_dot_public_dot_api_dot_protos_dot_ydb__yql__internal__pb2.ExplainDataQueryAstResponse.FromString,
        )


class YqlInternalServiceServicer(object):
  # missing associated documentation comment in .proto file
  pass

  def ExecDataQueryAst(self, request, context):
    # missing associated documentation comment in .proto file
    pass
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def ExplainDataQueryAst(self, request, context):
    # missing associated documentation comment in .proto file
    pass
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')


def add_YqlInternalServiceServicer_to_server(servicer, server):
  rpc_method_handlers = {
      'ExecDataQueryAst': grpc.unary_unary_rpc_method_handler(
          servicer.ExecDataQueryAst,
          request_deserializer=kikimr_dot_public_dot_api_dot_protos_dot_ydb__yql__internal__pb2.ExecDataQueryAstRequest.FromString,
          response_serializer=kikimr_dot_public_dot_api_dot_protos_dot_ydb__yql__internal__pb2.ExecDataQueryAstResponse.SerializeToString,
      ),
      'ExplainDataQueryAst': grpc.unary_unary_rpc_method_handler(
          servicer.ExplainDataQueryAst,
          request_deserializer=kikimr_dot_public_dot_api_dot_protos_dot_ydb__yql__internal__pb2.ExplainDataQueryAstRequest.FromString,
          response_serializer=kikimr_dot_public_dot_api_dot_protos_dot_ydb__yql__internal__pb2.ExplainDataQueryAstResponse.SerializeToString,
      ),
  }
  generic_handler = grpc.method_handlers_generic_handler(
      'Ydb.YqlInternal.V0.YqlInternalService', rpc_method_handlers)
  server.add_generic_rpc_handlers((generic_handler,))
