Class BackupPlanRevision (0.29.0)

public final class BackupPlanRevision extends GeneratedMessageV3 implements BackupPlanRevisionOrBuilder

BackupPlanRevision represents a snapshot of a BackupPlan at a point in time.

Protobuf type google.cloud.backupdr.v1.BackupPlanRevision

Static Fields

BACKUP_PLAN_SNAPSHOT_FIELD_NUMBER

public static final int BACKUP_PLAN_SNAPSHOT_FIELD_NUMBER
Field Value
Type Description
int

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

REVISION_ID_FIELD_NUMBER

public static final int REVISION_ID_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static BackupPlanRevision getDefaultInstance()
Returns
Type Description
BackupPlanRevision

getDescriptor()

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

newBuilder()

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

newBuilder(BackupPlanRevision prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getBackupPlanSnapshot()

public BackupPlan getBackupPlanSnapshot()

The Backup Plan being encompassed by this revision.

.google.cloud.backupdr.v1.BackupPlan backup_plan_snapshot = 4;

Returns
Type Description
BackupPlan

The backupPlanSnapshot.

getBackupPlanSnapshotOrBuilder()

public BackupPlanOrBuilder getBackupPlanSnapshotOrBuilder()

The Backup Plan being encompassed by this revision.

.google.cloud.backupdr.v1.BackupPlan backup_plan_snapshot = 4;

Returns
Type Description
BackupPlanOrBuilder

getCreateTime()

public Timestamp getCreateTime()

Output only. The timestamp that the revision was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The timestamp that the revision was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public BackupPlanRevision getDefaultInstanceForType()
Returns
Type Description
BackupPlanRevision

getName()

public String getName()

Output only. Identifier. The resource name of the BackupPlanRevision.

Format: projects/{project}/locations/{location}/backupPlans/{backup_plan}/revisions/{revision}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. Identifier. The resource name of the BackupPlanRevision.

Format: projects/{project}/locations/{location}/backupPlans/{backup_plan}/revisions/{revision}

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

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

getRevisionId()

public String getRevisionId()

Output only. The user friendly revision ID of the BackupPlanRevision.

Example: v0, v1, v2, etc.

string revision_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The revisionId.

getRevisionIdBytes()

public ByteString getRevisionIdBytes()

Output only. The user friendly revision ID of the BackupPlanRevision.

Example: v0, v1, v2, etc.

string revision_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for revisionId.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getState()

public BackupPlanRevision.State getState()

Output only. Resource State

.google.cloud.backupdr.v1.BackupPlanRevision.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
BackupPlanRevision.State

The state.

getStateValue()

public int getStateValue()

Output only. Resource State

.google.cloud.backupdr.v1.BackupPlanRevision.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

hasBackupPlanSnapshot()

public boolean hasBackupPlanSnapshot()

The Backup Plan being encompassed by this revision.

.google.cloud.backupdr.v1.BackupPlan backup_plan_snapshot = 4;

Returns
Type Description
boolean

Whether the backupPlanSnapshot field is set.

hasCreateTime()

public boolean hasCreateTime()

Output only. The timestamp that the revision was created.

.google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime 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 BackupPlanRevision.Builder newBuilderForType()
Returns
Type Description
BackupPlanRevision.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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