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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<V1.NodeSelectorRequirement.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<V1.NodeSelectorRequirement.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<V1.NodeSelectorRequirement.Builder>
    • getDefaultInstanceForType

      public V1.NodeSelectorRequirement getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public V1.NodeSelectorRequirement buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<V1.NodeSelectorRequirement.Builder>
    • setField

      public V1.NodeSelectorRequirement.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.NodeSelectorRequirement.Builder>
    • clearField

      public V1.NodeSelectorRequirement.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.NodeSelectorRequirement.Builder>
    • clearOneof

      public V1.NodeSelectorRequirement.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.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:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.NodeSelectorRequirement.Builder>
    • addRepeatedField

      public V1.NodeSelectorRequirement.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1.NodeSelectorRequirement.Builder>
    • mergeFrom

      public V1.NodeSelectorRequirement.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1.NodeSelectorRequirement.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      hasKey in interface V1.NodeSelectorRequirementOrBuilder
    • getKey

      public String getKey()
       The label key that the selector applies to.
       
      optional string key = 1;
      Specified by:
      getKey in interface V1.NodeSelectorRequirementOrBuilder
    • getKeyBytes

      public com.google.protobuf.ByteString getKeyBytes()
       The label key that the selector applies to.
       
      optional string key = 1;
      Specified by:
      getKeyBytes in interface V1.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

      public V1.NodeSelectorRequirement.Builder setKeyBytes(com.google.protobuf.ByteString value)
       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:
      hasOperator in interface V1.NodeSelectorRequirementOrBuilder
    • 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:
      getOperator in interface V1.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:
      getOperatorBytes in interface V1.NodeSelectorRequirementOrBuilder
    • setOperator

      public 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;
    • clearOperator

      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;
    • setOperatorBytes

      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;
    • 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:
      getValuesList in interface V1.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:
      getValuesCount in interface V1.NodeSelectorRequirementOrBuilder
    • 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
       
      repeated string values = 3;
      Specified by:
      getValues in interface V1.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:
      getValuesBytes in interface V1.NodeSelectorRequirementOrBuilder
    • setValues

      public 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;
    • addValues

      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;
    • addAllValues

      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;
    • clearValues

      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;
    • addValuesBytes

      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;
    • setUnknownFields

      public final V1.NodeSelectorRequirement.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1.NodeSelectorRequirement.Builder>
    • mergeUnknownFields

      public final V1.NodeSelectorRequirement.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1.NodeSelectorRequirement.Builder>