Class ImageImport.Builder (1.74.0)

public static final class ImageImport.Builder extends GeneratedMessageV3.Builder<ImageImport.Builder> implements ImageImportOrBuilder

ImageImport describes the configuration of the image import to run.

Protobuf type google.cloud.vmmigration.v1.ImageImport

Static Methods

getDescriptor()

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

Methods

addAllRecentImageImportJobs(Iterable<? extends ImageImportJob> values)

public ImageImport.Builder addAllRecentImageImportJobs(Iterable<? extends ImageImportJob> values)

Output only. The result of the most recent runs for this ImageImport. All jobs for this ImageImport can be listed via ListImageImportJobs.

repeated .google.cloud.vmmigration.v1.ImageImportJob recent_image_import_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

addRecentImageImportJobs(ImageImportJob value)

public ImageImport.Builder addRecentImageImportJobs(ImageImportJob value)

Output only. The result of the most recent runs for this ImageImport. All jobs for this ImageImport can be listed via ListImageImportJobs.

repeated .google.cloud.vmmigration.v1.ImageImportJob recent_image_import_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ImageImportJob
Returns
Type Description
ImageImport.Builder

addRecentImageImportJobs(ImageImportJob.Builder builderForValue)

public ImageImport.Builder addRecentImageImportJobs(ImageImportJob.Builder builderForValue)

Output only. The result of the most recent runs for this ImageImport. All jobs for this ImageImport can be listed via ListImageImportJobs.

repeated .google.cloud.vmmigration.v1.ImageImportJob recent_image_import_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

addRecentImageImportJobs(int index, ImageImportJob value)

public ImageImport.Builder addRecentImageImportJobs(int index, ImageImportJob value)

Output only. The result of the most recent runs for this ImageImport. All jobs for this ImageImport can be listed via ListImageImportJobs.

repeated .google.cloud.vmmigration.v1.ImageImportJob recent_image_import_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

addRecentImageImportJobs(int index, ImageImportJob.Builder builderForValue)

public ImageImport.Builder addRecentImageImportJobs(int index, ImageImportJob.Builder builderForValue)

Output only. The result of the most recent runs for this ImageImport. All jobs for this ImageImport can be listed via ListImageImportJobs.

repeated .google.cloud.vmmigration.v1.ImageImportJob recent_image_import_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

addRecentImageImportJobsBuilder()

public ImageImportJob.Builder addRecentImageImportJobsBuilder()

Output only. The result of the most recent runs for this ImageImport. All jobs for this ImageImport can be listed via ListImageImportJobs.

repeated .google.cloud.vmmigration.v1.ImageImportJob recent_image_import_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ImageImportJob.Builder

addRecentImageImportJobsBuilder(int index)

public ImageImportJob.Builder addRecentImageImportJobsBuilder(int index)

Output only. The result of the most recent runs for this ImageImport. All jobs for this ImageImport can be listed via ListImageImportJobs.

repeated .google.cloud.vmmigration.v1.ImageImportJob recent_image_import_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
ImageImportJob.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ImageImport build()
Returns
Type Description
ImageImport

buildPartial()

public ImageImport buildPartial()
Returns
Type Description
ImageImport

clear()

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

clearCloudStorageUri()

public ImageImport.Builder clearCloudStorageUri()

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

string cloud_storage_uri = 2 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
ImageImport.Builder

This builder for chaining.

clearCreateTime()

public ImageImport.Builder clearCreateTime()

Output only. The time the image import was created.

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

Returns
Type Description
ImageImport.Builder

clearDiskImageTargetDefaults()

public ImageImport.Builder clearDiskImageTargetDefaults()

Immutable. Target details for importing a disk image, will be used by ImageImportJob.

.google.cloud.vmmigration.v1.DiskImageTargetDetails disk_image_target_defaults = 4 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
ImageImport.Builder

clearEncryption()

public ImageImport.Builder clearEncryption()

Immutable. The encryption details used by the image import process during the image adaptation for Compute Engine.

.google.cloud.vmmigration.v1.Encryption encryption = 6 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
ImageImport.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearMachineImageTargetDefaults()

public ImageImport.Builder clearMachineImageTargetDefaults()

Immutable. Target details for importing a machine image, will be used by ImageImportJob.

.google.cloud.vmmigration.v1.MachineImageTargetDetails machine_image_target_defaults = 7 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
ImageImport.Builder

clearName()

public ImageImport.Builder clearName()

Output only. The resource path of the ImageImport.

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

Returns
Type Description
ImageImport.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRecentImageImportJobs()

public ImageImport.Builder clearRecentImageImportJobs()

Output only. The result of the most recent runs for this ImageImport. All jobs for this ImageImport can be listed via ListImageImportJobs.

repeated .google.cloud.vmmigration.v1.ImageImportJob recent_image_import_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ImageImport.Builder

clearSource()

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

clearTargetDefaults()

public ImageImport.Builder clearTargetDefaults()
Returns
Type Description
ImageImport.Builder

clone()

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

getCloudStorageUri()

public String getCloudStorageUri()

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

string cloud_storage_uri = 2 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
String

The cloudStorageUri.

getCloudStorageUriBytes()

public ByteString getCloudStorageUriBytes()

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

string cloud_storage_uri = 2 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
ByteString

The bytes for cloudStorageUri.

getCreateTime()

public Timestamp getCreateTime()

Output only. The time the image import was created.

.google.protobuf.Timestamp create_time = 3 [(.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.

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

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time the image import was created.

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

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public ImageImport getDefaultInstanceForType()
Returns
Type Description
ImageImport

getDescriptorForType()

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

getDiskImageTargetDefaults()

public DiskImageTargetDetails getDiskImageTargetDefaults()

Immutable. Target details for importing a disk image, will be used by ImageImportJob.

.google.cloud.vmmigration.v1.DiskImageTargetDetails disk_image_target_defaults = 4 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
DiskImageTargetDetails

The diskImageTargetDefaults.

getDiskImageTargetDefaultsBuilder()

public DiskImageTargetDetails.Builder getDiskImageTargetDefaultsBuilder()

Immutable. Target details for importing a disk image, will be used by ImageImportJob.

.google.cloud.vmmigration.v1.DiskImageTargetDetails disk_image_target_defaults = 4 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
DiskImageTargetDetails.Builder

getDiskImageTargetDefaultsOrBuilder()

public DiskImageTargetDetailsOrBuilder getDiskImageTargetDefaultsOrBuilder()

Immutable. Target details for importing a disk image, will be used by ImageImportJob.

.google.cloud.vmmigration.v1.DiskImageTargetDetails disk_image_target_defaults = 4 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
DiskImageTargetDetailsOrBuilder

getEncryption()

public Encryption getEncryption()

Immutable. The encryption details used by the image import process during the image adaptation for Compute Engine.

.google.cloud.vmmigration.v1.Encryption encryption = 6 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
Encryption

The encryption.

getEncryptionBuilder()

public Encryption.Builder getEncryptionBuilder()

Immutable. The encryption details used by the image import process during the image adaptation for Compute Engine.

.google.cloud.vmmigration.v1.Encryption encryption = 6 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
Encryption.Builder

getEncryptionOrBuilder()

public EncryptionOrBuilder getEncryptionOrBuilder()

Immutable. The encryption details used by the image import process during the image adaptation for Compute Engine.

.google.cloud.vmmigration.v1.Encryption encryption = 6 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
EncryptionOrBuilder

getMachineImageTargetDefaults()

public MachineImageTargetDetails getMachineImageTargetDefaults()

Immutable. Target details for importing a machine image, will be used by ImageImportJob.

.google.cloud.vmmigration.v1.MachineImageTargetDetails machine_image_target_defaults = 7 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
MachineImageTargetDetails

The machineImageTargetDefaults.

getMachineImageTargetDefaultsBuilder()

public MachineImageTargetDetails.Builder getMachineImageTargetDefaultsBuilder()

Immutable. Target details for importing a machine image, will be used by ImageImportJob.

.google.cloud.vmmigration.v1.MachineImageTargetDetails machine_image_target_defaults = 7 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
MachineImageTargetDetails.Builder

getMachineImageTargetDefaultsOrBuilder()

public MachineImageTargetDetailsOrBuilder getMachineImageTargetDefaultsOrBuilder()

Immutable. Target details for importing a machine image, will be used by ImageImportJob.

.google.cloud.vmmigration.v1.MachineImageTargetDetails machine_image_target_defaults = 7 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
MachineImageTargetDetailsOrBuilder

getName()

public String getName()

Output only. The resource path of the ImageImport.

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

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

Returns
Type Description
ByteString

The bytes for name.

getRecentImageImportJobs(int index)

public ImageImportJob getRecentImageImportJobs(int index)

Output only. The result of the most recent runs for this ImageImport. All jobs for this ImageImport can be listed via ListImageImportJobs.

repeated .google.cloud.vmmigration.v1.ImageImportJob recent_image_import_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
ImageImportJob

getRecentImageImportJobsBuilder(int index)

public ImageImportJob.Builder getRecentImageImportJobsBuilder(int index)

Output only. The result of the most recent runs for this ImageImport. All jobs for this ImageImport can be listed via ListImageImportJobs.

repeated .google.cloud.vmmigration.v1.ImageImportJob recent_image_import_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
ImageImportJob.Builder

getRecentImageImportJobsBuilderList()

public List<ImageImportJob.Builder> getRecentImageImportJobsBuilderList()

Output only. The result of the most recent runs for this ImageImport. All jobs for this ImageImport can be listed via ListImageImportJobs.

repeated .google.cloud.vmmigration.v1.ImageImportJob recent_image_import_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Builder>

getRecentImageImportJobsCount()

public int getRecentImageImportJobsCount()

Output only. The result of the most recent runs for this ImageImport. All jobs for this ImageImport can be listed via ListImageImportJobs.

repeated .google.cloud.vmmigration.v1.ImageImportJob recent_image_import_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getRecentImageImportJobsList()

public List<ImageImportJob> getRecentImageImportJobsList()

Output only. The result of the most recent runs for this ImageImport. All jobs for this ImageImport can be listed via ListImageImportJobs.

repeated .google.cloud.vmmigration.v1.ImageImportJob recent_image_import_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<ImageImportJob>

getRecentImageImportJobsOrBuilder(int index)

public ImageImportJobOrBuilder getRecentImageImportJobsOrBuilder(int index)

Output only. The result of the most recent runs for this ImageImport. All jobs for this ImageImport can be listed via ListImageImportJobs.

repeated .google.cloud.vmmigration.v1.ImageImportJob recent_image_import_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
ImageImportJobOrBuilder

getRecentImageImportJobsOrBuilderList()

public List<? extends ImageImportJobOrBuilder> getRecentImageImportJobsOrBuilderList()

Output only. The result of the most recent runs for this ImageImport. All jobs for this ImageImport can be listed via ListImageImportJobs.

repeated .google.cloud.vmmigration.v1.ImageImportJob recent_image_import_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

getSourceCase()

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

getTargetDefaultsCase()

public ImageImport.TargetDefaultsCase getTargetDefaultsCase()
Returns
Type Description
ImageImport.TargetDefaultsCase

hasCloudStorageUri()

public boolean hasCloudStorageUri()

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

string cloud_storage_uri = 2 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
boolean

Whether the cloudStorageUri field is set.

hasCreateTime()

public boolean hasCreateTime()

Output only. The time the image import was created.

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

Returns
Type Description
boolean

Whether the createTime field is set.

hasDiskImageTargetDefaults()

public boolean hasDiskImageTargetDefaults()

Immutable. Target details for importing a disk image, will be used by ImageImportJob.

.google.cloud.vmmigration.v1.DiskImageTargetDetails disk_image_target_defaults = 4 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
boolean

Whether the diskImageTargetDefaults field is set.

hasEncryption()

public boolean hasEncryption()

Immutable. The encryption details used by the image import process during the image adaptation for Compute Engine.

.google.cloud.vmmigration.v1.Encryption encryption = 6 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
boolean

Whether the encryption field is set.

hasMachineImageTargetDefaults()

public boolean hasMachineImageTargetDefaults()

Immutable. Target details for importing a machine image, will be used by ImageImportJob.

.google.cloud.vmmigration.v1.MachineImageTargetDetails machine_image_target_defaults = 7 [(.google.api.field_behavior) = IMMUTABLE];

Returns
Type Description
boolean

Whether the machineImageTargetDefaults 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 ImageImport.Builder mergeCreateTime(Timestamp value)

Output only. The time the image import was created.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
ImageImport.Builder

mergeDiskImageTargetDefaults(DiskImageTargetDetails value)

public ImageImport.Builder mergeDiskImageTargetDefaults(DiskImageTargetDetails value)

Immutable. Target details for importing a disk image, will be used by ImageImportJob.

.google.cloud.vmmigration.v1.DiskImageTargetDetails disk_image_target_defaults = 4 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value DiskImageTargetDetails
Returns
Type Description
ImageImport.Builder

mergeEncryption(Encryption value)

public ImageImport.Builder mergeEncryption(Encryption value)

Immutable. The encryption details used by the image import process during the image adaptation for Compute Engine.

.google.cloud.vmmigration.v1.Encryption encryption = 6 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value Encryption
Returns
Type Description
ImageImport.Builder

mergeFrom(ImageImport other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMachineImageTargetDefaults(MachineImageTargetDetails value)

public ImageImport.Builder mergeMachineImageTargetDefaults(MachineImageTargetDetails value)

Immutable. Target details for importing a machine image, will be used by ImageImportJob.

.google.cloud.vmmigration.v1.MachineImageTargetDetails machine_image_target_defaults = 7 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value MachineImageTargetDetails
Returns
Type Description
ImageImport.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeRecentImageImportJobs(int index)

public ImageImport.Builder removeRecentImageImportJobs(int index)

Output only. The result of the most recent runs for this ImageImport. All jobs for this ImageImport can be listed via ListImageImportJobs.

repeated .google.cloud.vmmigration.v1.ImageImportJob recent_image_import_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
ImageImport.Builder

setCloudStorageUri(String value)

public ImageImport.Builder setCloudStorageUri(String value)

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

string cloud_storage_uri = 2 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value String

The cloudStorageUri to set.

Returns
Type Description
ImageImport.Builder

This builder for chaining.

setCloudStorageUriBytes(ByteString value)

public ImageImport.Builder setCloudStorageUriBytes(ByteString value)

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

string cloud_storage_uri = 2 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value ByteString

The bytes for cloudStorageUri to set.

Returns
Type Description
ImageImport.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public ImageImport.Builder setCreateTime(Timestamp value)

Output only. The time the image import was created.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
ImageImport.Builder

setCreateTime(Timestamp.Builder builderForValue)

public ImageImport.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The time the image import was created.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ImageImport.Builder

setDiskImageTargetDefaults(DiskImageTargetDetails value)

public ImageImport.Builder setDiskImageTargetDefaults(DiskImageTargetDetails value)

Immutable. Target details for importing a disk image, will be used by ImageImportJob.

.google.cloud.vmmigration.v1.DiskImageTargetDetails disk_image_target_defaults = 4 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value DiskImageTargetDetails
Returns
Type Description
ImageImport.Builder

setDiskImageTargetDefaults(DiskImageTargetDetails.Builder builderForValue)

public ImageImport.Builder setDiskImageTargetDefaults(DiskImageTargetDetails.Builder builderForValue)

Immutable. Target details for importing a disk image, will be used by ImageImportJob.

.google.cloud.vmmigration.v1.DiskImageTargetDetails disk_image_target_defaults = 4 [(.google.api.field_behavior) = IMMUTABLE];

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

setEncryption(Encryption value)

public ImageImport.Builder setEncryption(Encryption value)

Immutable. The encryption details used by the image import process during the image adaptation for Compute Engine.

.google.cloud.vmmigration.v1.Encryption encryption = 6 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value Encryption
Returns
Type Description
ImageImport.Builder

setEncryption(Encryption.Builder builderForValue)

public ImageImport.Builder setEncryption(Encryption.Builder builderForValue)

Immutable. The encryption details used by the image import process during the image adaptation for Compute Engine.

.google.cloud.vmmigration.v1.Encryption encryption = 6 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
builderForValue Encryption.Builder
Returns
Type Description
ImageImport.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setMachineImageTargetDefaults(MachineImageTargetDetails value)

public ImageImport.Builder setMachineImageTargetDefaults(MachineImageTargetDetails value)

Immutable. Target details for importing a machine image, will be used by ImageImportJob.

.google.cloud.vmmigration.v1.MachineImageTargetDetails machine_image_target_defaults = 7 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
Name Description
value MachineImageTargetDetails
Returns
Type Description
ImageImport.Builder

setMachineImageTargetDefaults(MachineImageTargetDetails.Builder builderForValue)

public ImageImport.Builder setMachineImageTargetDefaults(MachineImageTargetDetails.Builder builderForValue)

Immutable. Target details for importing a machine image, will be used by ImageImportJob.

.google.cloud.vmmigration.v1.MachineImageTargetDetails machine_image_target_defaults = 7 [(.google.api.field_behavior) = IMMUTABLE];

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

setName(String value)

public ImageImport.Builder setName(String value)

Output only. The resource path of the ImageImport.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
ImageImport.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ImageImport.Builder setNameBytes(ByteString value)

Output only. The resource path of the ImageImport.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
ImageImport.Builder

This builder for chaining.

setRecentImageImportJobs(int index, ImageImportJob value)

public ImageImport.Builder setRecentImageImportJobs(int index, ImageImportJob value)

Output only. The result of the most recent runs for this ImageImport. All jobs for this ImageImport can be listed via ListImageImportJobs.

repeated .google.cloud.vmmigration.v1.ImageImportJob recent_image_import_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

setRecentImageImportJobs(int index, ImageImportJob.Builder builderForValue)

public ImageImport.Builder setRecentImageImportJobs(int index, ImageImportJob.Builder builderForValue)

Output only. The result of the most recent runs for this ImageImport. All jobs for this ImageImport can be listed via ListImageImportJobs.

repeated .google.cloud.vmmigration.v1.ImageImportJob recent_image_import_jobs = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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