Class AutomatedBackupPolicy.QuantityBasedRetention.Builder (0.72.0)

public static final class AutomatedBackupPolicy.QuantityBasedRetention.Builder extends GeneratedMessage.Builder<AutomatedBackupPolicy.QuantityBasedRetention.Builder> implements AutomatedBackupPolicy.QuantityBasedRetentionOrBuilder

A quantity based policy specifies that a certain number of the most recent successful backups should be retained.

Protobuf type google.cloud.alloydb.v1alpha.AutomatedBackupPolicy.QuantityBasedRetention

Static Methods

getDescriptor()

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

Methods

build()

public AutomatedBackupPolicy.QuantityBasedRetention build()
Returns
Type Description
AutomatedBackupPolicy.QuantityBasedRetention

buildPartial()

public AutomatedBackupPolicy.QuantityBasedRetention buildPartial()
Returns
Type Description
AutomatedBackupPolicy.QuantityBasedRetention

clear()

public AutomatedBackupPolicy.QuantityBasedRetention.Builder clear()
Returns
Type Description
AutomatedBackupPolicy.QuantityBasedRetention.Builder
Overrides

clearCount()

public AutomatedBackupPolicy.QuantityBasedRetention.Builder clearCount()

The number of backups to retain.

int32 count = 1;

Returns
Type Description
AutomatedBackupPolicy.QuantityBasedRetention.Builder

This builder for chaining.

getCount()

public int getCount()

The number of backups to retain.

int32 count = 1;

Returns
Type Description
int

The count.

getDefaultInstanceForType()

public AutomatedBackupPolicy.QuantityBasedRetention getDefaultInstanceForType()
Returns
Type Description
AutomatedBackupPolicy.QuantityBasedRetention

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AutomatedBackupPolicy.QuantityBasedRetention other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setCount(int value)

public AutomatedBackupPolicy.QuantityBasedRetention.Builder setCount(int value)

The number of backups to retain.

int32 count = 1;

Parameter
Name Description
value int

The count to set.

Returns
Type Description
AutomatedBackupPolicy.QuantityBasedRetention.Builder

This builder for chaining.