Class ReplicationCycle.Builder (1.44.0)

public static final class ReplicationCycle.Builder extends GeneratedMessageV3.Builder<ReplicationCycle.Builder> implements ReplicationCycleOrBuilder

ReplicationCycle contains information about the current replication cycle status.

Protobuf type google.cloud.vmmigration.v1.ReplicationCycle

Static Methods

getDescriptor()

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

Methods

addAllSteps(Iterable<? extends CycleStep> values)

public ReplicationCycle.Builder addAllSteps(Iterable<? extends CycleStep> values)

The cycle's steps list representing its progress.

repeated .google.cloud.vmmigration.v1.CycleStep steps = 9;

Parameter
Name Description
values Iterable<? extends com.google.cloud.vmmigration.v1.CycleStep>
Returns
Type Description
ReplicationCycle.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ReplicationCycle.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ReplicationCycle.Builder
Overrides

addSteps(CycleStep value)

public ReplicationCycle.Builder addSteps(CycleStep value)

The cycle's steps list representing its progress.

repeated .google.cloud.vmmigration.v1.CycleStep steps = 9;

Parameter
Name Description
value CycleStep
Returns
Type Description
ReplicationCycle.Builder

addSteps(CycleStep.Builder builderForValue)

public ReplicationCycle.Builder addSteps(CycleStep.Builder builderForValue)

The cycle's steps list representing its progress.

repeated .google.cloud.vmmigration.v1.CycleStep steps = 9;

Parameter
Name Description
builderForValue CycleStep.Builder
Returns
Type Description
ReplicationCycle.Builder

addSteps(int index, CycleStep value)

public ReplicationCycle.Builder addSteps(int index, CycleStep value)

The cycle's steps list representing its progress.

repeated .google.cloud.vmmigration.v1.CycleStep steps = 9;

Parameters
Name Description
index int
value CycleStep
Returns
Type Description
ReplicationCycle.Builder

addSteps(int index, CycleStep.Builder builderForValue)

public ReplicationCycle.Builder addSteps(int index, CycleStep.Builder builderForValue)

The cycle's steps list representing its progress.

repeated .google.cloud.vmmigration.v1.CycleStep steps = 9;

Parameters
Name Description
index int
builderForValue CycleStep.Builder
Returns
Type Description
ReplicationCycle.Builder

addStepsBuilder()

public CycleStep.Builder addStepsBuilder()

The cycle's steps list representing its progress.

repeated .google.cloud.vmmigration.v1.CycleStep steps = 9;

Returns
Type Description
CycleStep.Builder

addStepsBuilder(int index)

public CycleStep.Builder addStepsBuilder(int index)

The cycle's steps list representing its progress.

repeated .google.cloud.vmmigration.v1.CycleStep steps = 9;

Parameter
Name Description
index int
Returns
Type Description
CycleStep.Builder

build()

public ReplicationCycle build()
Returns
Type Description
ReplicationCycle

buildPartial()

public ReplicationCycle buildPartial()
Returns
Type Description
ReplicationCycle

clear()

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

clearCycleNumber()

public ReplicationCycle.Builder clearCycleNumber()

The cycle's ordinal number.

int32 cycle_number = 10;

Returns
Type Description
ReplicationCycle.Builder

This builder for chaining.

clearEndTime()

public ReplicationCycle.Builder clearEndTime()

The time the replication cycle has ended.

.google.protobuf.Timestamp end_time = 6;

Returns
Type Description
ReplicationCycle.Builder

clearError()

public ReplicationCycle.Builder clearError()

Provides details on the state of the cycle in case of an error.

.google.rpc.Status error = 12;

Returns
Type Description
ReplicationCycle.Builder

clearField(Descriptors.FieldDescriptor field)

public ReplicationCycle.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ReplicationCycle.Builder
Overrides

clearName()

public ReplicationCycle.Builder clearName()

The identifier of the ReplicationCycle.

string name = 13;

Returns
Type Description
ReplicationCycle.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ReplicationCycle.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ReplicationCycle.Builder
Overrides

clearProgressPercent() (deprecated)

public ReplicationCycle.Builder clearProgressPercent()

Deprecated. google.cloud.vmmigration.v1.ReplicationCycle.progress_percent is deprecated. See google/cloud/vmmigration/v1/vmmigration.proto;l=715

The current progress in percentage of this cycle. Was replaced by 'steps' field, which breaks down the cycle progression more accurately.

int32 progress_percent = 5 [deprecated = true];

Returns
Type Description
ReplicationCycle.Builder

This builder for chaining.

clearStartTime()

public ReplicationCycle.Builder clearStartTime()

The time the replication cycle has started.

.google.protobuf.Timestamp start_time = 1;

Returns
Type Description
ReplicationCycle.Builder

clearState()

public ReplicationCycle.Builder clearState()

State of the ReplicationCycle.

.google.cloud.vmmigration.v1.ReplicationCycle.State state = 11;

Returns
Type Description
ReplicationCycle.Builder

This builder for chaining.

clearSteps()

public ReplicationCycle.Builder clearSteps()

The cycle's steps list representing its progress.

repeated .google.cloud.vmmigration.v1.CycleStep steps = 9;

Returns
Type Description
ReplicationCycle.Builder

clearTotalPauseDuration()

public ReplicationCycle.Builder clearTotalPauseDuration()

The accumulated duration the replication cycle was paused.

.google.protobuf.Duration total_pause_duration = 7;

Returns
Type Description
ReplicationCycle.Builder

clone()

public ReplicationCycle.Builder clone()
Returns
Type Description
ReplicationCycle.Builder
Overrides

getCycleNumber()

public int getCycleNumber()

The cycle's ordinal number.

int32 cycle_number = 10;

Returns
Type Description
int

The cycleNumber.

getDefaultInstanceForType()

public ReplicationCycle getDefaultInstanceForType()
Returns
Type Description
ReplicationCycle

getDescriptorForType()

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

getEndTime()

public Timestamp getEndTime()

The time the replication cycle has ended.

.google.protobuf.Timestamp end_time = 6;

Returns
Type Description
Timestamp

The endTime.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

The time the replication cycle has ended.

.google.protobuf.Timestamp end_time = 6;

Returns
Type Description
Builder

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

The time the replication cycle has ended.

.google.protobuf.Timestamp end_time = 6;

Returns
Type Description
TimestampOrBuilder

getError()

public Status getError()

Provides details on the state of the cycle in case of an error.

.google.rpc.Status error = 12;

Returns
Type Description
com.google.rpc.Status

The error.

getErrorBuilder()

public Status.Builder getErrorBuilder()

Provides details on the state of the cycle in case of an error.

.google.rpc.Status error = 12;

Returns
Type Description
com.google.rpc.Status.Builder

getErrorOrBuilder()

public StatusOrBuilder getErrorOrBuilder()

Provides details on the state of the cycle in case of an error.

.google.rpc.Status error = 12;

Returns
Type Description
com.google.rpc.StatusOrBuilder

getName()

public String getName()

The identifier of the ReplicationCycle.

string name = 13;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The identifier of the ReplicationCycle.

string name = 13;

Returns
Type Description
ByteString

The bytes for name.

getProgressPercent() (deprecated)

public int getProgressPercent()

Deprecated. google.cloud.vmmigration.v1.ReplicationCycle.progress_percent is deprecated. See google/cloud/vmmigration/v1/vmmigration.proto;l=715

The current progress in percentage of this cycle. Was replaced by 'steps' field, which breaks down the cycle progression more accurately.

int32 progress_percent = 5 [deprecated = true];

Returns
Type Description
int

The progressPercent.

getStartTime()

public Timestamp getStartTime()

The time the replication cycle has started.

.google.protobuf.Timestamp start_time = 1;

Returns
Type Description
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

The time the replication cycle has started.

.google.protobuf.Timestamp start_time = 1;

Returns
Type Description
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

The time the replication cycle has started.

.google.protobuf.Timestamp start_time = 1;

Returns
Type Description
TimestampOrBuilder

getState()

public ReplicationCycle.State getState()

State of the ReplicationCycle.

.google.cloud.vmmigration.v1.ReplicationCycle.State state = 11;

Returns
Type Description
ReplicationCycle.State

The state.

getStateValue()

public int getStateValue()

State of the ReplicationCycle.

.google.cloud.vmmigration.v1.ReplicationCycle.State state = 11;

Returns
Type Description
int

The enum numeric value on the wire for state.

getSteps(int index)

public CycleStep getSteps(int index)

The cycle's steps list representing its progress.

repeated .google.cloud.vmmigration.v1.CycleStep steps = 9;

Parameter
Name Description
index int
Returns
Type Description
CycleStep

getStepsBuilder(int index)

public CycleStep.Builder getStepsBuilder(int index)

The cycle's steps list representing its progress.

repeated .google.cloud.vmmigration.v1.CycleStep steps = 9;

Parameter
Name Description
index int
Returns
Type Description
CycleStep.Builder

getStepsBuilderList()

public List<CycleStep.Builder> getStepsBuilderList()

The cycle's steps list representing its progress.

repeated .google.cloud.vmmigration.v1.CycleStep steps = 9;

Returns
Type Description
List<Builder>

getStepsCount()

public int getStepsCount()

The cycle's steps list representing its progress.

repeated .google.cloud.vmmigration.v1.CycleStep steps = 9;

Returns
Type Description
int

getStepsList()

public List<CycleStep> getStepsList()

The cycle's steps list representing its progress.

repeated .google.cloud.vmmigration.v1.CycleStep steps = 9;

Returns
Type Description
List<CycleStep>

getStepsOrBuilder(int index)

public CycleStepOrBuilder getStepsOrBuilder(int index)

The cycle's steps list representing its progress.

repeated .google.cloud.vmmigration.v1.CycleStep steps = 9;

Parameter
Name Description
index int
Returns
Type Description
CycleStepOrBuilder

getStepsOrBuilderList()

public List<? extends CycleStepOrBuilder> getStepsOrBuilderList()

The cycle's steps list representing its progress.

repeated .google.cloud.vmmigration.v1.CycleStep steps = 9;

Returns
Type Description
List<? extends com.google.cloud.vmmigration.v1.CycleStepOrBuilder>

getTotalPauseDuration()

public Duration getTotalPauseDuration()

The accumulated duration the replication cycle was paused.

.google.protobuf.Duration total_pause_duration = 7;

Returns
Type Description
Duration

The totalPauseDuration.

getTotalPauseDurationBuilder()

public Duration.Builder getTotalPauseDurationBuilder()

The accumulated duration the replication cycle was paused.

.google.protobuf.Duration total_pause_duration = 7;

Returns
Type Description
Builder

getTotalPauseDurationOrBuilder()

public DurationOrBuilder getTotalPauseDurationOrBuilder()

The accumulated duration the replication cycle was paused.

.google.protobuf.Duration total_pause_duration = 7;

Returns
Type Description
DurationOrBuilder

hasEndTime()

public boolean hasEndTime()

The time the replication cycle has ended.

.google.protobuf.Timestamp end_time = 6;

Returns
Type Description
boolean

Whether the endTime field is set.

hasError()

public boolean hasError()

Provides details on the state of the cycle in case of an error.

.google.rpc.Status error = 12;

Returns
Type Description
boolean

Whether the error field is set.

hasStartTime()

public boolean hasStartTime()

The time the replication cycle has started.

.google.protobuf.Timestamp start_time = 1;

Returns
Type Description
boolean

Whether the startTime field is set.

hasTotalPauseDuration()

public boolean hasTotalPauseDuration()

The accumulated duration the replication cycle was paused.

.google.protobuf.Duration total_pause_duration = 7;

Returns
Type Description
boolean

Whether the totalPauseDuration field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEndTime(Timestamp value)

public ReplicationCycle.Builder mergeEndTime(Timestamp value)

The time the replication cycle has ended.

.google.protobuf.Timestamp end_time = 6;

Parameter
Name Description
value Timestamp
Returns
Type Description
ReplicationCycle.Builder

mergeError(Status value)

public ReplicationCycle.Builder mergeError(Status value)

Provides details on the state of the cycle in case of an error.

.google.rpc.Status error = 12;

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

mergeFrom(ReplicationCycle other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeStartTime(Timestamp value)

public ReplicationCycle.Builder mergeStartTime(Timestamp value)

The time the replication cycle has started.

.google.protobuf.Timestamp start_time = 1;

Parameter
Name Description
value Timestamp
Returns
Type Description
ReplicationCycle.Builder

mergeTotalPauseDuration(Duration value)

public ReplicationCycle.Builder mergeTotalPauseDuration(Duration value)

The accumulated duration the replication cycle was paused.

.google.protobuf.Duration total_pause_duration = 7;

Parameter
Name Description
value Duration
Returns
Type Description
ReplicationCycle.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ReplicationCycle.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ReplicationCycle.Builder
Overrides

removeSteps(int index)

public ReplicationCycle.Builder removeSteps(int index)

The cycle's steps list representing its progress.

repeated .google.cloud.vmmigration.v1.CycleStep steps = 9;

Parameter
Name Description
index int
Returns
Type Description
ReplicationCycle.Builder

setCycleNumber(int value)

public ReplicationCycle.Builder setCycleNumber(int value)

The cycle's ordinal number.

int32 cycle_number = 10;

Parameter
Name Description
value int

The cycleNumber to set.

Returns
Type Description
ReplicationCycle.Builder

This builder for chaining.

setEndTime(Timestamp value)

public ReplicationCycle.Builder setEndTime(Timestamp value)

The time the replication cycle has ended.

.google.protobuf.Timestamp end_time = 6;

Parameter
Name Description
value Timestamp
Returns
Type Description
ReplicationCycle.Builder

setEndTime(Timestamp.Builder builderForValue)

public ReplicationCycle.Builder setEndTime(Timestamp.Builder builderForValue)

The time the replication cycle has ended.

.google.protobuf.Timestamp end_time = 6;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ReplicationCycle.Builder

setError(Status value)

public ReplicationCycle.Builder setError(Status value)

Provides details on the state of the cycle in case of an error.

.google.rpc.Status error = 12;

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

setError(Status.Builder builderForValue)

public ReplicationCycle.Builder setError(Status.Builder builderForValue)

Provides details on the state of the cycle in case of an error.

.google.rpc.Status error = 12;

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

setField(Descriptors.FieldDescriptor field, Object value)

public ReplicationCycle.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ReplicationCycle.Builder
Overrides

setName(String value)

public ReplicationCycle.Builder setName(String value)

The identifier of the ReplicationCycle.

string name = 13;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ReplicationCycle.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ReplicationCycle.Builder setNameBytes(ByteString value)

The identifier of the ReplicationCycle.

string name = 13;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ReplicationCycle.Builder

This builder for chaining.

setProgressPercent(int value) (deprecated)

public ReplicationCycle.Builder setProgressPercent(int value)

Deprecated. google.cloud.vmmigration.v1.ReplicationCycle.progress_percent is deprecated. See google/cloud/vmmigration/v1/vmmigration.proto;l=715

The current progress in percentage of this cycle. Was replaced by 'steps' field, which breaks down the cycle progression more accurately.

int32 progress_percent = 5 [deprecated = true];

Parameter
Name Description
value int

The progressPercent to set.

Returns
Type Description
ReplicationCycle.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ReplicationCycle.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ReplicationCycle.Builder
Overrides

setStartTime(Timestamp value)

public ReplicationCycle.Builder setStartTime(Timestamp value)

The time the replication cycle has started.

.google.protobuf.Timestamp start_time = 1;

Parameter
Name Description
value Timestamp
Returns
Type Description
ReplicationCycle.Builder

setStartTime(Timestamp.Builder builderForValue)

public ReplicationCycle.Builder setStartTime(Timestamp.Builder builderForValue)

The time the replication cycle has started.

.google.protobuf.Timestamp start_time = 1;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ReplicationCycle.Builder

setState(ReplicationCycle.State value)

public ReplicationCycle.Builder setState(ReplicationCycle.State value)

State of the ReplicationCycle.

.google.cloud.vmmigration.v1.ReplicationCycle.State state = 11;

Parameter
Name Description
value ReplicationCycle.State

The state to set.

Returns
Type Description
ReplicationCycle.Builder

This builder for chaining.

setStateValue(int value)

public ReplicationCycle.Builder setStateValue(int value)

State of the ReplicationCycle.

.google.cloud.vmmigration.v1.ReplicationCycle.State state = 11;

Parameter
Name Description
value int

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

Returns
Type Description
ReplicationCycle.Builder

This builder for chaining.

setSteps(int index, CycleStep value)

public ReplicationCycle.Builder setSteps(int index, CycleStep value)

The cycle's steps list representing its progress.

repeated .google.cloud.vmmigration.v1.CycleStep steps = 9;

Parameters
Name Description
index int
value CycleStep
Returns
Type Description
ReplicationCycle.Builder

setSteps(int index, CycleStep.Builder builderForValue)

public ReplicationCycle.Builder setSteps(int index, CycleStep.Builder builderForValue)

The cycle's steps list representing its progress.

repeated .google.cloud.vmmigration.v1.CycleStep steps = 9;

Parameters
Name Description
index int
builderForValue CycleStep.Builder
Returns
Type Description
ReplicationCycle.Builder

setTotalPauseDuration(Duration value)

public ReplicationCycle.Builder setTotalPauseDuration(Duration value)

The accumulated duration the replication cycle was paused.

.google.protobuf.Duration total_pause_duration = 7;

Parameter
Name Description
value Duration
Returns
Type Description
ReplicationCycle.Builder

setTotalPauseDuration(Duration.Builder builderForValue)

public ReplicationCycle.Builder setTotalPauseDuration(Duration.Builder builderForValue)

The accumulated duration the replication cycle was paused.

.google.protobuf.Duration total_pause_duration = 7;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ReplicationCycle.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ReplicationCycle.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ReplicationCycle.Builder
Overrides