Interface BackupScheduleOrBuilder (6.83.0)

public interface BackupScheduleOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getBackupTypeSpecCase()

public abstract BackupSchedule.BackupTypeSpecCase getBackupTypeSpecCase()
Returns
Type Description
BackupSchedule.BackupTypeSpecCase

getEncryptionConfig()

public abstract CreateBackupEncryptionConfig getEncryptionConfig()

Optional. The encryption configuration that will be used to encrypt the backup. If this field is not specified, the backup will use the same encryption configuration as the database.

.google.spanner.admin.database.v1.CreateBackupEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CreateBackupEncryptionConfig

The encryptionConfig.

getEncryptionConfigOrBuilder()

public abstract CreateBackupEncryptionConfigOrBuilder getEncryptionConfigOrBuilder()

Optional. The encryption configuration that will be used to encrypt the backup. If this field is not specified, the backup will use the same encryption configuration as the database.

.google.spanner.admin.database.v1.CreateBackupEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CreateBackupEncryptionConfigOrBuilder

getFullBackupSpec()

public abstract FullBackupSpec getFullBackupSpec()

The schedule creates only full backups.

.google.spanner.admin.database.v1.FullBackupSpec full_backup_spec = 7;

Returns
Type Description
FullBackupSpec

The fullBackupSpec.

getFullBackupSpecOrBuilder()

public abstract FullBackupSpecOrBuilder getFullBackupSpecOrBuilder()

The schedule creates only full backups.

.google.spanner.admin.database.v1.FullBackupSpec full_backup_spec = 7;

Returns
Type Description
FullBackupSpecOrBuilder

getIncrementalBackupSpec()

public abstract IncrementalBackupSpec getIncrementalBackupSpec()

The schedule creates incremental backup chains.

.google.spanner.admin.database.v1.IncrementalBackupSpec incremental_backup_spec = 8;

Returns
Type Description
IncrementalBackupSpec

The incrementalBackupSpec.

getIncrementalBackupSpecOrBuilder()

public abstract IncrementalBackupSpecOrBuilder getIncrementalBackupSpecOrBuilder()

The schedule creates incremental backup chains.

.google.spanner.admin.database.v1.IncrementalBackupSpec incremental_backup_spec = 8;

Returns
Type Description
IncrementalBackupSpecOrBuilder

getName()

public abstract String getName()

Identifier. Output only for the CreateBackupSchedule operation. Required for the UpdateBackupSchedule operation. A globally unique identifier for the backup schedule which cannot be changed. Values are of the form projects/<project>/instances/<instance>/databases/<database>/backupSchedules/a-z*[a-z0-9] The final segment of the name must be between 2 and 60 characters in length.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

Identifier. Output only for the CreateBackupSchedule operation. Required for the UpdateBackupSchedule operation. A globally unique identifier for the backup schedule which cannot be changed. Values are of the form projects/<project>/instances/<instance>/databases/<database>/backupSchedules/a-z*[a-z0-9] The final segment of the name must be between 2 and 60 characters in length.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getRetentionDuration()

public abstract Duration getRetentionDuration()

Optional. The retention duration of a backup that must be at least 6 hours and at most 366 days. The backup is eligible to be automatically deleted once the retention period has elapsed.

.google.protobuf.Duration retention_duration = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Duration

The retentionDuration.

getRetentionDurationOrBuilder()

public abstract DurationOrBuilder getRetentionDurationOrBuilder()

Optional. The retention duration of a backup that must be at least 6 hours and at most 366 days. The backup is eligible to be automatically deleted once the retention period has elapsed.

.google.protobuf.Duration retention_duration = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DurationOrBuilder

getSpec()

public abstract BackupScheduleSpec getSpec()

Optional. The schedule specification based on which the backup creations are triggered.

.google.spanner.admin.database.v1.BackupScheduleSpec spec = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BackupScheduleSpec

The spec.

getSpecOrBuilder()

public abstract BackupScheduleSpecOrBuilder getSpecOrBuilder()

Optional. The schedule specification based on which the backup creations are triggered.

.google.spanner.admin.database.v1.BackupScheduleSpec spec = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
BackupScheduleSpecOrBuilder

getUpdateTime()

public abstract Timestamp getUpdateTime()

Output only. The timestamp at which the schedule was last updated. If the schedule has never been updated, this field contains the timestamp when the schedule was first created.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public abstract TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The timestamp at which the schedule was last updated. If the schedule has never been updated, this field contains the timestamp when the schedule was first created.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasEncryptionConfig()

public abstract boolean hasEncryptionConfig()

Optional. The encryption configuration that will be used to encrypt the backup. If this field is not specified, the backup will use the same encryption configuration as the database.

.google.spanner.admin.database.v1.CreateBackupEncryptionConfig encryption_config = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the encryptionConfig field is set.

hasFullBackupSpec()

public abstract boolean hasFullBackupSpec()

The schedule creates only full backups.

.google.spanner.admin.database.v1.FullBackupSpec full_backup_spec = 7;

Returns
Type Description
boolean

Whether the fullBackupSpec field is set.

hasIncrementalBackupSpec()

public abstract boolean hasIncrementalBackupSpec()

The schedule creates incremental backup chains.

.google.spanner.admin.database.v1.IncrementalBackupSpec incremental_backup_spec = 8;

Returns
Type Description
boolean

Whether the incrementalBackupSpec field is set.

hasRetentionDuration()

public abstract boolean hasRetentionDuration()

Optional. The retention duration of a backup that must be at least 6 hours and at most 366 days. The backup is eligible to be automatically deleted once the retention period has elapsed.

.google.protobuf.Duration retention_duration = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the retentionDuration field is set.

hasSpec()

public abstract boolean hasSpec()

Optional. The schedule specification based on which the backup creations are triggered.

.google.spanner.admin.database.v1.BackupScheduleSpec spec = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the spec field is set.

hasUpdateTime()

public abstract boolean hasUpdateTime()

Output only. The timestamp at which the schedule was last updated. If the schedule has never been updated, this field contains the timestamp when the schedule was first created.

.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.