Class LinuxNodeConfig.SwapConfig.Builder (2.81.0)

public static final class LinuxNodeConfig.SwapConfig.Builder extends GeneratedMessageV3.Builder<LinuxNodeConfig.SwapConfig.Builder> implements LinuxNodeConfig.SwapConfigOrBuilder

Configuration for swap memory on a node pool.

Protobuf type google.container.v1beta1.LinuxNodeConfig.SwapConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public LinuxNodeConfig.SwapConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
LinuxNodeConfig.SwapConfig.Builder
Overrides

build()

public LinuxNodeConfig.SwapConfig build()
Returns
Type Description
LinuxNodeConfig.SwapConfig

buildPartial()

public LinuxNodeConfig.SwapConfig buildPartial()
Returns
Type Description
LinuxNodeConfig.SwapConfig

clear()

public LinuxNodeConfig.SwapConfig.Builder clear()
Returns
Type Description
LinuxNodeConfig.SwapConfig.Builder
Overrides

clearBootDiskProfile()

public LinuxNodeConfig.SwapConfig.Builder clearBootDiskProfile()

Swap on the node's boot disk.

.google.container.v1beta1.LinuxNodeConfig.SwapConfig.BootDiskProfile boot_disk_profile = 3;

Returns
Type Description
LinuxNodeConfig.SwapConfig.Builder

clearDedicatedLocalSsdProfile()

public LinuxNodeConfig.SwapConfig.Builder clearDedicatedLocalSsdProfile()

Provisions a new, separate local NVMe SSD exclusively for swap.

.google.container.v1beta1.LinuxNodeConfig.SwapConfig.DedicatedLocalSsdProfile dedicated_local_ssd_profile = 5;

Returns
Type Description
LinuxNodeConfig.SwapConfig.Builder

clearEnabled()

public LinuxNodeConfig.SwapConfig.Builder clearEnabled()

Optional. Enables or disables swap for the node pool.

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

Returns
Type Description
LinuxNodeConfig.SwapConfig.Builder

This builder for chaining.

clearEncryptionConfig()

public LinuxNodeConfig.SwapConfig.Builder clearEncryptionConfig()

Optional. If omitted, swap space is encrypted by default.

optional .google.container.v1beta1.LinuxNodeConfig.SwapConfig.EncryptionConfig encryption_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
LinuxNodeConfig.SwapConfig.Builder

clearEphemeralLocalSsdProfile()

public LinuxNodeConfig.SwapConfig.Builder clearEphemeralLocalSsdProfile()

Swap on the local SSD shared with pod ephemeral storage.

.google.container.v1beta1.LinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfile ephemeral_local_ssd_profile = 4;

Returns
Type Description
LinuxNodeConfig.SwapConfig.Builder

clearField(Descriptors.FieldDescriptor field)

public LinuxNodeConfig.SwapConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
LinuxNodeConfig.SwapConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public LinuxNodeConfig.SwapConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
LinuxNodeConfig.SwapConfig.Builder
Overrides

clearPerformanceProfile()

public LinuxNodeConfig.SwapConfig.Builder clearPerformanceProfile()
Returns
Type Description
LinuxNodeConfig.SwapConfig.Builder

clone()

public LinuxNodeConfig.SwapConfig.Builder clone()
Returns
Type Description
LinuxNodeConfig.SwapConfig.Builder
Overrides

getBootDiskProfile()

public LinuxNodeConfig.SwapConfig.BootDiskProfile getBootDiskProfile()

Swap on the node's boot disk.

.google.container.v1beta1.LinuxNodeConfig.SwapConfig.BootDiskProfile boot_disk_profile = 3;

Returns
Type Description
LinuxNodeConfig.SwapConfig.BootDiskProfile

The bootDiskProfile.

getBootDiskProfileBuilder()

public LinuxNodeConfig.SwapConfig.BootDiskProfile.Builder getBootDiskProfileBuilder()

Swap on the node's boot disk.

.google.container.v1beta1.LinuxNodeConfig.SwapConfig.BootDiskProfile boot_disk_profile = 3;

Returns
Type Description
LinuxNodeConfig.SwapConfig.BootDiskProfile.Builder

getBootDiskProfileOrBuilder()

public LinuxNodeConfig.SwapConfig.BootDiskProfileOrBuilder getBootDiskProfileOrBuilder()

Swap on the node's boot disk.

.google.container.v1beta1.LinuxNodeConfig.SwapConfig.BootDiskProfile boot_disk_profile = 3;

Returns
Type Description
LinuxNodeConfig.SwapConfig.BootDiskProfileOrBuilder

getDedicatedLocalSsdProfile()

public LinuxNodeConfig.SwapConfig.DedicatedLocalSsdProfile getDedicatedLocalSsdProfile()

Provisions a new, separate local NVMe SSD exclusively for swap.

.google.container.v1beta1.LinuxNodeConfig.SwapConfig.DedicatedLocalSsdProfile dedicated_local_ssd_profile = 5;

Returns
Type Description
LinuxNodeConfig.SwapConfig.DedicatedLocalSsdProfile

The dedicatedLocalSsdProfile.

getDedicatedLocalSsdProfileBuilder()

public LinuxNodeConfig.SwapConfig.DedicatedLocalSsdProfile.Builder getDedicatedLocalSsdProfileBuilder()

Provisions a new, separate local NVMe SSD exclusively for swap.

.google.container.v1beta1.LinuxNodeConfig.SwapConfig.DedicatedLocalSsdProfile dedicated_local_ssd_profile = 5;

Returns
Type Description
LinuxNodeConfig.SwapConfig.DedicatedLocalSsdProfile.Builder

getDedicatedLocalSsdProfileOrBuilder()

public LinuxNodeConfig.SwapConfig.DedicatedLocalSsdProfileOrBuilder getDedicatedLocalSsdProfileOrBuilder()

Provisions a new, separate local NVMe SSD exclusively for swap.

.google.container.v1beta1.LinuxNodeConfig.SwapConfig.DedicatedLocalSsdProfile dedicated_local_ssd_profile = 5;

Returns
Type Description
LinuxNodeConfig.SwapConfig.DedicatedLocalSsdProfileOrBuilder

getDefaultInstanceForType()

public LinuxNodeConfig.SwapConfig getDefaultInstanceForType()
Returns
Type Description
LinuxNodeConfig.SwapConfig

getDescriptorForType()

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

getEnabled()

public boolean getEnabled()

Optional. Enables or disables swap for the node pool.

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

Returns
Type Description
boolean

The enabled.

getEncryptionConfig()

public LinuxNodeConfig.SwapConfig.EncryptionConfig getEncryptionConfig()

Optional. If omitted, swap space is encrypted by default.

optional .google.container.v1beta1.LinuxNodeConfig.SwapConfig.EncryptionConfig encryption_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
LinuxNodeConfig.SwapConfig.EncryptionConfig

The encryptionConfig.

getEncryptionConfigBuilder()

public LinuxNodeConfig.SwapConfig.EncryptionConfig.Builder getEncryptionConfigBuilder()

Optional. If omitted, swap space is encrypted by default.

optional .google.container.v1beta1.LinuxNodeConfig.SwapConfig.EncryptionConfig encryption_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
LinuxNodeConfig.SwapConfig.EncryptionConfig.Builder

getEncryptionConfigOrBuilder()

public LinuxNodeConfig.SwapConfig.EncryptionConfigOrBuilder getEncryptionConfigOrBuilder()

Optional. If omitted, swap space is encrypted by default.

optional .google.container.v1beta1.LinuxNodeConfig.SwapConfig.EncryptionConfig encryption_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
LinuxNodeConfig.SwapConfig.EncryptionConfigOrBuilder

getEphemeralLocalSsdProfile()

public LinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfile getEphemeralLocalSsdProfile()

Swap on the local SSD shared with pod ephemeral storage.

.google.container.v1beta1.LinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfile ephemeral_local_ssd_profile = 4;

Returns
Type Description
LinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfile

The ephemeralLocalSsdProfile.

getEphemeralLocalSsdProfileBuilder()

public LinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfile.Builder getEphemeralLocalSsdProfileBuilder()

Swap on the local SSD shared with pod ephemeral storage.

.google.container.v1beta1.LinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfile ephemeral_local_ssd_profile = 4;

Returns
Type Description
LinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfile.Builder

getEphemeralLocalSsdProfileOrBuilder()

public LinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfileOrBuilder getEphemeralLocalSsdProfileOrBuilder()

Swap on the local SSD shared with pod ephemeral storage.

.google.container.v1beta1.LinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfile ephemeral_local_ssd_profile = 4;

Returns
Type Description
LinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfileOrBuilder

getPerformanceProfileCase()

public LinuxNodeConfig.SwapConfig.PerformanceProfileCase getPerformanceProfileCase()
Returns
Type Description
LinuxNodeConfig.SwapConfig.PerformanceProfileCase

hasBootDiskProfile()

public boolean hasBootDiskProfile()

Swap on the node's boot disk.

.google.container.v1beta1.LinuxNodeConfig.SwapConfig.BootDiskProfile boot_disk_profile = 3;

Returns
Type Description
boolean

Whether the bootDiskProfile field is set.

hasDedicatedLocalSsdProfile()

public boolean hasDedicatedLocalSsdProfile()

Provisions a new, separate local NVMe SSD exclusively for swap.

.google.container.v1beta1.LinuxNodeConfig.SwapConfig.DedicatedLocalSsdProfile dedicated_local_ssd_profile = 5;

Returns
Type Description
boolean

Whether the dedicatedLocalSsdProfile field is set.

hasEnabled()

public boolean hasEnabled()

Optional. Enables or disables swap for the node pool.

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

Returns
Type Description
boolean

Whether the enabled field is set.

hasEncryptionConfig()

public boolean hasEncryptionConfig()

Optional. If omitted, swap space is encrypted by default.

optional .google.container.v1beta1.LinuxNodeConfig.SwapConfig.EncryptionConfig encryption_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the encryptionConfig field is set.

hasEphemeralLocalSsdProfile()

public boolean hasEphemeralLocalSsdProfile()

Swap on the local SSD shared with pod ephemeral storage.

.google.container.v1beta1.LinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfile ephemeral_local_ssd_profile = 4;

Returns
Type Description
boolean

Whether the ephemeralLocalSsdProfile field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeBootDiskProfile(LinuxNodeConfig.SwapConfig.BootDiskProfile value)

public LinuxNodeConfig.SwapConfig.Builder mergeBootDiskProfile(LinuxNodeConfig.SwapConfig.BootDiskProfile value)

Swap on the node's boot disk.

.google.container.v1beta1.LinuxNodeConfig.SwapConfig.BootDiskProfile boot_disk_profile = 3;

Parameter
Name Description
value LinuxNodeConfig.SwapConfig.BootDiskProfile
Returns
Type Description
LinuxNodeConfig.SwapConfig.Builder

mergeDedicatedLocalSsdProfile(LinuxNodeConfig.SwapConfig.DedicatedLocalSsdProfile value)

public LinuxNodeConfig.SwapConfig.Builder mergeDedicatedLocalSsdProfile(LinuxNodeConfig.SwapConfig.DedicatedLocalSsdProfile value)

Provisions a new, separate local NVMe SSD exclusively for swap.

.google.container.v1beta1.LinuxNodeConfig.SwapConfig.DedicatedLocalSsdProfile dedicated_local_ssd_profile = 5;

Parameter
Name Description
value LinuxNodeConfig.SwapConfig.DedicatedLocalSsdProfile
Returns
Type Description
LinuxNodeConfig.SwapConfig.Builder

mergeEncryptionConfig(LinuxNodeConfig.SwapConfig.EncryptionConfig value)

public LinuxNodeConfig.SwapConfig.Builder mergeEncryptionConfig(LinuxNodeConfig.SwapConfig.EncryptionConfig value)

Optional. If omitted, swap space is encrypted by default.

optional .google.container.v1beta1.LinuxNodeConfig.SwapConfig.EncryptionConfig encryption_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value LinuxNodeConfig.SwapConfig.EncryptionConfig
Returns
Type Description
LinuxNodeConfig.SwapConfig.Builder

mergeEphemeralLocalSsdProfile(LinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfile value)

public LinuxNodeConfig.SwapConfig.Builder mergeEphemeralLocalSsdProfile(LinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfile value)

Swap on the local SSD shared with pod ephemeral storage.

.google.container.v1beta1.LinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfile ephemeral_local_ssd_profile = 4;

Parameter
Name Description
value LinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfile
Returns
Type Description
LinuxNodeConfig.SwapConfig.Builder

mergeFrom(LinuxNodeConfig.SwapConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LinuxNodeConfig.SwapConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
LinuxNodeConfig.SwapConfig.Builder
Overrides

setBootDiskProfile(LinuxNodeConfig.SwapConfig.BootDiskProfile value)

public LinuxNodeConfig.SwapConfig.Builder setBootDiskProfile(LinuxNodeConfig.SwapConfig.BootDiskProfile value)

Swap on the node's boot disk.

.google.container.v1beta1.LinuxNodeConfig.SwapConfig.BootDiskProfile boot_disk_profile = 3;

Parameter
Name Description
value LinuxNodeConfig.SwapConfig.BootDiskProfile
Returns
Type Description
LinuxNodeConfig.SwapConfig.Builder

setBootDiskProfile(LinuxNodeConfig.SwapConfig.BootDiskProfile.Builder builderForValue)

public LinuxNodeConfig.SwapConfig.Builder setBootDiskProfile(LinuxNodeConfig.SwapConfig.BootDiskProfile.Builder builderForValue)

Swap on the node's boot disk.

.google.container.v1beta1.LinuxNodeConfig.SwapConfig.BootDiskProfile boot_disk_profile = 3;

Parameter
Name Description
builderForValue LinuxNodeConfig.SwapConfig.BootDiskProfile.Builder
Returns
Type Description
LinuxNodeConfig.SwapConfig.Builder

setDedicatedLocalSsdProfile(LinuxNodeConfig.SwapConfig.DedicatedLocalSsdProfile value)

public LinuxNodeConfig.SwapConfig.Builder setDedicatedLocalSsdProfile(LinuxNodeConfig.SwapConfig.DedicatedLocalSsdProfile value)

Provisions a new, separate local NVMe SSD exclusively for swap.

.google.container.v1beta1.LinuxNodeConfig.SwapConfig.DedicatedLocalSsdProfile dedicated_local_ssd_profile = 5;

Parameter
Name Description
value LinuxNodeConfig.SwapConfig.DedicatedLocalSsdProfile
Returns
Type Description
LinuxNodeConfig.SwapConfig.Builder

setDedicatedLocalSsdProfile(LinuxNodeConfig.SwapConfig.DedicatedLocalSsdProfile.Builder builderForValue)

public LinuxNodeConfig.SwapConfig.Builder setDedicatedLocalSsdProfile(LinuxNodeConfig.SwapConfig.DedicatedLocalSsdProfile.Builder builderForValue)

Provisions a new, separate local NVMe SSD exclusively for swap.

.google.container.v1beta1.LinuxNodeConfig.SwapConfig.DedicatedLocalSsdProfile dedicated_local_ssd_profile = 5;

Parameter
Name Description
builderForValue LinuxNodeConfig.SwapConfig.DedicatedLocalSsdProfile.Builder
Returns
Type Description
LinuxNodeConfig.SwapConfig.Builder

setEnabled(boolean value)

public LinuxNodeConfig.SwapConfig.Builder setEnabled(boolean value)

Optional. Enables or disables swap for the node pool.

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

Parameter
Name Description
value boolean

The enabled to set.

Returns
Type Description
LinuxNodeConfig.SwapConfig.Builder

This builder for chaining.

setEncryptionConfig(LinuxNodeConfig.SwapConfig.EncryptionConfig value)

public LinuxNodeConfig.SwapConfig.Builder setEncryptionConfig(LinuxNodeConfig.SwapConfig.EncryptionConfig value)

Optional. If omitted, swap space is encrypted by default.

optional .google.container.v1beta1.LinuxNodeConfig.SwapConfig.EncryptionConfig encryption_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value LinuxNodeConfig.SwapConfig.EncryptionConfig
Returns
Type Description
LinuxNodeConfig.SwapConfig.Builder

setEncryptionConfig(LinuxNodeConfig.SwapConfig.EncryptionConfig.Builder builderForValue)

public LinuxNodeConfig.SwapConfig.Builder setEncryptionConfig(LinuxNodeConfig.SwapConfig.EncryptionConfig.Builder builderForValue)

Optional. If omitted, swap space is encrypted by default.

optional .google.container.v1beta1.LinuxNodeConfig.SwapConfig.EncryptionConfig encryption_config = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue LinuxNodeConfig.SwapConfig.EncryptionConfig.Builder
Returns
Type Description
LinuxNodeConfig.SwapConfig.Builder

setEphemeralLocalSsdProfile(LinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfile value)

public LinuxNodeConfig.SwapConfig.Builder setEphemeralLocalSsdProfile(LinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfile value)

Swap on the local SSD shared with pod ephemeral storage.

.google.container.v1beta1.LinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfile ephemeral_local_ssd_profile = 4;

Parameter
Name Description
value LinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfile
Returns
Type Description
LinuxNodeConfig.SwapConfig.Builder

setEphemeralLocalSsdProfile(LinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfile.Builder builderForValue)

public LinuxNodeConfig.SwapConfig.Builder setEphemeralLocalSsdProfile(LinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfile.Builder builderForValue)

Swap on the local SSD shared with pod ephemeral storage.

.google.container.v1beta1.LinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfile ephemeral_local_ssd_profile = 4;

Parameter
Name Description
builderForValue LinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfile.Builder
Returns
Type Description
LinuxNodeConfig.SwapConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public LinuxNodeConfig.SwapConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
LinuxNodeConfig.SwapConfig.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public LinuxNodeConfig.SwapConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
LinuxNodeConfig.SwapConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final LinuxNodeConfig.SwapConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
LinuxNodeConfig.SwapConfig.Builder
Overrides