Class AutomatedBackupPolicy.Builder (0.33.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.v1alpha.AutomatedBackupPolicy

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AutomatedBackupPolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AutomatedBackupPolicy.Builder
Overrides

build()

public AutomatedBackupPolicy build()
Returns
Type Description
AutomatedBackupPolicy

buildPartial()

public AutomatedBackupPolicy buildPartial()
Returns
Type Description
AutomatedBackupPolicy

clear()

public AutomatedBackupPolicy.Builder clear()
Returns
Type Description
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
Type Description
AutomatedBackupPolicy.Builder

clearEnabled()

public AutomatedBackupPolicy.Builder clearEnabled()

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

optional bool enabled = 1;

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

Returns
Type Description
AutomatedBackupPolicy.Builder

clearField(Descriptors.FieldDescriptor field)

public AutomatedBackupPolicy.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AutomatedBackupPolicy.Builder
Overrides

clearLabels()

public AutomatedBackupPolicy.Builder clearLabels()
Returns
Type Description
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
Type Description
AutomatedBackupPolicy.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AutomatedBackupPolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AutomatedBackupPolicy.Builder
Overrides

clearQuantityBasedRetention()

public AutomatedBackupPolicy.Builder clearQuantityBasedRetention()

Quantity-based Backup retention policy to retain recent backups.

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

Returns
Type Description
AutomatedBackupPolicy.Builder

clearRetention()

public AutomatedBackupPolicy.Builder clearRetention()
Returns
Type Description
AutomatedBackupPolicy.Builder

clearSchedule()

public AutomatedBackupPolicy.Builder clearSchedule()
Returns
Type Description
AutomatedBackupPolicy.Builder

clearTimeBasedRetention()

public AutomatedBackupPolicy.Builder clearTimeBasedRetention()

Time-based Backup retention policy.

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

Returns
Type Description
AutomatedBackupPolicy.Builder

clearWeeklySchedule()

public AutomatedBackupPolicy.Builder clearWeeklySchedule()

Weekly schedule for the Backup.

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

Returns
Type Description
AutomatedBackupPolicy.Builder

clone()

public AutomatedBackupPolicy.Builder clone()
Returns
Type Description
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
Name Description
key String
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
DurationOrBuilder

getDefaultInstanceForType()

public AutomatedBackupPolicy getDefaultInstanceForType()
Returns
Type Description
AutomatedBackupPolicy

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEnabled()

public boolean getEnabled()

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

optional bool enabled = 1;

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

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

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

Returns
Type Description
EncryptionConfigOrBuilder

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Labels to apply to backups created using this configuration.

map<string, string> labels = 7;

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Labels to apply to backups created using this configuration.

map<string, string> labels = 7;

Returns
Type Description
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
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Labels to apply to backups created using this configuration.

map<string, string> labels = 7;

Parameter
Name Description
key String
Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for location.

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getQuantityBasedRetention()

public AutomatedBackupPolicy.QuantityBasedRetention getQuantityBasedRetention()

Quantity-based Backup retention policy to retain recent backups.

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

Returns
Type Description
AutomatedBackupPolicy.QuantityBasedRetention

The quantityBasedRetention.

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;

Returns
Type Description
AutomatedBackupPolicy.QuantityBasedRetention.Builder

getQuantityBasedRetentionOrBuilder()

public AutomatedBackupPolicy.QuantityBasedRetentionOrBuilder getQuantityBasedRetentionOrBuilder()

Quantity-based Backup retention policy to retain recent backups.

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

Returns
Type Description
AutomatedBackupPolicy.QuantityBasedRetentionOrBuilder

getRetentionCase()

public AutomatedBackupPolicy.RetentionCase getRetentionCase()
Returns
Type Description
AutomatedBackupPolicy.RetentionCase

getScheduleCase()

public AutomatedBackupPolicy.ScheduleCase getScheduleCase()
Returns
Type Description
AutomatedBackupPolicy.ScheduleCase

getTimeBasedRetention()

public AutomatedBackupPolicy.TimeBasedRetention getTimeBasedRetention()

Time-based Backup retention policy.

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

Returns
Type Description
AutomatedBackupPolicy.TimeBasedRetention

The timeBasedRetention.

getTimeBasedRetentionBuilder()

public AutomatedBackupPolicy.TimeBasedRetention.Builder getTimeBasedRetentionBuilder()

Time-based Backup retention policy.

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

Returns
Type Description
AutomatedBackupPolicy.TimeBasedRetention.Builder

getTimeBasedRetentionOrBuilder()

public AutomatedBackupPolicy.TimeBasedRetentionOrBuilder getTimeBasedRetentionOrBuilder()

Time-based Backup retention policy.

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

Returns
Type Description
AutomatedBackupPolicy.TimeBasedRetentionOrBuilder

getWeeklySchedule()

public AutomatedBackupPolicy.WeeklySchedule getWeeklySchedule()

Weekly schedule for the Backup.

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

Returns
Type Description
AutomatedBackupPolicy.WeeklySchedule

The weeklySchedule.

getWeeklyScheduleBuilder()

public AutomatedBackupPolicy.WeeklySchedule.Builder getWeeklyScheduleBuilder()

Weekly schedule for the Backup.

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

Returns
Type Description
AutomatedBackupPolicy.WeeklySchedule.Builder

getWeeklyScheduleOrBuilder()

public AutomatedBackupPolicy.WeeklyScheduleOrBuilder getWeeklyScheduleOrBuilder()

Weekly schedule for the Backup.

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

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

Returns
Type Description
boolean

Whether the encryptionConfig field is set.

hasQuantityBasedRetention()

public boolean hasQuantityBasedRetention()

Quantity-based Backup retention policy to retain recent backups.

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

Returns
Type Description
boolean

Whether the quantityBasedRetention field is set.

hasTimeBasedRetention()

public boolean hasTimeBasedRetention()

Time-based Backup retention policy.

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

Returns
Type Description
boolean

Whether the timeBasedRetention field is set.

hasWeeklySchedule()

public boolean hasWeeklySchedule()

Weekly schedule for the Backup.

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

Returns
Type Description
boolean

Whether the weeklySchedule field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
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
Name Description
value Duration
Returns
Type Description
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.v1alpha.EncryptionConfig encryption_config = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value EncryptionConfig
Returns
Type Description
AutomatedBackupPolicy.Builder

mergeFrom(AutomatedBackupPolicy other)

public AutomatedBackupPolicy.Builder mergeFrom(AutomatedBackupPolicy other)
Parameter
Name Description
other AutomatedBackupPolicy
Returns
Type Description
AutomatedBackupPolicy.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AutomatedBackupPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AutomatedBackupPolicy.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AutomatedBackupPolicy.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
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.v1alpha.AutomatedBackupPolicy.QuantityBasedRetention quantity_based_retention = 5;

Parameter
Name Description
value AutomatedBackupPolicy.QuantityBasedRetention
Returns
Type Description
AutomatedBackupPolicy.Builder

mergeTimeBasedRetention(AutomatedBackupPolicy.TimeBasedRetention value)

public AutomatedBackupPolicy.Builder mergeTimeBasedRetention(AutomatedBackupPolicy.TimeBasedRetention value)

Time-based Backup retention policy.

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

Parameter
Name Description
value AutomatedBackupPolicy.TimeBasedRetention
Returns
Type Description
AutomatedBackupPolicy.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AutomatedBackupPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AutomatedBackupPolicy.Builder
Overrides

mergeWeeklySchedule(AutomatedBackupPolicy.WeeklySchedule value)

public AutomatedBackupPolicy.Builder mergeWeeklySchedule(AutomatedBackupPolicy.WeeklySchedule value)

Weekly schedule for the Backup.

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

Parameter
Name Description
value AutomatedBackupPolicy.WeeklySchedule
Returns
Type Description
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
Name Description
values Map<String,String>
Returns
Type Description
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
Name Description
key String
value String
Returns
Type Description
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
Name Description
key String
Returns
Type Description
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
Name Description
value Duration
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
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
Name Description
value boolean

The enabled to set.

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

Parameter
Name Description
value EncryptionConfig
Returns
Type Description
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.v1alpha.EncryptionConfig encryption_config = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue EncryptionConfig.Builder
Returns
Type Description
AutomatedBackupPolicy.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public AutomatedBackupPolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value String

The location to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for location to set.

Returns
Type Description
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.v1alpha.AutomatedBackupPolicy.QuantityBasedRetention quantity_based_retention = 5;

Parameter
Name Description
value AutomatedBackupPolicy.QuantityBasedRetention
Returns
Type Description
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.v1alpha.AutomatedBackupPolicy.QuantityBasedRetention quantity_based_retention = 5;

Parameter
Name Description
builderForValue AutomatedBackupPolicy.QuantityBasedRetention.Builder
Returns
Type Description
AutomatedBackupPolicy.Builder

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

public AutomatedBackupPolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AutomatedBackupPolicy.Builder
Overrides

setTimeBasedRetention(AutomatedBackupPolicy.TimeBasedRetention value)

public AutomatedBackupPolicy.Builder setTimeBasedRetention(AutomatedBackupPolicy.TimeBasedRetention value)

Time-based Backup retention policy.

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

Parameter
Name Description
value AutomatedBackupPolicy.TimeBasedRetention
Returns
Type Description
AutomatedBackupPolicy.Builder

setTimeBasedRetention(AutomatedBackupPolicy.TimeBasedRetention.Builder builderForValue)

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

Time-based Backup retention policy.

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

Parameter
Name Description
builderForValue AutomatedBackupPolicy.TimeBasedRetention.Builder
Returns
Type Description
AutomatedBackupPolicy.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final AutomatedBackupPolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AutomatedBackupPolicy.Builder
Overrides

setWeeklySchedule(AutomatedBackupPolicy.WeeklySchedule value)

public AutomatedBackupPolicy.Builder setWeeklySchedule(AutomatedBackupPolicy.WeeklySchedule value)

Weekly schedule for the Backup.

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

Parameter
Name Description
value AutomatedBackupPolicy.WeeklySchedule
Returns
Type Description
AutomatedBackupPolicy.Builder

setWeeklySchedule(AutomatedBackupPolicy.WeeklySchedule.Builder builderForValue)

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

Weekly schedule for the Backup.

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

Parameter
Name Description
builderForValue AutomatedBackupPolicy.WeeklySchedule.Builder
Returns
Type Description
AutomatedBackupPolicy.Builder