Interface MachineImageTargetDetailsOrBuilder (1.74.0)

public interface MachineImageTargetDetailsOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsLabels(String key)

public abstract boolean containsLabels(String key)

Optional. The labels to apply to the instance created by the machine image.

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

Parameter
Name Description
key String
Returns
Type Description
boolean

getAdditionalLicenses(int index)

public abstract String getAdditionalLicenses(int index)

Optional. Additional licenses to assign to the instance created by the machine 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 = 9 [(.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 abstract ByteString getAdditionalLicensesBytes(int index)

Optional. Additional licenses to assign to the instance created by the machine 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 = 9 [(.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 abstract int getAdditionalLicensesCount()

Optional. Additional licenses to assign to the instance created by the machine 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 = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of additionalLicenses.

getAdditionalLicensesList()

public abstract List<String> getAdditionalLicensesList()

Optional. Additional licenses to assign to the instance created by the machine 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 = 9 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<String>

A list containing the additionalLicenses.

getDescription()

public abstract String getDescription()

Optional. An optional description of the machine image.

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

Returns
Type Description
String

The description.

getDescriptionBytes()

public abstract ByteString getDescriptionBytes()

Optional. An optional description of the machine image.

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

Returns
Type Description
ByteString

The bytes for description.

getEncryption()

public abstract Encryption getEncryption()

Immutable. The encryption to apply to the machine image. If the Image Import resource has an encryption, this field must be set to the same encryption key.

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

Returns
Type Description
Encryption

The encryption.

getEncryptionOrBuilder()

public abstract EncryptionOrBuilder getEncryptionOrBuilder()

Immutable. The encryption to apply to the machine image. If the Image Import resource has an encryption, this field must be set to the same encryption key.

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

Returns
Type Description
EncryptionOrBuilder

getLabels() (deprecated)

public abstract Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public abstract int getLabelsCount()

Optional. The labels to apply to the instance created by the machine image.

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

Returns
Type Description
int

getLabelsMap()

public abstract Map<String,String> getLabelsMap()

Optional. The labels to apply to the instance created by the machine image.

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

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public abstract String getLabelsOrDefault(String key, String defaultValue)

Optional. The labels to apply to the instance created by the machine image.

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

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public abstract String getLabelsOrThrow(String key)

Optional. The labels to apply to the instance created by the machine image.

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

Parameter
Name Description
key String
Returns
Type Description
String

getMachineImageName()

public abstract String getMachineImageName()

Required. The name of the machine image to be created.

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

Returns
Type Description
String

The machineImageName.

getMachineImageNameBytes()

public abstract ByteString getMachineImageNameBytes()

Required. The name of the machine image to be created.

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

Returns
Type Description
ByteString

The bytes for machineImageName.

getMachineImageParametersOverrides()

public abstract MachineImageParametersOverrides getMachineImageParametersOverrides()

Optional. Parameters overriding decisions based on the source machine image configurations.

.google.cloud.vmmigration.v1.MachineImageParametersOverrides machine_image_parameters_overrides = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MachineImageParametersOverrides

The machineImageParametersOverrides.

getMachineImageParametersOverridesOrBuilder()

public abstract MachineImageParametersOverridesOrBuilder getMachineImageParametersOverridesOrBuilder()

Optional. Parameters overriding decisions based on the source machine image configurations.

.google.cloud.vmmigration.v1.MachineImageParametersOverrides machine_image_parameters_overrides = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MachineImageParametersOverridesOrBuilder

getNetworkInterfaces(int index)

public abstract NetworkInterface getNetworkInterfaces(int index)

Optional. The network interfaces to create with the instance created by the machine image. Internal and external IP addresses, and network tiers are ignored for machine image import.

repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
NetworkInterface

getNetworkInterfacesCount()

public abstract int getNetworkInterfacesCount()

Optional. The network interfaces to create with the instance created by the machine image. Internal and external IP addresses, and network tiers are ignored for machine image import.

repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getNetworkInterfacesList()

public abstract List<NetworkInterface> getNetworkInterfacesList()

Optional. The network interfaces to create with the instance created by the machine image. Internal and external IP addresses, and network tiers are ignored for machine image import.

repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 13 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<NetworkInterface>

getNetworkInterfacesOrBuilder(int index)

public abstract NetworkInterfaceOrBuilder getNetworkInterfacesOrBuilder(int index)

Optional. The network interfaces to create with the instance created by the machine image. Internal and external IP addresses, and network tiers are ignored for machine image import.

repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 13 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
NetworkInterfaceOrBuilder

getNetworkInterfacesOrBuilderList()

public abstract List<? extends NetworkInterfaceOrBuilder> getNetworkInterfacesOrBuilderList()

Optional. The network interfaces to create with the instance created by the machine image. Internal and external IP addresses, and network tiers are ignored for machine image import.

repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 13 [(.google.api.field_behavior) = OPTIONAL];

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

getOsAdaptationConfigCase()

public abstract MachineImageTargetDetails.OsAdaptationConfigCase getOsAdaptationConfigCase()
Returns
Type Description
MachineImageTargetDetails.OsAdaptationConfigCase

getOsAdaptationParameters()

public abstract ImageImportOsAdaptationParameters getOsAdaptationParameters()

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

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

Returns
Type Description
ImageImportOsAdaptationParameters

The osAdaptationParameters.

getOsAdaptationParametersOrBuilder()

public abstract ImageImportOsAdaptationParametersOrBuilder getOsAdaptationParametersOrBuilder()

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

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

Returns
Type Description
ImageImportOsAdaptationParametersOrBuilder

getServiceAccount()

public abstract ServiceAccount getServiceAccount()

Optional. The service account to assign to the instance created by the machine image.

.google.cloud.vmmigration.v1.ServiceAccount service_account = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ServiceAccount

The serviceAccount.

getServiceAccountOrBuilder()

public abstract ServiceAccountOrBuilder getServiceAccountOrBuilder()

Optional. The service account to assign to the instance created by the machine image.

.google.cloud.vmmigration.v1.ServiceAccount service_account = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ServiceAccountOrBuilder

getShieldedInstanceConfig()

public abstract ShieldedInstanceConfig getShieldedInstanceConfig()

Optional. Shielded instance configuration.

.google.cloud.vmmigration.v1.ShieldedInstanceConfig shielded_instance_config = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ShieldedInstanceConfig

The shieldedInstanceConfig.

getShieldedInstanceConfigOrBuilder()

public abstract ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder()

Optional. Shielded instance configuration.

.google.cloud.vmmigration.v1.ShieldedInstanceConfig shielded_instance_config = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ShieldedInstanceConfigOrBuilder

getSingleRegionStorage()

public abstract boolean getSingleRegionStorage()

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

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

Returns
Type Description
boolean

The singleRegionStorage.

getSkipOsAdaptation()

public abstract SkipOsAdaptation getSkipOsAdaptation()

Optional. Use to skip OS adaptation process.

.google.cloud.vmmigration.v1.SkipOsAdaptation skip_os_adaptation = 16 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SkipOsAdaptation

The skipOsAdaptation.

getSkipOsAdaptationOrBuilder()

public abstract SkipOsAdaptationOrBuilder getSkipOsAdaptationOrBuilder()

Optional. Use to skip OS adaptation process.

.google.cloud.vmmigration.v1.SkipOsAdaptation skip_os_adaptation = 16 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SkipOsAdaptationOrBuilder

getTags(int index)

public abstract String getTags(int index)

Optional. The tags to apply to the instance created by the machine image.

repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The tags at the given index.

getTagsBytes(int index)

public abstract ByteString getTagsBytes(int index)

Optional. The tags to apply to the instance created by the machine image.

repeated string tags = 11 [(.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 tags at the given index.

getTagsCount()

public abstract int getTagsCount()

Optional. The tags to apply to the instance created by the machine image.

repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of tags.

getTagsList()

public abstract List<String> getTagsList()

Optional. The tags to apply to the instance created by the machine image.

repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<String>

A list containing the tags.

getTargetProject()

public abstract String getTargetProject()

Required. Reference to the TargetProject resource that represents the target project in which the imported machine 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 abstract ByteString getTargetProjectBytes()

Required. Reference to the TargetProject resource that represents the target project in which the imported machine 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.

hasEncryption()

public abstract boolean hasEncryption()

Immutable. The encryption to apply to the machine image. If the Image Import resource has an encryption, this field must be set to the same encryption key.

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

Returns
Type Description
boolean

Whether the encryption field is set.

hasMachineImageParametersOverrides()

public abstract boolean hasMachineImageParametersOverrides()

Optional. Parameters overriding decisions based on the source machine image configurations.

.google.cloud.vmmigration.v1.MachineImageParametersOverrides machine_image_parameters_overrides = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the machineImageParametersOverrides field is set.

hasOsAdaptationParameters()

public abstract boolean hasOsAdaptationParameters()

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

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

Returns
Type Description
boolean

Whether the osAdaptationParameters field is set.

hasServiceAccount()

public abstract boolean hasServiceAccount()

Optional. The service account to assign to the instance created by the machine image.

.google.cloud.vmmigration.v1.ServiceAccount service_account = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the serviceAccount field is set.

hasShieldedInstanceConfig()

public abstract boolean hasShieldedInstanceConfig()

Optional. Shielded instance configuration.

.google.cloud.vmmigration.v1.ShieldedInstanceConfig shielded_instance_config = 12 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the shieldedInstanceConfig field is set.

hasSkipOsAdaptation()

public abstract boolean hasSkipOsAdaptation()

Optional. Use to skip OS adaptation process.

.google.cloud.vmmigration.v1.SkipOsAdaptation skip_os_adaptation = 16 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the skipOsAdaptation field is set.