Class LinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfile.Builder (2.86.0)

public static final class LinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfile.Builder extends GeneratedMessage.Builder<LinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfile.Builder> implements LinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfileOrBuilder

Swap on the local SSD shared with pod ephemeral storage.

Protobuf type google.container.v1.LinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfile

Static Methods

getDescriptor()

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

Methods

build()

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

buildPartial()

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

clear()

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

clearSwapSize()

public LinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfile.Builder clearSwapSize()
Returns
Type Description
LinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfile.Builder

clearSwapSizeGib()

public LinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfile.Builder clearSwapSizeGib()

Specifies the size of the swap space in gibibytes (GiB).

int64 swap_size_gib = 1;

Returns
Type Description
LinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfile.Builder

This builder for chaining.

clearSwapSizePercent()

public LinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfile.Builder clearSwapSizePercent()

Specifies the size of the swap space as a percentage of the ephemeral local SSD capacity.

int32 swap_size_percent = 2;

Returns
Type Description
LinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfile.Builder

This builder for chaining.

getDefaultInstanceForType()

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

getDescriptorForType()

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

getSwapSizeCase()

public LinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfile.SwapSizeCase getSwapSizeCase()
Returns
Type Description
LinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfile.SwapSizeCase

getSwapSizeGib()

public long getSwapSizeGib()

Specifies the size of the swap space in gibibytes (GiB).

int64 swap_size_gib = 1;

Returns
Type Description
long

The swapSizeGib.

getSwapSizePercent()

public int getSwapSizePercent()

Specifies the size of the swap space as a percentage of the ephemeral local SSD capacity.

int32 swap_size_percent = 2;

Returns
Type Description
int

The swapSizePercent.

hasSwapSizeGib()

public boolean hasSwapSizeGib()

Specifies the size of the swap space in gibibytes (GiB).

int64 swap_size_gib = 1;

Returns
Type Description
boolean

Whether the swapSizeGib field is set.

hasSwapSizePercent()

public boolean hasSwapSizePercent()

Specifies the size of the swap space as a percentage of the ephemeral local SSD capacity.

int32 swap_size_percent = 2;

Returns
Type Description
boolean

Whether the swapSizePercent field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(LinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfile other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setSwapSizeGib(long value)

public LinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfile.Builder setSwapSizeGib(long value)

Specifies the size of the swap space in gibibytes (GiB).

int64 swap_size_gib = 1;

Parameter
Name Description
value long

The swapSizeGib to set.

Returns
Type Description
LinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfile.Builder

This builder for chaining.

setSwapSizePercent(int value)

public LinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfile.Builder setSwapSizePercent(int value)

Specifies the size of the swap space as a percentage of the ephemeral local SSD capacity.

int32 swap_size_percent = 2;

Parameter
Name Description
value int

The swapSizePercent to set.

Returns
Type Description
LinuxNodeConfig.SwapConfig.EphemeralLocalSsdProfile.Builder

This builder for chaining.