Class NodeKubeletConfig.CrashLoopBackOffConfig.Builder (2.96.0)

public static final class NodeKubeletConfig.CrashLoopBackOffConfig.Builder extends GeneratedMessage.Builder<NodeKubeletConfig.CrashLoopBackOffConfig.Builder> implements NodeKubeletConfig.CrashLoopBackOffConfigOrBuilder

Contains config to modify node-level parameters for container restart behavior.

Protobuf type google.container.v1beta1.NodeKubeletConfig.CrashLoopBackOffConfig

Static Methods

getDescriptor()

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

Methods

build()

public NodeKubeletConfig.CrashLoopBackOffConfig build()
Returns
Type Description
NodeKubeletConfig.CrashLoopBackOffConfig

buildPartial()

public NodeKubeletConfig.CrashLoopBackOffConfig buildPartial()
Returns
Type Description
NodeKubeletConfig.CrashLoopBackOffConfig

clear()

public NodeKubeletConfig.CrashLoopBackOffConfig.Builder clear()
Returns
Type Description
NodeKubeletConfig.CrashLoopBackOffConfig.Builder
Overrides

clearMaxContainerRestartPeriod()

public NodeKubeletConfig.CrashLoopBackOffConfig.Builder clearMaxContainerRestartPeriod()

Optional. The maximum duration the backoff delay can accrue to for container restarts, minimum 1 second, maximum 300 seconds. If not set, defaults to the internal crashloopbackoff maximum.

The string must be a sequence of decimal numbers, each with optional fraction and a unit suffix, such as "300ms". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".

See https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#configurable-container-restart-delay for more details.

string max_container_restart_period = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
NodeKubeletConfig.CrashLoopBackOffConfig.Builder

This builder for chaining.

getDefaultInstanceForType()

public NodeKubeletConfig.CrashLoopBackOffConfig getDefaultInstanceForType()
Returns
Type Description
NodeKubeletConfig.CrashLoopBackOffConfig

getDescriptorForType()

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

getMaxContainerRestartPeriod()

public String getMaxContainerRestartPeriod()

Optional. The maximum duration the backoff delay can accrue to for container restarts, minimum 1 second, maximum 300 seconds. If not set, defaults to the internal crashloopbackoff maximum.

The string must be a sequence of decimal numbers, each with optional fraction and a unit suffix, such as "300ms". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".

See https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#configurable-container-restart-delay for more details.

string max_container_restart_period = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The maxContainerRestartPeriod.

getMaxContainerRestartPeriodBytes()

public ByteString getMaxContainerRestartPeriodBytes()

Optional. The maximum duration the backoff delay can accrue to for container restarts, minimum 1 second, maximum 300 seconds. If not set, defaults to the internal crashloopbackoff maximum.

The string must be a sequence of decimal numbers, each with optional fraction and a unit suffix, such as "300ms". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".

See https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#configurable-container-restart-delay for more details.

string max_container_restart_period = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for maxContainerRestartPeriod.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(NodeKubeletConfig.CrashLoopBackOffConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setMaxContainerRestartPeriod(String value)

public NodeKubeletConfig.CrashLoopBackOffConfig.Builder setMaxContainerRestartPeriod(String value)

Optional. The maximum duration the backoff delay can accrue to for container restarts, minimum 1 second, maximum 300 seconds. If not set, defaults to the internal crashloopbackoff maximum.

The string must be a sequence of decimal numbers, each with optional fraction and a unit suffix, such as "300ms". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".

See https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#configurable-container-restart-delay for more details.

string max_container_restart_period = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The maxContainerRestartPeriod to set.

Returns
Type Description
NodeKubeletConfig.CrashLoopBackOffConfig.Builder

This builder for chaining.

setMaxContainerRestartPeriodBytes(ByteString value)

public NodeKubeletConfig.CrashLoopBackOffConfig.Builder setMaxContainerRestartPeriodBytes(ByteString value)

Optional. The maximum duration the backoff delay can accrue to for container restarts, minimum 1 second, maximum 300 seconds. If not set, defaults to the internal crashloopbackoff maximum.

The string must be a sequence of decimal numbers, each with optional fraction and a unit suffix, such as "300ms". Valid time units are "ns", "us" (or "µs"), "ms", "s", "m", "h".

See https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#configurable-container-restart-delay for more details.

string max_container_restart_period = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for maxContainerRestartPeriod to set.

Returns
Type Description
NodeKubeletConfig.CrashLoopBackOffConfig.Builder

This builder for chaining.