public final ListQueuesPagedResponse listQueues(LocationName parent) {
    ListQueuesRequest request =
        ListQueuesRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build();
    return listQueues(request);
  }
Lists queues.

<p>Queues are returned in lexicographical order.

<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()) {
  LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
  for (Queue element : cloudTasksClient.listQueues(parent).iterateAll()) {
    // doThingsWith(element);
  }
}
}</pre>

@param parent Required. The location name. For example:
    `projects/PROJECT_ID/locations/LOCATION_ID`
@throws com.google.api.gax.rpc.ApiException if the remote call fails
java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2/CloudTasksClient.java