Class ReplicationCycle (1.40.0)

public final class ReplicationCycle extends GeneratedMessageV3 implements ReplicationCycleOrBuilder

ReplicationCycle contains information about the current replication cycle status.

Protobuf type google.cloud.vmmigration.v1.ReplicationCycle

Static Fields

CYCLE_NUMBER_FIELD_NUMBER

public static final int CYCLE_NUMBER_FIELD_NUMBER
Field Value
TypeDescription
int

END_TIME_FIELD_NUMBER

public static final int END_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

ERROR_FIELD_NUMBER

public static final int ERROR_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

PROGRESS_PERCENT_FIELD_NUMBER

public static final int PROGRESS_PERCENT_FIELD_NUMBER
Field Value
TypeDescription
int

START_TIME_FIELD_NUMBER

public static final int START_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
TypeDescription
int

STEPS_FIELD_NUMBER

public static final int STEPS_FIELD_NUMBER
Field Value
TypeDescription
int

TOTAL_PAUSE_DURATION_FIELD_NUMBER

public static final int TOTAL_PAUSE_DURATION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ReplicationCycle getDefaultInstance()
Returns
TypeDescription
ReplicationCycle

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ReplicationCycle.Builder newBuilder()
Returns
TypeDescription
ReplicationCycle.Builder

newBuilder(ReplicationCycle prototype)

public static ReplicationCycle.Builder newBuilder(ReplicationCycle prototype)
Parameter
NameDescription
prototypeReplicationCycle
Returns
TypeDescription
ReplicationCycle.Builder

parseDelimitedFrom(InputStream input)

public static ReplicationCycle parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ReplicationCycle
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ReplicationCycle parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ReplicationCycle
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ReplicationCycle parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ReplicationCycle
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ReplicationCycle parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ReplicationCycle
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ReplicationCycle parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ReplicationCycle
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ReplicationCycle parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ReplicationCycle
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ReplicationCycle parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ReplicationCycle
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ReplicationCycle parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ReplicationCycle
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ReplicationCycle parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ReplicationCycle
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ReplicationCycle parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ReplicationCycle
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ReplicationCycle parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ReplicationCycle
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ReplicationCycle parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ReplicationCycle
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ReplicationCycle> parser()
Returns
TypeDescription
Parser<ReplicationCycle>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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

getEndTime()

public Timestamp getEndTime()

The time the replication cycle has ended.

.google.protobuf.Timestamp end_time = 6;

Returns
TypeDescription
Timestamp

The endTime.

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.

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.

getParserForType()

public Parser<ReplicationCycle> getParserForType()
Returns
TypeDescription
Parser<ReplicationCycle>
Overrides

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.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getStartTime()

public Timestamp getStartTime()

The time the replication cycle has started.

.google.protobuf.Timestamp start_time = 1;

Returns
TypeDescription
Timestamp

The startTime.

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

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.

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ReplicationCycle.Builder newBuilderForType()
Returns
TypeDescription
ReplicationCycle.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ReplicationCycle.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ReplicationCycle.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ReplicationCycle.Builder toBuilder()
Returns
TypeDescription
ReplicationCycle.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException