public final UnaryCallable<UpdateQueueRequest, Queue> updateQueueCallable() {
    return stub.updateQueueCallable();
  }
Updates a queue.

<p>This method creates the queue if it does not exist and updates the queue if it does exist.

<p>Queues created with this method allow tasks to live for a maximum of 31 days. After a task
is 31 days old, the task will be deleted regardless of whether it was dispatched or not.

<p>WARNING: Using this method may have unintended side effects if you are using an App Engine
`queue.yaml` or `queue.xml` file to manage your queues. Read [Overview of Queue Management and
queue.yaml](https://cloud.google.com/tasks/docs/queue-yaml) before using this method.

<p>Sample code:

<pre>{@code
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (CloudTasksClient cloudTasksClient = CloudTasksClient.create()) {
  UpdateQueueRequest request =
      UpdateQueueRequest.newBuilder()
          .setQueue(Queue.newBuilder().build())
          .setUpdateMask(FieldMask.newBuilder().build())
          .build();
  ApiFuture<Queue> future = cloudTasksClient.updateQueueCallable().futureCall(request);
  // Do something.
  Queue response = future.get();
}
}</pre>
java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksClient.java