public final class ComputeEngineTargetDefaults extends GeneratedMessageV3 implements ComputeEngineTargetDefaultsOrBuilder
ComputeEngineTargetDefaults is a collection of details for creating a VM in a
target Compute Engine project.
Protobuf type google.cloud.vmmigration.v1.ComputeEngineTargetDefaults
Static Fields
APPLIED_LICENSE_FIELD_NUMBER
public static final int APPLIED_LICENSE_FIELD_NUMBER
Field Value
BOOT_OPTION_FIELD_NUMBER
public static final int BOOT_OPTION_FIELD_NUMBER
Field Value
COMPUTE_SCHEDULING_FIELD_NUMBER
public static final int COMPUTE_SCHEDULING_FIELD_NUMBER
Field Value
DISK_TYPE_FIELD_NUMBER
public static final int DISK_TYPE_FIELD_NUMBER
Field Value
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
Field Value
LICENSE_TYPE_FIELD_NUMBER
public static final int LICENSE_TYPE_FIELD_NUMBER
Field Value
MACHINE_TYPE_FIELD_NUMBER
public static final int MACHINE_TYPE_FIELD_NUMBER
Field Value
MACHINE_TYPE_SERIES_FIELD_NUMBER
public static final int MACHINE_TYPE_SERIES_FIELD_NUMBER
Field Value
public static final int METADATA_FIELD_NUMBER
Field Value
NETWORK_INTERFACES_FIELD_NUMBER
public static final int NETWORK_INTERFACES_FIELD_NUMBER
Field Value
public static final int NETWORK_TAGS_FIELD_NUMBER
Field Value
SECURE_BOOT_FIELD_NUMBER
public static final int SECURE_BOOT_FIELD_NUMBER
Field Value
SERVICE_ACCOUNT_FIELD_NUMBER
public static final int SERVICE_ACCOUNT_FIELD_NUMBER
Field Value
TARGET_PROJECT_FIELD_NUMBER
public static final int TARGET_PROJECT_FIELD_NUMBER
Field Value
VM_NAME_FIELD_NUMBER
public static final int VM_NAME_FIELD_NUMBER
Field Value
ZONE_FIELD_NUMBER
public static final int ZONE_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static ComputeEngineTargetDefaults getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static ComputeEngineTargetDefaults.Builder newBuilder()
Returns
newBuilder(ComputeEngineTargetDefaults prototype)
public static ComputeEngineTargetDefaults.Builder newBuilder(ComputeEngineTargetDefaults prototype)
Parameter
Returns
public static ComputeEngineTargetDefaults parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static ComputeEngineTargetDefaults parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static ComputeEngineTargetDefaults parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ComputeEngineTargetDefaults parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static ComputeEngineTargetDefaults parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ComputeEngineTargetDefaults parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ComputeEngineTargetDefaults parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static ComputeEngineTargetDefaults parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ComputeEngineTargetDefaults parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static ComputeEngineTargetDefaults parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static ComputeEngineTargetDefaults parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ComputeEngineTargetDefaults parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<ComputeEngineTargetDefaults> parser()
Returns
Methods
containsLabels(String key)
public boolean containsLabels(String key)
A map of labels to associate with the VM.
map<string, string> labels = 10;
Parameter
Returns
public boolean containsMetadata(String key)
The metadata key/value pairs to assign to the VM.
map<string, string> metadata = 16;
Parameter
Returns
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getAppliedLicense()
public AppliedLicense getAppliedLicense()
Output only. The OS license returned from the adaptation module report.
.google.cloud.vmmigration.v1.AppliedLicense applied_license = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getAppliedLicenseOrBuilder()
public AppliedLicenseOrBuilder getAppliedLicenseOrBuilder()
Output only. The OS license returned from the adaptation module report.
.google.cloud.vmmigration.v1.AppliedLicense applied_license = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getBootOption()
public ComputeEngineBootOption getBootOption()
Output only. The VM Boot Option, as set in the source vm.
.google.cloud.vmmigration.v1.ComputeEngineBootOption boot_option = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
getBootOptionValue()
public int getBootOptionValue()
Output only. The VM Boot Option, as set in the source vm.
.google.cloud.vmmigration.v1.ComputeEngineBootOption boot_option = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
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
getComputeSchedulingOrBuilder()
public ComputeSchedulingOrBuilder getComputeSchedulingOrBuilder()
Compute instance scheduling information (if empty default is used).
.google.cloud.vmmigration.v1.ComputeScheduling compute_scheduling = 13;
Returns
getDefaultInstanceForType()
public ComputeEngineTargetDefaults getDefaultInstanceForType()
Returns
getDiskType()
public ComputeEngineDiskType getDiskType()
The disk type to use in the VM.
.google.cloud.vmmigration.v1.ComputeEngineDiskType disk_type = 9;
Returns
getDiskTypeValue()
public int getDiskTypeValue()
The disk type to use in the VM.
.google.cloud.vmmigration.v1.ComputeEngineDiskType disk_type = 9;
Returns
Type | Description |
int | The enum numeric value on the wire for diskType.
|
getLabels()
public Map<String,String> getLabels()
Returns
getLabelsCount()
public int getLabelsCount()
A map of labels to associate with the VM.
map<string, string> labels = 10;
Returns
getLabelsMap()
public Map<String,String> getLabelsMap()
A map of labels to associate with the VM.
map<string, string> labels = 10;
Returns
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
Returns
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)
A map of labels to associate with the VM.
map<string, string> labels = 10;
Parameter
Returns
getLicenseType()
public ComputeEngineLicenseType getLicenseType()
The license type to use in OS adaptation.
.google.cloud.vmmigration.v1.ComputeEngineLicenseType license_type = 11;
Returns
getLicenseTypeValue()
public int getLicenseTypeValue()
The license type to use in OS adaptation.
.google.cloud.vmmigration.v1.ComputeEngineLicenseType license_type = 11;
Returns
Type | Description |
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
Type | Description |
String | The machineType.
|
getMachineTypeBytes()
public ByteString getMachineTypeBytes()
The machine type to create the VM with.
string machine_type = 5;
Returns
Type | Description |
ByteString | The bytes for machineType.
|
getMachineTypeSeries()
public String getMachineTypeSeries()
The machine type series to create the VM with.
string machine_type_series = 4;
Returns
Type | Description |
String | The machineTypeSeries.
|
getMachineTypeSeriesBytes()
public ByteString getMachineTypeSeriesBytes()
The machine type series to create the VM with.
string machine_type_series = 4;
Returns
Type | Description |
ByteString | The bytes for machineTypeSeries.
|
public Map<String,String> getMetadata()
Returns
public int getMetadataCount()
The metadata key/value pairs to assign to the VM.
map<string, string> metadata = 16;
Returns
public Map<String,String> getMetadataMap()
The metadata key/value pairs to assign to the VM.
map<string, string> metadata = 16;
Returns
public String getMetadataOrDefault(String key, String defaultValue)
The metadata key/value pairs to assign to the VM.
map<string, string> metadata = 16;
Parameters
Returns
public String getMetadataOrThrow(String key)
The metadata key/value pairs to assign to the VM.
map<string, string> metadata = 16;
Parameter
Returns
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
Returns
getNetworkInterfacesCount()
public int getNetworkInterfacesCount()
List of NICs connected to this VM.
repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 7;
Returns
getNetworkInterfacesList()
public List<NetworkInterface> getNetworkInterfacesList()
List of NICs connected to this VM.
repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 7;
Returns
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
Returns
getNetworkInterfacesOrBuilderList()
public List<? extends NetworkInterfaceOrBuilder> getNetworkInterfacesOrBuilderList()
List of NICs connected to this VM.
repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 7;
Returns
Type | Description |
List<? extends com.google.cloud.vmmigration.v1.NetworkInterfaceOrBuilder> | |
public String getNetworkTags(int index)
A map of network tags to associate with the VM.
repeated string network_tags = 6;
Parameter
Name | Description |
index | int
The index of the element to return.
|
Returns
Type | Description |
String | The networkTags at the given index.
|
public ByteString getNetworkTagsBytes(int index)
A map of network tags to associate with the VM.
repeated string network_tags = 6;
Parameter
Name | Description |
index | int
The index of the value to return.
|
Returns
Type | Description |
ByteString | The bytes of the networkTags at the given index.
|
public int getNetworkTagsCount()
A map of network tags to associate with the VM.
repeated string network_tags = 6;
Returns
Type | Description |
int | The count of networkTags.
|
public ProtocolStringList getNetworkTagsList()
A map of network tags to associate with the VM.
repeated string network_tags = 6;
Returns
getParserForType()
public Parser<ComputeEngineTargetDefaults> getParserForType()
Returns
Overrides
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
Type | Description |
boolean | The secureBoot.
|
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getServiceAccount()
public String getServiceAccount()
The service account to associate the VM with.
string service_account = 8;
Returns
Type | Description |
String | The serviceAccount.
|
getServiceAccountBytes()
public ByteString getServiceAccountBytes()
The service account to associate the VM with.
string service_account = 8;
Returns
Type | Description |
ByteString | The bytes for serviceAccount.
|
getTargetProject()
public String getTargetProject()
The full path of the resource of type TargetProject which represents the
Compute Engine project in which to create this VM.
string target_project = 2 [(.google.api.resource_reference) = { ... }
Returns
Type | Description |
String | The targetProject.
|
getTargetProjectBytes()
public ByteString getTargetProjectBytes()
The full path of the resource of type TargetProject which represents the
Compute Engine project in which to create this VM.
string target_project = 2 [(.google.api.resource_reference) = { ... }
Returns
Type | Description |
ByteString | The bytes for targetProject.
|
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
getVmName()
public String getVmName()
The name of the VM to create.
string vm_name = 1;
Returns
Type | Description |
String | The vmName.
|
getVmNameBytes()
public ByteString getVmNameBytes()
The name of the VM to create.
string vm_name = 1;
Returns
getZone()
The zone in which to create the VM.
string zone = 3;
Returns
Type | Description |
String | The zone.
|
getZoneBytes()
public ByteString getZoneBytes()
The zone in which to create the VM.
string zone = 3;
Returns
hasAppliedLicense()
public boolean hasAppliedLicense()
Output only. The OS license returned from the adaptation module report.
.google.cloud.vmmigration.v1.AppliedLicense applied_license = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns
Type | Description |
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
Type | Description |
boolean | Whether the computeScheduling field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public ComputeEngineTargetDefaults.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ComputeEngineTargetDefaults.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public ComputeEngineTargetDefaults.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions