Class NodeTaint.Builder (0.29.0)

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

The taint content for the node taint.

Protobuf type google.cloud.gkemulticloud.v1.NodeTaint

Implements

NodeTaintOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public NodeTaint build()
Returns
TypeDescription
NodeTaint

buildPartial()

public NodeTaint buildPartial()
Returns
TypeDescription
NodeTaint

clear()

public NodeTaint.Builder clear()
Returns
TypeDescription
NodeTaint.Builder
Overrides

clearEffect()

public NodeTaint.Builder clearEffect()

Required. The taint effect.

.google.cloud.gkemulticloud.v1.NodeTaint.Effect effect = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
NodeTaint.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearKey()

public NodeTaint.Builder clearKey()

Required. Key for the taint.

string key = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
NodeTaint.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearValue()

public NodeTaint.Builder clearValue()

Required. Value for the taint.

string value = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
NodeTaint.Builder

This builder for chaining.

clone()

public NodeTaint.Builder clone()
Returns
TypeDescription
NodeTaint.Builder
Overrides

getDefaultInstanceForType()

public NodeTaint getDefaultInstanceForType()
Returns
TypeDescription
NodeTaint

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEffect()

public NodeTaint.Effect getEffect()

Required. The taint effect.

.google.cloud.gkemulticloud.v1.NodeTaint.Effect effect = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
NodeTaint.Effect

The effect.

getEffectValue()

public int getEffectValue()

Required. The taint effect.

.google.cloud.gkemulticloud.v1.NodeTaint.Effect effect = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The enum numeric value on the wire for effect.

getKey()

public String getKey()

Required. Key for the taint.

string key = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The key.

getKeyBytes()

public ByteString getKeyBytes()

Required. Key for the taint.

string key = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for key.

getValue()

public String getValue()

Required. Value for the taint.

string value = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The value.

getValueBytes()

public ByteString getValueBytes()

Required. Value for the taint.

string value = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for value.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(NodeTaint other)

public NodeTaint.Builder mergeFrom(NodeTaint other)
Parameter
NameDescription
otherNodeTaint
Returns
TypeDescription
NodeTaint.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NodeTaint.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NodeTaint.Builder
Overrides

setEffect(NodeTaint.Effect value)

public NodeTaint.Builder setEffect(NodeTaint.Effect value)

Required. The taint effect.

.google.cloud.gkemulticloud.v1.NodeTaint.Effect effect = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueNodeTaint.Effect

The effect to set.

Returns
TypeDescription
NodeTaint.Builder

This builder for chaining.

setEffectValue(int value)

public NodeTaint.Builder setEffectValue(int value)

Required. The taint effect.

.google.cloud.gkemulticloud.v1.NodeTaint.Effect effect = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueint

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

Returns
TypeDescription
NodeTaint.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setKey(String value)

public NodeTaint.Builder setKey(String value)

Required. Key for the taint.

string key = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The key to set.

Returns
TypeDescription
NodeTaint.Builder

This builder for chaining.

setKeyBytes(ByteString value)

public NodeTaint.Builder setKeyBytes(ByteString value)

Required. Key for the taint.

string key = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for key to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
NodeTaint.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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

setValue(String value)

public NodeTaint.Builder setValue(String value)

Required. Value for the taint.

string value = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The value to set.

Returns
TypeDescription
NodeTaint.Builder

This builder for chaining.

setValueBytes(ByteString value)

public NodeTaint.Builder setValueBytes(ByteString value)

Required. Value for the taint.

string value = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for value to set.

Returns
TypeDescription
NodeTaint.Builder

This builder for chaining.