Class AutomatedBackupPolicy.Builder (0.30.0)

public static final class AutomatedBackupPolicy.Builder extends 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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AutomatedBackupPolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AutomatedBackupPolicy.Builder
Overrides

build()

public AutomatedBackupPolicy build()
Returns
TypeDescription
AutomatedBackupPolicy

buildPartial()

public AutomatedBackupPolicy buildPartial()
Returns
TypeDescription
AutomatedBackupPolicy

clear()

public AutomatedBackupPolicy.Builder clear()
Returns
TypeDescription
AutomatedBackupPolicy.Builder
Overrides

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;

Returns
TypeDescription
AutomatedBackupPolicy.Builder

clearEnabled()

public AutomatedBackupPolicy.Builder clearEnabled()

Whether automated automated backups are enabled. If not set, defaults to true.

optional bool enabled = 1;

Returns
TypeDescription
AutomatedBackupPolicy.Builder

This builder for chaining.

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.v1.EncryptionConfig encryption_config = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
AutomatedBackupPolicy.Builder

clearField(Descriptors.FieldDescriptor field)

public AutomatedBackupPolicy.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AutomatedBackupPolicy.Builder
Overrides

clearLabels()

public AutomatedBackupPolicy.Builder clearLabels()
Returns
TypeDescription
AutomatedBackupPolicy.Builder

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
TypeDescription
AutomatedBackupPolicy.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AutomatedBackupPolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AutomatedBackupPolicy.Builder
Overrides

clearQuantityBasedRetention()

public AutomatedBackupPolicy.Builder clearQuantityBasedRetention()

Quantity-based Backup retention policy to retain recent backups.

.google.cloud.alloydb.v1.AutomatedBackupPolicy.QuantityBasedRetention quantity_based_retention = 5;

Returns
TypeDescription
AutomatedBackupPolicy.Builder

clearRetention()

public AutomatedBackupPolicy.Builder clearRetention()
Returns
TypeDescription
AutomatedBackupPolicy.Builder

clearSchedule()

public AutomatedBackupPolicy.Builder clearSchedule()
Returns
TypeDescription
AutomatedBackupPolicy.Builder

clearTimeBasedRetention()

public AutomatedBackupPolicy.Builder clearTimeBasedRetention()

Time-based Backup retention policy.

.google.cloud.alloydb.v1.AutomatedBackupPolicy.TimeBasedRetention time_based_retention = 4;

Returns
TypeDescription
AutomatedBackupPolicy.Builder

clearWeeklySchedule()

public AutomatedBackupPolicy.Builder clearWeeklySchedule()

Weekly schedule for the Backup.

.google.cloud.alloydb.v1.AutomatedBackupPolicy.WeeklySchedule weekly_schedule = 2;

Returns
TypeDescription
AutomatedBackupPolicy.Builder

clone()

public AutomatedBackupPolicy.Builder clone()
Returns
TypeDescription
AutomatedBackupPolicy.Builder
Overrides

containsLabels(String key)

public boolean containsLabels(String key)

Labels to apply to backups created using this configuration.

map<string, string> labels = 7;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getBackupWindow()

public 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;

Returns
TypeDescription
Duration

The backupWindow.

getBackupWindowBuilder()

public 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;

Returns
TypeDescription
Builder

getBackupWindowOrBuilder()

public 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;

Returns
TypeDescription
DurationOrBuilder

getDefaultInstanceForType()

public AutomatedBackupPolicy getDefaultInstanceForType()
Returns
TypeDescription
AutomatedBackupPolicy

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEnabled()

public boolean getEnabled()

Whether automated automated backups are enabled. If not set, defaults to true.

optional bool enabled = 1;

Returns
TypeDescription
boolean

The enabled.

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.v1.EncryptionConfig encryption_config = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
EncryptionConfig

The encryptionConfig.

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.v1.EncryptionConfig encryption_config = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
EncryptionConfig.Builder

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.v1.EncryptionConfig encryption_config = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
EncryptionConfigOrBuilder

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Labels to apply to backups created using this configuration.

map<string, string> labels = 7;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Labels to apply to backups created using this configuration.

map<string, string> labels = 7;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Labels to apply to backups created using this configuration.

map<string, string> labels = 7;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Labels to apply to backups created using this configuration.

map<string, string> labels = 7;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

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;

Returns
TypeDescription
String

The location.

getLocationBytes()

public 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;

Returns
TypeDescription
ByteString

The bytes for location.

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getQuantityBasedRetention()

public AutomatedBackupPolicy.QuantityBasedRetention getQuantityBasedRetention()

Quantity-based Backup retention policy to retain recent backups.

.google.cloud.alloydb.v1.AutomatedBackupPolicy.QuantityBasedRetention quantity_based_retention = 5;

Returns
TypeDescription
AutomatedBackupPolicy.QuantityBasedRetention

The quantityBasedRetention.

getQuantityBasedRetentionBuilder()

public AutomatedBackupPolicy.QuantityBasedRetention.Builder getQuantityBasedRetentionBuilder()

Quantity-based Backup retention policy to retain recent backups.

.google.cloud.alloydb.v1.AutomatedBackupPolicy.QuantityBasedRetention quantity_based_retention = 5;

Returns
TypeDescription
AutomatedBackupPolicy.QuantityBasedRetention.Builder

getQuantityBasedRetentionOrBuilder()

public AutomatedBackupPolicy.QuantityBasedRetentionOrBuilder getQuantityBasedRetentionOrBuilder()

Quantity-based Backup retention policy to retain recent backups.

.google.cloud.alloydb.v1.AutomatedBackupPolicy.QuantityBasedRetention quantity_based_retention = 5;

Returns
TypeDescription
AutomatedBackupPolicy.QuantityBasedRetentionOrBuilder

getRetentionCase()

public AutomatedBackupPolicy.RetentionCase getRetentionCase()
Returns
TypeDescription
AutomatedBackupPolicy.RetentionCase

getScheduleCase()

public AutomatedBackupPolicy.ScheduleCase getScheduleCase()
Returns
TypeDescription
AutomatedBackupPolicy.ScheduleCase

getTimeBasedRetention()

public AutomatedBackupPolicy.TimeBasedRetention getTimeBasedRetention()

Time-based Backup retention policy.

.google.cloud.alloydb.v1.AutomatedBackupPolicy.TimeBasedRetention time_based_retention = 4;

Returns
TypeDescription
AutomatedBackupPolicy.TimeBasedRetention

The timeBasedRetention.

getTimeBasedRetentionBuilder()

public AutomatedBackupPolicy.TimeBasedRetention.Builder getTimeBasedRetentionBuilder()

Time-based Backup retention policy.

.google.cloud.alloydb.v1.AutomatedBackupPolicy.TimeBasedRetention time_based_retention = 4;

Returns
TypeDescription
AutomatedBackupPolicy.TimeBasedRetention.Builder

getTimeBasedRetentionOrBuilder()

public AutomatedBackupPolicy.TimeBasedRetentionOrBuilder getTimeBasedRetentionOrBuilder()

Time-based Backup retention policy.

.google.cloud.alloydb.v1.AutomatedBackupPolicy.TimeBasedRetention time_based_retention = 4;

Returns
TypeDescription
AutomatedBackupPolicy.TimeBasedRetentionOrBuilder

getWeeklySchedule()

public AutomatedBackupPolicy.WeeklySchedule getWeeklySchedule()

Weekly schedule for the Backup.

.google.cloud.alloydb.v1.AutomatedBackupPolicy.WeeklySchedule weekly_schedule = 2;

Returns
TypeDescription
AutomatedBackupPolicy.WeeklySchedule

The weeklySchedule.

getWeeklyScheduleBuilder()

public AutomatedBackupPolicy.WeeklySchedule.Builder getWeeklyScheduleBuilder()

Weekly schedule for the Backup.

.google.cloud.alloydb.v1.AutomatedBackupPolicy.WeeklySchedule weekly_schedule = 2;

Returns
TypeDescription
AutomatedBackupPolicy.WeeklySchedule.Builder

getWeeklyScheduleOrBuilder()

public AutomatedBackupPolicy.WeeklyScheduleOrBuilder getWeeklyScheduleOrBuilder()

Weekly schedule for the Backup.

.google.cloud.alloydb.v1.AutomatedBackupPolicy.WeeklySchedule weekly_schedule = 2;

Returns
TypeDescription
AutomatedBackupPolicy.WeeklyScheduleOrBuilder

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;

Returns
TypeDescription
boolean

Whether the backupWindow field is set.

hasEnabled()

public boolean hasEnabled()

Whether automated automated backups are enabled. If not set, defaults to true.

optional bool enabled = 1;

Returns
TypeDescription
boolean

Whether the enabled field is set.

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.v1.EncryptionConfig encryption_config = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the encryptionConfig field is set.

hasQuantityBasedRetention()

public boolean hasQuantityBasedRetention()

Quantity-based Backup retention policy to retain recent backups.

.google.cloud.alloydb.v1.AutomatedBackupPolicy.QuantityBasedRetention quantity_based_retention = 5;

Returns
TypeDescription
boolean

Whether the quantityBasedRetention field is set.

hasTimeBasedRetention()

public boolean hasTimeBasedRetention()

Time-based Backup retention policy.

.google.cloud.alloydb.v1.AutomatedBackupPolicy.TimeBasedRetention time_based_retention = 4;

Returns
TypeDescription
boolean

Whether the timeBasedRetention field is set.

hasWeeklySchedule()

public boolean hasWeeklySchedule()

Weekly schedule for the Backup.

.google.cloud.alloydb.v1.AutomatedBackupPolicy.WeeklySchedule weekly_schedule = 2;

Returns
TypeDescription
boolean

Whether the weeklySchedule field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeBackupWindow(Duration value)

public AutomatedBackupPolicy.Builder mergeBackupWindow(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;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
AutomatedBackupPolicy.Builder

mergeEncryptionConfig(EncryptionConfig value)

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.v1.EncryptionConfig encryption_config = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueEncryptionConfig
Returns
TypeDescription
AutomatedBackupPolicy.Builder

mergeFrom(AutomatedBackupPolicy other)

public AutomatedBackupPolicy.Builder mergeFrom(AutomatedBackupPolicy other)
Parameter
NameDescription
otherAutomatedBackupPolicy
Returns
TypeDescription
AutomatedBackupPolicy.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AutomatedBackupPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AutomatedBackupPolicy.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AutomatedBackupPolicy.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AutomatedBackupPolicy.Builder
Overrides

mergeQuantityBasedRetention(AutomatedBackupPolicy.QuantityBasedRetention value)

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;

Parameter
NameDescription
valueAutomatedBackupPolicy.QuantityBasedRetention
Returns
TypeDescription
AutomatedBackupPolicy.Builder

mergeTimeBasedRetention(AutomatedBackupPolicy.TimeBasedRetention value)

public AutomatedBackupPolicy.Builder mergeTimeBasedRetention(AutomatedBackupPolicy.TimeBasedRetention value)

Time-based Backup retention policy.

.google.cloud.alloydb.v1.AutomatedBackupPolicy.TimeBasedRetention time_based_retention = 4;

Parameter
NameDescription
valueAutomatedBackupPolicy.TimeBasedRetention
Returns
TypeDescription
AutomatedBackupPolicy.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AutomatedBackupPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AutomatedBackupPolicy.Builder
Overrides

mergeWeeklySchedule(AutomatedBackupPolicy.WeeklySchedule value)

public AutomatedBackupPolicy.Builder mergeWeeklySchedule(AutomatedBackupPolicy.WeeklySchedule value)

Weekly schedule for the Backup.

.google.cloud.alloydb.v1.AutomatedBackupPolicy.WeeklySchedule weekly_schedule = 2;

Parameter
NameDescription
valueAutomatedBackupPolicy.WeeklySchedule
Returns
TypeDescription
AutomatedBackupPolicy.Builder

putAllLabels(Map<String,String> values)

public AutomatedBackupPolicy.Builder putAllLabels(Map<String,String> values)

Labels to apply to backups created using this configuration.

map<string, string> labels = 7;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
AutomatedBackupPolicy.Builder

putLabels(String key, String value)

public AutomatedBackupPolicy.Builder putLabels(String key, String value)

Labels to apply to backups created using this configuration.

map<string, string> labels = 7;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
AutomatedBackupPolicy.Builder

removeLabels(String key)

public AutomatedBackupPolicy.Builder removeLabels(String key)

Labels to apply to backups created using this configuration.

map<string, string> labels = 7;

Parameter
NameDescription
keyString
Returns
TypeDescription
AutomatedBackupPolicy.Builder

setBackupWindow(Duration value)

public AutomatedBackupPolicy.Builder setBackupWindow(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;

Parameter
NameDescription
valueDuration
Returns
TypeDescription
AutomatedBackupPolicy.Builder

setBackupWindow(Duration.Builder builderForValue)

public AutomatedBackupPolicy.Builder setBackupWindow(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;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
AutomatedBackupPolicy.Builder

setEnabled(boolean value)

public AutomatedBackupPolicy.Builder setEnabled(boolean value)

Whether automated automated backups are enabled. If not set, defaults to true.

optional bool enabled = 1;

Parameter
NameDescription
valueboolean

The enabled to set.

Returns
TypeDescription
AutomatedBackupPolicy.Builder

This builder for chaining.

setEncryptionConfig(EncryptionConfig value)

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.v1.EncryptionConfig encryption_config = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueEncryptionConfig
Returns
TypeDescription
AutomatedBackupPolicy.Builder

setEncryptionConfig(EncryptionConfig.Builder builderForValue)

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.v1.EncryptionConfig encryption_config = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueEncryptionConfig.Builder
Returns
TypeDescription
AutomatedBackupPolicy.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public AutomatedBackupPolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AutomatedBackupPolicy.Builder
Overrides

setLocation(String value)

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;

Parameter
NameDescription
valueString

The location to set.

Returns
TypeDescription
AutomatedBackupPolicy.Builder

This builder for chaining.

setLocationBytes(ByteString value)

public AutomatedBackupPolicy.Builder setLocationBytes(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;

Parameter
NameDescription
valueByteString

The bytes for location to set.

Returns
TypeDescription
AutomatedBackupPolicy.Builder

This builder for chaining.

setQuantityBasedRetention(AutomatedBackupPolicy.QuantityBasedRetention value)

public 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;

Parameter
NameDescription
valueAutomatedBackupPolicy.QuantityBasedRetention
Returns
TypeDescription
AutomatedBackupPolicy.Builder

setQuantityBasedRetention(AutomatedBackupPolicy.QuantityBasedRetention.Builder builderForValue)

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;

Parameter
NameDescription
builderForValueAutomatedBackupPolicy.QuantityBasedRetention.Builder
Returns
TypeDescription
AutomatedBackupPolicy.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AutomatedBackupPolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AutomatedBackupPolicy.Builder
Overrides

setTimeBasedRetention(AutomatedBackupPolicy.TimeBasedRetention value)

public AutomatedBackupPolicy.Builder setTimeBasedRetention(AutomatedBackupPolicy.TimeBasedRetention value)

Time-based Backup retention policy.

.google.cloud.alloydb.v1.AutomatedBackupPolicy.TimeBasedRetention time_based_retention = 4;

Parameter
NameDescription
valueAutomatedBackupPolicy.TimeBasedRetention
Returns
TypeDescription
AutomatedBackupPolicy.Builder

setTimeBasedRetention(AutomatedBackupPolicy.TimeBasedRetention.Builder builderForValue)

public AutomatedBackupPolicy.Builder setTimeBasedRetention(AutomatedBackupPolicy.TimeBasedRetention.Builder builderForValue)

Time-based Backup retention policy.

.google.cloud.alloydb.v1.AutomatedBackupPolicy.TimeBasedRetention time_based_retention = 4;

Parameter
NameDescription
builderForValueAutomatedBackupPolicy.TimeBasedRetention.Builder
Returns
TypeDescription
AutomatedBackupPolicy.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final AutomatedBackupPolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AutomatedBackupPolicy.Builder
Overrides

setWeeklySchedule(AutomatedBackupPolicy.WeeklySchedule value)

public AutomatedBackupPolicy.Builder setWeeklySchedule(AutomatedBackupPolicy.WeeklySchedule value)

Weekly schedule for the Backup.

.google.cloud.alloydb.v1.AutomatedBackupPolicy.WeeklySchedule weekly_schedule = 2;

Parameter
NameDescription
valueAutomatedBackupPolicy.WeeklySchedule
Returns
TypeDescription
AutomatedBackupPolicy.Builder

setWeeklySchedule(AutomatedBackupPolicy.WeeklySchedule.Builder builderForValue)

public AutomatedBackupPolicy.Builder setWeeklySchedule(AutomatedBackupPolicy.WeeklySchedule.Builder builderForValue)

Weekly schedule for the Backup.

.google.cloud.alloydb.v1.AutomatedBackupPolicy.WeeklySchedule weekly_schedule = 2;

Parameter
NameDescription
builderForValueAutomatedBackupPolicy.WeeklySchedule.Builder
Returns
TypeDescription
AutomatedBackupPolicy.Builder