Class DiskMigrationJob (1.74.0)

public final class DiskMigrationJob extends GeneratedMessageV3 implements DiskMigrationJobOrBuilder

Describes the disk which will be migrated from the source environment. The source disk has to be unattached.

Protobuf type google.cloud.vmmigration.v1.DiskMigrationJob

Static Fields

AWS_SOURCE_DISK_DETAILS_FIELD_NUMBER

public static final int AWS_SOURCE_DISK_DETAILS_FIELD_NUMBER
Field Value
Type Description
int

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

ERRORS_FIELD_NUMBER

public static final int ERRORS_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
Type Description
int

STEPS_FIELD_NUMBER

public static final int STEPS_FIELD_NUMBER
Field Value
Type Description
int

TARGET_DETAILS_FIELD_NUMBER

public static final int TARGET_DETAILS_FIELD_NUMBER
Field Value
Type Description
int

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static DiskMigrationJob getDefaultInstance()
Returns
Type Description
DiskMigrationJob

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static DiskMigrationJob.Builder newBuilder()
Returns
Type Description
DiskMigrationJob.Builder

newBuilder(DiskMigrationJob prototype)

public static DiskMigrationJob.Builder newBuilder(DiskMigrationJob prototype)
Parameter
Name Description
prototype DiskMigrationJob
Returns
Type Description
DiskMigrationJob.Builder

parseDelimitedFrom(InputStream input)

public static DiskMigrationJob parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DiskMigrationJob
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DiskMigrationJob parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DiskMigrationJob
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static DiskMigrationJob parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
DiskMigrationJob
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static DiskMigrationJob parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DiskMigrationJob
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static DiskMigrationJob parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
DiskMigrationJob
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static DiskMigrationJob parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DiskMigrationJob
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static DiskMigrationJob parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
DiskMigrationJob
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static DiskMigrationJob parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DiskMigrationJob
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static DiskMigrationJob parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
DiskMigrationJob
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DiskMigrationJob parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DiskMigrationJob
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static DiskMigrationJob parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
DiskMigrationJob
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static DiskMigrationJob parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DiskMigrationJob
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<DiskMigrationJob> parser()
Returns
Type Description
Parser<DiskMigrationJob>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAwsSourceDiskDetails()

public AwsSourceDiskDetails getAwsSourceDiskDetails()

Details of the unattached AWS source disk.

.google.cloud.vmmigration.v1.AwsSourceDiskDetails aws_source_disk_details = 2;

Returns
Type Description
AwsSourceDiskDetails

The awsSourceDiskDetails.

getAwsSourceDiskDetailsOrBuilder()

public AwsSourceDiskDetailsOrBuilder getAwsSourceDiskDetailsOrBuilder()

Details of the unattached AWS source disk.

.google.cloud.vmmigration.v1.AwsSourceDiskDetails aws_source_disk_details = 2;

Returns
Type Description
AwsSourceDiskDetailsOrBuilder

getCreateTime()

public Timestamp getCreateTime()

Output only. The time the DiskMigrationJob resource was created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time the DiskMigrationJob resource was created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public DiskMigrationJob getDefaultInstanceForType()
Returns
Type Description
DiskMigrationJob

getErrors(int index)

public Status getErrors(int index)

Output only. Provides details on the errors that led to the disk migration job's state in case of an error.

repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
com.google.rpc.Status

getErrorsCount()

public int getErrorsCount()

Output only. Provides details on the errors that led to the disk migration job's state in case of an error.

repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getErrorsList()

public List<Status> getErrorsList()

Output only. Provides details on the errors that led to the disk migration job's state in case of an error.

repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<com.google.rpc.Status>

getErrorsOrBuilder(int index)

public StatusOrBuilder getErrorsOrBuilder(int index)

Output only. Provides details on the errors that led to the disk migration job's state in case of an error.

repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
com.google.rpc.StatusOrBuilder

getErrorsOrBuilderList()

public List<? extends StatusOrBuilder> getErrorsOrBuilderList()

Output only. Provides details on the errors that led to the disk migration job's state in case of an error.

repeated .google.rpc.Status errors = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.rpc.StatusOrBuilder>

getName()

public String getName()

Output only. Identifier. The identifier of the DiskMigrationJob.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. Identifier. The identifier of the DiskMigrationJob.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

public Parser<DiskMigrationJob> getParserForType()
Returns
Type Description
Parser<DiskMigrationJob>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSourceDiskDetailsCase()

public DiskMigrationJob.SourceDiskDetailsCase getSourceDiskDetailsCase()
Returns
Type Description
DiskMigrationJob.SourceDiskDetailsCase

getState()

public DiskMigrationJob.State getState()

Output only. State of the DiskMigrationJob.

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

Returns
Type Description
DiskMigrationJob.State

The state.

getStateValue()

public int getStateValue()

Output only. State of the DiskMigrationJob.

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

Returns
Type Description
int

The enum numeric value on the wire for state.

getSteps(int index)

public DiskMigrationStep getSteps(int index)

Output only. The disk migration steps list representing its progress.

repeated .google.cloud.vmmigration.v1.DiskMigrationStep steps = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
DiskMigrationStep

getStepsCount()

public int getStepsCount()

Output only. The disk migration steps list representing its progress.

repeated .google.cloud.vmmigration.v1.DiskMigrationStep steps = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getStepsList()

public List<DiskMigrationStep> getStepsList()

Output only. The disk migration steps list representing its progress.

repeated .google.cloud.vmmigration.v1.DiskMigrationStep steps = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<DiskMigrationStep>

getStepsOrBuilder(int index)

public DiskMigrationStepOrBuilder getStepsOrBuilder(int index)

Output only. The disk migration steps list representing its progress.

repeated .google.cloud.vmmigration.v1.DiskMigrationStep steps = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
DiskMigrationStepOrBuilder

getStepsOrBuilderList()

public List<? extends DiskMigrationStepOrBuilder> getStepsOrBuilderList()

Output only. The disk migration steps list representing its progress.

repeated .google.cloud.vmmigration.v1.DiskMigrationStep steps = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.vmmigration.v1.DiskMigrationStepOrBuilder>

getTargetDetails()

public DiskMigrationJobTargetDetails getTargetDetails()

Required. Details of the target Disk in Compute Engine.

.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails target_details = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DiskMigrationJobTargetDetails

The targetDetails.

getTargetDetailsOrBuilder()

public DiskMigrationJobTargetDetailsOrBuilder getTargetDetailsOrBuilder()

Required. Details of the target Disk in Compute Engine.

.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails target_details = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DiskMigrationJobTargetDetailsOrBuilder

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The last time the DiskMigrationJob resource was updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The last time the DiskMigrationJob resource was updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasAwsSourceDiskDetails()

public boolean hasAwsSourceDiskDetails()

Details of the unattached AWS source disk.

.google.cloud.vmmigration.v1.AwsSourceDiskDetails aws_source_disk_details = 2;

Returns
Type Description
boolean

Whether the awsSourceDiskDetails field is set.

hasCreateTime()

public boolean hasCreateTime()

Output only. The time the DiskMigrationJob resource was created.

.google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasTargetDetails()

public boolean hasTargetDetails()

Required. Details of the target Disk in Compute Engine.

.google.cloud.vmmigration.v1.DiskMigrationJobTargetDetails target_details = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the targetDetails field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The last time the DiskMigrationJob resource was updated.

.google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public DiskMigrationJob.Builder newBuilderForType()
Returns
Type Description
DiskMigrationJob.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected DiskMigrationJob.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
DiskMigrationJob.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public DiskMigrationJob.Builder toBuilder()
Returns
Type Description
DiskMigrationJob.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException