Class 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 type google.cloud.vmmigration.v1.CloneJob
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.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 class com.google.protobuf.GeneratedMessageV3
      • 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:
        hasComputeEngineTargetDetails in interface CloneJobOrBuilder
        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:
        getComputeEngineTargetDetails in interface CloneJobOrBuilder
        Returns:
        The computeEngineTargetDetails.
      • 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:
        hasCreateTime in interface CloneJobOrBuilder
        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:
        getCreateTime in interface CloneJobOrBuilder
        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:
        getCreateTimeOrBuilder in interface CloneJobOrBuilder
      • 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:
        hasEndTime in interface CloneJobOrBuilder
        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:
        getEndTime in interface CloneJobOrBuilder
        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:
        getEndTimeOrBuilder in interface CloneJobOrBuilder
      • getName

        public String getName()
         Output only. The name of the clone.
         
        string name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getName in interface CloneJobOrBuilder
        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:
        getNameBytes in interface CloneJobOrBuilder
        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:
        getStateValue in interface CloneJobOrBuilder
        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:
        getState in interface CloneJobOrBuilder
        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:
        hasStateTime in interface CloneJobOrBuilder
        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:
        getStateTime in interface CloneJobOrBuilder
        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:
        getStateTimeOrBuilder in interface CloneJobOrBuilder
      • 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:
        hasError in interface CloneJobOrBuilder
        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:
        getError in interface CloneJobOrBuilder
        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:
        getErrorOrBuilder in interface CloneJobOrBuilder
      • 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:
        getStepsList in interface CloneJobOrBuilder
      • 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:
        getStepsOrBuilderList in interface CloneJobOrBuilder
      • 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:
        getStepsCount in interface CloneJobOrBuilder
      • 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:
        getSteps in interface CloneJobOrBuilder
      • 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:
        getStepsOrBuilder in interface CloneJobOrBuilder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.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​(com.google.protobuf.CodedInputStream input,
                                         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                  throws IOException
        Throws:
        IOException
      • newBuilderForType

        public CloneJob.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public CloneJob.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected CloneJob.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.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:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public CloneJob getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder