Class ImageImportJob.Builder (1.74.0)

public static final class ImageImportJob.Builder extends GeneratedMessageV3.Builder<ImageImportJob.Builder> implements ImageImportJobOrBuilder

ImageImportJob describes the progress and result of an image import.

Protobuf type google.cloud.vmmigration.v1.ImageImportJob

Static Methods

getDescriptor()

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

Methods

addAllCreatedResources(Iterable<String> values)

public ImageImportJob.Builder addAllCreatedResources(Iterable<String> values)

Output only. The resource paths of the resources created by the image import job.

repeated string created_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<String>

The createdResources to add.

Returns
Type Description
ImageImportJob.Builder

This builder for chaining.

addAllErrors(Iterable<? extends Status> values)

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

Output only. Provides details on the error that led to the image import 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
ImageImportJob.Builder

addAllSteps(Iterable<? extends ImageImportStep> values)

public ImageImportJob.Builder addAllSteps(Iterable<? extends ImageImportStep> values)

Output only. The image import steps list representing its progress.

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

Parameter
Name Description
values Iterable<? extends com.google.cloud.vmmigration.v1.ImageImportStep>
Returns
Type Description
ImageImportJob.Builder

addAllWarnings(Iterable<? extends MigrationWarning> values)

public ImageImportJob.Builder addAllWarnings(Iterable<? extends MigrationWarning> values)

Output only. Warnings that occurred during the image import.

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

Parameter
Name Description
values Iterable<? extends com.google.cloud.vmmigration.v1.MigrationWarning>
Returns
Type Description
ImageImportJob.Builder

addCreatedResources(String value)

public ImageImportJob.Builder addCreatedResources(String value)

Output only. The resource paths of the resources created by the image import job.

repeated string created_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The createdResources to add.

Returns
Type Description
ImageImportJob.Builder

This builder for chaining.

addCreatedResourcesBytes(ByteString value)

public ImageImportJob.Builder addCreatedResourcesBytes(ByteString value)

Output only. The resource paths of the resources created by the image import job.

repeated string created_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes of the createdResources to add.

Returns
Type Description
ImageImportJob.Builder

This builder for chaining.

addErrors(Status value)

public ImageImportJob.Builder addErrors(Status value)

Output only. Provides details on the error that led to the image import 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
ImageImportJob.Builder

addErrors(Status.Builder builderForValue)

public ImageImportJob.Builder addErrors(Status.Builder builderForValue)

Output only. Provides details on the error that led to the image import 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
ImageImportJob.Builder

addErrors(int index, Status value)

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

Output only. Provides details on the error that led to the image import 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
ImageImportJob.Builder

addErrors(int index, Status.Builder builderForValue)

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

Output only. Provides details on the error that led to the image import 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
ImageImportJob.Builder

addErrorsBuilder()

public Status.Builder addErrorsBuilder()

Output only. Provides details on the error that led to the image import 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 error that led to the image import 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 ImageImportJob.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ImageImportJob.Builder
Overrides

addSteps(ImageImportStep value)

public ImageImportJob.Builder addSteps(ImageImportStep value)

Output only. The image import steps list representing its progress.

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

Parameter
Name Description
value ImageImportStep
Returns
Type Description
ImageImportJob.Builder

addSteps(ImageImportStep.Builder builderForValue)

public ImageImportJob.Builder addSteps(ImageImportStep.Builder builderForValue)

Output only. The image import steps list representing its progress.

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

Parameter
Name Description
builderForValue ImageImportStep.Builder
Returns
Type Description
ImageImportJob.Builder

addSteps(int index, ImageImportStep value)

public ImageImportJob.Builder addSteps(int index, ImageImportStep value)

Output only. The image import steps list representing its progress.

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

Parameters
Name Description
index int
value ImageImportStep
Returns
Type Description
ImageImportJob.Builder

addSteps(int index, ImageImportStep.Builder builderForValue)

public ImageImportJob.Builder addSteps(int index, ImageImportStep.Builder builderForValue)

Output only. The image import steps list representing its progress.

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

Parameters
Name Description
index int
builderForValue ImageImportStep.Builder
Returns
Type Description
ImageImportJob.Builder

addStepsBuilder()

public ImageImportStep.Builder addStepsBuilder()

Output only. The image import steps list representing its progress.

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

Returns
Type Description
ImageImportStep.Builder

addStepsBuilder(int index)

public ImageImportStep.Builder addStepsBuilder(int index)

Output only. The image import steps list representing its progress.

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

Parameter
Name Description
index int
Returns
Type Description
ImageImportStep.Builder

addWarnings(MigrationWarning value)

public ImageImportJob.Builder addWarnings(MigrationWarning value)

Output only. Warnings that occurred during the image import.

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

Parameter
Name Description
value MigrationWarning
Returns
Type Description
ImageImportJob.Builder

addWarnings(MigrationWarning.Builder builderForValue)

public ImageImportJob.Builder addWarnings(MigrationWarning.Builder builderForValue)

Output only. Warnings that occurred during the image import.

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

Parameter
Name Description
builderForValue MigrationWarning.Builder
Returns
Type Description
ImageImportJob.Builder

addWarnings(int index, MigrationWarning value)

public ImageImportJob.Builder addWarnings(int index, MigrationWarning value)

Output only. Warnings that occurred during the image import.

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

Parameters
Name Description
index int
value MigrationWarning
Returns
Type Description
ImageImportJob.Builder

addWarnings(int index, MigrationWarning.Builder builderForValue)

public ImageImportJob.Builder addWarnings(int index, MigrationWarning.Builder builderForValue)

Output only. Warnings that occurred during the image import.

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

Parameters
Name Description
index int
builderForValue MigrationWarning.Builder
Returns
Type Description
ImageImportJob.Builder

addWarningsBuilder()

public MigrationWarning.Builder addWarningsBuilder()

Output only. Warnings that occurred during the image import.

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

Returns
Type Description
MigrationWarning.Builder

addWarningsBuilder(int index)

public MigrationWarning.Builder addWarningsBuilder(int index)

Output only. Warnings that occurred during the image import.

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

Parameter
Name Description
index int
Returns
Type Description
MigrationWarning.Builder

build()

public ImageImportJob build()
Returns
Type Description
ImageImportJob

buildPartial()

public ImageImportJob buildPartial()
Returns
Type Description
ImageImportJob

clear()

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

clearCloudStorageUri()

public ImageImportJob.Builder clearCloudStorageUri()

Output only. The path to the Cloud Storage file from which the image should be imported.

string cloud_storage_uri = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ImageImportJob.Builder

This builder for chaining.

clearCreateTime()

public ImageImportJob.Builder clearCreateTime()

Output only. The time the image import was created (as an API call, not when it was actually created in the target).

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

Returns
Type Description
ImageImportJob.Builder

clearCreatedResources()

public ImageImportJob.Builder clearCreatedResources()

Output only. The resource paths of the resources created by the image import job.

repeated string created_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ImageImportJob.Builder

This builder for chaining.

clearDiskImageTargetDetails()

public ImageImportJob.Builder clearDiskImageTargetDetails()

Output only. Target details used to import a disk image.

.google.cloud.vmmigration.v1.DiskImageTargetDetails disk_image_target_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ImageImportJob.Builder

clearEndTime()

public ImageImportJob.Builder clearEndTime()

Output only. The time the image import was ended.

.google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ImageImportJob.Builder

clearErrors()

public ImageImportJob.Builder clearErrors()

Output only. Provides details on the error that led to the image import state in case of an error.

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

Returns
Type Description
ImageImportJob.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearMachineImageTargetDetails()

public ImageImportJob.Builder clearMachineImageTargetDetails()

Output only. Target details used to import a machine image.

.google.cloud.vmmigration.v1.MachineImageTargetDetails machine_image_target_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ImageImportJob.Builder

clearName()

public ImageImportJob.Builder clearName()

Output only. The resource path of the ImageImportJob.

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

Returns
Type Description
ImageImportJob.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSource()

public ImageImportJob.Builder clearSource()
Returns
Type Description
ImageImportJob.Builder

clearState()

public ImageImportJob.Builder clearState()

Output only. The state of the image import.

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

Returns
Type Description
ImageImportJob.Builder

This builder for chaining.

clearSteps()

public ImageImportJob.Builder clearSteps()

Output only. The image import steps list representing its progress.

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

Returns
Type Description
ImageImportJob.Builder

clearTargetDetails()

public ImageImportJob.Builder clearTargetDetails()
Returns
Type Description
ImageImportJob.Builder

clearWarnings()

public ImageImportJob.Builder clearWarnings()

Output only. Warnings that occurred during the image import.

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

Returns
Type Description
ImageImportJob.Builder

clone()

public ImageImportJob.Builder clone()
Returns
Type Description
ImageImportJob.Builder
Overrides

getCloudStorageUri()

public String getCloudStorageUri()

Output only. The path to the Cloud Storage file from which the image should be imported.

string cloud_storage_uri = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The cloudStorageUri.

getCloudStorageUriBytes()

public ByteString getCloudStorageUriBytes()

Output only. The path to the Cloud Storage file from which the image should be imported.

string cloud_storage_uri = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for cloudStorageUri.

getCreateTime()

public Timestamp getCreateTime()

Output only. The time the image import was created (as an API call, not when it was actually created in the target).

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

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The time the image import was created (as an API call, not when it was actually created in the target).

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

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time the image import was created (as an API call, not when it was actually created in the target).

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

Returns
Type Description
TimestampOrBuilder

getCreatedResources(int index)

public String getCreatedResources(int index)

Output only. The resource paths of the resources created by the image import job.

repeated string created_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The createdResources at the given index.

getCreatedResourcesBytes(int index)

public ByteString getCreatedResourcesBytes(int index)

Output only. The resource paths of the resources created by the image import job.

repeated string created_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the createdResources at the given index.

getCreatedResourcesCount()

public int getCreatedResourcesCount()

Output only. The resource paths of the resources created by the image import job.

repeated string created_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The count of createdResources.

getCreatedResourcesList()

public ProtocolStringList getCreatedResourcesList()

Output only. The resource paths of the resources created by the image import job.

repeated string created_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ProtocolStringList

A list containing the createdResources.

getDefaultInstanceForType()

public ImageImportJob getDefaultInstanceForType()
Returns
Type Description
ImageImportJob

getDescriptorForType()

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

getDiskImageTargetDetails()

public DiskImageTargetDetails getDiskImageTargetDetails()

Output only. Target details used to import a disk image.

.google.cloud.vmmigration.v1.DiskImageTargetDetails disk_image_target_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DiskImageTargetDetails

The diskImageTargetDetails.

getDiskImageTargetDetailsBuilder()

public DiskImageTargetDetails.Builder getDiskImageTargetDetailsBuilder()

Output only. Target details used to import a disk image.

.google.cloud.vmmigration.v1.DiskImageTargetDetails disk_image_target_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DiskImageTargetDetails.Builder

getDiskImageTargetDetailsOrBuilder()

public DiskImageTargetDetailsOrBuilder getDiskImageTargetDetailsOrBuilder()

Output only. Target details used to import a disk image.

.google.cloud.vmmigration.v1.DiskImageTargetDetails disk_image_target_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
DiskImageTargetDetailsOrBuilder

getEndTime()

public Timestamp getEndTime()

Output only. The time the image import was ended.

.google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The endTime.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

Output only. The time the image import was ended.

.google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

Output only. The time the image import was ended.

.google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getErrors(int index)

public Status getErrors(int index)

Output only. Provides details on the error that led to the image import 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 error that led to the image import 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 error that led to the image import 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 error that led to the image import 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 error that led to the image import 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 error that led to the image import 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 error that led to the image import 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>

getMachineImageTargetDetails()

public MachineImageTargetDetails getMachineImageTargetDetails()

Output only. Target details used to import a machine image.

.google.cloud.vmmigration.v1.MachineImageTargetDetails machine_image_target_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MachineImageTargetDetails

The machineImageTargetDetails.

getMachineImageTargetDetailsBuilder()

public MachineImageTargetDetails.Builder getMachineImageTargetDetailsBuilder()

Output only. Target details used to import a machine image.

.google.cloud.vmmigration.v1.MachineImageTargetDetails machine_image_target_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MachineImageTargetDetails.Builder

getMachineImageTargetDetailsOrBuilder()

public MachineImageTargetDetailsOrBuilder getMachineImageTargetDetailsOrBuilder()

Output only. Target details used to import a machine image.

.google.cloud.vmmigration.v1.MachineImageTargetDetails machine_image_target_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MachineImageTargetDetailsOrBuilder

getName()

public String getName()

Output only. The resource path of the ImageImportJob.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The resource path of the ImageImportJob.

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

Returns
Type Description
ByteString

The bytes for name.

getSourceCase()

public ImageImportJob.SourceCase getSourceCase()
Returns
Type Description
ImageImportJob.SourceCase

getState()

public ImageImportJob.State getState()

Output only. The state of the image import.

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

Returns
Type Description
ImageImportJob.State

The state.

getStateValue()

public int getStateValue()

Output only. The state of the image import.

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

Returns
Type Description
int

The enum numeric value on the wire for state.

getSteps(int index)

public ImageImportStep getSteps(int index)

Output only. The image import steps list representing its progress.

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

Parameter
Name Description
index int
Returns
Type Description
ImageImportStep

getStepsBuilder(int index)

public ImageImportStep.Builder getStepsBuilder(int index)

Output only. The image import steps list representing its progress.

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

Parameter
Name Description
index int
Returns
Type Description
ImageImportStep.Builder

getStepsBuilderList()

public List<ImageImportStep.Builder> getStepsBuilderList()

Output only. The image import steps list representing its progress.

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

Returns
Type Description
List<Builder>

getStepsCount()

public int getStepsCount()

Output only. The image import steps list representing its progress.

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

Returns
Type Description
int

getStepsList()

public List<ImageImportStep> getStepsList()

Output only. The image import steps list representing its progress.

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

Returns
Type Description
List<ImageImportStep>

getStepsOrBuilder(int index)

public ImageImportStepOrBuilder getStepsOrBuilder(int index)

Output only. The image import steps list representing its progress.

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

Parameter
Name Description
index int
Returns
Type Description
ImageImportStepOrBuilder

getStepsOrBuilderList()

public List<? extends ImageImportStepOrBuilder> getStepsOrBuilderList()

Output only. The image import steps list representing its progress.

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

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

getTargetDetailsCase()

public ImageImportJob.TargetDetailsCase getTargetDetailsCase()
Returns
Type Description
ImageImportJob.TargetDetailsCase

getWarnings(int index)

public MigrationWarning getWarnings(int index)

Output only. Warnings that occurred during the image import.

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

Parameter
Name Description
index int
Returns
Type Description
MigrationWarning

getWarningsBuilder(int index)

public MigrationWarning.Builder getWarningsBuilder(int index)

Output only. Warnings that occurred during the image import.

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

Parameter
Name Description
index int
Returns
Type Description
MigrationWarning.Builder

getWarningsBuilderList()

public List<MigrationWarning.Builder> getWarningsBuilderList()

Output only. Warnings that occurred during the image import.

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

Returns
Type Description
List<Builder>

getWarningsCount()

public int getWarningsCount()

Output only. Warnings that occurred during the image import.

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

Returns
Type Description
int

getWarningsList()

public List<MigrationWarning> getWarningsList()

Output only. Warnings that occurred during the image import.

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

Returns
Type Description
List<MigrationWarning>

getWarningsOrBuilder(int index)

public MigrationWarningOrBuilder getWarningsOrBuilder(int index)

Output only. Warnings that occurred during the image import.

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

Parameter
Name Description
index int
Returns
Type Description
MigrationWarningOrBuilder

getWarningsOrBuilderList()

public List<? extends MigrationWarningOrBuilder> getWarningsOrBuilderList()

Output only. Warnings that occurred during the image import.

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

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

hasCloudStorageUri()

public boolean hasCloudStorageUri()

Output only. The path to the Cloud Storage file from which the image should be imported.

string cloud_storage_uri = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the cloudStorageUri field is set.

hasCreateTime()

public boolean hasCreateTime()

Output only. The time the image import was created (as an API call, not when it was actually created in the target).

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

Returns
Type Description
boolean

Whether the createTime field is set.

hasDiskImageTargetDetails()

public boolean hasDiskImageTargetDetails()

Output only. Target details used to import a disk image.

.google.cloud.vmmigration.v1.DiskImageTargetDetails disk_image_target_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the diskImageTargetDetails field is set.

hasEndTime()

public boolean hasEndTime()

Output only. The time the image import was ended.

.google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the endTime field is set.

hasMachineImageTargetDetails()

public boolean hasMachineImageTargetDetails()

Output only. Target details used to import a machine image.

.google.cloud.vmmigration.v1.MachineImageTargetDetails machine_image_target_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the machineImageTargetDetails field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public ImageImportJob.Builder mergeCreateTime(Timestamp value)

Output only. The time the image import was created (as an API call, not when it was actually created in the target).

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

Parameter
Name Description
value Timestamp
Returns
Type Description
ImageImportJob.Builder

mergeDiskImageTargetDetails(DiskImageTargetDetails value)

public ImageImportJob.Builder mergeDiskImageTargetDetails(DiskImageTargetDetails value)

Output only. Target details used to import a disk image.

.google.cloud.vmmigration.v1.DiskImageTargetDetails disk_image_target_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value DiskImageTargetDetails
Returns
Type Description
ImageImportJob.Builder

mergeEndTime(Timestamp value)

public ImageImportJob.Builder mergeEndTime(Timestamp value)

Output only. The time the image import was ended.

.google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
ImageImportJob.Builder

mergeFrom(ImageImportJob other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMachineImageTargetDetails(MachineImageTargetDetails value)

public ImageImportJob.Builder mergeMachineImageTargetDetails(MachineImageTargetDetails value)

Output only. Target details used to import a machine image.

.google.cloud.vmmigration.v1.MachineImageTargetDetails machine_image_target_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value MachineImageTargetDetails
Returns
Type Description
ImageImportJob.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeErrors(int index)

public ImageImportJob.Builder removeErrors(int index)

Output only. Provides details on the error that led to the image import 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
ImageImportJob.Builder

removeSteps(int index)

public ImageImportJob.Builder removeSteps(int index)

Output only. The image import steps list representing its progress.

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

Parameter
Name Description
index int
Returns
Type Description
ImageImportJob.Builder

removeWarnings(int index)

public ImageImportJob.Builder removeWarnings(int index)

Output only. Warnings that occurred during the image import.

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

Parameter
Name Description
index int
Returns
Type Description
ImageImportJob.Builder

setCloudStorageUri(String value)

public ImageImportJob.Builder setCloudStorageUri(String value)

Output only. The path to the Cloud Storage file from which the image should be imported.

string cloud_storage_uri = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The cloudStorageUri to set.

Returns
Type Description
ImageImportJob.Builder

This builder for chaining.

setCloudStorageUriBytes(ByteString value)

public ImageImportJob.Builder setCloudStorageUriBytes(ByteString value)

Output only. The path to the Cloud Storage file from which the image should be imported.

string cloud_storage_uri = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for cloudStorageUri to set.

Returns
Type Description
ImageImportJob.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public ImageImportJob.Builder setCreateTime(Timestamp value)

Output only. The time the image import was created (as an API call, not when it was actually created in the target).

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

Parameter
Name Description
value Timestamp
Returns
Type Description
ImageImportJob.Builder

setCreateTime(Timestamp.Builder builderForValue)

public ImageImportJob.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The time the image import was created (as an API call, not when it was actually created in the target).

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ImageImportJob.Builder

setCreatedResources(int index, String value)

public ImageImportJob.Builder setCreatedResources(int index, String value)

Output only. The resource paths of the resources created by the image import job.

repeated string created_resources = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int

The index to set the value at.

value String

The createdResources to set.

Returns
Type Description
ImageImportJob.Builder

This builder for chaining.

setDiskImageTargetDetails(DiskImageTargetDetails value)

public ImageImportJob.Builder setDiskImageTargetDetails(DiskImageTargetDetails value)

Output only. Target details used to import a disk image.

.google.cloud.vmmigration.v1.DiskImageTargetDetails disk_image_target_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value DiskImageTargetDetails
Returns
Type Description
ImageImportJob.Builder

setDiskImageTargetDetails(DiskImageTargetDetails.Builder builderForValue)

public ImageImportJob.Builder setDiskImageTargetDetails(DiskImageTargetDetails.Builder builderForValue)

Output only. Target details used to import a disk image.

.google.cloud.vmmigration.v1.DiskImageTargetDetails disk_image_target_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue DiskImageTargetDetails.Builder
Returns
Type Description
ImageImportJob.Builder

setEndTime(Timestamp value)

public ImageImportJob.Builder setEndTime(Timestamp value)

Output only. The time the image import was ended.

.google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
ImageImportJob.Builder

setEndTime(Timestamp.Builder builderForValue)

public ImageImportJob.Builder setEndTime(Timestamp.Builder builderForValue)

Output only. The time the image import was ended.

.google.protobuf.Timestamp end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ImageImportJob.Builder

setErrors(int index, Status value)

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

Output only. Provides details on the error that led to the image import 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
ImageImportJob.Builder

setErrors(int index, Status.Builder builderForValue)

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

Output only. Provides details on the error that led to the image import 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
ImageImportJob.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setMachineImageTargetDetails(MachineImageTargetDetails value)

public ImageImportJob.Builder setMachineImageTargetDetails(MachineImageTargetDetails value)

Output only. Target details used to import a machine image.

.google.cloud.vmmigration.v1.MachineImageTargetDetails machine_image_target_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value MachineImageTargetDetails
Returns
Type Description
ImageImportJob.Builder

setMachineImageTargetDetails(MachineImageTargetDetails.Builder builderForValue)

public ImageImportJob.Builder setMachineImageTargetDetails(MachineImageTargetDetails.Builder builderForValue)

Output only. Target details used to import a machine image.

.google.cloud.vmmigration.v1.MachineImageTargetDetails machine_image_target_details = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue MachineImageTargetDetails.Builder
Returns
Type Description
ImageImportJob.Builder

setName(String value)

public ImageImportJob.Builder setName(String value)

Output only. The resource path of the ImageImportJob.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ImageImportJob.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ImageImportJob.Builder setNameBytes(ByteString value)

Output only. The resource path of the ImageImportJob.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ImageImportJob.Builder

This builder for chaining.

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

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

setState(ImageImportJob.State value)

public ImageImportJob.Builder setState(ImageImportJob.State value)

Output only. The state of the image import.

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

Parameter
Name Description
value ImageImportJob.State

The state to set.

Returns
Type Description
ImageImportJob.Builder

This builder for chaining.

setStateValue(int value)

public ImageImportJob.Builder setStateValue(int value)

Output only. The state of the image import.

.google.cloud.vmmigration.v1.ImageImportJob.State state = 4 [(.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
ImageImportJob.Builder

This builder for chaining.

setSteps(int index, ImageImportStep value)

public ImageImportJob.Builder setSteps(int index, ImageImportStep value)

Output only. The image import steps list representing its progress.

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

Parameters
Name Description
index int
value ImageImportStep
Returns
Type Description
ImageImportJob.Builder

setSteps(int index, ImageImportStep.Builder builderForValue)

public ImageImportJob.Builder setSteps(int index, ImageImportStep.Builder builderForValue)

Output only. The image import steps list representing its progress.

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

Parameters
Name Description
index int
builderForValue ImageImportStep.Builder
Returns
Type Description
ImageImportJob.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setWarnings(int index, MigrationWarning value)

public ImageImportJob.Builder setWarnings(int index, MigrationWarning value)

Output only. Warnings that occurred during the image import.

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

Parameters
Name Description
index int
value MigrationWarning
Returns
Type Description
ImageImportJob.Builder

setWarnings(int index, MigrationWarning.Builder builderForValue)

public ImageImportJob.Builder setWarnings(int index, MigrationWarning.Builder builderForValue)

Output only. Warnings that occurred during the image import.

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

Parameters
Name Description
index int
builderForValue MigrationWarning.Builder
Returns
Type Description
ImageImportJob.Builder