public final class CloneJob extends GeneratedMessageV3 implements CloneJobOrBuilder
CloneJob describes the process of creating a clone of a
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 type google.cloud.vmmigration.v1.CloneJob
Static Fields
COMPUTE_ENGINE_TARGET_DETAILS_FIELD_NUMBER
public static final int COMPUTE_ENGINE_TARGET_DETAILS_FIELD_NUMBER
Field Value
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
Field Value
ERROR_FIELD_NUMBER
public static final int ERROR_FIELD_NUMBER
Field Value
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
Field Value
STATE_TIME_FIELD_NUMBER
public static final int STATE_TIME_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static CloneJob getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static CloneJob.Builder newBuilder()
Returns
newBuilder(CloneJob prototype)
public static CloneJob.Builder newBuilder(CloneJob prototype)
Parameter
Returns
public static CloneJob parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static CloneJob parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static CloneJob parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static CloneJob parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static CloneJob parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static CloneJob parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static CloneJob parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static CloneJob parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static CloneJob parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static CloneJob parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static CloneJob parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static CloneJob parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<CloneJob> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
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];
Returns
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];
Returns
getCreateTime()
public 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];
Returns
getCreateTimeOrBuilder()
public 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];
Returns
getDefaultInstanceForType()
public CloneJob getDefaultInstanceForType()
Returns
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];
Returns
Type | Description |
com.google.rpc.Status | The error.
|
getErrorOrBuilder()
public 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];
Returns
Type | Description |
com.google.rpc.StatusOrBuilder | |
getName()
The name of the clone.
string name = 3;
Returns
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
The name of the clone.
string name = 3;
Returns
getParserForType()
public Parser<CloneJob> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
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];
Returns
getStateTime()
public Timestamp getStateTime()
Output only. The time the state was last updated.
.google.protobuf.Timestamp state_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getStateTimeOrBuilder()
public TimestampOrBuilder getStateTimeOrBuilder()
Output only. The time the state was last updated.
.google.protobuf.Timestamp state_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
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];
Returns
Type | Description |
int | The enum numeric value on the wire for state.
|
getTargetVmDetailsCase()
public CloneJob.TargetVmDetailsCase getTargetVmDetailsCase()
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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];
Returns
Type | Description |
boolean | Whether the computeEngineTargetDetails field is set.
|
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];
Returns
Type | Description |
boolean | Whether the createTime field is set.
|
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];
Returns
Type | Description |
boolean | Whether the error field is set.
|
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];
Returns
Type | Description |
boolean | Whether the stateTime field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public CloneJob.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected CloneJob.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public CloneJob.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions