def METHOD_NAME(servicer, server):
  rpc_method_handlers = {
      'setRole': grpc.unary_unary_rpc_method_handler(
          servicer.setRole,
          request_deserializer=uac_dot_RoleV2__pb2.SetRoleV2.FromString,
          response_serializer=uac_dot_RoleV2__pb2.SetRoleV2.Response.SerializeToString,
      ),
      'deleteRole': grpc.unary_unary_rpc_method_handler(
          servicer.deleteRole,
          request_deserializer=uac_dot_RoleV2__pb2.DeleteRoleV2.FromString,
          response_serializer=uac_dot_RoleV2__pb2.DeleteRoleV2.Response.SerializeToString,
      ),
      'searchRoles': grpc.unary_unary_rpc_method_handler(
          servicer.searchRoles,
          request_deserializer=uac_dot_RoleV2__pb2.SearchRolesV2.FromString,
          response_serializer=uac_dot_RoleV2__pb2.SearchRolesV2.Response.SerializeToString,
      ),
      'getRole': grpc.unary_unary_rpc_method_handler(
          servicer.getRole,
          request_deserializer=uac_dot_RoleV2__pb2.GetRoleV2.FromString,
          response_serializer=uac_dot_RoleV2__pb2.GetRoleV2.Response.SerializeToString,
      ),
      'getEnabledActions': grpc.unary_unary_rpc_method_handler(
          servicer.getEnabledActions,
          request_deserializer=uac_dot_RoleV2__pb2.GetEnabledActions.FromString,
          response_serializer=uac_dot_RoleV2__pb2.GetEnabledActions.Response.SerializeToString,
      ),
      'getSelfAllowedActionsBatchForWorkspace': grpc.unary_unary_rpc_method_handler(
          servicer.getSelfAllowedActionsBatchForWorkspace,
          request_deserializer=uac_dot_RoleV2__pb2.GetSelfAllowedActionsBatchForWorkspace.FromString,
          response_serializer=uac_dot_RoleV2__pb2.GetSelfAllowedActionsBatchForWorkspace.Response.SerializeToString,
      ),
  }
  generic_handler = grpc.method_handlers_generic_handler(
      'ai.verta.uac.RoleServiceV2', rpc_method_handlers)
  server.add_generic_rpc_handlers((generic_handler,))