Class LinuxNodeConfig.Builder (2.23.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public LinuxNodeConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
LinuxNodeConfig.Builder
Overrides

build()

public LinuxNodeConfig build()
Returns
TypeDescription
LinuxNodeConfig

buildPartial()

public LinuxNodeConfig buildPartial()
Returns
TypeDescription
LinuxNodeConfig

clear()

public LinuxNodeConfig.Builder clear()
Returns
TypeDescription
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
TypeDescription
LinuxNodeConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public LinuxNodeConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
LinuxNodeConfig.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public LinuxNodeConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
LinuxNodeConfig.Builder
Overrides

clearSysctls()

public LinuxNodeConfig.Builder clearSysctls()
Returns
TypeDescription
LinuxNodeConfig.Builder

clone()

public LinuxNodeConfig.Builder clone()
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for cgroupMode.

getDefaultInstanceForType()

public LinuxNodeConfig getDefaultInstanceForType()
Returns
TypeDescription
LinuxNodeConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMutableSysctls()

public Map<String,String> getMutableSysctls()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getSysctls()

public Map<String,String> getSysctls()

Use #getSysctlsMap() instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
String

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(LinuxNodeConfig other)

public LinuxNodeConfig.Builder mergeFrom(LinuxNodeConfig other)
Parameter
NameDescription
otherLinuxNodeConfig
Returns
TypeDescription
LinuxNodeConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public LinuxNodeConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LinuxNodeConfig.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public LinuxNodeConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
LinuxNodeConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LinuxNodeConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuesMap<String,String>
Returns
TypeDescription
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
NameDescription
keyString
valueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
valueLinuxNodeConfig.CgroupMode

The cgroupMode to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
LinuxNodeConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public LinuxNodeConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
LinuxNodeConfig.Builder
Overrides

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

public LinuxNodeConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
LinuxNodeConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final LinuxNodeConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
LinuxNodeConfig.Builder
Overrides