code: public void updateTask(TaskResult taskResult) {
          Preconditions.checkNotNull(taskResult, "Task result cannot be null");
          stub.updateTask(TaskServicePb.UpdateTaskRequest.newBuilder()
                  .setResult(protoMapper.toProto(taskResult))
                  .build()
          );
      }
docs: Updates the result of a task execution.
  
  @param taskResult TaskResults to be updated.