Package com.google.cloud.vmmigration.v1
Class CloneJob
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.vmmigration.v1.CloneJob
-
- All Implemented Interfaces:
CloneJobOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class CloneJob extends com.google.protobuf.GeneratedMessageV3 implements CloneJobOrBuilder
CloneJob describes the process of creating a clone of a [MigratingVM][google.cloud.vmmigration.v1.MigratingVm] to the requested target based on the latest successful uploaded snapshots. While the migration cycles of a MigratingVm take place, it is possible to verify the uploaded VM can be started in the cloud, by creating a clone. The clone can be created without any downtime, and it is created using the latest snapshots which are already in the cloud. The cloneJob is only responsible for its work, not its products, which means once it is finished, it will never touch the instance it created. It will only delete it in case of the CloneJob being cancelled or upon failure to clone.
Protobuf typegoogle.cloud.vmmigration.v1.CloneJob- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCloneJob.BuilderCloneJob describes the process of creating a clone of a [MigratingVM][google.cloud.vmmigration.v1.MigratingVm] to the requested target based on the latest successful uploaded snapshots.static classCloneJob.StatePossible states of the clone job.static classCloneJob.TargetVmDetailsCase-
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 intCOMPUTE_ENGINE_TARGET_DETAILS_FIELD_NUMBERstatic intCREATE_TIME_FIELD_NUMBERstatic intEND_TIME_FIELD_NUMBERstatic intERROR_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intSTATE_FIELD_NUMBERstatic intSTATE_TIME_FIELD_NUMBERstatic intSTEPS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)ComputeEngineTargetDetailsgetComputeEngineTargetDetails()Output only.ComputeEngineTargetDetailsOrBuildergetComputeEngineTargetDetailsOrBuilder()Output only.com.google.protobuf.TimestampgetCreateTime()Output only.com.google.protobuf.TimestampOrBuildergetCreateTimeOrBuilder()Output only.static CloneJobgetDefaultInstance()CloneJobgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.TimestampgetEndTime()Output only.com.google.protobuf.TimestampOrBuildergetEndTimeOrBuilder()Output only.com.google.rpc.StatusgetError()Output only.com.google.rpc.StatusOrBuildergetErrorOrBuilder()Output only.StringgetName()Output only.com.google.protobuf.ByteStringgetNameBytes()Output only.com.google.protobuf.Parser<CloneJob>getParserForType()intgetSerializedSize()CloneJob.StategetState()Output only.com.google.protobuf.TimestampgetStateTime()Output only.com.google.protobuf.TimestampOrBuildergetStateTimeOrBuilder()Output only.intgetStateValue()Output only.CloneStepgetSteps(int index)Output only.intgetStepsCount()Output only.List<CloneStep>getStepsList()Output only.CloneStepOrBuildergetStepsOrBuilder(int index)Output only.List<? extends CloneStepOrBuilder>getStepsOrBuilderList()Output only.CloneJob.TargetVmDetailsCasegetTargetVmDetailsCase()booleanhasComputeEngineTargetDetails()Output only.booleanhasCreateTime()Output only.booleanhasEndTime()Output only.booleanhasError()Output only.inthashCode()booleanhasStateTime()Output only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static CloneJob.BuildernewBuilder()static CloneJob.BuildernewBuilder(CloneJob prototype)CloneJob.BuildernewBuilderForType()protected CloneJob.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static CloneJobparseDelimitedFrom(InputStream input)static CloneJobparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CloneJobparseFrom(byte[] data)static CloneJobparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CloneJobparseFrom(com.google.protobuf.ByteString data)static CloneJobparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CloneJobparseFrom(com.google.protobuf.CodedInputStream input)static CloneJobparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CloneJobparseFrom(InputStream input)static CloneJobparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static CloneJobparseFrom(ByteBuffer data)static CloneJobparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<CloneJob>parser()CloneJob.BuildertoBuilder()voidwriteTo(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
-
COMPUTE_ENGINE_TARGET_DETAILS_FIELD_NUMBER
public static final int COMPUTE_ENGINE_TARGET_DETAILS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_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
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STATE_TIME_FIELD_NUMBER
public static final int STATE_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ERROR_FIELD_NUMBER
public static final int ERROR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STEPS_FIELD_NUMBER
public static final int STEPS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getTargetVmDetailsCase
public CloneJob.TargetVmDetailsCase getTargetVmDetailsCase()
- Specified by:
getTargetVmDetailsCasein interfaceCloneJobOrBuilder
-
hasComputeEngineTargetDetails
public boolean hasComputeEngineTargetDetails()
Output only. Details of the target VM in Compute Engine.
.google.cloud.vmmigration.v1.ComputeEngineTargetDetails compute_engine_target_details = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasComputeEngineTargetDetailsin interfaceCloneJobOrBuilder- Returns:
- Whether the computeEngineTargetDetails field is set.
-
getComputeEngineTargetDetails
public ComputeEngineTargetDetails getComputeEngineTargetDetails()
Output only. Details of the target VM in Compute Engine.
.google.cloud.vmmigration.v1.ComputeEngineTargetDetails compute_engine_target_details = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getComputeEngineTargetDetailsin interfaceCloneJobOrBuilder- Returns:
- The computeEngineTargetDetails.
-
getComputeEngineTargetDetailsOrBuilder
public ComputeEngineTargetDetailsOrBuilder getComputeEngineTargetDetailsOrBuilder()
Output only. Details of the target VM in Compute Engine.
.google.cloud.vmmigration.v1.ComputeEngineTargetDetails compute_engine_target_details = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getComputeEngineTargetDetailsOrBuilderin interfaceCloneJobOrBuilder
-
hasCreateTime
public boolean hasCreateTime()
Output only. The time the clone job was created (as an API call, not when it was actually created in the target).
.google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceCloneJobOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()
Output only. The time the clone job was created (as an API call, not when it was actually created in the target).
.google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceCloneJobOrBuilder- Returns:
- The createTime.
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The time the clone job was created (as an API call, not when it was actually created in the target).
.google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceCloneJobOrBuilder
-
hasEndTime
public boolean hasEndTime()
Output only. The time the clone job was ended.
.google.protobuf.Timestamp end_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasEndTimein interfaceCloneJobOrBuilder- Returns:
- Whether the endTime field is set.
-
getEndTime
public com.google.protobuf.Timestamp getEndTime()
Output only. The time the clone job was ended.
.google.protobuf.Timestamp end_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getEndTimein interfaceCloneJobOrBuilder- Returns:
- The endTime.
-
getEndTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()
Output only. The time the clone job was ended.
.google.protobuf.Timestamp end_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getEndTimeOrBuilderin interfaceCloneJobOrBuilder
-
getName
public String getName()
Output only. The name of the clone.
string name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNamein interfaceCloneJobOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Output only. The name of the clone.
string name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNameBytesin interfaceCloneJobOrBuilder- Returns:
- The bytes for name.
-
getStateValue
public int getStateValue()
Output only. State of the clone job.
.google.cloud.vmmigration.v1.CloneJob.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStateValuein interfaceCloneJobOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
getState
public CloneJob.State getState()
Output only. State of the clone job.
.google.cloud.vmmigration.v1.CloneJob.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatein interfaceCloneJobOrBuilder- Returns:
- The state.
-
hasStateTime
public boolean hasStateTime()
Output only. The time the state was last updated.
.google.protobuf.Timestamp state_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasStateTimein interfaceCloneJobOrBuilder- Returns:
- Whether the stateTime field is set.
-
getStateTime
public com.google.protobuf.Timestamp getStateTime()
Output only. The time the state was last updated.
.google.protobuf.Timestamp state_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStateTimein interfaceCloneJobOrBuilder- Returns:
- The stateTime.
-
getStateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getStateTimeOrBuilder()
Output only. The time the state was last updated.
.google.protobuf.Timestamp state_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStateTimeOrBuilderin interfaceCloneJobOrBuilder
-
hasError
public boolean hasError()
Output only. Provides details for the errors that led to the Clone Job's state.
.google.rpc.Status error = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasErrorin interfaceCloneJobOrBuilder- Returns:
- Whether the error field is set.
-
getError
public com.google.rpc.Status getError()
Output only. Provides details for the errors that led to the Clone Job's state.
.google.rpc.Status error = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getErrorin interfaceCloneJobOrBuilder- Returns:
- The error.
-
getErrorOrBuilder
public com.google.rpc.StatusOrBuilder getErrorOrBuilder()
Output only. Provides details for the errors that led to the Clone Job's state.
.google.rpc.Status error = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getErrorOrBuilderin interfaceCloneJobOrBuilder
-
getStepsList
public List<CloneStep> getStepsList()
Output only. The clone steps list representing its progress.
repeated .google.cloud.vmmigration.v1.CloneStep steps = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStepsListin interfaceCloneJobOrBuilder
-
getStepsOrBuilderList
public List<? extends CloneStepOrBuilder> getStepsOrBuilderList()
Output only. The clone steps list representing its progress.
repeated .google.cloud.vmmigration.v1.CloneStep steps = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStepsOrBuilderListin interfaceCloneJobOrBuilder
-
getStepsCount
public int getStepsCount()
Output only. The clone steps list representing its progress.
repeated .google.cloud.vmmigration.v1.CloneStep steps = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStepsCountin interfaceCloneJobOrBuilder
-
getSteps
public CloneStep getSteps(int index)
Output only. The clone steps list representing its progress.
repeated .google.cloud.vmmigration.v1.CloneStep steps = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStepsin interfaceCloneJobOrBuilder
-
getStepsOrBuilder
public CloneStepOrBuilder getStepsOrBuilder(int index)
Output only. The clone steps list representing its progress.
repeated .google.cloud.vmmigration.v1.CloneStep steps = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStepsOrBuilderin interfaceCloneJobOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static CloneJob parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CloneJob parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CloneJob parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CloneJob parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CloneJob parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CloneJob parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CloneJob parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static CloneJob parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static CloneJob parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static CloneJob parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static CloneJob parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static CloneJob parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public CloneJob.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static CloneJob.Builder newBuilder()
-
newBuilder
public static CloneJob.Builder newBuilder(CloneJob prototype)
-
toBuilder
public CloneJob.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected CloneJob.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static CloneJob getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<CloneJob> parser()
-
getParserForType
public com.google.protobuf.Parser<CloneJob> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public CloneJob getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-