Class ImageImport (1.74.0)

public final class ImageImport extends GeneratedMessageV3 implements ImageImportOrBuilder

ImageImport describes the configuration of the image import to run.

Protobuf type google.cloud.vmmigration.v1.ImageImport

Static Fields

CLOUD_STORAGE_URI_FIELD_NUMBER

public static final int CLOUD_STORAGE_URI_FIELD_NUMBER
Field Value
Type Description
int

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

DISK_IMAGE_TARGET_DEFAULTS_FIELD_NUMBER

public static final int DISK_IMAGE_TARGET_DEFAULTS_FIELD_NUMBER
Field Value
Type Description
int

ENCRYPTION_FIELD_NUMBER

public static final int ENCRYPTION_FIELD_NUMBER
Field Value
Type Description
int

MACHINE_IMAGE_TARGET_DEFAULTS_FIELD_NUMBER

public static final int MACHINE_IMAGE_TARGET_DEFAULTS_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

RECENT_IMAGE_IMPORT_JOBS_FIELD_NUMBER

public static final int RECENT_IMAGE_IMPORT_JOBS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static ImageImport getDefaultInstance()
Returns
Type Description
ImageImport

getDescriptor()

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

newBuilder()

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

newBuilder(ImageImport prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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.

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

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.

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.

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.

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.

getParserForType()

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

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

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>

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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