Class Requirement.WhitelistEntry.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<Requirement.WhitelistEntry.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.WhitelistEntry.Builder>
      • getDefaultInstanceForType

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

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

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

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

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

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

        public Requirement.WhitelistEntry.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.WhitelistEntry.Builder>
        Throws:
        java.io.IOException
      • hasReason

        public boolean hasReason()
        optional .jscomp.Requirement.WhitelistEntry.Reason reason = 1;
        Specified by:
        hasReason in interface Requirement.WhitelistEntryOrBuilder
        Returns:
        Whether the reason field is set.
      • clearReason

        public Requirement.WhitelistEntry.Builder clearReason()
        optional .jscomp.Requirement.WhitelistEntry.Reason reason = 1;
        Returns:
        This builder for chaining.
      • getPrefixList

        public com.google.protobuf.ProtocolStringList getPrefixList()
         A list of source path prefixes.
         
        repeated string prefix = 2;
        Specified by:
        getPrefixList in interface Requirement.WhitelistEntryOrBuilder
        Returns:
        A list containing the prefix.
      • getPrefix

        public java.lang.String getPrefix​(int index)
         A list of source path prefixes.
         
        repeated string prefix = 2;
        Specified by:
        getPrefix in interface Requirement.WhitelistEntryOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The prefix at the given index.
      • getPrefixBytes

        public com.google.protobuf.ByteString getPrefixBytes​(int index)
         A list of source path prefixes.
         
        repeated string prefix = 2;
        Specified by:
        getPrefixBytes in interface Requirement.WhitelistEntryOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the prefix at the given index.
      • setPrefix

        public Requirement.WhitelistEntry.Builder setPrefix​(int index,
                                                            java.lang.String value)
         A list of source path prefixes.
         
        repeated string prefix = 2;
        Parameters:
        index - The index to set the value at.
        value - The prefix to set.
        Returns:
        This builder for chaining.
      • addPrefix

        public Requirement.WhitelistEntry.Builder addPrefix​(java.lang.String value)
         A list of source path prefixes.
         
        repeated string prefix = 2;
        Parameters:
        value - The prefix to add.
        Returns:
        This builder for chaining.
      • addAllPrefix

        public Requirement.WhitelistEntry.Builder addAllPrefix​(java.lang.Iterable<java.lang.String> values)
         A list of source path prefixes.
         
        repeated string prefix = 2;
        Parameters:
        values - The prefix to add.
        Returns:
        This builder for chaining.
      • addPrefixBytes

        public Requirement.WhitelistEntry.Builder addPrefixBytes​(com.google.protobuf.ByteString value)
         A list of source path prefixes.
         
        repeated string prefix = 2;
        Parameters:
        value - The bytes of the prefix to add.
        Returns:
        This builder for chaining.
      • getRegexpList

        public com.google.protobuf.ProtocolStringList getRegexpList()
         A list of regexes matching sources to be ignored
         
        repeated string regexp = 3;
        Specified by:
        getRegexpList in interface Requirement.WhitelistEntryOrBuilder
        Returns:
        A list containing the regexp.
      • getRegexp

        public java.lang.String getRegexp​(int index)
         A list of regexes matching sources to be ignored
         
        repeated string regexp = 3;
        Specified by:
        getRegexp in interface Requirement.WhitelistEntryOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The regexp at the given index.
      • getRegexpBytes

        public com.google.protobuf.ByteString getRegexpBytes​(int index)
         A list of regexes matching sources to be ignored
         
        repeated string regexp = 3;
        Specified by:
        getRegexpBytes in interface Requirement.WhitelistEntryOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the regexp at the given index.
      • setRegexp

        public Requirement.WhitelistEntry.Builder setRegexp​(int index,
                                                            java.lang.String value)
         A list of regexes matching sources to be ignored
         
        repeated string regexp = 3;
        Parameters:
        index - The index to set the value at.
        value - The regexp to set.
        Returns:
        This builder for chaining.
      • addRegexp

        public Requirement.WhitelistEntry.Builder addRegexp​(java.lang.String value)
         A list of regexes matching sources to be ignored
         
        repeated string regexp = 3;
        Parameters:
        value - The regexp to add.
        Returns:
        This builder for chaining.
      • addAllRegexp

        public Requirement.WhitelistEntry.Builder addAllRegexp​(java.lang.Iterable<java.lang.String> values)
         A list of regexes matching sources to be ignored
         
        repeated string regexp = 3;
        Parameters:
        values - The regexp to add.
        Returns:
        This builder for chaining.
      • clearRegexp

        public Requirement.WhitelistEntry.Builder clearRegexp()
         A list of regexes matching sources to be ignored
         
        repeated string regexp = 3;
        Returns:
        This builder for chaining.
      • addRegexpBytes

        public Requirement.WhitelistEntry.Builder addRegexpBytes​(com.google.protobuf.ByteString value)
         A list of regexes matching sources to be ignored
         
        repeated string regexp = 3;
        Parameters:
        value - The bytes of the regexp to add.
        Returns:
        This builder for chaining.
      • setExplanation

        public Requirement.WhitelistEntry.Builder setExplanation​(java.lang.String value)
         Short explanation.
         
        optional string explanation = 4;
        Parameters:
        value - The explanation to set.
        Returns:
        This builder for chaining.
      • setExplanationBytes

        public Requirement.WhitelistEntry.Builder setExplanationBytes​(com.google.protobuf.ByteString value)
         Short explanation.
         
        optional string explanation = 4;
        Parameters:
        value - The bytes for explanation to set.
        Returns:
        This builder for chaining.
      • getComment

        public java.lang.String getComment​(int index)
        repeated string comment = 5;
        Specified by:
        getComment in interface Requirement.WhitelistEntryOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The comment at the given index.
      • getCommentBytes

        public com.google.protobuf.ByteString getCommentBytes​(int index)
        repeated string comment = 5;
        Specified by:
        getCommentBytes in interface Requirement.WhitelistEntryOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the comment at the given index.
      • setComment

        public Requirement.WhitelistEntry.Builder setComment​(int index,
                                                             java.lang.String value)
        repeated string comment = 5;
        Parameters:
        index - The index to set the value at.
        value - The comment to set.
        Returns:
        This builder for chaining.
      • addComment

        public Requirement.WhitelistEntry.Builder addComment​(java.lang.String value)
        repeated string comment = 5;
        Parameters:
        value - The comment to add.
        Returns:
        This builder for chaining.
      • addAllComment

        public Requirement.WhitelistEntry.Builder addAllComment​(java.lang.Iterable<java.lang.String> values)
        repeated string comment = 5;
        Parameters:
        values - The comment to add.
        Returns:
        This builder for chaining.
      • addCommentBytes

        public Requirement.WhitelistEntry.Builder addCommentBytes​(com.google.protobuf.ByteString value)
        repeated string comment = 5;
        Parameters:
        value - The bytes of the comment to add.
        Returns:
        This builder for chaining.
      • hasAutomaticallyPrune

        public boolean hasAutomaticallyPrune()
         If you build automation to remove unused entries, you can use this flag
         to enable/disable it.
         
        optional bool automatically_prune = 6;
        Specified by:
        hasAutomaticallyPrune in interface Requirement.WhitelistEntryOrBuilder
        Returns:
        Whether the automaticallyPrune field is set.
      • getAutomaticallyPrune

        public boolean getAutomaticallyPrune()
         If you build automation to remove unused entries, you can use this flag
         to enable/disable it.
         
        optional bool automatically_prune = 6;
        Specified by:
        getAutomaticallyPrune in interface Requirement.WhitelistEntryOrBuilder
        Returns:
        The automaticallyPrune.
      • setAutomaticallyPrune

        public Requirement.WhitelistEntry.Builder setAutomaticallyPrune​(boolean value)
         If you build automation to remove unused entries, you can use this flag
         to enable/disable it.
         
        optional bool automatically_prune = 6;
        Parameters:
        value - The automaticallyPrune to set.
        Returns:
        This builder for chaining.
      • clearAutomaticallyPrune

        public Requirement.WhitelistEntry.Builder clearAutomaticallyPrune()
         If you build automation to remove unused entries, you can use this flag
         to enable/disable it.
         
        optional bool automatically_prune = 6;
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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