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.Protobuf type
k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector| Modifier and Type | Class and Description |
|---|---|
static class |
Meta.LabelSelector.Builder
A label selector is a label query over a set of resources.
|
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| Modifier and Type | Field and Description |
|---|---|
static int |
MATCHEXPRESSIONS_FIELD_NUMBER |
static int |
MATCHLABELS_FIELD_NUMBER |
static com.google.protobuf.Parser<Meta.LabelSelector> |
PARSER
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsMatchLabels(String key)
matchLabels is a map of {key,value} pairs.
|
boolean |
equals(Object obj) |
static Meta.LabelSelector |
getDefaultInstance() |
Meta.LabelSelector |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
Meta.LabelSelectorRequirement |
getMatchExpressions(int index)
matchExpressions is a list of label selector requirements.
|
int |
getMatchExpressionsCount()
matchExpressions is a list of label selector requirements.
|
List<Meta.LabelSelectorRequirement> |
getMatchExpressionsList()
matchExpressions is a list of label selector requirements.
|
Meta.LabelSelectorRequirementOrBuilder |
getMatchExpressionsOrBuilder(int index)
matchExpressions is a list of label selector requirements.
|
List<? extends Meta.LabelSelectorRequirementOrBuilder> |
getMatchExpressionsOrBuilderList()
matchExpressions is a list of label selector requirements.
|
Map<String,String> |
getMatchLabels()
Deprecated.
|
int |
getMatchLabelsCount()
matchLabels is a map of {key,value} pairs.
|
Map<String,String> |
getMatchLabelsMap()
matchLabels is a map of {key,value} pairs.
|
String |
getMatchLabelsOrDefault(String key,
String defaultValue)
matchLabels is a map of {key,value} pairs.
|
String |
getMatchLabelsOrThrow(String key)
matchLabels is a map of {key,value} pairs.
|
com.google.protobuf.Parser<Meta.LabelSelector> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static Meta.LabelSelector.Builder |
newBuilder() |
static Meta.LabelSelector.Builder |
newBuilder(Meta.LabelSelector prototype) |
Meta.LabelSelector.Builder |
newBuilderForType() |
protected Meta.LabelSelector.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Meta.LabelSelector |
parseDelimitedFrom(InputStream input) |
static Meta.LabelSelector |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Meta.LabelSelector |
parseFrom(byte[] data) |
static Meta.LabelSelector |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Meta.LabelSelector |
parseFrom(ByteBuffer data) |
static Meta.LabelSelector |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Meta.LabelSelector |
parseFrom(com.google.protobuf.ByteString data) |
static Meta.LabelSelector |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Meta.LabelSelector |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Meta.LabelSelector |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Meta.LabelSelector |
parseFrom(InputStream input) |
static Meta.LabelSelector |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Meta.LabelSelector> |
parser() |
Meta.LabelSelector.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int MATCHLABELS_FIELD_NUMBER
public static final int MATCHEXPRESSIONS_FIELD_NUMBER
@Deprecated public static final com.google.protobuf.Parser<Meta.LabelSelector> PARSER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public int getMatchLabelsCount()
Meta.LabelSelectorOrBuilder
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.
+optional
map<string, string> matchLabels = 1;getMatchLabelsCount in interface Meta.LabelSelectorOrBuilderpublic boolean containsMatchLabels(String key)
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.
+optional
map<string, string> matchLabels = 1;containsMatchLabels in interface Meta.LabelSelectorOrBuilder@Deprecated public Map<String,String> getMatchLabels()
getMatchLabelsMap() instead.getMatchLabels in interface Meta.LabelSelectorOrBuilderpublic Map<String,String> 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.
+optional
map<string, string> matchLabels = 1;getMatchLabelsMap in interface Meta.LabelSelectorOrBuilderpublic String getMatchLabelsOrDefault(String key, String defaultValue)
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.
+optional
map<string, string> matchLabels = 1;getMatchLabelsOrDefault in interface Meta.LabelSelectorOrBuilderpublic String getMatchLabelsOrThrow(String key)
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.
+optional
map<string, string> matchLabels = 1;getMatchLabelsOrThrow in interface Meta.LabelSelectorOrBuilderpublic List<Meta.LabelSelectorRequirement> 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;
getMatchExpressionsList in interface Meta.LabelSelectorOrBuilderpublic List<? extends Meta.LabelSelectorRequirementOrBuilder> 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;
getMatchExpressionsOrBuilderList in interface Meta.LabelSelectorOrBuilderpublic 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;
getMatchExpressionsCount in interface Meta.LabelSelectorOrBuilderpublic Meta.LabelSelectorRequirement getMatchExpressions(int index)
matchExpressions is a list of label selector requirements. The requirements are ANDed. +optional
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement matchExpressions = 2;
getMatchExpressions in interface Meta.LabelSelectorOrBuilderpublic Meta.LabelSelectorRequirementOrBuilder getMatchExpressionsOrBuilder(int index)
matchExpressions is a list of label selector requirements. The requirements are ANDed. +optional
repeated .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement matchExpressions = 2;
getMatchExpressionsOrBuilder in interface Meta.LabelSelectorOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Meta.LabelSelector parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Meta.LabelSelector parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Meta.LabelSelector parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Meta.LabelSelector parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Meta.LabelSelector parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Meta.LabelSelector parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Meta.LabelSelector parseFrom(InputStream input) throws IOException
IOExceptionpublic static Meta.LabelSelector parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Meta.LabelSelector parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Meta.LabelSelector parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Meta.LabelSelector parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Meta.LabelSelector parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Meta.LabelSelector.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Meta.LabelSelector.Builder newBuilder()
public static Meta.LabelSelector.Builder newBuilder(Meta.LabelSelector prototype)
public Meta.LabelSelector.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Meta.LabelSelector.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Meta.LabelSelector getDefaultInstance()
public static com.google.protobuf.Parser<Meta.LabelSelector> parser()
public com.google.protobuf.Parser<Meta.LabelSelector> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Meta.LabelSelector getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2020. All rights reserved.