Class BackupDrPlanRule (0.41.0)

public final class BackupDrPlanRule extends GeneratedMessageV3 implements BackupDrPlanRuleOrBuilder

BackupDrPlanRule has rule specific information of the backup plan resource.

Protobuf type google.cloud.backupdr.v1.BackupDrPlanRule

Static Fields

LAST_SUCCESSFUL_BACKUP_TIME_FIELD_NUMBER

public static final int LAST_SUCCESSFUL_BACKUP_TIME_FIELD_NUMBER
Field Value
Type Description
int

RULE_ID_FIELD_NUMBER

public static final int RULE_ID_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static BackupDrPlanRule getDefaultInstance()
Returns
Type Description
BackupDrPlanRule

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static BackupDrPlanRule.Builder newBuilder()
Returns
Type Description
BackupDrPlanRule.Builder

newBuilder(BackupDrPlanRule prototype)

public static BackupDrPlanRule.Builder newBuilder(BackupDrPlanRule prototype)
Parameter
Name Description
prototype BackupDrPlanRule
Returns
Type Description
BackupDrPlanRule.Builder

parseDelimitedFrom(InputStream input)

public static BackupDrPlanRule parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
BackupDrPlanRule
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BackupDrPlanRule parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackupDrPlanRule
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static BackupDrPlanRule parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
BackupDrPlanRule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static BackupDrPlanRule parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackupDrPlanRule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static BackupDrPlanRule parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
BackupDrPlanRule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static BackupDrPlanRule parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackupDrPlanRule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static BackupDrPlanRule parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
BackupDrPlanRule
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static BackupDrPlanRule parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackupDrPlanRule
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static BackupDrPlanRule parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
BackupDrPlanRule
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static BackupDrPlanRule parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackupDrPlanRule
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static BackupDrPlanRule parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
BackupDrPlanRule
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static BackupDrPlanRule parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
BackupDrPlanRule
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<BackupDrPlanRule> parser()
Returns
Type Description
Parser<BackupDrPlanRule>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public BackupDrPlanRule getDefaultInstanceForType()
Returns
Type Description
BackupDrPlanRule

getLastSuccessfulBackupTime()

public Timestamp getLastSuccessfulBackupTime()

Output only. Timestamp of the latest successful backup created via this backup rule.

.google.protobuf.Timestamp last_successful_backup_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The lastSuccessfulBackupTime.

getLastSuccessfulBackupTimeOrBuilder()

public TimestampOrBuilder getLastSuccessfulBackupTimeOrBuilder()

Output only. Timestamp of the latest successful backup created via this backup rule.

.google.protobuf.Timestamp last_successful_backup_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getParserForType()

public Parser<BackupDrPlanRule> getParserForType()
Returns
Type Description
Parser<BackupDrPlanRule>
Overrides

getRuleId()

public String getRuleId()

Output only. Unique Id of the backup rule.

string rule_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The ruleId.

getRuleIdBytes()

public ByteString getRuleIdBytes()

Output only. Unique Id of the backup rule.

string rule_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for ruleId.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasLastSuccessfulBackupTime()

public boolean hasLastSuccessfulBackupTime()

Output only. Timestamp of the latest successful backup created via this backup rule.

.google.protobuf.Timestamp last_successful_backup_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the lastSuccessfulBackupTime field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public BackupDrPlanRule.Builder newBuilderForType()
Returns
Type Description
BackupDrPlanRule.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected BackupDrPlanRule.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
BackupDrPlanRule.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public BackupDrPlanRule.Builder toBuilder()
Returns
Type Description
BackupDrPlanRule.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException