Class Generated.FieldSelectorRequirement.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Generated.FieldSelectorRequirement.Builder>
-
- k8s.io.apimachinery.pkg.apis.meta.v1.Generated.FieldSelectorRequirement.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,Generated.FieldSelectorRequirementOrBuilder
- Enclosing class:
- Generated.FieldSelectorRequirement
public static final class Generated.FieldSelectorRequirement.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Generated.FieldSelectorRequirement.Builder> implements Generated.FieldSelectorRequirementOrBuilder
FieldSelectorRequirement is a selector that contains values, a key, and an operator that relates the key and values.
Protobuf typek8s.io.apimachinery.pkg.apis.meta.v1.FieldSelectorRequirement
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Generated.FieldSelectorRequirement.BuilderaddAllValues(Iterable<String> values)values is an array of string values.Generated.FieldSelectorRequirement.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.FieldSelectorRequirement.BuilderaddValues(String value)values is an array of string values.Generated.FieldSelectorRequirement.BuilderaddValuesBytes(com.google.protobuf.ByteString value)values is an array of string values.Generated.FieldSelectorRequirementbuild()Generated.FieldSelectorRequirementbuildPartial()Generated.FieldSelectorRequirement.Builderclear()Generated.FieldSelectorRequirement.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Generated.FieldSelectorRequirement.BuilderclearKey()key is the field selector key that the requirement applies to.Generated.FieldSelectorRequirement.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Generated.FieldSelectorRequirement.BuilderclearOperator()operator represents a key's relationship to a set of values.Generated.FieldSelectorRequirement.BuilderclearValues()values is an array of string values.Generated.FieldSelectorRequirement.Builderclone()Generated.FieldSelectorRequirementgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetKey()key is the field selector key that the requirement applies to.com.google.protobuf.ByteStringgetKeyBytes()key is the field selector key that the requirement applies to.StringgetOperator()operator represents a key's relationship to a set of values.com.google.protobuf.ByteStringgetOperatorBytes()operator represents a key's relationship to a set of values.StringgetValues(int index)values is an array of string values.com.google.protobuf.ByteStringgetValuesBytes(int index)values is an array of string values.intgetValuesCount()values is an array of string values.com.google.protobuf.ProtocolStringListgetValuesList()values is an array of string values.booleanhasKey()key is the field selector key that the requirement applies to.booleanhasOperator()operator represents a key's relationship to a set of values.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Generated.FieldSelectorRequirement.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Generated.FieldSelectorRequirement.BuildermergeFrom(com.google.protobuf.Message other)Generated.FieldSelectorRequirement.BuildermergeFrom(Generated.FieldSelectorRequirement other)Generated.FieldSelectorRequirement.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Generated.FieldSelectorRequirement.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.FieldSelectorRequirement.BuildersetKey(String value)key is the field selector key that the requirement applies to.Generated.FieldSelectorRequirement.BuildersetKeyBytes(com.google.protobuf.ByteString value)key is the field selector key that the requirement applies to.Generated.FieldSelectorRequirement.BuildersetOperator(String value)operator represents a key's relationship to a set of values.Generated.FieldSelectorRequirement.BuildersetOperatorBytes(com.google.protobuf.ByteString value)operator represents a key's relationship to a set of values.Generated.FieldSelectorRequirement.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Generated.FieldSelectorRequirement.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Generated.FieldSelectorRequirement.BuildersetValues(int index, String value)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, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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<Generated.FieldSelectorRequirement.Builder>
-
clear
public Generated.FieldSelectorRequirement.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<Generated.FieldSelectorRequirement.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<Generated.FieldSelectorRequirement.Builder>
-
getDefaultInstanceForType
public Generated.FieldSelectorRequirement getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Generated.FieldSelectorRequirement build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Generated.FieldSelectorRequirement buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Generated.FieldSelectorRequirement.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<Generated.FieldSelectorRequirement.Builder>
-
setField
public Generated.FieldSelectorRequirement.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<Generated.FieldSelectorRequirement.Builder>
-
clearField
public Generated.FieldSelectorRequirement.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.FieldSelectorRequirement.Builder>
-
clearOneof
public Generated.FieldSelectorRequirement.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.FieldSelectorRequirement.Builder>
-
setRepeatedField
public Generated.FieldSelectorRequirement.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<Generated.FieldSelectorRequirement.Builder>
-
addRepeatedField
public Generated.FieldSelectorRequirement.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<Generated.FieldSelectorRequirement.Builder>
-
mergeFrom
public Generated.FieldSelectorRequirement.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Generated.FieldSelectorRequirement.Builder>
-
mergeFrom
public Generated.FieldSelectorRequirement.Builder mergeFrom(Generated.FieldSelectorRequirement other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.FieldSelectorRequirement.Builder>
-
mergeFrom
public Generated.FieldSelectorRequirement.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<Generated.FieldSelectorRequirement.Builder>- Throws:
IOException
-
hasKey
public boolean hasKey()
key is the field selector key that the requirement applies to.
optional string key = 1;- Specified by:
hasKeyin interfaceGenerated.FieldSelectorRequirementOrBuilder- Returns:
- Whether the key field is set.
-
getKey
public String getKey()
key is the field selector key that the requirement applies to.
optional string key = 1;- Specified by:
getKeyin interfaceGenerated.FieldSelectorRequirementOrBuilder- Returns:
- The key.
-
getKeyBytes
public com.google.protobuf.ByteString getKeyBytes()
key is the field selector key that the requirement applies to.
optional string key = 1;- Specified by:
getKeyBytesin interfaceGenerated.FieldSelectorRequirementOrBuilder- Returns:
- The bytes for key.
-
setKey
public Generated.FieldSelectorRequirement.Builder setKey(String value)
key is the field selector key that the requirement applies to.
optional string key = 1;- Parameters:
value- The key to set.- Returns:
- This builder for chaining.
-
clearKey
public Generated.FieldSelectorRequirement.Builder clearKey()
key is the field selector key that the requirement applies to.
optional string key = 1;- Returns:
- This builder for chaining.
-
setKeyBytes
public Generated.FieldSelectorRequirement.Builder setKeyBytes(com.google.protobuf.ByteString value)
key is the field selector key that the requirement applies to.
optional string key = 1;- Parameters:
value- The bytes for key to set.- Returns:
- This builder for chaining.
-
hasOperator
public boolean hasOperator()
operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. The list of operators may grow in the future.
optional string operator = 2;- Specified by:
hasOperatorin interfaceGenerated.FieldSelectorRequirementOrBuilder- Returns:
- Whether the operator field is set.
-
getOperator
public String getOperator()
operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. The list of operators may grow in the future.
optional string operator = 2;- Specified by:
getOperatorin interfaceGenerated.FieldSelectorRequirementOrBuilder- Returns:
- The operator.
-
getOperatorBytes
public com.google.protobuf.ByteString getOperatorBytes()
operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. The list of operators may grow in the future.
optional string operator = 2;- Specified by:
getOperatorBytesin interfaceGenerated.FieldSelectorRequirementOrBuilder- Returns:
- The bytes for operator.
-
setOperator
public Generated.FieldSelectorRequirement.Builder setOperator(String value)
operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. The list of operators may grow in the future.
optional string operator = 2;- Parameters:
value- The operator to set.- Returns:
- This builder for chaining.
-
clearOperator
public Generated.FieldSelectorRequirement.Builder clearOperator()
operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. The list of operators may grow in the future.
optional string operator = 2;- Returns:
- This builder for chaining.
-
setOperatorBytes
public Generated.FieldSelectorRequirement.Builder setOperatorBytes(com.google.protobuf.ByteString value)
operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. The list of operators may grow in the future.
optional string operator = 2;- Parameters:
value- The bytes for operator to set.- Returns:
- This builder for chaining.
-
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. +optional +listType=atomic
repeated string values = 3;- Specified by:
getValuesListin interfaceGenerated.FieldSelectorRequirementOrBuilder- Returns:
- A list containing the values.
-
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. +optional +listType=atomic
repeated string values = 3;- Specified by:
getValuesCountin interfaceGenerated.FieldSelectorRequirementOrBuilder- Returns:
- The count of values.
-
getValues
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. +optional +listType=atomic
repeated string values = 3;- Specified by:
getValuesin interfaceGenerated.FieldSelectorRequirementOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The values at the given index.
-
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. +optional +listType=atomic
repeated string values = 3;- Specified by:
getValuesBytesin interfaceGenerated.FieldSelectorRequirementOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the values at the given index.
-
setValues
public Generated.FieldSelectorRequirement.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. +optional +listType=atomic
repeated string values = 3;- Parameters:
index- The index to set the value at.value- The values to set.- Returns:
- This builder for chaining.
-
addValues
public Generated.FieldSelectorRequirement.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. +optional +listType=atomic
repeated string values = 3;- Parameters:
value- The values to add.- Returns:
- This builder for chaining.
-
addAllValues
public Generated.FieldSelectorRequirement.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. +optional +listType=atomic
repeated string values = 3;- Parameters:
values- The values to add.- Returns:
- This builder for chaining.
-
clearValues
public Generated.FieldSelectorRequirement.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. +optional +listType=atomic
repeated string values = 3;- Returns:
- This builder for chaining.
-
addValuesBytes
public Generated.FieldSelectorRequirement.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. +optional +listType=atomic
repeated string values = 3;- Parameters:
value- The bytes of the values to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Generated.FieldSelectorRequirement.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.FieldSelectorRequirement.Builder>
-
mergeUnknownFields
public final Generated.FieldSelectorRequirement.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.FieldSelectorRequirement.Builder>
-
-