Class DiskImageTargetDetails (1.74.0)

public final class DiskImageTargetDetails extends GeneratedMessageV3 implements DiskImageTargetDetailsOrBuilder

The target details of the image resource that will be created by the import job.

Protobuf type google.cloud.vmmigration.v1.DiskImageTargetDetails

Static Fields

ADDITIONAL_LICENSES_FIELD_NUMBER

public static final int ADDITIONAL_LICENSES_FIELD_NUMBER
Field Value
Type Description
int

DATA_DISK_IMAGE_IMPORT_FIELD_NUMBER

public static final int DATA_DISK_IMAGE_IMPORT_FIELD_NUMBER
Field Value
Type Description
int

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
Type Description
int

ENCRYPTION_FIELD_NUMBER

public static final int ENCRYPTION_FIELD_NUMBER
Field Value
Type Description
int

FAMILY_NAME_FIELD_NUMBER

public static final int FAMILY_NAME_FIELD_NUMBER
Field Value
Type Description
int

IMAGE_NAME_FIELD_NUMBER

public static final int IMAGE_NAME_FIELD_NUMBER
Field Value
Type Description
int

LABELS_FIELD_NUMBER

public static final int LABELS_FIELD_NUMBER
Field Value
Type Description
int

OS_ADAPTATION_PARAMETERS_FIELD_NUMBER

public static final int OS_ADAPTATION_PARAMETERS_FIELD_NUMBER
Field Value
Type Description
int

SINGLE_REGION_STORAGE_FIELD_NUMBER

public static final int SINGLE_REGION_STORAGE_FIELD_NUMBER
Field Value
Type Description
int

TARGET_PROJECT_FIELD_NUMBER

public static final int TARGET_PROJECT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static DiskImageTargetDetails getDefaultInstance()
Returns
Type Description
DiskImageTargetDetails

getDescriptor()

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

newBuilder()

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

newBuilder(DiskImageTargetDetails prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

containsLabels(String key)

public boolean containsLabels(String key)

Optional. A map of labels to associate with the image.

map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

equals(Object obj)

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

getAdditionalLicenses(int index)

public String getAdditionalLicenses(int index)

Optional. Additional licenses to assign to the image. Format: https://www.googleapis.com/compute/v1/projects/PROJECT_ID/global/licenses/LICENSE_NAME Or https://www.googleapis.com/compute/beta/projects/PROJECT_ID/global/licenses/LICENSE_NAME

repeated string additional_licenses = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The additionalLicenses at the given index.

getAdditionalLicensesBytes(int index)

public ByteString getAdditionalLicensesBytes(int index)

Optional. Additional licenses to assign to the image. Format: https://www.googleapis.com/compute/v1/projects/PROJECT_ID/global/licenses/LICENSE_NAME Or https://www.googleapis.com/compute/beta/projects/PROJECT_ID/global/licenses/LICENSE_NAME

repeated string additional_licenses = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the additionalLicenses at the given index.

getAdditionalLicensesCount()

public int getAdditionalLicensesCount()

Optional. Additional licenses to assign to the image. Format: https://www.googleapis.com/compute/v1/projects/PROJECT_ID/global/licenses/LICENSE_NAME Or https://www.googleapis.com/compute/beta/projects/PROJECT_ID/global/licenses/LICENSE_NAME

repeated string additional_licenses = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of additionalLicenses.

getAdditionalLicensesList()

public ProtocolStringList getAdditionalLicensesList()

Optional. Additional licenses to assign to the image. Format: https://www.googleapis.com/compute/v1/projects/PROJECT_ID/global/licenses/LICENSE_NAME Or https://www.googleapis.com/compute/beta/projects/PROJECT_ID/global/licenses/LICENSE_NAME

repeated string additional_licenses = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the additionalLicenses.

getDataDiskImageImport()

public DataDiskImageImport getDataDiskImageImport()

Optional. Use to skip OS adaptation process.

.google.cloud.vmmigration.v1.DataDiskImageImport data_disk_image_import = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DataDiskImageImport

The dataDiskImageImport.

getDataDiskImageImportOrBuilder()

public DataDiskImageImportOrBuilder getDataDiskImageImportOrBuilder()

Optional. Use to skip OS adaptation process.

.google.cloud.vmmigration.v1.DataDiskImageImport data_disk_image_import = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DataDiskImageImportOrBuilder

getDefaultInstanceForType()

public DiskImageTargetDetails getDefaultInstanceForType()
Returns
Type Description
DiskImageTargetDetails

getDescription()

public String getDescription()

Optional. An optional description of the image.

string description = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Optional. An optional description of the image.

string description = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for description.

getEncryption()

public Encryption getEncryption()

Immutable. The encryption to apply to the image.

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

Returns
Type Description
Encryption

The encryption.

getEncryptionOrBuilder()

public EncryptionOrBuilder getEncryptionOrBuilder()

Immutable. The encryption to apply to the image.

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

Returns
Type Description
EncryptionOrBuilder

getFamilyName()

public String getFamilyName()

Optional. The name of the image family to which the new image belongs.

string family_name = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The familyName.

getFamilyNameBytes()

public ByteString getFamilyNameBytes()

Optional. The name of the image family to which the new image belongs.

string family_name = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for familyName.

getImageName()

public String getImageName()

Required. The name of the image to be created.

string image_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The imageName.

getImageNameBytes()

public ByteString getImageNameBytes()

Required. The name of the image to be created.

string image_name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for imageName.

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Optional. A map of labels to associate with the image.

map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Optional. A map of labels to associate with the image.

map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Optional. A map of labels to associate with the image.

map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Optional. A map of labels to associate with the image.

map<string, string> labels = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
String

getOsAdaptationConfigCase()

public DiskImageTargetDetails.OsAdaptationConfigCase getOsAdaptationConfigCase()
Returns
Type Description
DiskImageTargetDetails.OsAdaptationConfigCase

getOsAdaptationParameters()

public ImageImportOsAdaptationParameters getOsAdaptationParameters()

Optional. Use to set the parameters relevant for the OS adaptation process.

.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters os_adaptation_parameters = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ImageImportOsAdaptationParameters

The osAdaptationParameters.

getOsAdaptationParametersOrBuilder()

public ImageImportOsAdaptationParametersOrBuilder getOsAdaptationParametersOrBuilder()

Optional. Use to set the parameters relevant for the OS adaptation process.

.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters os_adaptation_parameters = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ImageImportOsAdaptationParametersOrBuilder

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSingleRegionStorage()

public boolean getSingleRegionStorage()

Optional. Set to true to set the image storageLocations to the single region of the import job. When false, the closest multi-region is selected.

bool single_region_storage = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The singleRegionStorage.

getTargetProject()

public String getTargetProject()

Required. Reference to the TargetProject resource that represents the target project in which the imported image will be created.

string target_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The targetProject.

getTargetProjectBytes()

public ByteString getTargetProjectBytes()

Required. Reference to the TargetProject resource that represents the target project in which the imported image will be created.

string target_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for targetProject.

hasDataDiskImageImport()

public boolean hasDataDiskImageImport()

Optional. Use to skip OS adaptation process.

.google.cloud.vmmigration.v1.DataDiskImageImport data_disk_image_import = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the dataDiskImageImport field is set.

hasEncryption()

public boolean hasEncryption()

Immutable. The encryption to apply to the image.

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

Returns
Type Description
boolean

Whether the encryption field is set.

hasOsAdaptationParameters()

public boolean hasOsAdaptationParameters()

Optional. Use to set the parameters relevant for the OS adaptation process.

.google.cloud.vmmigration.v1.ImageImportOsAdaptationParameters os_adaptation_parameters = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the osAdaptationParameters field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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