Package io.kubernetes.client.proto
Class Meta.LabelSelectorRequirement.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<Meta.LabelSelectorRequirement.Builder>
io.kubernetes.client.proto.Meta.LabelSelectorRequirement.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Meta.LabelSelectorRequirementOrBuilder,Cloneable
- Enclosing class:
- Meta.LabelSelectorRequirement
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-
Method Summary
Modifier and TypeMethodDescriptionaddAllValues(Iterable<String> values) values is an array of string values.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) values is an array of string values.addValuesBytes(com.google.protobuf.ByteString value) values is an array of string values.build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearKey()key is the label key that the selector applies to.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) operator represents a key's relationship to a set of values.values is an array of string values.clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetKey()key is the label key that the selector applies to.com.google.protobuf.ByteStringkey is the label key that the selector applies to.operator represents a key's relationship to a set of values.com.google.protobuf.ByteStringoperator represents a key's relationship to a set of values.getValues(int index) values is an array of string values.com.google.protobuf.ByteStringgetValuesBytes(int index) values is an array of string values.intvalues is an array of string values.com.google.protobuf.ProtocolStringListvalues is an array of string values.booleanhasKey()key is the label key that the selector applies to.booleanoperator represents a key's relationship to a set of values.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) key is the label key that the selector applies to.setKeyBytes(com.google.protobuf.ByteString value) key is the label key that the selector applies to.setOperator(String value) operator represents a key's relationship to a set of values.setOperatorBytes(com.google.protobuf.ByteString value) operator represents a key's relationship to a set of values.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) values is an array of string values.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<Meta.LabelSelectorRequirement.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<Meta.LabelSelectorRequirement.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<Meta.LabelSelectorRequirement.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<Meta.LabelSelectorRequirement.Builder>
-
setField
public Meta.LabelSelectorRequirement.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<Meta.LabelSelectorRequirement.Builder>
-
clearField
public Meta.LabelSelectorRequirement.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Meta.LabelSelectorRequirement.Builder>
-
clearOneof
public Meta.LabelSelectorRequirement.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Meta.LabelSelectorRequirement.Builder>
-
setRepeatedField
public Meta.LabelSelectorRequirement.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<Meta.LabelSelectorRequirement.Builder>
-
addRepeatedField
public Meta.LabelSelectorRequirement.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<Meta.LabelSelectorRequirement.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Meta.LabelSelectorRequirement.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Meta.LabelSelectorRequirement.Builder>
-
mergeFrom
public Meta.LabelSelectorRequirement.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<Meta.LabelSelectorRequirement.Builder>- Throws:
IOException
-
hasKey
public boolean hasKey()key is the label key that the selector applies to. +patchMergeKey=key +patchStrategy=merge
optional string key = 1;- Specified by:
hasKeyin interfaceMeta.LabelSelectorRequirementOrBuilder
-
getKey
key is the label key that the selector applies to. +patchMergeKey=key +patchStrategy=merge
optional string key = 1;- Specified by:
getKeyin interfaceMeta.LabelSelectorRequirementOrBuilder
-
getKeyBytes
public com.google.protobuf.ByteString getKeyBytes()key is the label key that the selector applies to. +patchMergeKey=key +patchStrategy=merge
optional string key = 1;- Specified by:
getKeyBytesin interfaceMeta.LabelSelectorRequirementOrBuilder
-
setKey
key is the label key that the selector applies to. +patchMergeKey=key +patchStrategy=merge
optional string key = 1; -
clearKey
key is the label key that the selector applies to. +patchMergeKey=key +patchStrategy=merge
optional string key = 1; -
setKeyBytes
key is the label key that the selector applies to. +patchMergeKey=key +patchStrategy=merge
optional string key = 1; -
hasOperator
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;- Specified by:
hasOperatorin interfaceMeta.LabelSelectorRequirementOrBuilder
-
getOperator
operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
optional string operator = 2;- Specified by:
getOperatorin interfaceMeta.LabelSelectorRequirementOrBuilder
-
getOperatorBytes
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;- Specified by:
getOperatorBytesin interfaceMeta.LabelSelectorRequirementOrBuilder
-
setOperator
operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
optional string operator = 2; -
clearOperator
operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
optional string operator = 2; -
setOperatorBytes
operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.
optional string operator = 2; -
getValuesList
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;- Specified by:
getValuesListin interfaceMeta.LabelSelectorRequirementOrBuilder
-
getValuesCount
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;- Specified by:
getValuesCountin interfaceMeta.LabelSelectorRequirementOrBuilder
-
getValues
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;- Specified by:
getValuesin interfaceMeta.LabelSelectorRequirementOrBuilder
-
getValuesBytes
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;- Specified by:
getValuesBytesin interfaceMeta.LabelSelectorRequirementOrBuilder
-
setValues
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; -
addValues
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; -
addAllValues
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; -
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; -
addValuesBytes
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; -
setUnknownFields
public final Meta.LabelSelectorRequirement.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Meta.LabelSelectorRequirement.Builder>
-
mergeUnknownFields
public final Meta.LabelSelectorRequirement.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Meta.LabelSelectorRequirement.Builder>
-