Class DiskMigrationJob.Builder (1.74.0)

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

getDescriptor()

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

Methods

addAllErrors(Iterable<? extends Status> values)

public DiskMigrationJob.Builder addAllErrors(Iterable<? extends Status> values)

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
values Iterable<? extends com.google.rpc.Status>
Returns
Type Description
DiskMigrationJob.Builder

addAllSteps(Iterable<? extends DiskMigrationStep> values)

public DiskMigrationJob.Builder addAllSteps(Iterable<? extends DiskMigrationStep> values)

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
values Iterable<? extends com.google.cloud.vmmigration.v1.DiskMigrationStep>
Returns
Type Description
DiskMigrationJob.Builder

addErrors(Status value)

public DiskMigrationJob.Builder addErrors(Status value)

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
value com.google.rpc.Status
Returns
Type Description
DiskMigrationJob.Builder

addErrors(Status.Builder builderForValue)

public DiskMigrationJob.Builder addErrors(Status.Builder builderForValue)

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
builderForValue com.google.rpc.Status.Builder
Returns
Type Description
DiskMigrationJob.Builder

addErrors(int index, Status value)

public DiskMigrationJob.Builder addErrors(int index, Status value)

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

Parameters
Name Description
index int
value com.google.rpc.Status
Returns
Type Description
DiskMigrationJob.Builder

addErrors(int index, Status.Builder builderForValue)

public DiskMigrationJob.Builder addErrors(int index, Status.Builder builderForValue)

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

Parameters
Name Description
index int
builderForValue com.google.rpc.Status.Builder
Returns
Type Description
DiskMigrationJob.Builder

addErrorsBuilder()

public Status.Builder addErrorsBuilder()

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
com.google.rpc.Status.Builder

addErrorsBuilder(int index)

public Status.Builder addErrorsBuilder(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.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DiskMigrationJob.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DiskMigrationJob.Builder
Overrides

addSteps(DiskMigrationStep value)

public DiskMigrationJob.Builder addSteps(DiskMigrationStep value)

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
value DiskMigrationStep
Returns
Type Description
DiskMigrationJob.Builder

addSteps(DiskMigrationStep.Builder builderForValue)

public DiskMigrationJob.Builder addSteps(DiskMigrationStep.Builder builderForValue)

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
builderForValue DiskMigrationStep.Builder
Returns
Type Description
DiskMigrationJob.Builder

addSteps(int index, DiskMigrationStep value)

public DiskMigrationJob.Builder addSteps(int index, DiskMigrationStep value)

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

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

Parameters
Name Description
index int
value DiskMigrationStep
Returns
Type Description
DiskMigrationJob.Builder

addSteps(int index, DiskMigrationStep.Builder builderForValue)

public DiskMigrationJob.Builder addSteps(int index, DiskMigrationStep.Builder builderForValue)

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

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

Parameters
Name Description
index int
builderForValue DiskMigrationStep.Builder
Returns
Type Description
DiskMigrationJob.Builder

addStepsBuilder()

public DiskMigrationStep.Builder addStepsBuilder()

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

addStepsBuilder(int index)

public DiskMigrationStep.Builder addStepsBuilder(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.Builder

build()

public DiskMigrationJob build()
Returns
Type Description
DiskMigrationJob

buildPartial()

public DiskMigrationJob buildPartial()
Returns
Type Description
DiskMigrationJob

clear()

public DiskMigrationJob.Builder clear()
Returns
Type Description
DiskMigrationJob.Builder
Overrides

clearAwsSourceDiskDetails()

public DiskMigrationJob.Builder clearAwsSourceDiskDetails()

Details of the unattached AWS source disk.

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

Returns
Type Description
DiskMigrationJob.Builder

clearCreateTime()

public DiskMigrationJob.Builder clearCreateTime()

Output only. The time the DiskMigrationJob resource was created.

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

Returns
Type Description
DiskMigrationJob.Builder

clearErrors()

public DiskMigrationJob.Builder clearErrors()

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

clearField(Descriptors.FieldDescriptor field)

public DiskMigrationJob.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DiskMigrationJob.Builder
Overrides

clearName()

public DiskMigrationJob.Builder clearName()

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DiskMigrationJob.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DiskMigrationJob.Builder
Overrides

clearSourceDiskDetails()

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

clearState()

public DiskMigrationJob.Builder clearState()

Output only. State of the DiskMigrationJob.

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

Returns
Type Description
DiskMigrationJob.Builder

This builder for chaining.

clearSteps()

public DiskMigrationJob.Builder clearSteps()

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

clearTargetDetails()

public DiskMigrationJob.Builder clearTargetDetails()

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

clearUpdateTime()

public DiskMigrationJob.Builder clearUpdateTime()

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

clone()

public DiskMigrationJob.Builder clone()
Returns
Type Description
DiskMigrationJob.Builder
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.

getAwsSourceDiskDetailsBuilder()

public AwsSourceDiskDetails.Builder getAwsSourceDiskDetailsBuilder()

Details of the unattached AWS source disk.

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

Returns
Type Description
AwsSourceDiskDetails.Builder

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.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The time the DiskMigrationJob resource was created.

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

Returns
Type Description
Builder

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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

getErrorsBuilder(int index)

public Status.Builder getErrorsBuilder(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.Builder

getErrorsBuilderList()

public List<Status.Builder> getErrorsBuilderList()

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

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.

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

getStepsBuilder(int index)

public DiskMigrationStep.Builder getStepsBuilder(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.Builder

getStepsBuilderList()

public List<DiskMigrationStep.Builder> getStepsBuilderList()

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

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.

getTargetDetailsBuilder()

public DiskMigrationJobTargetDetails.Builder getTargetDetailsBuilder()

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

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.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

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
Builder

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAwsSourceDiskDetails(AwsSourceDiskDetails value)

public DiskMigrationJob.Builder mergeAwsSourceDiskDetails(AwsSourceDiskDetails value)

Details of the unattached AWS source disk.

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

Parameter
Name Description
value AwsSourceDiskDetails
Returns
Type Description
DiskMigrationJob.Builder

mergeCreateTime(Timestamp value)

public DiskMigrationJob.Builder mergeCreateTime(Timestamp value)

Output only. The time the DiskMigrationJob resource was created.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
DiskMigrationJob.Builder

mergeFrom(DiskMigrationJob other)

public DiskMigrationJob.Builder mergeFrom(DiskMigrationJob other)
Parameter
Name Description
other DiskMigrationJob
Returns
Type Description
DiskMigrationJob.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DiskMigrationJob.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DiskMigrationJob.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DiskMigrationJob.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DiskMigrationJob.Builder
Overrides

mergeTargetDetails(DiskMigrationJobTargetDetails value)

public DiskMigrationJob.Builder mergeTargetDetails(DiskMigrationJobTargetDetails value)

Required. Details of the target Disk in Compute Engine.

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

Parameter
Name Description
value DiskMigrationJobTargetDetails
Returns
Type Description
DiskMigrationJob.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DiskMigrationJob.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DiskMigrationJob.Builder
Overrides

mergeUpdateTime(Timestamp value)

public DiskMigrationJob.Builder mergeUpdateTime(Timestamp value)

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

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

Parameter
Name Description
value Timestamp
Returns
Type Description
DiskMigrationJob.Builder

removeErrors(int index)

public DiskMigrationJob.Builder removeErrors(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
DiskMigrationJob.Builder

removeSteps(int index)

public DiskMigrationJob.Builder removeSteps(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
DiskMigrationJob.Builder

setAwsSourceDiskDetails(AwsSourceDiskDetails value)

public DiskMigrationJob.Builder setAwsSourceDiskDetails(AwsSourceDiskDetails value)

Details of the unattached AWS source disk.

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

Parameter
Name Description
value AwsSourceDiskDetails
Returns
Type Description
DiskMigrationJob.Builder

setAwsSourceDiskDetails(AwsSourceDiskDetails.Builder builderForValue)

public DiskMigrationJob.Builder setAwsSourceDiskDetails(AwsSourceDiskDetails.Builder builderForValue)

Details of the unattached AWS source disk.

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

Parameter
Name Description
builderForValue AwsSourceDiskDetails.Builder
Returns
Type Description
DiskMigrationJob.Builder

setCreateTime(Timestamp value)

public DiskMigrationJob.Builder setCreateTime(Timestamp value)

Output only. The time the DiskMigrationJob resource was created.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
DiskMigrationJob.Builder

setCreateTime(Timestamp.Builder builderForValue)

public DiskMigrationJob.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The time the DiskMigrationJob resource was created.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
DiskMigrationJob.Builder

setErrors(int index, Status value)

public DiskMigrationJob.Builder setErrors(int index, Status value)

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

Parameters
Name Description
index int
value com.google.rpc.Status
Returns
Type Description
DiskMigrationJob.Builder

setErrors(int index, Status.Builder builderForValue)

public DiskMigrationJob.Builder setErrors(int index, Status.Builder builderForValue)

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

Parameters
Name Description
index int
builderForValue com.google.rpc.Status.Builder
Returns
Type Description
DiskMigrationJob.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public DiskMigrationJob.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DiskMigrationJob.Builder
Overrides

setName(String value)

public DiskMigrationJob.Builder setName(String value)

Output only. Identifier. The identifier of the DiskMigrationJob.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
DiskMigrationJob.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DiskMigrationJob.Builder setNameBytes(ByteString value)

Output only. Identifier. The identifier of the DiskMigrationJob.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
DiskMigrationJob.Builder

This builder for chaining.

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

public DiskMigrationJob.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DiskMigrationJob.Builder
Overrides

setState(DiskMigrationJob.State value)

public DiskMigrationJob.Builder setState(DiskMigrationJob.State value)

Output only. State of the DiskMigrationJob.

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

Parameter
Name Description
value DiskMigrationJob.State

The state to set.

Returns
Type Description
DiskMigrationJob.Builder

This builder for chaining.

setStateValue(int value)

public DiskMigrationJob.Builder setStateValue(int value)

Output only. State of the DiskMigrationJob.

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

Parameter
Name Description
value int

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

Returns
Type Description
DiskMigrationJob.Builder

This builder for chaining.

setSteps(int index, DiskMigrationStep value)

public DiskMigrationJob.Builder setSteps(int index, DiskMigrationStep value)

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

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

Parameters
Name Description
index int
value DiskMigrationStep
Returns
Type Description
DiskMigrationJob.Builder

setSteps(int index, DiskMigrationStep.Builder builderForValue)

public DiskMigrationJob.Builder setSteps(int index, DiskMigrationStep.Builder builderForValue)

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

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

Parameters
Name Description
index int
builderForValue DiskMigrationStep.Builder
Returns
Type Description
DiskMigrationJob.Builder

setTargetDetails(DiskMigrationJobTargetDetails value)

public DiskMigrationJob.Builder setTargetDetails(DiskMigrationJobTargetDetails value)

Required. Details of the target Disk in Compute Engine.

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

Parameter
Name Description
value DiskMigrationJobTargetDetails
Returns
Type Description
DiskMigrationJob.Builder

setTargetDetails(DiskMigrationJobTargetDetails.Builder builderForValue)

public DiskMigrationJob.Builder setTargetDetails(DiskMigrationJobTargetDetails.Builder builderForValue)

Required. Details of the target Disk in Compute Engine.

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

Parameter
Name Description
builderForValue DiskMigrationJobTargetDetails.Builder
Returns
Type Description
DiskMigrationJob.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final DiskMigrationJob.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DiskMigrationJob.Builder
Overrides

setUpdateTime(Timestamp value)

public DiskMigrationJob.Builder setUpdateTime(Timestamp value)

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

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

Parameter
Name Description
value Timestamp
Returns
Type Description
DiskMigrationJob.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public DiskMigrationJob.Builder setUpdateTime(Timestamp.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
DiskMigrationJob.Builder