Package com.google.cloud.vmmigration.v1
Class ComputeEngineTargetDefaults.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<ComputeEngineTargetDefaults.Builder>
-
- com.google.cloud.vmmigration.v1.ComputeEngineTargetDefaults.Builder
-
- All Implemented Interfaces:
ComputeEngineTargetDefaultsOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ComputeEngineTargetDefaults
public static final class ComputeEngineTargetDefaults.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ComputeEngineTargetDefaults.Builder> implements ComputeEngineTargetDefaultsOrBuilder
ComputeEngineTargetDefaults is a collection of details for creating a VM in a target Compute Engine project.
Protobuf typegoogle.cloud.vmmigration.v1.ComputeEngineTargetDefaults
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ComputeEngineTargetDefaults.BuilderaddAdditionalLicenses(String value)Additional licenses to assign to the VM.ComputeEngineTargetDefaults.BuilderaddAdditionalLicensesBytes(com.google.protobuf.ByteString value)Additional licenses to assign to the VM.ComputeEngineTargetDefaults.BuilderaddAllAdditionalLicenses(Iterable<String> values)Additional licenses to assign to the VM.ComputeEngineTargetDefaults.BuilderaddAllNetworkInterfaces(Iterable<? extends NetworkInterface> values)List of NICs connected to this VM.ComputeEngineTargetDefaults.BuilderaddAllNetworkTags(Iterable<String> values)A map of network tags to associate with the VM.ComputeEngineTargetDefaults.BuilderaddNetworkInterfaces(int index, NetworkInterface value)List of NICs connected to this VM.ComputeEngineTargetDefaults.BuilderaddNetworkInterfaces(int index, NetworkInterface.Builder builderForValue)List of NICs connected to this VM.ComputeEngineTargetDefaults.BuilderaddNetworkInterfaces(NetworkInterface value)List of NICs connected to this VM.ComputeEngineTargetDefaults.BuilderaddNetworkInterfaces(NetworkInterface.Builder builderForValue)List of NICs connected to this VM.NetworkInterface.BuilderaddNetworkInterfacesBuilder()List of NICs connected to this VM.NetworkInterface.BuilderaddNetworkInterfacesBuilder(int index)List of NICs connected to this VM.ComputeEngineTargetDefaults.BuilderaddNetworkTags(String value)A map of network tags to associate with the VM.ComputeEngineTargetDefaults.BuilderaddNetworkTagsBytes(com.google.protobuf.ByteString value)A map of network tags to associate with the VM.ComputeEngineTargetDefaults.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ComputeEngineTargetDefaultsbuild()ComputeEngineTargetDefaultsbuildPartial()ComputeEngineTargetDefaults.Builderclear()ComputeEngineTargetDefaults.BuilderclearAdditionalLicenses()Additional licenses to assign to the VM.ComputeEngineTargetDefaults.BuilderclearAppliedLicense()Output only.ComputeEngineTargetDefaults.BuilderclearBootOption()Output only.ComputeEngineTargetDefaults.BuilderclearComputeScheduling()Compute instance scheduling information (if empty default is used).ComputeEngineTargetDefaults.BuilderclearDiskType()The disk type to use in the VM.ComputeEngineTargetDefaults.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)ComputeEngineTargetDefaults.BuilderclearHostname()The hostname to assign to the VM.ComputeEngineTargetDefaults.BuilderclearLabels()ComputeEngineTargetDefaults.BuilderclearLicenseType()The license type to use in OS adaptation.ComputeEngineTargetDefaults.BuilderclearMachineType()The machine type to create the VM with.ComputeEngineTargetDefaults.BuilderclearMachineTypeSeries()The machine type series to create the VM with.ComputeEngineTargetDefaults.BuilderclearMetadata()ComputeEngineTargetDefaults.BuilderclearNetworkInterfaces()List of NICs connected to this VM.ComputeEngineTargetDefaults.BuilderclearNetworkTags()A map of network tags to associate with the VM.ComputeEngineTargetDefaults.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)ComputeEngineTargetDefaults.BuilderclearSecureBoot()Defines whether the instance has Secure Boot enabled.ComputeEngineTargetDefaults.BuilderclearServiceAccount()The service account to associate the VM with.ComputeEngineTargetDefaults.BuilderclearTargetProject()The full path of the resource of type TargetProject which represents the Compute Engine project in which to create this VM.ComputeEngineTargetDefaults.BuilderclearVmName()The name of the VM to create.ComputeEngineTargetDefaults.BuilderclearZone()The zone in which to create the VM.ComputeEngineTargetDefaults.Builderclone()booleancontainsLabels(String key)A map of labels to associate with the VM.booleancontainsMetadata(String key)The metadata key/value pairs to assign to the VM.StringgetAdditionalLicenses(int index)Additional licenses to assign to the VM.com.google.protobuf.ByteStringgetAdditionalLicensesBytes(int index)Additional licenses to assign to the VM.intgetAdditionalLicensesCount()Additional licenses to assign to the VM.com.google.protobuf.ProtocolStringListgetAdditionalLicensesList()Additional licenses to assign to the VM.AppliedLicensegetAppliedLicense()Output only.AppliedLicense.BuildergetAppliedLicenseBuilder()Output only.AppliedLicenseOrBuildergetAppliedLicenseOrBuilder()Output only.ComputeEngineBootOptiongetBootOption()Output only.intgetBootOptionValue()Output only.ComputeSchedulinggetComputeScheduling()Compute instance scheduling information (if empty default is used).ComputeScheduling.BuildergetComputeSchedulingBuilder()Compute instance scheduling information (if empty default is used).ComputeSchedulingOrBuildergetComputeSchedulingOrBuilder()Compute instance scheduling information (if empty default is used).ComputeEngineTargetDefaultsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()ComputeEngineDiskTypegetDiskType()The disk type to use in the VM.intgetDiskTypeValue()The disk type to use in the VM.StringgetHostname()The hostname to assign to the VM.com.google.protobuf.ByteStringgetHostnameBytes()The hostname to assign to the VM.Map<String,String>getLabels()Deprecated.intgetLabelsCount()A map of labels to associate with the VM.Map<String,String>getLabelsMap()A map of labels to associate with the VM.StringgetLabelsOrDefault(String key, String defaultValue)A map of labels to associate with the VM.StringgetLabelsOrThrow(String key)A map of labels to associate with the VM.ComputeEngineLicenseTypegetLicenseType()The license type to use in OS adaptation.intgetLicenseTypeValue()The license type to use in OS adaptation.StringgetMachineType()The machine type to create the VM with.com.google.protobuf.ByteStringgetMachineTypeBytes()The machine type to create the VM with.StringgetMachineTypeSeries()The machine type series to create the VM with.com.google.protobuf.ByteStringgetMachineTypeSeriesBytes()The machine type series to create the VM with.Map<String,String>getMetadata()Deprecated.intgetMetadataCount()The metadata key/value pairs to assign to the VM.Map<String,String>getMetadataMap()The metadata key/value pairs to assign to the VM.StringgetMetadataOrDefault(String key, String defaultValue)The metadata key/value pairs to assign to the VM.StringgetMetadataOrThrow(String key)The metadata key/value pairs to assign to the VM.Map<String,String>getMutableLabels()Deprecated.Map<String,String>getMutableMetadata()Deprecated.NetworkInterfacegetNetworkInterfaces(int index)List of NICs connected to this VM.NetworkInterface.BuildergetNetworkInterfacesBuilder(int index)List of NICs connected to this VM.List<NetworkInterface.Builder>getNetworkInterfacesBuilderList()List of NICs connected to this VM.intgetNetworkInterfacesCount()List of NICs connected to this VM.List<NetworkInterface>getNetworkInterfacesList()List of NICs connected to this VM.NetworkInterfaceOrBuildergetNetworkInterfacesOrBuilder(int index)List of NICs connected to this VM.List<? extends NetworkInterfaceOrBuilder>getNetworkInterfacesOrBuilderList()List of NICs connected to this VM.StringgetNetworkTags(int index)A map of network tags to associate with the VM.com.google.protobuf.ByteStringgetNetworkTagsBytes(int index)A map of network tags to associate with the VM.intgetNetworkTagsCount()A map of network tags to associate with the VM.com.google.protobuf.ProtocolStringListgetNetworkTagsList()A map of network tags to associate with the VM.booleangetSecureBoot()Defines whether the instance has Secure Boot enabled.StringgetServiceAccount()The service account to associate the VM with.com.google.protobuf.ByteStringgetServiceAccountBytes()The service account to associate the VM with.StringgetTargetProject()The full path of the resource of type TargetProject which represents the Compute Engine project in which to create this VM.com.google.protobuf.ByteStringgetTargetProjectBytes()The full path of the resource of type TargetProject which represents the Compute Engine project in which to create this VM.StringgetVmName()The name of the VM to create.com.google.protobuf.ByteStringgetVmNameBytes()The name of the VM to create.StringgetZone()The zone in which to create the VM.com.google.protobuf.ByteStringgetZoneBytes()The zone in which to create the VM.booleanhasAppliedLicense()Output only.booleanhasComputeScheduling()Compute instance scheduling information (if empty default is used).protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()ComputeEngineTargetDefaults.BuildermergeAppliedLicense(AppliedLicense value)Output only.ComputeEngineTargetDefaults.BuildermergeComputeScheduling(ComputeScheduling value)Compute instance scheduling information (if empty default is used).ComputeEngineTargetDefaults.BuildermergeFrom(ComputeEngineTargetDefaults other)ComputeEngineTargetDefaults.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)ComputeEngineTargetDefaults.BuildermergeFrom(com.google.protobuf.Message other)ComputeEngineTargetDefaults.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ComputeEngineTargetDefaults.BuilderputAllLabels(Map<String,String> values)A map of labels to associate with the VM.ComputeEngineTargetDefaults.BuilderputAllMetadata(Map<String,String> values)The metadata key/value pairs to assign to the VM.ComputeEngineTargetDefaults.BuilderputLabels(String key, String value)A map of labels to associate with the VM.ComputeEngineTargetDefaults.BuilderputMetadata(String key, String value)The metadata key/value pairs to assign to the VM.ComputeEngineTargetDefaults.BuilderremoveLabels(String key)A map of labels to associate with the VM.ComputeEngineTargetDefaults.BuilderremoveMetadata(String key)The metadata key/value pairs to assign to the VM.ComputeEngineTargetDefaults.BuilderremoveNetworkInterfaces(int index)List of NICs connected to this VM.ComputeEngineTargetDefaults.BuildersetAdditionalLicenses(int index, String value)Additional licenses to assign to the VM.ComputeEngineTargetDefaults.BuildersetAppliedLicense(AppliedLicense value)Output only.ComputeEngineTargetDefaults.BuildersetAppliedLicense(AppliedLicense.Builder builderForValue)Output only.ComputeEngineTargetDefaults.BuildersetBootOption(ComputeEngineBootOption value)Output only.ComputeEngineTargetDefaults.BuildersetBootOptionValue(int value)Output only.ComputeEngineTargetDefaults.BuildersetComputeScheduling(ComputeScheduling value)Compute instance scheduling information (if empty default is used).ComputeEngineTargetDefaults.BuildersetComputeScheduling(ComputeScheduling.Builder builderForValue)Compute instance scheduling information (if empty default is used).ComputeEngineTargetDefaults.BuildersetDiskType(ComputeEngineDiskType value)The disk type to use in the VM.ComputeEngineTargetDefaults.BuildersetDiskTypeValue(int value)The disk type to use in the VM.ComputeEngineTargetDefaults.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)ComputeEngineTargetDefaults.BuildersetHostname(String value)The hostname to assign to the VM.ComputeEngineTargetDefaults.BuildersetHostnameBytes(com.google.protobuf.ByteString value)The hostname to assign to the VM.ComputeEngineTargetDefaults.BuildersetLicenseType(ComputeEngineLicenseType value)The license type to use in OS adaptation.ComputeEngineTargetDefaults.BuildersetLicenseTypeValue(int value)The license type to use in OS adaptation.ComputeEngineTargetDefaults.BuildersetMachineType(String value)The machine type to create the VM with.ComputeEngineTargetDefaults.BuildersetMachineTypeBytes(com.google.protobuf.ByteString value)The machine type to create the VM with.ComputeEngineTargetDefaults.BuildersetMachineTypeSeries(String value)The machine type series to create the VM with.ComputeEngineTargetDefaults.BuildersetMachineTypeSeriesBytes(com.google.protobuf.ByteString value)The machine type series to create the VM with.ComputeEngineTargetDefaults.BuildersetNetworkInterfaces(int index, NetworkInterface value)List of NICs connected to this VM.ComputeEngineTargetDefaults.BuildersetNetworkInterfaces(int index, NetworkInterface.Builder builderForValue)List of NICs connected to this VM.ComputeEngineTargetDefaults.BuildersetNetworkTags(int index, String value)A map of network tags to associate with the VM.ComputeEngineTargetDefaults.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)ComputeEngineTargetDefaults.BuildersetSecureBoot(boolean value)Defines whether the instance has Secure Boot enabled.ComputeEngineTargetDefaults.BuildersetServiceAccount(String value)The service account to associate the VM with.ComputeEngineTargetDefaults.BuildersetServiceAccountBytes(com.google.protobuf.ByteString value)The service account to associate the VM with.ComputeEngineTargetDefaults.BuildersetTargetProject(String value)The full path of the resource of type TargetProject which represents the Compute Engine project in which to create this VM.ComputeEngineTargetDefaults.BuildersetTargetProjectBytes(com.google.protobuf.ByteString value)The full path of the resource of type TargetProject which represents the Compute Engine project in which to create this VM.ComputeEngineTargetDefaults.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)ComputeEngineTargetDefaults.BuildersetVmName(String value)The name of the VM to create.ComputeEngineTargetDefaults.BuildersetVmNameBytes(com.google.protobuf.ByteString value)The name of the VM to create.ComputeEngineTargetDefaults.BuildersetZone(String value)The zone in which to create the VM.ComputeEngineTargetDefaults.BuildersetZoneBytes(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:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeEngineTargetDefaults.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeEngineTargetDefaults.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeEngineTargetDefaults.Builder>
-
clear
public ComputeEngineTargetDefaults.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeEngineTargetDefaults.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeEngineTargetDefaults.Builder>
-
getDefaultInstanceForType
public ComputeEngineTargetDefaults getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public ComputeEngineTargetDefaults build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ComputeEngineTargetDefaults buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ComputeEngineTargetDefaults.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeEngineTargetDefaults.Builder>
-
setField
public ComputeEngineTargetDefaults.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeEngineTargetDefaults.Builder>
-
clearField
public ComputeEngineTargetDefaults.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeEngineTargetDefaults.Builder>
-
clearOneof
public ComputeEngineTargetDefaults.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeEngineTargetDefaults.Builder>
-
setRepeatedField
public ComputeEngineTargetDefaults.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeEngineTargetDefaults.Builder>
-
addRepeatedField
public ComputeEngineTargetDefaults.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeEngineTargetDefaults.Builder>
-
mergeFrom
public ComputeEngineTargetDefaults.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ComputeEngineTargetDefaults.Builder>
-
mergeFrom
public ComputeEngineTargetDefaults.Builder mergeFrom(ComputeEngineTargetDefaults other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeEngineTargetDefaults.Builder>
-
mergeFrom
public ComputeEngineTargetDefaults.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ComputeEngineTargetDefaults.Builder>- Throws:
IOException
-
getVmName
public String getVmName()
The name of the VM to create.
string vm_name = 1;- Specified by:
getVmNamein interfaceComputeEngineTargetDefaultsOrBuilder- Returns:
- The vmName.
-
getVmNameBytes
public com.google.protobuf.ByteString getVmNameBytes()
The name of the VM to create.
string vm_name = 1;- Specified by:
getVmNameBytesin interfaceComputeEngineTargetDefaultsOrBuilder- Returns:
- The bytes for vmName.
-
setVmName
public ComputeEngineTargetDefaults.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 ComputeEngineTargetDefaults.Builder clearVmName()
The name of the VM to create.
string vm_name = 1;- Returns:
- This builder for chaining.
-
setVmNameBytes
public ComputeEngineTargetDefaults.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.
-
getTargetProject
public String getTargetProject()
The full path of the resource of type TargetProject which represents the Compute Engine project in which to create this VM.
string target_project = 2 [(.google.api.resource_reference) = { ... }- Specified by:
getTargetProjectin interfaceComputeEngineTargetDefaultsOrBuilder- Returns:
- The targetProject.
-
getTargetProjectBytes
public com.google.protobuf.ByteString getTargetProjectBytes()
The full path of the resource of type TargetProject which represents the Compute Engine project in which to create this VM.
string target_project = 2 [(.google.api.resource_reference) = { ... }- Specified by:
getTargetProjectBytesin interfaceComputeEngineTargetDefaultsOrBuilder- Returns:
- The bytes for targetProject.
-
setTargetProject
public ComputeEngineTargetDefaults.Builder setTargetProject(String value)
The full path of the resource of type TargetProject which represents the Compute Engine project in which to create this VM.
string target_project = 2 [(.google.api.resource_reference) = { ... }- Parameters:
value- The targetProject to set.- Returns:
- This builder for chaining.
-
clearTargetProject
public ComputeEngineTargetDefaults.Builder clearTargetProject()
The full path of the resource of type TargetProject which represents the Compute Engine project in which to create this VM.
string target_project = 2 [(.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setTargetProjectBytes
public ComputeEngineTargetDefaults.Builder setTargetProjectBytes(com.google.protobuf.ByteString value)
The full path of the resource of type TargetProject which represents the Compute Engine project in which to create this VM.
string target_project = 2 [(.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for targetProject to set.- Returns:
- This builder for chaining.
-
getZone
public String getZone()
The zone in which to create the VM.
string zone = 3;- Specified by:
getZonein interfaceComputeEngineTargetDefaultsOrBuilder- Returns:
- The zone.
-
getZoneBytes
public com.google.protobuf.ByteString getZoneBytes()
The zone in which to create the VM.
string zone = 3;- Specified by:
getZoneBytesin interfaceComputeEngineTargetDefaultsOrBuilder- Returns:
- The bytes for zone.
-
setZone
public ComputeEngineTargetDefaults.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 ComputeEngineTargetDefaults.Builder clearZone()
The zone in which to create the VM.
string zone = 3;- Returns:
- This builder for chaining.
-
setZoneBytes
public ComputeEngineTargetDefaults.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:
getMachineTypeSeriesin interfaceComputeEngineTargetDefaultsOrBuilder- 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:
getMachineTypeSeriesBytesin interfaceComputeEngineTargetDefaultsOrBuilder- Returns:
- The bytes for machineTypeSeries.
-
setMachineTypeSeries
public ComputeEngineTargetDefaults.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 ComputeEngineTargetDefaults.Builder clearMachineTypeSeries()
The machine type series to create the VM with.
string machine_type_series = 4;- Returns:
- This builder for chaining.
-
setMachineTypeSeriesBytes
public ComputeEngineTargetDefaults.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:
getMachineTypein interfaceComputeEngineTargetDefaultsOrBuilder- Returns:
- The machineType.
-
getMachineTypeBytes
public com.google.protobuf.ByteString getMachineTypeBytes()
The machine type to create the VM with.
string machine_type = 5;- Specified by:
getMachineTypeBytesin interfaceComputeEngineTargetDefaultsOrBuilder- Returns:
- The bytes for machineType.
-
setMachineType
public ComputeEngineTargetDefaults.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 ComputeEngineTargetDefaults.Builder clearMachineType()
The machine type to create the VM with.
string machine_type = 5;- Returns:
- This builder for chaining.
-
setMachineTypeBytes
public ComputeEngineTargetDefaults.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:
getNetworkTagsListin interfaceComputeEngineTargetDefaultsOrBuilder- 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:
getNetworkTagsCountin interfaceComputeEngineTargetDefaultsOrBuilder- 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:
getNetworkTagsin interfaceComputeEngineTargetDefaultsOrBuilder- 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:
getNetworkTagsBytesin interfaceComputeEngineTargetDefaultsOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the networkTags at the given index.
-
setNetworkTags
public ComputeEngineTargetDefaults.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 ComputeEngineTargetDefaults.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 ComputeEngineTargetDefaults.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 ComputeEngineTargetDefaults.Builder clearNetworkTags()
A map of network tags to associate with the VM.
repeated string network_tags = 6;- Returns:
- This builder for chaining.
-
addNetworkTagsBytes
public ComputeEngineTargetDefaults.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:
getNetworkInterfacesListin interfaceComputeEngineTargetDefaultsOrBuilder
-
getNetworkInterfacesCount
public int getNetworkInterfacesCount()
List of NICs connected to this VM.
repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 7;- Specified by:
getNetworkInterfacesCountin interfaceComputeEngineTargetDefaultsOrBuilder
-
getNetworkInterfaces
public NetworkInterface getNetworkInterfaces(int index)
List of NICs connected to this VM.
repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 7;- Specified by:
getNetworkInterfacesin interfaceComputeEngineTargetDefaultsOrBuilder
-
setNetworkInterfaces
public ComputeEngineTargetDefaults.Builder setNetworkInterfaces(int index, NetworkInterface value)
List of NICs connected to this VM.
repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 7;
-
setNetworkInterfaces
public ComputeEngineTargetDefaults.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 ComputeEngineTargetDefaults.Builder addNetworkInterfaces(NetworkInterface value)
List of NICs connected to this VM.
repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 7;
-
addNetworkInterfaces
public ComputeEngineTargetDefaults.Builder addNetworkInterfaces(int index, NetworkInterface value)
List of NICs connected to this VM.
repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 7;
-
addNetworkInterfaces
public ComputeEngineTargetDefaults.Builder addNetworkInterfaces(NetworkInterface.Builder builderForValue)
List of NICs connected to this VM.
repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 7;
-
addNetworkInterfaces
public ComputeEngineTargetDefaults.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 ComputeEngineTargetDefaults.Builder addAllNetworkInterfaces(Iterable<? extends NetworkInterface> values)
List of NICs connected to this VM.
repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 7;
-
clearNetworkInterfaces
public ComputeEngineTargetDefaults.Builder clearNetworkInterfaces()
List of NICs connected to this VM.
repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 7;
-
removeNetworkInterfaces
public ComputeEngineTargetDefaults.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:
getNetworkInterfacesOrBuilderin interfaceComputeEngineTargetDefaultsOrBuilder
-
getNetworkInterfacesOrBuilderList
public List<? extends NetworkInterfaceOrBuilder> getNetworkInterfacesOrBuilderList()
List of NICs connected to this VM.
repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 7;- Specified by:
getNetworkInterfacesOrBuilderListin interfaceComputeEngineTargetDefaultsOrBuilder
-
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:
getServiceAccountin interfaceComputeEngineTargetDefaultsOrBuilder- Returns:
- The serviceAccount.
-
getServiceAccountBytes
public com.google.protobuf.ByteString getServiceAccountBytes()
The service account to associate the VM with.
string service_account = 8;- Specified by:
getServiceAccountBytesin interfaceComputeEngineTargetDefaultsOrBuilder- Returns:
- The bytes for serviceAccount.
-
setServiceAccount
public ComputeEngineTargetDefaults.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 ComputeEngineTargetDefaults.Builder clearServiceAccount()
The service account to associate the VM with.
string service_account = 8;- Returns:
- This builder for chaining.
-
setServiceAccountBytes
public ComputeEngineTargetDefaults.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:
getDiskTypeValuein interfaceComputeEngineTargetDefaultsOrBuilder- Returns:
- The enum numeric value on the wire for diskType.
-
setDiskTypeValue
public ComputeEngineTargetDefaults.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:
getDiskTypein interfaceComputeEngineTargetDefaultsOrBuilder- Returns:
- The diskType.
-
setDiskType
public ComputeEngineTargetDefaults.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 ComputeEngineTargetDefaults.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:ComputeEngineTargetDefaultsOrBuilderA map of labels to associate with the VM.
map<string, string> labels = 10;- Specified by:
getLabelsCountin interfaceComputeEngineTargetDefaultsOrBuilder
-
containsLabels
public boolean containsLabels(String key)
A map of labels to associate with the VM.
map<string, string> labels = 10;- Specified by:
containsLabelsin interfaceComputeEngineTargetDefaultsOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceComputeEngineTargetDefaultsOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
A map of labels to associate with the VM.
map<string, string> labels = 10;- Specified by:
getLabelsMapin interfaceComputeEngineTargetDefaultsOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
A map of labels to associate with the VM.
map<string, string> labels = 10;- Specified by:
getLabelsOrDefaultin interfaceComputeEngineTargetDefaultsOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
A map of labels to associate with the VM.
map<string, string> labels = 10;- Specified by:
getLabelsOrThrowin interfaceComputeEngineTargetDefaultsOrBuilder
-
clearLabels
public ComputeEngineTargetDefaults.Builder clearLabels()
-
removeLabels
public ComputeEngineTargetDefaults.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 ComputeEngineTargetDefaults.Builder putLabels(String key, String value)
A map of labels to associate with the VM.
map<string, string> labels = 10;
-
putAllLabels
public ComputeEngineTargetDefaults.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:
getLicenseTypeValuein interfaceComputeEngineTargetDefaultsOrBuilder- Returns:
- The enum numeric value on the wire for licenseType.
-
setLicenseTypeValue
public ComputeEngineTargetDefaults.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:
getLicenseTypein interfaceComputeEngineTargetDefaultsOrBuilder- Returns:
- The licenseType.
-
setLicenseType
public ComputeEngineTargetDefaults.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 ComputeEngineTargetDefaults.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()
Output only. The OS license returned from the adaptation module report.
.google.cloud.vmmigration.v1.AppliedLicense applied_license = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasAppliedLicensein interfaceComputeEngineTargetDefaultsOrBuilder- Returns:
- Whether the appliedLicense field is set.
-
getAppliedLicense
public AppliedLicense getAppliedLicense()
Output only. The OS license returned from the adaptation module report.
.google.cloud.vmmigration.v1.AppliedLicense applied_license = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAppliedLicensein interfaceComputeEngineTargetDefaultsOrBuilder- Returns:
- The appliedLicense.
-
setAppliedLicense
public ComputeEngineTargetDefaults.Builder setAppliedLicense(AppliedLicense value)
Output only. The OS license returned from the adaptation module report.
.google.cloud.vmmigration.v1.AppliedLicense applied_license = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
setAppliedLicense
public ComputeEngineTargetDefaults.Builder setAppliedLicense(AppliedLicense.Builder builderForValue)
Output only. The OS license returned from the adaptation module report.
.google.cloud.vmmigration.v1.AppliedLicense applied_license = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
mergeAppliedLicense
public ComputeEngineTargetDefaults.Builder mergeAppliedLicense(AppliedLicense value)
Output only. The OS license returned from the adaptation module report.
.google.cloud.vmmigration.v1.AppliedLicense applied_license = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
clearAppliedLicense
public ComputeEngineTargetDefaults.Builder clearAppliedLicense()
Output only. The OS license returned from the adaptation module report.
.google.cloud.vmmigration.v1.AppliedLicense applied_license = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getAppliedLicenseBuilder
public AppliedLicense.Builder getAppliedLicenseBuilder()
Output only. The OS license returned from the adaptation module report.
.google.cloud.vmmigration.v1.AppliedLicense applied_license = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getAppliedLicenseOrBuilder
public AppliedLicenseOrBuilder getAppliedLicenseOrBuilder()
Output only. The OS license returned from the adaptation module report.
.google.cloud.vmmigration.v1.AppliedLicense applied_license = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAppliedLicenseOrBuilderin interfaceComputeEngineTargetDefaultsOrBuilder
-
hasComputeScheduling
public boolean hasComputeScheduling()
Compute instance scheduling information (if empty default is used).
.google.cloud.vmmigration.v1.ComputeScheduling compute_scheduling = 13;- Specified by:
hasComputeSchedulingin interfaceComputeEngineTargetDefaultsOrBuilder- 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:
getComputeSchedulingin interfaceComputeEngineTargetDefaultsOrBuilder- Returns:
- The computeScheduling.
-
setComputeScheduling
public ComputeEngineTargetDefaults.Builder setComputeScheduling(ComputeScheduling value)
Compute instance scheduling information (if empty default is used).
.google.cloud.vmmigration.v1.ComputeScheduling compute_scheduling = 13;
-
setComputeScheduling
public ComputeEngineTargetDefaults.Builder setComputeScheduling(ComputeScheduling.Builder builderForValue)
Compute instance scheduling information (if empty default is used).
.google.cloud.vmmigration.v1.ComputeScheduling compute_scheduling = 13;
-
mergeComputeScheduling
public ComputeEngineTargetDefaults.Builder mergeComputeScheduling(ComputeScheduling value)
Compute instance scheduling information (if empty default is used).
.google.cloud.vmmigration.v1.ComputeScheduling compute_scheduling = 13;
-
clearComputeScheduling
public ComputeEngineTargetDefaults.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:
getComputeSchedulingOrBuilderin interfaceComputeEngineTargetDefaultsOrBuilder
-
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:
getSecureBootin interfaceComputeEngineTargetDefaultsOrBuilder- Returns:
- The secureBoot.
-
setSecureBoot
public ComputeEngineTargetDefaults.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 ComputeEngineTargetDefaults.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()
Output only. The VM Boot Option, as set in the source vm.
.google.cloud.vmmigration.v1.ComputeEngineBootOption boot_option = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getBootOptionValuein interfaceComputeEngineTargetDefaultsOrBuilder- Returns:
- The enum numeric value on the wire for bootOption.
-
setBootOptionValue
public ComputeEngineTargetDefaults.Builder setBootOptionValue(int value)
Output only. The VM Boot Option, as set in the source vm.
.google.cloud.vmmigration.v1.ComputeEngineBootOption boot_option = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for bootOption to set.- Returns:
- This builder for chaining.
-
getBootOption
public ComputeEngineBootOption getBootOption()
Output only. The VM Boot Option, as set in the source vm.
.google.cloud.vmmigration.v1.ComputeEngineBootOption boot_option = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getBootOptionin interfaceComputeEngineTargetDefaultsOrBuilder- Returns:
- The bootOption.
-
setBootOption
public ComputeEngineTargetDefaults.Builder setBootOption(ComputeEngineBootOption value)
Output only. The VM Boot Option, as set in the source vm.
.google.cloud.vmmigration.v1.ComputeEngineBootOption boot_option = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The bootOption to set.- Returns:
- This builder for chaining.
-
clearBootOption
public ComputeEngineTargetDefaults.Builder clearBootOption()
Output only. The VM Boot Option, as set in the source vm.
.google.cloud.vmmigration.v1.ComputeEngineBootOption boot_option = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getMetadataCount
public int getMetadataCount()
Description copied from interface:ComputeEngineTargetDefaultsOrBuilderThe metadata key/value pairs to assign to the VM.
map<string, string> metadata = 16;- Specified by:
getMetadataCountin interfaceComputeEngineTargetDefaultsOrBuilder
-
containsMetadata
public boolean containsMetadata(String key)
The metadata key/value pairs to assign to the VM.
map<string, string> metadata = 16;- Specified by:
containsMetadatain interfaceComputeEngineTargetDefaultsOrBuilder
-
getMetadata
@Deprecated public Map<String,String> getMetadata()
Deprecated.UsegetMetadataMap()instead.- Specified by:
getMetadatain interfaceComputeEngineTargetDefaultsOrBuilder
-
getMetadataMap
public Map<String,String> getMetadataMap()
The metadata key/value pairs to assign to the VM.
map<string, string> metadata = 16;- Specified by:
getMetadataMapin interfaceComputeEngineTargetDefaultsOrBuilder
-
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:
getMetadataOrDefaultin interfaceComputeEngineTargetDefaultsOrBuilder
-
getMetadataOrThrow
public String getMetadataOrThrow(String key)
The metadata key/value pairs to assign to the VM.
map<string, string> metadata = 16;- Specified by:
getMetadataOrThrowin interfaceComputeEngineTargetDefaultsOrBuilder
-
clearMetadata
public ComputeEngineTargetDefaults.Builder clearMetadata()
-
removeMetadata
public ComputeEngineTargetDefaults.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 ComputeEngineTargetDefaults.Builder putMetadata(String key, String value)
The metadata key/value pairs to assign to the VM.
map<string, string> metadata = 16;
-
putAllMetadata
public ComputeEngineTargetDefaults.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:
getAdditionalLicensesListin interfaceComputeEngineTargetDefaultsOrBuilder- Returns:
- A list containing the additionalLicenses.
-
getAdditionalLicensesCount
public int getAdditionalLicensesCount()
Additional licenses to assign to the VM.
repeated string additional_licenses = 17;- Specified by:
getAdditionalLicensesCountin interfaceComputeEngineTargetDefaultsOrBuilder- 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:
getAdditionalLicensesin interfaceComputeEngineTargetDefaultsOrBuilder- 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:
getAdditionalLicensesBytesin interfaceComputeEngineTargetDefaultsOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the additionalLicenses at the given index.
-
setAdditionalLicenses
public ComputeEngineTargetDefaults.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 ComputeEngineTargetDefaults.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 ComputeEngineTargetDefaults.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 ComputeEngineTargetDefaults.Builder clearAdditionalLicenses()
Additional licenses to assign to the VM.
repeated string additional_licenses = 17;- Returns:
- This builder for chaining.
-
addAdditionalLicensesBytes
public ComputeEngineTargetDefaults.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:
getHostnamein interfaceComputeEngineTargetDefaultsOrBuilder- Returns:
- The hostname.
-
getHostnameBytes
public com.google.protobuf.ByteString getHostnameBytes()
The hostname to assign to the VM.
string hostname = 18;- Specified by:
getHostnameBytesin interfaceComputeEngineTargetDefaultsOrBuilder- Returns:
- The bytes for hostname.
-
setHostname
public ComputeEngineTargetDefaults.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 ComputeEngineTargetDefaults.Builder clearHostname()
The hostname to assign to the VM.
string hostname = 18;- Returns:
- This builder for chaining.
-
setHostnameBytes
public ComputeEngineTargetDefaults.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 ComputeEngineTargetDefaults.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeEngineTargetDefaults.Builder>
-
mergeUnknownFields
public final ComputeEngineTargetDefaults.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeEngineTargetDefaults.Builder>
-
-