Class ComputeEngineTargetDetails.Builder (1.42.0)

public static final class ComputeEngineTargetDetails.Builder extends GeneratedMessageV3.Builder<ComputeEngineTargetDetails.Builder> 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 Methods

getDescriptor()

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

Methods

addAdditionalLicenses(String value)

public ComputeEngineTargetDetails.Builder addAdditionalLicenses(String value)

Additional licenses to assign to the VM.

repeated string additional_licenses = 17;

Parameter
Name Description
value String

The additionalLicenses to add.

Returns
Type Description
ComputeEngineTargetDetails.Builder

This builder for chaining.

addAdditionalLicensesBytes(ByteString value)

public ComputeEngineTargetDetails.Builder addAdditionalLicensesBytes(ByteString value)

Additional licenses to assign to the VM.

repeated string additional_licenses = 17;

Parameter
Name Description
value ByteString

The bytes of the additionalLicenses to add.

Returns
Type Description
ComputeEngineTargetDetails.Builder

This builder for chaining.

addAllAdditionalLicenses(Iterable<String> values)

public ComputeEngineTargetDetails.Builder addAllAdditionalLicenses(Iterable<String> values)

Additional licenses to assign to the VM.

repeated string additional_licenses = 17;

Parameter
Name Description
values Iterable<String>

The additionalLicenses to add.

Returns
Type Description
ComputeEngineTargetDetails.Builder

This builder for chaining.

addAllNetworkInterfaces(Iterable<? extends NetworkInterface> values)

public ComputeEngineTargetDetails.Builder addAllNetworkInterfaces(Iterable<? extends NetworkInterface> values)

List of NICs connected to this VM.

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

Parameter
Name Description
values Iterable<? extends com.google.cloud.vmmigration.v1.NetworkInterface>
Returns
Type Description
ComputeEngineTargetDetails.Builder

addAllNetworkTags(Iterable<String> values)

public ComputeEngineTargetDetails.Builder addAllNetworkTags(Iterable<String> values)

A map of network tags to associate with the VM.

repeated string network_tags = 6;

Parameter
Name Description
values Iterable<String>

The networkTags to add.

Returns
Type Description
ComputeEngineTargetDetails.Builder

This builder for chaining.

addNetworkInterfaces(NetworkInterface value)

public ComputeEngineTargetDetails.Builder addNetworkInterfaces(NetworkInterface value)

List of NICs connected to this VM.

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

Parameter
Name Description
value NetworkInterface
Returns
Type Description
ComputeEngineTargetDetails.Builder

addNetworkInterfaces(NetworkInterface.Builder builderForValue)

public ComputeEngineTargetDetails.Builder addNetworkInterfaces(NetworkInterface.Builder builderForValue)

List of NICs connected to this VM.

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

Parameter
Name Description
builderForValue NetworkInterface.Builder
Returns
Type Description
ComputeEngineTargetDetails.Builder

addNetworkInterfaces(int index, NetworkInterface value)

public ComputeEngineTargetDetails.Builder addNetworkInterfaces(int index, NetworkInterface value)

List of NICs connected to this VM.

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

Parameters
Name Description
index int
value NetworkInterface
Returns
Type Description
ComputeEngineTargetDetails.Builder

addNetworkInterfaces(int index, NetworkInterface.Builder builderForValue)

public ComputeEngineTargetDetails.Builder addNetworkInterfaces(int index, NetworkInterface.Builder builderForValue)

List of NICs connected to this VM.

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

Parameters
Name Description
index int
builderForValue NetworkInterface.Builder
Returns
Type Description
ComputeEngineTargetDetails.Builder

addNetworkInterfacesBuilder()

public NetworkInterface.Builder addNetworkInterfacesBuilder()

List of NICs connected to this VM.

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

Returns
Type Description
NetworkInterface.Builder

addNetworkInterfacesBuilder(int index)

public NetworkInterface.Builder addNetworkInterfacesBuilder(int index)

List of NICs connected to this VM.

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

Parameter
Name Description
index int
Returns
Type Description
NetworkInterface.Builder

addNetworkTags(String value)

public ComputeEngineTargetDetails.Builder addNetworkTags(String value)

A map of network tags to associate with the VM.

repeated string network_tags = 6;

Parameter
Name Description
value String

The networkTags to add.

Returns
Type Description
ComputeEngineTargetDetails.Builder

This builder for chaining.

addNetworkTagsBytes(ByteString value)

public ComputeEngineTargetDetails.Builder addNetworkTagsBytes(ByteString value)

A map of network tags to associate with the VM.

repeated string network_tags = 6;

Parameter
Name Description
value ByteString

The bytes of the networkTags to add.

Returns
Type Description
ComputeEngineTargetDetails.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ComputeEngineTargetDetails.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ComputeEngineTargetDetails.Builder
Overrides

build()

public ComputeEngineTargetDetails build()
Returns
Type Description
ComputeEngineTargetDetails

buildPartial()

public ComputeEngineTargetDetails buildPartial()
Returns
Type Description
ComputeEngineTargetDetails

clear()

public ComputeEngineTargetDetails.Builder clear()
Returns
Type Description
ComputeEngineTargetDetails.Builder
Overrides

clearAdditionalLicenses()

public ComputeEngineTargetDetails.Builder clearAdditionalLicenses()

Additional licenses to assign to the VM.

repeated string additional_licenses = 17;

Returns
Type Description
ComputeEngineTargetDetails.Builder

This builder for chaining.

clearAppliedLicense()

public ComputeEngineTargetDetails.Builder clearAppliedLicense()

The OS license returned from the adaptation module report.

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

Returns
Type Description
ComputeEngineTargetDetails.Builder

clearBootOption()

public ComputeEngineTargetDetails.Builder clearBootOption()

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

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

Returns
Type Description
ComputeEngineTargetDetails.Builder

This builder for chaining.

clearComputeScheduling()

public ComputeEngineTargetDetails.Builder clearComputeScheduling()

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

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

Returns
Type Description
ComputeEngineTargetDetails.Builder

clearDiskType()

public ComputeEngineTargetDetails.Builder clearDiskType()

The disk type to use in the VM.

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

Returns
Type Description
ComputeEngineTargetDetails.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ComputeEngineTargetDetails.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ComputeEngineTargetDetails.Builder
Overrides

clearHostname()

public ComputeEngineTargetDetails.Builder clearHostname()

The hostname to assign to the VM.

string hostname = 18;

Returns
Type Description
ComputeEngineTargetDetails.Builder

This builder for chaining.

clearLabels()

public ComputeEngineTargetDetails.Builder clearLabels()
Returns
Type Description
ComputeEngineTargetDetails.Builder

clearLicenseType()

public ComputeEngineTargetDetails.Builder clearLicenseType()

The license type to use in OS adaptation.

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

Returns
Type Description
ComputeEngineTargetDetails.Builder

This builder for chaining.

clearMachineType()

public ComputeEngineTargetDetails.Builder clearMachineType()

The machine type to create the VM with.

string machine_type = 5;

Returns
Type Description
ComputeEngineTargetDetails.Builder

This builder for chaining.

clearMachineTypeSeries()

public ComputeEngineTargetDetails.Builder clearMachineTypeSeries()

The machine type series to create the VM with.

string machine_type_series = 4;

Returns
Type Description
ComputeEngineTargetDetails.Builder

This builder for chaining.

clearMetadata()

public ComputeEngineTargetDetails.Builder clearMetadata()
Returns
Type Description
ComputeEngineTargetDetails.Builder

clearNetworkInterfaces()

public ComputeEngineTargetDetails.Builder clearNetworkInterfaces()

List of NICs connected to this VM.

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

Returns
Type Description
ComputeEngineTargetDetails.Builder

clearNetworkTags()

public ComputeEngineTargetDetails.Builder clearNetworkTags()

A map of network tags to associate with the VM.

repeated string network_tags = 6;

Returns
Type Description
ComputeEngineTargetDetails.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ComputeEngineTargetDetails.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ComputeEngineTargetDetails.Builder
Overrides

clearProject()

public ComputeEngineTargetDetails.Builder clearProject()

The Google Cloud target project ID or project name.

string project = 2;

Returns
Type Description
ComputeEngineTargetDetails.Builder

This builder for chaining.

clearSecureBoot()

public ComputeEngineTargetDetails.Builder clearSecureBoot()

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
ComputeEngineTargetDetails.Builder

This builder for chaining.

clearServiceAccount()

public ComputeEngineTargetDetails.Builder clearServiceAccount()

The service account to associate the VM with.

string service_account = 8;

Returns
Type Description
ComputeEngineTargetDetails.Builder

This builder for chaining.

clearVmName()

public ComputeEngineTargetDetails.Builder clearVmName()

The name of the VM to create.

string vm_name = 1;

Returns
Type Description
ComputeEngineTargetDetails.Builder

This builder for chaining.

clearZone()

public ComputeEngineTargetDetails.Builder clearZone()

The zone in which to create the VM.

string zone = 3;

Returns
Type Description
ComputeEngineTargetDetails.Builder

This builder for chaining.

clone()

public ComputeEngineTargetDetails.Builder clone()
Returns
Type Description
ComputeEngineTargetDetails.Builder
Overrides

containsLabels(String key)

public boolean containsLabels(String key)

A map of labels to associate with the VM.

map<string, string> labels = 10;

Parameter
Name Description
key String
Returns
Type Description
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
Name Description
key String
Returns
Type Description
boolean

getAdditionalLicenses(int index)

public String getAdditionalLicenses(int index)

Additional licenses to assign to the VM.

repeated string additional_licenses = 17;

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)

Additional licenses to assign to the VM.

repeated string additional_licenses = 17;

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()

Additional licenses to assign to the VM.

repeated string additional_licenses = 17;

Returns
Type Description
int

The count of additionalLicenses.

getAdditionalLicensesList()

public ProtocolStringList getAdditionalLicensesList()

Additional licenses to assign to the VM.

repeated string additional_licenses = 17;

Returns
Type Description
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
Type Description
AppliedLicense

The appliedLicense.

getAppliedLicenseBuilder()

public AppliedLicense.Builder getAppliedLicenseBuilder()

The OS license returned from the adaptation module report.

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

Returns
Type Description
AppliedLicense.Builder

getAppliedLicenseOrBuilder()

public AppliedLicenseOrBuilder getAppliedLicenseOrBuilder()

The OS license returned from the adaptation module report.

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

Returns
Type Description
AppliedLicenseOrBuilder

getBootOption()

public ComputeEngineBootOption getBootOption()

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

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

Returns
Type Description
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
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
Type Description
ComputeScheduling

The computeScheduling.

getComputeSchedulingBuilder()

public ComputeScheduling.Builder getComputeSchedulingBuilder()

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

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

Returns
Type Description
ComputeScheduling.Builder

getComputeSchedulingOrBuilder()

public ComputeSchedulingOrBuilder getComputeSchedulingOrBuilder()

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

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

Returns
Type Description
ComputeSchedulingOrBuilder

getDefaultInstanceForType()

public ComputeEngineTargetDetails getDefaultInstanceForType()
Returns
Type Description
ComputeEngineTargetDetails

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDiskType()

public ComputeEngineDiskType getDiskType()

The disk type to use in the VM.

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

Returns
Type Description
ComputeEngineDiskType

The diskType.

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.

getHostname()

public String getHostname()

The hostname to assign to the VM.

string hostname = 18;

Returns
Type Description
String

The hostname.

getHostnameBytes()

public ByteString getHostnameBytes()

The hostname to assign to the VM.

string hostname = 18;

Returns
Type Description
ByteString

The bytes for hostname.

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

A map of labels to associate with the VM.

map<string, string> labels = 10;

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

A map of labels to associate with the VM.

map<string, string> labels = 10;

Returns
Type Description
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
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

A map of labels to associate with the VM.

map<string, string> labels = 10;

Parameter
Name Description
key String
Returns
Type Description
String

getLicenseType()

public ComputeEngineLicenseType getLicenseType()

The license type to use in OS adaptation.

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

Returns
Type Description
ComputeEngineLicenseType

The licenseType.

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.

getMetadata() (deprecated)

public Map<String,String> getMetadata()

Use #getMetadataMap() instead.

Returns
Type Description
Map<String,String>

getMetadataCount()

public int getMetadataCount()

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

map<string, string> metadata = 16;

Returns
Type Description
int

getMetadataMap()

public Map<String,String> getMetadataMap()

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

map<string, string> metadata = 16;

Returns
Type Description
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
Name Description
key String
defaultValue String
Returns
Type Description
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
Name Description
key String
Returns
Type Description
String

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getMutableMetadata() (deprecated)

public Map<String,String> getMutableMetadata()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,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
Name Description
index int
Returns
Type Description
NetworkInterface

getNetworkInterfacesBuilder(int index)

public NetworkInterface.Builder getNetworkInterfacesBuilder(int index)

List of NICs connected to this VM.

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

Parameter
Name Description
index int
Returns
Type Description
NetworkInterface.Builder

getNetworkInterfacesBuilderList()

public List<NetworkInterface.Builder> getNetworkInterfacesBuilderList()

List of NICs connected to this VM.

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

Returns
Type Description
List<Builder>

getNetworkInterfacesCount()

public int getNetworkInterfacesCount()

List of NICs connected to this VM.

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

Returns
Type Description
int

getNetworkInterfacesList()

public List<NetworkInterface> getNetworkInterfacesList()

List of NICs connected to this VM.

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

Returns
Type Description
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
Name Description
index int
Returns
Type Description
NetworkInterfaceOrBuilder

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>

getNetworkTags(int index)

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.

getNetworkTagsBytes(int 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.

getNetworkTagsCount()

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.

getNetworkTagsList()

public ProtocolStringList getNetworkTagsList()

A map of network tags to associate with the VM.

repeated string network_tags = 6;

Returns
Type Description
ProtocolStringList

A list containing the networkTags.

getProject()

public String getProject()

The Google Cloud target project ID or project name.

string project = 2;

Returns
Type Description
String

The project.

getProjectBytes()

public ByteString getProjectBytes()

The Google Cloud target project ID or project name.

string project = 2;

Returns
Type Description
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
Type Description
boolean

The secureBoot.

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.

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
Type Description
ByteString

The bytes for vmName.

getZone()

public String 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
Type Description
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
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.

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.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAppliedLicense(AppliedLicense value)

public ComputeEngineTargetDetails.Builder mergeAppliedLicense(AppliedLicense value)

The OS license returned from the adaptation module report.

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

Parameter
Name Description
value AppliedLicense
Returns
Type Description
ComputeEngineTargetDetails.Builder

mergeComputeScheduling(ComputeScheduling value)

public ComputeEngineTargetDetails.Builder mergeComputeScheduling(ComputeScheduling value)

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

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

Parameter
Name Description
value ComputeScheduling
Returns
Type Description
ComputeEngineTargetDetails.Builder

mergeFrom(ComputeEngineTargetDetails other)

public ComputeEngineTargetDetails.Builder mergeFrom(ComputeEngineTargetDetails other)
Parameter
Name Description
other ComputeEngineTargetDetails
Returns
Type Description
ComputeEngineTargetDetails.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ComputeEngineTargetDetails.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ComputeEngineTargetDetails.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ComputeEngineTargetDetails.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ComputeEngineTargetDetails.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ComputeEngineTargetDetails.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ComputeEngineTargetDetails.Builder
Overrides

putAllLabels(Map<String,String> values)

public ComputeEngineTargetDetails.Builder putAllLabels(Map<String,String> values)

A map of labels to associate with the VM.

map<string, string> labels = 10;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
ComputeEngineTargetDetails.Builder

putAllMetadata(Map<String,String> values)

public ComputeEngineTargetDetails.Builder putAllMetadata(Map<String,String> values)

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

map<string, string> metadata = 16;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
ComputeEngineTargetDetails.Builder

putLabels(String key, String value)

public ComputeEngineTargetDetails.Builder putLabels(String key, String value)

A map of labels to associate with the VM.

map<string, string> labels = 10;

Parameters
Name Description
key String
value String
Returns
Type Description
ComputeEngineTargetDetails.Builder

putMetadata(String key, String value)

public ComputeEngineTargetDetails.Builder putMetadata(String key, String value)

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

map<string, string> metadata = 16;

Parameters
Name Description
key String
value String
Returns
Type Description
ComputeEngineTargetDetails.Builder

removeLabels(String key)

public ComputeEngineTargetDetails.Builder removeLabels(String key)

A map of labels to associate with the VM.

map<string, string> labels = 10;

Parameter
Name Description
key String
Returns
Type Description
ComputeEngineTargetDetails.Builder

removeMetadata(String key)

public ComputeEngineTargetDetails.Builder removeMetadata(String key)

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

map<string, string> metadata = 16;

Parameter
Name Description
key String
Returns
Type Description
ComputeEngineTargetDetails.Builder

removeNetworkInterfaces(int index)

public ComputeEngineTargetDetails.Builder removeNetworkInterfaces(int index)

List of NICs connected to this VM.

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

Parameter
Name Description
index int
Returns
Type Description
ComputeEngineTargetDetails.Builder

setAdditionalLicenses(int index, String value)

public ComputeEngineTargetDetails.Builder setAdditionalLicenses(int index, String value)

Additional licenses to assign to the VM.

repeated string additional_licenses = 17;

Parameters
Name Description
index int

The index to set the value at.

value String

The additionalLicenses to set.

Returns
Type Description
ComputeEngineTargetDetails.Builder

This builder for chaining.

setAppliedLicense(AppliedLicense value)

public ComputeEngineTargetDetails.Builder setAppliedLicense(AppliedLicense value)

The OS license returned from the adaptation module report.

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

Parameter
Name Description
value AppliedLicense
Returns
Type Description
ComputeEngineTargetDetails.Builder

setAppliedLicense(AppliedLicense.Builder builderForValue)

public ComputeEngineTargetDetails.Builder setAppliedLicense(AppliedLicense.Builder builderForValue)

The OS license returned from the adaptation module report.

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

Parameter
Name Description
builderForValue AppliedLicense.Builder
Returns
Type Description
ComputeEngineTargetDetails.Builder

setBootOption(ComputeEngineBootOption value)

public ComputeEngineTargetDetails.Builder setBootOption(ComputeEngineBootOption value)

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

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

Parameter
Name Description
value ComputeEngineBootOption

The bootOption to set.

Returns
Type Description
ComputeEngineTargetDetails.Builder

This builder for chaining.

setBootOptionValue(int value)

public ComputeEngineTargetDetails.Builder setBootOptionValue(int value)

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

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

Parameter
Name Description
value int

The enum numeric value on the wire for bootOption to set.

Returns
Type Description
ComputeEngineTargetDetails.Builder

This builder for chaining.

setComputeScheduling(ComputeScheduling value)

public ComputeEngineTargetDetails.Builder setComputeScheduling(ComputeScheduling value)

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

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

Parameter
Name Description
value ComputeScheduling
Returns
Type Description
ComputeEngineTargetDetails.Builder

setComputeScheduling(ComputeScheduling.Builder builderForValue)

public ComputeEngineTargetDetails.Builder setComputeScheduling(ComputeScheduling.Builder builderForValue)

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

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

Parameter
Name Description
builderForValue ComputeScheduling.Builder
Returns
Type Description
ComputeEngineTargetDetails.Builder

setDiskType(ComputeEngineDiskType value)

public ComputeEngineTargetDetails.Builder setDiskType(ComputeEngineDiskType value)

The disk type to use in the VM.

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

Parameter
Name Description
value ComputeEngineDiskType

The diskType to set.

Returns
Type Description
ComputeEngineTargetDetails.Builder

This builder for chaining.

setDiskTypeValue(int value)

public ComputeEngineTargetDetails.Builder setDiskTypeValue(int value)

The disk type to use in the VM.

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

Parameter
Name Description
value int

The enum numeric value on the wire for diskType to set.

Returns
Type Description
ComputeEngineTargetDetails.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ComputeEngineTargetDetails.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ComputeEngineTargetDetails.Builder
Overrides

setHostname(String value)

public ComputeEngineTargetDetails.Builder setHostname(String value)

The hostname to assign to the VM.

string hostname = 18;

Parameter
Name Description
value String

The hostname to set.

Returns
Type Description
ComputeEngineTargetDetails.Builder

This builder for chaining.

setHostnameBytes(ByteString value)

public ComputeEngineTargetDetails.Builder setHostnameBytes(ByteString value)

The hostname to assign to the VM.

string hostname = 18;

Parameter
Name Description
value ByteString

The bytes for hostname to set.

Returns
Type Description
ComputeEngineTargetDetails.Builder

This builder for chaining.

setLicenseType(ComputeEngineLicenseType value)

public ComputeEngineTargetDetails.Builder setLicenseType(ComputeEngineLicenseType value)

The license type to use in OS adaptation.

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

Parameter
Name Description
value ComputeEngineLicenseType

The licenseType to set.

Returns
Type Description
ComputeEngineTargetDetails.Builder

This builder for chaining.

setLicenseTypeValue(int value)

public ComputeEngineTargetDetails.Builder setLicenseTypeValue(int value)

The license type to use in OS adaptation.

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

Parameter
Name Description
value int

The enum numeric value on the wire for licenseType to set.

Returns
Type Description
ComputeEngineTargetDetails.Builder

This builder for chaining.

setMachineType(String value)

public ComputeEngineTargetDetails.Builder setMachineType(String value)

The machine type to create the VM with.

string machine_type = 5;

Parameter
Name Description
value String

The machineType to set.

Returns
Type Description
ComputeEngineTargetDetails.Builder

This builder for chaining.

setMachineTypeBytes(ByteString value)

public ComputeEngineTargetDetails.Builder setMachineTypeBytes(ByteString value)

The machine type to create the VM with.

string machine_type = 5;

Parameter
Name Description
value ByteString

The bytes for machineType to set.

Returns
Type Description
ComputeEngineTargetDetails.Builder

This builder for chaining.

setMachineTypeSeries(String value)

public ComputeEngineTargetDetails.Builder setMachineTypeSeries(String value)

The machine type series to create the VM with.

string machine_type_series = 4;

Parameter
Name Description
value String

The machineTypeSeries to set.

Returns
Type Description
ComputeEngineTargetDetails.Builder

This builder for chaining.

setMachineTypeSeriesBytes(ByteString value)

public ComputeEngineTargetDetails.Builder setMachineTypeSeriesBytes(ByteString value)

The machine type series to create the VM with.

string machine_type_series = 4;

Parameter
Name Description
value ByteString

The bytes for machineTypeSeries to set.

Returns
Type Description
ComputeEngineTargetDetails.Builder

This builder for chaining.

setNetworkInterfaces(int index, NetworkInterface value)

public ComputeEngineTargetDetails.Builder setNetworkInterfaces(int index, NetworkInterface value)

List of NICs connected to this VM.

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

Parameters
Name Description
index int
value NetworkInterface
Returns
Type Description
ComputeEngineTargetDetails.Builder

setNetworkInterfaces(int index, NetworkInterface.Builder builderForValue)

public ComputeEngineTargetDetails.Builder setNetworkInterfaces(int index, NetworkInterface.Builder builderForValue)

List of NICs connected to this VM.

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

Parameters
Name Description
index int
builderForValue NetworkInterface.Builder
Returns
Type Description
ComputeEngineTargetDetails.Builder

setNetworkTags(int index, String value)

public ComputeEngineTargetDetails.Builder setNetworkTags(int index, String value)

A map of network tags to associate with the VM.

repeated string network_tags = 6;

Parameters
Name Description
index int

The index to set the value at.

value String

The networkTags to set.

Returns
Type Description
ComputeEngineTargetDetails.Builder

This builder for chaining.

setProject(String value)

public ComputeEngineTargetDetails.Builder setProject(String value)

The Google Cloud target project ID or project name.

string project = 2;

Parameter
Name Description
value String

The project to set.

Returns
Type Description
ComputeEngineTargetDetails.Builder

This builder for chaining.

setProjectBytes(ByteString value)

public ComputeEngineTargetDetails.Builder setProjectBytes(ByteString value)

The Google Cloud target project ID or project name.

string project = 2;

Parameter
Name Description
value ByteString

The bytes for project to set.

Returns
Type Description
ComputeEngineTargetDetails.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ComputeEngineTargetDetails.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ComputeEngineTargetDetails.Builder
Overrides

setSecureBoot(boolean value)

public ComputeEngineTargetDetails.Builder setSecureBoot(boolean value)

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;

Parameter
Name Description
value boolean

The secureBoot to set.

Returns
Type Description
ComputeEngineTargetDetails.Builder

This builder for chaining.

setServiceAccount(String value)

public ComputeEngineTargetDetails.Builder setServiceAccount(String value)

The service account to associate the VM with.

string service_account = 8;

Parameter
Name Description
value String

The serviceAccount to set.

Returns
Type Description
ComputeEngineTargetDetails.Builder

This builder for chaining.

setServiceAccountBytes(ByteString value)

public ComputeEngineTargetDetails.Builder setServiceAccountBytes(ByteString value)

The service account to associate the VM with.

string service_account = 8;

Parameter
Name Description
value ByteString

The bytes for serviceAccount to set.

Returns
Type Description
ComputeEngineTargetDetails.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ComputeEngineTargetDetails.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ComputeEngineTargetDetails.Builder
Overrides

setVmName(String value)

public ComputeEngineTargetDetails.Builder setVmName(String value)

The name of the VM to create.

string vm_name = 1;

Parameter
Name Description
value String

The vmName to set.

Returns
Type Description
ComputeEngineTargetDetails.Builder

This builder for chaining.

setVmNameBytes(ByteString value)

public ComputeEngineTargetDetails.Builder setVmNameBytes(ByteString value)

The name of the VM to create.

string vm_name = 1;

Parameter
Name Description
value ByteString

The bytes for vmName to set.

Returns
Type Description
ComputeEngineTargetDetails.Builder

This builder for chaining.

setZone(String value)

public ComputeEngineTargetDetails.Builder setZone(String value)

The zone in which to create the VM.

string zone = 3;

Parameter
Name Description
value String

The zone to set.

Returns
Type Description
ComputeEngineTargetDetails.Builder

This builder for chaining.

setZoneBytes(ByteString value)

public ComputeEngineTargetDetails.Builder setZoneBytes(ByteString value)

The zone in which to create the VM.

string zone = 3;

Parameter
Name Description
value ByteString

The bytes for zone to set.

Returns
Type Description
ComputeEngineTargetDetails.Builder

This builder for chaining.