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 type
google.cloud.alloydb.v1.AutomatedBackupPolicy| Modifier and Type | Method and 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.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMutableMapFieldReflection(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.Builder builderForValue)
The length of the time window during which a backup can be
taken.
|
AutomatedBackupPolicy.Builder |
setBackupWindow(com.google.protobuf.Duration value)
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.Builder builderForValue)
Optional.
|
AutomatedBackupPolicy.Builder |
setEncryptionConfig(EncryptionConfig value)
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.Builder builderForValue)
Quantity-based Backup retention policy to retain recent backups.
|
AutomatedBackupPolicy.Builder |
setQuantityBasedRetention(AutomatedBackupPolicy.QuantityBasedRetention value)
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.Builder builderForValue)
Time-based Backup retention policy.
|
AutomatedBackupPolicy.Builder |
setTimeBasedRetention(AutomatedBackupPolicy.TimeBasedRetention value)
Time-based Backup retention policy.
|
AutomatedBackupPolicy.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
AutomatedBackupPolicy.Builder |
setWeeklySchedule(AutomatedBackupPolicy.WeeklySchedule.Builder builderForValue)
Weekly schedule for the Backup.
|
AutomatedBackupPolicy.Builder |
setWeeklySchedule(AutomatedBackupPolicy.WeeklySchedule value)
Weekly schedule for the Backup.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.Builder>protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.Builder>protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.Builder>public AutomatedBackupPolicy.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.Builder>public AutomatedBackupPolicy getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic AutomatedBackupPolicy build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic AutomatedBackupPolicy buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic AutomatedBackupPolicy.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.Builder>public AutomatedBackupPolicy.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.Builder>public AutomatedBackupPolicy.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.Builder>public AutomatedBackupPolicy.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.Builder>public AutomatedBackupPolicy.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.Builder>public AutomatedBackupPolicy.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.Builder>public AutomatedBackupPolicy.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AutomatedBackupPolicy.Builder>public AutomatedBackupPolicy.Builder mergeFrom(AutomatedBackupPolicy other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.Builder>public AutomatedBackupPolicy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AutomatedBackupPolicy.Builder>IOExceptionpublic AutomatedBackupPolicy.ScheduleCase getScheduleCase()
getScheduleCase in interface AutomatedBackupPolicyOrBuilderpublic AutomatedBackupPolicy.Builder clearSchedule()
public AutomatedBackupPolicy.RetentionCase getRetentionCase()
getRetentionCase in interface AutomatedBackupPolicyOrBuilderpublic AutomatedBackupPolicy.Builder clearRetention()
public boolean hasWeeklySchedule()
Weekly schedule for the Backup.
.google.cloud.alloydb.v1.AutomatedBackupPolicy.WeeklySchedule weekly_schedule = 2;
hasWeeklySchedule in interface AutomatedBackupPolicyOrBuilderpublic AutomatedBackupPolicy.WeeklySchedule getWeeklySchedule()
Weekly schedule for the Backup.
.google.cloud.alloydb.v1.AutomatedBackupPolicy.WeeklySchedule weekly_schedule = 2;
getWeeklySchedule in interface AutomatedBackupPolicyOrBuilderpublic AutomatedBackupPolicy.Builder setWeeklySchedule(AutomatedBackupPolicy.WeeklySchedule value)
Weekly schedule for the Backup.
.google.cloud.alloydb.v1.AutomatedBackupPolicy.WeeklySchedule weekly_schedule = 2;
public AutomatedBackupPolicy.Builder setWeeklySchedule(AutomatedBackupPolicy.WeeklySchedule.Builder builderForValue)
Weekly schedule for the Backup.
.google.cloud.alloydb.v1.AutomatedBackupPolicy.WeeklySchedule weekly_schedule = 2;
public AutomatedBackupPolicy.Builder mergeWeeklySchedule(AutomatedBackupPolicy.WeeklySchedule value)
Weekly schedule for the Backup.
.google.cloud.alloydb.v1.AutomatedBackupPolicy.WeeklySchedule weekly_schedule = 2;
public AutomatedBackupPolicy.Builder clearWeeklySchedule()
Weekly schedule for the Backup.
.google.cloud.alloydb.v1.AutomatedBackupPolicy.WeeklySchedule weekly_schedule = 2;
public AutomatedBackupPolicy.WeeklySchedule.Builder getWeeklyScheduleBuilder()
Weekly schedule for the Backup.
.google.cloud.alloydb.v1.AutomatedBackupPolicy.WeeklySchedule weekly_schedule = 2;
public AutomatedBackupPolicy.WeeklyScheduleOrBuilder getWeeklyScheduleOrBuilder()
Weekly schedule for the Backup.
.google.cloud.alloydb.v1.AutomatedBackupPolicy.WeeklySchedule weekly_schedule = 2;
getWeeklyScheduleOrBuilder in interface AutomatedBackupPolicyOrBuilderpublic boolean hasTimeBasedRetention()
Time-based Backup retention policy.
.google.cloud.alloydb.v1.AutomatedBackupPolicy.TimeBasedRetention time_based_retention = 4;
hasTimeBasedRetention in interface AutomatedBackupPolicyOrBuilderpublic AutomatedBackupPolicy.TimeBasedRetention getTimeBasedRetention()
Time-based Backup retention policy.
.google.cloud.alloydb.v1.AutomatedBackupPolicy.TimeBasedRetention time_based_retention = 4;
getTimeBasedRetention in interface AutomatedBackupPolicyOrBuilderpublic AutomatedBackupPolicy.Builder setTimeBasedRetention(AutomatedBackupPolicy.TimeBasedRetention value)
Time-based Backup retention policy.
.google.cloud.alloydb.v1.AutomatedBackupPolicy.TimeBasedRetention time_based_retention = 4;
public AutomatedBackupPolicy.Builder setTimeBasedRetention(AutomatedBackupPolicy.TimeBasedRetention.Builder builderForValue)
Time-based Backup retention policy.
.google.cloud.alloydb.v1.AutomatedBackupPolicy.TimeBasedRetention time_based_retention = 4;
public AutomatedBackupPolicy.Builder mergeTimeBasedRetention(AutomatedBackupPolicy.TimeBasedRetention value)
Time-based Backup retention policy.
.google.cloud.alloydb.v1.AutomatedBackupPolicy.TimeBasedRetention time_based_retention = 4;
public AutomatedBackupPolicy.Builder clearTimeBasedRetention()
Time-based Backup retention policy.
.google.cloud.alloydb.v1.AutomatedBackupPolicy.TimeBasedRetention time_based_retention = 4;
public AutomatedBackupPolicy.TimeBasedRetention.Builder getTimeBasedRetentionBuilder()
Time-based Backup retention policy.
.google.cloud.alloydb.v1.AutomatedBackupPolicy.TimeBasedRetention time_based_retention = 4;
public AutomatedBackupPolicy.TimeBasedRetentionOrBuilder getTimeBasedRetentionOrBuilder()
Time-based Backup retention policy.
.google.cloud.alloydb.v1.AutomatedBackupPolicy.TimeBasedRetention time_based_retention = 4;
getTimeBasedRetentionOrBuilder in interface AutomatedBackupPolicyOrBuilderpublic boolean hasQuantityBasedRetention()
Quantity-based Backup retention policy to retain recent backups.
.google.cloud.alloydb.v1.AutomatedBackupPolicy.QuantityBasedRetention quantity_based_retention = 5;
hasQuantityBasedRetention in interface AutomatedBackupPolicyOrBuilderpublic AutomatedBackupPolicy.QuantityBasedRetention getQuantityBasedRetention()
Quantity-based Backup retention policy to retain recent backups.
.google.cloud.alloydb.v1.AutomatedBackupPolicy.QuantityBasedRetention quantity_based_retention = 5;
getQuantityBasedRetention in interface AutomatedBackupPolicyOrBuilderpublic AutomatedBackupPolicy.Builder setQuantityBasedRetention(AutomatedBackupPolicy.QuantityBasedRetention value)
Quantity-based Backup retention policy to retain recent backups.
.google.cloud.alloydb.v1.AutomatedBackupPolicy.QuantityBasedRetention quantity_based_retention = 5;
public AutomatedBackupPolicy.Builder setQuantityBasedRetention(AutomatedBackupPolicy.QuantityBasedRetention.Builder builderForValue)
Quantity-based Backup retention policy to retain recent backups.
.google.cloud.alloydb.v1.AutomatedBackupPolicy.QuantityBasedRetention quantity_based_retention = 5;
public AutomatedBackupPolicy.Builder mergeQuantityBasedRetention(AutomatedBackupPolicy.QuantityBasedRetention value)
Quantity-based Backup retention policy to retain recent backups.
.google.cloud.alloydb.v1.AutomatedBackupPolicy.QuantityBasedRetention quantity_based_retention = 5;
public AutomatedBackupPolicy.Builder clearQuantityBasedRetention()
Quantity-based Backup retention policy to retain recent backups.
.google.cloud.alloydb.v1.AutomatedBackupPolicy.QuantityBasedRetention quantity_based_retention = 5;
public AutomatedBackupPolicy.QuantityBasedRetention.Builder getQuantityBasedRetentionBuilder()
Quantity-based Backup retention policy to retain recent backups.
.google.cloud.alloydb.v1.AutomatedBackupPolicy.QuantityBasedRetention quantity_based_retention = 5;
public AutomatedBackupPolicy.QuantityBasedRetentionOrBuilder getQuantityBasedRetentionOrBuilder()
Quantity-based Backup retention policy to retain recent backups.
.google.cloud.alloydb.v1.AutomatedBackupPolicy.QuantityBasedRetention quantity_based_retention = 5;
getQuantityBasedRetentionOrBuilder in interface AutomatedBackupPolicyOrBuilderpublic boolean hasEnabled()
Whether automated automated backups are enabled. If not set, defaults to true.
optional bool enabled = 1;hasEnabled in interface AutomatedBackupPolicyOrBuilderpublic boolean getEnabled()
Whether automated automated backups are enabled. If not set, defaults to true.
optional bool enabled = 1;getEnabled in interface AutomatedBackupPolicyOrBuilderpublic AutomatedBackupPolicy.Builder setEnabled(boolean value)
Whether automated automated backups are enabled. If not set, defaults to true.
optional bool enabled = 1;value - The enabled to set.public AutomatedBackupPolicy.Builder clearEnabled()
Whether automated automated backups are enabled. If not set, defaults to true.
optional bool enabled = 1;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;hasBackupWindow in interface AutomatedBackupPolicyOrBuilderpublic 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;getBackupWindow in interface AutomatedBackupPolicyOrBuilderpublic 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;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;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;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;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;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;getBackupWindowOrBuilder in interface AutomatedBackupPolicyOrBuilderpublic 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 use the cluster's encryption config.
.google.cloud.alloydb.v1.EncryptionConfig encryption_config = 8 [(.google.api.field_behavior) = OPTIONAL];
hasEncryptionConfig in interface AutomatedBackupPolicyOrBuilderpublic 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 use the cluster's encryption config.
.google.cloud.alloydb.v1.EncryptionConfig encryption_config = 8 [(.google.api.field_behavior) = OPTIONAL];
getEncryptionConfig in interface AutomatedBackupPolicyOrBuilderpublic 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 use the cluster's encryption config.
.google.cloud.alloydb.v1.EncryptionConfig encryption_config = 8 [(.google.api.field_behavior) = OPTIONAL];
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 use the cluster's encryption config.
.google.cloud.alloydb.v1.EncryptionConfig encryption_config = 8 [(.google.api.field_behavior) = OPTIONAL];
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 use the cluster's encryption config.
.google.cloud.alloydb.v1.EncryptionConfig encryption_config = 8 [(.google.api.field_behavior) = OPTIONAL];
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 use the cluster's encryption config.
.google.cloud.alloydb.v1.EncryptionConfig encryption_config = 8 [(.google.api.field_behavior) = OPTIONAL];
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 use the cluster's encryption config.
.google.cloud.alloydb.v1.EncryptionConfig encryption_config = 8 [(.google.api.field_behavior) = OPTIONAL];
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 use the cluster's encryption config.
.google.cloud.alloydb.v1.EncryptionConfig encryption_config = 8 [(.google.api.field_behavior) = OPTIONAL];
getEncryptionConfigOrBuilder in interface AutomatedBackupPolicyOrBuilderpublic 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;getLocation in interface AutomatedBackupPolicyOrBuilderpublic 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;getLocationBytes in interface AutomatedBackupPolicyOrBuilderpublic 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;value - The location to set.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;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;value - The bytes for location to set.public int getLabelsCount()
AutomatedBackupPolicyOrBuilderLabels to apply to backups created using this configuration.
map<string, string> labels = 7;getLabelsCount in interface AutomatedBackupPolicyOrBuilderpublic boolean containsLabels(String key)
Labels to apply to backups created using this configuration.
map<string, string> labels = 7;containsLabels in interface AutomatedBackupPolicyOrBuilder@Deprecated public Map<String,String> getLabels()
getLabelsMap() instead.getLabels in interface AutomatedBackupPolicyOrBuilderpublic Map<String,String> getLabelsMap()
Labels to apply to backups created using this configuration.
map<string, string> labels = 7;getLabelsMap in interface AutomatedBackupPolicyOrBuilderpublic String getLabelsOrDefault(String key, String defaultValue)
Labels to apply to backups created using this configuration.
map<string, string> labels = 7;getLabelsOrDefault in interface AutomatedBackupPolicyOrBuilderpublic String getLabelsOrThrow(String key)
Labels to apply to backups created using this configuration.
map<string, string> labels = 7;getLabelsOrThrow in interface AutomatedBackupPolicyOrBuilderpublic AutomatedBackupPolicy.Builder clearLabels()
public AutomatedBackupPolicy.Builder removeLabels(String key)
Labels to apply to backups created using this configuration.
map<string, string> labels = 7;@Deprecated public Map<String,String> getMutableLabels()
public AutomatedBackupPolicy.Builder putLabels(String key, String value)
Labels to apply to backups created using this configuration.
map<string, string> labels = 7;public AutomatedBackupPolicy.Builder putAllLabels(Map<String,String> values)
Labels to apply to backups created using this configuration.
map<string, string> labels = 7;public final AutomatedBackupPolicy.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.Builder>public final AutomatedBackupPolicy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AutomatedBackupPolicy.Builder>Copyright © 2025 Google LLC. All rights reserved.