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.GeneratedMessage.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.GeneratedMessage.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.v1beta.AutomatedBackupPolicy-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The length of the time window during which a backup can be taken.Whether automated automated backups are enabled.Optional.The location where the backup will be stored.Quantity-based Backup retention policy to retain recent backups.Time-based Backup retention policy.Weekly schedule for the Backup.booleancontainsLabels(String key) Labels to apply to backups created using this configuration.com.google.protobuf.DurationThe length of the time window during which a backup can be taken.com.google.protobuf.Duration.BuilderThe length of the time window during which a backup can be taken.com.google.protobuf.DurationOrBuilderThe length of the time window during which a backup can be taken.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorbooleanWhether automated automated backups are enabled.Optional.Optional.Optional.Deprecated.intLabels to apply to backups created using this configuration.Labels to apply to backups created using this configuration.getLabelsOrDefault(String key, String defaultValue) Labels to apply to backups created using this configuration.getLabelsOrThrow(String key) Labels to apply to backups created using this configuration.The location where the backup will be stored.com.google.protobuf.ByteStringThe location where the backup will be stored.Deprecated.Quantity-based Backup retention policy to retain recent backups.Quantity-based Backup retention policy to retain recent backups.Quantity-based Backup retention policy to retain recent backups.Time-based Backup retention policy.Time-based Backup retention policy.Time-based Backup retention policy.Weekly schedule for the Backup.Weekly schedule for the Backup.Weekly schedule for the Backup.booleanThe length of the time window during which a backup can be taken.booleanWhether automated automated backups are enabled.booleanOptional.booleanQuantity-based Backup retention policy to retain recent backups.booleanTime-based Backup retention policy.booleanWeekly schedule for the Backup.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeBackupWindow(com.google.protobuf.Duration value) The length of the time window during which a backup can be taken.Optional.mergeFrom(AutomatedBackupPolicy other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Quantity-based Backup retention policy to retain recent backups.Time-based Backup retention policy.Weekly schedule for the Backup.putAllLabels(Map<String, String> values) Labels to apply to backups created using this configuration.Labels to apply to backups created using this configuration.removeLabels(String key) Labels to apply to backups created using this configuration.setBackupWindow(com.google.protobuf.Duration value) The length of the time window during which a backup can be taken.setBackupWindow(com.google.protobuf.Duration.Builder builderForValue) The length of the time window during which a backup can be taken.setEnabled(boolean value) Whether automated automated backups are enabled.Optional.setEncryptionConfig(EncryptionConfig.Builder builderForValue) Optional.setLocation(String value) The location where the backup will be stored.setLocationBytes(com.google.protobuf.ByteString value) The location where the backup will be stored.Quantity-based Backup retention policy to retain recent backups.Quantity-based Backup retention policy to retain recent backups.Time-based Backup retention policy.setTimeBasedRetention(AutomatedBackupPolicy.TimeBasedRetention.Builder builderForValue) Time-based Backup retention policy.Weekly schedule for the Backup.setWeeklySchedule(AutomatedBackupPolicy.WeeklySchedule.Builder builderForValue) Weekly schedule for the Backup.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<AutomatedBackupPolicy.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<AutomatedBackupPolicy.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<AutomatedBackupPolicy.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<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.GeneratedMessage.Builder<AutomatedBackupPolicy.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AutomatedBackupPolicy.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.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
- Specified by:
getScheduleCasein interfaceAutomatedBackupPolicyOrBuilder
-
clearSchedule
-
getRetentionCase
- Specified by:
getRetentionCasein interfaceAutomatedBackupPolicyOrBuilder
-
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
Weekly schedule for the Backup.
.google.cloud.alloydb.v1beta.AutomatedBackupPolicy.WeeklySchedule weekly_schedule = 2;- Specified by:
getWeeklySchedulein interfaceAutomatedBackupPolicyOrBuilder- Returns:
- The weeklySchedule.
-
setWeeklySchedule
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
Weekly schedule for the Backup.
.google.cloud.alloydb.v1beta.AutomatedBackupPolicy.WeeklySchedule weekly_schedule = 2; -
getWeeklyScheduleBuilder
Weekly schedule for the Backup.
.google.cloud.alloydb.v1beta.AutomatedBackupPolicy.WeeklySchedule weekly_schedule = 2; -
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
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
Time-based Backup retention policy.
.google.cloud.alloydb.v1beta.AutomatedBackupPolicy.TimeBasedRetention time_based_retention = 4; -
getTimeBasedRetentionBuilder
Time-based Backup retention policy.
.google.cloud.alloydb.v1beta.AutomatedBackupPolicy.TimeBasedRetention time_based_retention = 4; -
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
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
Quantity-based Backup retention policy to retain recent backups.
.google.cloud.alloydb.v1beta.AutomatedBackupPolicy.QuantityBasedRetention quantity_based_retention = 5; -
getQuantityBasedRetentionBuilder
Quantity-based Backup retention policy to retain recent backups.
.google.cloud.alloydb.v1beta.AutomatedBackupPolicy.QuantityBasedRetention quantity_based_retention = 5; -
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
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
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
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
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
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 use the cluster's encryption config.
.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
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.v1beta.EncryptionConfig encryption_config = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEncryptionConfigin interfaceAutomatedBackupPolicyOrBuilder- Returns:
- The encryptionConfig.
-
setEncryptionConfig
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.v1beta.EncryptionConfig encryption_config = 8 [(.google.api.field_behavior) = OPTIONAL]; -
setEncryptionConfig
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.v1beta.EncryptionConfig encryption_config = 8 [(.google.api.field_behavior) = OPTIONAL]; -
mergeEncryptionConfig
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.v1beta.EncryptionConfig encryption_config = 8 [(.google.api.field_behavior) = OPTIONAL]; -
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.v1beta.EncryptionConfig encryption_config = 8 [(.google.api.field_behavior) = OPTIONAL]; -
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.v1beta.EncryptionConfig encryption_config = 8 [(.google.api.field_behavior) = OPTIONAL]; -
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.v1beta.EncryptionConfig encryption_config = 8 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEncryptionConfigOrBuilderin interfaceAutomatedBackupPolicyOrBuilder
-
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
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
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
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
Labels to apply to backups created using this configuration.
map<string, string> labels = 7;- Specified by:
containsLabelsin interfaceAutomatedBackupPolicyOrBuilder
-
getLabels
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceAutomatedBackupPolicyOrBuilder
-
getLabelsMap
Labels to apply to backups created using this configuration.
map<string, string> labels = 7;- Specified by:
getLabelsMapin interfaceAutomatedBackupPolicyOrBuilder
-
getLabelsOrDefault
Labels to apply to backups created using this configuration.
map<string, string> labels = 7;- Specified by:
getLabelsOrDefaultin interfaceAutomatedBackupPolicyOrBuilder
-
getLabelsOrThrow
Labels to apply to backups created using this configuration.
map<string, string> labels = 7;- Specified by:
getLabelsOrThrowin interfaceAutomatedBackupPolicyOrBuilder
-
clearLabels
-
removeLabels
Labels to apply to backups created using this configuration.
map<string, string> labels = 7; -
getMutableLabels
Deprecated.Use alternate mutation accessors instead. -
putLabels
Labels to apply to backups created using this configuration.
map<string, string> labels = 7; -
putAllLabels
Labels to apply to backups created using this configuration.
map<string, string> labels = 7;
-