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

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

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

        public Generated.LabelSelectorRequirement 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.LabelSelectorRequirement.Builder>
      • setKeyBytes

        public Generated.LabelSelectorRequirement.Builder setKeyBytes​(com.google.protobuf.ByteString value)
         key is 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()
         operator represents a key's relationship to a set of values.
         Valid operators are In, NotIn, Exists and DoesNotExist.
         
        optional string operator = 2;
        Specified by:
        hasOperator in interface Generated.LabelSelectorRequirementOrBuilder
        Returns:
        Whether the operator field is set.
      • getOperatorBytes

        public com.google.protobuf.ByteString getOperatorBytes()
         operator represents a key's relationship to a set of values.
         Valid operators are In, NotIn, Exists and DoesNotExist.
         
        optional string operator = 2;
        Specified by:
        getOperatorBytes in interface Generated.LabelSelectorRequirementOrBuilder
        Returns:
        The bytes for operator.
      • setOperator

        public Generated.LabelSelectorRequirement.Builder setOperator​(String value)
         operator represents a key's relationship to a set of values.
         Valid operators are In, NotIn, Exists and DoesNotExist.
         
        optional string operator = 2;
        Parameters:
        value - The operator to set.
        Returns:
        This builder for chaining.
      • clearOperator

        public Generated.LabelSelectorRequirement.Builder clearOperator()
         operator represents a key's relationship to a set of values.
         Valid operators are In, NotIn, Exists and DoesNotExist.
         
        optional string operator = 2;
        Returns:
        This builder for chaining.
      • setOperatorBytes

        public Generated.LabelSelectorRequirement.Builder setOperatorBytes​(com.google.protobuf.ByteString value)
         operator represents a key's relationship to a set of values.
         Valid operators are In, NotIn, Exists and DoesNotExist.
         
        optional string operator = 2;
        Parameters:
        value - The bytes for operator to set.
        Returns:
        This builder for chaining.
      • getValuesList

        public com.google.protobuf.ProtocolStringList getValuesList()
         values is 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. This array is replaced during a strategic
         merge patch.
         +optional
         +listType=atomic
         
        repeated string values = 3;
        Specified by:
        getValuesList in interface Generated.LabelSelectorRequirementOrBuilder
        Returns:
        A list containing the values.
      • getValuesCount

        public int getValuesCount()
         values is 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. This array is replaced during a strategic
         merge patch.
         +optional
         +listType=atomic
         
        repeated string values = 3;
        Specified by:
        getValuesCount in interface Generated.LabelSelectorRequirementOrBuilder
        Returns:
        The count of values.
      • getValues

        public String getValues​(int index)
         values is 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. This array is replaced during a strategic
         merge patch.
         +optional
         +listType=atomic
         
        repeated string values = 3;
        Specified by:
        getValues in interface Generated.LabelSelectorRequirementOrBuilder
        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)
         values is 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. This array is replaced during a strategic
         merge patch.
         +optional
         +listType=atomic
         
        repeated string values = 3;
        Specified by:
        getValuesBytes in interface Generated.LabelSelectorRequirementOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the values at the given index.
      • setValues

        public Generated.LabelSelectorRequirement.Builder setValues​(int index,
                                                                    String value)
         values is 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. 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.LabelSelectorRequirement.Builder addValues​(String value)
         values is 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. 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.LabelSelectorRequirement.Builder addAllValues​(Iterable<String> values)
         values is 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. 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.LabelSelectorRequirement.Builder clearValues()
         values is 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. This array is replaced during a strategic
         merge patch.
         +optional
         +listType=atomic
         
        repeated string values = 3;
        Returns:
        This builder for chaining.
      • addValuesBytes

        public Generated.LabelSelectorRequirement.Builder addValuesBytes​(com.google.protobuf.ByteString value)
         values is 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. 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.