Class SchedulingNodeAffinity.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<SchedulingNodeAffinity.Builder>
      • clear

        public SchedulingNodeAffinity.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<SchedulingNodeAffinity.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<SchedulingNodeAffinity.Builder>
      • getDefaultInstanceForType

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

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

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

        public SchedulingNodeAffinity.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<SchedulingNodeAffinity.Builder>
      • clearField

        public SchedulingNodeAffinity.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<SchedulingNodeAffinity.Builder>
      • clearOneof

        public SchedulingNodeAffinity.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<SchedulingNodeAffinity.Builder>
      • setRepeatedField

        public SchedulingNodeAffinity.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<SchedulingNodeAffinity.Builder>
      • addRepeatedField

        public SchedulingNodeAffinity.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<SchedulingNodeAffinity.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SchedulingNodeAffinity.Builder>
      • mergeFrom

        public SchedulingNodeAffinity.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<SchedulingNodeAffinity.Builder>
        Throws:
        IOException
      • hasKey

        public boolean hasKey()
         Corresponds to the label key of Node resource.
         
        optional string key = 106079;
        Specified by:
        hasKey in interface SchedulingNodeAffinityOrBuilder
        Returns:
        Whether the key field is set.
      • getKeyBytes

        public com.google.protobuf.ByteString getKeyBytes()
         Corresponds to the label key of Node resource.
         
        optional string key = 106079;
        Specified by:
        getKeyBytes in interface SchedulingNodeAffinityOrBuilder
        Returns:
        The bytes for key.
      • setKey

        public SchedulingNodeAffinity.Builder setKey​(String value)
         Corresponds to the label key of Node resource.
         
        optional string key = 106079;
        Parameters:
        value - The key to set.
        Returns:
        This builder for chaining.
      • clearKey

        public SchedulingNodeAffinity.Builder clearKey()
         Corresponds to the label key of Node resource.
         
        optional string key = 106079;
        Returns:
        This builder for chaining.
      • setKeyBytes

        public SchedulingNodeAffinity.Builder setKeyBytes​(com.google.protobuf.ByteString value)
         Corresponds to the label key of Node resource.
         
        optional string key = 106079;
        Parameters:
        value - The bytes for key to set.
        Returns:
        This builder for chaining.
      • hasOperator

        public boolean hasOperator()
         Defines the operation of node selection. Valid operators are IN for affinity and NOT_IN for anti-affinity.
         Check the Operator enum for the list of possible values.
         
        optional string operator = 36317348;
        Specified by:
        hasOperator in interface SchedulingNodeAffinityOrBuilder
        Returns:
        Whether the operator field is set.
      • getOperator

        public String getOperator()
         Defines the operation of node selection. Valid operators are IN for affinity and NOT_IN for anti-affinity.
         Check the Operator enum for the list of possible values.
         
        optional string operator = 36317348;
        Specified by:
        getOperator in interface SchedulingNodeAffinityOrBuilder
        Returns:
        The operator.
      • getOperatorBytes

        public com.google.protobuf.ByteString getOperatorBytes()
         Defines the operation of node selection. Valid operators are IN for affinity and NOT_IN for anti-affinity.
         Check the Operator enum for the list of possible values.
         
        optional string operator = 36317348;
        Specified by:
        getOperatorBytes in interface SchedulingNodeAffinityOrBuilder
        Returns:
        The bytes for operator.
      • setOperator

        public SchedulingNodeAffinity.Builder setOperator​(String value)
         Defines the operation of node selection. Valid operators are IN for affinity and NOT_IN for anti-affinity.
         Check the Operator enum for the list of possible values.
         
        optional string operator = 36317348;
        Parameters:
        value - The operator to set.
        Returns:
        This builder for chaining.
      • clearOperator

        public SchedulingNodeAffinity.Builder clearOperator()
         Defines the operation of node selection. Valid operators are IN for affinity and NOT_IN for anti-affinity.
         Check the Operator enum for the list of possible values.
         
        optional string operator = 36317348;
        Returns:
        This builder for chaining.
      • setOperatorBytes

        public SchedulingNodeAffinity.Builder setOperatorBytes​(com.google.protobuf.ByteString value)
         Defines the operation of node selection. Valid operators are IN for affinity and NOT_IN for anti-affinity.
         Check the Operator enum for the list of possible values.
         
        optional string operator = 36317348;
        Parameters:
        value - The bytes for operator to set.
        Returns:
        This builder for chaining.
      • getValuesList

        public com.google.protobuf.ProtocolStringList getValuesList()
         Corresponds to the label values of Node resource.
         
        repeated string values = 249928994;
        Specified by:
        getValuesList in interface SchedulingNodeAffinityOrBuilder
        Returns:
        A list containing the values.
      • getValuesCount

        public int getValuesCount()
         Corresponds to the label values of Node resource.
         
        repeated string values = 249928994;
        Specified by:
        getValuesCount in interface SchedulingNodeAffinityOrBuilder
        Returns:
        The count of values.
      • getValues

        public String getValues​(int index)
         Corresponds to the label values of Node resource.
         
        repeated string values = 249928994;
        Specified by:
        getValues in interface SchedulingNodeAffinityOrBuilder
        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)
         Corresponds to the label values of Node resource.
         
        repeated string values = 249928994;
        Specified by:
        getValuesBytes in interface SchedulingNodeAffinityOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the values at the given index.
      • setValues

        public SchedulingNodeAffinity.Builder setValues​(int index,
                                                        String value)
         Corresponds to the label values of Node resource.
         
        repeated string values = 249928994;
        Parameters:
        index - The index to set the value at.
        value - The values to set.
        Returns:
        This builder for chaining.
      • addValues

        public SchedulingNodeAffinity.Builder addValues​(String value)
         Corresponds to the label values of Node resource.
         
        repeated string values = 249928994;
        Parameters:
        value - The values to add.
        Returns:
        This builder for chaining.
      • addAllValues

        public SchedulingNodeAffinity.Builder addAllValues​(Iterable<String> values)
         Corresponds to the label values of Node resource.
         
        repeated string values = 249928994;
        Parameters:
        values - The values to add.
        Returns:
        This builder for chaining.
      • clearValues

        public SchedulingNodeAffinity.Builder clearValues()
         Corresponds to the label values of Node resource.
         
        repeated string values = 249928994;
        Returns:
        This builder for chaining.
      • addValuesBytes

        public SchedulingNodeAffinity.Builder addValuesBytes​(com.google.protobuf.ByteString value)
         Corresponds to the label values of Node resource.
         
        repeated string values = 249928994;
        Parameters:
        value - The bytes of the values to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final SchedulingNodeAffinity.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<SchedulingNodeAffinity.Builder>
      • mergeUnknownFields

        public final SchedulingNodeAffinity.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<SchedulingNodeAffinity.Builder>