Class AutomatedBackupPolicy.QuantityBasedRetention (0.14.1)

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.events.cloud.alloydb.v1.AutomatedBackupPolicy.QuantityBasedRetention

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > AutomatedBackupPolicy.QuantityBasedRetention
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

Static Fields

COUNT_FIELD_NUMBER

public static final int COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AutomatedBackupPolicy.QuantityBasedRetention getDefaultInstance()

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static AutomatedBackupPolicy.QuantityBasedRetention.Builder newBuilder()

newBuilder(AutomatedBackupPolicy.QuantityBasedRetention prototype)

public static AutomatedBackupPolicy.QuantityBasedRetention.Builder newBuilder(AutomatedBackupPolicy.QuantityBasedRetention prototype)
Parameter
NameDescription
prototypeAutomatedBackupPolicy.QuantityBasedRetention

parseDelimitedFrom(InputStream input)

public static AutomatedBackupPolicy.QuantityBasedRetention parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AutomatedBackupPolicy.QuantityBasedRetention parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static AutomatedBackupPolicy.QuantityBasedRetention parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AutomatedBackupPolicy.QuantityBasedRetention parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AutomatedBackupPolicy.QuantityBasedRetention parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AutomatedBackupPolicy.QuantityBasedRetention parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AutomatedBackupPolicy.QuantityBasedRetention parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AutomatedBackupPolicy.QuantityBasedRetention parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static AutomatedBackupPolicy.QuantityBasedRetention parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AutomatedBackupPolicy.QuantityBasedRetention parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static AutomatedBackupPolicy.QuantityBasedRetention parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AutomatedBackupPolicy.QuantityBasedRetention parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<AutomatedBackupPolicy.QuantityBasedRetention> parser()
Returns
TypeDescription
Parser<QuantityBasedRetention>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getCount()

public int getCount()

The number of backups to retain.

int32 count = 1;

Returns
TypeDescription
int

The count.

getDefaultInstanceForType()

public AutomatedBackupPolicy.QuantityBasedRetention getDefaultInstanceForType()

getParserForType()

public Parser<AutomatedBackupPolicy.QuantityBasedRetention> getParserForType()
Returns
TypeDescription
Parser<QuantityBasedRetention>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public AutomatedBackupPolicy.QuantityBasedRetention.Builder newBuilderForType()

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AutomatedBackupPolicy.QuantityBasedRetention.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public AutomatedBackupPolicy.QuantityBasedRetention.Builder toBuilder()

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException