Class Generated.FieldSelectorRequirement.Builder

    • Method Detail

      • 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<Generated.FieldSelectorRequirement.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<Generated.FieldSelectorRequirement.Builder>
      • getDefaultInstanceForType

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

        public Generated.FieldSelectorRequirement build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Generated.FieldSelectorRequirement buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Generated.FieldSelectorRequirement.Builder>
      • 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.
      • 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:
        hasOperator in interface Generated.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:
        getOperator in interface Generated.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:
        getOperatorBytes in interface Generated.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:
        getValuesList in interface Generated.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:
        getValuesCount in interface Generated.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:
        getValues in interface Generated.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:
        getValuesBytes in interface Generated.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.