@Override
    public WorkflowTaskPb.WorkflowTask.WorkflowTaskList toProto(List<WorkflowTask> list) {
        return WorkflowTaskPb.WorkflowTask.WorkflowTaskList.newBuilder()
                .addAllTasks(list.stream().map(this::toProto)::iterator)
                .build();
    }
Convert a list of {@link WorkflowTask} instances into a ProtoBuf wrapper object.

@param list a list of {@link WorkflowTask} instances
@return a ProtoBuf message wrapping the contents of the list
grpc/src/main/java/com/netflix/conductor/grpc/ProtoMapper.java