Class AdvancedMachineFeatures.Builder (0.44.0)

public static final class AdvancedMachineFeatures.Builder extends GeneratedMessage.Builder<AdvancedMachineFeatures.Builder> implements AdvancedMachineFeaturesOrBuilder

Specifies options for controlling advanced machine features.

Protobuf type google.cloud.backupdr.v1.AdvancedMachineFeatures

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public AdvancedMachineFeatures build()
Returns
Type Description
AdvancedMachineFeatures

buildPartial()

public AdvancedMachineFeatures buildPartial()
Returns
Type Description
AdvancedMachineFeatures

clear()

public AdvancedMachineFeatures.Builder clear()
Returns
Type Description
AdvancedMachineFeatures.Builder
Overrides

clearEnableNestedVirtualization()

public AdvancedMachineFeatures.Builder clearEnableNestedVirtualization()

Optional. Whether to enable nested virtualization or not (default is false).

optional bool enable_nested_virtualization = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AdvancedMachineFeatures.Builder

This builder for chaining.

clearEnableUefiNetworking()

public AdvancedMachineFeatures.Builder clearEnableUefiNetworking()

Optional. Whether to enable UEFI networking for instance creation.

optional bool enable_uefi_networking = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AdvancedMachineFeatures.Builder

This builder for chaining.

clearThreadsPerCore()

public AdvancedMachineFeatures.Builder clearThreadsPerCore()

Optional. 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 = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AdvancedMachineFeatures.Builder

This builder for chaining.

clearVisibleCoreCount()

public AdvancedMachineFeatures.Builder clearVisibleCoreCount()

Optional. 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 = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AdvancedMachineFeatures.Builder

This builder for chaining.

getDefaultInstanceForType()

public AdvancedMachineFeatures getDefaultInstanceForType()
Returns
Type Description
AdvancedMachineFeatures

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEnableNestedVirtualization()

public boolean getEnableNestedVirtualization()

Optional. Whether to enable nested virtualization or not (default is false).

optional bool enable_nested_virtualization = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The enableNestedVirtualization.

getEnableUefiNetworking()

public boolean getEnableUefiNetworking()

Optional. Whether to enable UEFI networking for instance creation.

optional bool enable_uefi_networking = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The enableUefiNetworking.

getThreadsPerCore()

public int getThreadsPerCore()

Optional. 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 = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The threadsPerCore.

getVisibleCoreCount()

public int getVisibleCoreCount()

Optional. 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 = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The visibleCoreCount.

hasEnableNestedVirtualization()

public boolean hasEnableNestedVirtualization()

Optional. Whether to enable nested virtualization or not (default is false).

optional bool enable_nested_virtualization = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the enableNestedVirtualization field is set.

hasEnableUefiNetworking()

public boolean hasEnableUefiNetworking()

Optional. Whether to enable UEFI networking for instance creation.

optional bool enable_uefi_networking = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the enableUefiNetworking field is set.

hasThreadsPerCore()

public boolean hasThreadsPerCore()

Optional. 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 = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the threadsPerCore field is set.

hasVisibleCoreCount()

public boolean hasVisibleCoreCount()

Optional. 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 = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the visibleCoreCount field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AdvancedMachineFeatures other)

public AdvancedMachineFeatures.Builder mergeFrom(AdvancedMachineFeatures other)
Parameter
Name Description
other AdvancedMachineFeatures
Returns
Type Description
AdvancedMachineFeatures.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AdvancedMachineFeatures.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AdvancedMachineFeatures.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AdvancedMachineFeatures.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AdvancedMachineFeatures.Builder
Overrides

setEnableNestedVirtualization(boolean value)

public AdvancedMachineFeatures.Builder setEnableNestedVirtualization(boolean value)

Optional. Whether to enable nested virtualization or not (default is false).

optional bool enable_nested_virtualization = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The enableNestedVirtualization to set.

Returns
Type Description
AdvancedMachineFeatures.Builder

This builder for chaining.

setEnableUefiNetworking(boolean value)

public AdvancedMachineFeatures.Builder setEnableUefiNetworking(boolean value)

Optional. Whether to enable UEFI networking for instance creation.

optional bool enable_uefi_networking = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The enableUefiNetworking to set.

Returns
Type Description
AdvancedMachineFeatures.Builder

This builder for chaining.

setThreadsPerCore(int value)

public AdvancedMachineFeatures.Builder setThreadsPerCore(int value)

Optional. 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 = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The threadsPerCore to set.

Returns
Type Description
AdvancedMachineFeatures.Builder

This builder for chaining.

setVisibleCoreCount(int value)

public AdvancedMachineFeatures.Builder setVisibleCoreCount(int value)

Optional. 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 = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The visibleCoreCount to set.

Returns
Type Description
AdvancedMachineFeatures.Builder

This builder for chaining.