Package com.google.cloud.alloydb.v1beta
Class ContinuousBackupConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ContinuousBackupConfig.Builder>
com.google.cloud.alloydb.v1beta.ContinuousBackupConfig.Builder
- All Implemented Interfaces:
ContinuousBackupConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ContinuousBackupConfig
public static final class ContinuousBackupConfig.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ContinuousBackupConfig.Builder>
implements ContinuousBackupConfigOrBuilder
ContinuousBackupConfig describes the continuous backups recovery configurations of a cluster.Protobuf type
google.cloud.alloydb.v1beta.ContinuousBackupConfig-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Whether ContinuousBackup is enabled.The encryption config can be specified to encrypt the backups with a customer-managed encryption key (CMEK).The number of days that are eligible to restore from using PITR.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanWhether ContinuousBackup is enabled.The encryption config can be specified to encrypt the backups with a customer-managed encryption key (CMEK).The encryption config can be specified to encrypt the backups with a customer-managed encryption key (CMEK).The encryption config can be specified to encrypt the backups with a customer-managed encryption key (CMEK).intThe number of days that are eligible to restore from using PITR.booleanWhether ContinuousBackup is enabled.booleanThe encryption config can be specified to encrypt the backups with a customer-managed encryption key (CMEK).protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanThe encryption config can be specified to encrypt the backups with a customer-managed encryption key (CMEK).mergeFrom(ContinuousBackupConfig other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setEnabled(boolean value) Whether ContinuousBackup is enabled.The encryption config can be specified to encrypt the backups with a customer-managed encryption key (CMEK).setEncryptionConfig(EncryptionConfig.Builder builderForValue) The encryption config can be specified to encrypt the backups with a customer-managed encryption key (CMEK).setRecoveryWindowDays(int value) The number of days that are eligible to restore from using PITR.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ContinuousBackupConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ContinuousBackupConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ContinuousBackupConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ContinuousBackupConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ContinuousBackupConfig.Builder>
-
mergeFrom
public ContinuousBackupConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ContinuousBackupConfig.Builder>- Throws:
IOException
-
hasEnabled
public boolean hasEnabled()Whether ContinuousBackup is enabled.
optional bool enabled = 1;- Specified by:
hasEnabledin interfaceContinuousBackupConfigOrBuilder- Returns:
- Whether the enabled field is set.
-
getEnabled
public boolean getEnabled()Whether ContinuousBackup is enabled.
optional bool enabled = 1;- Specified by:
getEnabledin interfaceContinuousBackupConfigOrBuilder- Returns:
- The enabled.
-
setEnabled
Whether ContinuousBackup is enabled.
optional bool enabled = 1;- Parameters:
value- The enabled to set.- Returns:
- This builder for chaining.
-
clearEnabled
Whether ContinuousBackup is enabled.
optional bool enabled = 1;- Returns:
- This builder for chaining.
-
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;- Specified by:
getRecoveryWindowDaysin interfaceContinuousBackupConfigOrBuilder- Returns:
- The recoveryWindowDays.
-
setRecoveryWindowDays
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;- Parameters:
value- The recoveryWindowDays to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
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 use the cluster's encryption config.
.google.cloud.alloydb.v1beta.EncryptionConfig encryption_config = 3;- Specified by:
hasEncryptionConfigin interfaceContinuousBackupConfigOrBuilder- Returns:
- Whether the encryptionConfig field is set.
-
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 use the cluster's encryption config.
.google.cloud.alloydb.v1beta.EncryptionConfig encryption_config = 3;- Specified by:
getEncryptionConfigin interfaceContinuousBackupConfigOrBuilder- Returns:
- The encryptionConfig.
-
setEncryptionConfig
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 use the cluster's encryption config.
.google.cloud.alloydb.v1beta.EncryptionConfig encryption_config = 3; -
setEncryptionConfig
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 use the cluster's encryption config.
.google.cloud.alloydb.v1beta.EncryptionConfig encryption_config = 3; -
mergeEncryptionConfig
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 use the cluster's encryption config.
.google.cloud.alloydb.v1beta.EncryptionConfig encryption_config = 3; -
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 use the cluster's encryption config.
.google.cloud.alloydb.v1beta.EncryptionConfig encryption_config = 3; -
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 use the cluster's encryption config.
.google.cloud.alloydb.v1beta.EncryptionConfig encryption_config = 3; -
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 use the cluster's encryption config.
.google.cloud.alloydb.v1beta.EncryptionConfig encryption_config = 3;- Specified by:
getEncryptionConfigOrBuilderin interfaceContinuousBackupConfigOrBuilder
-