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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AutomatedBackupPolicy.QuantityBasedRetention.BuilderStatic 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 |
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 |
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 |
clearOneof(Descriptors.OneofDescriptor oneof)
public AutomatedBackupPolicy.QuantityBasedRetention.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
AutomatedBackupPolicy.QuantityBasedRetention.Builder |
clone()
public AutomatedBackupPolicy.QuantityBasedRetention.Builder clone()
Returns | |
---|---|
Type | Description |
AutomatedBackupPolicy.QuantityBasedRetention.Builder |
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 |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 |
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 |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AutomatedBackupPolicy.QuantityBasedRetention.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
AutomatedBackupPolicy.QuantityBasedRetention.Builder |
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 |
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 |
setUnknownFields(UnknownFieldSet unknownFields)
public final AutomatedBackupPolicy.QuantityBasedRetention.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
AutomatedBackupPolicy.QuantityBasedRetention.Builder |