Package com.google.cloud.alloydb.v1alpha
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.v1alpha.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.v1alpha.AutomatedBackupPolicy
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AutomatedBackupPolicy.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
AutomatedBackupPolicy
build()
AutomatedBackupPolicy
buildPartial()
AutomatedBackupPolicy.Builder
clear()
AutomatedBackupPolicy.Builder
clearBackupWindow()
The length of the time window during which a backup can be taken.AutomatedBackupPolicy.Builder
clearEnabled()
Whether automated automated backups are enabled.AutomatedBackupPolicy.Builder
clearEncryptionConfig()
Optional.AutomatedBackupPolicy.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
AutomatedBackupPolicy.Builder
clearLabels()
AutomatedBackupPolicy.Builder
clearLocation()
The location where the backup will be stored.AutomatedBackupPolicy.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
AutomatedBackupPolicy.Builder
clearQuantityBasedRetention()
Quantity-based Backup retention policy to retain recent backups.AutomatedBackupPolicy.Builder
clearRetention()
AutomatedBackupPolicy.Builder
clearSchedule()
AutomatedBackupPolicy.Builder
clearTimeBasedRetention()
Time-based Backup retention policy.AutomatedBackupPolicy.Builder
clearWeeklySchedule()
Weekly schedule for the Backup.AutomatedBackupPolicy.Builder
clone()
boolean
containsLabels(String key)
Labels to apply to backups created using this configuration.com.google.protobuf.Duration
getBackupWindow()
The length of the time window during which a backup can be taken.com.google.protobuf.Duration.Builder
getBackupWindowBuilder()
The length of the time window during which a backup can be taken.com.google.protobuf.DurationOrBuilder
getBackupWindowOrBuilder()
The length of the time window during which a backup can be taken.AutomatedBackupPolicy
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
boolean
getEnabled()
Whether automated automated backups are enabled.EncryptionConfig
getEncryptionConfig()
Optional.EncryptionConfig.Builder
getEncryptionConfigBuilder()
Optional.EncryptionConfigOrBuilder
getEncryptionConfigOrBuilder()
Optional.Map<String,String>
getLabels()
Deprecated.int
getLabelsCount()
Labels to apply to backups created using this configuration.Map<String,String>
getLabelsMap()
Labels to apply to backups created using this configuration.String
getLabelsOrDefault(String key, String defaultValue)
Labels to apply to backups created using this configuration.String
getLabelsOrThrow(String key)
Labels to apply to backups created using this configuration.String
getLocation()
The location where the backup will be stored.com.google.protobuf.ByteString
getLocationBytes()
The location where the backup will be stored.Map<String,String>
getMutableLabels()
Deprecated.AutomatedBackupPolicy.QuantityBasedRetention
getQuantityBasedRetention()
Quantity-based Backup retention policy to retain recent backups.AutomatedBackupPolicy.QuantityBasedRetention.Builder
getQuantityBasedRetentionBuilder()
Quantity-based Backup retention policy to retain recent backups.AutomatedBackupPolicy.QuantityBasedRetentionOrBuilder
getQuantityBasedRetentionOrBuilder()
Quantity-based Backup retention policy to retain recent backups.AutomatedBackupPolicy.RetentionCase
getRetentionCase()
AutomatedBackupPolicy.ScheduleCase
getScheduleCase()
AutomatedBackupPolicy.TimeBasedRetention
getTimeBasedRetention()
Time-based Backup retention policy.AutomatedBackupPolicy.TimeBasedRetention.Builder
getTimeBasedRetentionBuilder()
Time-based Backup retention policy.AutomatedBackupPolicy.TimeBasedRetentionOrBuilder
getTimeBasedRetentionOrBuilder()
Time-based Backup retention policy.AutomatedBackupPolicy.WeeklySchedule
getWeeklySchedule()
Weekly schedule for the Backup.AutomatedBackupPolicy.WeeklySchedule.Builder
getWeeklyScheduleBuilder()
Weekly schedule for the Backup.AutomatedBackupPolicy.WeeklyScheduleOrBuilder
getWeeklyScheduleOrBuilder()
Weekly schedule for the Backup.boolean
hasBackupWindow()
The length of the time window during which a backup can be taken.boolean
hasEnabled()
Whether automated automated backups are enabled.boolean
hasEncryptionConfig()
Optional.boolean
hasQuantityBasedRetention()
Quantity-based Backup retention policy to retain recent backups.boolean
hasTimeBasedRetention()
Time-based Backup retention policy.boolean
hasWeeklySchedule()
Weekly schedule for the Backup.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
protected com.google.protobuf.MapField
internalGetMutableMapField(int number)
boolean
isInitialized()
AutomatedBackupPolicy.Builder
mergeBackupWindow(com.google.protobuf.Duration value)
The length of the time window during which a backup can be taken.AutomatedBackupPolicy.Builder
mergeEncryptionConfig(EncryptionConfig value)
Optional.AutomatedBackupPolicy.Builder
mergeFrom(AutomatedBackupPolicy other)
AutomatedBackupPolicy.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
AutomatedBackupPolicy.Builder
mergeFrom(com.google.protobuf.Message other)
AutomatedBackupPolicy.Builder
mergeQuantityBasedRetention(AutomatedBackupPolicy.QuantityBasedRetention value)
Quantity-based Backup retention policy to retain recent backups.AutomatedBackupPolicy.Builder
mergeTimeBasedRetention(AutomatedBackupPolicy.TimeBasedRetention value)
Time-based Backup retention policy.AutomatedBackupPolicy.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
AutomatedBackupPolicy.Builder
mergeWeeklySchedule(AutomatedBackupPolicy.WeeklySchedule value)
Weekly schedule for the Backup.AutomatedBackupPolicy.Builder
putAllLabels(Map<String,String> values)
Labels to apply to backups created using this configuration.AutomatedBackupPolicy.Builder
putLabels(String key, String value)
Labels to apply to backups created using this configuration.AutomatedBackupPolicy.Builder
removeLabels(String key)
Labels to apply to backups created using this configuration.AutomatedBackupPolicy.Builder
setBackupWindow(com.google.protobuf.Duration value)
The length of the time window during which a backup can be taken.AutomatedBackupPolicy.Builder
setBackupWindow(com.google.protobuf.Duration.Builder builderForValue)
The length of the time window during which a backup can be taken.AutomatedBackupPolicy.Builder
setEnabled(boolean value)
Whether automated automated backups are enabled.AutomatedBackupPolicy.Builder
setEncryptionConfig(EncryptionConfig value)
Optional.AutomatedBackupPolicy.Builder
setEncryptionConfig(EncryptionConfig.Builder builderForValue)
Optional.AutomatedBackupPolicy.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
AutomatedBackupPolicy.Builder
setLocation(String value)
The location where the backup will be stored.AutomatedBackupPolicy.Builder
setLocationBytes(com.google.protobuf.ByteString value)
The location where the backup will be stored.AutomatedBackupPolicy.Builder
setQuantityBasedRetention(AutomatedBackupPolicy.QuantityBasedRetention value)
Quantity-based Backup retention policy to retain recent backups.AutomatedBackupPolicy.Builder
setQuantityBasedRetention(AutomatedBackupPolicy.QuantityBasedRetention.Builder builderForValue)
Quantity-based Backup retention policy to retain recent backups.AutomatedBackupPolicy.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
AutomatedBackupPolicy.Builder
setTimeBasedRetention(AutomatedBackupPolicy.TimeBasedRetention value)
Time-based Backup retention policy.AutomatedBackupPolicy.Builder
setTimeBasedRetention(AutomatedBackupPolicy.TimeBasedRetention.Builder builderForValue)
Time-based Backup retention policy.AutomatedBackupPolicy.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
AutomatedBackupPolicy.Builder
setWeeklySchedule(AutomatedBackupPolicy.WeeklySchedule value)
Weekly schedule for the Backup.AutomatedBackupPolicy.Builder
setWeeklySchedule(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:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.Builder>
-
clear
public AutomatedBackupPolicy.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.Builder>
-
getDefaultInstanceForType
public AutomatedBackupPolicy getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public AutomatedBackupPolicy build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AutomatedBackupPolicy buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AutomatedBackupPolicy.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.Builder>
-
setField
public AutomatedBackupPolicy.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.Builder>
-
clearField
public AutomatedBackupPolicy.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.Builder>
-
clearOneof
public AutomatedBackupPolicy.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.Builder>
-
setRepeatedField
public AutomatedBackupPolicy.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.Builder>
-
addRepeatedField
public AutomatedBackupPolicy.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.Builder>
-
mergeFrom
public AutomatedBackupPolicy.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AutomatedBackupPolicy.Builder>
-
mergeFrom
public AutomatedBackupPolicy.Builder mergeFrom(AutomatedBackupPolicy other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AutomatedBackupPolicy.Builder>
- Throws:
IOException
-
getScheduleCase
public AutomatedBackupPolicy.ScheduleCase getScheduleCase()
- Specified by:
getScheduleCase
in interfaceAutomatedBackupPolicyOrBuilder
-
clearSchedule
public AutomatedBackupPolicy.Builder clearSchedule()
-
getRetentionCase
public AutomatedBackupPolicy.RetentionCase getRetentionCase()
- Specified by:
getRetentionCase
in interfaceAutomatedBackupPolicyOrBuilder
-
clearRetention
public AutomatedBackupPolicy.Builder clearRetention()
-
hasWeeklySchedule
public boolean hasWeeklySchedule()
Weekly schedule for the Backup.
.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy.WeeklySchedule weekly_schedule = 2;
- Specified by:
hasWeeklySchedule
in interfaceAutomatedBackupPolicyOrBuilder
- Returns:
- Whether the weeklySchedule field is set.
-
getWeeklySchedule
public AutomatedBackupPolicy.WeeklySchedule getWeeklySchedule()
Weekly schedule for the Backup.
.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy.WeeklySchedule weekly_schedule = 2;
- Specified by:
getWeeklySchedule
in interfaceAutomatedBackupPolicyOrBuilder
- Returns:
- The weeklySchedule.
-
setWeeklySchedule
public AutomatedBackupPolicy.Builder setWeeklySchedule(AutomatedBackupPolicy.WeeklySchedule value)
Weekly schedule for the Backup.
.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy.WeeklySchedule weekly_schedule = 2;
-
setWeeklySchedule
public AutomatedBackupPolicy.Builder setWeeklySchedule(AutomatedBackupPolicy.WeeklySchedule.Builder builderForValue)
Weekly schedule for the Backup.
.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy.WeeklySchedule weekly_schedule = 2;
-
mergeWeeklySchedule
public AutomatedBackupPolicy.Builder mergeWeeklySchedule(AutomatedBackupPolicy.WeeklySchedule value)
Weekly schedule for the Backup.
.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy.WeeklySchedule weekly_schedule = 2;
-
clearWeeklySchedule
public AutomatedBackupPolicy.Builder clearWeeklySchedule()
Weekly schedule for the Backup.
.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy.WeeklySchedule weekly_schedule = 2;
-
getWeeklyScheduleBuilder
public AutomatedBackupPolicy.WeeklySchedule.Builder getWeeklyScheduleBuilder()
Weekly schedule for the Backup.
.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy.WeeklySchedule weekly_schedule = 2;
-
getWeeklyScheduleOrBuilder
public AutomatedBackupPolicy.WeeklyScheduleOrBuilder getWeeklyScheduleOrBuilder()
Weekly schedule for the Backup.
.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy.WeeklySchedule weekly_schedule = 2;
- Specified by:
getWeeklyScheduleOrBuilder
in interfaceAutomatedBackupPolicyOrBuilder
-
hasTimeBasedRetention
public boolean hasTimeBasedRetention()
Time-based Backup retention policy.
.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy.TimeBasedRetention time_based_retention = 4;
- Specified by:
hasTimeBasedRetention
in interfaceAutomatedBackupPolicyOrBuilder
- Returns:
- Whether the timeBasedRetention field is set.
-
getTimeBasedRetention
public AutomatedBackupPolicy.TimeBasedRetention getTimeBasedRetention()
Time-based Backup retention policy.
.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy.TimeBasedRetention time_based_retention = 4;
- Specified by:
getTimeBasedRetention
in interfaceAutomatedBackupPolicyOrBuilder
- Returns:
- The timeBasedRetention.
-
setTimeBasedRetention
public AutomatedBackupPolicy.Builder setTimeBasedRetention(AutomatedBackupPolicy.TimeBasedRetention value)
Time-based Backup retention policy.
.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy.TimeBasedRetention time_based_retention = 4;
-
setTimeBasedRetention
public AutomatedBackupPolicy.Builder setTimeBasedRetention(AutomatedBackupPolicy.TimeBasedRetention.Builder builderForValue)
Time-based Backup retention policy.
.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy.TimeBasedRetention time_based_retention = 4;
-
mergeTimeBasedRetention
public AutomatedBackupPolicy.Builder mergeTimeBasedRetention(AutomatedBackupPolicy.TimeBasedRetention value)
Time-based Backup retention policy.
.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy.TimeBasedRetention time_based_retention = 4;
-
clearTimeBasedRetention
public AutomatedBackupPolicy.Builder clearTimeBasedRetention()
Time-based Backup retention policy.
.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy.TimeBasedRetention time_based_retention = 4;
-
getTimeBasedRetentionBuilder
public AutomatedBackupPolicy.TimeBasedRetention.Builder getTimeBasedRetentionBuilder()
Time-based Backup retention policy.
.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy.TimeBasedRetention time_based_retention = 4;
-
getTimeBasedRetentionOrBuilder
public AutomatedBackupPolicy.TimeBasedRetentionOrBuilder getTimeBasedRetentionOrBuilder()
Time-based Backup retention policy.
.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy.TimeBasedRetention time_based_retention = 4;
- Specified by:
getTimeBasedRetentionOrBuilder
in interfaceAutomatedBackupPolicyOrBuilder
-
hasQuantityBasedRetention
public boolean hasQuantityBasedRetention()
Quantity-based Backup retention policy to retain recent backups.
.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy.QuantityBasedRetention quantity_based_retention = 5;
- Specified by:
hasQuantityBasedRetention
in 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.v1alpha.AutomatedBackupPolicy.QuantityBasedRetention quantity_based_retention = 5;
- Specified by:
getQuantityBasedRetention
in interfaceAutomatedBackupPolicyOrBuilder
- Returns:
- The quantityBasedRetention.
-
setQuantityBasedRetention
public AutomatedBackupPolicy.Builder setQuantityBasedRetention(AutomatedBackupPolicy.QuantityBasedRetention value)
Quantity-based Backup retention policy to retain recent backups.
.google.cloud.alloydb.v1alpha.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.v1alpha.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.v1alpha.AutomatedBackupPolicy.QuantityBasedRetention quantity_based_retention = 5;
-
clearQuantityBasedRetention
public AutomatedBackupPolicy.Builder clearQuantityBasedRetention()
Quantity-based Backup retention policy to retain recent backups.
.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy.QuantityBasedRetention quantity_based_retention = 5;
-
getQuantityBasedRetentionBuilder
public AutomatedBackupPolicy.QuantityBasedRetention.Builder getQuantityBasedRetentionBuilder()
Quantity-based Backup retention policy to retain recent backups.
.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy.QuantityBasedRetention quantity_based_retention = 5;
-
getQuantityBasedRetentionOrBuilder
public AutomatedBackupPolicy.QuantityBasedRetentionOrBuilder getQuantityBasedRetentionOrBuilder()
Quantity-based Backup retention policy to retain recent backups.
.google.cloud.alloydb.v1alpha.AutomatedBackupPolicy.QuantityBasedRetention quantity_based_retention = 5;
- Specified by:
getQuantityBasedRetentionOrBuilder
in interfaceAutomatedBackupPolicyOrBuilder
-
hasEnabled
public boolean hasEnabled()
Whether automated automated backups are enabled. If not set, defaults to true.
optional bool enabled = 1;
- Specified by:
hasEnabled
in 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:
getEnabled
in 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:
hasBackupWindow
in 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:
getBackupWindow
in 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:
getBackupWindowOrBuilder
in 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.v1alpha.EncryptionConfig encryption_config = 8 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
hasEncryptionConfig
in 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.v1alpha.EncryptionConfig encryption_config = 8 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getEncryptionConfig
in 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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.EncryptionConfig encryption_config = 8 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getEncryptionConfigOrBuilder
in 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:
getLocation
in 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:
getLocationBytes
in 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:AutomatedBackupPolicyOrBuilder
Labels to apply to backups created using this configuration.
map<string, string> labels = 7;
- Specified by:
getLabelsCount
in interfaceAutomatedBackupPolicyOrBuilder
-
containsLabels
public boolean containsLabels(String key)
Labels to apply to backups created using this configuration.
map<string, string> labels = 7;
- Specified by:
containsLabels
in interfaceAutomatedBackupPolicyOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in interfaceAutomatedBackupPolicyOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
Labels to apply to backups created using this configuration.
map<string, string> labels = 7;
- Specified by:
getLabelsMap
in 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:
getLabelsOrDefault
in interfaceAutomatedBackupPolicyOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
Labels to apply to backups created using this configuration.
map<string, string> labels = 7;
- Specified by:
getLabelsOrThrow
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.Builder>
-
mergeUnknownFields
public final AutomatedBackupPolicy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.Builder>
-
-