Class CloneJob.Builder (1.2.0)

public static final class CloneJob.Builder extends GeneratedMessageV3.Builder<CloneJob.Builder> 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 Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CloneJob.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CloneJob.Builder
Overrides

build()

public CloneJob build()
Returns
TypeDescription
CloneJob

buildPartial()

public CloneJob buildPartial()
Returns
TypeDescription
CloneJob

clear()

public CloneJob.Builder clear()
Returns
TypeDescription
CloneJob.Builder
Overrides

clearComputeEngineTargetDetails()

public CloneJob.Builder clearComputeEngineTargetDetails()

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
CloneJob.Builder

clearCreateTime()

public CloneJob.Builder clearCreateTime()

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
CloneJob.Builder

clearError()

public CloneJob.Builder clearError()

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
CloneJob.Builder

clearField(Descriptors.FieldDescriptor field)

public CloneJob.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CloneJob.Builder
Overrides

clearName()

public CloneJob.Builder clearName()

The name of the clone.

string name = 3;

Returns
TypeDescription
CloneJob.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CloneJob.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
CloneJob.Builder
Overrides

clearState()

public CloneJob.Builder clearState()

Output only. State of the clone job.

.google.cloud.vmmigration.v1.CloneJob.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
CloneJob.Builder

This builder for chaining.

clearStateTime()

public CloneJob.Builder clearStateTime()

Output only. The time the state was last updated.

.google.protobuf.Timestamp state_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
CloneJob.Builder

clearTargetVmDetails()

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

clone()

public CloneJob.Builder clone()
Returns
TypeDescription
CloneJob.Builder
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.

getComputeEngineTargetDetailsBuilder()

public ComputeEngineTargetDetails.Builder getComputeEngineTargetDetailsBuilder()

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.Builder

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.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

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
Builder

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

getErrorBuilder()

public Status.Builder getErrorBuilder()

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.Builder

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()

The name of the clone.

string name = 3;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the clone.

string name = 3;

Returns
TypeDescription
ByteString

The bytes for name.

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.

getStateTimeBuilder()

public Timestamp.Builder getStateTimeBuilder()

Output only. The time the state was last updated.

.google.protobuf.Timestamp state_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

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.

getTargetVmDetailsCase()

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

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.

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeComputeEngineTargetDetails(ComputeEngineTargetDetails value)

public CloneJob.Builder mergeComputeEngineTargetDetails(ComputeEngineTargetDetails value)

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

Parameter
NameDescription
valueComputeEngineTargetDetails
Returns
TypeDescription
CloneJob.Builder

mergeCreateTime(Timestamp value)

public CloneJob.Builder mergeCreateTime(Timestamp value)

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
CloneJob.Builder

mergeError(Status value)

public CloneJob.Builder mergeError(Status value)

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

Parameter
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
CloneJob.Builder

mergeFrom(CloneJob other)

public CloneJob.Builder mergeFrom(CloneJob other)
Parameter
NameDescription
otherCloneJob
Returns
TypeDescription
CloneJob.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CloneJob.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CloneJob.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CloneJob.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CloneJob.Builder
Overrides

mergeStateTime(Timestamp value)

public CloneJob.Builder mergeStateTime(Timestamp value)

Output only. The time the state was last updated.

.google.protobuf.Timestamp state_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
CloneJob.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CloneJob.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CloneJob.Builder
Overrides

setComputeEngineTargetDetails(ComputeEngineTargetDetails value)

public CloneJob.Builder setComputeEngineTargetDetails(ComputeEngineTargetDetails value)

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

Parameter
NameDescription
valueComputeEngineTargetDetails
Returns
TypeDescription
CloneJob.Builder

setComputeEngineTargetDetails(ComputeEngineTargetDetails.Builder builderForValue)

public CloneJob.Builder setComputeEngineTargetDetails(ComputeEngineTargetDetails.Builder builderForValue)

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

Parameter
NameDescription
builderForValueComputeEngineTargetDetails.Builder
Returns
TypeDescription
CloneJob.Builder

setCreateTime(Timestamp value)

public CloneJob.Builder setCreateTime(Timestamp value)

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

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
CloneJob.Builder

setCreateTime(Timestamp.Builder builderForValue)

public CloneJob.Builder setCreateTime(Timestamp.Builder builderForValue)

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

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
CloneJob.Builder

setError(Status value)

public CloneJob.Builder setError(Status value)

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

Parameter
NameDescription
valuecom.google.rpc.Status
Returns
TypeDescription
CloneJob.Builder

setError(Status.Builder builderForValue)

public CloneJob.Builder setError(Status.Builder builderForValue)

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

Parameter
NameDescription
builderForValuecom.google.rpc.Status.Builder
Returns
TypeDescription
CloneJob.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CloneJob.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CloneJob.Builder
Overrides

setName(String value)

public CloneJob.Builder setName(String value)

The name of the clone.

string name = 3;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
CloneJob.Builder

This builder for chaining.

setNameBytes(ByteString value)

public CloneJob.Builder setNameBytes(ByteString value)

The name of the clone.

string name = 3;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
CloneJob.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CloneJob.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CloneJob.Builder
Overrides

setState(CloneJob.State value)

public CloneJob.Builder setState(CloneJob.State value)

Output only. State of the clone job.

.google.cloud.vmmigration.v1.CloneJob.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueCloneJob.State

The state to set.

Returns
TypeDescription
CloneJob.Builder

This builder for chaining.

setStateTime(Timestamp value)

public CloneJob.Builder setStateTime(Timestamp value)

Output only. The time the state was last updated.

.google.protobuf.Timestamp state_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
CloneJob.Builder

setStateTime(Timestamp.Builder builderForValue)

public CloneJob.Builder setStateTime(Timestamp.Builder builderForValue)

Output only. The time the state was last updated.

.google.protobuf.Timestamp state_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
CloneJob.Builder

setStateValue(int value)

public CloneJob.Builder setStateValue(int value)

Output only. State of the clone job.

.google.cloud.vmmigration.v1.CloneJob.State state = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

The enum numeric value on the wire for state to set.

Returns
TypeDescription
CloneJob.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final CloneJob.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CloneJob.Builder
Overrides