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, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public 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.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField
in class com.google.protobuf.GeneratedMessageV3
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3
public 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.LabelSelectorOrBuilder
public 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.LabelSelectorOrBuilder
public 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.LabelSelectorOrBuilder
public 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.LabelSelectorOrBuilder
public 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.LabelSelectorOrBuilder
public 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.LabelSelectorOrBuilder
public 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.LabelSelectorOrBuilder
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;
getMatchExpressionsCount
in interface Meta.LabelSelectorOrBuilder
public 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.LabelSelectorOrBuilder
public 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.LabelSelectorOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static Meta.LabelSelector parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Meta.LabelSelector parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Meta.LabelSelector parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Meta.LabelSelector parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Meta.LabelSelector parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Meta.LabelSelector parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Meta.LabelSelector parseFrom(InputStream input) throws IOException
IOException
public static Meta.LabelSelector parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Meta.LabelSelector parseDelimitedFrom(InputStream input) throws IOException
IOException
public static Meta.LabelSelector parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Meta.LabelSelector parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static Meta.LabelSelector parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public Meta.LabelSelector.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public 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.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected Meta.LabelSelector.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public 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.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public Meta.LabelSelector getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2021. All rights reserved.