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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Meta.LabelSelectorRequirement.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<Meta.LabelSelectorRequirement.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Meta.LabelSelectorRequirement.Builder>
    • getDefaultInstanceForType

      public Meta.LabelSelectorRequirement getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Meta.LabelSelectorRequirement buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<Meta.LabelSelectorRequirement.Builder>
    • setField

      public Meta.LabelSelectorRequirement.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<Meta.LabelSelectorRequirement.Builder>
    • clearField

      public Meta.LabelSelectorRequirement.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Meta.LabelSelectorRequirement.Builder>
    • clearOneof

      public Meta.LabelSelectorRequirement.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.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:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Meta.LabelSelectorRequirement.Builder>
    • addRepeatedField

      public Meta.LabelSelectorRequirement.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Meta.LabelSelectorRequirement.Builder>
    • mergeFrom

      public Meta.LabelSelectorRequirement.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Meta.LabelSelectorRequirement.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      hasKey in interface Meta.LabelSelectorRequirementOrBuilder
    • getKey

      public String getKey()
       key is the label key that the selector applies to.
       +patchMergeKey=key
       +patchStrategy=merge
       
      optional string key = 1;
      Specified by:
      getKey in interface Meta.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:
      getKeyBytes in interface Meta.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

      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;
    • 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:
      hasOperator in interface Meta.LabelSelectorRequirementOrBuilder
    • getOperator

      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;
      Specified by:
      getOperator in interface Meta.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:
      getOperatorBytes in interface Meta.LabelSelectorRequirementOrBuilder
    • setOperator

      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;
    • clearOperator

      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;
    • setOperatorBytes

      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;
    • 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:
      getValuesList in interface Meta.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:
      getValuesCount in interface Meta.LabelSelectorRequirementOrBuilder
    • 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. This array is replaced during a strategic
       merge patch.
       +optional
       
      repeated string values = 3;
      Specified by:
      getValues in interface Meta.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:
      getValuesBytes in interface Meta.LabelSelectorRequirementOrBuilder
    • setValues

      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;
    • 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

      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;
    • 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

      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;
    • setUnknownFields

      public final Meta.LabelSelectorRequirement.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Meta.LabelSelectorRequirement.Builder>
    • mergeUnknownFields

      public final Meta.LabelSelectorRequirement.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Meta.LabelSelectorRequirement.Builder>