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

from google.cloud.irm.v1alpha2 import incidents_pb2 as google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__pb2
from google.cloud.irm.v1alpha2 import incidents_service_pb2 as google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2


class IncidentServiceStub(object):
  """The Incident API for Incident Response & Management.
  """

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

    Args:
      channel: A grpc.Channel.
    """
    self.CreateIncident = channel.unary_unary(
        '/google.cloud.irm.v1alpha2.IncidentService/CreateIncident',
        request_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.CreateIncidentRequest.SerializeToString,
        response_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__pb2.Incident.FromString,
        )
    self.GetIncident = channel.unary_unary(
        '/google.cloud.irm.v1alpha2.IncidentService/GetIncident',
        request_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.GetIncidentRequest.SerializeToString,
        response_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__pb2.Incident.FromString,
        )
    self.SearchIncidents = channel.unary_unary(
        '/google.cloud.irm.v1alpha2.IncidentService/SearchIncidents',
        request_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.SearchIncidentsRequest.SerializeToString,
        response_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.SearchIncidentsResponse.FromString,
        )
    self.UpdateIncident = channel.unary_unary(
        '/google.cloud.irm.v1alpha2.IncidentService/UpdateIncident',
        request_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.UpdateIncidentRequest.SerializeToString,
        response_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__pb2.Incident.FromString,
        )
    self.SearchSimilarIncidents = channel.unary_unary(
        '/google.cloud.irm.v1alpha2.IncidentService/SearchSimilarIncidents',
        request_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.SearchSimilarIncidentsRequest.SerializeToString,
        response_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.SearchSimilarIncidentsResponse.FromString,
        )
    self.CreateAnnotation = channel.unary_unary(
        '/google.cloud.irm.v1alpha2.IncidentService/CreateAnnotation',
        request_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.CreateAnnotationRequest.SerializeToString,
        response_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__pb2.Annotation.FromString,
        )
    self.ListAnnotations = channel.unary_unary(
        '/google.cloud.irm.v1alpha2.IncidentService/ListAnnotations',
        request_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.ListAnnotationsRequest.SerializeToString,
        response_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.ListAnnotationsResponse.FromString,
        )
    self.CreateTag = channel.unary_unary(
        '/google.cloud.irm.v1alpha2.IncidentService/CreateTag',
        request_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.CreateTagRequest.SerializeToString,
        response_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__pb2.Tag.FromString,
        )
    self.DeleteTag = channel.unary_unary(
        '/google.cloud.irm.v1alpha2.IncidentService/DeleteTag',
        request_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.DeleteTagRequest.SerializeToString,
        response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
        )
    self.ListTags = channel.unary_unary(
        '/google.cloud.irm.v1alpha2.IncidentService/ListTags',
        request_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.ListTagsRequest.SerializeToString,
        response_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.ListTagsResponse.FromString,
        )
    self.CreateSignal = channel.unary_unary(
        '/google.cloud.irm.v1alpha2.IncidentService/CreateSignal',
        request_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.CreateSignalRequest.SerializeToString,
        response_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__pb2.Signal.FromString,
        )
    self.SearchSignals = channel.unary_unary(
        '/google.cloud.irm.v1alpha2.IncidentService/SearchSignals',
        request_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.SearchSignalsRequest.SerializeToString,
        response_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.SearchSignalsResponse.FromString,
        )
    self.LookupSignal = channel.unary_unary(
        '/google.cloud.irm.v1alpha2.IncidentService/LookupSignal',
        request_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.LookupSignalRequest.SerializeToString,
        response_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__pb2.Signal.FromString,
        )
    self.GetSignal = channel.unary_unary(
        '/google.cloud.irm.v1alpha2.IncidentService/GetSignal',
        request_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.GetSignalRequest.SerializeToString,
        response_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__pb2.Signal.FromString,
        )
    self.UpdateSignal = channel.unary_unary(
        '/google.cloud.irm.v1alpha2.IncidentService/UpdateSignal',
        request_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.UpdateSignalRequest.SerializeToString,
        response_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__pb2.Signal.FromString,
        )
    self.EscalateIncident = channel.unary_unary(
        '/google.cloud.irm.v1alpha2.IncidentService/EscalateIncident',
        request_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.EscalateIncidentRequest.SerializeToString,
        response_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.EscalateIncidentResponse.FromString,
        )
    self.CreateArtifact = channel.unary_unary(
        '/google.cloud.irm.v1alpha2.IncidentService/CreateArtifact',
        request_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.CreateArtifactRequest.SerializeToString,
        response_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__pb2.Artifact.FromString,
        )
    self.ListArtifacts = channel.unary_unary(
        '/google.cloud.irm.v1alpha2.IncidentService/ListArtifacts',
        request_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.ListArtifactsRequest.SerializeToString,
        response_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.ListArtifactsResponse.FromString,
        )
    self.UpdateArtifact = channel.unary_unary(
        '/google.cloud.irm.v1alpha2.IncidentService/UpdateArtifact',
        request_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.UpdateArtifactRequest.SerializeToString,
        response_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__pb2.Artifact.FromString,
        )
    self.DeleteArtifact = channel.unary_unary(
        '/google.cloud.irm.v1alpha2.IncidentService/DeleteArtifact',
        request_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.DeleteArtifactRequest.SerializeToString,
        response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
        )
    self.SendShiftHandoff = channel.unary_unary(
        '/google.cloud.irm.v1alpha2.IncidentService/SendShiftHandoff',
        request_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.SendShiftHandoffRequest.SerializeToString,
        response_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.SendShiftHandoffResponse.FromString,
        )
    self.CreateSubscription = channel.unary_unary(
        '/google.cloud.irm.v1alpha2.IncidentService/CreateSubscription',
        request_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.CreateSubscriptionRequest.SerializeToString,
        response_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__pb2.Subscription.FromString,
        )
    self.UpdateSubscription = channel.unary_unary(
        '/google.cloud.irm.v1alpha2.IncidentService/UpdateSubscription',
        request_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.UpdateSubscriptionRequest.SerializeToString,
        response_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__pb2.Subscription.FromString,
        )
    self.ListSubscriptions = channel.unary_unary(
        '/google.cloud.irm.v1alpha2.IncidentService/ListSubscriptions',
        request_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.ListSubscriptionsRequest.SerializeToString,
        response_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.ListSubscriptionsResponse.FromString,
        )
    self.DeleteSubscription = channel.unary_unary(
        '/google.cloud.irm.v1alpha2.IncidentService/DeleteSubscription',
        request_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.DeleteSubscriptionRequest.SerializeToString,
        response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
        )
    self.CreateIncidentRoleAssignment = channel.unary_unary(
        '/google.cloud.irm.v1alpha2.IncidentService/CreateIncidentRoleAssignment',
        request_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.CreateIncidentRoleAssignmentRequest.SerializeToString,
        response_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__pb2.IncidentRoleAssignment.FromString,
        )
    self.DeleteIncidentRoleAssignment = channel.unary_unary(
        '/google.cloud.irm.v1alpha2.IncidentService/DeleteIncidentRoleAssignment',
        request_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.DeleteIncidentRoleAssignmentRequest.SerializeToString,
        response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString,
        )
    self.ListIncidentRoleAssignments = channel.unary_unary(
        '/google.cloud.irm.v1alpha2.IncidentService/ListIncidentRoleAssignments',
        request_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.ListIncidentRoleAssignmentsRequest.SerializeToString,
        response_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.ListIncidentRoleAssignmentsResponse.FromString,
        )
    self.RequestIncidentRoleHandover = channel.unary_unary(
        '/google.cloud.irm.v1alpha2.IncidentService/RequestIncidentRoleHandover',
        request_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.RequestIncidentRoleHandoverRequest.SerializeToString,
        response_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__pb2.IncidentRoleAssignment.FromString,
        )
    self.ConfirmIncidentRoleHandover = channel.unary_unary(
        '/google.cloud.irm.v1alpha2.IncidentService/ConfirmIncidentRoleHandover',
        request_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.ConfirmIncidentRoleHandoverRequest.SerializeToString,
        response_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__pb2.IncidentRoleAssignment.FromString,
        )
    self.ForceIncidentRoleHandover = channel.unary_unary(
        '/google.cloud.irm.v1alpha2.IncidentService/ForceIncidentRoleHandover',
        request_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.ForceIncidentRoleHandoverRequest.SerializeToString,
        response_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__pb2.IncidentRoleAssignment.FromString,
        )
    self.CancelIncidentRoleHandover = channel.unary_unary(
        '/google.cloud.irm.v1alpha2.IncidentService/CancelIncidentRoleHandover',
        request_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.CancelIncidentRoleHandoverRequest.SerializeToString,
        response_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__pb2.IncidentRoleAssignment.FromString,
        )


class IncidentServiceServicer(object):
  """The Incident API for Incident Response & Management.
  """

  def CreateIncident(self, request, context):
    """Creates a new incident.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def GetIncident(self, request, context):
    """Returns an incident by name.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def SearchIncidents(self, request, context):
    """Returns a list of incidents.
    Incidents are ordered by start time, with the most recent incidents first.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def UpdateIncident(self, request, context):
    """Updates an existing incident.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def SearchSimilarIncidents(self, request, context):
    """Returns a list of incidents that are "similar" to the specified incident
    or signal. This functionality is provided on a best-effort basis and the
    definition of "similar" is subject to change.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def CreateAnnotation(self, request, context):
    """Creates an annotation on an existing incident. Only 'text/plain' and
    'text/markdown' annotations can be created via this method.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def ListAnnotations(self, request, context):
    """Lists annotations that are part of an incident. No assumptions should be
    made on the content-type of the annotation returned.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def CreateTag(self, request, context):
    """Creates a tag on an existing incident.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def DeleteTag(self, request, context):
    """Deletes an existing tag.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def ListTags(self, request, context):
    """Lists tags that are part of an incident.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def CreateSignal(self, request, context):
    """Creates a new signal.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def SearchSignals(self, request, context):
    """Lists signals that are part of an incident.
    Signals are returned in reverse chronological order.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def LookupSignal(self, request, context):
    """Finds a signal by other unique IDs.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def GetSignal(self, request, context):
    """Returns a signal by name.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def UpdateSignal(self, request, context):
    """Updates an existing signal (for example, to assign/unassign it to an
    incident).
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def EscalateIncident(self, request, context):
    """Escalates an incident.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def CreateArtifact(self, request, context):
    """Creates a new artifact.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def ListArtifacts(self, request, context):
    """Returns a list of artifacts for an incident.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def UpdateArtifact(self, request, context):
    """Updates an existing artifact.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def DeleteArtifact(self, request, context):
    """Deletes an existing artifact.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def SendShiftHandoff(self, request, context):
    """Sends a summary of the shift for oncall handoff.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def CreateSubscription(self, request, context):
    """Creates a new subscription.
    This will fail if:
    a. there are too many (50) subscriptions in the incident already
    b. a subscription using the given channel already exists
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def UpdateSubscription(self, request, context):
    """Updates a subscription.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def ListSubscriptions(self, request, context):
    """Returns a list of subscriptions for an incident.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def DeleteSubscription(self, request, context):
    """Deletes an existing subscription.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def CreateIncidentRoleAssignment(self, request, context):
    """Creates a role assignment on an existing incident. Normally, the user field
    will be set when assigning a role to oneself, and the next field will be
    set when proposing another user as the assignee. Setting the next field
    directly to a user other than oneself is equivalent to proposing and
    force-assigning the role to the user.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def DeleteIncidentRoleAssignment(self, request, context):
    """Deletes an existing role assignment.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def ListIncidentRoleAssignments(self, request, context):
    """Lists role assignments that are part of an incident.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def RequestIncidentRoleHandover(self, request, context):
    """Starts a role handover. The proposed assignee will receive an email
    notifying them of the assignment. This will fail if a role handover is
    already pending.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def ConfirmIncidentRoleHandover(self, request, context):
    """Confirms a role handover. This will fail if the 'proposed_assignee' field
    of the IncidentRoleAssignment is not equal to the 'new_assignee' field of
    the request. If the caller is not the new_assignee,
    ForceIncidentRoleHandover should be used instead.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def ForceIncidentRoleHandover(self, request, context):
    """Forces a role handover. This will fail if the 'proposed_assignee' field of
    the IncidentRoleAssignment is not equal to the 'new_assignee' field of the
    request. If the caller is the new_assignee, ConfirmIncidentRoleHandover
    should be used instead.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')

  def CancelIncidentRoleHandover(self, request, context):
    """Cancels a role handover. This will fail if the 'proposed_assignee' field of
    the IncidentRoleAssignment is not equal to the 'new_assignee' field of the
    request.
    """
    context.set_code(grpc.StatusCode.UNIMPLEMENTED)
    context.set_details('Method not implemented!')
    raise NotImplementedError('Method not implemented!')


def add_IncidentServiceServicer_to_server(servicer, server):
  rpc_method_handlers = {
      'CreateIncident': grpc.unary_unary_rpc_method_handler(
          servicer.CreateIncident,
          request_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.CreateIncidentRequest.FromString,
          response_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__pb2.Incident.SerializeToString,
      ),
      'GetIncident': grpc.unary_unary_rpc_method_handler(
          servicer.GetIncident,
          request_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.GetIncidentRequest.FromString,
          response_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__pb2.Incident.SerializeToString,
      ),
      'SearchIncidents': grpc.unary_unary_rpc_method_handler(
          servicer.SearchIncidents,
          request_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.SearchIncidentsRequest.FromString,
          response_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.SearchIncidentsResponse.SerializeToString,
      ),
      'UpdateIncident': grpc.unary_unary_rpc_method_handler(
          servicer.UpdateIncident,
          request_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.UpdateIncidentRequest.FromString,
          response_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__pb2.Incident.SerializeToString,
      ),
      'SearchSimilarIncidents': grpc.unary_unary_rpc_method_handler(
          servicer.SearchSimilarIncidents,
          request_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.SearchSimilarIncidentsRequest.FromString,
          response_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.SearchSimilarIncidentsResponse.SerializeToString,
      ),
      'CreateAnnotation': grpc.unary_unary_rpc_method_handler(
          servicer.CreateAnnotation,
          request_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.CreateAnnotationRequest.FromString,
          response_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__pb2.Annotation.SerializeToString,
      ),
      'ListAnnotations': grpc.unary_unary_rpc_method_handler(
          servicer.ListAnnotations,
          request_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.ListAnnotationsRequest.FromString,
          response_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.ListAnnotationsResponse.SerializeToString,
      ),
      'CreateTag': grpc.unary_unary_rpc_method_handler(
          servicer.CreateTag,
          request_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.CreateTagRequest.FromString,
          response_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__pb2.Tag.SerializeToString,
      ),
      'DeleteTag': grpc.unary_unary_rpc_method_handler(
          servicer.DeleteTag,
          request_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.DeleteTagRequest.FromString,
          response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
      ),
      'ListTags': grpc.unary_unary_rpc_method_handler(
          servicer.ListTags,
          request_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.ListTagsRequest.FromString,
          response_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.ListTagsResponse.SerializeToString,
      ),
      'CreateSignal': grpc.unary_unary_rpc_method_handler(
          servicer.CreateSignal,
          request_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.CreateSignalRequest.FromString,
          response_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__pb2.Signal.SerializeToString,
      ),
      'SearchSignals': grpc.unary_unary_rpc_method_handler(
          servicer.SearchSignals,
          request_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.SearchSignalsRequest.FromString,
          response_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.SearchSignalsResponse.SerializeToString,
      ),
      'LookupSignal': grpc.unary_unary_rpc_method_handler(
          servicer.LookupSignal,
          request_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.LookupSignalRequest.FromString,
          response_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__pb2.Signal.SerializeToString,
      ),
      'GetSignal': grpc.unary_unary_rpc_method_handler(
          servicer.GetSignal,
          request_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.GetSignalRequest.FromString,
          response_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__pb2.Signal.SerializeToString,
      ),
      'UpdateSignal': grpc.unary_unary_rpc_method_handler(
          servicer.UpdateSignal,
          request_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.UpdateSignalRequest.FromString,
          response_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__pb2.Signal.SerializeToString,
      ),
      'EscalateIncident': grpc.unary_unary_rpc_method_handler(
          servicer.EscalateIncident,
          request_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.EscalateIncidentRequest.FromString,
          response_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.EscalateIncidentResponse.SerializeToString,
      ),
      'CreateArtifact': grpc.unary_unary_rpc_method_handler(
          servicer.CreateArtifact,
          request_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.CreateArtifactRequest.FromString,
          response_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__pb2.Artifact.SerializeToString,
      ),
      'ListArtifacts': grpc.unary_unary_rpc_method_handler(
          servicer.ListArtifacts,
          request_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.ListArtifactsRequest.FromString,
          response_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.ListArtifactsResponse.SerializeToString,
      ),
      'UpdateArtifact': grpc.unary_unary_rpc_method_handler(
          servicer.UpdateArtifact,
          request_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.UpdateArtifactRequest.FromString,
          response_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__pb2.Artifact.SerializeToString,
      ),
      'DeleteArtifact': grpc.unary_unary_rpc_method_handler(
          servicer.DeleteArtifact,
          request_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.DeleteArtifactRequest.FromString,
          response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
      ),
      'SendShiftHandoff': grpc.unary_unary_rpc_method_handler(
          servicer.SendShiftHandoff,
          request_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.SendShiftHandoffRequest.FromString,
          response_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.SendShiftHandoffResponse.SerializeToString,
      ),
      'CreateSubscription': grpc.unary_unary_rpc_method_handler(
          servicer.CreateSubscription,
          request_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.CreateSubscriptionRequest.FromString,
          response_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__pb2.Subscription.SerializeToString,
      ),
      'UpdateSubscription': grpc.unary_unary_rpc_method_handler(
          servicer.UpdateSubscription,
          request_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.UpdateSubscriptionRequest.FromString,
          response_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__pb2.Subscription.SerializeToString,
      ),
      'ListSubscriptions': grpc.unary_unary_rpc_method_handler(
          servicer.ListSubscriptions,
          request_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.ListSubscriptionsRequest.FromString,
          response_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.ListSubscriptionsResponse.SerializeToString,
      ),
      'DeleteSubscription': grpc.unary_unary_rpc_method_handler(
          servicer.DeleteSubscription,
          request_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.DeleteSubscriptionRequest.FromString,
          response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
      ),
      'CreateIncidentRoleAssignment': grpc.unary_unary_rpc_method_handler(
          servicer.CreateIncidentRoleAssignment,
          request_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.CreateIncidentRoleAssignmentRequest.FromString,
          response_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__pb2.IncidentRoleAssignment.SerializeToString,
      ),
      'DeleteIncidentRoleAssignment': grpc.unary_unary_rpc_method_handler(
          servicer.DeleteIncidentRoleAssignment,
          request_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.DeleteIncidentRoleAssignmentRequest.FromString,
          response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
      ),
      'ListIncidentRoleAssignments': grpc.unary_unary_rpc_method_handler(
          servicer.ListIncidentRoleAssignments,
          request_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.ListIncidentRoleAssignmentsRequest.FromString,
          response_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.ListIncidentRoleAssignmentsResponse.SerializeToString,
      ),
      'RequestIncidentRoleHandover': grpc.unary_unary_rpc_method_handler(
          servicer.RequestIncidentRoleHandover,
          request_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.RequestIncidentRoleHandoverRequest.FromString,
          response_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__pb2.IncidentRoleAssignment.SerializeToString,
      ),
      'ConfirmIncidentRoleHandover': grpc.unary_unary_rpc_method_handler(
          servicer.ConfirmIncidentRoleHandover,
          request_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.ConfirmIncidentRoleHandoverRequest.FromString,
          response_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__pb2.IncidentRoleAssignment.SerializeToString,
      ),
      'ForceIncidentRoleHandover': grpc.unary_unary_rpc_method_handler(
          servicer.ForceIncidentRoleHandover,
          request_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.ForceIncidentRoleHandoverRequest.FromString,
          response_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__pb2.IncidentRoleAssignment.SerializeToString,
      ),
      'CancelIncidentRoleHandover': grpc.unary_unary_rpc_method_handler(
          servicer.CancelIncidentRoleHandover,
          request_deserializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__service__pb2.CancelIncidentRoleHandoverRequest.FromString,
          response_serializer=google_dot_cloud_dot_irm_dot_v1alpha2_dot_incidents__pb2.IncidentRoleAssignment.SerializeToString,
      ),
  }
  generic_handler = grpc.method_handlers_generic_handler(
      'google.cloud.irm.v1alpha2.IncidentService', rpc_method_handlers)
  server.add_generic_rpc_handlers((generic_handler,))
