Class CloneJob (1.15.0)

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

Implements

CloneJobOrBuilder

Static Fields

COMPUTE_ENGINE_TARGET_DETAILS_FIELD_NUMBER

public static final int COMPUTE_ENGINE_TARGET_DETAILS_FIELD_NUMBER
Field Value
TypeDescription
int

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_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

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
TypeDescription
int

STATE_TIME_FIELD_NUMBER

public static final int STATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

STEPS_FIELD_NUMBER

public static final int STEPS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CloneJob getDefaultInstance()
Returns
TypeDescription
CloneJob

getDescriptor()

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

newBuilder()

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

newBuilder(CloneJob prototype)

public static CloneJob.Builder newBuilder(CloneJob prototype)
Parameter
NameDescription
prototypeCloneJob
Returns
TypeDescription
CloneJob.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

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];

Returns
TypeDescription
ComputeEngineTargetDetailsOrBuilder

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
TypeDescription
Timestamp

The createTime.

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
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public CloneJob getDefaultInstanceForType()
Returns
TypeDescription
CloneJob

getEndTime()

public Timestamp getEndTime()

Output only. The time the clone job was ended.

.google.protobuf.Timestamp end_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The endTime.

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

Output only. The time the clone job was ended.

.google.protobuf.Timestamp end_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getError()

public 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];

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

getName()

public String getName()

Output only. The name of the clone.

string name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The name of the clone.

string name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for name.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
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
TypeDescription
CloneJob.State

The state.

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
TypeDescription
Timestamp

The stateTime.

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
TypeDescription
TimestampOrBuilder

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

The enum numeric value on the wire for state.

getSteps(int index)

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];

Parameter
NameDescription
indexint
Returns
TypeDescription
CloneStep

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];

Returns
TypeDescription
int

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];

Returns
TypeDescription
List<CloneStep>

getStepsOrBuilder(int index)

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];

Parameter
NameDescription
indexint
Returns
TypeDescription
CloneStepOrBuilder

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];

Returns
TypeDescription
List<? extends com.google.cloud.vmmigration.v1.CloneStepOrBuilder>

getTargetVmDetailsCase()

public CloneJob.TargetVmDetailsCase getTargetVmDetailsCase()
Returns
TypeDescription
CloneJob.TargetVmDetailsCase

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
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
TypeDescription
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
TypeDescription
boolean

Whether the createTime field is set.

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];

Returns
TypeDescription
boolean

Whether the endTime 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
TypeDescription
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
TypeDescription
boolean

Whether the stateTime 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 CloneJob.Builder newBuilderForType()
Returns
TypeDescription
CloneJob.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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