public static final class BackupRule.Builder extends GeneratedMessageV3.Builder<BackupRule.Builder> implements BackupRuleOrBuilder
BackupRule
binds the backup schedule to a retention policy.
Protobuf type google.cloud.backupdr.v1.BackupRule
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public BackupRule.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public BackupRule build()
buildPartial()
public BackupRule buildPartial()
clear()
public BackupRule.Builder clear()
Overrides
clearBackupRetentionDays()
public BackupRule.Builder clearBackupRetentionDays()
Required. Configures the duration for which backup data will be kept. It is
defined in “days”. The value should be greater than or equal to minimum
enforced retention of the backup vault.
int32 backup_retention_days = 4 [(.google.api.field_behavior) = REQUIRED];
clearBackupScheduleOneof()
public BackupRule.Builder clearBackupScheduleOneof()
clearField(Descriptors.FieldDescriptor field)
public BackupRule.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public BackupRule.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearRuleId()
public BackupRule.Builder clearRuleId()
Required. Immutable. The unique id of this BackupRule
. The rule_id
is
unique per BackupPlan
.The rule_id
must start with a lowercase letter
followed by up to 62 lowercase letters, numbers, or hyphens. Pattern,
/a-z{,62}/.
string rule_id = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
clearStandardSchedule()
public BackupRule.Builder clearStandardSchedule()
Required. Defines a schedule that runs within the confines of a defined
window of time.
.google.cloud.backupdr.v1.StandardSchedule standard_schedule = 5 [(.google.api.field_behavior) = REQUIRED];
clone()
public BackupRule.Builder clone()
Overrides
getBackupRetentionDays()
public int getBackupRetentionDays()
Required. Configures the duration for which backup data will be kept. It is
defined in “days”. The value should be greater than or equal to minimum
enforced retention of the backup vault.
int32 backup_retention_days = 4 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
int |
The backupRetentionDays.
|
getBackupScheduleOneofCase()
public BackupRule.BackupScheduleOneofCase getBackupScheduleOneofCase()
getDefaultInstanceForType()
public BackupRule getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getRuleId()
public String getRuleId()
Required. Immutable. The unique id of this BackupRule
. The rule_id
is
unique per BackupPlan
.The rule_id
must start with a lowercase letter
followed by up to 62 lowercase letters, numbers, or hyphens. Pattern,
/a-z{,62}/.
string rule_id = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
Returns |
Type |
Description |
String |
The ruleId.
|
getRuleIdBytes()
public ByteString getRuleIdBytes()
Required. Immutable. The unique id of this BackupRule
. The rule_id
is
unique per BackupPlan
.The rule_id
must start with a lowercase letter
followed by up to 62 lowercase letters, numbers, or hyphens. Pattern,
/a-z{,62}/.
string rule_id = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
Returns |
Type |
Description |
ByteString |
The bytes for ruleId.
|
getStandardSchedule()
public StandardSchedule getStandardSchedule()
Required. Defines a schedule that runs within the confines of a defined
window of time.
.google.cloud.backupdr.v1.StandardSchedule standard_schedule = 5 [(.google.api.field_behavior) = REQUIRED];
getStandardScheduleBuilder()
public StandardSchedule.Builder getStandardScheduleBuilder()
Required. Defines a schedule that runs within the confines of a defined
window of time.
.google.cloud.backupdr.v1.StandardSchedule standard_schedule = 5 [(.google.api.field_behavior) = REQUIRED];
getStandardScheduleOrBuilder()
public StandardScheduleOrBuilder getStandardScheduleOrBuilder()
Required. Defines a schedule that runs within the confines of a defined
window of time.
.google.cloud.backupdr.v1.StandardSchedule standard_schedule = 5 [(.google.api.field_behavior) = REQUIRED];
hasStandardSchedule()
public boolean hasStandardSchedule()
Required. Defines a schedule that runs within the confines of a defined
window of time.
.google.cloud.backupdr.v1.StandardSchedule standard_schedule = 5 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
boolean |
Whether the standardSchedule field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(BackupRule other)
public BackupRule.Builder mergeFrom(BackupRule other)
public BackupRule.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public BackupRule.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeStandardSchedule(StandardSchedule value)
public BackupRule.Builder mergeStandardSchedule(StandardSchedule value)
Required. Defines a schedule that runs within the confines of a defined
window of time.
.google.cloud.backupdr.v1.StandardSchedule standard_schedule = 5 [(.google.api.field_behavior) = REQUIRED];
mergeUnknownFields(UnknownFieldSet unknownFields)
public final BackupRule.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setBackupRetentionDays(int value)
public BackupRule.Builder setBackupRetentionDays(int value)
Required. Configures the duration for which backup data will be kept. It is
defined in “days”. The value should be greater than or equal to minimum
enforced retention of the backup vault.
int32 backup_retention_days = 4 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
value |
int
The backupRetentionDays to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public BackupRule.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public BackupRule.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setRuleId(String value)
public BackupRule.Builder setRuleId(String value)
Required. Immutable. The unique id of this BackupRule
. The rule_id
is
unique per BackupPlan
.The rule_id
must start with a lowercase letter
followed by up to 62 lowercase letters, numbers, or hyphens. Pattern,
/a-z{,62}/.
string rule_id = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
Parameter |
Name |
Description |
value |
String
The ruleId to set.
|
setRuleIdBytes(ByteString value)
public BackupRule.Builder setRuleIdBytes(ByteString value)
Required. Immutable. The unique id of this BackupRule
. The rule_id
is
unique per BackupPlan
.The rule_id
must start with a lowercase letter
followed by up to 62 lowercase letters, numbers, or hyphens. Pattern,
/a-z{,62}/.
string rule_id = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
Parameter |
Name |
Description |
value |
ByteString
The bytes for ruleId to set.
|
setStandardSchedule(StandardSchedule value)
public BackupRule.Builder setStandardSchedule(StandardSchedule value)
Required. Defines a schedule that runs within the confines of a defined
window of time.
.google.cloud.backupdr.v1.StandardSchedule standard_schedule = 5 [(.google.api.field_behavior) = REQUIRED];
setStandardSchedule(StandardSchedule.Builder builderForValue)
public BackupRule.Builder setStandardSchedule(StandardSchedule.Builder builderForValue)
Required. Defines a schedule that runs within the confines of a defined
window of time.
.google.cloud.backupdr.v1.StandardSchedule standard_schedule = 5 [(.google.api.field_behavior) = REQUIRED];
setUnknownFields(UnknownFieldSet unknownFields)
public final BackupRule.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides