Class LinuxNodeConfig.Builder (2.49.0)

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

Parameters that can be configured on Linux nodes.

Protobuf type google.container.v1beta1.LinuxNodeConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public LinuxNodeConfig build()
Returns
Type Description
LinuxNodeConfig

buildPartial()

public LinuxNodeConfig buildPartial()
Returns
Type Description
LinuxNodeConfig

clear()

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

clearCgroupMode()

public LinuxNodeConfig.Builder clearCgroupMode()

cgroup_mode specifies the cgroup mode to be used on the node.

.google.container.v1beta1.LinuxNodeConfig.CgroupMode cgroup_mode = 2;

Returns
Type Description
LinuxNodeConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearHugepages()

public LinuxNodeConfig.Builder clearHugepages()

Optional. Amounts for 2M and 1G hugepages

optional .google.container.v1beta1.LinuxNodeConfig.HugepagesConfig hugepages = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
LinuxNodeConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSysctls()

public LinuxNodeConfig.Builder clearSysctls()
Returns
Type Description
LinuxNodeConfig.Builder

clone()

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

containsSysctls(String key)

public boolean containsSysctls(String key)

The Linux kernel parameters to be applied to the nodes and all pods running on the nodes.

The following parameters are supported.

net.core.busy_poll net.core.busy_read net.core.netdev_max_backlog net.core.rmem_max net.core.wmem_default net.core.wmem_max net.core.optmem_max net.core.somaxconn net.ipv4.tcp_rmem net.ipv4.tcp_wmem net.ipv4.tcp_tw_reuse

map<string, string> sysctls = 1;

Parameter
Name Description
key String
Returns
Type Description
boolean

getCgroupMode()

public LinuxNodeConfig.CgroupMode getCgroupMode()

cgroup_mode specifies the cgroup mode to be used on the node.

.google.container.v1beta1.LinuxNodeConfig.CgroupMode cgroup_mode = 2;

Returns
Type Description
LinuxNodeConfig.CgroupMode

The cgroupMode.

getCgroupModeValue()

public int getCgroupModeValue()

cgroup_mode specifies the cgroup mode to be used on the node.

.google.container.v1beta1.LinuxNodeConfig.CgroupMode cgroup_mode = 2;

Returns
Type Description
int

The enum numeric value on the wire for cgroupMode.

getDefaultInstanceForType()

public LinuxNodeConfig getDefaultInstanceForType()
Returns
Type Description
LinuxNodeConfig

getDescriptorForType()

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

getHugepages()

public LinuxNodeConfig.HugepagesConfig getHugepages()

Optional. Amounts for 2M and 1G hugepages

optional .google.container.v1beta1.LinuxNodeConfig.HugepagesConfig hugepages = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
LinuxNodeConfig.HugepagesConfig

The hugepages.

getHugepagesBuilder()

public LinuxNodeConfig.HugepagesConfig.Builder getHugepagesBuilder()

Optional. Amounts for 2M and 1G hugepages

optional .google.container.v1beta1.LinuxNodeConfig.HugepagesConfig hugepages = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
LinuxNodeConfig.HugepagesConfig.Builder

getHugepagesOrBuilder()

public LinuxNodeConfig.HugepagesConfigOrBuilder getHugepagesOrBuilder()

Optional. Amounts for 2M and 1G hugepages

optional .google.container.v1beta1.LinuxNodeConfig.HugepagesConfig hugepages = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
LinuxNodeConfig.HugepagesConfigOrBuilder

getMutableSysctls() (deprecated)

public Map<String,String> getMutableSysctls()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getSysctls() (deprecated)

public Map<String,String> getSysctls()

Use #getSysctlsMap() instead.

Returns
Type Description
Map<String,String>

getSysctlsCount()

public int getSysctlsCount()

The Linux kernel parameters to be applied to the nodes and all pods running on the nodes.

The following parameters are supported.

net.core.busy_poll net.core.busy_read net.core.netdev_max_backlog net.core.rmem_max net.core.wmem_default net.core.wmem_max net.core.optmem_max net.core.somaxconn net.ipv4.tcp_rmem net.ipv4.tcp_wmem net.ipv4.tcp_tw_reuse

map<string, string> sysctls = 1;

Returns
Type Description
int

getSysctlsMap()

public Map<String,String> getSysctlsMap()

The Linux kernel parameters to be applied to the nodes and all pods running on the nodes.

The following parameters are supported.

net.core.busy_poll net.core.busy_read net.core.netdev_max_backlog net.core.rmem_max net.core.wmem_default net.core.wmem_max net.core.optmem_max net.core.somaxconn net.ipv4.tcp_rmem net.ipv4.tcp_wmem net.ipv4.tcp_tw_reuse

map<string, string> sysctls = 1;

Returns
Type Description
Map<String,String>

getSysctlsOrDefault(String key, String defaultValue)

public String getSysctlsOrDefault(String key, String defaultValue)

The Linux kernel parameters to be applied to the nodes and all pods running on the nodes.

The following parameters are supported.

net.core.busy_poll net.core.busy_read net.core.netdev_max_backlog net.core.rmem_max net.core.wmem_default net.core.wmem_max net.core.optmem_max net.core.somaxconn net.ipv4.tcp_rmem net.ipv4.tcp_wmem net.ipv4.tcp_tw_reuse

map<string, string> sysctls = 1;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getSysctlsOrThrow(String key)

public String getSysctlsOrThrow(String key)

The Linux kernel parameters to be applied to the nodes and all pods running on the nodes.

The following parameters are supported.

net.core.busy_poll net.core.busy_read net.core.netdev_max_backlog net.core.rmem_max net.core.wmem_default net.core.wmem_max net.core.optmem_max net.core.somaxconn net.ipv4.tcp_rmem net.ipv4.tcp_wmem net.ipv4.tcp_tw_reuse

map<string, string> sysctls = 1;

Parameter
Name Description
key String
Returns
Type Description
String

hasHugepages()

public boolean hasHugepages()

Optional. Amounts for 2M and 1G hugepages

optional .google.container.v1beta1.LinuxNodeConfig.HugepagesConfig hugepages = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the hugepages field is set.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(LinuxNodeConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeHugepages(LinuxNodeConfig.HugepagesConfig value)

public LinuxNodeConfig.Builder mergeHugepages(LinuxNodeConfig.HugepagesConfig value)

Optional. Amounts for 2M and 1G hugepages

optional .google.container.v1beta1.LinuxNodeConfig.HugepagesConfig hugepages = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value LinuxNodeConfig.HugepagesConfig
Returns
Type Description
LinuxNodeConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllSysctls(Map<String,String> values)

public LinuxNodeConfig.Builder putAllSysctls(Map<String,String> values)

The Linux kernel parameters to be applied to the nodes and all pods running on the nodes.

The following parameters are supported.

net.core.busy_poll net.core.busy_read net.core.netdev_max_backlog net.core.rmem_max net.core.wmem_default net.core.wmem_max net.core.optmem_max net.core.somaxconn net.ipv4.tcp_rmem net.ipv4.tcp_wmem net.ipv4.tcp_tw_reuse

map<string, string> sysctls = 1;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
LinuxNodeConfig.Builder

putSysctls(String key, String value)

public LinuxNodeConfig.Builder putSysctls(String key, String value)

The Linux kernel parameters to be applied to the nodes and all pods running on the nodes.

The following parameters are supported.

net.core.busy_poll net.core.busy_read net.core.netdev_max_backlog net.core.rmem_max net.core.wmem_default net.core.wmem_max net.core.optmem_max net.core.somaxconn net.ipv4.tcp_rmem net.ipv4.tcp_wmem net.ipv4.tcp_tw_reuse

map<string, string> sysctls = 1;

Parameters
Name Description
key String
value String
Returns
Type Description
LinuxNodeConfig.Builder

removeSysctls(String key)

public LinuxNodeConfig.Builder removeSysctls(String key)

The Linux kernel parameters to be applied to the nodes and all pods running on the nodes.

The following parameters are supported.

net.core.busy_poll net.core.busy_read net.core.netdev_max_backlog net.core.rmem_max net.core.wmem_default net.core.wmem_max net.core.optmem_max net.core.somaxconn net.ipv4.tcp_rmem net.ipv4.tcp_wmem net.ipv4.tcp_tw_reuse

map<string, string> sysctls = 1;

Parameter
Name Description
key String
Returns
Type Description
LinuxNodeConfig.Builder

setCgroupMode(LinuxNodeConfig.CgroupMode value)

public LinuxNodeConfig.Builder setCgroupMode(LinuxNodeConfig.CgroupMode value)

cgroup_mode specifies the cgroup mode to be used on the node.

.google.container.v1beta1.LinuxNodeConfig.CgroupMode cgroup_mode = 2;

Parameter
Name Description
value LinuxNodeConfig.CgroupMode

The cgroupMode to set.

Returns
Type Description
LinuxNodeConfig.Builder

This builder for chaining.

setCgroupModeValue(int value)

public LinuxNodeConfig.Builder setCgroupModeValue(int value)

cgroup_mode specifies the cgroup mode to be used on the node.

.google.container.v1beta1.LinuxNodeConfig.CgroupMode cgroup_mode = 2;

Parameter
Name Description
value int

The enum numeric value on the wire for cgroupMode to set.

Returns
Type Description
LinuxNodeConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setHugepages(LinuxNodeConfig.HugepagesConfig value)

public LinuxNodeConfig.Builder setHugepages(LinuxNodeConfig.HugepagesConfig value)

Optional. Amounts for 2M and 1G hugepages

optional .google.container.v1beta1.LinuxNodeConfig.HugepagesConfig hugepages = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value LinuxNodeConfig.HugepagesConfig
Returns
Type Description
LinuxNodeConfig.Builder

setHugepages(LinuxNodeConfig.HugepagesConfig.Builder builderForValue)

public LinuxNodeConfig.Builder setHugepages(LinuxNodeConfig.HugepagesConfig.Builder builderForValue)

Optional. Amounts for 2M and 1G hugepages

optional .google.container.v1beta1.LinuxNodeConfig.HugepagesConfig hugepages = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue LinuxNodeConfig.HugepagesConfig.Builder
Returns
Type Description
LinuxNodeConfig.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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