Class BackupSchedule.Builder (6.77.0)

public static final class BackupSchedule.Builder extends GeneratedMessageV3.Builder<BackupSchedule.Builder> implements BackupScheduleOrBuilder

BackupSchedule expresses the automated backup creation specification for a Spanner database. Next ID: 10

Protobuf type google.spanner.admin.database.v1.BackupSchedule

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BackupSchedule.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
BackupSchedule.Builder
Overrides

build()

public BackupSchedule build()
Returns
Type Description
BackupSchedule

buildPartial()

public BackupSchedule buildPartial()
Returns
Type Description
BackupSchedule

clear()

public BackupSchedule.Builder clear()
Returns
Type Description
BackupSchedule.Builder
Overrides

clearBackupTypeSpec()

public BackupSchedule.Builder clearBackupTypeSpec()
Returns
Type Description
BackupSchedule.Builder

clearEncryptionConfig()

public BackupSchedule.Builder clearEncryptionConfig()

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
BackupSchedule.Builder

clearField(Descriptors.FieldDescriptor field)

public BackupSchedule.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
BackupSchedule.Builder
Overrides

clearFullBackupSpec()

public BackupSchedule.Builder clearFullBackupSpec()

The schedule creates only full backups.

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

Returns
Type Description
BackupSchedule.Builder

clearIncrementalBackupSpec()

public BackupSchedule.Builder clearIncrementalBackupSpec()

The schedule creates incremental backup chains.

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

Returns
Type Description
BackupSchedule.Builder

clearName()

public BackupSchedule.Builder clearName()

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
BackupSchedule.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public BackupSchedule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
BackupSchedule.Builder
Overrides

clearRetentionDuration()

public BackupSchedule.Builder clearRetentionDuration()

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
BackupSchedule.Builder

clearSpec()

public BackupSchedule.Builder clearSpec