public static final class Backup.QuantityBasedExpiry.Builder extends com.google.protobuf.GeneratedMessage.Builder<Backup.QuantityBasedExpiry.Builder> 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.v1beta.Backup.QuantityBasedExpiryaddRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Backup.QuantityBasedExpiry.Builder>public Backup.QuantityBasedExpiry.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<Backup.QuantityBasedExpiry.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Backup.QuantityBasedExpiry.Builder>public Backup.QuantityBasedExpiry getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Backup.QuantityBasedExpiry build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Backup.QuantityBasedExpiry buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Backup.QuantityBasedExpiry.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Backup.QuantityBasedExpiry.Builder>public Backup.QuantityBasedExpiry.Builder mergeFrom(Backup.QuantityBasedExpiry other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<Backup.QuantityBasedExpiry.Builder>public Backup.QuantityBasedExpiry.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Backup.QuantityBasedExpiry.Builder>IOExceptionpublic 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];getRetentionCount in interface Backup.QuantityBasedExpiryOrBuilderpublic Backup.QuantityBasedExpiry.Builder setRetentionCount(int value)
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];value - The retentionCount to set.public Backup.QuantityBasedExpiry.Builder clearRetentionCount()
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];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];getTotalRetentionCount in interface Backup.QuantityBasedExpiryOrBuilderpublic Backup.QuantityBasedExpiry.Builder setTotalRetentionCount(int value)
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];value - The totalRetentionCount to set.public Backup.QuantityBasedExpiry.Builder clearTotalRetentionCount()
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];Copyright © 2026 Google LLC. All rights reserved.