public static final class Meta.LabelSelectorRequirement.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Meta.LabelSelectorRequirement.Builder> implements Meta.LabelSelectorRequirementOrBuilder
A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.Protobuf type
k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelectorRequirement
Modifier and Type | Method and Description |
---|---|
Meta.LabelSelectorRequirement.Builder |
addAllValues(Iterable<String> values)
values is an array of string values.
|
Meta.LabelSelectorRequirement.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Meta.LabelSelectorRequirement.Builder |
addValues(String value)
values is an array of string values.
|
Meta.LabelSelectorRequirement.Builder |
addValuesBytes(com.google.protobuf.ByteString value)
values is an array of string values.
|
Meta.LabelSelectorRequirement |
build() |
Meta.LabelSelectorRequirement |
buildPartial() |
Meta.LabelSelectorRequirement.Builder |
clear() |
Meta.LabelSelectorRequirement.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Meta.LabelSelectorRequirement.Builder |
clearKey()
key is the label key that the selector applies to.
|
Meta.LabelSelectorRequirement.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Meta.LabelSelectorRequirement.Builder |
clearOperator()
operator represents a key's relationship to a set of values.
|
Meta.LabelSelectorRequirement.Builder |
clearValues()
values is an array of string values.
|
Meta.LabelSelectorRequirement.Builder |
clone() |
Meta.LabelSelectorRequirement |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getKey()
key is the label key that the selector applies to.
|
com.google.protobuf.ByteString |
getKeyBytes()
key is the label key that the selector applies to.
|
String |
getOperator()
operator represents a key's relationship to a set of values.
|
com.google.protobuf.ByteString |
getOperatorBytes()
operator represents a key's relationship to a set of values.
|
String |
getValues(int index)
values is an array of string values.
|
com.google.protobuf.ByteString |
getValuesBytes(int index)
values is an array of string values.
|
int |
getValuesCount()
values is an array of string values.
|
com.google.protobuf.ProtocolStringList |
getValuesList()
values is an array of string values.
|
boolean |
hasKey()
key is the label key that the selector applies to.
|
boolean |
hasOperator()
operator represents a key's relationship to a set of values.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Meta.LabelSelectorRequirement.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Meta.LabelSelectorRequirement.Builder |
mergeFrom(com.google.protobuf.Message other) |
Meta.LabelSelectorRequirement.Builder |
mergeFrom(Meta.LabelSelectorRequirement other) |
Meta.LabelSelectorRequirement.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Meta.LabelSelectorRequirement.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
Meta.LabelSelectorRequirement.Builder |
setKey(String value)
key is the label key that the selector applies to.
|
Meta.LabelSelectorRequirement.Builder |
setKeyBytes(com.google.protobuf.ByteString value)
key is the label key that the selector applies to.
|
Meta.LabelSelectorRequirement.Builder |
setOperator(String value)
operator represents a key's relationship to a set of values.
|
Meta.LabelSelectorRequirement.Builder |
setOperatorBytes(com.google.protobuf.ByteString value)
operator represents a key's relationship to a set of values.
|
Meta.LabelSelectorRequirement.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
Meta.LabelSelectorRequirement.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Meta.LabelSelectorRequirement.Builder |
setValues(int index,
String value)
values is an array of string values.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<Meta.LabelSelectorRequirement.Builder>
public Meta.LabelSelectorRequirement.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<Meta.LabelSelectorRequirement.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<Meta.LabelSelectorRequirement.Builder>
public Meta.LabelSelectorRequirement getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Meta.LabelSelectorRequirement build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Meta.LabelSelectorRequirement buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Meta.LabelSelectorRequirement.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<Meta.LabelSelectorRequirement.Builder>
public Meta.LabelSelectorRequirement.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<Meta.LabelSelectorRequirement.Builder>
public Meta.LabelSelectorRequirement.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<Meta.LabelSelectorRequirement.Builder>
public Meta.LabelSelectorRequirement.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<Meta.LabelSelectorRequirement.Builder>
public Meta.LabelSelectorRequirement.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<Meta.LabelSelectorRequirement.Builder>
public Meta.LabelSelectorRequirement.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<Meta.LabelSelectorRequirement.Builder>
public Meta.LabelSelectorRequirement.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Meta.LabelSelectorRequirement.Builder>
public Meta.LabelSelectorRequirement.Builder mergeFrom(Meta.LabelSelectorRequirement other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<Meta.LabelSelectorRequirement.Builder>
public Meta.LabelSelectorRequirement.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Meta.LabelSelectorRequirement.Builder>
IOException
public boolean hasKey()
key is the label key that the selector applies to. +patchMergeKey=key +patchStrategy=merge
optional string key = 1;
hasKey
in interface Meta.LabelSelectorRequirementOrBuilder
public String getKey()
key is the label key that the selector applies to. +patchMergeKey=key +patchStrategy=merge
optional string key = 1;
getKey
in interface Meta.LabelSelectorRequirementOrBuilder
public com.google.protobuf.ByteString getKeyBytes()
key is the label key that the selector applies to. +patchMergeKey=key +patchStrategy=merge
optional string key = 1;
getKeyBytes
in interface Meta.LabelSelectorRequirementOrBuilder
public Meta.LabelSelectorRequirement.Builder setKey(String value)
key is the label key that the selector applies to. +patchMergeKey=key +patchStrategy=merge
optional string key = 1;
public Meta.LabelSelectorRequirement.Builder clearKey()
key is the label key that the selector applies to. +patchMergeKey=key +patchStrategy=merge
optional string key = 1;
public Meta.LabelSelectorRequirement.Builder setKeyBytes(com.google.protobuf.ByteString value)
key is the label key that the selector applies to. +patchMergeKey=key +patchStrategy=merge
optional string key = 1;
public boolean hasOperator()
operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
optional string operator = 2;
hasOperator
in interface Meta.LabelSelectorRequirementOrBuilder
public String getOperator()
operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
optional string operator = 2;
getOperator
in interface Meta.LabelSelectorRequirementOrBuilder
public com.google.protobuf.ByteString getOperatorBytes()
operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
optional string operator = 2;
getOperatorBytes
in interface Meta.LabelSelectorRequirementOrBuilder
public Meta.LabelSelectorRequirement.Builder setOperator(String value)
operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
optional string operator = 2;
public Meta.LabelSelectorRequirement.Builder clearOperator()
operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
optional string operator = 2;
public Meta.LabelSelectorRequirement.Builder setOperatorBytes(com.google.protobuf.ByteString value)
operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
optional string operator = 2;
public com.google.protobuf.ProtocolStringList getValuesList()
values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. +optional
repeated string values = 3;
getValuesList
in interface Meta.LabelSelectorRequirementOrBuilder
public int getValuesCount()
values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. +optional
repeated string values = 3;
getValuesCount
in interface Meta.LabelSelectorRequirementOrBuilder
public String getValues(int index)
values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. +optional
repeated string values = 3;
getValues
in interface Meta.LabelSelectorRequirementOrBuilder
public com.google.protobuf.ByteString getValuesBytes(int index)
values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. +optional
repeated string values = 3;
getValuesBytes
in interface Meta.LabelSelectorRequirementOrBuilder
public Meta.LabelSelectorRequirement.Builder setValues(int index, String value)
values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. +optional
repeated string values = 3;
public Meta.LabelSelectorRequirement.Builder addValues(String value)
values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. +optional
repeated string values = 3;
public Meta.LabelSelectorRequirement.Builder addAllValues(Iterable<String> values)
values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. +optional
repeated string values = 3;
public Meta.LabelSelectorRequirement.Builder clearValues()
values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. +optional
repeated string values = 3;
public Meta.LabelSelectorRequirement.Builder addValuesBytes(com.google.protobuf.ByteString value)
values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. +optional
repeated string values = 3;
public final Meta.LabelSelectorRequirement.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Meta.LabelSelectorRequirement.Builder>
public final Meta.LabelSelectorRequirement.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Meta.LabelSelectorRequirement.Builder>
Copyright © 2021. All rights reserved.