public static final class Toleration.Builder extends GeneratedMessage.Builder<Toleration.Builder> implements TolerationOrBuilderToleration defines the fields for tolerations for pods created by auto-installed components.
Protobuf type google.cloud.gkemulticloud.v1.Toleration
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Toleration.BuilderImplements
TolerationOrBuilderStatic 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 |
|
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 |
|
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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Toleration.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Toleration.Builder |
|
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.EffectThe 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 |
intThe 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 |
StringThe 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 |
ByteStringThe 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.KeyOperatorThe 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 |
intThe 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 |
StringThe 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 |
ByteStringThe bytes for value to set. |
| Returns | |
|---|---|
| Type | Description |
Toleration.Builder |
This builder for chaining. |