Package k8s.io.api.core.v1
Class Generated.PodAffinityTerm.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Generated.PodAffinityTerm.Builder>
-
- k8s.io.api.core.v1.Generated.PodAffinityTerm.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,Generated.PodAffinityTermOrBuilder
- Enclosing class:
- Generated.PodAffinityTerm
public static final class Generated.PodAffinityTerm.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Generated.PodAffinityTerm.Builder> implements Generated.PodAffinityTermOrBuilder
Defines a set of pods (namely those matching the labelSelector relative to the given namespace(s)) that this pod should be co-located (affinity) or not co-located (anti-affinity) with, where co-located is defined as running on a node whose value of the label with key <topologyKey> matches that of any node on which a pod of the set of pods is running
Protobuf typek8s.io.api.core.v1.PodAffinityTerm
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Generated.PodAffinityTerm.BuilderaddAllMatchLabelKeys(Iterable<String> values)MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration.Generated.PodAffinityTerm.BuilderaddAllMismatchLabelKeys(Iterable<String> values)MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration.Generated.PodAffinityTerm.BuilderaddAllNamespaces(Iterable<String> values)namespaces specifies a static list of namespace names that the term applies to.Generated.PodAffinityTerm.BuilderaddMatchLabelKeys(String value)MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration.Generated.PodAffinityTerm.BuilderaddMatchLabelKeysBytes(com.google.protobuf.ByteString value)MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration.Generated.PodAffinityTerm.BuilderaddMismatchLabelKeys(String value)MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration.Generated.PodAffinityTerm.BuilderaddMismatchLabelKeysBytes(com.google.protobuf.ByteString value)MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration.Generated.PodAffinityTerm.BuilderaddNamespaces(String value)namespaces specifies a static list of namespace names that the term applies to.Generated.PodAffinityTerm.BuilderaddNamespacesBytes(com.google.protobuf.ByteString value)namespaces specifies a static list of namespace names that the term applies to.Generated.PodAffinityTerm.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.PodAffinityTermbuild()Generated.PodAffinityTermbuildPartial()Generated.PodAffinityTerm.Builderclear()Generated.PodAffinityTerm.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Generated.PodAffinityTerm.BuilderclearLabelSelector()A label query over a set of resources, in this case pods.Generated.PodAffinityTerm.BuilderclearMatchLabelKeys()MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration.Generated.PodAffinityTerm.BuilderclearMismatchLabelKeys()MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration.Generated.PodAffinityTerm.BuilderclearNamespaces()namespaces specifies a static list of namespace names that the term applies to.Generated.PodAffinityTerm.BuilderclearNamespaceSelector()A label query over the set of namespaces that the term applies to.Generated.PodAffinityTerm.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Generated.PodAffinityTerm.BuilderclearTopologyKey()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.Generated.PodAffinityTerm.Builderclone()Generated.PodAffinityTermgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()Generated.LabelSelectorgetLabelSelector()A label query over a set of resources, in this case pods.Generated.LabelSelector.BuildergetLabelSelectorBuilder()A label query over a set of resources, in this case pods.Generated.LabelSelectorOrBuildergetLabelSelectorOrBuilder()A label query over a set of resources, in this case pods.StringgetMatchLabelKeys(int index)MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration.com.google.protobuf.ByteStringgetMatchLabelKeysBytes(int index)MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration.intgetMatchLabelKeysCount()MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration.com.google.protobuf.ProtocolStringListgetMatchLabelKeysList()MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration.StringgetMismatchLabelKeys(int index)MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration.com.google.protobuf.ByteStringgetMismatchLabelKeysBytes(int index)MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration.intgetMismatchLabelKeysCount()MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration.com.google.protobuf.ProtocolStringListgetMismatchLabelKeysList()MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration.StringgetNamespaces(int index)namespaces specifies a static list of namespace names that the term applies to.com.google.protobuf.ByteStringgetNamespacesBytes(int index)namespaces specifies a static list of namespace names that the term applies to.intgetNamespacesCount()namespaces specifies a static list of namespace names that the term applies to.Generated.LabelSelectorgetNamespaceSelector()A label query over the set of namespaces that the term applies to.Generated.LabelSelector.BuildergetNamespaceSelectorBuilder()A label query over the set of namespaces that the term applies to.Generated.LabelSelectorOrBuildergetNamespaceSelectorOrBuilder()A label query over the set of namespaces that the term applies to.com.google.protobuf.ProtocolStringListgetNamespacesList()namespaces specifies a static list of namespace names that the term applies to.StringgetTopologyKey()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.ByteStringgetTopologyKeyBytes()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.booleanhasLabelSelector()A label query over a set of resources, in this case pods.booleanhasNamespaceSelector()A label query over the set of namespaces that the term applies to.booleanhasTopologyKey()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.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Generated.PodAffinityTerm.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Generated.PodAffinityTerm.BuildermergeFrom(com.google.protobuf.Message other)Generated.PodAffinityTerm.BuildermergeFrom(Generated.PodAffinityTerm other)Generated.PodAffinityTerm.BuildermergeLabelSelector(Generated.LabelSelector value)A label query over a set of resources, in this case pods.Generated.PodAffinityTerm.BuildermergeNamespaceSelector(Generated.LabelSelector value)A label query over the set of namespaces that the term applies to.Generated.PodAffinityTerm.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Generated.PodAffinityTerm.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.PodAffinityTerm.BuildersetLabelSelector(Generated.LabelSelector value)A label query over a set of resources, in this case pods.Generated.PodAffinityTerm.BuildersetLabelSelector(Generated.LabelSelector.Builder builderForValue)A label query over a set of resources, in this case pods.Generated.PodAffinityTerm.BuildersetMatchLabelKeys(int index, String value)MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration.Generated.PodAffinityTerm.BuildersetMismatchLabelKeys(int index, String value)MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration.Generated.PodAffinityTerm.BuildersetNamespaces(int index, String value)namespaces specifies a static list of namespace names that the term applies to.Generated.PodAffinityTerm.BuildersetNamespaceSelector(Generated.LabelSelector value)A label query over the set of namespaces that the term applies to.Generated.PodAffinityTerm.BuildersetNamespaceSelector(Generated.LabelSelector.Builder builderForValue)A label query over the set of namespaces that the term applies to.Generated.PodAffinityTerm.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Generated.PodAffinityTerm.BuildersetTopologyKey(String value)This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running.Generated.PodAffinityTerm.BuildersetTopologyKeyBytes(com.google.protobuf.ByteString value)This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running.Generated.PodAffinityTerm.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.PodAffinityTerm.Builder>
-
clear
public Generated.PodAffinityTerm.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.PodAffinityTerm.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.PodAffinityTerm.Builder>
-
getDefaultInstanceForType
public Generated.PodAffinityTerm getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Generated.PodAffinityTerm build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Generated.PodAffinityTerm buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Generated.PodAffinityTerm.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.PodAffinityTerm.Builder>
-
setField
public Generated.PodAffinityTerm.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.PodAffinityTerm.Builder>
-
clearField
public Generated.PodAffinityTerm.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.PodAffinityTerm.Builder>
-
clearOneof
public Generated.PodAffinityTerm.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.PodAffinityTerm.Builder>
-
setRepeatedField
public Generated.PodAffinityTerm.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.PodAffinityTerm.Builder>
-
addRepeatedField
public Generated.PodAffinityTerm.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.PodAffinityTerm.Builder>
-
mergeFrom
public Generated.PodAffinityTerm.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Generated.PodAffinityTerm.Builder>
-
mergeFrom
public Generated.PodAffinityTerm.Builder mergeFrom(Generated.PodAffinityTerm other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.PodAffinityTerm.Builder>
-
mergeFrom
public Generated.PodAffinityTerm.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Generated.PodAffinityTerm.Builder>- Throws:
IOException
-
hasLabelSelector
public boolean hasLabelSelector()
A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 1;- Specified by:
hasLabelSelectorin interfaceGenerated.PodAffinityTermOrBuilder- Returns:
- Whether the labelSelector field is set.
-
getLabelSelector
public Generated.LabelSelector getLabelSelector()
A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 1;- Specified by:
getLabelSelectorin interfaceGenerated.PodAffinityTermOrBuilder- Returns:
- The labelSelector.
-
setLabelSelector
public Generated.PodAffinityTerm.Builder setLabelSelector(Generated.LabelSelector value)
A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 1;
-
setLabelSelector
public Generated.PodAffinityTerm.Builder setLabelSelector(Generated.LabelSelector.Builder builderForValue)
A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 1;
-
mergeLabelSelector
public Generated.PodAffinityTerm.Builder mergeLabelSelector(Generated.LabelSelector value)
A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 1;
-
clearLabelSelector
public Generated.PodAffinityTerm.Builder clearLabelSelector()
A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 1;
-
getLabelSelectorBuilder
public Generated.LabelSelector.Builder getLabelSelectorBuilder()
A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 1;
-
getLabelSelectorOrBuilder
public Generated.LabelSelectorOrBuilder getLabelSelectorOrBuilder()
A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 1;- Specified by:
getLabelSelectorOrBuilderin interfaceGenerated.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 +listType=atomic
repeated string namespaces = 2;- Specified by:
getNamespacesListin interfaceGenerated.PodAffinityTermOrBuilder- Returns:
- A list containing the namespaces.
-
getNamespacesCount
public int getNamespacesCount()
namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace". +optional +listType=atomic
repeated string namespaces = 2;- Specified by:
getNamespacesCountin interfaceGenerated.PodAffinityTermOrBuilder- Returns:
- The count of namespaces.
-
getNamespaces
public String getNamespaces(int index)
namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace". +optional +listType=atomic
repeated string namespaces = 2;- Specified by:
getNamespacesin interfaceGenerated.PodAffinityTermOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The namespaces at the given index.
-
getNamespacesBytes
public com.google.protobuf.ByteString getNamespacesBytes(int index)
namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace". +optional +listType=atomic
repeated string namespaces = 2;- Specified by:
getNamespacesBytesin interfaceGenerated.PodAffinityTermOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the namespaces at the given index.
-
setNamespaces
public Generated.PodAffinityTerm.Builder setNamespaces(int index, String value)
namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace". +optional +listType=atomic
repeated string namespaces = 2;- Parameters:
index- The index to set the value at.value- The namespaces to set.- Returns:
- This builder for chaining.
-
addNamespaces
public Generated.PodAffinityTerm.Builder addNamespaces(String value)
namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace". +optional +listType=atomic
repeated string namespaces = 2;- Parameters:
value- The namespaces to add.- Returns:
- This builder for chaining.
-
addAllNamespaces
public Generated.PodAffinityTerm.Builder addAllNamespaces(Iterable<String> values)
namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace". +optional +listType=atomic
repeated string namespaces = 2;- Parameters:
values- The namespaces to add.- Returns:
- This builder for chaining.
-
clearNamespaces
public Generated.PodAffinityTerm.Builder clearNamespaces()
namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace". +optional +listType=atomic
repeated string namespaces = 2;- Returns:
- This builder for chaining.
-
addNamespacesBytes
public Generated.PodAffinityTerm.Builder addNamespacesBytes(com.google.protobuf.ByteString value)
namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means "this pod's namespace". +optional +listType=atomic
repeated string namespaces = 2;- Parameters:
value- The bytes of the namespaces to add.- Returns:
- This builder for chaining.
-
hasTopologyKey
public boolean hasTopologyKey()
This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.
optional string topologyKey = 3;- Specified by:
hasTopologyKeyin interfaceGenerated.PodAffinityTermOrBuilder- Returns:
- Whether the topologyKey field is set.
-
getTopologyKey
public String getTopologyKey()
This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.
optional string topologyKey = 3;- Specified by:
getTopologyKeyin interfaceGenerated.PodAffinityTermOrBuilder- Returns:
- The topologyKey.
-
getTopologyKeyBytes
public com.google.protobuf.ByteString getTopologyKeyBytes()
This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.
optional string topologyKey = 3;- Specified by:
getTopologyKeyBytesin interfaceGenerated.PodAffinityTermOrBuilder- Returns:
- The bytes for topologyKey.
-
setTopologyKey
public Generated.PodAffinityTerm.Builder setTopologyKey(String value)
This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.
optional string topologyKey = 3;- Parameters:
value- The topologyKey to set.- Returns:
- This builder for chaining.
-
clearTopologyKey
public Generated.PodAffinityTerm.Builder clearTopologyKey()
This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.
optional string topologyKey = 3;- Returns:
- This builder for chaining.
-
setTopologyKeyBytes
public Generated.PodAffinityTerm.Builder setTopologyKeyBytes(com.google.protobuf.ByteString value)
This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.
optional string topologyKey = 3;- Parameters:
value- The bytes for topologyKey to set.- Returns:
- This builder for chaining.
-
hasNamespaceSelector
public boolean hasNamespaceSelector()
A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. +optionaloptional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 4;- Specified by:
hasNamespaceSelectorin interfaceGenerated.PodAffinityTermOrBuilder- Returns:
- Whether the namespaceSelector field is set.
-
getNamespaceSelector
public Generated.LabelSelector getNamespaceSelector()
A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. +optionaloptional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 4;- Specified by:
getNamespaceSelectorin interfaceGenerated.PodAffinityTermOrBuilder- Returns:
- The namespaceSelector.
-
setNamespaceSelector
public Generated.PodAffinityTerm.Builder setNamespaceSelector(Generated.LabelSelector value)
A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. +optionaloptional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 4;
-
setNamespaceSelector
public Generated.PodAffinityTerm.Builder setNamespaceSelector(Generated.LabelSelector.Builder builderForValue)
A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. +optionaloptional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 4;
-
mergeNamespaceSelector
public Generated.PodAffinityTerm.Builder mergeNamespaceSelector(Generated.LabelSelector value)
A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. +optionaloptional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 4;
-
clearNamespaceSelector
public Generated.PodAffinityTerm.Builder clearNamespaceSelector()
A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. +optionaloptional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 4;
-
getNamespaceSelectorBuilder
public Generated.LabelSelector.Builder getNamespaceSelectorBuilder()
A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. +optionaloptional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 4;
-
getNamespaceSelectorOrBuilder
public Generated.LabelSelectorOrBuilder getNamespaceSelectorOrBuilder()
A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means "this pod's namespace". An empty selector ({}) matches all namespaces. +optionaloptional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 4;- Specified by:
getNamespaceSelectorOrBuilderin interfaceGenerated.PodAffinityTermOrBuilder
-
getMatchLabelKeysList
public com.google.protobuf.ProtocolStringList getMatchLabelKeysList()
MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). +listType=atomic +optional
repeated string matchLabelKeys = 5;- Specified by:
getMatchLabelKeysListin interfaceGenerated.PodAffinityTermOrBuilder- Returns:
- A list containing the matchLabelKeys.
-
getMatchLabelKeysCount
public int getMatchLabelKeysCount()
MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). +listType=atomic +optional
repeated string matchLabelKeys = 5;- Specified by:
getMatchLabelKeysCountin interfaceGenerated.PodAffinityTermOrBuilder- Returns:
- The count of matchLabelKeys.
-
getMatchLabelKeys
public String getMatchLabelKeys(int index)
MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). +listType=atomic +optional
repeated string matchLabelKeys = 5;- Specified by:
getMatchLabelKeysin interfaceGenerated.PodAffinityTermOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The matchLabelKeys at the given index.
-
getMatchLabelKeysBytes
public com.google.protobuf.ByteString getMatchLabelKeysBytes(int index)
MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). +listType=atomic +optional
repeated string matchLabelKeys = 5;- Specified by:
getMatchLabelKeysBytesin interfaceGenerated.PodAffinityTermOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the matchLabelKeys at the given index.
-
setMatchLabelKeys
public Generated.PodAffinityTerm.Builder setMatchLabelKeys(int index, String value)
MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). +listType=atomic +optional
repeated string matchLabelKeys = 5;- Parameters:
index- The index to set the value at.value- The matchLabelKeys to set.- Returns:
- This builder for chaining.
-
addMatchLabelKeys
public Generated.PodAffinityTerm.Builder addMatchLabelKeys(String value)
MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). +listType=atomic +optional
repeated string matchLabelKeys = 5;- Parameters:
value- The matchLabelKeys to add.- Returns:
- This builder for chaining.
-
addAllMatchLabelKeys
public Generated.PodAffinityTerm.Builder addAllMatchLabelKeys(Iterable<String> values)
MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). +listType=atomic +optional
repeated string matchLabelKeys = 5;- Parameters:
values- The matchLabelKeys to add.- Returns:
- This builder for chaining.
-
clearMatchLabelKeys
public Generated.PodAffinityTerm.Builder clearMatchLabelKeys()
MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). +listType=atomic +optional
repeated string matchLabelKeys = 5;- Returns:
- This builder for chaining.
-
addMatchLabelKeysBytes
public Generated.PodAffinityTerm.Builder addMatchLabelKeysBytes(com.google.protobuf.ByteString value)
MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). +listType=atomic +optional
repeated string matchLabelKeys = 5;- Parameters:
value- The bytes of the matchLabelKeys to add.- Returns:
- This builder for chaining.
-
getMismatchLabelKeysList
public com.google.protobuf.ProtocolStringList getMismatchLabelKeysList()
MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). +listType=atomic +optional
repeated string mismatchLabelKeys = 6;- Specified by:
getMismatchLabelKeysListin interfaceGenerated.PodAffinityTermOrBuilder- Returns:
- A list containing the mismatchLabelKeys.
-
getMismatchLabelKeysCount
public int getMismatchLabelKeysCount()
MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). +listType=atomic +optional
repeated string mismatchLabelKeys = 6;- Specified by:
getMismatchLabelKeysCountin interfaceGenerated.PodAffinityTermOrBuilder- Returns:
- The count of mismatchLabelKeys.
-
getMismatchLabelKeys
public String getMismatchLabelKeys(int index)
MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). +listType=atomic +optional
repeated string mismatchLabelKeys = 6;- Specified by:
getMismatchLabelKeysin interfaceGenerated.PodAffinityTermOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The mismatchLabelKeys at the given index.
-
getMismatchLabelKeysBytes
public com.google.protobuf.ByteString getMismatchLabelKeysBytes(int index)
MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). +listType=atomic +optional
repeated string mismatchLabelKeys = 6;- Specified by:
getMismatchLabelKeysBytesin interfaceGenerated.PodAffinityTermOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the mismatchLabelKeys at the given index.
-
setMismatchLabelKeys
public Generated.PodAffinityTerm.Builder setMismatchLabelKeys(int index, String value)
MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). +listType=atomic +optional
repeated string mismatchLabelKeys = 6;- Parameters:
index- The index to set the value at.value- The mismatchLabelKeys to set.- Returns:
- This builder for chaining.
-
addMismatchLabelKeys
public Generated.PodAffinityTerm.Builder addMismatchLabelKeys(String value)
MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). +listType=atomic +optional
repeated string mismatchLabelKeys = 6;- Parameters:
value- The mismatchLabelKeys to add.- Returns:
- This builder for chaining.
-
addAllMismatchLabelKeys
public Generated.PodAffinityTerm.Builder addAllMismatchLabelKeys(Iterable<String> values)
MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). +listType=atomic +optional
repeated string mismatchLabelKeys = 6;- Parameters:
values- The mismatchLabelKeys to add.- Returns:
- This builder for chaining.
-
clearMismatchLabelKeys
public Generated.PodAffinityTerm.Builder clearMismatchLabelKeys()
MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). +listType=atomic +optional
repeated string mismatchLabelKeys = 6;- Returns:
- This builder for chaining.
-
addMismatchLabelKeysBytes
public Generated.PodAffinityTerm.Builder addMismatchLabelKeysBytes(com.google.protobuf.ByteString value)
MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). +listType=atomic +optional
repeated string mismatchLabelKeys = 6;- Parameters:
value- The bytes of the mismatchLabelKeys to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Generated.PodAffinityTerm.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.PodAffinityTerm.Builder>
-
mergeUnknownFields
public final Generated.PodAffinityTerm.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.PodAffinityTerm.Builder>
-
-