Package com.google.cloud.compute.v1
Class AdvancedMachineFeatures.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<AdvancedMachineFeatures.Builder>
-
- com.google.cloud.compute.v1.AdvancedMachineFeatures.Builder
-
- All Implemented Interfaces:
AdvancedMachineFeaturesOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AdvancedMachineFeatures
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 typegoogle.cloud.compute.v1.AdvancedMachineFeatures
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AdvancedMachineFeatures.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)AdvancedMachineFeaturesbuild()AdvancedMachineFeaturesbuildPartial()AdvancedMachineFeatures.Builderclear()AdvancedMachineFeatures.BuilderclearEnableNestedVirtualization()Whether to enable nested virtualization or not (default is false).AdvancedMachineFeatures.BuilderclearEnableUefiNetworking()Whether to enable UEFI networking for instance creation.AdvancedMachineFeatures.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)AdvancedMachineFeatures.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)AdvancedMachineFeatures.BuilderclearThreadsPerCore()The number of threads per physical core.AdvancedMachineFeatures.BuilderclearVisibleCoreCount()The number of physical cores to expose to an instance.AdvancedMachineFeatures.Builderclone()AdvancedMachineFeaturesgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()booleangetEnableNestedVirtualization()Whether to enable nested virtualization or not (default is false).booleangetEnableUefiNetworking()Whether to enable UEFI networking for instance creation.intgetThreadsPerCore()The number of threads per physical core.intgetVisibleCoreCount()The number of physical cores to expose to an instance.booleanhasEnableNestedVirtualization()Whether to enable nested virtualization or not (default is false).booleanhasEnableUefiNetworking()Whether to enable UEFI networking for instance creation.booleanhasThreadsPerCore()The number of threads per physical core.booleanhasVisibleCoreCount()The number of physical cores to expose to an instance.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()AdvancedMachineFeatures.BuildermergeFrom(AdvancedMachineFeatures other)AdvancedMachineFeatures.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)AdvancedMachineFeatures.BuildermergeFrom(com.google.protobuf.Message other)AdvancedMachineFeatures.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)AdvancedMachineFeatures.BuildersetEnableNestedVirtualization(boolean value)Whether to enable nested virtualization or not (default is false).AdvancedMachineFeatures.BuildersetEnableUefiNetworking(boolean value)Whether to enable UEFI networking for instance creation.AdvancedMachineFeatures.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)AdvancedMachineFeatures.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)AdvancedMachineFeatures.BuildersetThreadsPerCore(int value)The number of threads per physical core.AdvancedMachineFeatures.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)AdvancedMachineFeatures.BuildersetVisibleCoreCount(int value)The number of physical cores to expose to an instance.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, 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()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<AdvancedMachineFeatures.Builder>
-
clear
public AdvancedMachineFeatures.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<AdvancedMachineFeatures.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<AdvancedMachineFeatures.Builder>
-
getDefaultInstanceForType
public AdvancedMachineFeatures getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public AdvancedMachineFeatures build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AdvancedMachineFeatures buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AdvancedMachineFeatures.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<AdvancedMachineFeatures.Builder>
-
setField
public AdvancedMachineFeatures.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<AdvancedMachineFeatures.Builder>
-
clearField
public AdvancedMachineFeatures.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AdvancedMachineFeatures.Builder>
-
clearOneof
public AdvancedMachineFeatures.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<AdvancedMachineFeatures.Builder>
-
setRepeatedField
public AdvancedMachineFeatures.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<AdvancedMachineFeatures.Builder>
-
addRepeatedField
public AdvancedMachineFeatures.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<AdvancedMachineFeatures.Builder>
-
mergeFrom
public AdvancedMachineFeatures.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AdvancedMachineFeatures.Builder>
-
mergeFrom
public AdvancedMachineFeatures.Builder mergeFrom(AdvancedMachineFeatures other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<AdvancedMachineFeatures.Builder>
-
mergeFrom
public AdvancedMachineFeatures.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<AdvancedMachineFeatures.Builder>- Throws:
IOException
-
hasEnableNestedVirtualization
public boolean hasEnableNestedVirtualization()
Whether to enable nested virtualization or not (default is false).
optional bool enable_nested_virtualization = 16639365;- Specified by:
hasEnableNestedVirtualizationin interfaceAdvancedMachineFeaturesOrBuilder- Returns:
- Whether the enableNestedVirtualization field is set.
-
getEnableNestedVirtualization
public boolean getEnableNestedVirtualization()
Whether to enable nested virtualization or not (default is false).
optional bool enable_nested_virtualization = 16639365;- Specified by:
getEnableNestedVirtualizationin interfaceAdvancedMachineFeaturesOrBuilder- Returns:
- The enableNestedVirtualization.
-
setEnableNestedVirtualization
public AdvancedMachineFeatures.Builder setEnableNestedVirtualization(boolean value)
Whether to enable nested virtualization or not (default is false).
optional bool enable_nested_virtualization = 16639365;- Parameters:
value- The enableNestedVirtualization to set.- Returns:
- This builder for chaining.
-
clearEnableNestedVirtualization
public AdvancedMachineFeatures.Builder clearEnableNestedVirtualization()
Whether to enable nested virtualization or not (default is false).
optional bool enable_nested_virtualization = 16639365;- Returns:
- This builder for chaining.
-
hasEnableUefiNetworking
public boolean hasEnableUefiNetworking()
Whether to enable UEFI networking for instance creation.
optional bool enable_uefi_networking = 334485668;- Specified by:
hasEnableUefiNetworkingin interfaceAdvancedMachineFeaturesOrBuilder- Returns:
- Whether the enableUefiNetworking field is set.
-
getEnableUefiNetworking
public boolean getEnableUefiNetworking()
Whether to enable UEFI networking for instance creation.
optional bool enable_uefi_networking = 334485668;- Specified by:
getEnableUefiNetworkingin interfaceAdvancedMachineFeaturesOrBuilder- Returns:
- The enableUefiNetworking.
-
setEnableUefiNetworking
public AdvancedMachineFeatures.Builder setEnableUefiNetworking(boolean value)
Whether to enable UEFI networking for instance creation.
optional bool enable_uefi_networking = 334485668;- Parameters:
value- The enableUefiNetworking to set.- Returns:
- This builder for chaining.
-
clearEnableUefiNetworking
public AdvancedMachineFeatures.Builder clearEnableUefiNetworking()
Whether to enable UEFI networking for instance creation.
optional bool enable_uefi_networking = 334485668;- Returns:
- This builder for chaining.
-
hasThreadsPerCore
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;- Specified by:
hasThreadsPerCorein interfaceAdvancedMachineFeaturesOrBuilder- Returns:
- Whether the threadsPerCore field is set.
-
getThreadsPerCore
public 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;- Specified by:
getThreadsPerCorein interfaceAdvancedMachineFeaturesOrBuilder- Returns:
- The threadsPerCore.
-
setThreadsPerCore
public 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;- Parameters:
value- The threadsPerCore to set.- Returns:
- This builder for chaining.
-
clearThreadsPerCore
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;- Returns:
- This builder for chaining.
-
hasVisibleCoreCount
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;- Specified by:
hasVisibleCoreCountin interfaceAdvancedMachineFeaturesOrBuilder- Returns:
- Whether the visibleCoreCount field is set.
-
getVisibleCoreCount
public 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;- Specified by:
getVisibleCoreCountin interfaceAdvancedMachineFeaturesOrBuilder- Returns:
- The visibleCoreCount.
-
setVisibleCoreCount
public 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;- Parameters:
value- The visibleCoreCount to set.- Returns:
- This builder for chaining.
-
clearVisibleCoreCount
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;- Returns:
- This builder for chaining.
-
setUnknownFields
public final AdvancedMachineFeatures.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AdvancedMachineFeatures.Builder>
-
mergeUnknownFields
public final AdvancedMachineFeatures.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AdvancedMachineFeatures.Builder>
-
-