public final UnaryCallable<ListTasksRequest, ListTasksPagedResponse> listTasksPagedCallable() {
    return stub.listTasksPagedCallable();
  }
Lists the tasks in a queue.

<p>By default, only the [BASIC][google.cloud.tasks.v2beta3.Task.View.BASIC] view is retrieved
due to performance considerations;
[response_view][google.cloud.tasks.v2beta3.ListTasksRequest.response_view] controls the subset
of information which is returned.

<p>The tasks may be returned in any order. The ordering may change at any time.

<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()) {
  ListTasksRequest request =
      ListTasksRequest.newBuilder()
          .setParent(QueueName.of("[PROJECT]", "[LOCATION]", "[QUEUE]").toString())
          .setPageSize(883849137)
          .setPageToken("pageToken873572522")
          .build();
  ApiFuture<Task> future = cloudTasksClient.listTasksPagedCallable().futureCall(request);
  // Do something.
  for (Task element : future.get().iterateAll()) {
    // doThingsWith(element);
  }
}
}</pre>
java-tasks/google-cloud-tasks/src/main/java/com/google/cloud/tasks/v2beta3/CloudTasksClient.java