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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AutomatedBackupPolicy.QuantityBasedRetention.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AutomatedBackupPolicy.QuantityBasedRetention.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field |
FieldDescriptor |
value |
Object |
Type | Description |
AutomatedBackupPolicy.QuantityBasedRetention.Builder |
build()
public AutomatedBackupPolicy.QuantityBasedRetention build()
Type | Description |
AutomatedBackupPolicy.QuantityBasedRetention |
buildPartial()
public AutomatedBackupPolicy.QuantityBasedRetention buildPartial()
Type | Description |
AutomatedBackupPolicy.QuantityBasedRetention |
clear()
public AutomatedBackupPolicy.QuantityBasedRetention.Builder clear()
Type | Description |
AutomatedBackupPolicy.QuantityBasedRetention.Builder |
clearCount()
public AutomatedBackupPolicy.QuantityBasedRetention.Builder clearCount()
The number of backups to retain.
int32 count = 1;
Type | Description |
AutomatedBackupPolicy.QuantityBasedRetention.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public AutomatedBackupPolicy.QuantityBasedRetention.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field |
FieldDescriptor |
Type | Description |
AutomatedBackupPolicy.QuantityBasedRetention.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public AutomatedBackupPolicy.QuantityBasedRetention.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof |
OneofDescriptor |
Type | Description |
AutomatedBackupPolicy.QuantityBasedRetention.Builder |
clone()
public AutomatedBackupPolicy.QuantityBasedRetention.Builder clone()
Type | Description |
AutomatedBackupPolicy.QuantityBasedRetention.Builder |
getCount()
public int getCount()
The number of backups to retain.
int32 count = 1;
Type | Description |
int |
The count. |
getDefaultInstanceForType()
public AutomatedBackupPolicy.QuantityBasedRetention getDefaultInstanceForType()
Type | Description |
AutomatedBackupPolicy.QuantityBasedRetention |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(AutomatedBackupPolicy.QuantityBasedRetention other)
public AutomatedBackupPolicy.QuantityBasedRetention.Builder mergeFrom(AutomatedBackupPolicy.QuantityBasedRetention other)
Name | Description |
other |
AutomatedBackupPolicy.QuantityBasedRetention |
Type | Description |
AutomatedBackupPolicy.QuantityBasedRetention.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AutomatedBackupPolicy.QuantityBasedRetention.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Type | Description |
AutomatedBackupPolicy.QuantityBasedRetention.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public AutomatedBackupPolicy.QuantityBasedRetention.Builder mergeFrom(Message other)
Name | Description |
other |
Message |
Type | Description |
AutomatedBackupPolicy.QuantityBasedRetention.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AutomatedBackupPolicy.QuantityBasedRetention.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields |
UnknownFieldSet |
Type | Description |
AutomatedBackupPolicy.QuantityBasedRetention.Builder |
setCount(int value)
public AutomatedBackupPolicy.QuantityBasedRetention.Builder setCount(int value)
The number of backups to retain.
int32 count = 1;
Name | Description |
value |
int The count to set. |
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)
Name | Description |
field |
FieldDescriptor |
value |
Object |
Type | Description |
AutomatedBackupPolicy.QuantityBasedRetention.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AutomatedBackupPolicy.QuantityBasedRetention.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Type | Description |
AutomatedBackupPolicy.QuantityBasedRetention.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final AutomatedBackupPolicy.QuantityBasedRetention.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields |
UnknownFieldSet |
Type | Description |
AutomatedBackupPolicy.QuantityBasedRetention.Builder |