Class V1.PodAffinityTerm

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

public static final class V1.PodAffinityTerm extends com.google.protobuf.GeneratedMessageV3 implements V1.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
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    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

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

    com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final com.google.protobuf.Parser<V1.PodAffinityTerm>
    Deprecated.
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessageV3

    alwaysUseFieldBuilders, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    A label query over a set of resources, in this case pods.
    A label query over a set of resources, in this case pods.
    getNamespaces(int index)
    namespaces specifies a static list of namespace names that the term applies to.
    com.google.protobuf.ByteString
    getNamespacesBytes(int index)
    namespaces specifies a static list of namespace names that the term applies to.
    int
    namespaces specifies a static list of namespace names that the term applies to.
    A label query over the set of namespaces that the term applies to.
    A label query over the set of namespaces that the term applies to.
    com.google.protobuf.ProtocolStringList
    namespaces specifies a static list of namespace names that the term applies to.
    com.google.protobuf.Parser<V1.PodAffinityTerm>
     
    int
     
    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.
    com.google.protobuf.ByteString
    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.
    final com.google.protobuf.UnknownFieldSet
     
    int
     
    boolean
    A label query over a set of resources, in this case pods.
    boolean
    A label query over the set of namespaces that the term applies to.
    boolean
    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.
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
     
    final boolean
     
     
     
     
    newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<V1.PodAffinityTerm>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    Methods inherited from class com.google.protobuf.GeneratedMessageV3

    canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newInstance, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
  • Field Details

  • 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
    • hasLabelSelector

      public boolean hasLabelSelector()
       A label query over a set of resources, in this case pods.
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 1;
      Specified by:
      hasLabelSelector in interface V1.PodAffinityTermOrBuilder
    • getLabelSelector

      public Meta.LabelSelector getLabelSelector()
       A label query over a set of resources, in this case pods.
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 1;
      Specified by:
      getLabelSelector in interface V1.PodAffinityTermOrBuilder
    • getLabelSelectorOrBuilder

      public Meta.LabelSelectorOrBuilder getLabelSelectorOrBuilder()
       A label query over a set of resources, in this case pods.
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 1;
      Specified by:
      getLabelSelectorOrBuilder in interface V1.PodAffinityTermOrBuilder
    • 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
       
      repeated string namespaces = 2;
      Specified by:
      getNamespacesList in interface V1.PodAffinityTermOrBuilder
    • 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
       
      repeated string namespaces = 2;
      Specified by:
      getNamespacesCount in interface V1.PodAffinityTermOrBuilder
    • 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
       
      repeated string namespaces = 2;
      Specified by:
      getNamespaces in interface V1.PodAffinityTermOrBuilder
    • 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
       
      repeated string namespaces = 2;
      Specified by:
      getNamespacesBytes in interface V1.PodAffinityTermOrBuilder
    • 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 V1.PodAffinityTermOrBuilder
    • 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 V1.PodAffinityTermOrBuilder
    • 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 V1.PodAffinityTermOrBuilder
    • 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.
       This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled.
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 4;
      Specified by:
      hasNamespaceSelector in interface V1.PodAffinityTermOrBuilder
    • getNamespaceSelector

      public Meta.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.
       This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled.
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 4;
      Specified by:
      getNamespaceSelector in interface V1.PodAffinityTermOrBuilder
    • getNamespaceSelectorOrBuilder

      public Meta.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.
       This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled.
       +optional
       
      optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 4;
      Specified by:
      getNamespaceSelectorOrBuilder in interface V1.PodAffinityTermOrBuilder
    • 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.PodAffinityTerm parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

      public static V1.PodAffinityTerm 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.PodAffinityTerm parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static V1.PodAffinityTerm getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<V1.PodAffinityTerm> 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.PodAffinityTerm getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder