Class ReplicationCycle.Builder (1.21.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.vmmigration.v1.CycleStep>
Returns
TypeDescription
ReplicationCycle.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ReplicationCycle.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueCycleStep
Returns
TypeDescription
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
NameDescription
builderForValueCycleStep.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueCycleStep
Returns
TypeDescription
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
NameDescription
indexint
builderForValueCycleStep.Builder
Returns
TypeDescription
ReplicationCycle.Builder

addStepsBuilder()

public CycleStep.Builder addStepsBuilder()

The cycle's steps list representing its progress.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
CycleStep.Builder

build()

public ReplicationCycle build()
Returns
TypeDescription
ReplicationCycle

buildPartial()

public ReplicationCycle buildPartial()
Returns
TypeDescription
ReplicationCycle

clear()

public ReplicationCycle.Builder clear()
Returns
TypeDescription
ReplicationCycle.Builder
Overrides

clearCycleNumber()

public ReplicationCycle.Builder clearCycleNumber()

The cycle's ordinal number.

int32 cycle_number = 10;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ReplicationCycle.Builder

clearField(Descriptors.FieldDescriptor field)

public ReplicationCycle.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ReplicationCycle.Builder
Overrides

clearName()

public ReplicationCycle.Builder clearName()

The identifier of the ReplicationCycle.

string name = 13;

Returns
TypeDescription
ReplicationCycle.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ReplicationCycle.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ReplicationCycle.Builder

clearState()

public ReplicationCycle.Builder clearState()

State of the ReplicationCycle.

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

Returns
TypeDescription
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
TypeDescription
ReplicationCycle.Builder

clearTotalPauseDuration()

public ReplicationCycle.Builder clearTotalPauseDuration()

The accumulated duration the replication cycle was paused.

.google.protobuf.Duration total_pause_duration = 7;

Returns
TypeDescription
ReplicationCycle.Builder

clone()

public ReplicationCycle.Builder clone()
Returns
TypeDescription
ReplicationCycle.Builder
Overrides

getCycleNumber()

public int getCycleNumber()

The cycle's ordinal number.

int32 cycle_number = 10;

Returns
TypeDescription
int

The cycleNumber.

getDefaultInstanceForType()

public ReplicationCycle getDefaultInstanceForType()
Returns
TypeDescription
ReplicationCycle

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEndTime()

public Timestamp getEndTime()

The time the replication cycle has ended.

.google.protobuf.Timestamp end_time = 6;

Returns
TypeDescription
Timestamp

The endTime.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

The time the replication cycle has ended.

.google.protobuf.Timestamp end_time = 6;

Returns
TypeDescription
Builder

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

The time the replication cycle has ended.

.google.protobuf.Timestamp end_time = 6;

Returns
TypeDescription
TimestampOrBuilder

getError()

public Status getError()

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

.google.rpc.Status error = 12;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
com.google.rpc.StatusOrBuilder

getName()

public String getName()

The identifier of the ReplicationCycle.

string name = 13;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The identifier of the ReplicationCycle.

string name = 13;

Returns
TypeDescription
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
TypeDescription
int

The progressPercent.

getStartTime()

public Timestamp getStartTime()

The time the replication cycle has started.

.google.protobuf.Timestamp start_time = 1;

Returns
TypeDescription
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

The time the replication cycle has started.

.google.protobuf.Timestamp start_time = 1;

Returns
TypeDescription
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

The time the replication cycle has started.

.google.protobuf.Timestamp start_time = 1;

Returns
TypeDescription
TimestampOrBuilder

getState()

public ReplicationCycle.State getState()

State of the ReplicationCycle.

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

Returns
TypeDescription
ReplicationCycle.State

The state.

getStateValue()

public int getStateValue()

State of the ReplicationCycle.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<Builder>

getStepsCount()

public int getStepsCount()

The cycle's steps list representing its progress.

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

Returns
TypeDescription
int

getStepsList()

public List<CycleStep> getStepsList()

The cycle's steps list representing its progress.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
CycleStepOrBuilder

getStepsOrBuilderList()

public List<? extends CycleStepOrBuilder> getStepsOrBuilderList()

The cycle's steps list representing its progress.

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

Returns
TypeDescription
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
TypeDescription
Duration

The totalPauseDuration.

getTotalPauseDurationBuilder()

public Duration.Builder getTotalPauseDurationBuilder()

The accumulated duration the replication cycle was paused.

.google.protobuf.Duration total_pause_duration = 7;

Returns
TypeDescription
Builder

getTotalPauseDurationOrBuilder()

public DurationOrBuilder getTotalPauseDurationOrBuilder()

The accumulated duration the replication cycle was paused.

.google.protobuf.Duration total_pause_duration = 7;

Returns
TypeDescription
DurationOrBuilder

hasEndTime()

public boolean hasEndTime()

The time the replication cycle has ended.

.google.protobuf.Timestamp end_time = 6;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the totalPauseDuration field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
ReplicationCycle.Builder

mergeFrom(ReplicationCycle other)

public ReplicationCycle.Builder mergeFrom(ReplicationCycle other)
Parameter
NameDescription
otherReplicationCycle
Returns
TypeDescription
ReplicationCycle.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ReplicationCycle.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ReplicationCycle.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ReplicationCycle.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
ReplicationCycle.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ReplicationCycle.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ReplicationCycle.Builder

setCycleNumber(int value)

public ReplicationCycle.Builder setCycleNumber(int value)

The cycle's ordinal number.

int32 cycle_number = 10;

Parameter
NameDescription
valueint

The cycleNumber to set.

Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
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
NameDescription
builderForValuecom.google.rpc.Status.Builder
Returns
TypeDescription
ReplicationCycle.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ReplicationCycle.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ReplicationCycle.Builder
Overrides

setName(String value)

public ReplicationCycle.Builder setName(String value)

The identifier of the ReplicationCycle.

string name = 13;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
ReplicationCycle.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ReplicationCycle.Builder setNameBytes(ByteString value)

The identifier of the ReplicationCycle.

string name = 13;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
valueint

The progressPercent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueReplicationCycle.State

The state to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
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
NameDescription
indexint
valueCycleStep
Returns
TypeDescription
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
NameDescription
indexint
builderForValueCycleStep.Builder
Returns
TypeDescription
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
NameDescription
valueDuration
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
ReplicationCycle.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final ReplicationCycle.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ReplicationCycle.Builder
Overrides