public final ListBackupCollectionsPagedResponse listBackupCollections(LocationName parent) {
    ListBackupCollectionsRequest request =
        ListBackupCollectionsRequest.newBuilder()
            .setParent(parent == null ? null : parent.toString())
            .build();
    return listBackupCollections(request);
  }
Lists all backup collections owned by a consumer project in either the specified location
(region) or all locations.

<p>If `location_id` is specified as `-` (wildcard), then all regions available to the project
are queried, and the results are aggregated.

<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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
  LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
  for (BackupCollection element :
      memorystoreClient.listBackupCollections(parent).iterateAll()) {
    // doThingsWith(element);
  }
}
}</pre>

@param parent Required. The resource name of the backupCollection location using the form:
    `projects/{project_id}/locations/{location_id}` where `location_id` refers to a Google
    Cloud region.
@throws com.google.api.gax.rpc.ApiException if the remote call fails
java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/MemorystoreClient.java