Class NodeTaint.Builder (2.45.0)

public static final class NodeTaint.Builder extends GeneratedMessageV3.Builder<NodeTaint.Builder> implements NodeTaintOrBuilder

Kubernetes taint is composed of three fields: key, value, and effect. Effect can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.

See here for more information, including usage and the valid values.

Protobuf type google.container.v1beta1.NodeTaint

Implements

NodeTaintOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public NodeTaint build()
Returns
Type Description
NodeTaint

buildPartial()

public NodeTaint buildPartial()
Returns
Type Description
NodeTaint

clear()

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

clearEffect()

public NodeTaint.Builder clearEffect()

Effect for taint.

.google.container.v1beta1.NodeTaint.Effect effect = 3;

Returns
Type Description
NodeTaint.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearKey()

public NodeTaint.Builder clearKey()

Key for taint.

string key = 1;

Returns
Type Description
NodeTaint.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearValue()

public NodeTaint.Builder clearValue()

Value for taint.

string value = 2;

Returns
Type Description
NodeTaint.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public NodeTaint getDefaultInstanceForType()
Returns
Type Description
NodeTaint

getDescriptorForType()

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

getEffect()

public NodeTaint.Effect getEffect()

Effect for taint.

.google.container.v1beta1.NodeTaint.Effect effect = 3;

Returns
Type Description
NodeTaint.Effect

The effect.

getEffectValue()

public int getEffectValue()

Effect for taint.

.google.container.v1beta1.NodeTaint.Effect effect = 3;

Returns
Type Description
int

The enum numeric value on the wire for effect.

getKey()

public String getKey()

Key for taint.

string key = 1;

Returns
Type Description
String

The key.

getKeyBytes()

public ByteString getKeyBytes()

Key for taint.

string key = 1;

Returns
Type Description
ByteString

The bytes for key.

getValue()

public String getValue()

Value for taint.

string value = 2;

Returns
Type Description
String

The value.

getValueBytes()

public ByteString getValueBytes()

Value for taint.

string value = 2;

Returns
Type Description
ByteString

The bytes for value.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(NodeTaint other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEffect(NodeTaint.Effect value)

public NodeTaint.Builder setEffect(NodeTaint.Effect value)

Effect for taint.

.google.container.v1beta1.NodeTaint.Effect effect = 3;

Parameter
Name Description
value NodeTaint.Effect

The effect to set.

Returns
Type Description
NodeTaint.Builder

This builder for chaining.

setEffectValue(int value)

public NodeTaint.Builder setEffectValue(int value)

Effect for taint.

.google.container.v1beta1.NodeTaint.Effect effect = 3;

Parameter
Name Description
value int

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

Returns
Type Description
NodeTaint.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setKey(String value)

public NodeTaint.Builder setKey(String value)

Key for taint.

string key = 1;

Parameter
Name Description
value String

The key to set.

Returns
Type Description
NodeTaint.Builder

This builder for chaining.

setKeyBytes(ByteString value)

public NodeTaint.Builder setKeyBytes(ByteString value)

Key for taint.

string key = 1;

Parameter
Name Description
value ByteString

The bytes for key to set.

Returns
Type Description
NodeTaint.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setValue(String value)

public NodeTaint.Builder setValue(String value)

Value for taint.

string value = 2;

Parameter
Name Description
value String

The value to set.

Returns
Type Description
NodeTaint.Builder

This builder for chaining.

setValueBytes(ByteString value)

public NodeTaint.Builder setValueBytes(ByteString value)

Value for taint.

string value = 2;

Parameter
Name Description
value ByteString

The bytes for value to set.

Returns
Type Description
NodeTaint.Builder

This builder for chaining.