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

from ..common import CommonService_pb2 as common_dot_CommonService__pb2
from ..events import Event_pb2 as events_dot_Event__pb2


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

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

    Args:
      channel: A grpc.Channel.
    """
    self.createEvent = channel.unary_unary(
        '/ai.verta.events.EventService/createEvent',
        request_serializer=events_dot_Event__pb2.CreateEventRequest.SerializeToString,
        response_deserializer=common_dot_CommonService__pb2.Empty.FromString,
        )
    self.createWebhook = channel.unary_unary(
        '/ai.verta.events.EventService/createWebhook',
        request_serializer=events_dot_Event__pb2.CreateWebhookRequest.SerializeToString,
        response_deserializer=events_dot_Event__pb2.Webhook.FromString,
        )
    self.updateWebhook = channel.unary_unary(
        '/ai.verta.events.EventService/updateWebhook',
        request_serializer=events_dot_Event__pb2.UpdateWebhookRequest.SerializeToString,
        response_deserializer=events_dot_Event__pb2.Webhook.FromString,
        )
    self.findWebhook = channel.unary_unary(
        '/ai.verta.events.EventService/findWebhook',
        request_serializer=events_dot_Event__pb2.FindWebhookRequest.SerializeToString,
        response_deserializer=events_dot_Event__pb2.FindWebhookRequest.Response.FromString,
        )
    self.deleteWebhook = channel.unary_unary(
        '/ai.verta.events.EventService/deleteWebhook',
        request_serializer=events_dot_Event__pb2.DeleteWebhookRequest.SerializeToString,
        response_deserializer=common_dot_CommonService__pb2.Empty.FromString,
        )
    self.findWebhookCall = channel.unary_unary(
        '/ai.verta.events.EventService/findWebhookCall',
        request_serializer=events_dot_Event__pb2.FindWebhookCallRequest.SerializeToString,
        response_deserializer=events_dot_Event__pb2.FindWebhookCallRequest.Response.FromString,
        )
    self.retriggerWebhookCall = channel.unary_unary(
        '/ai.verta.events.EventService/retriggerWebhookCall',
        request_serializer=events_dot_Event__pb2.RetriggerWebhookCallRequest.SerializeToString,
        response_deserializer=events_dot_Event__pb2.WebhookCall.FromString,
        )
    self.triggerTest = channel.unary_unary(
        '/ai.verta.events.EventService/triggerTest',
        request_serializer=events_dot_Event__pb2.TestWebhookRequest.SerializeToString,
        response_deserializer=events_dot_Event__pb2.TestWebhookRequest.Response.FromString,
        )


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

  def createEvent(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 createWebhook(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 updateWebhook(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 findWebhook(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 deleteWebhook(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 findWebhookCall(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 retriggerWebhookCall(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 triggerTest(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_EventServiceServicer_to_server(servicer, server):
  rpc_method_handlers = {
      'createEvent': grpc.unary_unary_rpc_method_handler(
          servicer.createEvent,
          request_deserializer=events_dot_Event__pb2.CreateEventRequest.FromString,
          response_serializer=common_dot_CommonService__pb2.Empty.SerializeToString,
      ),
      'createWebhook': grpc.unary_unary_rpc_method_handler(
          servicer.createWebhook,
          request_deserializer=events_dot_Event__pb2.CreateWebhookRequest.FromString,
          response_serializer=events_dot_Event__pb2.Webhook.SerializeToString,
      ),
      'updateWebhook': grpc.unary_unary_rpc_method_handler(
          servicer.updateWebhook,
          request_deserializer=events_dot_Event__pb2.UpdateWebhookRequest.FromString,
          response_serializer=events_dot_Event__pb2.Webhook.SerializeToString,
      ),
      'findWebhook': grpc.unary_unary_rpc_method_handler(
          servicer.findWebhook,
          request_deserializer=events_dot_Event__pb2.FindWebhookRequest.FromString,
          response_serializer=events_dot_Event__pb2.FindWebhookRequest.Response.SerializeToString,
      ),
      'deleteWebhook': grpc.unary_unary_rpc_method_handler(
          servicer.deleteWebhook,
          request_deserializer=events_dot_Event__pb2.DeleteWebhookRequest.FromString,
          response_serializer=common_dot_CommonService__pb2.Empty.SerializeToString,
      ),
      'findWebhookCall': grpc.unary_unary_rpc_method_handler(
          servicer.findWebhookCall,
          request_deserializer=events_dot_Event__pb2.FindWebhookCallRequest.FromString,
          response_serializer=events_dot_Event__pb2.FindWebhookCallRequest.Response.SerializeToString,
      ),
      'retriggerWebhookCall': grpc.unary_unary_rpc_method_handler(
          servicer.retriggerWebhookCall,
          request_deserializer=events_dot_Event__pb2.RetriggerWebhookCallRequest.FromString,
          response_serializer=events_dot_Event__pb2.WebhookCall.SerializeToString,
      ),
      'triggerTest': grpc.unary_unary_rpc_method_handler(
          servicer.triggerTest,
          request_deserializer=events_dot_Event__pb2.TestWebhookRequest.FromString,
          response_serializer=events_dot_Event__pb2.TestWebhookRequest.Response.SerializeToString,
      ),
  }
  generic_handler = grpc.method_handlers_generic_handler(
      'ai.verta.events.EventService', rpc_method_handlers)
  server.add_generic_rpc_handlers((generic_handler,))
