Package com.google.cloud.alloydb.v1alpha
Class ContinuousBackupConfig.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ContinuousBackupConfig.Builder>
-
- com.google.cloud.alloydb.v1alpha.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.GeneratedMessageV3.Builder<ContinuousBackupConfig.Builder> implements ContinuousBackupConfigOrBuilder
ContinuousBackupConfig describes the continuous backups recovery configurations of a cluster.
Protobuf typegoogle.cloud.alloydb.v1alpha.ContinuousBackupConfig
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ContinuousBackupConfig.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ContinuousBackupConfigbuild()ContinuousBackupConfigbuildPartial()ContinuousBackupConfig.Builderclear()ContinuousBackupConfig.BuilderclearEnabled()Whether ContinuousBackup is enabled.ContinuousBackupConfig.BuilderclearEncryptionConfig()The encryption config can be specified to encrypt the backups with a customer-managed encryption key (CMEK).ContinuousBackupConfig.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ContinuousBackupConfig.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ContinuousBackupConfig.BuilderclearRecoveryWindowDays()The number of days that are eligible to restore from using PITR.ContinuousBackupConfig.Builderclone()ContinuousBackupConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()booleangetEnabled()Whether ContinuousBackup is enabled.EncryptionConfiggetEncryptionConfig()The encryption config can be specified to encrypt the backups with a customer-managed encryption key (CMEK).EncryptionConfig.BuildergetEncryptionConfigBuilder()The encryption config can be specified to encrypt the backups with a customer-managed encryption key (CMEK).EncryptionConfigOrBuildergetEncryptionConfigOrBuilder()The encryption config can be specified to encrypt the backups with a customer-managed encryption key (CMEK).intgetRecoveryWindowDays()The number of days that are eligible to restore from using PITR.booleanhasEnabled()Whether ContinuousBackup is enabled.booleanhasEncryptionConfig()The encryption config can be specified to encrypt the backups with a customer-managed encryption key (CMEK).protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()ContinuousBackupConfig.BuildermergeEncryptionConfig(EncryptionConfig value)The encryption config can be specified to encrypt the backups with a customer-managed encryption key (CMEK).ContinuousBackupConfig.BuildermergeFrom(ContinuousBackupConfig other)ContinuousBackupConfig.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ContinuousBackupConfig.BuildermergeFrom(com.google.protobuf.Message other)ContinuousBackupConfig.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ContinuousBackupConfig.BuildersetEnabled(boolean value)Whether ContinuousBackup is enabled.ContinuousBackupConfig.BuildersetEncryptionConfig(EncryptionConfig value)The encryption config can be specified to encrypt the backups with a customer-managed encryption key (CMEK).ContinuousBackupConfig.BuildersetEncryptionConfig(EncryptionConfig.Builder builderForValue)The encryption config can be specified to encrypt the backups with a customer-managed encryption key (CMEK).ContinuousBackupConfig.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ContinuousBackupConfig.BuildersetRecoveryWindowDays(int value)The number of days that are eligible to restore from using PITR.ContinuousBackupConfig.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)ContinuousBackupConfig.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ContinuousBackupConfig.Builder>
-
clear
public ContinuousBackupConfig.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<ContinuousBackupConfig.Builder>
-
getDefaultInstanceForType
public ContinuousBackupConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ContinuousBackupConfig build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ContinuousBackupConfig buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ContinuousBackupConfig.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ContinuousBackupConfig.Builder>
-
setField
public ContinuousBackupConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ContinuousBackupConfig.Builder>
-
clearField
public ContinuousBackupConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ContinuousBackupConfig.Builder>
-
clearOneof
public ContinuousBackupConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ContinuousBackupConfig.Builder>
-
setRepeatedField
public ContinuousBackupConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ContinuousBackupConfig.Builder>
-
addRepeatedField
public ContinuousBackupConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ContinuousBackupConfig.Builder>
-
mergeFrom
public ContinuousBackupConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ContinuousBackupConfig.Builder>
-
mergeFrom
public ContinuousBackupConfig.Builder mergeFrom(ContinuousBackupConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
public ContinuousBackupConfig.Builder setEnabled(boolean value)
Whether ContinuousBackup is enabled.
optional bool enabled = 1;- Parameters:
value- The enabled to set.- Returns:
- This builder for chaining.
-
clearEnabled
public ContinuousBackupConfig.Builder 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
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;- Parameters:
value- The recoveryWindowDays to set.- Returns:
- This builder for chaining.
-
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:
- 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 then use default encryption scheme to protect the user data.
.google.cloud.alloydb.v1alpha.EncryptionConfig encryption_config = 3;- Specified by:
hasEncryptionConfigin interfaceContinuousBackupConfigOrBuilder- Returns:
- Whether the encryptionConfig field is set.
-
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;- Specified by:
getEncryptionConfigin interfaceContinuousBackupConfigOrBuilder- Returns:
- The encryptionConfig.
-
setEncryptionConfig
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
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;
-
mergeEncryptionConfig
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;
-
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;
-
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;- Specified by:
getEncryptionConfigOrBuilderin interfaceContinuousBackupConfigOrBuilder
-
setUnknownFields
public final ContinuousBackupConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ContinuousBackupConfig.Builder>
-
mergeUnknownFields
public final ContinuousBackupConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ContinuousBackupConfig.Builder>
-
-