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.v1alpha.AutomatedBackupPolicy.QuantityBasedRetention
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AutomatedBackupPolicy.QuantityBasedRetention.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public AutomatedBackupPolicy.QuantityBasedRetention build()
Returns
buildPartial()
public AutomatedBackupPolicy.QuantityBasedRetention buildPartial()
Returns
clear()
public AutomatedBackupPolicy.QuantityBasedRetention.Builder clear()
Returns
Overrides
clearCount()
public AutomatedBackupPolicy.QuantityBasedRetention.Builder clearCount()
The number of backups to retain.
int32 count = 1;
Returns
clearField(Descriptors.FieldDescriptor field)
public AutomatedBackupPolicy.QuantityBasedRetention.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public AutomatedBackupPolicy.QuantityBasedRetention.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public AutomatedBackupPolicy.QuantityBasedRetention.Builder clone()
Returns
Overrides
getCount()
The number of backups to retain.
int32 count = 1;
Returns
Type |
Description |
int |
The count.
|
getDefaultInstanceForType()
public AutomatedBackupPolicy.QuantityBasedRetention getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(AutomatedBackupPolicy.QuantityBasedRetention other)
public AutomatedBackupPolicy.QuantityBasedRetention.Builder mergeFrom(AutomatedBackupPolicy.QuantityBasedRetention other)
Parameter
Returns
public AutomatedBackupPolicy.QuantityBasedRetention.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public AutomatedBackupPolicy.QuantityBasedRetention.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AutomatedBackupPolicy.QuantityBasedRetention.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
setField(Descriptors.FieldDescriptor field, Object value)
public AutomatedBackupPolicy.QuantityBasedRetention.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AutomatedBackupPolicy.QuantityBasedRetention.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final AutomatedBackupPolicy.QuantityBasedRetention.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides