Class Generated.PodAffinity.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.PodAffinity.Builder>
      • clear

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

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

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

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

        public Generated.PodAffinity.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<Generated.PodAffinity.Builder>
      • clearField

        public Generated.PodAffinity.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<Generated.PodAffinity.Builder>
      • clearOneof

        public Generated.PodAffinity.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<Generated.PodAffinity.Builder>
      • setRepeatedField

        public Generated.PodAffinity.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.PodAffinity.Builder>
      • addRepeatedField

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

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

        public List<Generated.PodAffinityTerm> getRequiredDuringSchedulingIgnoredDuringExecutionList()
         If the affinity requirements specified by this field are not met at
         scheduling time, the pod will not be scheduled onto the node.
         If the affinity requirements specified by this field cease to be met
         at some point during pod execution (e.g. due to a pod label update), the
         system may or may not try to eventually evict the pod from its node.
         When there are multiple elements, the lists of nodes corresponding to each
         podAffinityTerm are intersected, i.e. all terms must be satisfied.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1;
        Specified by:
        getRequiredDuringSchedulingIgnoredDuringExecutionList in interface Generated.PodAffinityOrBuilder
      • getRequiredDuringSchedulingIgnoredDuringExecutionCount

        public int getRequiredDuringSchedulingIgnoredDuringExecutionCount()
         If the affinity requirements specified by this field are not met at
         scheduling time, the pod will not be scheduled onto the node.
         If the affinity requirements specified by this field cease to be met
         at some point during pod execution (e.g. due to a pod label update), the
         system may or may not try to eventually evict the pod from its node.
         When there are multiple elements, the lists of nodes corresponding to each
         podAffinityTerm are intersected, i.e. all terms must be satisfied.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1;
        Specified by:
        getRequiredDuringSchedulingIgnoredDuringExecutionCount in interface Generated.PodAffinityOrBuilder
      • getRequiredDuringSchedulingIgnoredDuringExecution

        public Generated.PodAffinityTerm getRequiredDuringSchedulingIgnoredDuringExecution​(int index)
         If the affinity requirements specified by this field are not met at
         scheduling time, the pod will not be scheduled onto the node.
         If the affinity requirements specified by this field cease to be met
         at some point during pod execution (e.g. due to a pod label update), the
         system may or may not try to eventually evict the pod from its node.
         When there are multiple elements, the lists of nodes corresponding to each
         podAffinityTerm are intersected, i.e. all terms must be satisfied.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1;
        Specified by:
        getRequiredDuringSchedulingIgnoredDuringExecution in interface Generated.PodAffinityOrBuilder
      • setRequiredDuringSchedulingIgnoredDuringExecution

        public Generated.PodAffinity.Builder setRequiredDuringSchedulingIgnoredDuringExecution​(int index,
                                                                                               Generated.PodAffinityTerm value)
         If the affinity requirements specified by this field are not met at
         scheduling time, the pod will not be scheduled onto the node.
         If the affinity requirements specified by this field cease to be met
         at some point during pod execution (e.g. due to a pod label update), the
         system may or may not try to eventually evict the pod from its node.
         When there are multiple elements, the lists of nodes corresponding to each
         podAffinityTerm are intersected, i.e. all terms must be satisfied.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1;
      • setRequiredDuringSchedulingIgnoredDuringExecution

        public Generated.PodAffinity.Builder setRequiredDuringSchedulingIgnoredDuringExecution​(int index,
                                                                                               Generated.PodAffinityTerm.Builder builderForValue)
         If the affinity requirements specified by this field are not met at
         scheduling time, the pod will not be scheduled onto the node.
         If the affinity requirements specified by this field cease to be met
         at some point during pod execution (e.g. due to a pod label update), the
         system may or may not try to eventually evict the pod from its node.
         When there are multiple elements, the lists of nodes corresponding to each
         podAffinityTerm are intersected, i.e. all terms must be satisfied.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1;
      • addRequiredDuringSchedulingIgnoredDuringExecution

        public Generated.PodAffinity.Builder addRequiredDuringSchedulingIgnoredDuringExecution​(Generated.PodAffinityTerm value)
         If the affinity requirements specified by this field are not met at
         scheduling time, the pod will not be scheduled onto the node.
         If the affinity requirements specified by this field cease to be met
         at some point during pod execution (e.g. due to a pod label update), the
         system may or may not try to eventually evict the pod from its node.
         When there are multiple elements, the lists of nodes corresponding to each
         podAffinityTerm are intersected, i.e. all terms must be satisfied.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1;
      • addRequiredDuringSchedulingIgnoredDuringExecution

        public Generated.PodAffinity.Builder addRequiredDuringSchedulingIgnoredDuringExecution​(int index,
                                                                                               Generated.PodAffinityTerm value)
         If the affinity requirements specified by this field are not met at
         scheduling time, the pod will not be scheduled onto the node.
         If the affinity requirements specified by this field cease to be met
         at some point during pod execution (e.g. due to a pod label update), the
         system may or may not try to eventually evict the pod from its node.
         When there are multiple elements, the lists of nodes corresponding to each
         podAffinityTerm are intersected, i.e. all terms must be satisfied.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1;
      • addRequiredDuringSchedulingIgnoredDuringExecution

        public Generated.PodAffinity.Builder addRequiredDuringSchedulingIgnoredDuringExecution​(Generated.PodAffinityTerm.Builder builderForValue)
         If the affinity requirements specified by this field are not met at
         scheduling time, the pod will not be scheduled onto the node.
         If the affinity requirements specified by this field cease to be met
         at some point during pod execution (e.g. due to a pod label update), the
         system may or may not try to eventually evict the pod from its node.
         When there are multiple elements, the lists of nodes corresponding to each
         podAffinityTerm are intersected, i.e. all terms must be satisfied.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1;
      • addRequiredDuringSchedulingIgnoredDuringExecution

        public Generated.PodAffinity.Builder addRequiredDuringSchedulingIgnoredDuringExecution​(int index,
                                                                                               Generated.PodAffinityTerm.Builder builderForValue)
         If the affinity requirements specified by this field are not met at
         scheduling time, the pod will not be scheduled onto the node.
         If the affinity requirements specified by this field cease to be met
         at some point during pod execution (e.g. due to a pod label update), the
         system may or may not try to eventually evict the pod from its node.
         When there are multiple elements, the lists of nodes corresponding to each
         podAffinityTerm are intersected, i.e. all terms must be satisfied.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1;
      • addAllRequiredDuringSchedulingIgnoredDuringExecution

        public Generated.PodAffinity.Builder addAllRequiredDuringSchedulingIgnoredDuringExecution​(Iterable<? extends Generated.PodAffinityTerm> values)
         If the affinity requirements specified by this field are not met at
         scheduling time, the pod will not be scheduled onto the node.
         If the affinity requirements specified by this field cease to be met
         at some point during pod execution (e.g. due to a pod label update), the
         system may or may not try to eventually evict the pod from its node.
         When there are multiple elements, the lists of nodes corresponding to each
         podAffinityTerm are intersected, i.e. all terms must be satisfied.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1;
      • clearRequiredDuringSchedulingIgnoredDuringExecution

        public Generated.PodAffinity.Builder clearRequiredDuringSchedulingIgnoredDuringExecution()
         If the affinity requirements specified by this field are not met at
         scheduling time, the pod will not be scheduled onto the node.
         If the affinity requirements specified by this field cease to be met
         at some point during pod execution (e.g. due to a pod label update), the
         system may or may not try to eventually evict the pod from its node.
         When there are multiple elements, the lists of nodes corresponding to each
         podAffinityTerm are intersected, i.e. all terms must be satisfied.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1;
      • removeRequiredDuringSchedulingIgnoredDuringExecution

        public Generated.PodAffinity.Builder removeRequiredDuringSchedulingIgnoredDuringExecution​(int index)
         If the affinity requirements specified by this field are not met at
         scheduling time, the pod will not be scheduled onto the node.
         If the affinity requirements specified by this field cease to be met
         at some point during pod execution (e.g. due to a pod label update), the
         system may or may not try to eventually evict the pod from its node.
         When there are multiple elements, the lists of nodes corresponding to each
         podAffinityTerm are intersected, i.e. all terms must be satisfied.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1;
      • getRequiredDuringSchedulingIgnoredDuringExecutionBuilder

        public Generated.PodAffinityTerm.Builder getRequiredDuringSchedulingIgnoredDuringExecutionBuilder​(int index)
         If the affinity requirements specified by this field are not met at
         scheduling time, the pod will not be scheduled onto the node.
         If the affinity requirements specified by this field cease to be met
         at some point during pod execution (e.g. due to a pod label update), the
         system may or may not try to eventually evict the pod from its node.
         When there are multiple elements, the lists of nodes corresponding to each
         podAffinityTerm are intersected, i.e. all terms must be satisfied.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1;
      • getRequiredDuringSchedulingIgnoredDuringExecutionOrBuilder

        public Generated.PodAffinityTermOrBuilder getRequiredDuringSchedulingIgnoredDuringExecutionOrBuilder​(int index)
         If the affinity requirements specified by this field are not met at
         scheduling time, the pod will not be scheduled onto the node.
         If the affinity requirements specified by this field cease to be met
         at some point during pod execution (e.g. due to a pod label update), the
         system may or may not try to eventually evict the pod from its node.
         When there are multiple elements, the lists of nodes corresponding to each
         podAffinityTerm are intersected, i.e. all terms must be satisfied.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1;
        Specified by:
        getRequiredDuringSchedulingIgnoredDuringExecutionOrBuilder in interface Generated.PodAffinityOrBuilder
      • getRequiredDuringSchedulingIgnoredDuringExecutionOrBuilderList

        public List<? extends Generated.PodAffinityTermOrBuilder> getRequiredDuringSchedulingIgnoredDuringExecutionOrBuilderList()
         If the affinity requirements specified by this field are not met at
         scheduling time, the pod will not be scheduled onto the node.
         If the affinity requirements specified by this field cease to be met
         at some point during pod execution (e.g. due to a pod label update), the
         system may or may not try to eventually evict the pod from its node.
         When there are multiple elements, the lists of nodes corresponding to each
         podAffinityTerm are intersected, i.e. all terms must be satisfied.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1;
        Specified by:
        getRequiredDuringSchedulingIgnoredDuringExecutionOrBuilderList in interface Generated.PodAffinityOrBuilder
      • addRequiredDuringSchedulingIgnoredDuringExecutionBuilder

        public Generated.PodAffinityTerm.Builder addRequiredDuringSchedulingIgnoredDuringExecutionBuilder()
         If the affinity requirements specified by this field are not met at
         scheduling time, the pod will not be scheduled onto the node.
         If the affinity requirements specified by this field cease to be met
         at some point during pod execution (e.g. due to a pod label update), the
         system may or may not try to eventually evict the pod from its node.
         When there are multiple elements, the lists of nodes corresponding to each
         podAffinityTerm are intersected, i.e. all terms must be satisfied.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1;
      • addRequiredDuringSchedulingIgnoredDuringExecutionBuilder

        public Generated.PodAffinityTerm.Builder addRequiredDuringSchedulingIgnoredDuringExecutionBuilder​(int index)
         If the affinity requirements specified by this field are not met at
         scheduling time, the pod will not be scheduled onto the node.
         If the affinity requirements specified by this field cease to be met
         at some point during pod execution (e.g. due to a pod label update), the
         system may or may not try to eventually evict the pod from its node.
         When there are multiple elements, the lists of nodes corresponding to each
         podAffinityTerm are intersected, i.e. all terms must be satisfied.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1;
      • getRequiredDuringSchedulingIgnoredDuringExecutionBuilderList

        public List<Generated.PodAffinityTerm.Builder> getRequiredDuringSchedulingIgnoredDuringExecutionBuilderList()
         If the affinity requirements specified by this field are not met at
         scheduling time, the pod will not be scheduled onto the node.
         If the affinity requirements specified by this field cease to be met
         at some point during pod execution (e.g. due to a pod label update), the
         system may or may not try to eventually evict the pod from its node.
         When there are multiple elements, the lists of nodes corresponding to each
         podAffinityTerm are intersected, i.e. all terms must be satisfied.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1;
      • getPreferredDuringSchedulingIgnoredDuringExecutionList

        public List<Generated.WeightedPodAffinityTerm> getPreferredDuringSchedulingIgnoredDuringExecutionList()
         The scheduler will prefer to schedule pods to nodes that satisfy
         the affinity expressions specified by this field, but it may choose
         a node that violates one or more of the expressions. The node that is
         most preferred is the one with the greatest sum of weights, i.e.
         for each node that meets all of the scheduling requirements (resource
         request, requiredDuringScheduling affinity expressions, etc.),
         compute a sum by iterating through the elements of this field and adding
         "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
         node(s) with the highest sum are the most preferred.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2;
        Specified by:
        getPreferredDuringSchedulingIgnoredDuringExecutionList in interface Generated.PodAffinityOrBuilder
      • getPreferredDuringSchedulingIgnoredDuringExecutionCount

        public int getPreferredDuringSchedulingIgnoredDuringExecutionCount()
         The scheduler will prefer to schedule pods to nodes that satisfy
         the affinity expressions specified by this field, but it may choose
         a node that violates one or more of the expressions. The node that is
         most preferred is the one with the greatest sum of weights, i.e.
         for each node that meets all of the scheduling requirements (resource
         request, requiredDuringScheduling affinity expressions, etc.),
         compute a sum by iterating through the elements of this field and adding
         "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
         node(s) with the highest sum are the most preferred.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2;
        Specified by:
        getPreferredDuringSchedulingIgnoredDuringExecutionCount in interface Generated.PodAffinityOrBuilder
      • getPreferredDuringSchedulingIgnoredDuringExecution

        public Generated.WeightedPodAffinityTerm getPreferredDuringSchedulingIgnoredDuringExecution​(int index)
         The scheduler will prefer to schedule pods to nodes that satisfy
         the affinity expressions specified by this field, but it may choose
         a node that violates one or more of the expressions. The node that is
         most preferred is the one with the greatest sum of weights, i.e.
         for each node that meets all of the scheduling requirements (resource
         request, requiredDuringScheduling affinity expressions, etc.),
         compute a sum by iterating through the elements of this field and adding
         "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
         node(s) with the highest sum are the most preferred.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2;
        Specified by:
        getPreferredDuringSchedulingIgnoredDuringExecution in interface Generated.PodAffinityOrBuilder
      • setPreferredDuringSchedulingIgnoredDuringExecution

        public Generated.PodAffinity.Builder setPreferredDuringSchedulingIgnoredDuringExecution​(int index,
                                                                                                Generated.WeightedPodAffinityTerm value)
         The scheduler will prefer to schedule pods to nodes that satisfy
         the affinity expressions specified by this field, but it may choose
         a node that violates one or more of the expressions. The node that is
         most preferred is the one with the greatest sum of weights, i.e.
         for each node that meets all of the scheduling requirements (resource
         request, requiredDuringScheduling affinity expressions, etc.),
         compute a sum by iterating through the elements of this field and adding
         "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
         node(s) with the highest sum are the most preferred.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2;
      • setPreferredDuringSchedulingIgnoredDuringExecution

        public Generated.PodAffinity.Builder setPreferredDuringSchedulingIgnoredDuringExecution​(int index,
                                                                                                Generated.WeightedPodAffinityTerm.Builder builderForValue)
         The scheduler will prefer to schedule pods to nodes that satisfy
         the affinity expressions specified by this field, but it may choose
         a node that violates one or more of the expressions. The node that is
         most preferred is the one with the greatest sum of weights, i.e.
         for each node that meets all of the scheduling requirements (resource
         request, requiredDuringScheduling affinity expressions, etc.),
         compute a sum by iterating through the elements of this field and adding
         "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
         node(s) with the highest sum are the most preferred.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2;
      • addPreferredDuringSchedulingIgnoredDuringExecution

        public Generated.PodAffinity.Builder addPreferredDuringSchedulingIgnoredDuringExecution​(Generated.WeightedPodAffinityTerm value)
         The scheduler will prefer to schedule pods to nodes that satisfy
         the affinity expressions specified by this field, but it may choose
         a node that violates one or more of the expressions. The node that is
         most preferred is the one with the greatest sum of weights, i.e.
         for each node that meets all of the scheduling requirements (resource
         request, requiredDuringScheduling affinity expressions, etc.),
         compute a sum by iterating through the elements of this field and adding
         "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
         node(s) with the highest sum are the most preferred.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2;
      • addPreferredDuringSchedulingIgnoredDuringExecution

        public Generated.PodAffinity.Builder addPreferredDuringSchedulingIgnoredDuringExecution​(int index,
                                                                                                Generated.WeightedPodAffinityTerm value)
         The scheduler will prefer to schedule pods to nodes that satisfy
         the affinity expressions specified by this field, but it may choose
         a node that violates one or more of the expressions. The node that is
         most preferred is the one with the greatest sum of weights, i.e.
         for each node that meets all of the scheduling requirements (resource
         request, requiredDuringScheduling affinity expressions, etc.),
         compute a sum by iterating through the elements of this field and adding
         "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
         node(s) with the highest sum are the most preferred.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2;
      • addPreferredDuringSchedulingIgnoredDuringExecution

        public Generated.PodAffinity.Builder addPreferredDuringSchedulingIgnoredDuringExecution​(Generated.WeightedPodAffinityTerm.Builder builderForValue)
         The scheduler will prefer to schedule pods to nodes that satisfy
         the affinity expressions specified by this field, but it may choose
         a node that violates one or more of the expressions. The node that is
         most preferred is the one with the greatest sum of weights, i.e.
         for each node that meets all of the scheduling requirements (resource
         request, requiredDuringScheduling affinity expressions, etc.),
         compute a sum by iterating through the elements of this field and adding
         "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
         node(s) with the highest sum are the most preferred.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2;
      • addPreferredDuringSchedulingIgnoredDuringExecution

        public Generated.PodAffinity.Builder addPreferredDuringSchedulingIgnoredDuringExecution​(int index,
                                                                                                Generated.WeightedPodAffinityTerm.Builder builderForValue)
         The scheduler will prefer to schedule pods to nodes that satisfy
         the affinity expressions specified by this field, but it may choose
         a node that violates one or more of the expressions. The node that is
         most preferred is the one with the greatest sum of weights, i.e.
         for each node that meets all of the scheduling requirements (resource
         request, requiredDuringScheduling affinity expressions, etc.),
         compute a sum by iterating through the elements of this field and adding
         "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
         node(s) with the highest sum are the most preferred.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2;
      • addAllPreferredDuringSchedulingIgnoredDuringExecution

        public Generated.PodAffinity.Builder addAllPreferredDuringSchedulingIgnoredDuringExecution​(Iterable<? extends Generated.WeightedPodAffinityTerm> values)
         The scheduler will prefer to schedule pods to nodes that satisfy
         the affinity expressions specified by this field, but it may choose
         a node that violates one or more of the expressions. The node that is
         most preferred is the one with the greatest sum of weights, i.e.
         for each node that meets all of the scheduling requirements (resource
         request, requiredDuringScheduling affinity expressions, etc.),
         compute a sum by iterating through the elements of this field and adding
         "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
         node(s) with the highest sum are the most preferred.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2;
      • clearPreferredDuringSchedulingIgnoredDuringExecution

        public Generated.PodAffinity.Builder clearPreferredDuringSchedulingIgnoredDuringExecution()
         The scheduler will prefer to schedule pods to nodes that satisfy
         the affinity expressions specified by this field, but it may choose
         a node that violates one or more of the expressions. The node that is
         most preferred is the one with the greatest sum of weights, i.e.
         for each node that meets all of the scheduling requirements (resource
         request, requiredDuringScheduling affinity expressions, etc.),
         compute a sum by iterating through the elements of this field and adding
         "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
         node(s) with the highest sum are the most preferred.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2;
      • removePreferredDuringSchedulingIgnoredDuringExecution

        public Generated.PodAffinity.Builder removePreferredDuringSchedulingIgnoredDuringExecution​(int index)
         The scheduler will prefer to schedule pods to nodes that satisfy
         the affinity expressions specified by this field, but it may choose
         a node that violates one or more of the expressions. The node that is
         most preferred is the one with the greatest sum of weights, i.e.
         for each node that meets all of the scheduling requirements (resource
         request, requiredDuringScheduling affinity expressions, etc.),
         compute a sum by iterating through the elements of this field and adding
         "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
         node(s) with the highest sum are the most preferred.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2;
      • getPreferredDuringSchedulingIgnoredDuringExecutionBuilder

        public Generated.WeightedPodAffinityTerm.Builder getPreferredDuringSchedulingIgnoredDuringExecutionBuilder​(int index)
         The scheduler will prefer to schedule pods to nodes that satisfy
         the affinity expressions specified by this field, but it may choose
         a node that violates one or more of the expressions. The node that is
         most preferred is the one with the greatest sum of weights, i.e.
         for each node that meets all of the scheduling requirements (resource
         request, requiredDuringScheduling affinity expressions, etc.),
         compute a sum by iterating through the elements of this field and adding
         "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
         node(s) with the highest sum are the most preferred.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2;
      • getPreferredDuringSchedulingIgnoredDuringExecutionOrBuilder

        public Generated.WeightedPodAffinityTermOrBuilder getPreferredDuringSchedulingIgnoredDuringExecutionOrBuilder​(int index)
         The scheduler will prefer to schedule pods to nodes that satisfy
         the affinity expressions specified by this field, but it may choose
         a node that violates one or more of the expressions. The node that is
         most preferred is the one with the greatest sum of weights, i.e.
         for each node that meets all of the scheduling requirements (resource
         request, requiredDuringScheduling affinity expressions, etc.),
         compute a sum by iterating through the elements of this field and adding
         "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
         node(s) with the highest sum are the most preferred.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2;
        Specified by:
        getPreferredDuringSchedulingIgnoredDuringExecutionOrBuilder in interface Generated.PodAffinityOrBuilder
      • getPreferredDuringSchedulingIgnoredDuringExecutionOrBuilderList

        public List<? extends Generated.WeightedPodAffinityTermOrBuilder> getPreferredDuringSchedulingIgnoredDuringExecutionOrBuilderList()
         The scheduler will prefer to schedule pods to nodes that satisfy
         the affinity expressions specified by this field, but it may choose
         a node that violates one or more of the expressions. The node that is
         most preferred is the one with the greatest sum of weights, i.e.
         for each node that meets all of the scheduling requirements (resource
         request, requiredDuringScheduling affinity expressions, etc.),
         compute a sum by iterating through the elements of this field and adding
         "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
         node(s) with the highest sum are the most preferred.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2;
        Specified by:
        getPreferredDuringSchedulingIgnoredDuringExecutionOrBuilderList in interface Generated.PodAffinityOrBuilder
      • addPreferredDuringSchedulingIgnoredDuringExecutionBuilder

        public Generated.WeightedPodAffinityTerm.Builder addPreferredDuringSchedulingIgnoredDuringExecutionBuilder()
         The scheduler will prefer to schedule pods to nodes that satisfy
         the affinity expressions specified by this field, but it may choose
         a node that violates one or more of the expressions. The node that is
         most preferred is the one with the greatest sum of weights, i.e.
         for each node that meets all of the scheduling requirements (resource
         request, requiredDuringScheduling affinity expressions, etc.),
         compute a sum by iterating through the elements of this field and adding
         "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
         node(s) with the highest sum are the most preferred.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2;
      • addPreferredDuringSchedulingIgnoredDuringExecutionBuilder

        public Generated.WeightedPodAffinityTerm.Builder addPreferredDuringSchedulingIgnoredDuringExecutionBuilder​(int index)
         The scheduler will prefer to schedule pods to nodes that satisfy
         the affinity expressions specified by this field, but it may choose
         a node that violates one or more of the expressions. The node that is
         most preferred is the one with the greatest sum of weights, i.e.
         for each node that meets all of the scheduling requirements (resource
         request, requiredDuringScheduling affinity expressions, etc.),
         compute a sum by iterating through the elements of this field and adding
         "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
         node(s) with the highest sum are the most preferred.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2;
      • getPreferredDuringSchedulingIgnoredDuringExecutionBuilderList

        public List<Generated.WeightedPodAffinityTerm.Builder> getPreferredDuringSchedulingIgnoredDuringExecutionBuilderList()
         The scheduler will prefer to schedule pods to nodes that satisfy
         the affinity expressions specified by this field, but it may choose
         a node that violates one or more of the expressions. The node that is
         most preferred is the one with the greatest sum of weights, i.e.
         for each node that meets all of the scheduling requirements (resource
         request, requiredDuringScheduling affinity expressions, etc.),
         compute a sum by iterating through the elements of this field and adding
         "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
         node(s) with the highest sum are the most preferred.
         +optional
         +listType=atomic
         
        repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2;
      • setUnknownFields

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

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