code: public final Queue pauseQueue(String name) {
  
      PauseQueueRequest request = PauseQueueRequest.newBuilder().setName(name).build();
      return pauseQueue(request);
    }
docs: Pauses the queue.
  
  <p>If a queue is paused then the system will stop dispatching tasks until the queue is resumed
  via [ResumeQueue][google.cloud.tasks.v2.CloudTasks.ResumeQueue]. Tasks can still be added when
  the queue is paused. A queue is paused if its [state][google.cloud.tasks.v2.Queue.state] is
  [PAUSED][google.cloud.tasks.v2.Queue.State.PAUSED].
  
  <p>Sample code:
  
  <pre><code>
  try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
  QueueName name = QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]");
  Queue response = cloudTasksClient.pauseQueue(name.toString());
  }
  </code></pre>
  
  @param name Required.
  <p>The queue name. For example: `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
  @throws com.google.api.gax.rpc.ApiException if the remote call fails