public final class MachineImageTargetDetails extends GeneratedMessageV3 implements MachineImageTargetDetailsOrBuilder
The target details of the machine image resource that will be created by the
image import job.
Protobuf type google.cloud.vmmigration.v1.MachineImageTargetDetails
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
ADDITIONAL_LICENSES_FIELD_NUMBER
public static final int ADDITIONAL_LICENSES_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 |
|
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
MACHINE_IMAGE_NAME_FIELD_NUMBER
public static final int MACHINE_IMAGE_NAME_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
MACHINE_IMAGE_PARAMETERS_OVERRIDES_FIELD_NUMBER
public static final int MACHINE_IMAGE_PARAMETERS_OVERRIDES_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
NETWORK_INTERFACES_FIELD_NUMBER
public static final int NETWORK_INTERFACES_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 |
|
SERVICE_ACCOUNT_FIELD_NUMBER
public static final int SERVICE_ACCOUNT_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
SHIELDED_INSTANCE_CONFIG_FIELD_NUMBER
public static final int SHIELDED_INSTANCE_CONFIG_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 |
|
SKIP_OS_ADAPTATION_FIELD_NUMBER
public static final int SKIP_OS_ADAPTATION_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
public static final int TAGS_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 MachineImageTargetDetails getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static MachineImageTargetDetails.Builder newBuilder()
newBuilder(MachineImageTargetDetails prototype)
public static MachineImageTargetDetails.Builder newBuilder(MachineImageTargetDetails prototype)
public static MachineImageTargetDetails parseDelimitedFrom(InputStream input)
public static MachineImageTargetDetails parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static MachineImageTargetDetails parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static MachineImageTargetDetails parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static MachineImageTargetDetails parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static MachineImageTargetDetails parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static MachineImageTargetDetails parseFrom(CodedInputStream input)
public static MachineImageTargetDetails parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static MachineImageTargetDetails parseFrom(InputStream input)
public static MachineImageTargetDetails parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static MachineImageTargetDetails parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static MachineImageTargetDetails parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<MachineImageTargetDetails> parser()
Methods
containsLabels(String key)
public 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
|
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getAdditionalLicenses(int index)
public String getAdditionalLicenses(int index)
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)
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()
Returns |
Type |
Description |
int |
The count of additionalLicenses.
|
getAdditionalLicensesList()
public ProtocolStringList getAdditionalLicensesList()
getDefaultInstanceForType()
public MachineImageTargetDetails getDefaultInstanceForType()
getDescription()
public 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 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 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 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];
getLabels() (deprecated)
public Map<String,String> getLabels()
getLabelsCount()
public 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 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];
getLabelsOrDefault(String key, String defaultValue)
public 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];
Returns |
Type |
Description |
String |
|
getLabelsOrThrow(String key)
public 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 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 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 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];
getMachineImageParametersOverridesOrBuilder()
public 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];
getNetworkInterfaces(int index)
public 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
|
getNetworkInterfacesCount()
public 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 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];
getNetworkInterfacesOrBuilder(int index)
public 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
|
getNetworkInterfacesOrBuilderList()
public 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 MachineImageTargetDetails.OsAdaptationConfigCase getOsAdaptationConfigCase()
getOsAdaptationParameters()
public 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];
getOsAdaptationParametersOrBuilder()
public 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];
getParserForType()
public Parser<MachineImageTargetDetails> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
getServiceAccount()
public 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];
getServiceAccountOrBuilder()
public 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];
getShieldedInstanceConfig()
public ShieldedInstanceConfig getShieldedInstanceConfig()
Optional. Shielded instance configuration.
.google.cloud.vmmigration.v1.ShieldedInstanceConfig shielded_instance_config = 12 [(.google.api.field_behavior) = OPTIONAL];
getShieldedInstanceConfigOrBuilder()
public ShieldedInstanceConfigOrBuilder getShieldedInstanceConfigOrBuilder()
Optional. Shielded instance configuration.
.google.cloud.vmmigration.v1.ShieldedInstanceConfig shielded_instance_config = 12 [(.google.api.field_behavior) = OPTIONAL];
getSingleRegionStorage()
public 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 SkipOsAdaptation getSkipOsAdaptation()
Optional. Use to skip OS adaptation process.
.google.cloud.vmmigration.v1.SkipOsAdaptation skip_os_adaptation = 16 [(.google.api.field_behavior) = OPTIONAL];
getSkipOsAdaptationOrBuilder()
public SkipOsAdaptationOrBuilder getSkipOsAdaptationOrBuilder()
Optional. Use to skip OS adaptation process.
.google.cloud.vmmigration.v1.SkipOsAdaptation skip_os_adaptation = 16 [(.google.api.field_behavior) = OPTIONAL];
public 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.
|
public 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.
|
public 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.
|
public ProtocolStringList getTagsList()
Optional. The tags to apply to the instance created by the machine image.
repeated string tags = 11 [(.google.api.field_behavior) = OPTIONAL];
getTargetProject()
public 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 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 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 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 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 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 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 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.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
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()
Overrides
newBuilderForType()
public MachineImageTargetDetails.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected MachineImageTargetDetails.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public MachineImageTargetDetails.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides