Package com.google.cloud.alloydb.v1beta
Class AutomatedBackupPolicy.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.Builder>
-
- com.google.cloud.alloydb.v1beta.AutomatedBackupPolicy.Builder
-
- All Implemented Interfaces:
AutomatedBackupPolicyOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AutomatedBackupPolicy
public static final class AutomatedBackupPolicy.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.Builder> implements AutomatedBackupPolicyOrBuilder
Message describing the user-specified automated backup policy. All fields in the automated backup policy are optional. Defaults for each field are provided if they are not set.
Protobuf typegoogle.cloud.alloydb.v1beta.AutomatedBackupPolicy
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AutomatedBackupPolicy.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)AutomatedBackupPolicybuild()AutomatedBackupPolicybuildPartial()AutomatedBackupPolicy.Builderclear()AutomatedBackupPolicy.BuilderclearBackupWindow()The length of the time window during which a backup can be taken.AutomatedBackupPolicy.BuilderclearEnabled()Whether automated automated backups are enabled.AutomatedBackupPolicy.BuilderclearEncryptionConfig()Optional.AutomatedBackupPolicy.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)AutomatedBackupPolicy.BuilderclearLabels()AutomatedBackupPolicy.BuilderclearLocation()The location where the backup will be stored.AutomatedBackupPolicy.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)AutomatedBackupPolicy.BuilderclearQuantityBasedRetention()Quantity-based Backup retention policy to retain recent backups.AutomatedBackupPolicy.BuilderclearRetention()AutomatedBackupPolicy.BuilderclearSchedule()AutomatedBackupPolicy.BuilderclearTimeBasedRetention()Time-based Backup retention policy.AutomatedBackupPolicy.BuilderclearWeeklySchedule()Weekly schedule for the Backup.AutomatedBackupPolicy.Builderclone()booleancontainsLabels(String key)Labels to apply to backups created using this configuration.com.google.protobuf.DurationgetBackupWindow()The length of the time window during which a backup can be taken.com.google.protobuf.Duration.BuildergetBackupWindowBuilder()The length of the time window during which a backup can be taken.com.google.protobuf.DurationOrBuildergetBackupWindowOrBuilder()The length of the time window during which a backup can be taken.AutomatedBackupPolicygetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()booleangetEnabled()Whether automated automated backups are enabled.EncryptionConfiggetEncryptionConfig()Optional.EncryptionConfig.BuildergetEncryptionConfigBuilder()Optional.EncryptionConfigOrBuildergetEncryptionConfigOrBuilder()Optional.Map<String,String>getLabels()Deprecated.intgetLabelsCount()Labels to apply to backups created using this configuration.Map<String,String>getLabelsMap()Labels to apply to backups created using this configuration.StringgetLabelsOrDefault(String key, String defaultValue)Labels to apply to backups created using this configuration.StringgetLabelsOrThrow(String key)Labels to apply to backups created using this configuration.StringgetLocation()The location where the backup will be stored.com.google.protobuf.ByteStringgetLocationBytes()The location where the backup will be stored.Map<String,String>getMutableLabels()Deprecated.AutomatedBackupPolicy.QuantityBasedRetentiongetQuantityBasedRetention()Quantity-based Backup retention policy to retain recent backups.AutomatedBackupPolicy.QuantityBasedRetention.BuildergetQuantityBasedRetentionBuilder()Quantity-based Backup retention policy to retain recent backups.AutomatedBackupPolicy.QuantityBasedRetentionOrBuildergetQuantityBasedRetentionOrBuilder()Quantity-based Backup retention policy to retain recent backups.AutomatedBackupPolicy.RetentionCasegetRetentionCase()AutomatedBackupPolicy.ScheduleCasegetScheduleCase()AutomatedBackupPolicy.TimeBasedRetentiongetTimeBasedRetention()Time-based Backup retention policy.AutomatedBackupPolicy.TimeBasedRetention.BuildergetTimeBasedRetentionBuilder()Time-based Backup retention policy.AutomatedBackupPolicy.TimeBasedRetentionOrBuildergetTimeBasedRetentionOrBuilder()Time-based Backup retention policy.AutomatedBackupPolicy.WeeklySchedulegetWeeklySchedule()Weekly schedule for the Backup.AutomatedBackupPolicy.WeeklySchedule.BuildergetWeeklyScheduleBuilder()Weekly schedule for the Backup.AutomatedBackupPolicy.WeeklyScheduleOrBuildergetWeeklyScheduleOrBuilder()Weekly schedule for the Backup.booleanhasBackupWindow()The length of the time window during which a backup can be taken.booleanhasEnabled()Whether automated automated backups are enabled.booleanhasEncryptionConfig()Optional.booleanhasQuantityBasedRetention()Quantity-based Backup retention policy to retain recent backups.booleanhasTimeBasedRetention()Time-based Backup retention policy.booleanhasWeeklySchedule()Weekly schedule for the Backup.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()AutomatedBackupPolicy.BuildermergeBackupWindow(com.google.protobuf.Duration value)The length of the time window during which a backup can be taken.AutomatedBackupPolicy.BuildermergeEncryptionConfig(EncryptionConfig value)Optional.AutomatedBackupPolicy.BuildermergeFrom(AutomatedBackupPolicy other)AutomatedBackupPolicy.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)AutomatedBackupPolicy.BuildermergeFrom(com.google.protobuf.Message other)AutomatedBackupPolicy.BuildermergeQuantityBasedRetention(AutomatedBackupPolicy.QuantityBasedRetention value)Quantity-based Backup retention policy to retain recent backups.AutomatedBackupPolicy.BuildermergeTimeBasedRetention(AutomatedBackupPolicy.TimeBasedRetention value)Time-based Backup retention policy.AutomatedBackupPolicy.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)AutomatedBackupPolicy.BuildermergeWeeklySchedule(AutomatedBackupPolicy.WeeklySchedule value)Weekly schedule for the Backup.AutomatedBackupPolicy.BuilderputAllLabels(Map<String,String> values)Labels to apply to backups created using this configuration.AutomatedBackupPolicy.BuilderputLabels(String key, String value)Labels to apply to backups created using this configuration.AutomatedBackupPolicy.BuilderremoveLabels(String key)Labels to apply to backups created using this configuration.AutomatedBackupPolicy.BuildersetBackupWindow(com.google.protobuf.Duration value)The length of the time window during which a backup can be taken.AutomatedBackupPolicy.BuildersetBackupWindow(com.google.protobuf.Duration.Builder builderForValue)The length of the time window during which a backup can be taken.AutomatedBackupPolicy.BuildersetEnabled(boolean value)Whether automated automated backups are enabled.AutomatedBackupPolicy.BuildersetEncryptionConfig(EncryptionConfig value)Optional.AutomatedBackupPolicy.BuildersetEncryptionConfig(EncryptionConfig.Builder builderForValue)Optional.AutomatedBackupPolicy.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)AutomatedBackupPolicy.BuildersetLocation(String value)The location where the backup will be stored.AutomatedBackupPolicy.BuildersetLocationBytes(com.google.protobuf.ByteString value)The location where the backup will be stored.AutomatedBackupPolicy.BuildersetQuantityBasedRetention(AutomatedBackupPolicy.QuantityBasedRetention value)Quantity-based Backup retention policy to retain recent backups.AutomatedBackupPolicy.BuildersetQuantityBasedRetention(AutomatedBackupPolicy.QuantityBasedRetention.Builder builderForValue)Quantity-based Backup retention policy to retain recent backups.AutomatedBackupPolicy.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)AutomatedBackupPolicy.BuildersetTimeBasedRetention(AutomatedBackupPolicy.TimeBasedRetention value)Time-based Backup retention policy.AutomatedBackupPolicy.BuildersetTimeBasedRetention(AutomatedBackupPolicy.TimeBasedRetention.Builder builderForValue)Time-based Backup retention policy.AutomatedBackupPolicy.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)AutomatedBackupPolicy.BuildersetWeeklySchedule(AutomatedBackupPolicy.WeeklySchedule value)Weekly schedule for the Backup.AutomatedBackupPolicy.BuildersetWeeklySchedule(AutomatedBackupPolicy.WeeklySchedule.Builder builderForValue)Weekly schedule for the Backup.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, 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()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.Builder>
-
clear
public AutomatedBackupPolicy.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<AutomatedBackupPolicy.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<AutomatedBackupPolicy.Builder>
-
getDefaultInstanceForType
public AutomatedBackupPolicy getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public AutomatedBackupPolicy build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AutomatedBackupPolicy buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AutomatedBackupPolicy.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<AutomatedBackupPolicy.Builder>
-
setField
public AutomatedBackupPolicy.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<AutomatedBackupPolicy.Builder>
-
clearField
public AutomatedBackupPolicy.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.Builder>
-
clearOneof
public AutomatedBackupPolicy.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.Builder>
-
setRepeatedField
public AutomatedBackupPolicy.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<AutomatedBackupPolicy.Builder>
-
addRepeatedField
public AutomatedBackupPolicy.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<AutomatedBackupPolicy.Builder>
-
mergeFrom
public AutomatedBackupPolicy.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AutomatedBackupPolicy.Builder>
-
mergeFrom
public AutomatedBackupPolicy.Builder mergeFrom(AutomatedBackupPolicy other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.Builder>
-
mergeFrom
public AutomatedBackupPolicy.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<AutomatedBackupPolicy.Builder>- Throws:
IOException
-
getScheduleCase
public AutomatedBackupPolicy.ScheduleCase getScheduleCase()
- Specified by:
getScheduleCasein interfaceAutomatedBackupPolicyOrBuilder
-
clearSchedule
public AutomatedBackupPolicy.Builder clearSchedule()
-
getRetentionCase
public AutomatedBackupPolicy.RetentionCase getRetentionCase()
- Specified by:
getRetentionCasein interfaceAutomatedBackupPolicyOrBuilder
-
clearRetention
public AutomatedBackupPolicy.Builder clearRetention()
-
hasWeeklySchedule
public boolean hasWeeklySchedule()
Weekly schedule for the Backup.
.google.cloud.alloydb.v1beta.AutomatedBackupPolicy.WeeklySchedule weekly_schedule = 2;- Specified by:
hasWeeklySchedulein interfaceAutomatedBackupPolicyOrBuilder- Returns:
- Whether the weeklySchedule field is set.
-
getWeeklySchedule
public AutomatedBackupPolicy.WeeklySchedule getWeeklySchedule()
Weekly schedule for the Backup.
.google.cloud.alloydb.v1beta.AutomatedBackupPolicy.WeeklySchedule weekly_schedule = 2;- Specified by:
getWeeklySchedulein interfaceAutomatedBackupPolicyOrBuilder- Returns:
- The weeklySchedule.
-
setWeeklySchedule
public AutomatedBackupPolicy.Builder setWeeklySchedule(AutomatedBackupPolicy.WeeklySchedule value)
Weekly schedule for the Backup.
.google.cloud.alloydb.v1beta.AutomatedBackupPolicy.WeeklySchedule weekly_schedule = 2;
-
setWeeklySchedule
public AutomatedBackupPolicy.Builder setWeeklySchedule(AutomatedBackupPolicy.WeeklySchedule.Builder builderForValue)
Weekly schedule for the Backup.
.google.cloud.alloydb.v1beta.AutomatedBackupPolicy.WeeklySchedule weekly_schedule = 2;
-
mergeWeeklySchedule
public AutomatedBackupPolicy.Builder mergeWeeklySchedule(AutomatedBackupPolicy.WeeklySchedule value)
Weekly schedule for the Backup.
.google.cloud.alloydb.v1beta.AutomatedBackupPolicy.WeeklySchedule weekly_schedule = 2;
-
clearWeeklySchedule
public AutomatedBackupPolicy.Builder clearWeeklySchedule()
Weekly schedule for the Backup.
.google.cloud.alloydb.v1beta.AutomatedBackupPolicy.WeeklySchedule weekly_schedule = 2;
-
getWeeklyScheduleBuilder
public AutomatedBackupPolicy.WeeklySchedule.Builder getWeeklyScheduleBuilder()
Weekly schedule for the Backup.
.google.cloud.alloydb.v1beta.AutomatedBackupPolicy.WeeklySchedule weekly_schedule = 2;
-
getWeeklyScheduleOrBuilder
public AutomatedBackupPolicy.WeeklyScheduleOrBuilder getWeeklyScheduleOrBuilder()
Weekly schedule for the Backup.
.google.cloud.alloydb.v1beta.AutomatedBackupPolicy.WeeklySchedule weekly_schedule = 2;- Specified by:
getWeeklyScheduleOrBuilderin interfaceAutomatedBackupPolicyOrBuilder
-
hasTimeBasedRetention
public boolean hasTimeBasedRetention()
Time-based Backup retention policy.
.google.cloud.alloydb.v1beta.AutomatedBackupPolicy.TimeBasedRetention time_based_retention = 4;- Specified by:
hasTimeBasedRetentionin interfaceAutomatedBackupPolicyOrBuilder- Returns:
- Whether the timeBasedRetention field is set.
-
getTimeBasedRetention
public AutomatedBackupPolicy.TimeBasedRetention getTimeBasedRetention()
Time-based Backup retention policy.
.google.cloud.alloydb.v1beta.AutomatedBackupPolicy.TimeBasedRetention time_based_retention = 4;- Specified by:
getTimeBasedRetentionin interfaceAutomatedBackupPolicyOrBuilder- Returns:
- The timeBasedRetention.
-
setTimeBasedRetention
public AutomatedBackupPolicy.Builder setTimeBasedRetention(AutomatedBackupPolicy.TimeBasedRetention value)
Time-based Backup retention policy.
.google.cloud.alloydb.v1beta.AutomatedBackupPolicy.TimeBasedRetention time_based_retention = 4;
-
setTimeBasedRetention
public AutomatedBackupPolicy.Builder setTimeBasedRetention(AutomatedBackupPolicy.TimeBasedRetention.Builder builderForValue)
Time-based Backup retention policy.
.google.cloud.alloydb.v1beta.AutomatedBackupPolicy.TimeBasedRetention time_based_retention = 4;
-
mergeTimeBasedRetention
public AutomatedBackupPolicy.Builder mergeTimeBasedRetention(AutomatedBackupPolicy.TimeBasedRetention value)
Time-based Backup retention policy.
.google.cloud.alloydb.v1beta.AutomatedBackupPolicy.TimeBasedRetention time_based_retention = 4;
-
clearTimeBasedRetention
public AutomatedBackupPolicy.Builder clearTimeBasedRetention()
Time-based Backup retention policy.
.google.cloud.alloydb.v1beta.AutomatedBackupPolicy.TimeBasedRetention time_based_retention = 4;
-
getTimeBasedRetentionBuilder
public AutomatedBackupPolicy.TimeBasedRetention.Builder getTimeBasedRetentionBuilder()
Time-based Backup retention policy.
.google.cloud.alloydb.v1beta.AutomatedBackupPolicy.TimeBasedRetention time_based_retention = 4;
-
getTimeBasedRetentionOrBuilder
public AutomatedBackupPolicy.TimeBasedRetentionOrBuilder getTimeBasedRetentionOrBuilder()
Time-based Backup retention policy.
.google.cloud.alloydb.v1beta.AutomatedBackupPolicy.TimeBasedRetention time_based_retention = 4;- Specified by:
getTimeBasedRetentionOrBuilderin interfaceAutomatedBackupPolicyOrBuilder
-
hasQuantityBasedRetention
public boolean hasQuantityBasedRetention()
Quantity-based Backup retention policy to retain recent backups.
.google.cloud.alloydb.v1beta.AutomatedBackupPolicy.QuantityBasedRetention quantity_based_retention = 5;- Specified by:
hasQuantityBasedRetentionin interfaceAutomatedBackupPolicyOrBuilder- Returns:
- Whether the quantityBasedRetention field is set.
-
getQuantityBasedRetention
public AutomatedBackupPolicy.QuantityBasedRetention getQuantityBasedRetention()
Quantity-based Backup retention policy to retain recent backups.
.google.cloud.alloydb.v1beta.AutomatedBackupPolicy.QuantityBasedRetention quantity_based_retention = 5;- Specified by:
getQuantityBasedRetentionin interfaceAutomatedBackupPolicyOrBuilder- Returns:
- The quantityBasedRetention.
-
setQuantityBasedRetention
public AutomatedBackupPolicy.Builder setQuantityBasedRetention(AutomatedBackupPolicy.QuantityBasedRetention value)
Quantity-based Backup retention policy to retain recent backups.
.google.cloud.alloydb.v1beta.AutomatedBackupPolicy.QuantityBasedRetention quantity_based_retention = 5;
-
setQuantityBasedRetention
public AutomatedBackupPolicy.Builder setQuantityBasedRetention(AutomatedBackupPolicy.QuantityBasedRetention.Builder builderForValue)
Quantity-based Backup retention policy to retain recent backups.
.google.cloud.alloydb.v1beta.AutomatedBackupPolicy.QuantityBasedRetention quantity_based_retention = 5;
-
mergeQuantityBasedRetention
public AutomatedBackupPolicy.Builder mergeQuantityBasedRetention(AutomatedBackupPolicy.QuantityBasedRetention value)
Quantity-based Backup retention policy to retain recent backups.
.google.cloud.alloydb.v1beta.AutomatedBackupPolicy.QuantityBasedRetention quantity_based_retention = 5;
-
clearQuantityBasedRetention
public AutomatedBackupPolicy.Builder clearQuantityBasedRetention()
Quantity-based Backup retention policy to retain recent backups.
.google.cloud.alloydb.v1beta.AutomatedBackupPolicy.QuantityBasedRetention quantity_based_retention = 5;
-
getQuantityBasedRetentionBuilder
public AutomatedBackupPolicy.QuantityBasedRetention.Builder getQuantityBasedRetentionBuilder()
Quantity-based Backup retention policy to retain recent backups.
.google.cloud.alloydb.v1beta.AutomatedBackupPolicy.QuantityBasedRetention quantity_based_retention = 5;
-
getQuantityBasedRetentionOrBuilder
public AutomatedBackupPolicy.QuantityBasedRetentionOrBuilder getQuantityBasedRetentionOrBuilder()
Quantity-based Backup retention policy to retain recent backups.
.google.cloud.alloydb.v1beta.AutomatedBackupPolicy.QuantityBasedRetention quantity_based_retention = 5;- Specified by:
getQuantityBasedRetentionOrBuilderin interfaceAutomatedBackupPolicyOrBuilder
-
hasEnabled
public boolean hasEnabled()
Whether automated automated backups are enabled. If not set, defaults to true.
optional bool enabled = 1;- Specified by:
hasEnabledin interfaceAutomatedBackupPolicyOrBuilder- Returns:
- Whether the enabled field is set.
-
getEnabled
public boolean getEnabled()
Whether automated automated backups are enabled. If not set, defaults to true.
optional bool enabled = 1;- Specified by:
getEnabledin interfaceAutomatedBackupPolicyOrBuilder- Returns:
- The enabled.
-
setEnabled
public AutomatedBackupPolicy.Builder setEnabled(boolean value)
Whether automated automated backups are enabled. If not set, defaults to true.
optional bool enabled = 1;- Parameters:
value- The enabled to set.- Returns:
- This builder for chaining.
-
clearEnabled
public AutomatedBackupPolicy.Builder clearEnabled()
Whether automated automated backups are enabled. If not set, defaults to true.
optional bool enabled = 1;- Returns:
- This builder for chaining.
-
hasBackupWindow
public boolean hasBackupWindow()
The length of the time window during which a backup can be taken. If a backup does not succeed within this time window, it will be canceled and considered failed. The backup window must be at least 5 minutes long. There is no upper bound on the window. If not set, it defaults to 1 hour.
.google.protobuf.Duration backup_window = 3;- Specified by:
hasBackupWindowin interfaceAutomatedBackupPolicyOrBuilder- Returns:
- Whether the backupWindow field is set.
-
getBackupWindow
public com.google.protobuf.Duration getBackupWindow()
The length of the time window during which a backup can be taken. If a backup does not succeed within this time window, it will be canceled and considered failed. The backup window must be at least 5 minutes long. There is no upper bound on the window. If not set, it defaults to 1 hour.
.google.protobuf.Duration backup_window = 3;- Specified by:
getBackupWindowin interfaceAutomatedBackupPolicyOrBuilder- Returns:
- The backupWindow.
-
setBackupWindow
public AutomatedBackupPolicy.Builder setBackupWindow(com.google.protobuf.Duration value)
The length of the time window during which a backup can be taken. If a backup does not succeed within this time window, it will be canceled and considered failed. The backup window must be at least 5 minutes long. There is no upper bound on the window. If not set, it defaults to 1 hour.
.google.protobuf.Duration backup_window = 3;
-
setBackupWindow
public AutomatedBackupPolicy.Builder setBackupWindow(com.google.protobuf.Duration.Builder builderForValue)
The length of the time window during which a backup can be taken. If a backup does not succeed within this time window, it will be canceled and considered failed. The backup window must be at least 5 minutes long. There is no upper bound on the window. If not set, it defaults to 1 hour.
.google.protobuf.Duration backup_window = 3;
-
mergeBackupWindow
public AutomatedBackupPolicy.Builder mergeBackupWindow(com.google.protobuf.Duration value)
The length of the time window during which a backup can be taken. If a backup does not succeed within this time window, it will be canceled and considered failed. The backup window must be at least 5 minutes long. There is no upper bound on the window. If not set, it defaults to 1 hour.
.google.protobuf.Duration backup_window = 3;
-
clearBackupWindow
public AutomatedBackupPolicy.Builder clearBackupWindow()
The length of the time window during which a backup can be taken. If a backup does not succeed within this time window, it will be canceled and considered failed. The backup window must be at least 5 minutes long. There is no upper bound on the window. If not set, it defaults to 1 hour.
.google.protobuf.Duration backup_window = 3;
-
getBackupWindowBuilder
public com.google.protobuf.Duration.Builder getBackupWindowBuilder()
The length of the time window during which a backup can be taken. If a backup does not succeed within this time window, it will be canceled and considered failed. The backup window must be at least 5 minutes long. There is no upper bound on the window. If not set, it defaults to 1 hour.
.google.protobuf.Duration backup_window = 3;
-
getBackupWindowOrBuilder
public com.google.protobuf.DurationOrBuilder getBackupWindowOrBuilder()
The length of the time window during which a backup can be taken. If a backup does not succeed within this time window, it will be canceled and considered failed. The backup window must be at least 5 minutes long. There is no upper bound on the window. If not set, it defaults to 1 hour.
.google.protobuf.Duration backup_window = 3;- Specified by:
getBackupWindowOrBuilderin interfaceAutomatedBackupPolicyOrBuilder
-
hasEncryptionConfig
public boolean hasEncryptionConfig()
Optional. 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 = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasEncryptionConfigin interfaceAutomatedBackupPolicyOrBuilder- Returns:
- Whether the encryptionConfig field is set.
-
getEncryptionConfig
public EncryptionConfig getEncryptionConfig()
Optional. 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 = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEncryptionConfigin interfaceAutomatedBackupPolicyOrBuilder- Returns:
- The encryptionConfig.
-
setEncryptionConfig
public AutomatedBackupPolicy.Builder setEncryptionConfig(EncryptionConfig value)
Optional. 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 = 8 [(.google.api.field_behavior) = OPTIONAL];
-
setEncryptionConfig
public AutomatedBackupPolicy.Builder setEncryptionConfig(EncryptionConfig.Builder builderForValue)
Optional. 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 = 8 [(.google.api.field_behavior) = OPTIONAL];
-
mergeEncryptionConfig
public AutomatedBackupPolicy.Builder mergeEncryptionConfig(EncryptionConfig value)
Optional. 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 = 8 [(.google.api.field_behavior) = OPTIONAL];
-
clearEncryptionConfig
public AutomatedBackupPolicy.Builder clearEncryptionConfig()
Optional. 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 = 8 [(.google.api.field_behavior) = OPTIONAL];
-
getEncryptionConfigBuilder
public EncryptionConfig.Builder getEncryptionConfigBuilder()
Optional. 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 = 8 [(.google.api.field_behavior) = OPTIONAL];
-
getEncryptionConfigOrBuilder
public EncryptionConfigOrBuilder getEncryptionConfigOrBuilder()
Optional. 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 = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEncryptionConfigOrBuilderin interfaceAutomatedBackupPolicyOrBuilder
-
getLocation
public String getLocation()
The location where the backup will be stored. Currently, the only supported option is to store the backup in the same region as the cluster. If empty, defaults to the region of the cluster.
string location = 6;- Specified by:
getLocationin interfaceAutomatedBackupPolicyOrBuilder- Returns:
- The location.
-
getLocationBytes
public com.google.protobuf.ByteString getLocationBytes()
The location where the backup will be stored. Currently, the only supported option is to store the backup in the same region as the cluster. If empty, defaults to the region of the cluster.
string location = 6;- Specified by:
getLocationBytesin interfaceAutomatedBackupPolicyOrBuilder- Returns:
- The bytes for location.
-
setLocation
public AutomatedBackupPolicy.Builder setLocation(String value)
The location where the backup will be stored. Currently, the only supported option is to store the backup in the same region as the cluster. If empty, defaults to the region of the cluster.
string location = 6;- Parameters:
value- The location to set.- Returns:
- This builder for chaining.
-
clearLocation
public AutomatedBackupPolicy.Builder clearLocation()
The location where the backup will be stored. Currently, the only supported option is to store the backup in the same region as the cluster. If empty, defaults to the region of the cluster.
string location = 6;- Returns:
- This builder for chaining.
-
setLocationBytes
public AutomatedBackupPolicy.Builder setLocationBytes(com.google.protobuf.ByteString value)
The location where the backup will be stored. Currently, the only supported option is to store the backup in the same region as the cluster. If empty, defaults to the region of the cluster.
string location = 6;- Parameters:
value- The bytes for location to set.- Returns:
- This builder for chaining.
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:AutomatedBackupPolicyOrBuilderLabels to apply to backups created using this configuration.
map<string, string> labels = 7;- Specified by:
getLabelsCountin interfaceAutomatedBackupPolicyOrBuilder
-
containsLabels
public boolean containsLabels(String key)
Labels to apply to backups created using this configuration.
map<string, string> labels = 7;- Specified by:
containsLabelsin interfaceAutomatedBackupPolicyOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceAutomatedBackupPolicyOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
Labels to apply to backups created using this configuration.
map<string, string> labels = 7;- Specified by:
getLabelsMapin interfaceAutomatedBackupPolicyOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
Labels to apply to backups created using this configuration.
map<string, string> labels = 7;- Specified by:
getLabelsOrDefaultin interfaceAutomatedBackupPolicyOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
Labels to apply to backups created using this configuration.
map<string, string> labels = 7;- Specified by:
getLabelsOrThrowin interfaceAutomatedBackupPolicyOrBuilder
-
clearLabels
public AutomatedBackupPolicy.Builder clearLabels()
-
removeLabels
public AutomatedBackupPolicy.Builder removeLabels(String key)
Labels to apply to backups created using this configuration.
map<string, string> labels = 7;
-
getMutableLabels
@Deprecated public Map<String,String> getMutableLabels()
Deprecated.Use alternate mutation accessors instead.
-
putLabels
public AutomatedBackupPolicy.Builder putLabels(String key, String value)
Labels to apply to backups created using this configuration.
map<string, string> labels = 7;
-
putAllLabels
public AutomatedBackupPolicy.Builder putAllLabels(Map<String,String> values)
Labels to apply to backups created using this configuration.
map<string, string> labels = 7;
-
setUnknownFields
public final AutomatedBackupPolicy.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.Builder>
-
mergeUnknownFields
public final AutomatedBackupPolicy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.Builder>
-
-