Class ComputeEngineTargetDetails (1.13.0)

public final class ComputeEngineTargetDetails extends GeneratedMessageV3 implements ComputeEngineTargetDetailsOrBuilder

ComputeEngineTargetDetails is a collection of details for creating a VM in a target Compute Engine project.

Protobuf type google.cloud.vmmigration.v1.ComputeEngineTargetDetails

Static Fields

ADDITIONAL_LICENSES_FIELD_NUMBER

public static final int ADDITIONAL_LICENSES_FIELD_NUMBER
Field Value
TypeDescription
int

APPLIED_LICENSE_FIELD_NUMBER

public static final int APPLIED_LICENSE_FIELD_NUMBER
Field Value
TypeDescription
int

BOOT_OPTION_FIELD_NUMBER

public static final int BOOT_OPTION_FIELD_NUMBER
Field Value
TypeDescription
int

COMPUTE_SCHEDULING_FIELD_NUMBER

public static final int COMPUTE_SCHEDULING_FIELD_NUMBER
Field Value
TypeDescription
int

DISK_TYPE_FIELD_NUMBER

public static final int DISK_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

HOSTNAME_FIELD_NUMBER

public static final int HOSTNAME_FIELD_NUMBER
Field Value
TypeDescription
int

LABELS_FIELD_NUMBER

public static final int LABELS_FIELD_NUMBER
Field Value
TypeDescription
int

LICENSE_TYPE_FIELD_NUMBER

public static final int LICENSE_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

MACHINE_TYPE_FIELD_NUMBER

public static final int MACHINE_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

MACHINE_TYPE_SERIES_FIELD_NUMBER

public static final int MACHINE_TYPE_SERIES_FIELD_NUMBER
Field Value
TypeDescription
int

METADATA_FIELD_NUMBER

public static final int METADATA_FIELD_NUMBER
Field Value
TypeDescription
int

NETWORK_INTERFACES_FIELD_NUMBER

public static final int NETWORK_INTERFACES_FIELD_NUMBER
Field Value
TypeDescription
int

NETWORK_TAGS_FIELD_NUMBER

public static final int NETWORK_TAGS_FIELD_NUMBER
Field Value
TypeDescription
int

PROJECT_FIELD_NUMBER

public static final int PROJECT_FIELD_NUMBER
Field Value
TypeDescription
int

SECURE_BOOT_FIELD_NUMBER

public static final int SECURE_BOOT_FIELD_NUMBER
Field Value
TypeDescription
int

SERVICE_ACCOUNT_FIELD_NUMBER

public static final int SERVICE_ACCOUNT_FIELD_NUMBER
Field Value
TypeDescription
int

VM_NAME_FIELD_NUMBER

public static final int VM_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

ZONE_FIELD_NUMBER

public static final int ZONE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ComputeEngineTargetDetails getDefaultInstance()
Returns
TypeDescription
ComputeEngineTargetDetails

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ComputeEngineTargetDetails.Builder newBuilder()
Returns
TypeDescription
ComputeEngineTargetDetails.Builder

newBuilder(ComputeEngineTargetDetails prototype)

public static ComputeEngineTargetDetails.Builder newBuilder(ComputeEngineTargetDetails prototype)
Parameter
NameDescription
prototypeComputeEngineTargetDetails
Returns
TypeDescription
ComputeEngineTargetDetails.Builder

parseDelimitedFrom(InputStream input)

public static ComputeEngineTargetDetails parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ComputeEngineTargetDetails
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ComputeEngineTargetDetails parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ComputeEngineTargetDetails
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ComputeEngineTargetDetails parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ComputeEngineTargetDetails
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ComputeEngineTargetDetails parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ComputeEngineTargetDetails
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ComputeEngineTargetDetails parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ComputeEngineTargetDetails
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ComputeEngineTargetDetails parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ComputeEngineTargetDetails
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ComputeEngineTargetDetails parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ComputeEngineTargetDetails
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ComputeEngineTargetDetails parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ComputeEngineTargetDetails
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ComputeEngineTargetDetails parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ComputeEngineTargetDetails
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ComputeEngineTargetDetails parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ComputeEngineTargetDetails
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ComputeEngineTargetDetails parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ComputeEngineTargetDetails
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ComputeEngineTargetDetails parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ComputeEngineTargetDetails
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ComputeEngineTargetDetails> parser()
Returns
TypeDescription
Parser<ComputeEngineTargetDetails>

Methods

containsLabels(String key)

public boolean containsLabels(String key)

A map of labels to associate with the VM.

map<string, string> labels = 10;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

containsMetadata(String key)

public boolean containsMetadata(String key)

The metadata key/value pairs to assign to the VM.

map<string, string> metadata = 16;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAdditionalLicenses(int index)

public String getAdditionalLicenses(int index)

Additional licenses to assign to the VM.

repeated string additional_licenses = 17;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The additionalLicenses at the given index.

getAdditionalLicensesBytes(int index)

public ByteString getAdditionalLicensesBytes(int index)

Additional licenses to assign to the VM.

repeated string additional_licenses = 17;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the additionalLicenses at the given index.

getAdditionalLicensesCount()

public int getAdditionalLicensesCount()

Additional licenses to assign to the VM.

repeated string additional_licenses = 17;

Returns
TypeDescription
int

The count of additionalLicenses.

getAdditionalLicensesList()

public ProtocolStringList getAdditionalLicensesList()

Additional licenses to assign to the VM.

repeated string additional_licenses = 17;

Returns
TypeDescription
ProtocolStringList

A list containing the additionalLicenses.

getAppliedLicense()

public AppliedLicense getAppliedLicense()

The OS license returned from the adaptation module report.

.google.cloud.vmmigration.v1.AppliedLicense applied_license = 12;

Returns
TypeDescription
AppliedLicense

The appliedLicense.

getAppliedLicenseOrBuilder()

public AppliedLicenseOrBuilder getAppliedLicenseOrBuilder()

The OS license returned from the adaptation module report.

.google.cloud.vmmigration.v1.AppliedLicense applied_license = 12;

Returns
TypeDescription
AppliedLicenseOrBuilder

getBootOption()

public ComputeEngineBootOption getBootOption()

The VM Boot Option, as set in the source vm.

.google.cloud.vmmigration.v1.ComputeEngineBootOption boot_option = 15;

Returns
TypeDescription
ComputeEngineBootOption

The bootOption.

getBootOptionValue()

public int getBootOptionValue()

The VM Boot Option, as set in the source vm.

.google.cloud.vmmigration.v1.ComputeEngineBootOption boot_option = 15;

Returns
TypeDescription
int

The enum numeric value on the wire for bootOption.

getComputeScheduling()

public ComputeScheduling getComputeScheduling()

Compute instance scheduling information (if empty default is used).

.google.cloud.vmmigration.v1.ComputeScheduling compute_scheduling = 13;

Returns
TypeDescription
ComputeScheduling

The computeScheduling.

getComputeSchedulingOrBuilder()

public ComputeSchedulingOrBuilder getComputeSchedulingOrBuilder()

Compute instance scheduling information (if empty default is used).

.google.cloud.vmmigration.v1.ComputeScheduling compute_scheduling = 13;

Returns
TypeDescription
ComputeSchedulingOrBuilder

getDefaultInstanceForType()

public ComputeEngineTargetDetails getDefaultInstanceForType()
Returns
TypeDescription
ComputeEngineTargetDetails

getDiskType()

public ComputeEngineDiskType getDiskType()

The disk type to use in the VM.

.google.cloud.vmmigration.v1.ComputeEngineDiskType disk_type = 9;

Returns
TypeDescription
ComputeEngineDiskType

The diskType.

getDiskTypeValue()

public int getDiskTypeValue()

The disk type to use in the VM.

.google.cloud.vmmigration.v1.ComputeEngineDiskType disk_type = 9;

Returns
TypeDescription
int

The enum numeric value on the wire for diskType.

getHostname()

public String getHostname()

The hostname to assign to the VM.

string hostname = 18;

Returns
TypeDescription
String

The hostname.

getHostnameBytes()

public ByteString getHostnameBytes()

The hostname to assign to the VM.

string hostname = 18;

Returns
TypeDescription
ByteString

The bytes for hostname.

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

A map of labels to associate with the VM.

map<string, string> labels = 10;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

A map of labels to associate with the VM.

map<string, string> labels = 10;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

A map of labels to associate with the VM.

map<string, string> labels = 10;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

A map of labels to associate with the VM.

map<string, string> labels = 10;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getLicenseType()

public ComputeEngineLicenseType getLicenseType()

The license type to use in OS adaptation.

.google.cloud.vmmigration.v1.ComputeEngineLicenseType license_type = 11;

Returns
TypeDescription
ComputeEngineLicenseType

The licenseType.

getLicenseTypeValue()

public int getLicenseTypeValue()

The license type to use in OS adaptation.

.google.cloud.vmmigration.v1.ComputeEngineLicenseType license_type = 11;

Returns
TypeDescription
int

The enum numeric value on the wire for licenseType.

getMachineType()

public String getMachineType()

The machine type to create the VM with.

string machine_type = 5;

Returns
TypeDescription
String

The machineType.

getMachineTypeBytes()

public ByteString getMachineTypeBytes()

The machine type to create the VM with.

string machine_type = 5;

Returns
TypeDescription
ByteString

The bytes for machineType.

getMachineTypeSeries()

public String getMachineTypeSeries()

The machine type series to create the VM with.

string machine_type_series = 4;

Returns
TypeDescription
String

The machineTypeSeries.

getMachineTypeSeriesBytes()

public ByteString getMachineTypeSeriesBytes()

The machine type series to create the VM with.

string machine_type_series = 4;

Returns
TypeDescription
ByteString

The bytes for machineTypeSeries.

getMetadata()

public Map<String,String> getMetadata()

Use #getMetadataMap() instead.

Returns
TypeDescription
Map<String,String>

getMetadataCount()

public int getMetadataCount()

The metadata key/value pairs to assign to the VM.

map<string, string> metadata = 16;

Returns
TypeDescription
int

getMetadataMap()

public Map<String,String> getMetadataMap()

The metadata key/value pairs to assign to the VM.

map<string, string> metadata = 16;

Returns
TypeDescription
Map<String,String>

getMetadataOrDefault(String key, String defaultValue)

public String getMetadataOrDefault(String key, String defaultValue)

The metadata key/value pairs to assign to the VM.

map<string, string> metadata = 16;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getMetadataOrThrow(String key)

public String getMetadataOrThrow(String key)

The metadata key/value pairs to assign to the VM.

map<string, string> metadata = 16;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getNetworkInterfaces(int index)

public NetworkInterface getNetworkInterfaces(int index)

List of NICs connected to this VM.

repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 7;

Parameter
NameDescription
indexint
Returns
TypeDescription
NetworkInterface

getNetworkInterfacesCount()

public int getNetworkInterfacesCount()

List of NICs connected to this VM.

repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 7;

Returns
TypeDescription
int

getNetworkInterfacesList()

public List<NetworkInterface> getNetworkInterfacesList()

List of NICs connected to this VM.

repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 7;

Returns
TypeDescription
List<NetworkInterface>

getNetworkInterfacesOrBuilder(int index)

public NetworkInterfaceOrBuilder getNetworkInterfacesOrBuilder(int index)

List of NICs connected to this VM.

repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 7;

Parameter
NameDescription
indexint
Returns
TypeDescription
NetworkInterfaceOrBuilder

getNetworkInterfacesOrBuilderList()

public List<? extends NetworkInterfaceOrBuilder> getNetworkInterfacesOrBuilderList()

List of NICs connected to this VM.

repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 7;

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

getNetworkTags(int index)

public String getNetworkTags(int index)

A map of network tags to associate with the VM.

repeated string network_tags = 6;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The networkTags at the given index.

getNetworkTagsBytes(int index)

public ByteString getNetworkTagsBytes(int index)

A map of network tags to associate with the VM.

repeated string network_tags = 6;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the networkTags at the given index.

getNetworkTagsCount()

public int getNetworkTagsCount()

A map of network tags to associate with the VM.

repeated string network_tags = 6;

Returns
TypeDescription
int

The count of networkTags.

getNetworkTagsList()

public ProtocolStringList getNetworkTagsList()

A map of network tags to associate with the VM.

repeated string network_tags = 6;

Returns
TypeDescription
ProtocolStringList

A list containing the networkTags.

getParserForType()

public Parser<ComputeEngineTargetDetails> getParserForType()
Returns
TypeDescription
Parser<ComputeEngineTargetDetails>
Overrides

getProject()

public String getProject()

The Google Cloud target project ID or project name.

string project = 2;

Returns
TypeDescription
String

The project.

getProjectBytes()

public ByteString getProjectBytes()

The Google Cloud target project ID or project name.

string project = 2;

Returns
TypeDescription
ByteString

The bytes for project.

getSecureBoot()

public boolean getSecureBoot()

Defines whether the instance has Secure Boot enabled. This can be set to true only if the vm boot option is EFI.

bool secure_boot = 14;

Returns
TypeDescription
boolean

The secureBoot.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getServiceAccount()

public String getServiceAccount()

The service account to associate the VM with.

string service_account = 8;

Returns
TypeDescription
String

The serviceAccount.

getServiceAccountBytes()

public ByteString getServiceAccountBytes()

The service account to associate the VM with.

string service_account = 8;

Returns
TypeDescription
ByteString

The bytes for serviceAccount.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getVmName()

public String getVmName()

The name of the VM to create.

string vm_name = 1;

Returns
TypeDescription
String

The vmName.

getVmNameBytes()

public ByteString getVmNameBytes()

The name of the VM to create.

string vm_name = 1;

Returns
TypeDescription
ByteString

The bytes for vmName.

getZone()

public String getZone()

The zone in which to create the VM.

string zone = 3;

Returns
TypeDescription
String

The zone.

getZoneBytes()

public ByteString getZoneBytes()

The zone in which to create the VM.

string zone = 3;

Returns
TypeDescription
ByteString

The bytes for zone.

hasAppliedLicense()

public boolean hasAppliedLicense()

The OS license returned from the adaptation module report.

.google.cloud.vmmigration.v1.AppliedLicense applied_license = 12;

Returns
TypeDescription
boolean

Whether the appliedLicense field is set.

hasComputeScheduling()

public boolean hasComputeScheduling()

Compute instance scheduling information (if empty default is used).

.google.cloud.vmmigration.v1.ComputeScheduling compute_scheduling = 13;

Returns
TypeDescription
boolean

Whether the computeScheduling field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ComputeEngineTargetDetails.Builder newBuilderForType()
Returns
TypeDescription
ComputeEngineTargetDetails.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ComputeEngineTargetDetails.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ComputeEngineTargetDetails.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ComputeEngineTargetDetails.Builder toBuilder()
Returns
TypeDescription
ComputeEngineTargetDetails.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException