public static final class BackupPlan.RetentionPolicy.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BackupPlan.RetentionPolicy.Builder> implements BackupPlan.RetentionPolicyOrBuilder
RetentionPolicy defines a Backup retention policy for a BackupPlan.Protobuf type
google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy| Modifier and Type | Method and Description |
|---|---|
BackupPlan.RetentionPolicy.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
BackupPlan.RetentionPolicy |
build() |
BackupPlan.RetentionPolicy |
buildPartial() |
BackupPlan.RetentionPolicy.Builder |
clear() |
BackupPlan.RetentionPolicy.Builder |
clearBackupDeleteLockDays()
Minimum age for Backups created via this BackupPlan (in days).
|
BackupPlan.RetentionPolicy.Builder |
clearBackupRetainDays()
The default maximum age of a Backup created via this BackupPlan.
|
BackupPlan.RetentionPolicy.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
BackupPlan.RetentionPolicy.Builder |
clearLocked()
This flag denotes whether the retention policy of this BackupPlan is
locked.
|
BackupPlan.RetentionPolicy.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
BackupPlan.RetentionPolicy.Builder |
clone() |
int |
getBackupDeleteLockDays()
Minimum age for Backups created via this BackupPlan (in days).
|
int |
getBackupRetainDays()
The default maximum age of a Backup created via this BackupPlan.
|
BackupPlan.RetentionPolicy |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getLocked()
This flag denotes whether the retention policy of this BackupPlan is
locked.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
BackupPlan.RetentionPolicy.Builder |
mergeFrom(BackupPlan.RetentionPolicy other) |
BackupPlan.RetentionPolicy.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
BackupPlan.RetentionPolicy.Builder |
mergeFrom(com.google.protobuf.Message other) |
BackupPlan.RetentionPolicy.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
BackupPlan.RetentionPolicy.Builder |
setBackupDeleteLockDays(int value)
Minimum age for Backups created via this BackupPlan (in days).
|
BackupPlan.RetentionPolicy.Builder |
setBackupRetainDays(int value)
The default maximum age of a Backup created via this BackupPlan.
|
BackupPlan.RetentionPolicy.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
BackupPlan.RetentionPolicy.Builder |
setLocked(boolean value)
This flag denotes whether the retention policy of this BackupPlan is
locked.
|
BackupPlan.RetentionPolicy.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
BackupPlan.RetentionPolicy.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<BackupPlan.RetentionPolicy.Builder>public BackupPlan.RetentionPolicy.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<BackupPlan.RetentionPolicy.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.GeneratedMessageV3.Builder<BackupPlan.RetentionPolicy.Builder>public BackupPlan.RetentionPolicy getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic BackupPlan.RetentionPolicy build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic BackupPlan.RetentionPolicy buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic BackupPlan.RetentionPolicy.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<BackupPlan.RetentionPolicy.Builder>public BackupPlan.RetentionPolicy.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<BackupPlan.RetentionPolicy.Builder>public BackupPlan.RetentionPolicy.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<BackupPlan.RetentionPolicy.Builder>public BackupPlan.RetentionPolicy.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<BackupPlan.RetentionPolicy.Builder>public BackupPlan.RetentionPolicy.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BackupPlan.RetentionPolicy.Builder>public BackupPlan.RetentionPolicy.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BackupPlan.RetentionPolicy.Builder>public BackupPlan.RetentionPolicy.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<BackupPlan.RetentionPolicy.Builder>public BackupPlan.RetentionPolicy.Builder mergeFrom(BackupPlan.RetentionPolicy other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<BackupPlan.RetentionPolicy.Builder>public BackupPlan.RetentionPolicy.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<BackupPlan.RetentionPolicy.Builder>IOExceptionpublic int getBackupDeleteLockDays()
Minimum age for Backups created via this BackupPlan (in days). This field MUST be an integer value between 0-90 (inclusive). A Backup created under this BackupPlan will NOT be deletable until it reaches Backup's (create_time + backup_delete_lock_days). Updating this field of a BackupPlan does NOT affect existing Backups under it. Backups created AFTER a successful update will inherit the new value. Default: 0 (no delete blocking)
int32 backup_delete_lock_days = 1;getBackupDeleteLockDays in interface BackupPlan.RetentionPolicyOrBuilderpublic BackupPlan.RetentionPolicy.Builder setBackupDeleteLockDays(int value)
Minimum age for Backups created via this BackupPlan (in days). This field MUST be an integer value between 0-90 (inclusive). A Backup created under this BackupPlan will NOT be deletable until it reaches Backup's (create_time + backup_delete_lock_days). Updating this field of a BackupPlan does NOT affect existing Backups under it. Backups created AFTER a successful update will inherit the new value. Default: 0 (no delete blocking)
int32 backup_delete_lock_days = 1;value - The backupDeleteLockDays to set.public BackupPlan.RetentionPolicy.Builder clearBackupDeleteLockDays()
Minimum age for Backups created via this BackupPlan (in days). This field MUST be an integer value between 0-90 (inclusive). A Backup created under this BackupPlan will NOT be deletable until it reaches Backup's (create_time + backup_delete_lock_days). Updating this field of a BackupPlan does NOT affect existing Backups under it. Backups created AFTER a successful update will inherit the new value. Default: 0 (no delete blocking)
int32 backup_delete_lock_days = 1;public int getBackupRetainDays()
The default maximum age of a Backup created via this BackupPlan. This field MUST be an integer value >= 0 and <= 365. If specified, a Backup created under this BackupPlan will be automatically deleted after its age reaches (create_time + backup_retain_days). If not specified, Backups created under this BackupPlan will NOT be subject to automatic deletion. Updating this field does NOT affect existing Backups under it. Backups created AFTER a successful update will automatically pick up the new value. NOTE: backup_retain_days must be >= [backup_delete_lock_days][google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.backup_delete_lock_days]. If [cron_schedule][google.cloud.gkebackup.v1.BackupPlan.Schedule.cron_schedule] is defined, then this must be <= 360 * the creation interval. Default: 0 (no automatic deletion)
int32 backup_retain_days = 2;getBackupRetainDays in interface BackupPlan.RetentionPolicyOrBuilderpublic BackupPlan.RetentionPolicy.Builder setBackupRetainDays(int value)
The default maximum age of a Backup created via this BackupPlan. This field MUST be an integer value >= 0 and <= 365. If specified, a Backup created under this BackupPlan will be automatically deleted after its age reaches (create_time + backup_retain_days). If not specified, Backups created under this BackupPlan will NOT be subject to automatic deletion. Updating this field does NOT affect existing Backups under it. Backups created AFTER a successful update will automatically pick up the new value. NOTE: backup_retain_days must be >= [backup_delete_lock_days][google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.backup_delete_lock_days]. If [cron_schedule][google.cloud.gkebackup.v1.BackupPlan.Schedule.cron_schedule] is defined, then this must be <= 360 * the creation interval. Default: 0 (no automatic deletion)
int32 backup_retain_days = 2;value - The backupRetainDays to set.public BackupPlan.RetentionPolicy.Builder clearBackupRetainDays()
The default maximum age of a Backup created via this BackupPlan. This field MUST be an integer value >= 0 and <= 365. If specified, a Backup created under this BackupPlan will be automatically deleted after its age reaches (create_time + backup_retain_days). If not specified, Backups created under this BackupPlan will NOT be subject to automatic deletion. Updating this field does NOT affect existing Backups under it. Backups created AFTER a successful update will automatically pick up the new value. NOTE: backup_retain_days must be >= [backup_delete_lock_days][google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy.backup_delete_lock_days]. If [cron_schedule][google.cloud.gkebackup.v1.BackupPlan.Schedule.cron_schedule] is defined, then this must be <= 360 * the creation interval. Default: 0 (no automatic deletion)
int32 backup_retain_days = 2;public boolean getLocked()
This flag denotes whether the retention policy of this BackupPlan is locked. If set to True, no further update is allowed on this policy, including the `locked` field itself. Default: False
bool locked = 3;getLocked in interface BackupPlan.RetentionPolicyOrBuilderpublic BackupPlan.RetentionPolicy.Builder setLocked(boolean value)
This flag denotes whether the retention policy of this BackupPlan is locked. If set to True, no further update is allowed on this policy, including the `locked` field itself. Default: False
bool locked = 3;value - The locked to set.public BackupPlan.RetentionPolicy.Builder clearLocked()
This flag denotes whether the retention policy of this BackupPlan is locked. If set to True, no further update is allowed on this policy, including the `locked` field itself. Default: False
bool locked = 3;public final BackupPlan.RetentionPolicy.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BackupPlan.RetentionPolicy.Builder>public final BackupPlan.RetentionPolicy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BackupPlan.RetentionPolicy.Builder>Copyright © 2023 Google LLC. All rights reserved.