publicfinalclass BackupRuleextendsGeneratedMessageV3implementsBackupRuleOrBuilder
BackupRule binds the backup schedule to a retention policy.
Protobuf type google.cloud.backupdr.v1.BackupRule
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
BACKUP_RETENTION_DAYS_FIELD_NUMBER
publicstaticfinalintBACKUP_RETENTION_DAYS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
RULE_ID_FIELD_NUMBER
publicstaticfinalintRULE_ID_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
STANDARD_SCHEDULE_FIELD_NUMBER
publicstaticfinalintSTANDARD_SCHEDULE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
Static Methods
getDefaultInstance()
publicstaticBackupRulegetDefaultInstance()
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()
newBuilder()
publicstaticBackupRule.BuildernewBuilder()
newBuilder(BackupRule prototype)
publicstaticBackupRule.BuildernewBuilder(BackupRuleprototype)
publicstaticBackupRuleparseDelimitedFrom(InputStreaminput)
publicstaticBackupRuleparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(byte[] data)
publicstaticBackupRuleparseFrom(byte[]data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
publicstaticBackupRuleparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteString data)
publicstaticBackupRuleparseFrom(ByteStringdata)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
publicstaticBackupRuleparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
publicstaticBackupRuleparseFrom(CodedInputStreaminput)
publicstaticBackupRuleparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
publicstaticBackupRuleparseFrom(InputStreaminput)
publicstaticBackupRuleparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
parseFrom(ByteBuffer data)
publicstaticBackupRuleparseFrom(ByteBufferdata)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
publicstaticBackupRuleparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
parser()
publicstaticParser<BackupRule>parser()
Methods
equals(Object obj)
publicbooleanequals(Objectobj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getBackupRetentionDays()
publicintgetBackupRetentionDays()
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.
Minimum value is 1 and maximum value is 90 for hourly backups.
Minimum value is 1 and maximum value is 90 for daily backups.
Minimum value is 7 and maximum value is 186 for weekly backups.
Minimum value is 30 and maximum value is 732 for monthly backups.
Minimum value is 365 and maximum value is 36159 for yearly backups.
int32 backup_retention_days = 4 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
int |
The backupRetentionDays.
|
getBackupScheduleOneofCase()
publicBackupRule.BackupScheduleOneofCasegetBackupScheduleOneofCase()
getDefaultInstanceForType()
publicBackupRulegetDefaultInstanceForType()
getParserForType()
publicParser<BackupRule>getParserForType()
Overrides
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()
publicByteStringgetRuleIdBytes()
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.
|
getSerializedSize()
publicintgetSerializedSize()
| Returns |
| Type |
Description |
int |
Overrides
getStandardSchedule()
publicStandardSchedulegetStandardSchedule()
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()
publicStandardScheduleOrBuildergetStandardScheduleOrBuilder()
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()
publicbooleanhasStandardSchedule()
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.
|
hashCode()
| Returns |
| Type |
Description |
int |
Overrides
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Overrides
isInitialized()
publicfinalbooleanisInitialized()
Overrides
newBuilderForType()
publicBackupRule.BuildernewBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protectedBackupRule.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
| Returns |
| Type |
Description |
Object |
Overrides
toBuilder()
publicBackupRule.BuildertoBuilder()
writeTo(CodedOutputStream output)
publicvoidwriteTo(CodedOutputStreamoutput)
Overrides