code: func archiveTask(task *taskqueue.Task) (*logdog.ArchiveTask, error) {
  	result := logdog.ArchiveTask{}
  	err := proto.Unmarshal(task.Payload, &result)
  	result.TaskName = task.Name
  	return &result, err
  }
docs: // archiveTask creates a archiveTask proto from a taskqueue task.