Class V1.PodAffinity

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.kubernetes.client.proto.V1.PodAffinity
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, V1.PodAffinityOrBuilder, Serializable
Enclosing class:
V1

public static final class V1.PodAffinity extends com.google.protobuf.GeneratedMessageV3 implements V1.PodAffinityOrBuilder
 Pod affinity is a group of inter pod affinity scheduling rules.
 
Protobuf type k8s.io.api.core.v1.PodAffinity
See Also:
  • Field Details

    • REQUIREDDURINGSCHEDULINGIGNOREDDURINGEXECUTION_FIELD_NUMBER

      public static final int REQUIREDDURINGSCHEDULINGIGNOREDDURINGEXECUTION_FIELD_NUMBER
      See Also:
    • PREFERREDDURINGSCHEDULINGIGNOREDDURINGEXECUTION_FIELD_NUMBER

      public static final int PREFERREDDURINGSCHEDULINGIGNOREDDURINGEXECUTION_FIELD_NUMBER
      See Also:
    • PARSER

      @Deprecated public static final com.google.protobuf.Parser<V1.PodAffinity> PARSER
      Deprecated.
  • Method Details

    • getUnknownFields

      public final com.google.protobuf.UnknownFieldSet getUnknownFields()
      Specified by:
      getUnknownFields in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getUnknownFields in class com.google.protobuf.GeneratedMessageV3
    • 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
    • getRequiredDuringSchedulingIgnoredDuringExecutionList

      public List<V1.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
       
      repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1;
      Specified by:
      getRequiredDuringSchedulingIgnoredDuringExecutionList in interface V1.PodAffinityOrBuilder
    • getRequiredDuringSchedulingIgnoredDuringExecutionOrBuilderList

      public List<? extends V1.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
       
      repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1;
      Specified by:
      getRequiredDuringSchedulingIgnoredDuringExecutionOrBuilderList in interface V1.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
       
      repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1;
      Specified by:
      getRequiredDuringSchedulingIgnoredDuringExecutionCount in interface V1.PodAffinityOrBuilder
    • getRequiredDuringSchedulingIgnoredDuringExecution

      public V1.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
       
      repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1;
      Specified by:
      getRequiredDuringSchedulingIgnoredDuringExecution in interface V1.PodAffinityOrBuilder
    • getRequiredDuringSchedulingIgnoredDuringExecutionOrBuilder

      public V1.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
       
      repeated .k8s.io.api.core.v1.PodAffinityTerm requiredDuringSchedulingIgnoredDuringExecution = 1;
      Specified by:
      getRequiredDuringSchedulingIgnoredDuringExecutionOrBuilder in interface V1.PodAffinityOrBuilder
    • getPreferredDuringSchedulingIgnoredDuringExecutionList

      public List<V1.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
       
      repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2;
      Specified by:
      getPreferredDuringSchedulingIgnoredDuringExecutionList in interface V1.PodAffinityOrBuilder
    • getPreferredDuringSchedulingIgnoredDuringExecutionOrBuilderList

      public List<? extends V1.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
       
      repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2;
      Specified by:
      getPreferredDuringSchedulingIgnoredDuringExecutionOrBuilderList in interface V1.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
       
      repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2;
      Specified by:
      getPreferredDuringSchedulingIgnoredDuringExecutionCount in interface V1.PodAffinityOrBuilder
    • getPreferredDuringSchedulingIgnoredDuringExecution

      public V1.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
       
      repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2;
      Specified by:
      getPreferredDuringSchedulingIgnoredDuringExecution in interface V1.PodAffinityOrBuilder
    • getPreferredDuringSchedulingIgnoredDuringExecutionOrBuilder

      public V1.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
       
      repeated .k8s.io.api.core.v1.WeightedPodAffinityTerm preferredDuringSchedulingIgnoredDuringExecution = 2;
      Specified by:
      getPreferredDuringSchedulingIgnoredDuringExecutionOrBuilder in interface V1.PodAffinityOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static V1.PodAffinity parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1.PodAffinity parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1.PodAffinity parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1.PodAffinity parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1.PodAffinity parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1.PodAffinity parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1.PodAffinity parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static V1.PodAffinity parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static V1.PodAffinity parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static V1.PodAffinity parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static V1.PodAffinity parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static V1.PodAffinity parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public V1.PodAffinity.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static V1.PodAffinity.Builder newBuilder()
    • newBuilder

      public static V1.PodAffinity.Builder newBuilder(V1.PodAffinity prototype)
    • toBuilder

      public V1.PodAffinity.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected V1.PodAffinity.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static V1.PodAffinity getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<V1.PodAffinity> parser()
    • getParserForType

      public com.google.protobuf.Parser<V1.PodAffinity> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

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