Class AutomatedBackupPolicy.QuantityBasedRetention.Builder (0.37.0)

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AutomatedBackupPolicy.QuantityBasedRetention.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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