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.v1beta.AutomatedBackupPolicy.QuantityBasedRetention
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > AutomatedBackupPolicy.QuantityBasedRetentionStatic Fields
COUNT_FIELD_NUMBER
public static final int COUNT_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static AutomatedBackupPolicy.QuantityBasedRetention getDefaultInstance()
Type | Description |
AutomatedBackupPolicy.QuantityBasedRetention |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static AutomatedBackupPolicy.QuantityBasedRetention.Builder newBuilder()
Type | Description |
AutomatedBackupPolicy.QuantityBasedRetention.Builder |
newBuilder(AutomatedBackupPolicy.QuantityBasedRetention prototype)
public static AutomatedBackupPolicy.QuantityBasedRetention.Builder newBuilder(AutomatedBackupPolicy.QuantityBasedRetention prototype)
Name | Description |
prototype |
AutomatedBackupPolicy.QuantityBasedRetention |
Type | Description |
AutomatedBackupPolicy.QuantityBasedRetention.Builder |
parseDelimitedFrom(InputStream input)
public static AutomatedBackupPolicy.QuantityBasedRetention parseDelimitedFrom(InputStream input)
Name | Description |
input |
InputStream |
Type | Description |
AutomatedBackupPolicy.QuantityBasedRetention |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AutomatedBackupPolicy.QuantityBasedRetention parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Type | Description |
AutomatedBackupPolicy.QuantityBasedRetention |
Type | Description |
IOException |
parseFrom(byte[] data)
public static AutomatedBackupPolicy.QuantityBasedRetention parseFrom(byte[] data)
Name | Description |
data |
byte[] |
Type | Description |
AutomatedBackupPolicy.QuantityBasedRetention |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AutomatedBackupPolicy.QuantityBasedRetention parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
Type | Description |
AutomatedBackupPolicy.QuantityBasedRetention |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static AutomatedBackupPolicy.QuantityBasedRetention parseFrom(ByteString data)
Name | Description |
data |
ByteString |
Type | Description |
AutomatedBackupPolicy.QuantityBasedRetention |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AutomatedBackupPolicy.QuantityBasedRetention parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
Type | Description |
AutomatedBackupPolicy.QuantityBasedRetention |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static AutomatedBackupPolicy.QuantityBasedRetention parseFrom(CodedInputStream input)
Name | Description |
input |
CodedInputStream |
Type | Description |
AutomatedBackupPolicy.QuantityBasedRetention |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static AutomatedBackupPolicy.QuantityBasedRetention parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Type | Description |
AutomatedBackupPolicy.QuantityBasedRetention |
Type | Description |
IOException |
parseFrom(InputStream input)
public static AutomatedBackupPolicy.QuantityBasedRetention parseFrom(InputStream input)
Name | Description |
input |
InputStream |
Type | Description |
AutomatedBackupPolicy.QuantityBasedRetention |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AutomatedBackupPolicy.QuantityBasedRetention parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Type | Description |
AutomatedBackupPolicy.QuantityBasedRetention |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static AutomatedBackupPolicy.QuantityBasedRetention parseFrom(ByteBuffer data)
Name | Description |
data |
ByteBuffer |
Type | Description |
AutomatedBackupPolicy.QuantityBasedRetention |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AutomatedBackupPolicy.QuantityBasedRetention parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
Type | Description |
AutomatedBackupPolicy.QuantityBasedRetention |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<AutomatedBackupPolicy.QuantityBasedRetention> parser()
Type | Description |
Parser<QuantityBasedRetention> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj |
Object |
Type | Description |
boolean |
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 |
getParserForType()
public Parser<AutomatedBackupPolicy.QuantityBasedRetention> getParserForType()
Type | Description |
Parser<QuantityBasedRetention> |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public AutomatedBackupPolicy.QuantityBasedRetention.Builder newBuilderForType()
Type | Description |
AutomatedBackupPolicy.QuantityBasedRetention.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AutomatedBackupPolicy.QuantityBasedRetention.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent |
BuilderParent |
Type | Description |
AutomatedBackupPolicy.QuantityBasedRetention.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused |
UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public AutomatedBackupPolicy.QuantityBasedRetention.Builder toBuilder()
Type | Description |
AutomatedBackupPolicy.QuantityBasedRetention.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output |
CodedOutputStream |
Type | Description |
IOException |