public static final class V1.Toleration.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1.Toleration.Builder> implements V1.TolerationOrBuilder
The pod this Toleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>.Protobuf type
k8s.io.api.core.v1.Toleration| Modifier and Type | Method and Description |
|---|---|
V1.Toleration.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1.Toleration |
build() |
V1.Toleration |
buildPartial() |
V1.Toleration.Builder |
clear() |
V1.Toleration.Builder |
clearEffect()
Effect indicates the taint effect to match.
|
V1.Toleration.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
V1.Toleration.Builder |
clearKey()
Key is the taint key that the toleration applies to.
|
V1.Toleration.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
V1.Toleration.Builder |
clearOperator()
Operator represents a key's relationship to the value.
|
V1.Toleration.Builder |
clearTolerationSeconds()
TolerationSeconds represents the period of time the toleration (which must be
of effect NoExecute, otherwise this field is ignored) tolerates the taint.
|
V1.Toleration.Builder |
clearValue()
Value is the taint value the toleration matches to.
|
V1.Toleration.Builder |
clone() |
V1.Toleration |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getEffect()
Effect indicates the taint effect to match.
|
com.google.protobuf.ByteString |
getEffectBytes()
Effect indicates the taint effect to match.
|
String |
getKey()
Key is the taint key that the toleration applies to.
|
com.google.protobuf.ByteString |
getKeyBytes()
Key is the taint key that the toleration applies to.
|
String |
getOperator()
Operator represents a key's relationship to the value.
|
com.google.protobuf.ByteString |
getOperatorBytes()
Operator represents a key's relationship to the value.
|
long |
getTolerationSeconds()
TolerationSeconds represents the period of time the toleration (which must be
of effect NoExecute, otherwise this field is ignored) tolerates the taint.
|
String |
getValue()
Value is the taint value the toleration matches to.
|
com.google.protobuf.ByteString |
getValueBytes()
Value is the taint value the toleration matches to.
|
boolean |
hasEffect()
Effect indicates the taint effect to match.
|
boolean |
hasKey()
Key is the taint key that the toleration applies to.
|
boolean |
hasOperator()
Operator represents a key's relationship to the value.
|
boolean |
hasTolerationSeconds()
TolerationSeconds represents the period of time the toleration (which must be
of effect NoExecute, otherwise this field is ignored) tolerates the taint.
|
boolean |
hasValue()
Value is the taint value the toleration matches to.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
V1.Toleration.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
V1.Toleration.Builder |
mergeFrom(com.google.protobuf.Message other) |
V1.Toleration.Builder |
mergeFrom(V1.Toleration other) |
V1.Toleration.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
V1.Toleration.Builder |
setEffect(String value)
Effect indicates the taint effect to match.
|
V1.Toleration.Builder |
setEffectBytes(com.google.protobuf.ByteString value)
Effect indicates the taint effect to match.
|
V1.Toleration.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1.Toleration.Builder |
setKey(String value)
Key is the taint key that the toleration applies to.
|
V1.Toleration.Builder |
setKeyBytes(com.google.protobuf.ByteString value)
Key is the taint key that the toleration applies to.
|
V1.Toleration.Builder |
setOperator(String value)
Operator represents a key's relationship to the value.
|
V1.Toleration.Builder |
setOperatorBytes(com.google.protobuf.ByteString value)
Operator represents a key's relationship to the value.
|
V1.Toleration.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
V1.Toleration.Builder |
setTolerationSeconds(long value)
TolerationSeconds represents the period of time the toleration (which must be
of effect NoExecute, otherwise this field is ignored) tolerates the taint.
|
V1.Toleration.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
V1.Toleration.Builder |
setValue(String value)
Value is the taint value the toleration matches to.
|
V1.Toleration.Builder |
setValueBytes(com.google.protobuf.ByteString value)
Value is the taint value the toleration matches to.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Toleration.Builder>public V1.Toleration.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Toleration.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Toleration.Builder>public V1.Toleration getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic V1.Toleration build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic V1.Toleration buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic V1.Toleration.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Toleration.Builder>public V1.Toleration.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Toleration.Builder>public V1.Toleration.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Toleration.Builder>public V1.Toleration.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Toleration.Builder>public V1.Toleration.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Toleration.Builder>public V1.Toleration.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Toleration.Builder>public V1.Toleration.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1.Toleration.Builder>public V1.Toleration.Builder mergeFrom(V1.Toleration other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Toleration.Builder>public V1.Toleration.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1.Toleration.Builder>IOExceptionpublic boolean hasKey()
Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. +optional
optional string key = 1;hasKey in interface V1.TolerationOrBuilderpublic String getKey()
Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. +optional
optional string key = 1;getKey in interface V1.TolerationOrBuilderpublic com.google.protobuf.ByteString getKeyBytes()
Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. +optional
optional string key = 1;getKeyBytes in interface V1.TolerationOrBuilderpublic V1.Toleration.Builder setKey(String value)
Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. +optional
optional string key = 1;public V1.Toleration.Builder clearKey()
Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. +optional
optional string key = 1;public V1.Toleration.Builder setKeyBytes(com.google.protobuf.ByteString value)
Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. +optional
optional string key = 1;public boolean hasOperator()
Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. +optional
optional string operator = 2;hasOperator in interface V1.TolerationOrBuilderpublic String getOperator()
Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. +optional
optional string operator = 2;getOperator in interface V1.TolerationOrBuilderpublic com.google.protobuf.ByteString getOperatorBytes()
Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. +optional
optional string operator = 2;getOperatorBytes in interface V1.TolerationOrBuilderpublic V1.Toleration.Builder setOperator(String value)
Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. +optional
optional string operator = 2;public V1.Toleration.Builder clearOperator()
Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. +optional
optional string operator = 2;public V1.Toleration.Builder setOperatorBytes(com.google.protobuf.ByteString value)
Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. +optional
optional string operator = 2;public boolean hasValue()
Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. +optional
optional string value = 3;hasValue in interface V1.TolerationOrBuilderpublic String getValue()
Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. +optional
optional string value = 3;getValue in interface V1.TolerationOrBuilderpublic com.google.protobuf.ByteString getValueBytes()
Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. +optional
optional string value = 3;getValueBytes in interface V1.TolerationOrBuilderpublic V1.Toleration.Builder setValue(String value)
Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. +optional
optional string value = 3;public V1.Toleration.Builder clearValue()
Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. +optional
optional string value = 3;public V1.Toleration.Builder setValueBytes(com.google.protobuf.ByteString value)
Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. +optional
optional string value = 3;public boolean hasEffect()
Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. +optional
optional string effect = 4;hasEffect in interface V1.TolerationOrBuilderpublic String getEffect()
Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. +optional
optional string effect = 4;getEffect in interface V1.TolerationOrBuilderpublic com.google.protobuf.ByteString getEffectBytes()
Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. +optional
optional string effect = 4;getEffectBytes in interface V1.TolerationOrBuilderpublic V1.Toleration.Builder setEffect(String value)
Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. +optional
optional string effect = 4;public V1.Toleration.Builder clearEffect()
Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. +optional
optional string effect = 4;public V1.Toleration.Builder setEffectBytes(com.google.protobuf.ByteString value)
Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. +optional
optional string effect = 4;public boolean hasTolerationSeconds()
TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. +optional
optional int64 tolerationSeconds = 5;hasTolerationSeconds in interface V1.TolerationOrBuilderpublic long getTolerationSeconds()
TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. +optional
optional int64 tolerationSeconds = 5;getTolerationSeconds in interface V1.TolerationOrBuilderpublic V1.Toleration.Builder setTolerationSeconds(long value)
TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. +optional
optional int64 tolerationSeconds = 5;public V1.Toleration.Builder clearTolerationSeconds()
TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. +optional
optional int64 tolerationSeconds = 5;public final V1.Toleration.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Toleration.Builder>public final V1.Toleration.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1.Toleration.Builder>Copyright © 2021. All rights reserved.