Package com.google.cloud.vmmigration.v1
Class ReplicationCycle
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.vmmigration.v1.ReplicationCycle
-
- All Implemented Interfaces:
ReplicationCycleOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class ReplicationCycle extends com.google.protobuf.GeneratedMessageV3 implements ReplicationCycleOrBuilder
ReplicationCycle contains information about the current replication cycle status.
Protobuf typegoogle.cloud.vmmigration.v1.ReplicationCycle
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ReplicationCycle.Builder
ReplicationCycle contains information about the current replication cycle status.static class
ReplicationCycle.State
Possible states of a replication cycle.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
CYCLE_NUMBER_FIELD_NUMBER
static int
END_TIME_FIELD_NUMBER
static int
ERROR_FIELD_NUMBER
static int
NAME_FIELD_NUMBER
static int
PROGRESS_PERCENT_FIELD_NUMBER
static int
START_TIME_FIELD_NUMBER
static int
STATE_FIELD_NUMBER
static int
STEPS_FIELD_NUMBER
static int
TOTAL_PAUSE_DURATION_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(Object obj)
int
getCycleNumber()
The cycle's ordinal number.static ReplicationCycle
getDefaultInstance()
ReplicationCycle
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Timestamp
getEndTime()
The time the replication cycle has ended.com.google.protobuf.TimestampOrBuilder
getEndTimeOrBuilder()
The time the replication cycle has ended.com.google.rpc.Status
getError()
Provides details on the state of the cycle in case of an error.com.google.rpc.StatusOrBuilder
getErrorOrBuilder()
Provides details on the state of the cycle in case of an error.String
getName()
The identifier of the ReplicationCycle.com.google.protobuf.ByteString
getNameBytes()
The identifier of the ReplicationCycle.com.google.protobuf.Parser<ReplicationCycle>
getParserForType()
int
getProgressPercent()
Deprecated.google.cloud.vmmigration.v1.ReplicationCycle.progress_percent is deprecated.int
getSerializedSize()
com.google.protobuf.Timestamp
getStartTime()
The time the replication cycle has started.com.google.protobuf.TimestampOrBuilder
getStartTimeOrBuilder()
The time the replication cycle has started.ReplicationCycle.State
getState()
State of the ReplicationCycle.int
getStateValue()
State of the ReplicationCycle.CycleStep
getSteps(int index)
The cycle's steps list representing its progress.int
getStepsCount()
The cycle's steps list representing its progress.List<CycleStep>
getStepsList()
The cycle's steps list representing its progress.CycleStepOrBuilder
getStepsOrBuilder(int index)
The cycle's steps list representing its progress.List<? extends CycleStepOrBuilder>
getStepsOrBuilderList()
The cycle's steps list representing its progress.com.google.protobuf.Duration
getTotalPauseDuration()
The accumulated duration the replication cycle was paused.com.google.protobuf.DurationOrBuilder
getTotalPauseDurationOrBuilder()
The accumulated duration the replication cycle was paused.boolean
hasEndTime()
The time the replication cycle has ended.boolean
hasError()
Provides details on the state of the cycle in case of an error.int
hashCode()
boolean
hasStartTime()
The time the replication cycle has started.boolean
hasTotalPauseDuration()
The accumulated duration the replication cycle was paused.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static ReplicationCycle.Builder
newBuilder()
static ReplicationCycle.Builder
newBuilder(ReplicationCycle prototype)
ReplicationCycle.Builder
newBuilderForType()
protected ReplicationCycle.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static ReplicationCycle
parseDelimitedFrom(InputStream input)
static ReplicationCycle
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ReplicationCycle
parseFrom(byte[] data)
static ReplicationCycle
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ReplicationCycle
parseFrom(com.google.protobuf.ByteString data)
static ReplicationCycle
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ReplicationCycle
parseFrom(com.google.protobuf.CodedInputStream input)
static ReplicationCycle
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ReplicationCycle
parseFrom(InputStream input)
static ReplicationCycle
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ReplicationCycle
parseFrom(ByteBuffer data)
static ReplicationCycle
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<ReplicationCycle>
parser()
ReplicationCycle.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CYCLE_NUMBER_FIELD_NUMBER
public static final int CYCLE_NUMBER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
START_TIME_FIELD_NUMBER
public static final int START_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
END_TIME_FIELD_NUMBER
public static final int END_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TOTAL_PAUSE_DURATION_FIELD_NUMBER
public static final int TOTAL_PAUSE_DURATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PROGRESS_PERCENT_FIELD_NUMBER
public static final int PROGRESS_PERCENT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STEPS_FIELD_NUMBER
public static final int STEPS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ERROR_FIELD_NUMBER
public static final int ERROR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getName
public String getName()
The identifier of the ReplicationCycle.
string name = 13;
- Specified by:
getName
in interfaceReplicationCycleOrBuilder
- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
The identifier of the ReplicationCycle.
string name = 13;
- Specified by:
getNameBytes
in interfaceReplicationCycleOrBuilder
- Returns:
- The bytes for name.
-
getCycleNumber
public int getCycleNumber()
The cycle's ordinal number.
int32 cycle_number = 10;
- Specified by:
getCycleNumber
in interfaceReplicationCycleOrBuilder
- Returns:
- The cycleNumber.
-
hasStartTime
public boolean hasStartTime()
The time the replication cycle has started.
.google.protobuf.Timestamp start_time = 1;
- Specified by:
hasStartTime
in interfaceReplicationCycleOrBuilder
- Returns:
- Whether the startTime field is set.
-
getStartTime
public com.google.protobuf.Timestamp getStartTime()
The time the replication cycle has started.
.google.protobuf.Timestamp start_time = 1;
- Specified by:
getStartTime
in interfaceReplicationCycleOrBuilder
- Returns:
- The startTime.
-
getStartTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
The time the replication cycle has started.
.google.protobuf.Timestamp start_time = 1;
- Specified by:
getStartTimeOrBuilder
in interfaceReplicationCycleOrBuilder
-
hasEndTime
public boolean hasEndTime()
The time the replication cycle has ended.
.google.protobuf.Timestamp end_time = 6;
- Specified by:
hasEndTime
in interfaceReplicationCycleOrBuilder
- Returns:
- Whether the endTime field is set.
-
getEndTime
public com.google.protobuf.Timestamp getEndTime()
The time the replication cycle has ended.
.google.protobuf.Timestamp end_time = 6;
- Specified by:
getEndTime
in interfaceReplicationCycleOrBuilder
- Returns:
- The endTime.
-
getEndTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()
The time the replication cycle has ended.
.google.protobuf.Timestamp end_time = 6;
- Specified by:
getEndTimeOrBuilder
in interfaceReplicationCycleOrBuilder
-
hasTotalPauseDuration
public boolean hasTotalPauseDuration()
The accumulated duration the replication cycle was paused.
.google.protobuf.Duration total_pause_duration = 7;
- Specified by:
hasTotalPauseDuration
in interfaceReplicationCycleOrBuilder
- Returns:
- Whether the totalPauseDuration field is set.
-
getTotalPauseDuration
public com.google.protobuf.Duration getTotalPauseDuration()
The accumulated duration the replication cycle was paused.
.google.protobuf.Duration total_pause_duration = 7;
- Specified by:
getTotalPauseDuration
in interfaceReplicationCycleOrBuilder
- Returns:
- The totalPauseDuration.
-
getTotalPauseDurationOrBuilder
public com.google.protobuf.DurationOrBuilder getTotalPauseDurationOrBuilder()
The accumulated duration the replication cycle was paused.
.google.protobuf.Duration total_pause_duration = 7;
- Specified by:
getTotalPauseDurationOrBuilder
in interfaceReplicationCycleOrBuilder
-
getProgressPercent
@Deprecated public int getProgressPercent()
Deprecated.google.cloud.vmmigration.v1.ReplicationCycle.progress_percent is deprecated. See google/cloud/vmmigration/v1/vmmigration.proto;l=715The 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];
- Specified by:
getProgressPercent
in interfaceReplicationCycleOrBuilder
- Returns:
- The progressPercent.
-
getStepsList
public List<CycleStep> getStepsList()
The cycle's steps list representing its progress.
repeated .google.cloud.vmmigration.v1.CycleStep steps = 9;
- Specified by:
getStepsList
in interfaceReplicationCycleOrBuilder
-
getStepsOrBuilderList
public List<? extends CycleStepOrBuilder> getStepsOrBuilderList()
The cycle's steps list representing its progress.
repeated .google.cloud.vmmigration.v1.CycleStep steps = 9;
- Specified by:
getStepsOrBuilderList
in interfaceReplicationCycleOrBuilder
-
getStepsCount
public int getStepsCount()
The cycle's steps list representing its progress.
repeated .google.cloud.vmmigration.v1.CycleStep steps = 9;
- Specified by:
getStepsCount
in interfaceReplicationCycleOrBuilder
-
getSteps
public CycleStep getSteps(int index)
The cycle's steps list representing its progress.
repeated .google.cloud.vmmigration.v1.CycleStep steps = 9;
- Specified by:
getSteps
in interfaceReplicationCycleOrBuilder
-
getStepsOrBuilder
public CycleStepOrBuilder getStepsOrBuilder(int index)
The cycle's steps list representing its progress.
repeated .google.cloud.vmmigration.v1.CycleStep steps = 9;
- Specified by:
getStepsOrBuilder
in interfaceReplicationCycleOrBuilder
-
getStateValue
public int getStateValue()
State of the ReplicationCycle.
.google.cloud.vmmigration.v1.ReplicationCycle.State state = 11;
- Specified by:
getStateValue
in interfaceReplicationCycleOrBuilder
- Returns:
- The enum numeric value on the wire for state.
-
getState
public ReplicationCycle.State getState()
State of the ReplicationCycle.
.google.cloud.vmmigration.v1.ReplicationCycle.State state = 11;
- Specified by:
getState
in interfaceReplicationCycleOrBuilder
- Returns:
- The state.
-
hasError
public boolean hasError()
Provides details on the state of the cycle in case of an error.
.google.rpc.Status error = 12;
- Specified by:
hasError
in interfaceReplicationCycleOrBuilder
- Returns:
- Whether the error field is set.
-
getError
public com.google.rpc.Status getError()
Provides details on the state of the cycle in case of an error.
.google.rpc.Status error = 12;
- Specified by:
getError
in interfaceReplicationCycleOrBuilder
- Returns:
- The error.
-
getErrorOrBuilder
public com.google.rpc.StatusOrBuilder getErrorOrBuilder()
Provides details on the state of the cycle in case of an error.
.google.rpc.Status error = 12;
- Specified by:
getErrorOrBuilder
in interfaceReplicationCycleOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ReplicationCycle parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ReplicationCycle parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ReplicationCycle parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ReplicationCycle parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ReplicationCycle parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ReplicationCycle parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ReplicationCycle parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ReplicationCycle parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ReplicationCycle parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ReplicationCycle parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static ReplicationCycle parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ReplicationCycle parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public ReplicationCycle.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static ReplicationCycle.Builder newBuilder()
-
newBuilder
public static ReplicationCycle.Builder newBuilder(ReplicationCycle prototype)
-
toBuilder
public ReplicationCycle.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ReplicationCycle.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static ReplicationCycle getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<ReplicationCycle> parser()
-
getParserForType
public com.google.protobuf.Parser<ReplicationCycle> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public ReplicationCycle getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-