public final OperationCallable<BackupInstanceRequest, Instance, OperationMetadata>
      backupInstanceOperationCallable() {
    return stub.backupInstanceOperationCallable();
  }
Backup Instance. If this is the first time a backup is being created, a backup collection will
be created at the backend, and this backup belongs to this collection. Both collection and
backup will have a resource name. Backup will be executed for each shard. A replica (primary if
nonHA) will be selected to perform the execution. Backup call will be rejected if there is an
ongoing backup or update operation. Be aware that during preview, if the instance's internal
software version is too old, critical update will be performed before actual backup. Once the
internal software version is updated to the minimum version required by the backup feature,
subsequent backups will not require critical update. After preview, there will be no critical
update needed for backup.

<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()) {
  BackupInstanceRequest request =
      BackupInstanceRequest.newBuilder()
          .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
          .setTtl(Duration.newBuilder().build())
          .setBackupId("backupId2121930365")
          .build();
  OperationFuture<Instance, OperationMetadata> future =
      memorystoreClient.backupInstanceOperationCallable().futureCall(request);
  // Do something.
  Instance response = future.get();
}
}</pre>
java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/MemorystoreClient.java