Class ContinuousBackupConfig.Builder (0.30.0)

public static final class ContinuousBackupConfig.Builder extends GeneratedMessageV3.Builder<ContinuousBackupConfig.Builder> implements ContinuousBackupConfigOrBuilder

ContinuousBackupConfig describes the continuous backups recovery configurations of a cluster.

Protobuf type google.cloud.alloydb.v1beta.ContinuousBackupConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ContinuousBackupConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ContinuousBackupConfig.Builder
Overrides

build()

public ContinuousBackupConfig build()
Returns
TypeDescription
ContinuousBackupConfig

buildPartial()

public ContinuousBackupConfig buildPartial()
Returns
TypeDescription
ContinuousBackupConfig

clear()

public ContinuousBackupConfig.Builder clear()
Returns
TypeDescription
ContinuousBackupConfig.Builder
Overrides

clearEnabled()

public ContinuousBackupConfig.Builder clearEnabled()

Whether ContinuousBackup is enabled.

optional bool enabled = 1;

Returns
TypeDescription
ContinuousBackupConfig.Builder

This builder for chaining.

clearEncryptionConfig()

public ContinuousBackupConfig.Builder clearEncryptionConfig()

The encryption config can be specified to encrypt the backups with a customer-managed encryption key (CMEK). When this field is not specified, the backup will then use default encryption scheme to protect the user data.

.google.cloud.alloydb.v1beta.EncryptionConfig encryption_config = 3;

Returns
TypeDescription
ContinuousBackupConfig.Builder

clearField(Descriptors.FieldDescriptor field)

public ContinuousBackupConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ContinuousBackupConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ContinuousBackupConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ContinuousBackupConfig.Builder
Overrides

clearRecoveryWindowDays()

public ContinuousBackupConfig.Builder clearRecoveryWindowDays()

The number of days that are eligible to restore from using PITR. To support the entire recovery window, backups and logs are retained for one day more than the recovery window. If not set, defaults to 14 days.

int32 recovery_window_days = 4;

Returns
TypeDescription
ContinuousBackupConfig.Builder

This builder for chaining.

clone()

public ContinuousBackupConfig.Builder clone()
Returns
TypeDescription
ContinuousBackupConfig.Builder
Overrides

getDefaultInstanceForType()

public ContinuousBackupConfig getDefaultInstanceForType()
Returns
TypeDescription
ContinuousBackupConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEnabled()

public boolean getEnabled()

Whether ContinuousBackup is enabled.

optional bool enabled = 1;

Returns
TypeDescription
boolean

The enabled.

getEncryptionConfig()

public EncryptionConfig getEncryptionConfig()

The encryption config can be specified to encrypt the backups with a customer-managed encryption key (CMEK). When this field is not specified, the backup will then use default encryption scheme to protect the user data.

.google.cloud.alloydb.v1beta.EncryptionConfig encryption_config = 3;

Returns
TypeDescription
EncryptionConfig

The encryptionConfig.

getEncryptionConfigBuilder()

public EncryptionConfig.Builder getEncryptionConfigBuilder()

The encryption config can be specified to encrypt the backups with a customer-managed encryption key (CMEK). When this field is not specified, the backup will then use default encryption scheme to protect the user data.

.google.cloud.alloydb.v1beta.EncryptionConfig encryption_config = 3;

Returns
TypeDescription
EncryptionConfig.Builder

getEncryptionConfigOrBuilder()

public EncryptionConfigOrBuilder getEncryptionConfigOrBuilder()

The encryption config can be specified to encrypt the backups with a customer-managed encryption key (CMEK). When this field is not specified, the backup will then use default encryption scheme to protect the user data.

.google.cloud.alloydb.v1beta.EncryptionConfig encryption_config = 3;

Returns
TypeDescription
EncryptionConfigOrBuilder

getRecoveryWindowDays()

public int getRecoveryWindowDays()

The number of days that are eligible to restore from using PITR. To support the entire recovery window, backups and logs are retained for one day more than the recovery window. If not set, defaults to 14 days.

int32 recovery_window_days = 4;

Returns
TypeDescription
int

The recoveryWindowDays.

hasEnabled()

public boolean hasEnabled()

Whether ContinuousBackup is enabled.

optional bool enabled = 1;

Returns
TypeDescription
boolean

Whether the enabled field is set.

hasEncryptionConfig()

public boolean hasEncryptionConfig()

The encryption config can be specified to encrypt the backups with a customer-managed encryption key (CMEK). When this field is not specified, the backup will then use default encryption scheme to protect the user data.

.google.cloud.alloydb.v1beta.EncryptionConfig encryption_config = 3;

Returns
TypeDescription
boolean

Whether the encryptionConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeEncryptionConfig(EncryptionConfig value)

public ContinuousBackupConfig.Builder mergeEncryptionConfig(EncryptionConfig value)

The encryption config can be specified to encrypt the backups with a customer-managed encryption key (CMEK). When this field is not specified, the backup will then use default encryption scheme to protect the user data.

.google.cloud.alloydb.v1beta.EncryptionConfig encryption_config = 3;

Parameter
NameDescription
valueEncryptionConfig
Returns
TypeDescription
ContinuousBackupConfig.Builder

mergeFrom(ContinuousBackupConfig other)

public ContinuousBackupConfig.Builder mergeFrom(ContinuousBackupConfig other)
Parameter
NameDescription
otherContinuousBackupConfig
Returns
TypeDescription
ContinuousBackupConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ContinuousBackupConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ContinuousBackupConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ContinuousBackupConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ContinuousBackupConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ContinuousBackupConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ContinuousBackupConfig.Builder
Overrides

setEnabled(boolean value)

public ContinuousBackupConfig.Builder setEnabled(boolean value)

Whether ContinuousBackup is enabled.

optional bool enabled = 1;

Parameter
NameDescription
valueboolean

The enabled to set.

Returns
TypeDescription
ContinuousBackupConfig.Builder

This builder for chaining.

setEncryptionConfig(EncryptionConfig value)

public ContinuousBackupConfig.Builder setEncryptionConfig(EncryptionConfig value)

The encryption config can be specified to encrypt the backups with a customer-managed encryption key (CMEK). When this field is not specified, the backup will then use default encryption scheme to protect the user data.

.google.cloud.alloydb.v1beta.EncryptionConfig encryption_config = 3;

Parameter
NameDescription
valueEncryptionConfig
Returns
TypeDescription
ContinuousBackupConfig.Builder

setEncryptionConfig(EncryptionConfig.Builder builderForValue)

public ContinuousBackupConfig.Builder setEncryptionConfig(EncryptionConfig.Builder builderForValue)

The encryption config can be specified to encrypt the backups with a customer-managed encryption key (CMEK). When this field is not specified, the backup will then use default encryption scheme to protect the user data.

.google.cloud.alloydb.v1beta.EncryptionConfig encryption_config = 3;

Parameter
NameDescription
builderForValueEncryptionConfig.Builder
Returns
TypeDescription
ContinuousBackupConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ContinuousBackupConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ContinuousBackupConfig.Builder
Overrides

setRecoveryWindowDays(int value)

public ContinuousBackupConfig.Builder setRecoveryWindowDays(int value)

The number of days that are eligible to restore from using PITR. To support the entire recovery window, backups and logs are retained for one day more than the recovery window. If not set, defaults to 14 days.

int32 recovery_window_days = 4;

Parameter
NameDescription
valueint

The recoveryWindowDays to set.

Returns
TypeDescription
ContinuousBackupConfig.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ContinuousBackupConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ContinuousBackupConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ContinuousBackupConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ContinuousBackupConfig.Builder
Overrides