public final UnaryCallable<ListTenantsRequest, ListTenantsPagedResponse>
      listTenantsPagedCallable() {
    return stub.listTenantsPagedCallable();
  }
Lists all tenants associated with the project.

<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 (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) {
  ListTenantsRequest request =
      ListTenantsRequest.newBuilder()
          .setParent(ProjectName.of("[PROJECT]").toString())
          .setPageToken("pageToken873572522")
          .setPageSize(883849137)
          .build();
  ApiFuture<Tenant> future = tenantServiceClient.listTenantsPagedCallable().futureCall(request);
  // Do something.
  for (Tenant element : future.get().iterateAll()) {
    // doThingsWith(element);
  }
}
}</pre>
java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/TenantServiceClient.java