Class AutomatedBackupPolicy.QuantityBasedRetention.Builder (0.14.1)

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.events.cloud.alloydb.v1.AutomatedBackupPolicy.QuantityBasedRetention

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AutomatedBackupPolicy.QuantityBasedRetention build()
Returns
TypeDescription
AutomatedBackupPolicy.QuantityBasedRetention

buildPartial()

public AutomatedBackupPolicy.QuantityBasedRetention buildPartial()
Returns
TypeDescription
AutomatedBackupPolicy.QuantityBasedRetention

clear()

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

clearCount()

public AutomatedBackupPolicy.QuantityBasedRetention.Builder clearCount()

The number of backups to retain.

int32 count = 1;

Returns
TypeDescription
AutomatedBackupPolicy.QuantityBasedRetention.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getCount()

public int getCount()

The number of backups to retain.

int32 count = 1;

Returns
TypeDescription
int

The count.

getDefaultInstanceForType()

public AutomatedBackupPolicy.QuantityBasedRetention getDefaultInstanceForType()
Returns
TypeDescription
AutomatedBackupPolicy.QuantityBasedRetention

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AutomatedBackupPolicy.QuantityBasedRetention other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCount(int value)

public AutomatedBackupPolicy.QuantityBasedRetention.Builder setCount(int value)

The number of backups to retain.

int32 count = 1;

Parameter
NameDescription
valueint

The count to set.

Returns
TypeDescription
AutomatedBackupPolicy.QuantityBasedRetention.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public AutomatedBackupPolicy.QuantityBasedRetention.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AutomatedBackupPolicy.QuantityBasedRetention.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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