Class Requirement.Builder

  • All Implemented Interfaces:
    RequirementOrBuilder, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<Requirement>, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable
    Enclosing class:
    Requirement

    public static final class Requirement.Builder
    extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<Requirement,​Requirement.Builder>
    implements RequirementOrBuilder
     A specification of code requirements
     NEXT ID: 17
     
    Protobuf type jscomp.Requirement
    • 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<Requirement.Builder>
      • clear

        public Requirement.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.ExtendableBuilder<Requirement,​Requirement.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<Requirement.Builder>
      • getDefaultInstanceForType

        public Requirement getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<Requirement>
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

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

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

        public Requirement.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<Requirement.Builder>
      • setField

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

        public Requirement.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.ExtendableBuilder<Requirement,​Requirement.Builder>
      • clearOneof

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

        public Requirement.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    int index,
                                                    java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<Requirement,​Requirement.Builder>
      • addRepeatedField

        public Requirement.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<Requirement,​Requirement.Builder>
      • setExtension

        public <Type> Requirement.Builder setExtension​(com.google.protobuf.GeneratedMessage.GeneratedExtension<Requirement,​java.util.List<Type>> extension,
                                                       int index,
                                                       Type value)
        Overrides:
        setExtension in class com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<Requirement,​Requirement.Builder>
      • addExtension

        public <Type> Requirement.Builder addExtension​(com.google.protobuf.GeneratedMessage.GeneratedExtension<Requirement,​java.util.List<Type>> extension,
                                                       Type value)
        Overrides:
        addExtension in class com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<Requirement,​Requirement.Builder>
      • mergeFrom

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

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

        public Requirement.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                      throws java.io.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<Requirement.Builder>
        Throws:
        java.io.IOException
      • hasErrorMessage

        public boolean hasErrorMessage()
         Required: The message to report when a requirement is violated. This should
         reference a document describing the reasoning for the requirement
         and contacts.
         
        optional string error_message = 1;
        Specified by:
        hasErrorMessage in interface RequirementOrBuilder
        Returns:
        Whether the errorMessage field is set.
      • getErrorMessage

        public java.lang.String getErrorMessage()
         Required: The message to report when a requirement is violated. This should
         reference a document describing the reasoning for the requirement
         and contacts.
         
        optional string error_message = 1;
        Specified by:
        getErrorMessage in interface RequirementOrBuilder
        Returns:
        The errorMessage.
      • getErrorMessageBytes

        public com.google.protobuf.ByteString getErrorMessageBytes()
         Required: The message to report when a requirement is violated. This should
         reference a document describing the reasoning for the requirement
         and contacts.
         
        optional string error_message = 1;
        Specified by:
        getErrorMessageBytes in interface RequirementOrBuilder
        Returns:
        The bytes for errorMessage.
      • setErrorMessage

        public Requirement.Builder setErrorMessage​(java.lang.String value)
         Required: The message to report when a requirement is violated. This should
         reference a document describing the reasoning for the requirement
         and contacts.
         
        optional string error_message = 1;
        Parameters:
        value - The errorMessage to set.
        Returns:
        This builder for chaining.
      • clearErrorMessage

        public Requirement.Builder clearErrorMessage()
         Required: The message to report when a requirement is violated. This should
         reference a document describing the reasoning for the requirement
         and contacts.
         
        optional string error_message = 1;
        Returns:
        This builder for chaining.
      • setErrorMessageBytes

        public Requirement.Builder setErrorMessageBytes​(com.google.protobuf.ByteString value)
         Required: The message to report when a requirement is violated. This should
         reference a document describing the reasoning for the requirement
         and contacts.
         
        optional string error_message = 1;
        Parameters:
        value - The bytes for errorMessage to set.
        Returns:
        This builder for chaining.
      • getWhitelistList

        public com.google.protobuf.ProtocolStringList getWhitelistList()
         Optional: A list of source path prefixes that are exempt from the
         requirement.
         
        repeated string whitelist = 2;
        Specified by:
        getWhitelistList in interface RequirementOrBuilder
        Returns:
        A list containing the whitelist.
      • getWhitelistCount

        public int getWhitelistCount()
         Optional: A list of source path prefixes that are exempt from the
         requirement.
         
        repeated string whitelist = 2;
        Specified by:
        getWhitelistCount in interface RequirementOrBuilder
        Returns:
        The count of whitelist.
      • getWhitelist

        public java.lang.String getWhitelist​(int index)
         Optional: A list of source path prefixes that are exempt from the
         requirement.
         
        repeated string whitelist = 2;
        Specified by:
        getWhitelist in interface RequirementOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The whitelist at the given index.
      • getWhitelistBytes

        public com.google.protobuf.ByteString getWhitelistBytes​(int index)
         Optional: A list of source path prefixes that are exempt from the
         requirement.
         
        repeated string whitelist = 2;
        Specified by:
        getWhitelistBytes in interface RequirementOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the whitelist at the given index.
      • setWhitelist

        public Requirement.Builder setWhitelist​(int index,
                                                java.lang.String value)
         Optional: A list of source path prefixes that are exempt from the
         requirement.
         
        repeated string whitelist = 2;
        Parameters:
        index - The index to set the value at.
        value - The whitelist to set.
        Returns:
        This builder for chaining.
      • addWhitelist

        public Requirement.Builder addWhitelist​(java.lang.String value)
         Optional: A list of source path prefixes that are exempt from the
         requirement.
         
        repeated string whitelist = 2;
        Parameters:
        value - The whitelist to add.
        Returns:
        This builder for chaining.
      • addAllWhitelist

        public Requirement.Builder addAllWhitelist​(java.lang.Iterable<java.lang.String> values)
         Optional: A list of source path prefixes that are exempt from the
         requirement.
         
        repeated string whitelist = 2;
        Parameters:
        values - The whitelist to add.
        Returns:
        This builder for chaining.
      • clearWhitelist

        public Requirement.Builder clearWhitelist()
         Optional: A list of source path prefixes that are exempt from the
         requirement.
         
        repeated string whitelist = 2;
        Returns:
        This builder for chaining.
      • addWhitelistBytes

        public Requirement.Builder addWhitelistBytes​(com.google.protobuf.ByteString value)
         Optional: A list of source path prefixes that are exempt from the
         requirement.
         
        repeated string whitelist = 2;
        Parameters:
        value - The bytes of the whitelist to add.
        Returns:
        This builder for chaining.
      • getWhitelistRegexpList

        public com.google.protobuf.ProtocolStringList getWhitelistRegexpList()
         Optional: A list of source paths regexs that are exempt from the
         requirement.
         
        repeated string whitelist_regexp = 3;
        Specified by:
        getWhitelistRegexpList in interface RequirementOrBuilder
        Returns:
        A list containing the whitelistRegexp.
      • getWhitelistRegexpCount

        public int getWhitelistRegexpCount()
         Optional: A list of source paths regexs that are exempt from the
         requirement.
         
        repeated string whitelist_regexp = 3;
        Specified by:
        getWhitelistRegexpCount in interface RequirementOrBuilder
        Returns:
        The count of whitelistRegexp.
      • getWhitelistRegexp

        public java.lang.String getWhitelistRegexp​(int index)
         Optional: A list of source paths regexs that are exempt from the
         requirement.
         
        repeated string whitelist_regexp = 3;
        Specified by:
        getWhitelistRegexp in interface RequirementOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The whitelistRegexp at the given index.
      • getWhitelistRegexpBytes

        public com.google.protobuf.ByteString getWhitelistRegexpBytes​(int index)
         Optional: A list of source paths regexs that are exempt from the
         requirement.
         
        repeated string whitelist_regexp = 3;
        Specified by:
        getWhitelistRegexpBytes in interface RequirementOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the whitelistRegexp at the given index.
      • setWhitelistRegexp

        public Requirement.Builder setWhitelistRegexp​(int index,
                                                      java.lang.String value)
         Optional: A list of source paths regexs that are exempt from the
         requirement.
         
        repeated string whitelist_regexp = 3;
        Parameters:
        index - The index to set the value at.
        value - The whitelistRegexp to set.
        Returns:
        This builder for chaining.
      • addWhitelistRegexp

        public Requirement.Builder addWhitelistRegexp​(java.lang.String value)
         Optional: A list of source paths regexs that are exempt from the
         requirement.
         
        repeated string whitelist_regexp = 3;
        Parameters:
        value - The whitelistRegexp to add.
        Returns:
        This builder for chaining.
      • addAllWhitelistRegexp

        public Requirement.Builder addAllWhitelistRegexp​(java.lang.Iterable<java.lang.String> values)
         Optional: A list of source paths regexs that are exempt from the
         requirement.
         
        repeated string whitelist_regexp = 3;
        Parameters:
        values - The whitelistRegexp to add.
        Returns:
        This builder for chaining.
      • clearWhitelistRegexp

        public Requirement.Builder clearWhitelistRegexp()
         Optional: A list of source paths regexs that are exempt from the
         requirement.
         
        repeated string whitelist_regexp = 3;
        Returns:
        This builder for chaining.
      • addWhitelistRegexpBytes

        public Requirement.Builder addWhitelistRegexpBytes​(com.google.protobuf.ByteString value)
         Optional: A list of source paths regexs that are exempt from the
         requirement.
         
        repeated string whitelist_regexp = 3;
        Parameters:
        value - The bytes of the whitelistRegexp to add.
        Returns:
        This builder for chaining.
      • clearWhitelistEntry

        public Requirement.Builder clearWhitelistEntry()
        repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
      • removeWhitelistEntry

        public Requirement.Builder removeWhitelistEntry​(int index)
        repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
      • getWhitelistEntryBuilder

        public Requirement.WhitelistEntry.Builder getWhitelistEntryBuilder​(int index)
        repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
      • addWhitelistEntryBuilder

        public Requirement.WhitelistEntry.Builder addWhitelistEntryBuilder​(int index)
        repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
      • getWhitelistEntryBuilderList

        public java.util.List<Requirement.WhitelistEntry.Builder> getWhitelistEntryBuilderList()
        repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
      • getOnlyApplyToList

        public com.google.protobuf.ProtocolStringList getOnlyApplyToList()
         Optional: A list of source paths that will be checked for the requirement
         (the opposite of whitelist).
         
        repeated string only_apply_to = 4;
        Specified by:
        getOnlyApplyToList in interface RequirementOrBuilder
        Returns:
        A list containing the onlyApplyTo.
      • getOnlyApplyToCount

        public int getOnlyApplyToCount()
         Optional: A list of source paths that will be checked for the requirement
         (the opposite of whitelist).
         
        repeated string only_apply_to = 4;
        Specified by:
        getOnlyApplyToCount in interface RequirementOrBuilder
        Returns:
        The count of onlyApplyTo.
      • getOnlyApplyTo

        public java.lang.String getOnlyApplyTo​(int index)
         Optional: A list of source paths that will be checked for the requirement
         (the opposite of whitelist).
         
        repeated string only_apply_to = 4;
        Specified by:
        getOnlyApplyTo in interface RequirementOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The onlyApplyTo at the given index.
      • getOnlyApplyToBytes

        public com.google.protobuf.ByteString getOnlyApplyToBytes​(int index)
         Optional: A list of source paths that will be checked for the requirement
         (the opposite of whitelist).
         
        repeated string only_apply_to = 4;
        Specified by:
        getOnlyApplyToBytes in interface RequirementOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the onlyApplyTo at the given index.
      • setOnlyApplyTo

        public Requirement.Builder setOnlyApplyTo​(int index,
                                                  java.lang.String value)
         Optional: A list of source paths that will be checked for the requirement
         (the opposite of whitelist).
         
        repeated string only_apply_to = 4;
        Parameters:
        index - The index to set the value at.
        value - The onlyApplyTo to set.
        Returns:
        This builder for chaining.
      • addOnlyApplyTo

        public Requirement.Builder addOnlyApplyTo​(java.lang.String value)
         Optional: A list of source paths that will be checked for the requirement
         (the opposite of whitelist).
         
        repeated string only_apply_to = 4;
        Parameters:
        value - The onlyApplyTo to add.
        Returns:
        This builder for chaining.
      • addAllOnlyApplyTo

        public Requirement.Builder addAllOnlyApplyTo​(java.lang.Iterable<java.lang.String> values)
         Optional: A list of source paths that will be checked for the requirement
         (the opposite of whitelist).
         
        repeated string only_apply_to = 4;
        Parameters:
        values - The onlyApplyTo to add.
        Returns:
        This builder for chaining.
      • clearOnlyApplyTo

        public Requirement.Builder clearOnlyApplyTo()
         Optional: A list of source paths that will be checked for the requirement
         (the opposite of whitelist).
         
        repeated string only_apply_to = 4;
        Returns:
        This builder for chaining.
      • addOnlyApplyToBytes

        public Requirement.Builder addOnlyApplyToBytes​(com.google.protobuf.ByteString value)
         Optional: A list of source paths that will be checked for the requirement
         (the opposite of whitelist).
         
        repeated string only_apply_to = 4;
        Parameters:
        value - The bytes of the onlyApplyTo to add.
        Returns:
        This builder for chaining.
      • getOnlyApplyToRegexpList

        public com.google.protobuf.ProtocolStringList getOnlyApplyToRegexpList()
         Optional: A list of source path regexps that will be checked for
         the requirement (the opposite of whitelist_regexp).
         
        repeated string only_apply_to_regexp = 5;
        Specified by:
        getOnlyApplyToRegexpList in interface RequirementOrBuilder
        Returns:
        A list containing the onlyApplyToRegexp.
      • getOnlyApplyToRegexpCount

        public int getOnlyApplyToRegexpCount()
         Optional: A list of source path regexps that will be checked for
         the requirement (the opposite of whitelist_regexp).
         
        repeated string only_apply_to_regexp = 5;
        Specified by:
        getOnlyApplyToRegexpCount in interface RequirementOrBuilder
        Returns:
        The count of onlyApplyToRegexp.
      • getOnlyApplyToRegexp

        public java.lang.String getOnlyApplyToRegexp​(int index)
         Optional: A list of source path regexps that will be checked for
         the requirement (the opposite of whitelist_regexp).
         
        repeated string only_apply_to_regexp = 5;
        Specified by:
        getOnlyApplyToRegexp in interface RequirementOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The onlyApplyToRegexp at the given index.
      • getOnlyApplyToRegexpBytes

        public com.google.protobuf.ByteString getOnlyApplyToRegexpBytes​(int index)
         Optional: A list of source path regexps that will be checked for
         the requirement (the opposite of whitelist_regexp).
         
        repeated string only_apply_to_regexp = 5;
        Specified by:
        getOnlyApplyToRegexpBytes in interface RequirementOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the onlyApplyToRegexp at the given index.
      • setOnlyApplyToRegexp

        public Requirement.Builder setOnlyApplyToRegexp​(int index,
                                                        java.lang.String value)
         Optional: A list of source path regexps that will be checked for
         the requirement (the opposite of whitelist_regexp).
         
        repeated string only_apply_to_regexp = 5;
        Parameters:
        index - The index to set the value at.
        value - The onlyApplyToRegexp to set.
        Returns:
        This builder for chaining.
      • addOnlyApplyToRegexp

        public Requirement.Builder addOnlyApplyToRegexp​(java.lang.String value)
         Optional: A list of source path regexps that will be checked for
         the requirement (the opposite of whitelist_regexp).
         
        repeated string only_apply_to_regexp = 5;
        Parameters:
        value - The onlyApplyToRegexp to add.
        Returns:
        This builder for chaining.
      • addAllOnlyApplyToRegexp

        public Requirement.Builder addAllOnlyApplyToRegexp​(java.lang.Iterable<java.lang.String> values)
         Optional: A list of source path regexps that will be checked for
         the requirement (the opposite of whitelist_regexp).
         
        repeated string only_apply_to_regexp = 5;
        Parameters:
        values - The onlyApplyToRegexp to add.
        Returns:
        This builder for chaining.
      • clearOnlyApplyToRegexp

        public Requirement.Builder clearOnlyApplyToRegexp()
         Optional: A list of source path regexps that will be checked for
         the requirement (the opposite of whitelist_regexp).
         
        repeated string only_apply_to_regexp = 5;
        Returns:
        This builder for chaining.
      • addOnlyApplyToRegexpBytes

        public Requirement.Builder addOnlyApplyToRegexpBytes​(com.google.protobuf.ByteString value)
         Optional: A list of source path regexps that will be checked for
         the requirement (the opposite of whitelist_regexp).
         
        repeated string only_apply_to_regexp = 5;
        Parameters:
        value - The bytes of the onlyApplyToRegexp to add.
        Returns:
        This builder for chaining.
      • hasType

        public boolean hasType()
         Required: The type of requirement.
         
        optional .jscomp.Requirement.Type type = 6;
        Specified by:
        hasType in interface RequirementOrBuilder
        Returns:
        Whether the type field is set.
      • setType

        public Requirement.Builder setType​(Requirement.Type value)
         Required: The type of requirement.
         
        optional .jscomp.Requirement.Type type = 6;
        Parameters:
        value - The type to set.
        Returns:
        This builder for chaining.
      • clearType

        public Requirement.Builder clearType()
         Required: The type of requirement.
         
        optional .jscomp.Requirement.Type type = 6;
        Returns:
        This builder for chaining.
      • getValueList

        public com.google.protobuf.ProtocolStringList getValueList()
         The value banned, optional for "custom" requirements.  Some custom
         requirements repurpose this for different purposes, such as for whitelists
         of types.
         
        repeated string value = 7;
        Specified by:
        getValueList in interface RequirementOrBuilder
        Returns:
        A list containing the value.
      • getValueCount

        public int getValueCount()
         The value banned, optional for "custom" requirements.  Some custom
         requirements repurpose this for different purposes, such as for whitelists
         of types.
         
        repeated string value = 7;
        Specified by:
        getValueCount in interface RequirementOrBuilder
        Returns:
        The count of value.
      • getValue

        public java.lang.String getValue​(int index)
         The value banned, optional for "custom" requirements.  Some custom
         requirements repurpose this for different purposes, such as for whitelists
         of types.
         
        repeated string value = 7;
        Specified by:
        getValue in interface RequirementOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The value at the given index.
      • getValueBytes

        public com.google.protobuf.ByteString getValueBytes​(int index)
         The value banned, optional for "custom" requirements.  Some custom
         requirements repurpose this for different purposes, such as for whitelists
         of types.
         
        repeated string value = 7;
        Specified by:
        getValueBytes in interface RequirementOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the value at the given index.
      • setValue

        public Requirement.Builder setValue​(int index,
                                            java.lang.String value)
         The value banned, optional for "custom" requirements.  Some custom
         requirements repurpose this for different purposes, such as for whitelists
         of types.
         
        repeated string value = 7;
        Parameters:
        index - The index to set the value at.
        value - The value to set.
        Returns:
        This builder for chaining.
      • addValue

        public Requirement.Builder addValue​(java.lang.String value)
         The value banned, optional for "custom" requirements.  Some custom
         requirements repurpose this for different purposes, such as for whitelists
         of types.
         
        repeated string value = 7;
        Parameters:
        value - The value to add.
        Returns:
        This builder for chaining.
      • addAllValue

        public Requirement.Builder addAllValue​(java.lang.Iterable<java.lang.String> values)
         The value banned, optional for "custom" requirements.  Some custom
         requirements repurpose this for different purposes, such as for whitelists
         of types.
         
        repeated string value = 7;
        Parameters:
        values - The value to add.
        Returns:
        This builder for chaining.
      • clearValue

        public Requirement.Builder clearValue()
         The value banned, optional for "custom" requirements.  Some custom
         requirements repurpose this for different purposes, such as for whitelists
         of types.
         
        repeated string value = 7;
        Returns:
        This builder for chaining.
      • addValueBytes

        public Requirement.Builder addValueBytes​(com.google.protobuf.ByteString value)
         The value banned, optional for "custom" requirements.  Some custom
         requirements repurpose this for different purposes, such as for whitelists
         of types.
         
        repeated string value = 7;
        Parameters:
        value - The bytes of the value to add.
        Returns:
        This builder for chaining.
      • hasAllowExtendingValue

        public boolean hasAllowExtendingValue()
         Whether to allow subconfigs to extend the "value" field.  This does not
         make sense for banning values, but when the value is used as a whitelist,
         it becomes important.
         
        optional bool allow_extending_value = 15;
        Specified by:
        hasAllowExtendingValue in interface RequirementOrBuilder
        Returns:
        Whether the allowExtendingValue field is set.
      • getAllowExtendingValue

        public boolean getAllowExtendingValue()
         Whether to allow subconfigs to extend the "value" field.  This does not
         make sense for banning values, but when the value is used as a whitelist,
         it becomes important.
         
        optional bool allow_extending_value = 15;
        Specified by:
        getAllowExtendingValue in interface RequirementOrBuilder
        Returns:
        The allowExtendingValue.
      • setAllowExtendingValue

        public Requirement.Builder setAllowExtendingValue​(boolean value)
         Whether to allow subconfigs to extend the "value" field.  This does not
         make sense for banning values, but when the value is used as a whitelist,
         it becomes important.
         
        optional bool allow_extending_value = 15;
        Parameters:
        value - The allowExtendingValue to set.
        Returns:
        This builder for chaining.
      • clearAllowExtendingValue

        public Requirement.Builder clearAllowExtendingValue()
         Whether to allow subconfigs to extend the "value" field.  This does not
         make sense for banning values, but when the value is used as a whitelist,
         it becomes important.
         
        optional bool allow_extending_value = 15;
        Returns:
        This builder for chaining.
      • hasTypeMatchingStrategy

        public boolean hasTypeMatchingStrategy()
         Strategy to use for matching types in the value parameter (e.g. for
         BANNED_CODE_PATTERN checks).
         
        optional .jscomp.Requirement.TypeMatchingStrategy type_matching_strategy = 13 [default = LOOSE];
        Specified by:
        hasTypeMatchingStrategy in interface RequirementOrBuilder
        Returns:
        Whether the typeMatchingStrategy field is set.
      • getTypeMatchingStrategy

        public Requirement.TypeMatchingStrategy getTypeMatchingStrategy()
         Strategy to use for matching types in the value parameter (e.g. for
         BANNED_CODE_PATTERN checks).
         
        optional .jscomp.Requirement.TypeMatchingStrategy type_matching_strategy = 13 [default = LOOSE];
        Specified by:
        getTypeMatchingStrategy in interface RequirementOrBuilder
        Returns:
        The typeMatchingStrategy.
      • setTypeMatchingStrategy

        public Requirement.Builder setTypeMatchingStrategy​(Requirement.TypeMatchingStrategy value)
         Strategy to use for matching types in the value parameter (e.g. for
         BANNED_CODE_PATTERN checks).
         
        optional .jscomp.Requirement.TypeMatchingStrategy type_matching_strategy = 13 [default = LOOSE];
        Parameters:
        value - The typeMatchingStrategy to set.
        Returns:
        This builder for chaining.
      • clearTypeMatchingStrategy

        public Requirement.Builder clearTypeMatchingStrategy()
         Strategy to use for matching types in the value parameter (e.g. for
         BANNED_CODE_PATTERN checks).
         
        optional .jscomp.Requirement.TypeMatchingStrategy type_matching_strategy = 13 [default = LOOSE];
        Returns:
        This builder for chaining.
      • hasJavaClass

        public boolean hasJavaClass()
         For "custom" requirements, the Java class used to enforce the requirement.
         Ignored otherwise.
         
        optional string java_class = 8;
        Specified by:
        hasJavaClass in interface RequirementOrBuilder
        Returns:
        Whether the javaClass field is set.
      • getJavaClass

        public java.lang.String getJavaClass()
         For "custom" requirements, the Java class used to enforce the requirement.
         Ignored otherwise.
         
        optional string java_class = 8;
        Specified by:
        getJavaClass in interface RequirementOrBuilder
        Returns:
        The javaClass.
      • getJavaClassBytes

        public com.google.protobuf.ByteString getJavaClassBytes()
         For "custom" requirements, the Java class used to enforce the requirement.
         Ignored otherwise.
         
        optional string java_class = 8;
        Specified by:
        getJavaClassBytes in interface RequirementOrBuilder
        Returns:
        The bytes for javaClass.
      • setJavaClass

        public Requirement.Builder setJavaClass​(java.lang.String value)
         For "custom" requirements, the Java class used to enforce the requirement.
         Ignored otherwise.
         
        optional string java_class = 8;
        Parameters:
        value - The javaClass to set.
        Returns:
        This builder for chaining.
      • clearJavaClass

        public Requirement.Builder clearJavaClass()
         For "custom" requirements, the Java class used to enforce the requirement.
         Ignored otherwise.
         
        optional string java_class = 8;
        Returns:
        This builder for chaining.
      • setJavaClassBytes

        public Requirement.Builder setJavaClassBytes​(com.google.protobuf.ByteString value)
         For "custom" requirements, the Java class used to enforce the requirement.
         Ignored otherwise.
         
        optional string java_class = 8;
        Parameters:
        value - The bytes for javaClass to set.
        Returns:
        This builder for chaining.
      • hasRuleId

        public boolean hasRuleId()
         Gives the rule an unique ID that can be used for extending in other rules
         through 'extends'. An example of ID is 'closure:innerHtml'.
         
        optional string rule_id = 9;
        Specified by:
        hasRuleId in interface RequirementOrBuilder
        Returns:
        Whether the ruleId field is set.
      • getRuleId

        public java.lang.String getRuleId()
         Gives the rule an unique ID that can be used for extending in other rules
         through 'extends'. An example of ID is 'closure:innerHtml'.
         
        optional string rule_id = 9;
        Specified by:
        getRuleId in interface RequirementOrBuilder
        Returns:
        The ruleId.
      • getRuleIdBytes

        public com.google.protobuf.ByteString getRuleIdBytes()
         Gives the rule an unique ID that can be used for extending in other rules
         through 'extends'. An example of ID is 'closure:innerHtml'.
         
        optional string rule_id = 9;
        Specified by:
        getRuleIdBytes in interface RequirementOrBuilder
        Returns:
        The bytes for ruleId.
      • setRuleId

        public Requirement.Builder setRuleId​(java.lang.String value)
         Gives the rule an unique ID that can be used for extending in other rules
         through 'extends'. An example of ID is 'closure:innerHtml'.
         
        optional string rule_id = 9;
        Parameters:
        value - The ruleId to set.
        Returns:
        This builder for chaining.
      • clearRuleId

        public Requirement.Builder clearRuleId()
         Gives the rule an unique ID that can be used for extending in other rules
         through 'extends'. An example of ID is 'closure:innerHtml'.
         
        optional string rule_id = 9;
        Returns:
        This builder for chaining.
      • setRuleIdBytes

        public Requirement.Builder setRuleIdBytes​(com.google.protobuf.ByteString value)
         Gives the rule an unique ID that can be used for extending in other rules
         through 'extends'. An example of ID is 'closure:innerHtml'.
         
        optional string rule_id = 9;
        Parameters:
        value - The bytes for ruleId to set.
        Returns:
        This builder for chaining.
      • hasExtends

        public boolean hasExtends()
         Allows extending whitelists of rules with the specified rule_id. If this
         field is specified then all fields except whitelist, whitelist_regexp,
         only_apply_to and only_apply_to_regexp are ignored.
         
        optional string extends = 10;
        Specified by:
        hasExtends in interface RequirementOrBuilder
        Returns:
        Whether the extends field is set.
      • getExtends

        public java.lang.String getExtends()
         Allows extending whitelists of rules with the specified rule_id. If this
         field is specified then all fields except whitelist, whitelist_regexp,
         only_apply_to and only_apply_to_regexp are ignored.
         
        optional string extends = 10;
        Specified by:
        getExtends in interface RequirementOrBuilder
        Returns:
        The extends.
      • getExtendsBytes

        public com.google.protobuf.ByteString getExtendsBytes()
         Allows extending whitelists of rules with the specified rule_id. If this
         field is specified then all fields except whitelist, whitelist_regexp,
         only_apply_to and only_apply_to_regexp are ignored.
         
        optional string extends = 10;
        Specified by:
        getExtendsBytes in interface RequirementOrBuilder
        Returns:
        The bytes for extends.
      • setExtends

        public Requirement.Builder setExtends​(java.lang.String value)
         Allows extending whitelists of rules with the specified rule_id. If this
         field is specified then all fields except whitelist, whitelist_regexp,
         only_apply_to and only_apply_to_regexp are ignored.
         
        optional string extends = 10;
        Parameters:
        value - The extends to set.
        Returns:
        This builder for chaining.
      • clearExtends

        public Requirement.Builder clearExtends()
         Allows extending whitelists of rules with the specified rule_id. If this
         field is specified then all fields except whitelist, whitelist_regexp,
         only_apply_to and only_apply_to_regexp are ignored.
         
        optional string extends = 10;
        Returns:
        This builder for chaining.
      • setExtendsBytes

        public Requirement.Builder setExtendsBytes​(com.google.protobuf.ByteString value)
         Allows extending whitelists of rules with the specified rule_id. If this
         field is specified then all fields except whitelist, whitelist_regexp,
         only_apply_to and only_apply_to_regexp are ignored.
         
        optional string extends = 10;
        Parameters:
        value - The bytes for extends to set.
        Returns:
        This builder for chaining.
      • hasReportLooseTypeViolations

        public boolean hasReportLooseTypeViolations()
         Whether to report possible violations when type information is not exact.
         Normally, violations on parent types are reported as possible violations.
         This field allows to ignore them and report only violations on exact types.
         This changes the balance between the false positives and the false
         negatives. With the default value, there might be lots of false positives
         (possible violations) but there shouldn't be any false negatives. Without
         reporting the loose type violations, there will be less false positives but
         there can also be false negatives (an actual violation that is not
         reported).
         
        optional bool report_loose_type_violations = 11 [default = true];
        Specified by:
        hasReportLooseTypeViolations in interface RequirementOrBuilder
        Returns:
        Whether the reportLooseTypeViolations field is set.
      • getReportLooseTypeViolations

        public boolean getReportLooseTypeViolations()
         Whether to report possible violations when type information is not exact.
         Normally, violations on parent types are reported as possible violations.
         This field allows to ignore them and report only violations on exact types.
         This changes the balance between the false positives and the false
         negatives. With the default value, there might be lots of false positives
         (possible violations) but there shouldn't be any false negatives. Without
         reporting the loose type violations, there will be less false positives but
         there can also be false negatives (an actual violation that is not
         reported).
         
        optional bool report_loose_type_violations = 11 [default = true];
        Specified by:
        getReportLooseTypeViolations in interface RequirementOrBuilder
        Returns:
        The reportLooseTypeViolations.
      • setReportLooseTypeViolations

        public Requirement.Builder setReportLooseTypeViolations​(boolean value)
         Whether to report possible violations when type information is not exact.
         Normally, violations on parent types are reported as possible violations.
         This field allows to ignore them and report only violations on exact types.
         This changes the balance between the false positives and the false
         negatives. With the default value, there might be lots of false positives
         (possible violations) but there shouldn't be any false negatives. Without
         reporting the loose type violations, there will be less false positives but
         there can also be false negatives (an actual violation that is not
         reported).
         
        optional bool report_loose_type_violations = 11 [default = true];
        Parameters:
        value - The reportLooseTypeViolations to set.
        Returns:
        This builder for chaining.
      • clearReportLooseTypeViolations

        public Requirement.Builder clearReportLooseTypeViolations()
         Whether to report possible violations when type information is not exact.
         Normally, violations on parent types are reported as possible violations.
         This field allows to ignore them and report only violations on exact types.
         This changes the balance between the false positives and the false
         negatives. With the default value, there might be lots of false positives
         (possible violations) but there shouldn't be any false negatives. Without
         reporting the loose type violations, there will be less false positives but
         there can also be false negatives (an actual violation that is not
         reported).
         
        optional bool report_loose_type_violations = 11 [default = true];
        Returns:
        This builder for chaining.
      • hasSeverity

        public boolean hasSeverity()
        optional .jscomp.Requirement.Severity severity = 12 [default = WARNING];
        Specified by:
        hasSeverity in interface RequirementOrBuilder
        Returns:
        Whether the severity field is set.
      • setSeverity

        public Requirement.Builder setSeverity​(Requirement.Severity value)
        optional .jscomp.Requirement.Severity severity = 12 [default = WARNING];
        Parameters:
        value - The severity to set.
        Returns:
        This builder for chaining.
      • clearSeverity

        public Requirement.Builder clearSeverity()
        optional .jscomp.Requirement.Severity severity = 12 [default = WARNING];
        Returns:
        This builder for chaining.
      • getConfigFileList

        public com.google.protobuf.ProtocolStringList getConfigFileList()
         The file(s) that defined this requirement.  If the requirement is extended,
         then all extending files are included as well.  These will be printed in
         the error message.
         
        repeated string config_file = 16;
        Specified by:
        getConfigFileList in interface RequirementOrBuilder
        Returns:
        A list containing the configFile.
      • getConfigFileCount

        public int getConfigFileCount()
         The file(s) that defined this requirement.  If the requirement is extended,
         then all extending files are included as well.  These will be printed in
         the error message.
         
        repeated string config_file = 16;
        Specified by:
        getConfigFileCount in interface RequirementOrBuilder
        Returns:
        The count of configFile.
      • getConfigFile

        public java.lang.String getConfigFile​(int index)
         The file(s) that defined this requirement.  If the requirement is extended,
         then all extending files are included as well.  These will be printed in
         the error message.
         
        repeated string config_file = 16;
        Specified by:
        getConfigFile in interface RequirementOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The configFile at the given index.
      • getConfigFileBytes

        public com.google.protobuf.ByteString getConfigFileBytes​(int index)
         The file(s) that defined this requirement.  If the requirement is extended,
         then all extending files are included as well.  These will be printed in
         the error message.
         
        repeated string config_file = 16;
        Specified by:
        getConfigFileBytes in interface RequirementOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the configFile at the given index.
      • setConfigFile

        public Requirement.Builder setConfigFile​(int index,
                                                 java.lang.String value)
         The file(s) that defined this requirement.  If the requirement is extended,
         then all extending files are included as well.  These will be printed in
         the error message.
         
        repeated string config_file = 16;
        Parameters:
        index - The index to set the value at.
        value - The configFile to set.
        Returns:
        This builder for chaining.
      • addConfigFile

        public Requirement.Builder addConfigFile​(java.lang.String value)
         The file(s) that defined this requirement.  If the requirement is extended,
         then all extending files are included as well.  These will be printed in
         the error message.
         
        repeated string config_file = 16;
        Parameters:
        value - The configFile to add.
        Returns:
        This builder for chaining.
      • addAllConfigFile

        public Requirement.Builder addAllConfigFile​(java.lang.Iterable<java.lang.String> values)
         The file(s) that defined this requirement.  If the requirement is extended,
         then all extending files are included as well.  These will be printed in
         the error message.
         
        repeated string config_file = 16;
        Parameters:
        values - The configFile to add.
        Returns:
        This builder for chaining.
      • clearConfigFile

        public Requirement.Builder clearConfigFile()
         The file(s) that defined this requirement.  If the requirement is extended,
         then all extending files are included as well.  These will be printed in
         the error message.
         
        repeated string config_file = 16;
        Returns:
        This builder for chaining.
      • addConfigFileBytes

        public Requirement.Builder addConfigFileBytes​(com.google.protobuf.ByteString value)
         The file(s) that defined this requirement.  If the requirement is extended,
         then all extending files are included as well.  These will be printed in
         the error message.
         
        repeated string config_file = 16;
        Parameters:
        value - The bytes of the configFile to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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