public static final class V1.NodeSelectorRequirement.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1.NodeSelectorRequirement.Builder> implements V1.NodeSelectorRequirementOrBuilder
A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.Protobuf type
k8s.io.api.core.v1.NodeSelectorRequirement| Modifier and Type | Method and Description |
|---|---|
V1.NodeSelectorRequirement.Builder |
addAllValues(Iterable<String> values)
An array of string values.
|
V1.NodeSelectorRequirement.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1.NodeSelectorRequirement.Builder |
addValues(String value)
An array of string values.
|
V1.NodeSelectorRequirement.Builder |
addValuesBytes(com.google.protobuf.ByteString value)
An array of string values.
|
V1.NodeSelectorRequirement |
build() |
V1.NodeSelectorRequirement |
buildPartial() |
V1.NodeSelectorRequirement.Builder |
clear() |
V1.NodeSelectorRequirement.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
V1.NodeSelectorRequirement.Builder |
clearKey()
The label key that the selector applies to.
|
V1.NodeSelectorRequirement.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
V1.NodeSelectorRequirement.Builder |
clearOperator()
Represents a key's relationship to a set of values.
|
V1.NodeSelectorRequirement.Builder |
clearValues()
An array of string values.
|
V1.NodeSelectorRequirement.Builder |
clone() |
V1.NodeSelectorRequirement |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getKey()
The label key that the selector applies to.
|
com.google.protobuf.ByteString |
getKeyBytes()
The label key that the selector applies to.
|
String |
getOperator()
Represents a key's relationship to a set of values.
|
com.google.protobuf.ByteString |
getOperatorBytes()
Represents a key's relationship to a set of values.
|
String |
getValues(int index)
An array of string values.
|
com.google.protobuf.ByteString |
getValuesBytes(int index)
An array of string values.
|
int |
getValuesCount()
An array of string values.
|
com.google.protobuf.ProtocolStringList |
getValuesList()
An array of string values.
|
boolean |
hasKey()
The label key that the selector applies to.
|
boolean |
hasOperator()
Represents a key's relationship to a set of values.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
V1.NodeSelectorRequirement.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
V1.NodeSelectorRequirement.Builder |
mergeFrom(com.google.protobuf.Message other) |
V1.NodeSelectorRequirement.Builder |
mergeFrom(V1.NodeSelectorRequirement other) |
V1.NodeSelectorRequirement.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
V1.NodeSelectorRequirement.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1.NodeSelectorRequirement.Builder |
setKey(String value)
The label key that the selector applies to.
|
V1.NodeSelectorRequirement.Builder |
setKeyBytes(com.google.protobuf.ByteString value)
The label key that the selector applies to.
|
V1.NodeSelectorRequirement.Builder |
setOperator(String value)
Represents a key's relationship to a set of values.
|
V1.NodeSelectorRequirement.Builder |
setOperatorBytes(com.google.protobuf.ByteString value)
Represents a key's relationship to a set of values.
|
V1.NodeSelectorRequirement.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
V1.NodeSelectorRequirement.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
V1.NodeSelectorRequirement.Builder |
setValues(int index,
String value)
An array of string values.
|
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.NodeSelectorRequirement.Builder>public V1.NodeSelectorRequirement.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.NodeSelectorRequirement.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.NodeSelectorRequirement.Builder>public V1.NodeSelectorRequirement getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic V1.NodeSelectorRequirement build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic V1.NodeSelectorRequirement buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic V1.NodeSelectorRequirement.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.NodeSelectorRequirement.Builder>public V1.NodeSelectorRequirement.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.NodeSelectorRequirement.Builder>public V1.NodeSelectorRequirement.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.NodeSelectorRequirement.Builder>public V1.NodeSelectorRequirement.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<V1.NodeSelectorRequirement.Builder>public V1.NodeSelectorRequirement.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.NodeSelectorRequirement.Builder>public V1.NodeSelectorRequirement.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.NodeSelectorRequirement.Builder>public V1.NodeSelectorRequirement.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1.NodeSelectorRequirement.Builder>public V1.NodeSelectorRequirement.Builder mergeFrom(V1.NodeSelectorRequirement other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<V1.NodeSelectorRequirement.Builder>public V1.NodeSelectorRequirement.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.NodeSelectorRequirement.Builder>IOExceptionpublic boolean hasKey()
The label key that the selector applies to.
optional string key = 1;hasKey in interface V1.NodeSelectorRequirementOrBuilderpublic String getKey()
The label key that the selector applies to.
optional string key = 1;getKey in interface V1.NodeSelectorRequirementOrBuilderpublic com.google.protobuf.ByteString getKeyBytes()
The label key that the selector applies to.
optional string key = 1;getKeyBytes in interface V1.NodeSelectorRequirementOrBuilderpublic V1.NodeSelectorRequirement.Builder setKey(String value)
The label key that the selector applies to.
optional string key = 1;public V1.NodeSelectorRequirement.Builder clearKey()
The label key that the selector applies to.
optional string key = 1;public V1.NodeSelectorRequirement.Builder setKeyBytes(com.google.protobuf.ByteString value)
The label key that the selector applies to.
optional string key = 1;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;hasOperator in interface V1.NodeSelectorRequirementOrBuilderpublic 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;getOperator in interface V1.NodeSelectorRequirementOrBuilderpublic 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;getOperatorBytes in interface V1.NodeSelectorRequirementOrBuilderpublic V1.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;public V1.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;public V1.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;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
repeated string values = 3;getValuesList in interface V1.NodeSelectorRequirementOrBuilderpublic 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
repeated string values = 3;getValuesCount in interface V1.NodeSelectorRequirementOrBuilderpublic 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
repeated string values = 3;getValues in interface V1.NodeSelectorRequirementOrBuilderpublic 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
repeated string values = 3;getValuesBytes in interface V1.NodeSelectorRequirementOrBuilderpublic V1.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
repeated string values = 3;public V1.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
repeated string values = 3;public V1.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
repeated string values = 3;public V1.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
repeated string values = 3;public V1.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
repeated string values = 3;public final V1.NodeSelectorRequirement.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1.NodeSelectorRequirement.Builder>public final V1.NodeSelectorRequirement.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1.NodeSelectorRequirement.Builder>Copyright © 2020. All rights reserved.