Class Toleration.Builder (0.84.0)

public static final class Toleration.Builder extends GeneratedMessage.Builder<Toleration.Builder> implements TolerationOrBuilder

Toleration defines the fields for tolerations for pods created by auto-installed components.

Protobuf type google.cloud.gkemulticloud.v1.Toleration

Implements

TolerationOrBuilder

Static Methods

getDescriptor()

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

Methods

build()

public Toleration build()
Returns
Type Description
Toleration

buildPartial()

public Toleration buildPartial()
Returns
Type Description
Toleration

clear()

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

clearEffect()

public Toleration.Builder clearEffect()

Effect indicates the taint effect to match e.g. 'NoSchedule'

.google.cloud.gkemulticloud.v1.Toleration.Effect effect = 4;

Returns
Type Description
Toleration.Builder

This builder for chaining.

clearKey()

public Toleration.Builder clearKey()

Key is the taint key that the toleration applies to.

string key = 1;

Returns
Type Description
Toleration.Builder

This builder for chaining.

clearKeyOperator()

public Toleration.Builder clearKeyOperator()

KeyOperator represents a key's relationship to the value e.g. 'Exist'.

.google.cloud.gkemulticloud.v1.Toleration.KeyOperator key_operator = 3;

Returns
Type Description
Toleration.Builder

This builder for chaining.

clearValue()

public Toleration.Builder clearValue()

Value is the taint value that the toleration applies to.

string value = 2;

Returns
Type Description
Toleration.Builder

This builder for chaining.

getDefaultInstanceForType()

public Toleration getDefaultInstanceForType()
Returns
Type Description
Toleration

getDescriptorForType()

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

getEffect()

public Toleration.Effect getEffect()

Effect indicates the taint effect to match e.g. 'NoSchedule'

.google.cloud.gkemulticloud.v1.Toleration.Effect effect = 4;

Returns
Type Description
Toleration.Effect

The effect.

getEffectValue()

public int getEffectValue()

Effect indicates the taint effect to match e.g. 'NoSchedule'

.google.cloud.gkemulticloud.v1.Toleration.Effect effect = 4;

Returns
Type Description
int

The enum numeric value on the wire for effect.

getKey()

public String getKey()

Key is the taint key that the toleration applies to.

string key = 1;

Returns
Type Description
String

The key.

getKeyBytes()

public ByteString getKeyBytes()

Key is the taint key that the toleration applies to.

string key = 1;

Returns
Type Description
ByteString

The bytes for key.

getKeyOperator()

public Toleration.KeyOperator getKeyOperator()

KeyOperator represents a key's relationship to the value e.g. 'Exist'.

.google.cloud.gkemulticloud.v1.Toleration.KeyOperator key_operator = 3;

Returns
Type Description
Toleration.KeyOperator

The keyOperator.

getKeyOperatorValue()

public int getKeyOperatorValue()

KeyOperator represents a key's relationship to the value e.g. 'Exist'.

.google.cloud.gkemulticloud.v1.Toleration.KeyOperator key_operator = 3;

Returns
Type Description
int

The enum numeric value on the wire for keyOperator.

getValue()

public String getValue()

Value is the taint value that the toleration applies to.

string value = 2;

Returns
Type Description
String

The value.

getValueBytes()

public ByteString getValueBytes()

Value is the taint value that the toleration applies to.

string value = 2;

Returns
Type Description
ByteString

The bytes for value.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Toleration other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setEffect(Toleration.Effect value)

public Toleration.Builder setEffect(Toleration.Effect value)

Effect indicates the taint effect to match e.g. 'NoSchedule'

.google.cloud.gkemulticloud.v1.Toleration.Effect effect = 4;

Parameter
Name Description
value Toleration.Effect

The effect to set.

Returns
Type Description
Toleration.Builder

This builder for chaining.

setEffectValue(int value)

public Toleration.Builder setEffectValue(int value)

Effect indicates the taint effect to match e.g. 'NoSchedule'

.google.cloud.gkemulticloud.v1.Toleration.Effect effect = 4;

Parameter
Name Description
value int

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

Returns
Type Description
Toleration.Builder

This builder for chaining.

setKey(String value)

public Toleration.Builder setKey(String value)

Key is the taint key that the toleration applies to.

string key = 1;

Parameter
Name Description
value String

The key to set.

Returns
Type Description
Toleration.Builder

This builder for chaining.

setKeyBytes(ByteString value)

public Toleration.Builder setKeyBytes(ByteString value)

Key is the taint key that the toleration applies to.

string key = 1;

Parameter
Name Description
value ByteString

The bytes for key to set.

Returns
Type Description
Toleration.Builder

This builder for chaining.

setKeyOperator(Toleration.KeyOperator value)

public Toleration.Builder setKeyOperator(Toleration.KeyOperator value)

KeyOperator represents a key's relationship to the value e.g. 'Exist'.

.google.cloud.gkemulticloud.v1.Toleration.KeyOperator key_operator = 3;

Parameter
Name Description
value Toleration.KeyOperator

The keyOperator to set.

Returns
Type Description
Toleration.Builder

This builder for chaining.

setKeyOperatorValue(int value)

public Toleration.Builder setKeyOperatorValue(int value)

KeyOperator represents a key's relationship to the value e.g. 'Exist'.

.google.cloud.gkemulticloud.v1.Toleration.KeyOperator key_operator = 3;

Parameter
Name Description
value int

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

Returns
Type Description
Toleration.Builder

This builder for chaining.

setValue(String value)

public Toleration.Builder setValue(String value)

Value is the taint value that the toleration applies to.

string value = 2;

Parameter
Name Description
value String

The value to set.

Returns
Type Description
Toleration.Builder

This builder for chaining.

setValueBytes(ByteString value)

public Toleration.Builder setValueBytes(ByteString value)

Value is the taint value that the toleration applies to.

string value = 2;

Parameter
Name Description
value ByteString

The bytes for value to set.

Returns
Type Description
Toleration.Builder

This builder for chaining.