public static final class Backup.QuantityBasedExpiry extends GeneratedMessageV3 implements Backup.QuantityBasedExpiryOrBuilder
A backup's position in a quantity-based retention queue, of backups with
the same source cluster and type, with length, retention, specified by the
backup's retention policy.
Once the position is greater than the retention, the backup is eligible to
be garbage collected.
Example: 5 backups from the same source cluster and type with a
quantity-based retention of 3 and denoted by backup_id (position,
retention).
Safe: backup_5 (1, 3), backup_4, (2, 3), backup_3 (3, 3).
Awaiting garbage collection: backup_2 (4, 3), backup_1 (5, 3)
Protobuf type google.cloud.alloydb.v1.Backup.QuantityBasedExpiry
Inherited Members
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
RETENTION_COUNT_FIELD_NUMBER
public static final int RETENTION_COUNT_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
TOTAL_RETENTION_COUNT_FIELD_NUMBER
public static final int TOTAL_RETENTION_COUNT_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static Backup.QuantityBasedExpiry getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Backup.QuantityBasedExpiry.Builder newBuilder()
newBuilder(Backup.QuantityBasedExpiry prototype)
public static Backup.QuantityBasedExpiry.Builder newBuilder(Backup.QuantityBasedExpiry prototype)
public static Backup.QuantityBasedExpiry parseDelimitedFrom(InputStream input)
public static Backup.QuantityBasedExpiry parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Backup.QuantityBasedExpiry parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Backup.QuantityBasedExpiry parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Backup.QuantityBasedExpiry parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Backup.QuantityBasedExpiry parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Backup.QuantityBasedExpiry parseFrom(CodedInputStream input)
public static Backup.QuantityBasedExpiry parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Backup.QuantityBasedExpiry parseFrom(InputStream input)
public static Backup.QuantityBasedExpiry parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static Backup.QuantityBasedExpiry parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Backup.QuantityBasedExpiry parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<Backup.QuantityBasedExpiry> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public Backup.QuantityBasedExpiry getDefaultInstanceForType()
getParserForType()
public Parser<Backup.QuantityBasedExpiry> getParserForType()
Overrides
getRetentionCount()
public int getRetentionCount()
Output only. The backup's position among its backups with the same source
cluster and type, by descending chronological order create time(i.e.
newest first).
int32 retention_count = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
Type |
Description |
int |
The retentionCount.
|
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
getTotalRetentionCount()
public int getTotalRetentionCount()
Output only. The length of the quantity-based queue, specified by the
backup's retention policy.
int32 total_retention_count = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns |
Type |
Description |
int |
The totalRetentionCount.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Backup.QuantityBasedExpiry.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Backup.QuantityBasedExpiry.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public Backup.QuantityBasedExpiry.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides