Package k8s.io.api.core.v1
Class Generated.NodeSelectorRequirement.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Generated.NodeSelectorRequirement.Builder>
-
- k8s.io.api.core.v1.Generated.NodeSelectorRequirement.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,Generated.NodeSelectorRequirementOrBuilder
- Enclosing class:
- Generated.NodeSelectorRequirement
public static final class Generated.NodeSelectorRequirement.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Generated.NodeSelectorRequirement.Builder> implements Generated.NodeSelectorRequirementOrBuilder
A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.
Protobuf typek8s.io.api.core.v1.NodeSelectorRequirement
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Generated.NodeSelectorRequirement.BuilderaddAllValues(Iterable<String> values)An array of string values.Generated.NodeSelectorRequirement.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.NodeSelectorRequirement.BuilderaddValues(String value)An array of string values.Generated.NodeSelectorRequirement.BuilderaddValuesBytes(com.google.protobuf.ByteString value)An array of string values.Generated.NodeSelectorRequirementbuild()Generated.NodeSelectorRequirementbuildPartial()Generated.NodeSelectorRequirement.Builderclear()Generated.NodeSelectorRequirement.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Generated.NodeSelectorRequirement.BuilderclearKey()The label key that the selector applies to.Generated.NodeSelectorRequirement.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Generated.NodeSelectorRequirement.BuilderclearOperator()Represents a key's relationship to a set of values.Generated.NodeSelectorRequirement.BuilderclearValues()An array of string values.Generated.NodeSelectorRequirement.Builderclone()Generated.NodeSelectorRequirementgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetKey()The label key that the selector applies to.com.google.protobuf.ByteStringgetKeyBytes()The label key that the selector applies to.StringgetOperator()Represents a key's relationship to a set of values.com.google.protobuf.ByteStringgetOperatorBytes()Represents a key's relationship to a set of values.StringgetValues(int index)An array of string values.com.google.protobuf.ByteStringgetValuesBytes(int index)An array of string values.intgetValuesCount()An array of string values.com.google.protobuf.ProtocolStringListgetValuesList()An array of string values.booleanhasKey()The label key that the selector applies to.booleanhasOperator()Represents a key's relationship to a set of values.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Generated.NodeSelectorRequirement.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Generated.NodeSelectorRequirement.BuildermergeFrom(com.google.protobuf.Message other)Generated.NodeSelectorRequirement.BuildermergeFrom(Generated.NodeSelectorRequirement other)Generated.NodeSelectorRequirement.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Generated.NodeSelectorRequirement.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.NodeSelectorRequirement.BuildersetKey(String value)The label key that the selector applies to.Generated.NodeSelectorRequirement.BuildersetKeyBytes(com.google.protobuf.ByteString value)The label key that the selector applies to.Generated.NodeSelectorRequirement.BuildersetOperator(String value)Represents a key's relationship to a set of values.Generated.NodeSelectorRequirement.BuildersetOperatorBytes(com.google.protobuf.ByteString value)Represents a key's relationship to a set of values.Generated.NodeSelectorRequirement.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Generated.NodeSelectorRequirement.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Generated.NodeSelectorRequirement.BuildersetValues(int index, String value)An array of string values.-
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.NodeSelectorRequirement.Builder>
-
clear
public Generated.NodeSelectorRequirement.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.NodeSelectorRequirement.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.NodeSelectorRequirement.Builder>
-
getDefaultInstanceForType
public Generated.NodeSelectorRequirement getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Generated.NodeSelectorRequirement build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Generated.NodeSelectorRequirement buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Generated.NodeSelectorRequirement.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.NodeSelectorRequirement.Builder>
-
setField
public Generated.NodeSelectorRequirement.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.NodeSelectorRequirement.Builder>
-
clearField
public Generated.NodeSelectorRequirement.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.NodeSelectorRequirement.Builder>
-
clearOneof
public Generated.NodeSelectorRequirement.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.NodeSelectorRequirement.Builder>
-
setRepeatedField
public Generated.NodeSelectorRequirement.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.NodeSelectorRequirement.Builder>
-
addRepeatedField
public Generated.NodeSelectorRequirement.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.NodeSelectorRequirement.Builder>
-
mergeFrom
public Generated.NodeSelectorRequirement.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Generated.NodeSelectorRequirement.Builder>
-
mergeFrom
public Generated.NodeSelectorRequirement.Builder mergeFrom(Generated.NodeSelectorRequirement other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.NodeSelectorRequirement.Builder>
-
mergeFrom
public Generated.NodeSelectorRequirement.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.NodeSelectorRequirement.Builder>- Throws:
IOException
-
hasKey
public boolean hasKey()
The label key that the selector applies to.
optional string key = 1;- Specified by:
hasKeyin interfaceGenerated.NodeSelectorRequirementOrBuilder- Returns:
- Whether the key field is set.
-
getKey
public String getKey()
The label key that the selector applies to.
optional string key = 1;- Specified by:
getKeyin interfaceGenerated.NodeSelectorRequirementOrBuilder- Returns:
- The key.
-
getKeyBytes
public com.google.protobuf.ByteString getKeyBytes()
The label key that the selector applies to.
optional string key = 1;- Specified by:
getKeyBytesin interfaceGenerated.NodeSelectorRequirementOrBuilder- Returns:
- The bytes for key.
-
setKey
public Generated.NodeSelectorRequirement.Builder setKey(String value)
The label key that the selector applies to.
optional string key = 1;- Parameters:
value- The key to set.- Returns:
- This builder for chaining.
-
clearKey
public Generated.NodeSelectorRequirement.Builder clearKey()
The label key that the selector applies to.
optional string key = 1;- Returns:
- This builder for chaining.
-
setKeyBytes
public Generated.NodeSelectorRequirement.Builder setKeyBytes(com.google.protobuf.ByteString value)
The label key that the selector applies to.
optional string key = 1;- Parameters:
value- The bytes for key to set.- Returns:
- This builder for chaining.
-
hasOperator
public boolean hasOperator()
Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
optional string operator = 2;- Specified by:
hasOperatorin interfaceGenerated.NodeSelectorRequirementOrBuilder- Returns:
- Whether the operator field is set.
-
getOperator
public String getOperator()
Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
optional string operator = 2;- Specified by:
getOperatorin interfaceGenerated.NodeSelectorRequirementOrBuilder- Returns:
- The operator.
-
getOperatorBytes
public com.google.protobuf.ByteString getOperatorBytes()
Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
optional string operator = 2;- Specified by:
getOperatorBytesin interfaceGenerated.NodeSelectorRequirementOrBuilder- Returns:
- The bytes for operator.
-
setOperator
public Generated.NodeSelectorRequirement.Builder setOperator(String value)
Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
optional string operator = 2;- Parameters:
value- The operator to set.- Returns:
- This builder for chaining.
-
clearOperator
public Generated.NodeSelectorRequirement.Builder clearOperator()
Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
optional string operator = 2;- Returns:
- This builder for chaining.
-
setOperatorBytes
public Generated.NodeSelectorRequirement.Builder setOperatorBytes(com.google.protobuf.ByteString value)
Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
optional string operator = 2;- Parameters:
value- The bytes for operator to set.- Returns:
- This builder for chaining.
-
getValuesList
public com.google.protobuf.ProtocolStringList getValuesList()
An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. +optional +listType=atomic
repeated string values = 3;- Specified by:
getValuesListin interfaceGenerated.NodeSelectorRequirementOrBuilder- Returns:
- A list containing the values.
-
getValuesCount
public int getValuesCount()
An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. +optional +listType=atomic
repeated string values = 3;- Specified by:
getValuesCountin interfaceGenerated.NodeSelectorRequirementOrBuilder- Returns:
- The count of values.
-
getValues
public String getValues(int index)
An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. +optional +listType=atomic
repeated string values = 3;- Specified by:
getValuesin interfaceGenerated.NodeSelectorRequirementOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The values at the given index.
-
getValuesBytes
public com.google.protobuf.ByteString getValuesBytes(int index)
An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. +optional +listType=atomic
repeated string values = 3;- Specified by:
getValuesBytesin interfaceGenerated.NodeSelectorRequirementOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the values at the given index.
-
setValues
public Generated.NodeSelectorRequirement.Builder setValues(int index, String value)
An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. +optional +listType=atomic
repeated string values = 3;- Parameters:
index- The index to set the value at.value- The values to set.- Returns:
- This builder for chaining.
-
addValues
public Generated.NodeSelectorRequirement.Builder addValues(String value)
An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. +optional +listType=atomic
repeated string values = 3;- Parameters:
value- The values to add.- Returns:
- This builder for chaining.
-
addAllValues
public Generated.NodeSelectorRequirement.Builder addAllValues(Iterable<String> values)
An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. +optional +listType=atomic
repeated string values = 3;- Parameters:
values- The values to add.- Returns:
- This builder for chaining.
-
clearValues
public Generated.NodeSelectorRequirement.Builder clearValues()
An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. +optional +listType=atomic
repeated string values = 3;- Returns:
- This builder for chaining.
-
addValuesBytes
public Generated.NodeSelectorRequirement.Builder addValuesBytes(com.google.protobuf.ByteString value)
An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. +optional +listType=atomic
repeated string values = 3;- Parameters:
value- The bytes of the values to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Generated.NodeSelectorRequirement.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.NodeSelectorRequirement.Builder>
-
mergeUnknownFields
public final Generated.NodeSelectorRequirement.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.NodeSelectorRequirement.Builder>
-
-