Class MigratingVm

  • All Implemented Interfaces:
    MigratingVmOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class MigratingVm
    extends com.google.protobuf.GeneratedMessageV3
    implements MigratingVmOrBuilder
     MigratingVm describes the VM that will be migrated from a Source environment
     and its replication state.
     
    Protobuf type google.cloud.vmmigration.v1.MigratingVm
    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()
      • internalGetMapField

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • hasComputeEngineTargetDefaults

        public boolean hasComputeEngineTargetDefaults()
         Details of the target VM in Compute Engine.
         
        .google.cloud.vmmigration.v1.ComputeEngineTargetDefaults compute_engine_target_defaults = 26;
        Specified by:
        hasComputeEngineTargetDefaults in interface MigratingVmOrBuilder
        Returns:
        Whether the computeEngineTargetDefaults field is set.
      • hasAwsSourceVmDetails

        public boolean hasAwsSourceVmDetails()
         Output only. Details of the VM from an AWS source.
         
        .google.cloud.vmmigration.v1.AwsSourceVmDetails aws_source_vm_details = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasAwsSourceVmDetails in interface MigratingVmOrBuilder
        Returns:
        Whether the awsSourceVmDetails field is set.
      • getAwsSourceVmDetails

        public AwsSourceVmDetails getAwsSourceVmDetails()
         Output only. Details of the VM from an AWS source.
         
        .google.cloud.vmmigration.v1.AwsSourceVmDetails aws_source_vm_details = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getAwsSourceVmDetails in interface MigratingVmOrBuilder
        Returns:
        The awsSourceVmDetails.
      • getName

        public String getName()
         Output only. The identifier of the MigratingVm.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getName in interface MigratingVmOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Output only. The identifier of the MigratingVm.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getNameBytes in interface MigratingVmOrBuilder
        Returns:
        The bytes for name.
      • getSourceVmId

        public String getSourceVmId()
         The unique ID of the VM in the source.
         The VM's name in vSphere can be changed, so this is not the VM's name but
         rather its moRef id. This id is of the form vm-<num>.
         
        string source_vm_id = 2;
        Specified by:
        getSourceVmId in interface MigratingVmOrBuilder
        Returns:
        The sourceVmId.
      • getSourceVmIdBytes

        public com.google.protobuf.ByteString getSourceVmIdBytes()
         The unique ID of the VM in the source.
         The VM's name in vSphere can be changed, so this is not the VM's name but
         rather its moRef id. This id is of the form vm-<num>.
         
        string source_vm_id = 2;
        Specified by:
        getSourceVmIdBytes in interface MigratingVmOrBuilder
        Returns:
        The bytes for sourceVmId.
      • getDisplayName

        public String getDisplayName()
         The display name attached to the MigratingVm by the user.
         
        string display_name = 18;
        Specified by:
        getDisplayName in interface MigratingVmOrBuilder
        Returns:
        The displayName.
      • getDisplayNameBytes

        public com.google.protobuf.ByteString getDisplayNameBytes()
         The display name attached to the MigratingVm by the user.
         
        string display_name = 18;
        Specified by:
        getDisplayNameBytes in interface MigratingVmOrBuilder
        Returns:
        The bytes for displayName.
      • getDescription

        public String getDescription()
         The description attached to the migrating VM by the user.
         
        string description = 3;
        Specified by:
        getDescription in interface MigratingVmOrBuilder
        Returns:
        The description.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         The description attached to the migrating VM by the user.
         
        string description = 3;
        Specified by:
        getDescriptionBytes in interface MigratingVmOrBuilder
        Returns:
        The bytes for description.
      • hasPolicy

        public boolean hasPolicy()
         The replication schedule policy.
         
        .google.cloud.vmmigration.v1.SchedulePolicy policy = 8;
        Specified by:
        hasPolicy in interface MigratingVmOrBuilder
        Returns:
        Whether the policy field is set.
      • getPolicy

        public SchedulePolicy getPolicy()
         The replication schedule policy.
         
        .google.cloud.vmmigration.v1.SchedulePolicy policy = 8;
        Specified by:
        getPolicy in interface MigratingVmOrBuilder
        Returns:
        The policy.
      • hasCreateTime

        public boolean hasCreateTime()
         Output only. The time the migrating VM was created (this refers to this
         resource and not to the time it was installed in the source).
         
        .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCreateTime in interface MigratingVmOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         Output only. The time the migrating VM was created (this refers to this
         resource and not to the time it was installed in the source).
         
        .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTime in interface MigratingVmOrBuilder
        Returns:
        The createTime.
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         Output only. The time the migrating VM was created (this refers to this
         resource and not to the time it was installed in the source).
         
        .google.protobuf.Timestamp create_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTimeOrBuilder in interface MigratingVmOrBuilder
      • hasUpdateTime

        public boolean hasUpdateTime()
         Output only. The last time the migrating VM resource was updated.
         
        .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasUpdateTime in interface MigratingVmOrBuilder
        Returns:
        Whether the updateTime field is set.
      • getUpdateTime

        public com.google.protobuf.Timestamp getUpdateTime()
         Output only. The last time the migrating VM resource was updated.
         
        .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTime in interface MigratingVmOrBuilder
        Returns:
        The updateTime.
      • getUpdateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
         Output only. The last time the migrating VM resource was updated.
         
        .google.protobuf.Timestamp update_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUpdateTimeOrBuilder in interface MigratingVmOrBuilder
      • hasLastSync

        public boolean hasLastSync()
         Output only. The most updated snapshot created time in the source that
         finished replication.
         
        .google.cloud.vmmigration.v1.ReplicationSync last_sync = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasLastSync in interface MigratingVmOrBuilder
        Returns:
        Whether the lastSync field is set.
      • getLastSync

        public ReplicationSync getLastSync()
         Output only. The most updated snapshot created time in the source that
         finished replication.
         
        .google.cloud.vmmigration.v1.ReplicationSync last_sync = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getLastSync in interface MigratingVmOrBuilder
        Returns:
        The lastSync.
      • getLastSyncOrBuilder

        public ReplicationSyncOrBuilder getLastSyncOrBuilder()
         Output only. The most updated snapshot created time in the source that
         finished replication.
         
        .google.cloud.vmmigration.v1.ReplicationSync last_sync = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getLastSyncOrBuilder in interface MigratingVmOrBuilder
      • getStateValue

        public int getStateValue()
         Output only. State of the MigratingVm.
         
        .google.cloud.vmmigration.v1.MigratingVm.State state = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStateValue in interface MigratingVmOrBuilder
        Returns:
        The enum numeric value on the wire for state.
      • getState

        public MigratingVm.State getState()
         Output only. State of the MigratingVm.
         
        .google.cloud.vmmigration.v1.MigratingVm.State state = 23 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getState in interface MigratingVmOrBuilder
        Returns:
        The state.
      • hasStateTime

        public boolean hasStateTime()
         Output only. The last time the migrating VM state was updated.
         
        .google.protobuf.Timestamp state_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasStateTime in interface MigratingVmOrBuilder
        Returns:
        Whether the stateTime field is set.
      • getStateTime

        public com.google.protobuf.Timestamp getStateTime()
         Output only. The last time the migrating VM state was updated.
         
        .google.protobuf.Timestamp state_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStateTime in interface MigratingVmOrBuilder
        Returns:
        The stateTime.
      • getStateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getStateTimeOrBuilder()
         Output only. The last time the migrating VM state was updated.
         
        .google.protobuf.Timestamp state_time = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStateTimeOrBuilder in interface MigratingVmOrBuilder
      • hasCurrentSyncInfo

        public boolean hasCurrentSyncInfo()
         Output only. The percentage progress of the current running replication
         cycle.
         
        .google.cloud.vmmigration.v1.ReplicationCycle current_sync_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCurrentSyncInfo in interface MigratingVmOrBuilder
        Returns:
        Whether the currentSyncInfo field is set.
      • getCurrentSyncInfo

        public ReplicationCycle getCurrentSyncInfo()
         Output only. The percentage progress of the current running replication
         cycle.
         
        .google.cloud.vmmigration.v1.ReplicationCycle current_sync_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCurrentSyncInfo in interface MigratingVmOrBuilder
        Returns:
        The currentSyncInfo.
      • getCurrentSyncInfoOrBuilder

        public ReplicationCycleOrBuilder getCurrentSyncInfoOrBuilder()
         Output only. The percentage progress of the current running replication
         cycle.
         
        .google.cloud.vmmigration.v1.ReplicationCycle current_sync_info = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCurrentSyncInfoOrBuilder in interface MigratingVmOrBuilder
      • getGroup

        public String getGroup()
         Output only. The group this migrating vm is included in, if any. The group
         is represented by the full path of the appropriate
         [Group][google.cloud.vmmigration.v1.Group] resource.
         
        string group = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getGroup in interface MigratingVmOrBuilder
        Returns:
        The group.
      • getGroupBytes

        public com.google.protobuf.ByteString getGroupBytes()
         Output only. The group this migrating vm is included in, if any. The group
         is represented by the full path of the appropriate
         [Group][google.cloud.vmmigration.v1.Group] resource.
         
        string group = 15 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getGroupBytes in interface MigratingVmOrBuilder
        Returns:
        The bytes for group.
      • getRecentCloneJobsList

        public List<CloneJob> getRecentCloneJobsList()
         Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
         performed on the migrating VM. This field holds the vm's last completed
         clone job and the vm's running clone job, if one exists.
         Note: To have this field populated you need to explicitly request it via
         the "view" parameter of the Get/List request.
         
        repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getRecentCloneJobsList in interface MigratingVmOrBuilder
      • getRecentCloneJobsOrBuilderList

        public List<? extends CloneJobOrBuilder> getRecentCloneJobsOrBuilderList()
         Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
         performed on the migrating VM. This field holds the vm's last completed
         clone job and the vm's running clone job, if one exists.
         Note: To have this field populated you need to explicitly request it via
         the "view" parameter of the Get/List request.
         
        repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getRecentCloneJobsOrBuilderList in interface MigratingVmOrBuilder
      • getRecentCloneJobsCount

        public int getRecentCloneJobsCount()
         Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
         performed on the migrating VM. This field holds the vm's last completed
         clone job and the vm's running clone job, if one exists.
         Note: To have this field populated you need to explicitly request it via
         the "view" parameter of the Get/List request.
         
        repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getRecentCloneJobsCount in interface MigratingVmOrBuilder
      • getRecentCloneJobs

        public CloneJob getRecentCloneJobs​(int index)
         Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
         performed on the migrating VM. This field holds the vm's last completed
         clone job and the vm's running clone job, if one exists.
         Note: To have this field populated you need to explicitly request it via
         the "view" parameter of the Get/List request.
         
        repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getRecentCloneJobs in interface MigratingVmOrBuilder
      • getRecentCloneJobsOrBuilder

        public CloneJobOrBuilder getRecentCloneJobsOrBuilder​(int index)
         Output only. The recent [clone jobs][google.cloud.vmmigration.v1.CloneJob]
         performed on the migrating VM. This field holds the vm's last completed
         clone job and the vm's running clone job, if one exists.
         Note: To have this field populated you need to explicitly request it via
         the "view" parameter of the Get/List request.
         
        repeated .google.cloud.vmmigration.v1.CloneJob recent_clone_jobs = 17 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getRecentCloneJobsOrBuilder in interface MigratingVmOrBuilder
      • hasError

        public boolean hasError()
         Output only. Provides details on the state of the Migrating VM in case of
         an error in replication.
         
        .google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasError in interface MigratingVmOrBuilder
        Returns:
        Whether the error field is set.
      • getError

        public com.google.rpc.Status getError()
         Output only. Provides details on the state of the Migrating VM in case of
         an error in replication.
         
        .google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getError in interface MigratingVmOrBuilder
        Returns:
        The error.
      • getErrorOrBuilder

        public com.google.rpc.StatusOrBuilder getErrorOrBuilder()
         Output only. Provides details on the state of the Migrating VM in case of
         an error in replication.
         
        .google.rpc.Status error = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getErrorOrBuilder in interface MigratingVmOrBuilder
      • getRecentCutoverJobsList

        public List<CutoverJob> getRecentCutoverJobsList()
         Output only. The recent cutover jobs performed on the migrating VM.
         This field holds the vm's last completed cutover job and the vm's
         running cutover job, if one exists.
         Note: To have this field populated you need to explicitly request it via
         the "view" parameter of the Get/List request.
         
        repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getRecentCutoverJobsList in interface MigratingVmOrBuilder
      • getRecentCutoverJobsOrBuilderList

        public List<? extends CutoverJobOrBuilder> getRecentCutoverJobsOrBuilderList()
         Output only. The recent cutover jobs performed on the migrating VM.
         This field holds the vm's last completed cutover job and the vm's
         running cutover job, if one exists.
         Note: To have this field populated you need to explicitly request it via
         the "view" parameter of the Get/List request.
         
        repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getRecentCutoverJobsOrBuilderList in interface MigratingVmOrBuilder
      • getRecentCutoverJobsCount

        public int getRecentCutoverJobsCount()
         Output only. The recent cutover jobs performed on the migrating VM.
         This field holds the vm's last completed cutover job and the vm's
         running cutover job, if one exists.
         Note: To have this field populated you need to explicitly request it via
         the "view" parameter of the Get/List request.
         
        repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getRecentCutoverJobsCount in interface MigratingVmOrBuilder
      • getRecentCutoverJobs

        public CutoverJob getRecentCutoverJobs​(int index)
         Output only. The recent cutover jobs performed on the migrating VM.
         This field holds the vm's last completed cutover job and the vm's
         running cutover job, if one exists.
         Note: To have this field populated you need to explicitly request it via
         the "view" parameter of the Get/List request.
         
        repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getRecentCutoverJobs in interface MigratingVmOrBuilder
      • getRecentCutoverJobsOrBuilder

        public CutoverJobOrBuilder getRecentCutoverJobsOrBuilder​(int index)
         Output only. The recent cutover jobs performed on the migrating VM.
         This field holds the vm's last completed cutover job and the vm's
         running cutover job, if one exists.
         Note: To have this field populated you need to explicitly request it via
         the "view" parameter of the Get/List request.
         
        repeated .google.cloud.vmmigration.v1.CutoverJob recent_cutover_jobs = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getRecentCutoverJobsOrBuilder in interface MigratingVmOrBuilder
      • 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 MigratingVm parseFrom​(ByteBuffer data)
                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MigratingVm parseFrom​(ByteBuffer data,
                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MigratingVm parseFrom​(com.google.protobuf.ByteString data)
                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MigratingVm parseFrom​(com.google.protobuf.ByteString data,
                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MigratingVm parseFrom​(byte[] data)
                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MigratingVm parseFrom​(byte[] data,
                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static MigratingVm parseFrom​(com.google.protobuf.CodedInputStream input,
                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws IOException
        Throws:
        IOException
      • newBuilderForType

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

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

        protected MigratingVm.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static MigratingVm getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<MigratingVm> parser()
      • getParserForType

        public com.google.protobuf.Parser<MigratingVm> 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 MigratingVm getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder