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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public BackupSchedule.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public BackupSchedule build()
buildPartial()
public BackupSchedule buildPartial()
clear()
public BackupSchedule.Builder clear()
Overrides
clearBackupTypeSpec()
public BackupSchedule.Builder clearBackupTypeSpec()
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];
clearField(Descriptors.FieldDescriptor field)
public BackupSchedule.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearFullBackupSpec()
public BackupSchedule.Builder clearFullBackupSpec()
The schedule creates only full backups.
.google.spanner.admin.database.v1.FullBackupSpec full_backup_spec = 7;
clearIncrementalBackupSpec()
public BackupSchedule.Builder clearIncrementalBackupSpec()
The schedule creates incremental backup chains.
.google.spanner.admin.database.v1.IncrementalBackupSpec incremental_backup_spec = 8;
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];
clearOneof(Descriptors.OneofDescriptor oneof)
public BackupSchedule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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];
clearSpec()
public BackupSchedule.Builder clearSpec