Class RestorePhaseInfo.Builder (0.62.0)

public static final class RestorePhaseInfo.Builder extends GeneratedMessage.Builder<RestorePhaseInfo.Builder> implements RestorePhaseInfoOrBuilder

Info for Restore phase execution.

Protobuf type google.cloud.backupdr.v1.RestorePhaseInfo

Static Methods

getDescriptor()

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

Methods

build()

public RestorePhaseInfo build()
Returns
Type Description
RestorePhaseInfo

buildPartial()

public RestorePhaseInfo buildPartial()
Returns
Type Description
RestorePhaseInfo

clear()

public RestorePhaseInfo.Builder clear()
Returns
Type Description
RestorePhaseInfo.Builder
Overrides

clearEndTime()

public RestorePhaseInfo.Builder clearEndTime()

Output only. End time of the phase.

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

Returns
Type Description
RestorePhaseInfo.Builder

clearError()

public RestorePhaseInfo.Builder clearError()

Output only. Error details if the phase failed.

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

Returns
Type Description
RestorePhaseInfo.Builder

clearPhaseState()

public RestorePhaseInfo.Builder clearPhaseState()

Output only. The state of this phase.

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

Returns
Type Description
RestorePhaseInfo.Builder

This builder for chaining.

clearRestoreDuration()

public RestorePhaseInfo.Builder clearRestoreDuration()

Output only. Time taken to restore the resource.

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

Returns
Type Description
RestorePhaseInfo.Builder

clearRestoreProperties()

public RestorePhaseInfo.Builder clearRestoreProperties()

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
RestorePhaseInfo.Builder

clearRestoreResource()

public RestorePhaseInfo.Builder clearRestoreResource()

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

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

Returns
Type Description
RestorePhaseInfo.Builder

This builder for chaining.

clearStartTime()

public RestorePhaseInfo.Builder clearStartTime()

Output only. Start time of the phase.

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

Returns
Type Description
RestorePhaseInfo.Builder

getDefaultInstanceForType()

public RestorePhaseInfo getDefaultInstanceForType()
Returns
Type Description
RestorePhaseInfo

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

Output only. End time of the phase.

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

Returns
Type Description
Builder

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.

getErrorBuilder()

public Status.Builder getErrorBuilder()

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.Builder

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

getPhaseState()

public PhaseState getPhaseState()

Output only. The state of this phase.

.google.cloud.backupdr.v1.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.v1.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.

getRestoreDurationBuilder()

public Duration.Builder getRestoreDurationBuilder()

Output only. Time taken to restore the resource.

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

Returns
Type Description
Builder

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.

getRestorePropertiesBuilder()

public Struct.Builder getRestorePropertiesBuilder()

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
Builder

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.

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.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

Output only. Start time of the phase.

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

Returns
Type Description
Builder

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEndTime(Timestamp value)

public RestorePhaseInfo.Builder mergeEndTime(Timestamp value)

Output only. End time of the phase.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
RestorePhaseInfo.Builder

mergeError(Status value)

public RestorePhaseInfo.Builder mergeError(Status value)

Output only. Error details if the phase failed.

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

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description
RestorePhaseInfo.Builder

mergeFrom(RestorePhaseInfo other)

public RestorePhaseInfo.Builder mergeFrom(RestorePhaseInfo other)
Parameter
Name Description
other RestorePhaseInfo
Returns
Type Description
RestorePhaseInfo.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RestorePhaseInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RestorePhaseInfo.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public RestorePhaseInfo.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
RestorePhaseInfo.Builder
Overrides

mergeRestoreDuration(Duration value)

public RestorePhaseInfo.Builder mergeRestoreDuration(Duration value)

Output only. Time taken to restore the resource.

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

Parameter
Name Description
value Duration
Returns
Type Description
RestorePhaseInfo.Builder

mergeRestoreProperties(Struct value)

public RestorePhaseInfo.Builder mergeRestoreProperties(Struct value)

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

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

Parameter
Name Description
value Struct
Returns
Type Description
RestorePhaseInfo.Builder

mergeStartTime(Timestamp value)

public RestorePhaseInfo.Builder mergeStartTime(Timestamp value)

Output only. Start time of the phase.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
RestorePhaseInfo.Builder

setEndTime(Timestamp value)

public RestorePhaseInfo.Builder setEndTime(Timestamp value)

Output only. End time of the phase.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
RestorePhaseInfo.Builder

setEndTime(Timestamp.Builder builderForValue)

public RestorePhaseInfo.Builder setEndTime(Timestamp.Builder builderForValue)

Output only. End time of the phase.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
RestorePhaseInfo.Builder

setError(Status value)

public RestorePhaseInfo.Builder setError(Status value)

Output only. Error details if the phase failed.

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

Parameter
Name Description
value com.google.rpc.Status
Returns
Type Description
RestorePhaseInfo.Builder

setError(Status.Builder builderForValue)

public RestorePhaseInfo.Builder setError(Status.Builder builderForValue)

Output only. Error details if the phase failed.

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

Parameter
Name Description
builderForValue com.google.rpc.Status.Builder
Returns
Type Description
RestorePhaseInfo.Builder

setPhaseState(PhaseState value)

public RestorePhaseInfo.Builder setPhaseState(PhaseState value)

Output only. The state of this phase.

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

Parameter
Name Description
value PhaseState

The phaseState to set.

Returns
Type Description
RestorePhaseInfo.Builder

This builder for chaining.

setPhaseStateValue(int value)

public RestorePhaseInfo.Builder setPhaseStateValue(int value)

Output only. The state of this phase.

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

Parameter
Name Description
value int

The enum numeric value on the wire for phaseState to set.

Returns
Type Description
RestorePhaseInfo.Builder

This builder for chaining.

setRestoreDuration(Duration value)

public RestorePhaseInfo.Builder setRestoreDuration(Duration value)

Output only. Time taken to restore the resource.

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

Parameter
Name Description
value Duration
Returns
Type Description
RestorePhaseInfo.Builder

setRestoreDuration(Duration.Builder builderForValue)

public RestorePhaseInfo.Builder setRestoreDuration(Duration.Builder builderForValue)

Output only. Time taken to restore the resource.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
RestorePhaseInfo.Builder

setRestoreProperties(Struct value)

public RestorePhaseInfo.Builder setRestoreProperties(Struct value)

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

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

Parameter
Name Description
value Struct
Returns
Type Description
RestorePhaseInfo.Builder

setRestoreProperties(Struct.Builder builderForValue)

public RestorePhaseInfo.Builder setRestoreProperties(Struct.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
RestorePhaseInfo.Builder

setRestoreResource(String value)

public RestorePhaseInfo.Builder setRestoreResource(String value)

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

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

Parameter
Name Description
value String

The restoreResource to set.

Returns
Type Description
RestorePhaseInfo.Builder

This builder for chaining.

setRestoreResourceBytes(ByteString value)

public RestorePhaseInfo.Builder setRestoreResourceBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for restoreResource to set.

Returns
Type Description
RestorePhaseInfo.Builder

This builder for chaining.

setStartTime(Timestamp value)

public RestorePhaseInfo.Builder setStartTime(Timestamp value)

Output only. Start time of the phase.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
RestorePhaseInfo.Builder

setStartTime(Timestamp.Builder builderForValue)

public RestorePhaseInfo.Builder setStartTime(Timestamp.Builder builderForValue)

Output only. Start time of the phase.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
RestorePhaseInfo.Builder