public static final class AdvancedMachineFeatures.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AdvancedMachineFeatures.Builder> implements AdvancedMachineFeaturesOrBuilder
Specifies options for controlling advanced machine features. Options that would traditionally be configured in a BIOS belong here. Features that require operating system support may have corresponding entries in the GuestOsFeatures of an Image (e.g., whether or not the OS in the Image supports nested virtualization being enabled or disabled).Protobuf type
google.cloud.compute.v1.AdvancedMachineFeatures| Modifier and Type | Method and Description |
|---|---|
AdvancedMachineFeatures.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AdvancedMachineFeatures |
build() |
AdvancedMachineFeatures |
buildPartial() |
AdvancedMachineFeatures.Builder |
clear() |
AdvancedMachineFeatures.Builder |
clearEnableNestedVirtualization()
Whether to enable nested virtualization or not (default is false).
|
AdvancedMachineFeatures.Builder |
clearEnableUefiNetworking()
Whether to enable UEFI networking for instance creation.
|
AdvancedMachineFeatures.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
AdvancedMachineFeatures.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
AdvancedMachineFeatures.Builder |
clearPerformanceMonitoringUnit()
Type of Performance Monitoring Unit requested on instance.
|
AdvancedMachineFeatures.Builder |
clearThreadsPerCore()
The number of threads per physical core.
|
AdvancedMachineFeatures.Builder |
clearTurboMode()
Turbo frequency mode to use for the instance.
|
AdvancedMachineFeatures.Builder |
clearVisibleCoreCount()
The number of physical cores to expose to an instance.
|
AdvancedMachineFeatures.Builder |
clone() |
AdvancedMachineFeatures |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getEnableNestedVirtualization()
Whether to enable nested virtualization or not (default is false).
|
boolean |
getEnableUefiNetworking()
Whether to enable UEFI networking for instance creation.
|
String |
getPerformanceMonitoringUnit()
Type of Performance Monitoring Unit requested on instance.
|
com.google.protobuf.ByteString |
getPerformanceMonitoringUnitBytes()
Type of Performance Monitoring Unit requested on instance.
|
int |
getThreadsPerCore()
The number of threads per physical core.
|
String |
getTurboMode()
Turbo frequency mode to use for the instance.
|
com.google.protobuf.ByteString |
getTurboModeBytes()
Turbo frequency mode to use for the instance.
|
int |
getVisibleCoreCount()
The number of physical cores to expose to an instance.
|
boolean |
hasEnableNestedVirtualization()
Whether to enable nested virtualization or not (default is false).
|
boolean |
hasEnableUefiNetworking()
Whether to enable UEFI networking for instance creation.
|
boolean |
hasPerformanceMonitoringUnit()
Type of Performance Monitoring Unit requested on instance.
|
boolean |
hasThreadsPerCore()
The number of threads per physical core.
|
boolean |
hasTurboMode()
Turbo frequency mode to use for the instance.
|
boolean |
hasVisibleCoreCount()
The number of physical cores to expose to an instance.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
AdvancedMachineFeatures.Builder |
mergeFrom(AdvancedMachineFeatures other) |
AdvancedMachineFeatures.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
AdvancedMachineFeatures.Builder |
mergeFrom(com.google.protobuf.Message other) |
AdvancedMachineFeatures.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
AdvancedMachineFeatures.Builder |
setEnableNestedVirtualization(boolean value)
Whether to enable nested virtualization or not (default is false).
|
AdvancedMachineFeatures.Builder |
setEnableUefiNetworking(boolean value)
Whether to enable UEFI networking for instance creation.
|
AdvancedMachineFeatures.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AdvancedMachineFeatures.Builder |
setPerformanceMonitoringUnit(String value)
Type of Performance Monitoring Unit requested on instance.
|
AdvancedMachineFeatures.Builder |
setPerformanceMonitoringUnitBytes(com.google.protobuf.ByteString value)
Type of Performance Monitoring Unit requested on instance.
|
AdvancedMachineFeatures.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
AdvancedMachineFeatures.Builder |
setThreadsPerCore(int value)
The number of threads per physical core.
|
AdvancedMachineFeatures.Builder |
setTurboMode(String value)
Turbo frequency mode to use for the instance.
|
AdvancedMachineFeatures.Builder |
setTurboModeBytes(com.google.protobuf.ByteString value)
Turbo frequency mode to use for the instance.
|
AdvancedMachineFeatures.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
AdvancedMachineFeatures.Builder |
setVisibleCoreCount(int value)
The number of physical cores to expose to an instance.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AdvancedMachineFeatures.Builder>public AdvancedMachineFeatures.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<AdvancedMachineFeatures.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AdvancedMachineFeatures.Builder>public AdvancedMachineFeatures getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic AdvancedMachineFeatures build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic AdvancedMachineFeatures buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic AdvancedMachineFeatures.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<AdvancedMachineFeatures.Builder>public AdvancedMachineFeatures.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<AdvancedMachineFeatures.Builder>public AdvancedMachineFeatures.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<AdvancedMachineFeatures.Builder>public AdvancedMachineFeatures.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AdvancedMachineFeatures.Builder>public AdvancedMachineFeatures.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AdvancedMachineFeatures.Builder>public AdvancedMachineFeatures.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AdvancedMachineFeatures.Builder>public AdvancedMachineFeatures.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AdvancedMachineFeatures.Builder>public AdvancedMachineFeatures.Builder mergeFrom(AdvancedMachineFeatures other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AdvancedMachineFeatures.Builder>public AdvancedMachineFeatures.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AdvancedMachineFeatures.Builder>IOExceptionpublic boolean hasEnableNestedVirtualization()
Whether to enable nested virtualization or not (default is false).
optional bool enable_nested_virtualization = 16639365;hasEnableNestedVirtualization in interface AdvancedMachineFeaturesOrBuilderpublic boolean getEnableNestedVirtualization()
Whether to enable nested virtualization or not (default is false).
optional bool enable_nested_virtualization = 16639365;getEnableNestedVirtualization in interface AdvancedMachineFeaturesOrBuilderpublic AdvancedMachineFeatures.Builder setEnableNestedVirtualization(boolean value)
Whether to enable nested virtualization or not (default is false).
optional bool enable_nested_virtualization = 16639365;value - The enableNestedVirtualization to set.public AdvancedMachineFeatures.Builder clearEnableNestedVirtualization()
Whether to enable nested virtualization or not (default is false).
optional bool enable_nested_virtualization = 16639365;public boolean hasEnableUefiNetworking()
Whether to enable UEFI networking for instance creation.
optional bool enable_uefi_networking = 334485668;hasEnableUefiNetworking in interface AdvancedMachineFeaturesOrBuilderpublic boolean getEnableUefiNetworking()
Whether to enable UEFI networking for instance creation.
optional bool enable_uefi_networking = 334485668;getEnableUefiNetworking in interface AdvancedMachineFeaturesOrBuilderpublic AdvancedMachineFeatures.Builder setEnableUefiNetworking(boolean value)
Whether to enable UEFI networking for instance creation.
optional bool enable_uefi_networking = 334485668;value - The enableUefiNetworking to set.public AdvancedMachineFeatures.Builder clearEnableUefiNetworking()
Whether to enable UEFI networking for instance creation.
optional bool enable_uefi_networking = 334485668;public boolean hasPerformanceMonitoringUnit()
Type of Performance Monitoring Unit requested on instance. Check the PerformanceMonitoringUnit enum for the list of possible values.
optional string performance_monitoring_unit = 533618956;hasPerformanceMonitoringUnit in interface AdvancedMachineFeaturesOrBuilderpublic String getPerformanceMonitoringUnit()
Type of Performance Monitoring Unit requested on instance. Check the PerformanceMonitoringUnit enum for the list of possible values.
optional string performance_monitoring_unit = 533618956;getPerformanceMonitoringUnit in interface AdvancedMachineFeaturesOrBuilderpublic com.google.protobuf.ByteString getPerformanceMonitoringUnitBytes()
Type of Performance Monitoring Unit requested on instance. Check the PerformanceMonitoringUnit enum for the list of possible values.
optional string performance_monitoring_unit = 533618956;getPerformanceMonitoringUnitBytes in interface AdvancedMachineFeaturesOrBuilderpublic AdvancedMachineFeatures.Builder setPerformanceMonitoringUnit(String value)
Type of Performance Monitoring Unit requested on instance. Check the PerformanceMonitoringUnit enum for the list of possible values.
optional string performance_monitoring_unit = 533618956;value - The performanceMonitoringUnit to set.public AdvancedMachineFeatures.Builder clearPerformanceMonitoringUnit()
Type of Performance Monitoring Unit requested on instance. Check the PerformanceMonitoringUnit enum for the list of possible values.
optional string performance_monitoring_unit = 533618956;public AdvancedMachineFeatures.Builder setPerformanceMonitoringUnitBytes(com.google.protobuf.ByteString value)
Type of Performance Monitoring Unit requested on instance. Check the PerformanceMonitoringUnit enum for the list of possible values.
optional string performance_monitoring_unit = 533618956;value - The bytes for performanceMonitoringUnit to set.public boolean hasThreadsPerCore()
The number of threads per physical core. To disable simultaneous multithreading (SMT) set this to 1. If unset, the maximum number of threads supported per core by the underlying processor is assumed.
optional int32 threads_per_core = 352611671;hasThreadsPerCore in interface AdvancedMachineFeaturesOrBuilderpublic int getThreadsPerCore()
The number of threads per physical core. To disable simultaneous multithreading (SMT) set this to 1. If unset, the maximum number of threads supported per core by the underlying processor is assumed.
optional int32 threads_per_core = 352611671;getThreadsPerCore in interface AdvancedMachineFeaturesOrBuilderpublic AdvancedMachineFeatures.Builder setThreadsPerCore(int value)
The number of threads per physical core. To disable simultaneous multithreading (SMT) set this to 1. If unset, the maximum number of threads supported per core by the underlying processor is assumed.
optional int32 threads_per_core = 352611671;value - The threadsPerCore to set.public AdvancedMachineFeatures.Builder clearThreadsPerCore()
The number of threads per physical core. To disable simultaneous multithreading (SMT) set this to 1. If unset, the maximum number of threads supported per core by the underlying processor is assumed.
optional int32 threads_per_core = 352611671;public boolean hasTurboMode()
Turbo frequency mode to use for the instance. Supported modes include: * ALL_CORE_MAX Using empty string or not setting this field will use the platform-specific default turbo mode.
optional string turbo_mode = 432965412;hasTurboMode in interface AdvancedMachineFeaturesOrBuilderpublic String getTurboMode()
Turbo frequency mode to use for the instance. Supported modes include: * ALL_CORE_MAX Using empty string or not setting this field will use the platform-specific default turbo mode.
optional string turbo_mode = 432965412;getTurboMode in interface AdvancedMachineFeaturesOrBuilderpublic com.google.protobuf.ByteString getTurboModeBytes()
Turbo frequency mode to use for the instance. Supported modes include: * ALL_CORE_MAX Using empty string or not setting this field will use the platform-specific default turbo mode.
optional string turbo_mode = 432965412;getTurboModeBytes in interface AdvancedMachineFeaturesOrBuilderpublic AdvancedMachineFeatures.Builder setTurboMode(String value)
Turbo frequency mode to use for the instance. Supported modes include: * ALL_CORE_MAX Using empty string or not setting this field will use the platform-specific default turbo mode.
optional string turbo_mode = 432965412;value - The turboMode to set.public AdvancedMachineFeatures.Builder clearTurboMode()
Turbo frequency mode to use for the instance. Supported modes include: * ALL_CORE_MAX Using empty string or not setting this field will use the platform-specific default turbo mode.
optional string turbo_mode = 432965412;public AdvancedMachineFeatures.Builder setTurboModeBytes(com.google.protobuf.ByteString value)
Turbo frequency mode to use for the instance. Supported modes include: * ALL_CORE_MAX Using empty string or not setting this field will use the platform-specific default turbo mode.
optional string turbo_mode = 432965412;value - The bytes for turboMode to set.public boolean hasVisibleCoreCount()
The number of physical cores to expose to an instance. Multiply by the number of threads per core to compute the total number of virtual CPUs to expose to the instance. If unset, the number of cores is inferred from the instance's nominal CPU count and the underlying platform's SMT width.
optional int32 visible_core_count = 193198684;hasVisibleCoreCount in interface AdvancedMachineFeaturesOrBuilderpublic int getVisibleCoreCount()
The number of physical cores to expose to an instance. Multiply by the number of threads per core to compute the total number of virtual CPUs to expose to the instance. If unset, the number of cores is inferred from the instance's nominal CPU count and the underlying platform's SMT width.
optional int32 visible_core_count = 193198684;getVisibleCoreCount in interface AdvancedMachineFeaturesOrBuilderpublic AdvancedMachineFeatures.Builder setVisibleCoreCount(int value)
The number of physical cores to expose to an instance. Multiply by the number of threads per core to compute the total number of virtual CPUs to expose to the instance. If unset, the number of cores is inferred from the instance's nominal CPU count and the underlying platform's SMT width.
optional int32 visible_core_count = 193198684;value - The visibleCoreCount to set.public AdvancedMachineFeatures.Builder clearVisibleCoreCount()
The number of physical cores to expose to an instance. Multiply by the number of threads per core to compute the total number of virtual CPUs to expose to the instance. If unset, the number of cores is inferred from the instance's nominal CPU count and the underlying platform's SMT width.
optional int32 visible_core_count = 193198684;public final AdvancedMachineFeatures.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AdvancedMachineFeatures.Builder>public final AdvancedMachineFeatures.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AdvancedMachineFeatures.Builder>Copyright © 2025 Google LLC. All rights reserved.