Package k8s.io.api.core.v1
Class Generated.ScopedResourceSelectorRequirement.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Generated.ScopedResourceSelectorRequirement.Builder>
-
- k8s.io.api.core.v1.Generated.ScopedResourceSelectorRequirement.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,Generated.ScopedResourceSelectorRequirementOrBuilder
- Enclosing class:
- Generated.ScopedResourceSelectorRequirement
public static final class Generated.ScopedResourceSelectorRequirement.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Generated.ScopedResourceSelectorRequirement.Builder> implements Generated.ScopedResourceSelectorRequirementOrBuilder
A scoped-resource selector requirement is a selector that contains values, a scope name, and an operator that relates the scope name and values.
Protobuf typek8s.io.api.core.v1.ScopedResourceSelectorRequirement
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Generated.ScopedResourceSelectorRequirement.BuilderaddAllValues(Iterable<String> values)An array of string values.Generated.ScopedResourceSelectorRequirement.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.ScopedResourceSelectorRequirement.BuilderaddValues(String value)An array of string values.Generated.ScopedResourceSelectorRequirement.BuilderaddValuesBytes(com.google.protobuf.ByteString value)An array of string values.Generated.ScopedResourceSelectorRequirementbuild()Generated.ScopedResourceSelectorRequirementbuildPartial()Generated.ScopedResourceSelectorRequirement.Builderclear()Generated.ScopedResourceSelectorRequirement.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Generated.ScopedResourceSelectorRequirement.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Generated.ScopedResourceSelectorRequirement.BuilderclearOperator()Represents a scope's relationship to a set of values.Generated.ScopedResourceSelectorRequirement.BuilderclearScopeName()The name of the scope that the selector applies to.Generated.ScopedResourceSelectorRequirement.BuilderclearValues()An array of string values.Generated.ScopedResourceSelectorRequirement.Builderclone()Generated.ScopedResourceSelectorRequirementgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetOperator()Represents a scope's relationship to a set of values.com.google.protobuf.ByteStringgetOperatorBytes()Represents a scope's relationship to a set of values.StringgetScopeName()The name of the scope that the selector applies to.com.google.protobuf.ByteStringgetScopeNameBytes()The name of the scope that the selector applies to.StringgetValues(int index)An array of string values.com.google.protobuf.ByteStringgetValuesBytes(int index)An array of string values.intgetValuesCount()An array of string values.com.google.protobuf.ProtocolStringListgetValuesList()An array of string values.booleanhasOperator()Represents a scope's relationship to a set of values.booleanhasScopeName()The name of the scope that the selector applies to.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Generated.ScopedResourceSelectorRequirement.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Generated.ScopedResourceSelectorRequirement.BuildermergeFrom(com.google.protobuf.Message other)Generated.ScopedResourceSelectorRequirement.BuildermergeFrom(Generated.ScopedResourceSelectorRequirement other)Generated.ScopedResourceSelectorRequirement.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Generated.ScopedResourceSelectorRequirement.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Generated.ScopedResourceSelectorRequirement.BuildersetOperator(String value)Represents a scope's relationship to a set of values.Generated.ScopedResourceSelectorRequirement.BuildersetOperatorBytes(com.google.protobuf.ByteString value)Represents a scope's relationship to a set of values.Generated.ScopedResourceSelectorRequirement.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Generated.ScopedResourceSelectorRequirement.BuildersetScopeName(String value)The name of the scope that the selector applies to.Generated.ScopedResourceSelectorRequirement.BuildersetScopeNameBytes(com.google.protobuf.ByteString value)The name of the scope that the selector applies to.Generated.ScopedResourceSelectorRequirement.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Generated.ScopedResourceSelectorRequirement.BuildersetValues(int index, String value)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.ScopedResourceSelectorRequirement.Builder>
-
clear
public Generated.ScopedResourceSelectorRequirement.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.ScopedResourceSelectorRequirement.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.ScopedResourceSelectorRequirement.Builder>
-
getDefaultInstanceForType
public Generated.ScopedResourceSelectorRequirement getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Generated.ScopedResourceSelectorRequirement build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Generated.ScopedResourceSelectorRequirement buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Generated.ScopedResourceSelectorRequirement.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.ScopedResourceSelectorRequirement.Builder>
-
setField
public Generated.ScopedResourceSelectorRequirement.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.ScopedResourceSelectorRequirement.Builder>
-
clearField
public Generated.ScopedResourceSelectorRequirement.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.ScopedResourceSelectorRequirement.Builder>
-
clearOneof
public Generated.ScopedResourceSelectorRequirement.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.ScopedResourceSelectorRequirement.Builder>
-
setRepeatedField
public Generated.ScopedResourceSelectorRequirement.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.ScopedResourceSelectorRequirement.Builder>
-
addRepeatedField
public Generated.ScopedResourceSelectorRequirement.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.ScopedResourceSelectorRequirement.Builder>
-
mergeFrom
public Generated.ScopedResourceSelectorRequirement.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Generated.ScopedResourceSelectorRequirement.Builder>
-
mergeFrom
public Generated.ScopedResourceSelectorRequirement.Builder mergeFrom(Generated.ScopedResourceSelectorRequirement other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.ScopedResourceSelectorRequirement.Builder>
-
mergeFrom
public Generated.ScopedResourceSelectorRequirement.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.ScopedResourceSelectorRequirement.Builder>- Throws:
IOException
-
hasScopeName
public boolean hasScopeName()
The name of the scope that the selector applies to.
optional string scopeName = 1;- Specified by:
hasScopeNamein interfaceGenerated.ScopedResourceSelectorRequirementOrBuilder- Returns:
- Whether the scopeName field is set.
-
getScopeName
public String getScopeName()
The name of the scope that the selector applies to.
optional string scopeName = 1;- Specified by:
getScopeNamein interfaceGenerated.ScopedResourceSelectorRequirementOrBuilder- Returns:
- The scopeName.
-
getScopeNameBytes
public com.google.protobuf.ByteString getScopeNameBytes()
The name of the scope that the selector applies to.
optional string scopeName = 1;- Specified by:
getScopeNameBytesin interfaceGenerated.ScopedResourceSelectorRequirementOrBuilder- Returns:
- The bytes for scopeName.
-
setScopeName
public Generated.ScopedResourceSelectorRequirement.Builder setScopeName(String value)
The name of the scope that the selector applies to.
optional string scopeName = 1;- Parameters:
value- The scopeName to set.- Returns:
- This builder for chaining.
-
clearScopeName
public Generated.ScopedResourceSelectorRequirement.Builder clearScopeName()
The name of the scope that the selector applies to.
optional string scopeName = 1;- Returns:
- This builder for chaining.
-
setScopeNameBytes
public Generated.ScopedResourceSelectorRequirement.Builder setScopeNameBytes(com.google.protobuf.ByteString value)
The name of the scope that the selector applies to.
optional string scopeName = 1;- Parameters:
value- The bytes for scopeName to set.- Returns:
- This builder for chaining.
-
hasOperator
public boolean hasOperator()
Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist.
optional string operator = 2;- Specified by:
hasOperatorin interfaceGenerated.ScopedResourceSelectorRequirementOrBuilder- Returns:
- Whether the operator field is set.
-
getOperator
public String getOperator()
Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist.
optional string operator = 2;- Specified by:
getOperatorin interfaceGenerated.ScopedResourceSelectorRequirementOrBuilder- Returns:
- The operator.
-
getOperatorBytes
public com.google.protobuf.ByteString getOperatorBytes()
Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist.
optional string operator = 2;- Specified by:
getOperatorBytesin interfaceGenerated.ScopedResourceSelectorRequirementOrBuilder- Returns:
- The bytes for operator.
-
setOperator
public Generated.ScopedResourceSelectorRequirement.Builder setOperator(String value)
Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist.
optional string operator = 2;- Parameters:
value- The operator to set.- Returns:
- This builder for chaining.
-
clearOperator
public Generated.ScopedResourceSelectorRequirement.Builder clearOperator()
Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist.
optional string operator = 2;- Returns:
- This builder for chaining.
-
setOperatorBytes
public Generated.ScopedResourceSelectorRequirement.Builder setOperatorBytes(com.google.protobuf.ByteString value)
Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist.
optional string operator = 2;- Parameters:
value- The bytes for operator to set.- Returns:
- This builder for chaining.
-
getValuesList
public com.google.protobuf.ProtocolStringList getValuesList()
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 +listType=atomic
repeated string values = 3;- Specified by:
getValuesListin interfaceGenerated.ScopedResourceSelectorRequirementOrBuilder- Returns:
- A list containing the values.
-
getValuesCount
public int getValuesCount()
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 +listType=atomic
repeated string values = 3;- Specified by:
getValuesCountin interfaceGenerated.ScopedResourceSelectorRequirementOrBuilder- Returns:
- The count of values.
-
getValues
public String getValues(int index)
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 +listType=atomic
repeated string values = 3;- Specified by:
getValuesin interfaceGenerated.ScopedResourceSelectorRequirementOrBuilder- 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)
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 +listType=atomic
repeated string values = 3;- Specified by:
getValuesBytesin interfaceGenerated.ScopedResourceSelectorRequirementOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the values at the given index.
-
setValues
public Generated.ScopedResourceSelectorRequirement.Builder setValues(int index, String value)
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 +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.ScopedResourceSelectorRequirement.Builder addValues(String value)
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 +listType=atomic
repeated string values = 3;- Parameters:
value- The values to add.- Returns:
- This builder for chaining.
-
addAllValues
public Generated.ScopedResourceSelectorRequirement.Builder addAllValues(Iterable<String> values)
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 +listType=atomic
repeated string values = 3;- Parameters:
values- The values to add.- Returns:
- This builder for chaining.
-
clearValues
public Generated.ScopedResourceSelectorRequirement.Builder clearValues()
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 +listType=atomic
repeated string values = 3;- Returns:
- This builder for chaining.
-
addValuesBytes
public Generated.ScopedResourceSelectorRequirement.Builder addValuesBytes(com.google.protobuf.ByteString value)
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 +listType=atomic
repeated string values = 3;- Parameters:
value- The bytes of the values to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Generated.ScopedResourceSelectorRequirement.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.ScopedResourceSelectorRequirement.Builder>
-
mergeUnknownFields
public final Generated.ScopedResourceSelectorRequirement.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Generated.ScopedResourceSelectorRequirement.Builder>
-
-