Class RestorePhaseInfo (0.62.0)

public final class RestorePhaseInfo extends GeneratedMessage implements RestorePhaseInfoOrBuilder

Info for Restore phase execution.

Protobuf type google.cloud.backupdr.v1beta.RestorePhaseInfo

Static Fields

END_TIME_FIELD_NUMBER

public static final int END_TIME_FIELD_NUMBER
Field Value
Type Description
int

ERROR_FIELD_NUMBER

public static final int ERROR_FIELD_NUMBER
Field Value
Type Description
int

PHASE_STATE_FIELD_NUMBER

public static final int PHASE_STATE_FIELD_NUMBER
Field Value
Type Description
int

RESTORE_DURATION_FIELD_NUMBER

public static final int RESTORE_DURATION_FIELD_NUMBER
Field Value
Type Description
int

RESTORE_PROPERTIES_FIELD_NUMBER

public static final int RESTORE_PROPERTIES_FIELD_NUMBER
Field Value
Type Description
int

RESTORE_RESOURCE_FIELD_NUMBER

public static final int RESTORE_RESOURCE_FIELD_NUMBER
Field Value
Type Description
int

START_TIME_FIELD_NUMBER

public static final int START_TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static RestorePhaseInfo getDefaultInstance()
Returns
Type Description
RestorePhaseInfo

getDescriptor()

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

newBuilder()

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

newBuilder(RestorePhaseInfo prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public RestorePhaseInfo getDefaultInstanceForType()
Returns
Type Description
RestorePhaseInfo

getEndTime()

public Timestamp getEndTime()

Output only. End time of the phase.

.google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The endTime.

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

Output only. End time of the phase.

.google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getError()

public Status getError()

Output only. Error details if the phase failed.

.google.rpc.Status error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.rpc.Status

The error.

getErrorOrBuilder()

public StatusOrBuilder getErrorOrBuilder()

Output only. Error details if the phase failed.

.google.rpc.Status error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.rpc.StatusOrBuilder

getParserForType()

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

getPhaseState()

public PhaseState getPhaseState()

Output only. The state of this phase.

.google.cloud.backupdr.v1beta.PhaseState phase_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PhaseState

The phaseState.

getPhaseStateValue()

public int getPhaseStateValue()

Output only. The state of this phase.

.google.cloud.backupdr.v1beta.PhaseState phase_state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for phaseState.

getRestoreDuration()

public Duration getRestoreDuration()

Output only. Time taken to restore the resource.

.google.protobuf.Duration restore_duration = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Duration

The restoreDuration.

getRestoreDurationOrBuilder()

public DurationOrBuilder getRestoreDurationOrBuilder()

Output only. Time taken to restore the resource.

.google.protobuf.Duration restore_duration = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DurationOrBuilder

getRestoreProperties()

public Struct getRestoreProperties()

Output only. Snapshot of environment config used during restore of this RestoreTemplateExecution.

.google.protobuf.Struct restore_properties = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Struct

The restoreProperties.

getRestorePropertiesOrBuilder()

public StructOrBuilder getRestorePropertiesOrBuilder()

Output only. Snapshot of environment config used during restore of this RestoreTemplateExecution.

.google.protobuf.Struct restore_properties = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
StructOrBuilder

getRestoreResource()

public String getRestoreResource()

Output only. The resource created or restored by this execution.

string restore_resource = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The restoreResource.

getRestoreResourceBytes()

public ByteString getRestoreResourceBytes()

Output only. The resource created or restored by this execution.

string restore_resource = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for restoreResource.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getStartTime()

public Timestamp getStartTime()

Output only. Start time of the phase.

.google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The startTime.

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Output only. Start time of the phase.

.google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasEndTime()

public boolean hasEndTime()

Output only. End time of the phase.

.google.protobuf.Timestamp end_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the endTime field is set.

hasError()

public boolean hasError()

Output only. Error details if the phase failed.

.google.rpc.Status error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the error field is set.

hasRestoreDuration()

public boolean hasRestoreDuration()

Output only. Time taken to restore the resource.

.google.protobuf.Duration restore_duration = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the restoreDuration field is set.

hasRestoreProperties()

public boolean hasRestoreProperties()

Output only. Snapshot of environment config used during restore of this RestoreTemplateExecution.

.google.protobuf.Struct restore_properties = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the restoreProperties field is set.

hasStartTime()

public boolean hasStartTime()

Output only. Start time of the phase.

.google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the startTime field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(AbstractMessage.BuilderParent parent)

protected RestorePhaseInfo.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
RestorePhaseInfo.Builder
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

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