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.Builder
addAdditionalLicenses(String value)
Additional licenses to assign to the VM.ComputeEngineTargetDefaults.Builder
addAdditionalLicensesBytes(com.google.protobuf.ByteString value)
Additional licenses to assign to the VM.ComputeEngineTargetDefaults.Builder
addAllAdditionalLicenses(Iterable<String> values)
Additional licenses to assign to the VM.ComputeEngineTargetDefaults.Builder
addAllNetworkInterfaces(Iterable<? extends NetworkInterface> values)
List of NICs connected to this VM.ComputeEngineTargetDefaults.Builder
addAllNetworkTags(Iterable<String> values)
A map of network tags to associate with the VM.ComputeEngineTargetDefaults.Builder
addNetworkInterfaces(int index, NetworkInterface value)
List of NICs connected to this VM.ComputeEngineTargetDefaults.Builder
addNetworkInterfaces(int index, NetworkInterface.Builder builderForValue)
List of NICs connected to this VM.ComputeEngineTargetDefaults.Builder
addNetworkInterfaces(NetworkInterface value)
List of NICs connected to this VM.ComputeEngineTargetDefaults.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.ComputeEngineTargetDefaults.Builder
addNetworkTags(String value)
A map of network tags to associate with the VM.ComputeEngineTargetDefaults.Builder
addNetworkTagsBytes(com.google.protobuf.ByteString value)
A map of network tags to associate with the VM.ComputeEngineTargetDefaults.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ComputeEngineTargetDefaults
build()
ComputeEngineTargetDefaults
buildPartial()
ComputeEngineTargetDefaults.Builder
clear()
ComputeEngineTargetDefaults.Builder
clearAdditionalLicenses()
Additional licenses to assign to the VM.ComputeEngineTargetDefaults.Builder
clearAppliedLicense()
Output only.ComputeEngineTargetDefaults.Builder
clearBootOption()
Output only.ComputeEngineTargetDefaults.Builder
clearComputeScheduling()
Compute instance scheduling information (if empty default is used).ComputeEngineTargetDefaults.Builder
clearDiskType()
The disk type to use in the VM.ComputeEngineTargetDefaults.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
ComputeEngineTargetDefaults.Builder
clearHostname()
The hostname to assign to the VM.ComputeEngineTargetDefaults.Builder
clearLabels()
ComputeEngineTargetDefaults.Builder
clearLicenseType()
The license type to use in OS adaptation.ComputeEngineTargetDefaults.Builder
clearMachineType()
The machine type to create the VM with.ComputeEngineTargetDefaults.Builder
clearMachineTypeSeries()
The machine type series to create the VM with.ComputeEngineTargetDefaults.Builder
clearMetadata()
ComputeEngineTargetDefaults.Builder
clearNetworkInterfaces()
List of NICs connected to this VM.ComputeEngineTargetDefaults.Builder
clearNetworkTags()
A map of network tags to associate with the VM.ComputeEngineTargetDefaults.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
ComputeEngineTargetDefaults.Builder
clearSecureBoot()
Defines whether the instance has Secure Boot enabled.ComputeEngineTargetDefaults.Builder
clearServiceAccount()
The service account to associate the VM with.ComputeEngineTargetDefaults.Builder
clearTargetProject()
The full path of the resource of type TargetProject which represents the Compute Engine project in which to create this VM.ComputeEngineTargetDefaults.Builder
clearVmName()
The name of the VM to create.ComputeEngineTargetDefaults.Builder
clearZone()
The zone in which to create the VM.ComputeEngineTargetDefaults.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()
Output only.AppliedLicense.Builder
getAppliedLicenseBuilder()
Output only.AppliedLicenseOrBuilder
getAppliedLicenseOrBuilder()
Output only.ComputeEngineBootOption
getBootOption()
Output only.int
getBootOptionValue()
Output only.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).ComputeEngineTargetDefaults
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.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
getTargetProject()
The full path of the resource of type TargetProject which represents the Compute Engine project in which to create this VM.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
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()
Output only.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()
ComputeEngineTargetDefaults.Builder
mergeAppliedLicense(AppliedLicense value)
Output only.ComputeEngineTargetDefaults.Builder
mergeComputeScheduling(ComputeScheduling value)
Compute instance scheduling information (if empty default is used).ComputeEngineTargetDefaults.Builder
mergeFrom(ComputeEngineTargetDefaults other)
ComputeEngineTargetDefaults.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
ComputeEngineTargetDefaults.Builder
mergeFrom(com.google.protobuf.Message other)
ComputeEngineTargetDefaults.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ComputeEngineTargetDefaults.Builder
putAllLabels(Map<String,String> values)
A map of labels to associate with the VM.ComputeEngineTargetDefaults.Builder
putAllMetadata(Map<String,String> values)
The metadata key/value pairs to assign to the VM.ComputeEngineTargetDefaults.Builder
putLabels(String key, String value)
A map of labels to associate with the VM.ComputeEngineTargetDefaults.Builder
putMetadata(String key, String value)
The metadata key/value pairs to assign to the VM.ComputeEngineTargetDefaults.Builder
removeLabels(String key)
A map of labels to associate with the VM.ComputeEngineTargetDefaults.Builder
removeMetadata(String key)
The metadata key/value pairs to assign to the VM.ComputeEngineTargetDefaults.Builder
removeNetworkInterfaces(int index)
List of NICs connected to this VM.ComputeEngineTargetDefaults.Builder
setAdditionalLicenses(int index, String value)
Additional licenses to assign to the VM.ComputeEngineTargetDefaults.Builder
setAppliedLicense(AppliedLicense value)
Output only.ComputeEngineTargetDefaults.Builder
setAppliedLicense(AppliedLicense.Builder builderForValue)
Output only.ComputeEngineTargetDefaults.Builder
setBootOption(ComputeEngineBootOption value)
Output only.ComputeEngineTargetDefaults.Builder
setBootOptionValue(int value)
Output only.ComputeEngineTargetDefaults.Builder
setComputeScheduling(ComputeScheduling value)
Compute instance scheduling information (if empty default is used).ComputeEngineTargetDefaults.Builder
setComputeScheduling(ComputeScheduling.Builder builderForValue)
Compute instance scheduling information (if empty default is used).ComputeEngineTargetDefaults.Builder
setDiskType(ComputeEngineDiskType value)
The disk type to use in the VM.ComputeEngineTargetDefaults.Builder
setDiskTypeValue(int value)
The disk type to use in the VM.ComputeEngineTargetDefaults.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
ComputeEngineTargetDefaults.Builder
setHostname(String value)
The hostname to assign to the VM.ComputeEngineTargetDefaults.Builder
setHostnameBytes(com.google.protobuf.ByteString value)
The hostname to assign to the VM.ComputeEngineTargetDefaults.Builder
setLicenseType(ComputeEngineLicenseType value)
The license type to use in OS adaptation.ComputeEngineTargetDefaults.Builder
setLicenseTypeValue(int value)
The license type to use in OS adaptation.ComputeEngineTargetDefaults.Builder
setMachineType(String value)
The machine type to create the VM with.ComputeEngineTargetDefaults.Builder
setMachineTypeBytes(com.google.protobuf.ByteString value)
The machine type to create the VM with.ComputeEngineTargetDefaults.Builder
setMachineTypeSeries(String value)
The machine type series to create the VM with.ComputeEngineTargetDefaults.Builder
setMachineTypeSeriesBytes(com.google.protobuf.ByteString value)
The machine type series to create the VM with.ComputeEngineTargetDefaults.Builder
setNetworkInterfaces(int index, NetworkInterface value)
List of NICs connected to this VM.ComputeEngineTargetDefaults.Builder
setNetworkInterfaces(int index, NetworkInterface.Builder builderForValue)
List of NICs connected to this VM.ComputeEngineTargetDefaults.Builder
setNetworkTags(int index, String value)
A map of network tags to associate with the VM.ComputeEngineTargetDefaults.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
ComputeEngineTargetDefaults.Builder
setSecureBoot(boolean value)
Defines whether the instance has Secure Boot enabled.ComputeEngineTargetDefaults.Builder
setServiceAccount(String value)
The service account to associate the VM with.ComputeEngineTargetDefaults.Builder
setServiceAccountBytes(com.google.protobuf.ByteString value)
The service account to associate the VM with.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.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.ComputeEngineTargetDefaults.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
ComputeEngineTargetDefaults.Builder
setVmName(String value)
The name of the VM to create.ComputeEngineTargetDefaults.Builder
setVmNameBytes(com.google.protobuf.ByteString value)
The name of the VM to create.ComputeEngineTargetDefaults.Builder
setZone(String value)
The zone in which to create the VM.ComputeEngineTargetDefaults.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<ComputeEngineTargetDefaults.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeEngineTargetDefaults.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeEngineTargetDefaults.Builder>
-
clear
public ComputeEngineTargetDefaults.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<ComputeEngineTargetDefaults.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<ComputeEngineTargetDefaults.Builder>
-
getDefaultInstanceForType
public ComputeEngineTargetDefaults getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public ComputeEngineTargetDefaults build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public ComputeEngineTargetDefaults buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public ComputeEngineTargetDefaults.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<ComputeEngineTargetDefaults.Builder>
-
setField
public ComputeEngineTargetDefaults.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<ComputeEngineTargetDefaults.Builder>
-
clearField
public ComputeEngineTargetDefaults.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<ComputeEngineTargetDefaults.Builder>
-
clearOneof
public ComputeEngineTargetDefaults.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<ComputeEngineTargetDefaults.Builder>
-
setRepeatedField
public ComputeEngineTargetDefaults.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<ComputeEngineTargetDefaults.Builder>
-
addRepeatedField
public ComputeEngineTargetDefaults.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<ComputeEngineTargetDefaults.Builder>
-
mergeFrom
public ComputeEngineTargetDefaults.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<ComputeEngineTargetDefaults.Builder>
-
mergeFrom
public ComputeEngineTargetDefaults.Builder mergeFrom(ComputeEngineTargetDefaults other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getVmName
in interfaceComputeEngineTargetDefaultsOrBuilder
- 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 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:
getTargetProject
in 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:
getTargetProjectBytes
in 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:
getZone
in interfaceComputeEngineTargetDefaultsOrBuilder
- 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 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:
getMachineTypeSeries
in 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:
getMachineTypeSeriesBytes
in 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:
getMachineType
in 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:
getMachineTypeBytes
in 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:
getNetworkTagsList
in 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:
getNetworkTagsCount
in 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:
getNetworkTags
in 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:
getNetworkTagsBytes
in 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:
getNetworkInterfacesList
in interfaceComputeEngineTargetDefaultsOrBuilder
-
getNetworkInterfacesCount
public int getNetworkInterfacesCount()
List of NICs connected to this VM.
repeated .google.cloud.vmmigration.v1.NetworkInterface network_interfaces = 7;
- Specified by:
getNetworkInterfacesCount
in 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:
getNetworkInterfaces
in 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:
getNetworkInterfacesOrBuilder
in 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:
getNetworkInterfacesOrBuilderList
in 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:
getServiceAccount
in 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:
getServiceAccountBytes
in 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:
getDiskTypeValue
in 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:
getDiskType
in 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:ComputeEngineTargetDefaultsOrBuilder
A map of labels to associate with the VM.
map<string, string> labels = 10;
- Specified by:
getLabelsCount
in interfaceComputeEngineTargetDefaultsOrBuilder
-
containsLabels
public boolean containsLabels(String key)
A map of labels to associate with the VM.
map<string, string> labels = 10;
- Specified by:
containsLabels
in interfaceComputeEngineTargetDefaultsOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in interfaceComputeEngineTargetDefaultsOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
A map of labels to associate with the VM.
map<string, string> labels = 10;
- Specified by:
getLabelsMap
in 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:
getLabelsOrDefault
in interfaceComputeEngineTargetDefaultsOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
A map of labels to associate with the VM.
map<string, string> labels = 10;
- Specified by:
getLabelsOrThrow
in 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:
getLicenseTypeValue
in 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:
getLicenseType
in 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:
hasAppliedLicense
in 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:
getAppliedLicense
in 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:
getAppliedLicenseOrBuilder
in interfaceComputeEngineTargetDefaultsOrBuilder
-
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 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:
getComputeScheduling
in 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:
getComputeSchedulingOrBuilder
in 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:
getSecureBoot
in 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:
getBootOptionValue
in 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:
getBootOption
in 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:ComputeEngineTargetDefaultsOrBuilder
The metadata key/value pairs to assign to the VM.
map<string, string> metadata = 16;
- Specified by:
getMetadataCount
in interfaceComputeEngineTargetDefaultsOrBuilder
-
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 interfaceComputeEngineTargetDefaultsOrBuilder
-
getMetadata
@Deprecated public Map<String,String> getMetadata()
Deprecated.UsegetMetadataMap()
instead.- Specified by:
getMetadata
in interfaceComputeEngineTargetDefaultsOrBuilder
-
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 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:
getMetadataOrDefault
in interfaceComputeEngineTargetDefaultsOrBuilder
-
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 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:
getAdditionalLicensesList
in 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:
getAdditionalLicensesCount
in 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:
getAdditionalLicenses
in 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:
getAdditionalLicensesBytes
in 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:
getHostname
in interfaceComputeEngineTargetDefaultsOrBuilder
- Returns:
- The hostname.
-
getHostnameBytes
public com.google.protobuf.ByteString getHostnameBytes()
The hostname to assign to the VM.
string hostname = 18;
- Specified by:
getHostnameBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeEngineTargetDefaults.Builder>
-
mergeUnknownFields
public final ComputeEngineTargetDefaults.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<ComputeEngineTargetDefaults.Builder>
-
-