Package io.kubernetes.client.proto
Class Meta.LabelSelector
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.kubernetes.client.proto.Meta.LabelSelector
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Meta.LabelSelectorOrBuilder,Serializable
- Enclosing class:
- Meta
public static final class Meta.LabelSelector
extends com.google.protobuf.GeneratedMessageV3
implements Meta.LabelSelectorOrBuilder
A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. +structType=atomicProtobuf type
k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA label selector is a label query over a set of resources.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
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final com.google.protobuf.Parser<Meta.LabelSelector>Deprecated.Fields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanmatchLabels is a map of {key,value} pairs.booleanstatic Meta.LabelSelectorstatic final com.google.protobuf.Descriptors.DescriptorgetMatchExpressions(int index) matchExpressions is a list of label selector requirements.intmatchExpressions is a list of label selector requirements.matchExpressions is a list of label selector requirements.getMatchExpressionsOrBuilder(int index) matchExpressions is a list of label selector requirements.List<? extends Meta.LabelSelectorRequirementOrBuilder>matchExpressions is a list of label selector requirements.Deprecated.intmatchLabels is a map of {key,value} pairs.matchLabels is a map of {key,value} pairs.getMatchLabelsOrDefault(String key, String defaultValue) matchLabels is a map of {key,value} pairs.matchLabels is a map of {key,value} pairs.com.google.protobuf.Parser<Meta.LabelSelector>intfinal com.google.protobuf.UnknownFieldSetinthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableprotected com.google.protobuf.MapFieldinternalGetMapField(int number) final booleanstatic Meta.LabelSelector.Builderstatic Meta.LabelSelector.BuildernewBuilder(Meta.LabelSelector prototype) protected Meta.LabelSelector.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) static Meta.LabelSelectorparseDelimitedFrom(InputStream input) static Meta.LabelSelectorparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Meta.LabelSelectorparseFrom(byte[] data) static Meta.LabelSelectorparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Meta.LabelSelectorparseFrom(com.google.protobuf.ByteString data) static Meta.LabelSelectorparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Meta.LabelSelectorparseFrom(com.google.protobuf.CodedInputStream input) static Meta.LabelSelectorparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Meta.LabelSelectorparseFrom(InputStream input) static Meta.LabelSelectorparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Meta.LabelSelectorparseFrom(ByteBuffer data) static Meta.LabelSelectorparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Meta.LabelSelector>parser()voidwriteTo(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, 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, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
-
Field Details
-
MATCHLABELS_FIELD_NUMBER
public static final int MATCHLABELS_FIELD_NUMBER- See Also:
-
MATCHEXPRESSIONS_FIELD_NUMBER
public static final int MATCHEXPRESSIONS_FIELD_NUMBER- See Also:
-
PARSER
Deprecated.
-
-
Method Details
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number) - Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getMatchLabelsCount
public int getMatchLabelsCount()Description copied from interface:Meta.LabelSelectorOrBuildermatchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. +optionalmap<string, string> matchLabels = 1;- Specified by:
getMatchLabelsCountin interfaceMeta.LabelSelectorOrBuilder
-
containsMatchLabels
matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. +optionalmap<string, string> matchLabels = 1;- Specified by:
containsMatchLabelsin interfaceMeta.LabelSelectorOrBuilder
-
getMatchLabels
Deprecated.UsegetMatchLabelsMap()instead.- Specified by:
getMatchLabelsin interfaceMeta.LabelSelectorOrBuilder
-
getMatchLabelsMap
matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. +optionalmap<string, string> matchLabels = 1;- Specified by:
getMatchLabelsMapin interfaceMeta.LabelSelectorOrBuilder
-
getMatchLabelsOrDefault
matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. +optionalmap<string, string> matchLabels = 1;- Specified by:
getMatchLabelsOrDefaultin interfaceMeta.LabelSelectorOrBuilder
-
getMatchLabelsOrThrow
matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. +optionalmap<string, string> matchLabels = 1;- Specified by:
getMatchLabelsOrThrowin interfaceMeta.LabelSelectorOrBuilder
-
getMatchExpressionsList
matchExpressions is a list of label selector requirements. The requirements are ANDed. +optional
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement matchExpressions = 2;- Specified by:
getMatchExpressionsListin interfaceMeta.LabelSelectorOrBuilder
-
getMatchExpressionsOrBuilderList
matchExpressions is a list of label selector requirements. The requirements are ANDed. +optional
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement matchExpressions = 2;- Specified by:
getMatchExpressionsOrBuilderListin interfaceMeta.LabelSelectorOrBuilder
-
getMatchExpressionsCount
public int getMatchExpressionsCount()matchExpressions is a list of label selector requirements. The requirements are ANDed. +optional
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement matchExpressions = 2;- Specified by:
getMatchExpressionsCountin interfaceMeta.LabelSelectorOrBuilder
-
getMatchExpressions
matchExpressions is a list of label selector requirements. The requirements are ANDed. +optional
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement matchExpressions = 2;- Specified by:
getMatchExpressionsin interfaceMeta.LabelSelectorOrBuilder
-
getMatchExpressionsOrBuilder
matchExpressions is a list of label selector requirements. The requirements are ANDed. +optional
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement matchExpressions = 2;- Specified by:
getMatchExpressionsOrBuilderin interfaceMeta.LabelSelectorOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Meta.LabelSelector parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Meta.LabelSelector parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Meta.LabelSelector parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Meta.LabelSelector parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Meta.LabelSelector parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Meta.LabelSelector parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Meta.LabelSelector parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Meta.LabelSelector parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Meta.LabelSelector parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Meta.LabelSelector parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Meta.LabelSelector.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-