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.v1alpha.ContinuousBackupConfig
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 ContinuousBackupConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public ContinuousBackupConfig build()
buildPartial()
public ContinuousBackupConfig buildPartial()
clear()
public ContinuousBackupConfig.Builder clear()
Overrides
clearEnabled()
public ContinuousBackupConfig.Builder clearEnabled()
Whether ContinuousBackup is enabled.
optional bool enabled = 1;
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.v1alpha.EncryptionConfig encryption_config = 3;
clearField(Descriptors.FieldDescriptor field)
public ContinuousBackupConfig.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ContinuousBackupConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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;
clone()
public ContinuousBackupConfig.Builder clone()
Overrides
getDefaultInstanceForType()
public ContinuousBackupConfig getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getEnabled()
public boolean getEnabled()
Whether ContinuousBackup is enabled.
optional bool enabled = 1;
Returns |
Type |
Description |
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.v1alpha.EncryptionConfig encryption_config = 3;
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.v1alpha.EncryptionConfig encryption_config = 3;
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.v1alpha.EncryptionConfig encryption_config = 3;
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 |
Type |
Description |
int |
The recoveryWindowDays.
|
hasEnabled()
public boolean hasEnabled()
Whether ContinuousBackup is enabled.
optional bool enabled = 1;
Returns |
Type |
Description |
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.v1alpha.EncryptionConfig encryption_config = 3;
Returns |
Type |
Description |
boolean |
Whether the encryptionConfig field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
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.v1alpha.EncryptionConfig encryption_config = 3;
mergeFrom(ContinuousBackupConfig other)
public ContinuousBackupConfig.Builder mergeFrom(ContinuousBackupConfig other)
public ContinuousBackupConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ContinuousBackupConfig.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ContinuousBackupConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setEnabled(boolean value)
public ContinuousBackupConfig.Builder setEnabled(boolean value)
Whether ContinuousBackup is enabled.
optional bool enabled = 1;
Parameter |
Name |
Description |
value |
boolean
The enabled to set.
|
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.v1alpha.EncryptionConfig encryption_config = 3;
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.v1alpha.EncryptionConfig encryption_config = 3;
setField(Descriptors.FieldDescriptor field, Object value)
public ContinuousBackupConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
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 |
Name |
Description |
value |
int
The recoveryWindowDays to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ContinuousBackupConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ContinuousBackupConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides