Class Generated.NodeSelectorRequirement.Builder

    • Method Detail

      • 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<Generated.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<Generated.NodeSelectorRequirement.Builder>
      • getDefaultInstanceForType

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

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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.NodeSelectorRequirement.Builder>
      • 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:
        hasOperator in interface Generated.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:
        getOperator in interface Generated.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:
        getOperatorBytes in interface Generated.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:
        getValuesList in interface Generated.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:
        getValuesCount in interface Generated.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:
        getValues in interface Generated.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:
        getValuesBytes in interface Generated.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.