public static final class AutomatedBackupPolicy.QuantityBasedRetention extends GeneratedMessageV3 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
Static Fields
COUNT_FIELD_NUMBER
public static final int COUNT_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static AutomatedBackupPolicy.QuantityBasedRetention getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static AutomatedBackupPolicy.QuantityBasedRetention.Builder newBuilder()
Returns
newBuilder(AutomatedBackupPolicy.QuantityBasedRetention prototype)
public static AutomatedBackupPolicy.QuantityBasedRetention.Builder newBuilder(AutomatedBackupPolicy.QuantityBasedRetention prototype)
Parameter
Returns
public static AutomatedBackupPolicy.QuantityBasedRetention parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static AutomatedBackupPolicy.QuantityBasedRetention parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static AutomatedBackupPolicy.QuantityBasedRetention parseFrom(byte[] data)
Parameter
Name |
Description |
data |
byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AutomatedBackupPolicy.QuantityBasedRetention parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static AutomatedBackupPolicy.QuantityBasedRetention parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AutomatedBackupPolicy.QuantityBasedRetention parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static AutomatedBackupPolicy.QuantityBasedRetention parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static AutomatedBackupPolicy.QuantityBasedRetention parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static AutomatedBackupPolicy.QuantityBasedRetention parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static AutomatedBackupPolicy.QuantityBasedRetention parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static AutomatedBackupPolicy.QuantityBasedRetention parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AutomatedBackupPolicy.QuantityBasedRetention parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<AutomatedBackupPolicy.QuantityBasedRetention> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getCount()
The number of backups to retain.
int32 count = 1;
Returns
Type |
Description |
int |
The count.
|
getDefaultInstanceForType()
public AutomatedBackupPolicy.QuantityBasedRetention getDefaultInstanceForType()
Returns
getParserForType()
public Parser<AutomatedBackupPolicy.QuantityBasedRetention> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public AutomatedBackupPolicy.QuantityBasedRetention.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AutomatedBackupPolicy.QuantityBasedRetention.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public AutomatedBackupPolicy.QuantityBasedRetention.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions