Package io.kubernetes.client.proto
Class V1.PodAffinityTerm.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<V1.PodAffinityTerm.Builder>
io.kubernetes.client.proto.V1.PodAffinityTerm.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,V1.PodAffinityTermOrBuilder,Cloneable
- Enclosing class:
- V1.PodAffinityTerm
public static final class V1.PodAffinityTerm.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<V1.PodAffinityTerm.Builder>
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 runningProtobuf type
k8s.io.api.core.v1.PodAffinityTerm-
Method Summary
Modifier and TypeMethodDescriptionaddAllNamespaces(Iterable<String> values) namespaces specifies a static list of namespace names that the term applies to.addNamespaces(String value) namespaces specifies a static list of namespace names that the term applies to.addNamespacesBytes(com.google.protobuf.ByteString value) namespaces specifies a static list of namespace names that the term applies to.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) A label query over a set of resources, in this case pods.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.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) 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.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorA label query over a set of resources, in this case pods.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.ByteStringgetNamespacesBytes(int index) namespaces specifies a static list of namespace names that the term applies to.intnamespaces 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.A label query over the set of namespaces that the term applies to.com.google.protobuf.ProtocolStringListnamespaces specifies a static list of namespace names that the term applies to.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.ByteStringThis 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.booleanA label query over a set of resources, in this case pods.booleanA label query over the set of namespaces that the term applies to.booleanThis 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.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(V1.PodAffinityTerm other) A label query over a set of resources, in this case pods.A label query over the set of namespaces that the term applies to.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) A label query over a set of resources, in this case pods.setLabelSelector(Meta.LabelSelector.Builder builderForValue) A label query over a set of resources, in this case pods.setNamespaces(int index, String value) 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.setNamespaceSelector(Meta.LabelSelector.Builder builderForValue) A label query over the set of namespaces that the term applies to.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) 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.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.setUnknownFields(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, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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<V1.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<V1.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<V1.PodAffinityTerm.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.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<V1.PodAffinityTerm.Builder>
-
setField
public V1.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<V1.PodAffinityTerm.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PodAffinityTerm.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PodAffinityTerm.Builder>
-
setRepeatedField
public V1.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<V1.PodAffinityTerm.Builder>
-
addRepeatedField
public V1.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<V1.PodAffinityTerm.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<V1.PodAffinityTerm.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PodAffinityTerm.Builder>
-
mergeFrom
public V1.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<V1.PodAffinityTerm.Builder>- Throws:
IOException
-
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:
hasLabelSelectorin interfaceV1.PodAffinityTermOrBuilder
-
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:
getLabelSelectorin interfaceV1.PodAffinityTermOrBuilder
-
setLabelSelector
A label query over a set of resources, in this case pods. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 1; -
setLabelSelector
A label query over a set of resources, in this case pods. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 1; -
mergeLabelSelector
A label query over a set of resources, in this case pods. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 1; -
clearLabelSelector
A label query over a set of resources, in this case pods. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 1; -
getLabelSelectorBuilder
A label query over a set of resources, in this case pods. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector labelSelector = 1; -
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:
getLabelSelectorOrBuilderin interfaceV1.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:
getNamespacesListin interfaceV1.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:
getNamespacesCountin interfaceV1.PodAffinityTermOrBuilder
-
getNamespaces
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:
getNamespacesin interfaceV1.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:
getNamespacesBytesin interfaceV1.PodAffinityTermOrBuilder
-
setNamespaces
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; -
addNamespaces
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; -
addAllNamespaces
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; -
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
repeated string namespaces = 2; -
addNamespacesBytes
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; -
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 interfaceV1.PodAffinityTermOrBuilder
-
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 interfaceV1.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:
getTopologyKeyBytesin interfaceV1.PodAffinityTermOrBuilder
-
setTopologyKey
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; -
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; -
setTopologyKeyBytes
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; -
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. +optionaloptional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 4;- Specified by:
hasNamespaceSelectorin interfaceV1.PodAffinityTermOrBuilder
-
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. +optionaloptional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 4;- Specified by:
getNamespaceSelectorin interfaceV1.PodAffinityTermOrBuilder
-
setNamespaceSelector
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. +optionaloptional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 4; -
setNamespaceSelector
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. +optionaloptional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 4; -
mergeNamespaceSelector
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. +optionaloptional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 4; -
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. This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled. +optionaloptional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 4; -
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. This field is beta-level and is only honored when PodAffinityNamespaceSelector feature is enabled. +optionaloptional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 4; -
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. +optionaloptional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector namespaceSelector = 4;- Specified by:
getNamespaceSelectorOrBuilderin interfaceV1.PodAffinityTermOrBuilder
-
setUnknownFields
public final V1.PodAffinityTerm.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PodAffinityTerm.Builder>
-
mergeUnknownFields
public final V1.PodAffinityTerm.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V1.PodAffinityTerm.Builder>
-