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.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
clearThreadsPerCore()
The number of threads per physical core.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.int
getThreadsPerCore()
The number of threads per physical core.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
hasThreadsPerCore()
The number of threads per physical core.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
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
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
AdvancedMachineFeatures.Builder
setVisibleCoreCount(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<AdvancedMachineFeatures.Builder>
-
clear
public AdvancedMachineFeatures.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<AdvancedMachineFeatures.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<AdvancedMachineFeatures.Builder>
-
getDefaultInstanceForType
public AdvancedMachineFeatures getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public AdvancedMachineFeatures build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AdvancedMachineFeatures buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AdvancedMachineFeatures.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<AdvancedMachineFeatures.Builder>
-
setField
public AdvancedMachineFeatures.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<AdvancedMachineFeatures.Builder>
-
clearField
public AdvancedMachineFeatures.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<AdvancedMachineFeatures.Builder>
-
clearOneof
public AdvancedMachineFeatures.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<AdvancedMachineFeatures.Builder>
-
setRepeatedField
public AdvancedMachineFeatures.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<AdvancedMachineFeatures.Builder>
-
addRepeatedField
public AdvancedMachineFeatures.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<AdvancedMachineFeatures.Builder>
-
mergeFrom
public AdvancedMachineFeatures.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<AdvancedMachineFeatures.Builder>
-
mergeFrom
public AdvancedMachineFeatures.Builder mergeFrom(AdvancedMachineFeatures other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
hasEnableNestedVirtualization
in 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:
getEnableNestedVirtualization
in 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:
hasEnableUefiNetworking
in 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:
getEnableUefiNetworking
in 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:
hasThreadsPerCore
in 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:
getThreadsPerCore
in 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:
hasVisibleCoreCount
in 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:
getVisibleCoreCount
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AdvancedMachineFeatures.Builder>
-
mergeUnknownFields
public final AdvancedMachineFeatures.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<AdvancedMachineFeatures.Builder>
-
-