Package com.google.cloud.vmmigration.v1
Class ComputeEngineTargetDetails.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ComputeEngineTargetDetails.Builder>
-
- com.google.cloud.vmmigration.v1.ComputeEngineTargetDetails.Builder
-
- All Implemented Interfaces:
ComputeEngineTargetDetailsOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- ComputeEngineTargetDetails
public static final class ComputeEngineTargetDetails.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ComputeEngineTargetDetails.Builder> implements ComputeEngineTargetDetailsOrBuilder
ComputeEngineTargetDetails is a collection of details for creating a VM in a target Compute Engine project.
Protobuf typegoogle.cloud.vmmigration.v1.ComputeEngineTargetDetails
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ComputeEngineTargetDetails.Builder
addAdditionalLicenses(String value)
Additional licenses to assign to the VM.ComputeEngineTargetDetails.Builder
addAdditionalLicensesBytes(com.google.protobuf.ByteString value)
Additional licenses to assign to the VM.ComputeEngineTargetDetails.Builder
addAllAdditionalLicenses(Iterable<String> values)
Additional licenses to assign to the VM.ComputeEngineTargetDetails.Builder
addAllNetworkInterfaces(Iterable<? extends NetworkInterface> values)
List of NICs connected to this VM.ComputeEngineTargetDetails.Builder
addAllNetworkTags(Iterable<String> values)
A map of network tags to associate with the VM.ComputeEngineTargetDetails.Builder
addNetworkInterfaces(int index, NetworkInterface value)
List of NICs connected to this VM.ComputeEngineTargetDetails.Builder
addNetworkInterfaces(int index, NetworkInterface.Builder builderForValue)
List of NICs connected to this VM.ComputeEngineTargetDetails.Builder
addNetworkInterfaces(NetworkInterface value)
List of NICs connected to this VM.ComputeEngineTargetDetails.Builder
addNetworkInterfaces(NetworkInterface.Builder builderForValue)
List of NICs connected to this VM.NetworkInterface.Builder
addNetworkInterfacesBuilder()
List of NICs connected to this VM.NetworkInterface.Builder
addNetworkInterfacesBuilder(int index)
List of NICs connected to this VM.ComputeEngineTargetDetails.Builder
addNetworkTags(String value)
A map of network tags to associate with the VM.ComputeEngineTargetDetails.Builder
addNetworkTagsBytes(com.google.protobuf.ByteString value)
A map of network tags to associate with the VM.ComputeEngineTargetDetails.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ComputeEngineTargetDetails
build()
ComputeEngineTargetDetails
buildPartial()
ComputeEngineTargetDetails.Builder
clear()
ComputeEngineTargetDetails.Builder
clearAdditionalLicenses()
Additional licenses to assign to the VM.ComputeEngineTargetDetails.Builder
clearAppliedLicense()
The OS license returned from the adaptation module report.ComputeEngineTargetDetails.Builder
clearBootOption()
The VM Boot Option, as set in the source vm.ComputeEngineTargetDetails.Builder
clearComputeScheduling()
Compute instance scheduling information (if empty default is used).ComputeEngineTargetDetails.Builder
clearDiskType()
The disk type to use in the VM.ComputeEngineTargetDetails.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ComputeEngineTargetDetails.Builder
clearHostname()
The hostname to assign to the VM.ComputeEngineTargetDetails.Builder
clearLabels()
ComputeEngineTargetDetails.Builder
clearLicenseType()
The license type to use in OS adaptation.ComputeEngineTargetDetails.Builder
clearMachineType()
The machine type to create the VM with.ComputeEngineTargetDetails.Builder
clearMachineTypeSeries()
The machine type series to create the VM with.ComputeEngineTargetDetails.Builder
clearMetadata()
ComputeEngineTargetDetails.Builder
clearNetworkInterfaces()
List of NICs connected to this VM.ComputeEngineTargetDetails.Builder
clearNetworkTags()
A map of network tags to associate with the VM.ComputeEngineTargetDetails.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ComputeEngineTargetDetails.Builder
clearProject()
The Google Cloud target project ID or project name.ComputeEngineTargetDetails.Builder
clearSecureBoot()
Defines whether the instance has Secure Boot enabled.ComputeEngineTargetDetails.Builder
clearServiceAccount()
The service account to associate the VM with.ComputeEngineTargetDetails.Builder
clearVmName()
The name of the VM to create.ComputeEngineTargetDetails.Builder
clearZone()
The zone in which to create the VM.ComputeEngineTargetDetails.Builder
clone()
boolean
containsLabels(String key)
A map of labels to associate with the VM.boolean
containsMetadata(String key)
The metadata key/value pairs to assign to the VM.String
getAdditionalLicenses(int index)
Additional licenses to assign to the VM.com.google.protobuf.ByteString
getAdditionalLicensesBytes(int index)
Additional licenses to assign to the VM.int
getAdditionalLicensesCount()
Additional licenses to assign to the VM.com.google.protobuf.ProtocolStringList
getAdditionalLicensesList()
Additional licenses to assign to the VM.AppliedLicense
getAppliedLicense()
The OS license returned from the adaptation module report.AppliedLicense.Builder
getAppliedLicenseBuilder()
The OS license returned from the adaptation module report.AppliedLicenseOrBuilder
getAppliedLicenseOrBuilder()
The OS license returned from the adaptation module report.ComputeEngineBootOption
getBootOption()
The VM Boot Option, as set in the source vm.int
getBootOptionValue()
The VM Boot Option, as set in the source vm.ComputeScheduling
getComputeScheduling()
Compute instance scheduling information (if empty default is used).ComputeScheduling.Builder
getComputeSchedulingBuilder()
Compute instance scheduling information (if empty default is used).ComputeSchedulingOrBuilder
getComputeSchedulingOrBuilder()
Compute instance scheduling information (if empty default is used).ComputeEngineTargetDetails
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
ComputeEngineDiskType
getDiskType()
The disk type to use in the VM.int
getDiskTypeValue()
The disk type to use in the VM.String
getHostname()
The hostname to assign to the VM.com.google.protobuf.ByteString
getHostnameBytes()
The hostname to assign to the VM.Map<String,String>
getLabels()
Deprecated.int
getLabelsCount()
A map of labels to associate with the VM.Map<String,String>
getLabelsMap()
A map of labels to associate with the VM.String
getLabelsOrDefault(String key, String defaultValue)
A map of labels to associate with the VM.String
getLabelsOrThrow(String key)
A map of labels to associate with the VM.ComputeEngineLicenseType
getLicenseType()
The license type to use in OS adaptation.int
getLicenseTypeValue()
The license type to use in OS adaptation.String
getMachineType()
The machine type to create the VM with.com.google.protobuf.ByteString
getMachineTypeBytes()
The machine type to create the VM with.String
getMachineTypeSeries()
The machine type series to create the VM with.com.google.protobuf.ByteString
getMachineTypeSeriesBytes()
The machine type series to create the VM with.Map<String,String>
getMetadata()
Deprecated.int
getMetadataCount()
The metadata key/value pairs to assign to the VM.Map<String,String>
getMetadataMap()
The metadata key/value pairs to assign to the VM.String
getMetadataOrDefault(String key, String defaultValue)
The metadata key/value pairs to assign to the VM.String
getMetadataOrThrow(String key)
The metadata key/value pairs to assign to the VM.Map<String,String>
getMutableLabels()
Deprecated.Map<String,String>
getMutableMetadata()
Deprecated.NetworkInterface
getNetworkInterfaces(int index)
List of NICs connected to this VM.NetworkInterface.Builder
getNetworkInterfacesBuilder(int index)
List of NICs connected to this VM.List<NetworkInterface.Builder>
getNetworkInterfacesBuilderList()
List of NICs connected to this VM.int
getNetworkInterfacesCount()
List of NICs connected to this VM.List<NetworkInterface>
getNetworkInterfacesList()
List of NICs connected to this VM.NetworkInterfaceOrBuilder
getNetworkInterfacesOrBuilder(int index)
List of NICs connected to this VM.List<? extends NetworkInterfaceOrBuilder>
getNetworkInterfacesOrBuilderList()
List of NICs connected to this VM.String
getNetworkTags(int index)
A map of network tags to associate with the VM.com.google.protobuf.ByteString
getNetworkTagsBytes(int index)
A map of network tags to associate with the VM.int
getNetworkTagsCount()
A map of network tags to associate with the VM.com.google.protobuf.ProtocolStringList
getNetworkTagsList()
A map of network tags to associate with the VM.String
getProject()
The Google Cloud target project ID or project name.com.google.protobuf.ByteString
getProjectBytes()
The Google Cloud target project ID or project name.boolean
getSecureBoot()
Defines whether the instance has Secure Boot enabled.String
getServiceAccount()
The service account to associate the VM with.com.google.protobuf.ByteString
getServiceAccountBytes()
The service account to associate the VM with.String
getVmName()
The name of the VM to create.com.google.protobuf.ByteString
getVmNameBytes()
The name of the VM to create.String
getZone()
The zone in which to create the VM.com.google.protobuf.ByteString
getZoneBytes()
The zone in which to create the VM.boolean
hasAppliedLicense()
The OS license returned from the adaptation module report.boolean
hasComputeScheduling()
Compute instance scheduling information (if empty default is used).protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
protected com.google.protobuf.MapField
internalGetMutableMapField(int number)
boolean
isInitialized()
ComputeEngineTargetDetails.Builder
mergeAppliedLicense(AppliedLicense value)
The OS license returned from the adaptation module report.ComputeEngineTargetDetails.Builder
mergeComputeScheduling(ComputeScheduling value)
Compute instance scheduling information (if empty default is used).ComputeEngineTargetDetails.Builder
mergeFrom(ComputeEngineTargetDetails other)
ComputeEngineTargetDetails.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ComputeEngineTargetDetails.Builder
mergeFrom(com.google.protobuf.Message other)
ComputeEngineTargetDetails.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ComputeEngineTargetDetails.Builder
putAllLabels(Map<String,String> values)
A map of labels to associate with the VM.ComputeEngineTargetDetails.Builder
putAllMetadata(Map<String,String> values)
The metadata key/value pairs to assign to the VM.ComputeEngineTargetDetails.Builder
putLabels(String key, String value)
A map of labels to associate with the VM.ComputeEngineTargetDetails.Builder
putMetadata(String key, String value)
The metadata key/value pairs to assign to the VM.ComputeEngineTargetDetails.Builder
removeLabels(String key)
A map of labels to associate with the VM.ComputeEngineTargetDetails.Builder
removeMetadata(String key)
The metadata key/value pairs to assign to the VM.ComputeEngineTargetDetails.Builder
removeNetworkInterfaces(int index)
List of NICs connected to this VM.ComputeEngineTargetDetails.Builder
setAdditionalLicenses(int index, String value)
Additional licenses to assign to the VM.ComputeEngineTargetDetails.Builder
setAppliedLicense(AppliedLicense value)
The OS license returned from the adaptation module report.ComputeEngineTargetDetails.Builder
setAppliedLicense(AppliedLicense.Builder builderForValue)
The OS license returned from the adaptation module report.ComputeEngineTargetDetails.Builder
setBootOption(ComputeEngineBootOption value)
The VM Boot Option, as set in the source vm.ComputeEngineTargetDetails.Builder
setBootOptionValue(int value)
The VM Boot Option, as set in the source vm.ComputeEngineTargetDetails.Builder
setComputeScheduling(ComputeScheduling value)
Compute instance scheduling information (if empty default is used).ComputeEngineTargetDetails.Builder
setComputeScheduling(ComputeScheduling.Builder builderForValue)
Compute instance scheduling information (if empty default is used).ComputeEngineTargetDetails.Builder
setDiskType(ComputeEngineDiskType value)
The disk type to use in the VM.ComputeEngineTargetDetails.Builder
setDiskTypeValue(int value)
The disk type to use in the VM.ComputeEngineTargetDetails.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ComputeEngineTargetDetails.Builder
setHostname(String value)
The hostname to assign to the VM.ComputeEngineTargetDetails.Builder
setHostnameBytes(com.google.protobuf.ByteString value)
The hostname to assign to the VM.ComputeEngineTargetDetails.Builder
setLicenseType(ComputeEngineLicenseType value)
The license type to use in OS adaptation.ComputeEngineTargetDetails.Builder
setLicenseTypeValue(int value)
The license type to use in OS adaptation.ComputeEngineTargetDetails.Builder
setMachineType(String value)
The machine type to create the VM with.ComputeEngineTargetDetails.Builder
setMachineTypeBytes(com.google.protobuf.ByteString value)
The machine type to create the VM with.ComputeEngineTargetDetails.Builder
setMachineTypeSeries(String value)
The machine type series to create the VM with.ComputeEngineTargetDetails.Builder
setMachineTypeSeriesBytes(com.google.protobuf.ByteString value)
The machine type series to create the VM with.ComputeEngineTargetDetails.Builder
setNetworkInterfaces(int index, NetworkInterface value)
List of NICs connected to this VM.ComputeEngineTargetDetails.Builder
setNetworkInterfaces(int index, NetworkInterface.Builder builderForValue)
List of NICs connected to this VM.ComputeEngineTargetDetails.Builder
setNetworkTags(int index, String value)
A map of network tags to associate with the VM.ComputeEngineTargetDetails.Builder
setProject(String value)
The Google Cloud target project ID or project name.ComputeEngineTargetDetails.Builder
setProjectBytes(com.google.protobuf.ByteString value)
The Google Cloud target project ID or project name.ComputeEngineTargetDetails.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
ComputeEngineTargetDetails.Builder
setSecureBoot(boolean value)
Defines whether the instance has Secure Boot enabled.ComputeEngineTargetDetails.Builder
setServiceAccount(String value)
The service account to associate the VM with.ComputeEngineTargetDetails.Builder
setServiceAccountBytes(com.google.protobuf.ByteString value)
The service account to associate the VM with.ComputeEngineTargetDetails.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ComputeEngineTargetDetails.Builder
setVmName(String value)
The name of the VM to create.ComputeEngineTargetDetails.Builder
setVmNameBytes(com.google.protobuf.ByteString value)
The name of the VM to create.ComputeEngineTargetDetails.Builder
setZone(String value)
The zone in which to create the VM.ComputeEngineTargetDetails.Builder
setZoneBytes(com.google.protobuf.ByteString value)
The zone in which to create the VM.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeEngineTargetDetails.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeEngineTargetDetails.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeEngineTargetDetails.Builder>
-
clear
public ComputeEngineTargetDetails.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeEngineTargetDetails.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeEngineTargetDetails.Builder>
-
getDefaultInstanceForType
public ComputeEngineTargetDetails getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ComputeEngineTargetDetails build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ComputeEngineTargetDetails buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ComputeEngineTargetDetails.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeEngineTargetDetails.Builder>
-
setField
public ComputeEngineTargetDetails.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeEngineTargetDetails.Builder>
-
clearField
public ComputeEngineTargetDetails.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeEngineTargetDetails.Builder>
-
clearOneof
public ComputeEngineTargetDetails.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeEngineTargetDetails.Builder>
-
setRepeatedField
public ComputeEngineTargetDetails.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeEngineTargetDetails.Builder>
-
addRepeatedField
public ComputeEngineTargetDetails.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeEngineTargetDetails.Builder>
-
mergeFrom
public ComputeEngineTargetDetails.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ComputeEngineTargetDetails.Builder>
-
mergeFrom
public ComputeEngineTargetDetails.Builder mergeFrom(ComputeEngineTargetDetails other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeEngineTargetDetails.Builder>
-
mergeFrom
public ComputeEngineTargetDetails.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ComputeEngineTargetDetails.Builder>
- Throws:
IOException
-
getVmName
public String getVmName()
The name of the VM to create.
string vm_name = 1;
- Specified by:
getVmName
in interfaceComputeEngineTargetDetailsOrBuilder
- Returns:
- The vmName.
-
getVmNameBytes
public com.google.protobuf.ByteString getVmNameBytes()
The name of the VM to create.
string vm_name = 1;
- Specified by:
getVmNameBytes
in interfaceComputeEngineTargetDetailsOrBuilder
- Returns:
- The bytes for vmName.
-
setVmName
public ComputeEngineTargetDetails.Builder setVmName(String value)
The name of the VM to create.
string vm_name = 1;
- Parameters:
value
- The vmName to set.- Returns:
- This builder for chaining.
-
clearVmName
public ComputeEngineTargetDetails.Builder clearVmName()
The name of the VM to create.
string vm_name = 1;
- Returns:
- This builder for chaining.
-
setVmNameBytes
public ComputeEngineTargetDetails.Builder setVmNameBytes(com.google.protobuf.ByteString value)
The name of the VM to create.
string vm_name = 1;
- Parameters:
value
- The bytes for vmName to set.- Returns:
- This builder for chaining.
-
getProject
public String getProject()
The Google Cloud target project ID or project name.
string project = 2;
- Specified by:
getProject
in interfaceComputeEngineTargetDetailsOrBuilder
- Returns:
- The project.
-
getProjectBytes
public com.google.protobuf.ByteString getProjectBytes()
The Google Cloud target project ID or project name.
string project = 2;
- Specified by:
getProjectBytes
in interfaceComputeEngineTargetDetailsOrBuilder
- Returns:
- The bytes for project.
-
setProject
public ComputeEngineTargetDetails.Builder setProject(String value)
The Google Cloud target project ID or project name.
string project = 2;
- Parameters:
value
- The project to set.- Returns:
- This builder for chaining.
-
clearProject
public ComputeEngineTargetDetails.Builder clearProject()
The Google Cloud target project ID or project name.
string project = 2;
- Returns:
- This builder for chaining.
-
setProjectBytes
public ComputeEngineTargetDetails.Builder setProjectBytes(com.google.protobuf.ByteString value)
The Google Cloud target project ID or project name.
string project = 2;
- Parameters:
value
- The bytes for project to set.- Returns:
- This builder for chaining.
-
getZone
public String getZone()
The zone in which to create the VM.
string zone = 3;
- Specified by:
getZone
in interfaceComputeEngineTargetDetailsOrBuilder
- Returns:
- The zone.
-
getZoneBytes
public com.google.protobuf.ByteString getZoneBytes()
The zone in which to create the VM.
string zone = 3;
- Specified by:
getZoneBytes
in interfaceComputeEngineTargetDetailsOrBuilder
- Returns:
- The bytes for zone.
-
setZone
public ComputeEngineTargetDetails.Builder setZone(String value)
The zone in which to create the VM.
string zone = 3;
- Parameters:
value
- The zone to set.- Returns:
- This builder for chaining.
-
clearZone
public ComputeEngineTargetDetails.Builder clearZone()
The zone in which to create the VM.
string zone = 3;
- Returns:
- This builder for chaining.
-
setZoneBytes
public ComputeEngineTargetDetails.Builder setZoneBytes(com.google.protobuf.ByteString value)
The zone in which to create the VM.
string zone = 3;
- Parameters:
value
- The bytes for zone to set.- Returns:
- This builder for chaining.
-
getMachineTypeSeries
public String getMachineTypeSeries()
The machine type series to create the VM with.
string machine_type_series = 4;
- Specified by:
getMachineTypeSeries
in interfaceComputeEngineTargetDetailsOrBuilder
- Returns:
- The machineTypeSeries.
-
getMachineTypeSeriesBytes
public com.google.protobuf.ByteString getMachineTypeSeriesBytes()
The machine type series to create the VM with.
string machine_type_series = 4;
- Specified by:
getMachineTypeSeriesBytes
in interfaceComputeEngineTargetDetailsOrBuilder
- Returns:
- The bytes for machineTypeSeries.
-
setMachineTypeSeries
public ComputeEngineTargetDetails.Builder setMachineTypeSeries(String value)
The machine type series to create the VM with.
string machine_type_series = 4;
- Parameters:
value
- The machineTypeSeries to set.- Returns:
- This builder for chaining.
-
clearMachineTypeSeries
public ComputeEngineTargetDetails.Builder clearMachineTypeSeries()
The machine type series to create the VM with.
string machine_type_series = 4;
- Returns:
- This builder for chaining.
-
setMachineTypeSeriesBytes
public ComputeEngineTargetDetails.Builder setMachineTypeSeriesBytes(com.google.protobuf.ByteString value)
The machine type series to create the VM with.
string machine_type_series = 4;
- Parameters:
value
- The bytes for machineTypeSeries to set.- Returns:
- This builder for chaining.
-
getMachineType
public String getMachineType()
The machine type to create the VM with.
string machine_type = 5;
- Specified by:
getMachineType
in interfaceComputeEngineTargetDetailsOrBuilder
- Returns:
- The machineType.
-
getMachineTypeBytes
public com.google.protobuf.ByteString getMachineTypeBytes()
The machine type to create the VM with.
string machine_type = 5;
- Specified by:
getMachineTypeBytes
in interfaceComputeEngineTargetDetailsOrBuilder
- Returns:
- The bytes for machineType.
-
setMachineType
public ComputeEngineTargetDetails.Builder setMachineType(String value)
The machine type to create the VM with.
string machine_type = 5;
- Parameters:
value
- The machineType to set.- Returns:
- This builder for chaining.
-
clearMachineType
public ComputeEngineTargetDetails.Builder clearMachineType()
The machine type to create the VM with.
string machine_type = 5;
- Returns:
- This builder for chaining.
-
setMachineTypeBytes
public ComputeEngineTargetDetails.Builder setMachineTypeBytes(com.google.protobuf.ByteString value)
The machine type to create the VM with.
string machine_type = 5;
- Parameters:
value
- The bytes for machineType to set.- Returns:
- This builder for chaining.
-
getNetworkTagsList
public com.google.protobuf.ProtocolStringList getNetworkTagsList()
A map of network tags to associate with the VM.
repeated string network_tags = 6;
- Specified by:
getNetworkTagsList
in interfaceComputeEngineTargetDetailsOrBuilder
- Returns:
- A list containing the networkTags.
-
getNetworkTagsCount
public int getNetworkTagsCount()
A map of network tags to associate with the VM.
repeated string network_tags = 6;
- Specified by:
getNetworkTagsCount
in interfaceComputeEngineTargetDetailsOrBuilder
- Returns:
- The count of networkTags.
-
getNetworkTags
public String getNetworkTags(int index)
A map of network tags to associate with the VM.
repeated string network_tags = 6;
- Specified by:
getNetworkTags
in interfaceComputeEngineTargetDetailsOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The networkTags at the given index.
-
getNetworkTagsBytes
public com.google.protobuf.ByteString getNetworkTagsBytes(int index)
A map of network tags to associate with the VM.
repeated string network_tags = 6;
- Specified by:
getNetworkTagsBytes
in interfaceComputeEngineTargetDetailsOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the networkTags at the given index.
-
setNetworkTags
public ComputeEngineTargetDetails.Builder setNetworkTags(int index, String value)
A map of network tags to associate with the VM.
repeated string network_tags = 6;
- Parameters:
index
- The index to set the value at.value
- The networkTags to set.- Returns:
- This builder for chaining.
-
addNetworkTags
public ComputeEngineTargetDetails.Builder addNetworkTags(String value)
A map of network tags to associate with the VM.
repeated string network_tags = 6;
- Parameters:
value
- The networkTags to add.- Returns:
- This builder for chaining.
-
addAllNetworkTags
public ComputeEngineTargetDetails.Builder addAllNetworkTags(Iterable<String> values)
A map of network tags to associate with the VM.
repeated string network_tags = 6;
- Parameters:
values
- The networkTags to add.- Returns:
- This builder for chaining.
-
clearNetworkTags
public ComputeEngineTargetDetails.Builder clearNetworkTags()
A map of network tags to associate with the VM.
repeated string network_tags = 6;
- Returns:
- This builder for chaining.
-
addNetworkTagsBytes
public ComputeEngineTargetDetails.Builder addNetworkTagsBytes(com.google.protobuf.ByteString value)
A map of network tags to associate with the VM.
repeated string network_tags = 6;
- Parameters:
value
- The bytes of the networkTags to add.- Returns:
- This builder for chaining.
-
getNetworkInterfacesList
public List<NetworkInterface> getNetworkInterfacesList()
List of NICs connected to this VM.
repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 7;
- Specified by:
getNetworkInterfacesList
in interfaceComputeEngineTargetDetailsOrBuilder
-
getNetworkInterfacesCount
public int getNetworkInterfacesCount()
List of NICs connected to this VM.
repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 7;
- Specified by:
getNetworkInterfacesCount
in interfaceComputeEngineTargetDetailsOrBuilder
-
getNetworkInterfaces
public NetworkInterface getNetworkInterfaces(int index)
List of NICs connected to this VM.
repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 7;
- Specified by:
getNetworkInterfaces
in interfaceComputeEngineTargetDetailsOrBuilder
-
setNetworkInterfaces
public ComputeEngineTargetDetails.Builder setNetworkInterfaces(int index, NetworkInterface value)
List of NICs connected to this VM.
repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 7;
-
setNetworkInterfaces
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;
-
addNetworkInterfaces
public ComputeEngineTargetDetails.Builder addNetworkInterfaces(NetworkInterface value)
List of NICs connected to this VM.
repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 7;
-
addNetworkInterfaces
public ComputeEngineTargetDetails.Builder addNetworkInterfaces(int index, NetworkInterface value)
List of NICs connected to this VM.
repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 7;
-
addNetworkInterfaces
public ComputeEngineTargetDetails.Builder addNetworkInterfaces(NetworkInterface.Builder builderForValue)
List of NICs connected to this VM.
repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 7;
-
addNetworkInterfaces
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;
-
addAllNetworkInterfaces
public ComputeEngineTargetDetails.Builder addAllNetworkInterfaces(Iterable<? extends NetworkInterface> values)
List of NICs connected to this VM.
repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 7;
-
clearNetworkInterfaces
public ComputeEngineTargetDetails.Builder clearNetworkInterfaces()
List of NICs connected to this VM.
repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 7;
-
removeNetworkInterfaces
public ComputeEngineTargetDetails.Builder removeNetworkInterfaces(int index)
List of NICs connected to this VM.
repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 7;
-
getNetworkInterfacesBuilder
public NetworkInterface.Builder getNetworkInterfacesBuilder(int index)
List of NICs connected to this VM.
repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 7;
-
getNetworkInterfacesOrBuilder
public NetworkInterfaceOrBuilder getNetworkInterfacesOrBuilder(int index)
List of NICs connected to this VM.
repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 7;
- Specified by:
getNetworkInterfacesOrBuilder
in interfaceComputeEngineTargetDetailsOrBuilder
-
getNetworkInterfacesOrBuilderList
public List<? extends NetworkInterfaceOrBuilder> getNetworkInterfacesOrBuilderList()
List of NICs connected to this VM.
repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 7;
- Specified by:
getNetworkInterfacesOrBuilderList
in interfaceComputeEngineTargetDetailsOrBuilder
-
addNetworkInterfacesBuilder
public NetworkInterface.Builder addNetworkInterfacesBuilder()
List of NICs connected to this VM.
repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 7;
-
addNetworkInterfacesBuilder
public NetworkInterface.Builder addNetworkInterfacesBuilder(int index)
List of NICs connected to this VM.
repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 7;
-
getNetworkInterfacesBuilderList
public List<NetworkInterface.Builder> getNetworkInterfacesBuilderList()
List of NICs connected to this VM.
repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 7;
-
getServiceAccount
public String getServiceAccount()
The service account to associate the VM with.
string service_account = 8;
- Specified by:
getServiceAccount
in interfaceComputeEngineTargetDetailsOrBuilder
- Returns:
- The serviceAccount.
-
getServiceAccountBytes
public com.google.protobuf.ByteString getServiceAccountBytes()
The service account to associate the VM with.
string service_account = 8;
- Specified by:
getServiceAccountBytes
in interfaceComputeEngineTargetDetailsOrBuilder
- Returns:
- The bytes for serviceAccount.
-
setServiceAccount
public ComputeEngineTargetDetails.Builder setServiceAccount(String value)
The service account to associate the VM with.
string service_account = 8;
- Parameters:
value
- The serviceAccount to set.- Returns:
- This builder for chaining.
-
clearServiceAccount
public ComputeEngineTargetDetails.Builder clearServiceAccount()
The service account to associate the VM with.
string service_account = 8;
- Returns:
- This builder for chaining.
-
setServiceAccountBytes
public ComputeEngineTargetDetails.Builder setServiceAccountBytes(com.google.protobuf.ByteString value)
The service account to associate the VM with.
string service_account = 8;
- Parameters:
value
- The bytes for serviceAccount to set.- Returns:
- This builder for chaining.
-
getDiskTypeValue
public int getDiskTypeValue()
The disk type to use in the VM.
.google.cloud.vmmigration.v1.ComputeEngineDiskType disk_type = 9;
- Specified by:
getDiskTypeValue
in interfaceComputeEngineTargetDetailsOrBuilder
- Returns:
- The enum numeric value on the wire for diskType.
-
setDiskTypeValue
public ComputeEngineTargetDetails.Builder setDiskTypeValue(int value)
The disk type to use in the VM.
.google.cloud.vmmigration.v1.ComputeEngineDiskType disk_type = 9;
- Parameters:
value
- The enum numeric value on the wire for diskType to set.- Returns:
- This builder for chaining.
-
getDiskType
public ComputeEngineDiskType getDiskType()
The disk type to use in the VM.
.google.cloud.vmmigration.v1.ComputeEngineDiskType disk_type = 9;
- Specified by:
getDiskType
in interfaceComputeEngineTargetDetailsOrBuilder
- Returns:
- The diskType.
-
setDiskType
public ComputeEngineTargetDetails.Builder setDiskType(ComputeEngineDiskType value)
The disk type to use in the VM.
.google.cloud.vmmigration.v1.ComputeEngineDiskType disk_type = 9;
- Parameters:
value
- The diskType to set.- Returns:
- This builder for chaining.
-
clearDiskType
public ComputeEngineTargetDetails.Builder clearDiskType()
The disk type to use in the VM.
.google.cloud.vmmigration.v1.ComputeEngineDiskType disk_type = 9;
- Returns:
- This builder for chaining.
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:ComputeEngineTargetDetailsOrBuilder
A map of labels to associate with the VM.
map<string, string> labels = 10;
- Specified by:
getLabelsCount
in interfaceComputeEngineTargetDetailsOrBuilder
-
containsLabels
public boolean containsLabels(String key)
A map of labels to associate with the VM.
map<string, string> labels = 10;
- Specified by:
containsLabels
in interfaceComputeEngineTargetDetailsOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in interfaceComputeEngineTargetDetailsOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
A map of labels to associate with the VM.
map<string, string> labels = 10;
- Specified by:
getLabelsMap
in interfaceComputeEngineTargetDetailsOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
A map of labels to associate with the VM.
map<string, string> labels = 10;
- Specified by:
getLabelsOrDefault
in interfaceComputeEngineTargetDetailsOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
A map of labels to associate with the VM.
map<string, string> labels = 10;
- Specified by:
getLabelsOrThrow
in interfaceComputeEngineTargetDetailsOrBuilder
-
clearLabels
public ComputeEngineTargetDetails.Builder clearLabels()
-
removeLabels
public ComputeEngineTargetDetails.Builder removeLabels(String key)
A map of labels to associate with the VM.
map<string, string> labels = 10;
-
getMutableLabels
@Deprecated public Map<String,String> getMutableLabels()
Deprecated.Use alternate mutation accessors instead.
-
putLabels
public ComputeEngineTargetDetails.Builder putLabels(String key, String value)
A map of labels to associate with the VM.
map<string, string> labels = 10;
-
putAllLabels
public ComputeEngineTargetDetails.Builder putAllLabels(Map<String,String> values)
A map of labels to associate with the VM.
map<string, string> labels = 10;
-
getLicenseTypeValue
public int getLicenseTypeValue()
The license type to use in OS adaptation.
.google.cloud.vmmigration.v1.ComputeEngineLicenseType license_type = 11;
- Specified by:
getLicenseTypeValue
in interfaceComputeEngineTargetDetailsOrBuilder
- Returns:
- The enum numeric value on the wire for licenseType.
-
setLicenseTypeValue
public ComputeEngineTargetDetails.Builder setLicenseTypeValue(int value)
The license type to use in OS adaptation.
.google.cloud.vmmigration.v1.ComputeEngineLicenseType license_type = 11;
- Parameters:
value
- The enum numeric value on the wire for licenseType to set.- Returns:
- This builder for chaining.
-
getLicenseType
public ComputeEngineLicenseType getLicenseType()
The license type to use in OS adaptation.
.google.cloud.vmmigration.v1.ComputeEngineLicenseType license_type = 11;
- Specified by:
getLicenseType
in interfaceComputeEngineTargetDetailsOrBuilder
- Returns:
- The licenseType.
-
setLicenseType
public ComputeEngineTargetDetails.Builder setLicenseType(ComputeEngineLicenseType value)
The license type to use in OS adaptation.
.google.cloud.vmmigration.v1.ComputeEngineLicenseType license_type = 11;
- Parameters:
value
- The licenseType to set.- Returns:
- This builder for chaining.
-
clearLicenseType
public ComputeEngineTargetDetails.Builder clearLicenseType()
The license type to use in OS adaptation.
.google.cloud.vmmigration.v1.ComputeEngineLicenseType license_type = 11;
- Returns:
- This builder for chaining.
-
hasAppliedLicense
public boolean hasAppliedLicense()
The OS license returned from the adaptation module report.
.google.cloud.vmmigration.v1.AppliedLicense applied_license = 12;
- Specified by:
hasAppliedLicense
in interfaceComputeEngineTargetDetailsOrBuilder
- Returns:
- Whether the appliedLicense field is set.
-
getAppliedLicense
public AppliedLicense getAppliedLicense()
The OS license returned from the adaptation module report.
.google.cloud.vmmigration.v1.AppliedLicense applied_license = 12;
- Specified by:
getAppliedLicense
in interfaceComputeEngineTargetDetailsOrBuilder
- Returns:
- The appliedLicense.
-
setAppliedLicense
public ComputeEngineTargetDetails.Builder setAppliedLicense(AppliedLicense value)
The OS license returned from the adaptation module report.
.google.cloud.vmmigration.v1.AppliedLicense applied_license = 12;
-
setAppliedLicense
public ComputeEngineTargetDetails.Builder setAppliedLicense(AppliedLicense.Builder builderForValue)
The OS license returned from the adaptation module report.
.google.cloud.vmmigration.v1.AppliedLicense applied_license = 12;
-
mergeAppliedLicense
public ComputeEngineTargetDetails.Builder mergeAppliedLicense(AppliedLicense value)
The OS license returned from the adaptation module report.
.google.cloud.vmmigration.v1.AppliedLicense applied_license = 12;
-
clearAppliedLicense
public ComputeEngineTargetDetails.Builder clearAppliedLicense()
The OS license returned from the adaptation module report.
.google.cloud.vmmigration.v1.AppliedLicense applied_license = 12;
-
getAppliedLicenseBuilder
public AppliedLicense.Builder getAppliedLicenseBuilder()
The OS license returned from the adaptation module report.
.google.cloud.vmmigration.v1.AppliedLicense applied_license = 12;
-
getAppliedLicenseOrBuilder
public AppliedLicenseOrBuilder getAppliedLicenseOrBuilder()
The OS license returned from the adaptation module report.
.google.cloud.vmmigration.v1.AppliedLicense applied_license = 12;
- Specified by:
getAppliedLicenseOrBuilder
in interfaceComputeEngineTargetDetailsOrBuilder
-
hasComputeScheduling
public boolean hasComputeScheduling()
Compute instance scheduling information (if empty default is used).
.google.cloud.vmmigration.v1.ComputeScheduling compute_scheduling = 13;
- Specified by:
hasComputeScheduling
in interfaceComputeEngineTargetDetailsOrBuilder
- Returns:
- Whether the computeScheduling field is set.
-
getComputeScheduling
public ComputeScheduling getComputeScheduling()
Compute instance scheduling information (if empty default is used).
.google.cloud.vmmigration.v1.ComputeScheduling compute_scheduling = 13;
- Specified by:
getComputeScheduling
in interfaceComputeEngineTargetDetailsOrBuilder
- Returns:
- The computeScheduling.
-
setComputeScheduling
public ComputeEngineTargetDetails.Builder setComputeScheduling(ComputeScheduling value)
Compute instance scheduling information (if empty default is used).
.google.cloud.vmmigration.v1.ComputeScheduling compute_scheduling = 13;
-
setComputeScheduling
public ComputeEngineTargetDetails.Builder setComputeScheduling(ComputeScheduling.Builder builderForValue)
Compute instance scheduling information (if empty default is used).
.google.cloud.vmmigration.v1.ComputeScheduling compute_scheduling = 13;
-
mergeComputeScheduling
public ComputeEngineTargetDetails.Builder mergeComputeScheduling(ComputeScheduling value)
Compute instance scheduling information (if empty default is used).
.google.cloud.vmmigration.v1.ComputeScheduling compute_scheduling = 13;
-
clearComputeScheduling
public ComputeEngineTargetDetails.Builder clearComputeScheduling()
Compute instance scheduling information (if empty default is used).
.google.cloud.vmmigration.v1.ComputeScheduling compute_scheduling = 13;
-
getComputeSchedulingBuilder
public ComputeScheduling.Builder getComputeSchedulingBuilder()
Compute instance scheduling information (if empty default is used).
.google.cloud.vmmigration.v1.ComputeScheduling compute_scheduling = 13;
-
getComputeSchedulingOrBuilder
public ComputeSchedulingOrBuilder getComputeSchedulingOrBuilder()
Compute instance scheduling information (if empty default is used).
.google.cloud.vmmigration.v1.ComputeScheduling compute_scheduling = 13;
- Specified by:
getComputeSchedulingOrBuilder
in interfaceComputeEngineTargetDetailsOrBuilder
-
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;
- Specified by:
getSecureBoot
in interfaceComputeEngineTargetDetailsOrBuilder
- Returns:
- The secureBoot.
-
setSecureBoot
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;
- Parameters:
value
- The secureBoot to set.- Returns:
- 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:
- This builder for chaining.
-
getBootOptionValue
public int getBootOptionValue()
The VM Boot Option, as set in the source vm.
.google.cloud.vmmigration.v1.ComputeEngineBootOption boot_option = 15;
- Specified by:
getBootOptionValue
in interfaceComputeEngineTargetDetailsOrBuilder
- Returns:
- The enum numeric value on the wire for bootOption.
-
setBootOptionValue
public ComputeEngineTargetDetails.Builder setBootOptionValue(int value)
The VM Boot Option, as set in the source vm.
.google.cloud.vmmigration.v1.ComputeEngineBootOption boot_option = 15;
- Parameters:
value
- The enum numeric value on the wire for bootOption to set.- Returns:
- This builder for chaining.
-
getBootOption
public ComputeEngineBootOption getBootOption()
The VM Boot Option, as set in the source vm.
.google.cloud.vmmigration.v1.ComputeEngineBootOption boot_option = 15;
- Specified by:
getBootOption
in interfaceComputeEngineTargetDetailsOrBuilder
- Returns:
- The bootOption.
-
setBootOption
public ComputeEngineTargetDetails.Builder setBootOption(ComputeEngineBootOption value)
The VM Boot Option, as set in the source vm.
.google.cloud.vmmigration.v1.ComputeEngineBootOption boot_option = 15;
- Parameters:
value
- The bootOption to set.- Returns:
- This builder for chaining.
-
clearBootOption
public ComputeEngineTargetDetails.Builder clearBootOption()
The VM Boot Option, as set in the source vm.
.google.cloud.vmmigration.v1.ComputeEngineBootOption boot_option = 15;
- Returns:
- This builder for chaining.
-
getMetadataCount
public int getMetadataCount()
Description copied from interface:ComputeEngineTargetDetailsOrBuilder
The metadata key/value pairs to assign to the VM.
map<string, string> metadata = 16;
- Specified by:
getMetadataCount
in interfaceComputeEngineTargetDetailsOrBuilder
-
containsMetadata
public boolean containsMetadata(String key)
The metadata key/value pairs to assign to the VM.
map<string, string> metadata = 16;
- Specified by:
containsMetadata
in interfaceComputeEngineTargetDetailsOrBuilder
-
getMetadata
@Deprecated public Map<String,String> getMetadata()
Deprecated.UsegetMetadataMap()
instead.- Specified by:
getMetadata
in interfaceComputeEngineTargetDetailsOrBuilder
-
getMetadataMap
public Map<String,String> getMetadataMap()
The metadata key/value pairs to assign to the VM.
map<string, string> metadata = 16;
- Specified by:
getMetadataMap
in interfaceComputeEngineTargetDetailsOrBuilder
-
getMetadataOrDefault
public String getMetadataOrDefault(String key, String defaultValue)
The metadata key/value pairs to assign to the VM.
map<string, string> metadata = 16;
- Specified by:
getMetadataOrDefault
in interfaceComputeEngineTargetDetailsOrBuilder
-
getMetadataOrThrow
public String getMetadataOrThrow(String key)
The metadata key/value pairs to assign to the VM.
map<string, string> metadata = 16;
- Specified by:
getMetadataOrThrow
in interfaceComputeEngineTargetDetailsOrBuilder
-
clearMetadata
public ComputeEngineTargetDetails.Builder clearMetadata()
-
removeMetadata
public ComputeEngineTargetDetails.Builder removeMetadata(String key)
The metadata key/value pairs to assign to the VM.
map<string, string> metadata = 16;
-
getMutableMetadata
@Deprecated public Map<String,String> getMutableMetadata()
Deprecated.Use alternate mutation accessors instead.
-
putMetadata
public ComputeEngineTargetDetails.Builder putMetadata(String key, String value)
The metadata key/value pairs to assign to the VM.
map<string, string> metadata = 16;
-
putAllMetadata
public ComputeEngineTargetDetails.Builder putAllMetadata(Map<String,String> values)
The metadata key/value pairs to assign to the VM.
map<string, string> metadata = 16;
-
getAdditionalLicensesList
public com.google.protobuf.ProtocolStringList getAdditionalLicensesList()
Additional licenses to assign to the VM.
repeated string additional_licenses = 17;
- Specified by:
getAdditionalLicensesList
in interfaceComputeEngineTargetDetailsOrBuilder
- Returns:
- A list containing the additionalLicenses.
-
getAdditionalLicensesCount
public int getAdditionalLicensesCount()
Additional licenses to assign to the VM.
repeated string additional_licenses = 17;
- Specified by:
getAdditionalLicensesCount
in interfaceComputeEngineTargetDetailsOrBuilder
- Returns:
- The count of additionalLicenses.
-
getAdditionalLicenses
public String getAdditionalLicenses(int index)
Additional licenses to assign to the VM.
repeated string additional_licenses = 17;
- Specified by:
getAdditionalLicenses
in interfaceComputeEngineTargetDetailsOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The additionalLicenses at the given index.
-
getAdditionalLicensesBytes
public com.google.protobuf.ByteString getAdditionalLicensesBytes(int index)
Additional licenses to assign to the VM.
repeated string additional_licenses = 17;
- Specified by:
getAdditionalLicensesBytes
in interfaceComputeEngineTargetDetailsOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the additionalLicenses at the given index.
-
setAdditionalLicenses
public ComputeEngineTargetDetails.Builder setAdditionalLicenses(int index, String value)
Additional licenses to assign to the VM.
repeated string additional_licenses = 17;
- Parameters:
index
- The index to set the value at.value
- The additionalLicenses to set.- Returns:
- This builder for chaining.
-
addAdditionalLicenses
public ComputeEngineTargetDetails.Builder addAdditionalLicenses(String value)
Additional licenses to assign to the VM.
repeated string additional_licenses = 17;
- Parameters:
value
- The additionalLicenses to add.- Returns:
- This builder for chaining.
-
addAllAdditionalLicenses
public ComputeEngineTargetDetails.Builder addAllAdditionalLicenses(Iterable<String> values)
Additional licenses to assign to the VM.
repeated string additional_licenses = 17;
- Parameters:
values
- The additionalLicenses to add.- Returns:
- This builder for chaining.
-
clearAdditionalLicenses
public ComputeEngineTargetDetails.Builder clearAdditionalLicenses()
Additional licenses to assign to the VM.
repeated string additional_licenses = 17;
- Returns:
- This builder for chaining.
-
addAdditionalLicensesBytes
public ComputeEngineTargetDetails.Builder addAdditionalLicensesBytes(com.google.protobuf.ByteString value)
Additional licenses to assign to the VM.
repeated string additional_licenses = 17;
- Parameters:
value
- The bytes of the additionalLicenses to add.- Returns:
- This builder for chaining.
-
getHostname
public String getHostname()
The hostname to assign to the VM.
string hostname = 18;
- Specified by:
getHostname
in interfaceComputeEngineTargetDetailsOrBuilder
- Returns:
- The hostname.
-
getHostnameBytes
public com.google.protobuf.ByteString getHostnameBytes()
The hostname to assign to the VM.
string hostname = 18;
- Specified by:
getHostnameBytes
in interfaceComputeEngineTargetDetailsOrBuilder
- Returns:
- The bytes for hostname.
-
setHostname
public ComputeEngineTargetDetails.Builder setHostname(String value)
The hostname to assign to the VM.
string hostname = 18;
- Parameters:
value
- The hostname to set.- Returns:
- This builder for chaining.
-
clearHostname
public ComputeEngineTargetDetails.Builder clearHostname()
The hostname to assign to the VM.
string hostname = 18;
- Returns:
- This builder for chaining.
-
setHostnameBytes
public ComputeEngineTargetDetails.Builder setHostnameBytes(com.google.protobuf.ByteString value)
The hostname to assign to the VM.
string hostname = 18;
- Parameters:
value
- The bytes for hostname to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ComputeEngineTargetDetails.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeEngineTargetDetails.Builder>
-
mergeUnknownFields
public final ComputeEngineTargetDetails.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeEngineTargetDetails.Builder>
-
-