Package k8s.io.api.core.v1
Class Generated.Toleration.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Generated.Toleration.Builder>
-
- k8s.io.api.core.v1.Generated.Toleration.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,Generated.TolerationOrBuilder
- Enclosing class:
- Generated.Toleration
public static final class Generated.Toleration.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Generated.Toleration.Builder> implements Generated.TolerationOrBuilder
The pod this Toleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>.
Protobuf typek8s.io.api.core.v1.Toleration
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Generated.Toleration.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.Tolerationbuild()Generated.TolerationbuildPartial()Generated.Toleration.Builderclear()Generated.Toleration.BuilderclearEffect()Effect indicates the taint effect to match.Generated.Toleration.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Generated.Toleration.BuilderclearKey()Key is the taint key that the toleration applies to.Generated.Toleration.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Generated.Toleration.BuilderclearOperator()Operator represents a key's relationship to the value.Generated.Toleration.BuilderclearTolerationSeconds()TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint.Generated.Toleration.BuilderclearValue()Value is the taint value the toleration matches to.Generated.Toleration.Builderclone()Generated.TolerationgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetEffect()Effect indicates the taint effect to match.com.google.protobuf.ByteStringgetEffectBytes()Effect indicates the taint effect to match.StringgetKey()Key is the taint key that the toleration applies to.com.google.protobuf.ByteStringgetKeyBytes()Key is the taint key that the toleration applies to.StringgetOperator()Operator represents a key's relationship to the value.com.google.protobuf.ByteStringgetOperatorBytes()Operator represents a key's relationship to the value.longgetTolerationSeconds()TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint.StringgetValue()Value is the taint value the toleration matches to.com.google.protobuf.ByteStringgetValueBytes()Value is the taint value the toleration matches to.booleanhasEffect()Effect indicates the taint effect to match.booleanhasKey()Key is the taint key that the toleration applies to.booleanhasOperator()Operator represents a key's relationship to the value.booleanhasTolerationSeconds()TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint.booleanhasValue()Value is the taint value the toleration matches to.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Generated.Toleration.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Generated.Toleration.BuildermergeFrom(com.google.protobuf.Message other)Generated.Toleration.BuildermergeFrom(Generated.Toleration other)Generated.Toleration.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Generated.Toleration.BuildersetEffect(String value)Effect indicates the taint effect to match.Generated.Toleration.BuildersetEffectBytes(com.google.protobuf.ByteString value)Effect indicates the taint effect to match.Generated.Toleration.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.Toleration.BuildersetKey(String value)Key is the taint key that the toleration applies to.Generated.Toleration.BuildersetKeyBytes(com.google.protobuf.ByteString value)Key is the taint key that the toleration applies to.Generated.Toleration.BuildersetOperator(String value)Operator represents a key's relationship to the value.Generated.Toleration.BuildersetOperatorBytes(com.google.protobuf.ByteString value)Operator represents a key's relationship to the value.Generated.Toleration.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Generated.Toleration.BuildersetTolerationSeconds(long value)TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint.Generated.Toleration.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Generated.Toleration.BuildersetValue(String value)Value is the taint value the toleration matches to.Generated.Toleration.BuildersetValueBytes(com.google.protobuf.ByteString value)Value is the taint value the toleration matches to.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.Toleration.Builder>
-
clear
public Generated.Toleration.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.Toleration.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.Toleration.Builder>
-
getDefaultInstanceForType
public Generated.Toleration getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Generated.Toleration build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Generated.Toleration buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Generated.Toleration.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.Toleration.Builder>
-
setField
public Generated.Toleration.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.Toleration.Builder>
-
clearField
public Generated.Toleration.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.Toleration.Builder>
-
clearOneof
public Generated.Toleration.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.Toleration.Builder>
-
setRepeatedField
public Generated.Toleration.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.Toleration.Builder>
-
addRepeatedField
public Generated.Toleration.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.Toleration.Builder>
-
mergeFrom
public Generated.Toleration.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Generated.Toleration.Builder>
-
mergeFrom
public Generated.Toleration.Builder mergeFrom(Generated.Toleration other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.Toleration.Builder>
-
mergeFrom
public Generated.Toleration.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Generated.Toleration.Builder>- Throws:
IOException
-
hasKey
public 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;- Specified by:
hasKeyin interfaceGenerated.TolerationOrBuilder- Returns:
- Whether the key field is set.
-
getKey
public 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;- Specified by:
getKeyin interfaceGenerated.TolerationOrBuilder- Returns:
- The key.
-
getKeyBytes
public 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;- Specified by:
getKeyBytesin interfaceGenerated.TolerationOrBuilder- Returns:
- The bytes for key.
-
setKey
public Generated.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;- Parameters:
value- The key to set.- Returns:
- This builder for chaining.
-
clearKey
public Generated.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;- Returns:
- This builder for chaining.
-
setKeyBytes
public Generated.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;- Parameters:
value- The bytes for key to set.- Returns:
- This builder for chaining.
-
hasOperator
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;- Specified by:
hasOperatorin interfaceGenerated.TolerationOrBuilder- Returns:
- Whether the operator field is set.
-
getOperator
public 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;- Specified by:
getOperatorin interfaceGenerated.TolerationOrBuilder- Returns:
- The operator.
-
getOperatorBytes
public 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;- Specified by:
getOperatorBytesin interfaceGenerated.TolerationOrBuilder- Returns:
- The bytes for operator.
-
setOperator
public Generated.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;- Parameters:
value- The operator to set.- Returns:
- This builder for chaining.
-
clearOperator
public Generated.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;- Returns:
- This builder for chaining.
-
setOperatorBytes
public Generated.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;- Parameters:
value- The bytes for operator to set.- Returns:
- This builder for chaining.
-
hasValue
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;- Specified by:
hasValuein interfaceGenerated.TolerationOrBuilder- Returns:
- Whether the value field is set.
-
getValue
public 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;- Specified by:
getValuein interfaceGenerated.TolerationOrBuilder- Returns:
- The value.
-
getValueBytes
public 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;- Specified by:
getValueBytesin interfaceGenerated.TolerationOrBuilder- Returns:
- The bytes for value.
-
setValue
public Generated.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;- Parameters:
value- The value to set.- Returns:
- This builder for chaining.
-
clearValue
public Generated.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;- Returns:
- This builder for chaining.
-
setValueBytes
public Generated.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;- Parameters:
value- The bytes for value to set.- Returns:
- This builder for chaining.
-
hasEffect
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;- Specified by:
hasEffectin interfaceGenerated.TolerationOrBuilder- Returns:
- Whether the effect field is set.
-
getEffect
public 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;- Specified by:
getEffectin interfaceGenerated.TolerationOrBuilder- Returns:
- The effect.
-
getEffectBytes
public 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;- Specified by:
getEffectBytesin interfaceGenerated.TolerationOrBuilder- Returns:
- The bytes for effect.
-
setEffect
public Generated.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;- Parameters:
value- The effect to set.- Returns:
- This builder for chaining.
-
clearEffect
public Generated.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;- Returns:
- This builder for chaining.
-
setEffectBytes
public Generated.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;- Parameters:
value- The bytes for effect to set.- Returns:
- This builder for chaining.
-
hasTolerationSeconds
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;- Specified by:
hasTolerationSecondsin interfaceGenerated.TolerationOrBuilder- Returns:
- Whether the tolerationSeconds field is set.
-
getTolerationSeconds
public 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;- Specified by:
getTolerationSecondsin interfaceGenerated.TolerationOrBuilder- Returns:
- The tolerationSeconds.
-
setTolerationSeconds
public Generated.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;- Parameters:
value- The tolerationSeconds to set.- Returns:
- This builder for chaining.
-
clearTolerationSeconds
public Generated.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;- Returns:
- This builder for chaining.
-
setUnknownFields
public final Generated.Toleration.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.Toleration.Builder>
-
mergeUnknownFields
public final Generated.Toleration.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.Toleration.Builder>
-
-