Package io.kubernetes.client.proto
Class V1.NodeSelectorRequirement.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<V1.NodeSelectorRequirement.Builder>
io.kubernetes.client.proto.V1.NodeSelectorRequirement.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,V1.NodeSelectorRequirementOrBuilder,Cloneable
- Enclosing class:
- V1.NodeSelectorRequirement
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-
Method Summary
Modifier and TypeMethodDescriptionaddAllValues(Iterable<String> values) An array of string values.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) An array of string values.addValuesBytes(com.google.protobuf.ByteString value) An array of string values.build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearKey()The label key that the selector applies to.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) Represents a key's relationship to a set of values.An array of string values.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetKey()The label key that the selector applies to.com.google.protobuf.ByteStringThe label key that the selector applies to.Represents a key's relationship to a set of values.com.google.protobuf.ByteStringRepresents a key's relationship to a set of values.getValues(int index) An array of string values.com.google.protobuf.ByteStringgetValuesBytes(int index) An array of string values.intAn array of string values.com.google.protobuf.ProtocolStringListAn array of string values.booleanhasKey()The label key that the selector applies to.booleanRepresents a key's relationship to a set of values.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) The label key that the selector applies to.setKeyBytes(com.google.protobuf.ByteString value) The label key that the selector applies to.setOperator(String value) Represents a key's relationship to a set of values.setOperatorBytes(com.google.protobuf.ByteString value) Represents a key's relationship to a set of values.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) 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, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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<V1.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<V1.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<V1.NodeSelectorRequirement.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.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<V1.NodeSelectorRequirement.Builder>
-
setField
public V1.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<V1.NodeSelectorRequirement.Builder>
-
clearField
public V1.NodeSelectorRequirement.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.NodeSelectorRequirement.Builder>
-
clearOneof
public V1.NodeSelectorRequirement.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.NodeSelectorRequirement.Builder>
-
setRepeatedField
public V1.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<V1.NodeSelectorRequirement.Builder>
-
addRepeatedField
public V1.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<V1.NodeSelectorRequirement.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<V1.NodeSelectorRequirement.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.NodeSelectorRequirement.Builder>
-
mergeFrom
public V1.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<V1.NodeSelectorRequirement.Builder>- Throws:
IOException
-
hasKey
public boolean hasKey()The label key that the selector applies to.
optional string key = 1;- Specified by:
hasKeyin interfaceV1.NodeSelectorRequirementOrBuilder
-
getKey
The label key that the selector applies to.
optional string key = 1;- Specified by:
getKeyin interfaceV1.NodeSelectorRequirementOrBuilder
-
getKeyBytes
public com.google.protobuf.ByteString getKeyBytes()The label key that the selector applies to.
optional string key = 1;- Specified by:
getKeyBytesin interfaceV1.NodeSelectorRequirementOrBuilder
-
setKey
The label key that the selector applies to.
optional string key = 1; -
clearKey
The label key that the selector applies to.
optional string key = 1; -
setKeyBytes
The label key that the selector applies to.
optional string key = 1; -
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 interfaceV1.NodeSelectorRequirementOrBuilder
-
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 interfaceV1.NodeSelectorRequirementOrBuilder
-
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 interfaceV1.NodeSelectorRequirementOrBuilder
-
setOperator
Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
optional string operator = 2; -
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; -
setOperatorBytes
Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.
optional string operator = 2; -
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
repeated string values = 3;- Specified by:
getValuesListin interfaceV1.NodeSelectorRequirementOrBuilder
-
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
repeated string values = 3;- Specified by:
getValuesCountin interfaceV1.NodeSelectorRequirementOrBuilder
-
getValues
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;- Specified by:
getValuesin interfaceV1.NodeSelectorRequirementOrBuilder
-
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
repeated string values = 3;- Specified by:
getValuesBytesin interfaceV1.NodeSelectorRequirementOrBuilder
-
setValues
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; -
addValues
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; -
addAllValues
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; -
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; -
addValuesBytes
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; -
setUnknownFields
public final V1.NodeSelectorRequirement.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.NodeSelectorRequirement.Builder>
-
mergeUnknownFields
public final V1.NodeSelectorRequirement.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.NodeSelectorRequirement.Builder>
-