Class Generated.PodAffinityTerm.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, Generated.PodAffinityTermOrBuilder
    Enclosing class:
    Generated.PodAffinityTerm

    public static final class Generated.PodAffinityTerm.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Generated.PodAffinityTerm.Builder>
    implements Generated.PodAffinityTermOrBuilder
     Defines a set of pods (namely those matching the labelSelector
     relative to the given namespace(s)) that this pod should be
     co-located (affinity) or not co-located (anti-affinity) with,
     where co-located is defined as running on a node whose value of
     the label with key <topologyKey> matches that of any node on which
     a pod of the set of pods is running
     
    Protobuf type k8s.io.api.core.v1.PodAffinityTerm
    • 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.PodAffinityTerm.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.PodAffinityTerm.Builder>
      • getDefaultInstanceForType

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

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

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

        public Generated.PodAffinityTerm.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<Generated.PodAffinityTerm.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.PodAffinityTerm.Builder>
      • mergeFrom

        public Generated.PodAffinityTerm.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<Generated.PodAffinityTerm.Builder>
        Throws:
        IOException
      • hasLabelSelector

        public boolean hasLabelSelector()
         A label query over a set of resources, in this case pods.
         If it's null, this PodAffinityTerm matches with no Pods.
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 1;
        Specified by:
        hasLabelSelector in interface Generated.PodAffinityTermOrBuilder
        Returns:
        Whether the labelSelector field is set.
      • getLabelSelector

        public Generated.LabelSelector getLabelSelector()
         A label query over a set of resources, in this case pods.
         If it's null, this PodAffinityTerm matches with no Pods.
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 1;
        Specified by:
        getLabelSelector in interface Generated.PodAffinityTermOrBuilder
        Returns:
        The labelSelector.
      • setLabelSelector

        public Generated.PodAffinityTerm.Builder setLabelSelector​(Generated.LabelSelector value)
         A label query over a set of resources, in this case pods.
         If it's null, this PodAffinityTerm matches with no Pods.
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 1;
      • setLabelSelector

        public Generated.PodAffinityTerm.Builder setLabelSelector​(Generated.LabelSelector.Builder builderForValue)
         A label query over a set of resources, in this case pods.
         If it's null, this PodAffinityTerm matches with no Pods.
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 1;
      • mergeLabelSelector

        public Generated.PodAffinityTerm.Builder mergeLabelSelector​(Generated.LabelSelector value)
         A label query over a set of resources, in this case pods.
         If it's null, this PodAffinityTerm matches with no Pods.
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 1;
      • clearLabelSelector

        public Generated.PodAffinityTerm.Builder clearLabelSelector()
         A label query over a set of resources, in this case pods.
         If it's null, this PodAffinityTerm matches with no Pods.
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 1;
      • getLabelSelectorBuilder

        public Generated.LabelSelector.Builder getLabelSelectorBuilder()
         A label query over a set of resources, in this case pods.
         If it's null, this PodAffinityTerm matches with no Pods.
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 1;
      • getNamespacesList

        public com.google.protobuf.ProtocolStringList getNamespacesList()
         namespaces specifies a static list of namespace names that the term applies to.
         The term is applied to the union of the namespaces listed in this field
         and the ones selected by namespaceSelector.
         null or empty namespaces list and null namespaceSelector means "this pod's namespace".
         +optional
         +listType=atomic
         
        repeated string namespaces = 2;
        Specified by:
        getNamespacesList in interface Generated.PodAffinityTermOrBuilder
        Returns:
        A list containing the namespaces.
      • getNamespacesCount

        public int getNamespacesCount()
         namespaces specifies a static list of namespace names that the term applies to.
         The term is applied to the union of the namespaces listed in this field
         and the ones selected by namespaceSelector.
         null or empty namespaces list and null namespaceSelector means "this pod's namespace".
         +optional
         +listType=atomic
         
        repeated string namespaces = 2;
        Specified by:
        getNamespacesCount in interface Generated.PodAffinityTermOrBuilder
        Returns:
        The count of namespaces.
      • getNamespaces

        public String getNamespaces​(int index)
         namespaces specifies a static list of namespace names that the term applies to.
         The term is applied to the union of the namespaces listed in this field
         and the ones selected by namespaceSelector.
         null or empty namespaces list and null namespaceSelector means "this pod's namespace".
         +optional
         +listType=atomic
         
        repeated string namespaces = 2;
        Specified by:
        getNamespaces in interface Generated.PodAffinityTermOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The namespaces at the given index.
      • getNamespacesBytes

        public com.google.protobuf.ByteString getNamespacesBytes​(int index)
         namespaces specifies a static list of namespace names that the term applies to.
         The term is applied to the union of the namespaces listed in this field
         and the ones selected by namespaceSelector.
         null or empty namespaces list and null namespaceSelector means "this pod's namespace".
         +optional
         +listType=atomic
         
        repeated string namespaces = 2;
        Specified by:
        getNamespacesBytes in interface Generated.PodAffinityTermOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the namespaces at the given index.
      • setNamespaces

        public Generated.PodAffinityTerm.Builder setNamespaces​(int index,
                                                               String value)
         namespaces specifies a static list of namespace names that the term applies to.
         The term is applied to the union of the namespaces listed in this field
         and the ones selected by namespaceSelector.
         null or empty namespaces list and null namespaceSelector means "this pod's namespace".
         +optional
         +listType=atomic
         
        repeated string namespaces = 2;
        Parameters:
        index - The index to set the value at.
        value - The namespaces to set.
        Returns:
        This builder for chaining.
      • addNamespaces

        public Generated.PodAffinityTerm.Builder addNamespaces​(String value)
         namespaces specifies a static list of namespace names that the term applies to.
         The term is applied to the union of the namespaces listed in this field
         and the ones selected by namespaceSelector.
         null or empty namespaces list and null namespaceSelector means "this pod's namespace".
         +optional
         +listType=atomic
         
        repeated string namespaces = 2;
        Parameters:
        value - The namespaces to add.
        Returns:
        This builder for chaining.
      • addAllNamespaces

        public Generated.PodAffinityTerm.Builder addAllNamespaces​(Iterable<String> values)
         namespaces specifies a static list of namespace names that the term applies to.
         The term is applied to the union of the namespaces listed in this field
         and the ones selected by namespaceSelector.
         null or empty namespaces list and null namespaceSelector means "this pod's namespace".
         +optional
         +listType=atomic
         
        repeated string namespaces = 2;
        Parameters:
        values - The namespaces to add.
        Returns:
        This builder for chaining.
      • clearNamespaces

        public Generated.PodAffinityTerm.Builder clearNamespaces()
         namespaces specifies a static list of namespace names that the term applies to.
         The term is applied to the union of the namespaces listed in this field
         and the ones selected by namespaceSelector.
         null or empty namespaces list and null namespaceSelector means "this pod's namespace".
         +optional
         +listType=atomic
         
        repeated string namespaces = 2;
        Returns:
        This builder for chaining.
      • addNamespacesBytes

        public Generated.PodAffinityTerm.Builder addNamespacesBytes​(com.google.protobuf.ByteString value)
         namespaces specifies a static list of namespace names that the term applies to.
         The term is applied to the union of the namespaces listed in this field
         and the ones selected by namespaceSelector.
         null or empty namespaces list and null namespaceSelector means "this pod's namespace".
         +optional
         +listType=atomic
         
        repeated string namespaces = 2;
        Parameters:
        value - The bytes of the namespaces to add.
        Returns:
        This builder for chaining.
      • hasTopologyKey

        public boolean hasTopologyKey()
         This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
         the labelSelector in the specified namespaces, where co-located is defined as running on a node
         whose value of the label with key topologyKey matches that of any node on which any of the
         selected pods is running.
         Empty topologyKey is not allowed.
         
        optional string topologyKey = 3;
        Specified by:
        hasTopologyKey in interface Generated.PodAffinityTermOrBuilder
        Returns:
        Whether the topologyKey field is set.
      • getTopologyKey

        public String getTopologyKey()
         This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
         the labelSelector in the specified namespaces, where co-located is defined as running on a node
         whose value of the label with key topologyKey matches that of any node on which any of the
         selected pods is running.
         Empty topologyKey is not allowed.
         
        optional string topologyKey = 3;
        Specified by:
        getTopologyKey in interface Generated.PodAffinityTermOrBuilder
        Returns:
        The topologyKey.
      • getTopologyKeyBytes

        public com.google.protobuf.ByteString getTopologyKeyBytes()
         This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
         the labelSelector in the specified namespaces, where co-located is defined as running on a node
         whose value of the label with key topologyKey matches that of any node on which any of the
         selected pods is running.
         Empty topologyKey is not allowed.
         
        optional string topologyKey = 3;
        Specified by:
        getTopologyKeyBytes in interface Generated.PodAffinityTermOrBuilder
        Returns:
        The bytes for topologyKey.
      • setTopologyKey

        public Generated.PodAffinityTerm.Builder setTopologyKey​(String value)
         This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
         the labelSelector in the specified namespaces, where co-located is defined as running on a node
         whose value of the label with key topologyKey matches that of any node on which any of the
         selected pods is running.
         Empty topologyKey is not allowed.
         
        optional string topologyKey = 3;
        Parameters:
        value - The topologyKey to set.
        Returns:
        This builder for chaining.
      • clearTopologyKey

        public Generated.PodAffinityTerm.Builder clearTopologyKey()
         This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
         the labelSelector in the specified namespaces, where co-located is defined as running on a node
         whose value of the label with key topologyKey matches that of any node on which any of the
         selected pods is running.
         Empty topologyKey is not allowed.
         
        optional string topologyKey = 3;
        Returns:
        This builder for chaining.
      • setTopologyKeyBytes

        public Generated.PodAffinityTerm.Builder setTopologyKeyBytes​(com.google.protobuf.ByteString value)
         This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching
         the labelSelector in the specified namespaces, where co-located is defined as running on a node
         whose value of the label with key topologyKey matches that of any node on which any of the
         selected pods is running.
         Empty topologyKey is not allowed.
         
        optional string topologyKey = 3;
        Parameters:
        value - The bytes for topologyKey to set.
        Returns:
        This builder for chaining.
      • hasNamespaceSelector

        public boolean hasNamespaceSelector()
         A label query over the set of namespaces that the term applies to.
         The term is applied to the union of the namespaces selected by this field
         and the ones listed in the namespaces field.
         null selector and null or empty namespaces list means "this pod's namespace".
         An empty selector ({}) matches all namespaces.
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 4;
        Specified by:
        hasNamespaceSelector in interface Generated.PodAffinityTermOrBuilder
        Returns:
        Whether the namespaceSelector field is set.
      • getNamespaceSelector

        public Generated.LabelSelector getNamespaceSelector()
         A label query over the set of namespaces that the term applies to.
         The term is applied to the union of the namespaces selected by this field
         and the ones listed in the namespaces field.
         null selector and null or empty namespaces list means "this pod's namespace".
         An empty selector ({}) matches all namespaces.
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 4;
        Specified by:
        getNamespaceSelector in interface Generated.PodAffinityTermOrBuilder
        Returns:
        The namespaceSelector.
      • setNamespaceSelector

        public Generated.PodAffinityTerm.Builder setNamespaceSelector​(Generated.LabelSelector value)
         A label query over the set of namespaces that the term applies to.
         The term is applied to the union of the namespaces selected by this field
         and the ones listed in the namespaces field.
         null selector and null or empty namespaces list means "this pod's namespace".
         An empty selector ({}) matches all namespaces.
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 4;
      • setNamespaceSelector

        public Generated.PodAffinityTerm.Builder setNamespaceSelector​(Generated.LabelSelector.Builder builderForValue)
         A label query over the set of namespaces that the term applies to.
         The term is applied to the union of the namespaces selected by this field
         and the ones listed in the namespaces field.
         null selector and null or empty namespaces list means "this pod's namespace".
         An empty selector ({}) matches all namespaces.
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 4;
      • mergeNamespaceSelector

        public Generated.PodAffinityTerm.Builder mergeNamespaceSelector​(Generated.LabelSelector value)
         A label query over the set of namespaces that the term applies to.
         The term is applied to the union of the namespaces selected by this field
         and the ones listed in the namespaces field.
         null selector and null or empty namespaces list means "this pod's namespace".
         An empty selector ({}) matches all namespaces.
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 4;
      • clearNamespaceSelector

        public Generated.PodAffinityTerm.Builder clearNamespaceSelector()
         A label query over the set of namespaces that the term applies to.
         The term is applied to the union of the namespaces selected by this field
         and the ones listed in the namespaces field.
         null selector and null or empty namespaces list means "this pod's namespace".
         An empty selector ({}) matches all namespaces.
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 4;
      • getNamespaceSelectorBuilder

        public Generated.LabelSelector.Builder getNamespaceSelectorBuilder()
         A label query over the set of namespaces that the term applies to.
         The term is applied to the union of the namespaces selected by this field
         and the ones listed in the namespaces field.
         null selector and null or empty namespaces list means "this pod's namespace".
         An empty selector ({}) matches all namespaces.
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 4;
      • getNamespaceSelectorOrBuilder

        public Generated.LabelSelectorOrBuilder getNamespaceSelectorOrBuilder()
         A label query over the set of namespaces that the term applies to.
         The term is applied to the union of the namespaces selected by this field
         and the ones listed in the namespaces field.
         null selector and null or empty namespaces list means "this pod's namespace".
         An empty selector ({}) matches all namespaces.
         +optional
         
        optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 4;
        Specified by:
        getNamespaceSelectorOrBuilder in interface Generated.PodAffinityTermOrBuilder
      • getMatchLabelKeysList

        public com.google.protobuf.ProtocolStringList getMatchLabelKeysList()
         MatchLabelKeys is a set of pod label keys to select which pods will
         be taken into consideration. The keys are used to lookup values from the
         incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`
         to select the group of existing pods which pods will be taken into consideration
         for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
         pod labels will be ignored. The default value is empty.
         The same key is forbidden to exist in both matchLabelKeys and labelSelector.
         Also, matchLabelKeys cannot be set when labelSelector isn't set.
         This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).
        
         +listType=atomic
         +optional
         
        repeated string matchLabelKeys = 5;
        Specified by:
        getMatchLabelKeysList in interface Generated.PodAffinityTermOrBuilder
        Returns:
        A list containing the matchLabelKeys.
      • getMatchLabelKeysCount

        public int getMatchLabelKeysCount()
         MatchLabelKeys is a set of pod label keys to select which pods will
         be taken into consideration. The keys are used to lookup values from the
         incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`
         to select the group of existing pods which pods will be taken into consideration
         for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
         pod labels will be ignored. The default value is empty.
         The same key is forbidden to exist in both matchLabelKeys and labelSelector.
         Also, matchLabelKeys cannot be set when labelSelector isn't set.
         This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).
        
         +listType=atomic
         +optional
         
        repeated string matchLabelKeys = 5;
        Specified by:
        getMatchLabelKeysCount in interface Generated.PodAffinityTermOrBuilder
        Returns:
        The count of matchLabelKeys.
      • getMatchLabelKeys

        public String getMatchLabelKeys​(int index)
         MatchLabelKeys is a set of pod label keys to select which pods will
         be taken into consideration. The keys are used to lookup values from the
         incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`
         to select the group of existing pods which pods will be taken into consideration
         for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
         pod labels will be ignored. The default value is empty.
         The same key is forbidden to exist in both matchLabelKeys and labelSelector.
         Also, matchLabelKeys cannot be set when labelSelector isn't set.
         This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).
        
         +listType=atomic
         +optional
         
        repeated string matchLabelKeys = 5;
        Specified by:
        getMatchLabelKeys in interface Generated.PodAffinityTermOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The matchLabelKeys at the given index.
      • getMatchLabelKeysBytes

        public com.google.protobuf.ByteString getMatchLabelKeysBytes​(int index)
         MatchLabelKeys is a set of pod label keys to select which pods will
         be taken into consideration. The keys are used to lookup values from the
         incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`
         to select the group of existing pods which pods will be taken into consideration
         for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
         pod labels will be ignored. The default value is empty.
         The same key is forbidden to exist in both matchLabelKeys and labelSelector.
         Also, matchLabelKeys cannot be set when labelSelector isn't set.
         This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).
        
         +listType=atomic
         +optional
         
        repeated string matchLabelKeys = 5;
        Specified by:
        getMatchLabelKeysBytes in interface Generated.PodAffinityTermOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the matchLabelKeys at the given index.
      • setMatchLabelKeys

        public Generated.PodAffinityTerm.Builder setMatchLabelKeys​(int index,
                                                                   String value)
         MatchLabelKeys is a set of pod label keys to select which pods will
         be taken into consideration. The keys are used to lookup values from the
         incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`
         to select the group of existing pods which pods will be taken into consideration
         for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
         pod labels will be ignored. The default value is empty.
         The same key is forbidden to exist in both matchLabelKeys and labelSelector.
         Also, matchLabelKeys cannot be set when labelSelector isn't set.
         This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).
        
         +listType=atomic
         +optional
         
        repeated string matchLabelKeys = 5;
        Parameters:
        index - The index to set the value at.
        value - The matchLabelKeys to set.
        Returns:
        This builder for chaining.
      • addMatchLabelKeys

        public Generated.PodAffinityTerm.Builder addMatchLabelKeys​(String value)
         MatchLabelKeys is a set of pod label keys to select which pods will
         be taken into consideration. The keys are used to lookup values from the
         incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`
         to select the group of existing pods which pods will be taken into consideration
         for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
         pod labels will be ignored. The default value is empty.
         The same key is forbidden to exist in both matchLabelKeys and labelSelector.
         Also, matchLabelKeys cannot be set when labelSelector isn't set.
         This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).
        
         +listType=atomic
         +optional
         
        repeated string matchLabelKeys = 5;
        Parameters:
        value - The matchLabelKeys to add.
        Returns:
        This builder for chaining.
      • addAllMatchLabelKeys

        public Generated.PodAffinityTerm.Builder addAllMatchLabelKeys​(Iterable<String> values)
         MatchLabelKeys is a set of pod label keys to select which pods will
         be taken into consideration. The keys are used to lookup values from the
         incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`
         to select the group of existing pods which pods will be taken into consideration
         for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
         pod labels will be ignored. The default value is empty.
         The same key is forbidden to exist in both matchLabelKeys and labelSelector.
         Also, matchLabelKeys cannot be set when labelSelector isn't set.
         This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).
        
         +listType=atomic
         +optional
         
        repeated string matchLabelKeys = 5;
        Parameters:
        values - The matchLabelKeys to add.
        Returns:
        This builder for chaining.
      • clearMatchLabelKeys

        public Generated.PodAffinityTerm.Builder clearMatchLabelKeys()
         MatchLabelKeys is a set of pod label keys to select which pods will
         be taken into consideration. The keys are used to lookup values from the
         incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`
         to select the group of existing pods which pods will be taken into consideration
         for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
         pod labels will be ignored. The default value is empty.
         The same key is forbidden to exist in both matchLabelKeys and labelSelector.
         Also, matchLabelKeys cannot be set when labelSelector isn't set.
         This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).
        
         +listType=atomic
         +optional
         
        repeated string matchLabelKeys = 5;
        Returns:
        This builder for chaining.
      • addMatchLabelKeysBytes

        public Generated.PodAffinityTerm.Builder addMatchLabelKeysBytes​(com.google.protobuf.ByteString value)
         MatchLabelKeys is a set of pod label keys to select which pods will
         be taken into consideration. The keys are used to lookup values from the
         incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)`
         to select the group of existing pods which pods will be taken into consideration
         for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
         pod labels will be ignored. The default value is empty.
         The same key is forbidden to exist in both matchLabelKeys and labelSelector.
         Also, matchLabelKeys cannot be set when labelSelector isn't set.
         This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).
        
         +listType=atomic
         +optional
         
        repeated string matchLabelKeys = 5;
        Parameters:
        value - The bytes of the matchLabelKeys to add.
        Returns:
        This builder for chaining.
      • getMismatchLabelKeysList

        public com.google.protobuf.ProtocolStringList getMismatchLabelKeysList()
         MismatchLabelKeys is a set of pod label keys to select which pods will
         be taken into consideration. The keys are used to lookup values from the
         incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`
         to select the group of existing pods which pods will be taken into consideration
         for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
         pod labels will be ignored. The default value is empty.
         The same key is forbidden to exist in both mismatchLabelKeys and labelSelector.
         Also, mismatchLabelKeys cannot be set when labelSelector isn't set.
         This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).
        
         +listType=atomic
         +optional
         
        repeated string mismatchLabelKeys = 6;
        Specified by:
        getMismatchLabelKeysList in interface Generated.PodAffinityTermOrBuilder
        Returns:
        A list containing the mismatchLabelKeys.
      • getMismatchLabelKeysCount

        public int getMismatchLabelKeysCount()
         MismatchLabelKeys is a set of pod label keys to select which pods will
         be taken into consideration. The keys are used to lookup values from the
         incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`
         to select the group of existing pods which pods will be taken into consideration
         for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
         pod labels will be ignored. The default value is empty.
         The same key is forbidden to exist in both mismatchLabelKeys and labelSelector.
         Also, mismatchLabelKeys cannot be set when labelSelector isn't set.
         This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).
        
         +listType=atomic
         +optional
         
        repeated string mismatchLabelKeys = 6;
        Specified by:
        getMismatchLabelKeysCount in interface Generated.PodAffinityTermOrBuilder
        Returns:
        The count of mismatchLabelKeys.
      • getMismatchLabelKeys

        public String getMismatchLabelKeys​(int index)
         MismatchLabelKeys is a set of pod label keys to select which pods will
         be taken into consideration. The keys are used to lookup values from the
         incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`
         to select the group of existing pods which pods will be taken into consideration
         for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
         pod labels will be ignored. The default value is empty.
         The same key is forbidden to exist in both mismatchLabelKeys and labelSelector.
         Also, mismatchLabelKeys cannot be set when labelSelector isn't set.
         This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).
        
         +listType=atomic
         +optional
         
        repeated string mismatchLabelKeys = 6;
        Specified by:
        getMismatchLabelKeys in interface Generated.PodAffinityTermOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The mismatchLabelKeys at the given index.
      • getMismatchLabelKeysBytes

        public com.google.protobuf.ByteString getMismatchLabelKeysBytes​(int index)
         MismatchLabelKeys is a set of pod label keys to select which pods will
         be taken into consideration. The keys are used to lookup values from the
         incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`
         to select the group of existing pods which pods will be taken into consideration
         for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
         pod labels will be ignored. The default value is empty.
         The same key is forbidden to exist in both mismatchLabelKeys and labelSelector.
         Also, mismatchLabelKeys cannot be set when labelSelector isn't set.
         This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).
        
         +listType=atomic
         +optional
         
        repeated string mismatchLabelKeys = 6;
        Specified by:
        getMismatchLabelKeysBytes in interface Generated.PodAffinityTermOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the mismatchLabelKeys at the given index.
      • setMismatchLabelKeys

        public Generated.PodAffinityTerm.Builder setMismatchLabelKeys​(int index,
                                                                      String value)
         MismatchLabelKeys is a set of pod label keys to select which pods will
         be taken into consideration. The keys are used to lookup values from the
         incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`
         to select the group of existing pods which pods will be taken into consideration
         for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
         pod labels will be ignored. The default value is empty.
         The same key is forbidden to exist in both mismatchLabelKeys and labelSelector.
         Also, mismatchLabelKeys cannot be set when labelSelector isn't set.
         This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).
        
         +listType=atomic
         +optional
         
        repeated string mismatchLabelKeys = 6;
        Parameters:
        index - The index to set the value at.
        value - The mismatchLabelKeys to set.
        Returns:
        This builder for chaining.
      • addMismatchLabelKeys

        public Generated.PodAffinityTerm.Builder addMismatchLabelKeys​(String value)
         MismatchLabelKeys is a set of pod label keys to select which pods will
         be taken into consideration. The keys are used to lookup values from the
         incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`
         to select the group of existing pods which pods will be taken into consideration
         for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
         pod labels will be ignored. The default value is empty.
         The same key is forbidden to exist in both mismatchLabelKeys and labelSelector.
         Also, mismatchLabelKeys cannot be set when labelSelector isn't set.
         This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).
        
         +listType=atomic
         +optional
         
        repeated string mismatchLabelKeys = 6;
        Parameters:
        value - The mismatchLabelKeys to add.
        Returns:
        This builder for chaining.
      • addAllMismatchLabelKeys

        public Generated.PodAffinityTerm.Builder addAllMismatchLabelKeys​(Iterable<String> values)
         MismatchLabelKeys is a set of pod label keys to select which pods will
         be taken into consideration. The keys are used to lookup values from the
         incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`
         to select the group of existing pods which pods will be taken into consideration
         for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
         pod labels will be ignored. The default value is empty.
         The same key is forbidden to exist in both mismatchLabelKeys and labelSelector.
         Also, mismatchLabelKeys cannot be set when labelSelector isn't set.
         This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).
        
         +listType=atomic
         +optional
         
        repeated string mismatchLabelKeys = 6;
        Parameters:
        values - The mismatchLabelKeys to add.
        Returns:
        This builder for chaining.
      • clearMismatchLabelKeys

        public Generated.PodAffinityTerm.Builder clearMismatchLabelKeys()
         MismatchLabelKeys is a set of pod label keys to select which pods will
         be taken into consideration. The keys are used to lookup values from the
         incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`
         to select the group of existing pods which pods will be taken into consideration
         for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
         pod labels will be ignored. The default value is empty.
         The same key is forbidden to exist in both mismatchLabelKeys and labelSelector.
         Also, mismatchLabelKeys cannot be set when labelSelector isn't set.
         This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).
        
         +listType=atomic
         +optional
         
        repeated string mismatchLabelKeys = 6;
        Returns:
        This builder for chaining.
      • addMismatchLabelKeysBytes

        public Generated.PodAffinityTerm.Builder addMismatchLabelKeysBytes​(com.google.protobuf.ByteString value)
         MismatchLabelKeys is a set of pod label keys to select which pods will
         be taken into consideration. The keys are used to lookup values from the
         incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)`
         to select the group of existing pods which pods will be taken into consideration
         for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming
         pod labels will be ignored. The default value is empty.
         The same key is forbidden to exist in both mismatchLabelKeys and labelSelector.
         Also, mismatchLabelKeys cannot be set when labelSelector isn't set.
         This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default).
        
         +listType=atomic
         +optional
         
        repeated string mismatchLabelKeys = 6;
        Parameters:
        value - The bytes of the mismatchLabelKeys to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final Generated.PodAffinityTerm.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<Generated.PodAffinityTerm.Builder>
      • mergeUnknownFields

        public final Generated.PodAffinityTerm.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<Generated.PodAffinityTerm.Builder>