Class V1.NodeAffinity.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<V1.NodeAffinity.Builder>
io.kubernetes.client.proto.V1.NodeAffinity.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, V1.NodeAffinityOrBuilder, Cloneable
Enclosing class:
V1.NodeAffinity

public static final class V1.NodeAffinity.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1.NodeAffinity.Builder> implements V1.NodeAffinityOrBuilder
 Node affinity is a group of node affinity scheduling rules.
 
Protobuf type k8s.io.api.core.v1.NodeAffinity
  • Method Details

    • getDescriptor

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

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

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

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

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

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

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

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

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

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

      public V1.NodeAffinity.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<V1.NodeAffinity.Builder>
    • setRepeatedField

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

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

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

      public V1.NodeAffinity.Builder mergeFrom(V1.NodeAffinity other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<V1.NodeAffinity.Builder>
    • mergeFrom

      public V1.NodeAffinity.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1.NodeAffinity.Builder>
      Throws:
      IOException
    • hasRequiredDuringSchedulingIgnoredDuringExecution

      public boolean hasRequiredDuringSchedulingIgnoredDuringExecution()
       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 an update), the system
       may or may not try to eventually evict the pod from its node.
       +optional
       
      optional .k8s.io.api.core.v1.NodeSelector requiredDuringSchedulingIgnoredDuringExecution = 1;
      Specified by:
      hasRequiredDuringSchedulingIgnoredDuringExecution in interface V1.NodeAffinityOrBuilder
    • getRequiredDuringSchedulingIgnoredDuringExecution

      public V1.NodeSelector getRequiredDuringSchedulingIgnoredDuringExecution()
       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 an update), the system
       may or may not try to eventually evict the pod from its node.
       +optional
       
      optional .k8s.io.api.core.v1.NodeSelector requiredDuringSchedulingIgnoredDuringExecution = 1;
      Specified by:
      getRequiredDuringSchedulingIgnoredDuringExecution in interface V1.NodeAffinityOrBuilder
    • setRequiredDuringSchedulingIgnoredDuringExecution

      public V1.NodeAffinity.Builder setRequiredDuringSchedulingIgnoredDuringExecution(V1.NodeSelector 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 an update), the system
       may or may not try to eventually evict the pod from its node.
       +optional
       
      optional .k8s.io.api.core.v1.NodeSelector requiredDuringSchedulingIgnoredDuringExecution = 1;
    • setRequiredDuringSchedulingIgnoredDuringExecution

      public V1.NodeAffinity.Builder setRequiredDuringSchedulingIgnoredDuringExecution(V1.NodeSelector.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 an update), the system
       may or may not try to eventually evict the pod from its node.
       +optional
       
      optional .k8s.io.api.core.v1.NodeSelector requiredDuringSchedulingIgnoredDuringExecution = 1;
    • mergeRequiredDuringSchedulingIgnoredDuringExecution

      public V1.NodeAffinity.Builder mergeRequiredDuringSchedulingIgnoredDuringExecution(V1.NodeSelector 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 an update), the system
       may or may not try to eventually evict the pod from its node.
       +optional
       
      optional .k8s.io.api.core.v1.NodeSelector requiredDuringSchedulingIgnoredDuringExecution = 1;
    • clearRequiredDuringSchedulingIgnoredDuringExecution

      public V1.NodeAffinity.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 an update), the system
       may or may not try to eventually evict the pod from its node.
       +optional
       
      optional .k8s.io.api.core.v1.NodeSelector requiredDuringSchedulingIgnoredDuringExecution = 1;
    • getRequiredDuringSchedulingIgnoredDuringExecutionBuilder

      public V1.NodeSelector.Builder getRequiredDuringSchedulingIgnoredDuringExecutionBuilder()
       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 an update), the system
       may or may not try to eventually evict the pod from its node.
       +optional
       
      optional .k8s.io.api.core.v1.NodeSelector requiredDuringSchedulingIgnoredDuringExecution = 1;
    • getRequiredDuringSchedulingIgnoredDuringExecutionOrBuilder

      public V1.NodeSelectorOrBuilder getRequiredDuringSchedulingIgnoredDuringExecutionOrBuilder()
       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 an update), the system
       may or may not try to eventually evict the pod from its node.
       +optional
       
      optional .k8s.io.api.core.v1.NodeSelector requiredDuringSchedulingIgnoredDuringExecution = 1;
      Specified by:
      getRequiredDuringSchedulingIgnoredDuringExecutionOrBuilder in interface V1.NodeAffinityOrBuilder
    • getPreferredDuringSchedulingIgnoredDuringExecutionList

      public List<V1.PreferredSchedulingTerm> 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 matches the corresponding matchExpressions; the
       node(s) with the highest sum are the most preferred.
       +optional
       
      repeated .k8s.io.api.core.v1.PreferredSchedulingTerm preferredDuringSchedulingIgnoredDuringExecution = 2;
      Specified by:
      getPreferredDuringSchedulingIgnoredDuringExecutionList in interface V1.NodeAffinityOrBuilder
    • 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 matches the corresponding matchExpressions; the
       node(s) with the highest sum are the most preferred.
       +optional
       
      repeated .k8s.io.api.core.v1.PreferredSchedulingTerm preferredDuringSchedulingIgnoredDuringExecution = 2;
      Specified by:
      getPreferredDuringSchedulingIgnoredDuringExecutionCount in interface V1.NodeAffinityOrBuilder
    • getPreferredDuringSchedulingIgnoredDuringExecution

      public V1.PreferredSchedulingTerm 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 matches the corresponding matchExpressions; the
       node(s) with the highest sum are the most preferred.
       +optional
       
      repeated .k8s.io.api.core.v1.PreferredSchedulingTerm preferredDuringSchedulingIgnoredDuringExecution = 2;
      Specified by:
      getPreferredDuringSchedulingIgnoredDuringExecution in interface V1.NodeAffinityOrBuilder
    • setPreferredDuringSchedulingIgnoredDuringExecution

      public V1.NodeAffinity.Builder setPreferredDuringSchedulingIgnoredDuringExecution(int index, V1.PreferredSchedulingTerm 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 matches the corresponding matchExpressions; the
       node(s) with the highest sum are the most preferred.
       +optional
       
      repeated .k8s.io.api.core.v1.PreferredSchedulingTerm preferredDuringSchedulingIgnoredDuringExecution = 2;
    • setPreferredDuringSchedulingIgnoredDuringExecution

      public V1.NodeAffinity.Builder setPreferredDuringSchedulingIgnoredDuringExecution(int index, V1.PreferredSchedulingTerm.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 matches the corresponding matchExpressions; the
       node(s) with the highest sum are the most preferred.
       +optional
       
      repeated .k8s.io.api.core.v1.PreferredSchedulingTerm preferredDuringSchedulingIgnoredDuringExecution = 2;
    • addPreferredDuringSchedulingIgnoredDuringExecution

      public V1.NodeAffinity.Builder addPreferredDuringSchedulingIgnoredDuringExecution(V1.PreferredSchedulingTerm 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 matches the corresponding matchExpressions; the
       node(s) with the highest sum are the most preferred.
       +optional
       
      repeated .k8s.io.api.core.v1.PreferredSchedulingTerm preferredDuringSchedulingIgnoredDuringExecution = 2;
    • addPreferredDuringSchedulingIgnoredDuringExecution

      public V1.NodeAffinity.Builder addPreferredDuringSchedulingIgnoredDuringExecution(int index, V1.PreferredSchedulingTerm 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 matches the corresponding matchExpressions; the
       node(s) with the highest sum are the most preferred.
       +optional
       
      repeated .k8s.io.api.core.v1.PreferredSchedulingTerm preferredDuringSchedulingIgnoredDuringExecution = 2;
    • addPreferredDuringSchedulingIgnoredDuringExecution

      public V1.NodeAffinity.Builder addPreferredDuringSchedulingIgnoredDuringExecution(V1.PreferredSchedulingTerm.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 matches the corresponding matchExpressions; the
       node(s) with the highest sum are the most preferred.
       +optional
       
      repeated .k8s.io.api.core.v1.PreferredSchedulingTerm preferredDuringSchedulingIgnoredDuringExecution = 2;
    • addPreferredDuringSchedulingIgnoredDuringExecution

      public V1.NodeAffinity.Builder addPreferredDuringSchedulingIgnoredDuringExecution(int index, V1.PreferredSchedulingTerm.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 matches the corresponding matchExpressions; the
       node(s) with the highest sum are the most preferred.
       +optional
       
      repeated .k8s.io.api.core.v1.PreferredSchedulingTerm preferredDuringSchedulingIgnoredDuringExecution = 2;
    • addAllPreferredDuringSchedulingIgnoredDuringExecution

      public V1.NodeAffinity.Builder addAllPreferredDuringSchedulingIgnoredDuringExecution(Iterable<? extends V1.PreferredSchedulingTerm> 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 matches the corresponding matchExpressions; the
       node(s) with the highest sum are the most preferred.
       +optional
       
      repeated .k8s.io.api.core.v1.PreferredSchedulingTerm preferredDuringSchedulingIgnoredDuringExecution = 2;
    • clearPreferredDuringSchedulingIgnoredDuringExecution

      public V1.NodeAffinity.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 matches the corresponding matchExpressions; the
       node(s) with the highest sum are the most preferred.
       +optional
       
      repeated .k8s.io.api.core.v1.PreferredSchedulingTerm preferredDuringSchedulingIgnoredDuringExecution = 2;
    • removePreferredDuringSchedulingIgnoredDuringExecution

      public V1.NodeAffinity.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 matches the corresponding matchExpressions; the
       node(s) with the highest sum are the most preferred.
       +optional
       
      repeated .k8s.io.api.core.v1.PreferredSchedulingTerm preferredDuringSchedulingIgnoredDuringExecution = 2;
    • getPreferredDuringSchedulingIgnoredDuringExecutionBuilder

      public V1.PreferredSchedulingTerm.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 matches the corresponding matchExpressions; the
       node(s) with the highest sum are the most preferred.
       +optional
       
      repeated .k8s.io.api.core.v1.PreferredSchedulingTerm preferredDuringSchedulingIgnoredDuringExecution = 2;
    • getPreferredDuringSchedulingIgnoredDuringExecutionOrBuilder

      public V1.PreferredSchedulingTermOrBuilder 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 matches the corresponding matchExpressions; the
       node(s) with the highest sum are the most preferred.
       +optional
       
      repeated .k8s.io.api.core.v1.PreferredSchedulingTerm preferredDuringSchedulingIgnoredDuringExecution = 2;
      Specified by:
      getPreferredDuringSchedulingIgnoredDuringExecutionOrBuilder in interface V1.NodeAffinityOrBuilder
    • getPreferredDuringSchedulingIgnoredDuringExecutionOrBuilderList

      public List<? extends V1.PreferredSchedulingTermOrBuilder> 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 matches the corresponding matchExpressions; the
       node(s) with the highest sum are the most preferred.
       +optional
       
      repeated .k8s.io.api.core.v1.PreferredSchedulingTerm preferredDuringSchedulingIgnoredDuringExecution = 2;
      Specified by:
      getPreferredDuringSchedulingIgnoredDuringExecutionOrBuilderList in interface V1.NodeAffinityOrBuilder
    • addPreferredDuringSchedulingIgnoredDuringExecutionBuilder

      public V1.PreferredSchedulingTerm.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 matches the corresponding matchExpressions; the
       node(s) with the highest sum are the most preferred.
       +optional
       
      repeated .k8s.io.api.core.v1.PreferredSchedulingTerm preferredDuringSchedulingIgnoredDuringExecution = 2;
    • addPreferredDuringSchedulingIgnoredDuringExecutionBuilder

      public V1.PreferredSchedulingTerm.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 matches the corresponding matchExpressions; the
       node(s) with the highest sum are the most preferred.
       +optional
       
      repeated .k8s.io.api.core.v1.PreferredSchedulingTerm preferredDuringSchedulingIgnoredDuringExecution = 2;
    • getPreferredDuringSchedulingIgnoredDuringExecutionBuilderList

      public List<V1.PreferredSchedulingTerm.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 matches the corresponding matchExpressions; the
       node(s) with the highest sum are the most preferred.
       +optional
       
      repeated .k8s.io.api.core.v1.PreferredSchedulingTerm preferredDuringSchedulingIgnoredDuringExecution = 2;
    • setUnknownFields

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

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