public static final class Requirement.Builder extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<Requirement,Requirement.Builder> implements RequirementOrBuilder
A specification of code requirements NEXT ID: 15Protobuf type
jscomp.Requirement
Modifier and Type | Method and Description |
---|---|
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).
|
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).
|
Requirement.Builder |
addAllValue(java.lang.Iterable<java.lang.String> values)
The value banned, optional for "custom" requirements.
|
Requirement.Builder |
addAllWhitelist(java.lang.Iterable<java.lang.String> values)
Optional: A list of source path prefixes that are exempt from the
requirement.
|
Requirement.Builder |
addAllWhitelistEntry(java.lang.Iterable<? extends Requirement.WhitelistEntry> values)
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14; |
Requirement.Builder |
addAllWhitelistRegexp(java.lang.Iterable<java.lang.String> values)
Optional: A list of source paths regexs that are exempt from the
requirement.
|
<Type> Requirement.Builder |
addExtension(com.google.protobuf.GeneratedMessage.GeneratedExtension<Requirement,java.util.List<Type>> extension,
Type value) |
Requirement.Builder |
addOnlyApplyTo(java.lang.String value)
Optional: A list of source paths that will be checked for the requirement
(the opposite of whitelist).
|
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).
|
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).
|
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).
|
Requirement.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Requirement.Builder |
addValue(java.lang.String value)
The value banned, optional for "custom" requirements.
|
Requirement.Builder |
addValueBytes(com.google.protobuf.ByteString value)
The value banned, optional for "custom" requirements.
|
Requirement.Builder |
addWhitelist(java.lang.String value)
Optional: A list of source path prefixes that are exempt from the
requirement.
|
Requirement.Builder |
addWhitelistBytes(com.google.protobuf.ByteString value)
Optional: A list of source path prefixes that are exempt from the
requirement.
|
Requirement.Builder |
addWhitelistEntry(int index,
Requirement.WhitelistEntry.Builder builderForValue)
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14; |
Requirement.Builder |
addWhitelistEntry(int index,
Requirement.WhitelistEntry value)
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14; |
Requirement.Builder |
addWhitelistEntry(Requirement.WhitelistEntry.Builder builderForValue)
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14; |
Requirement.Builder |
addWhitelistEntry(Requirement.WhitelistEntry value)
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14; |
Requirement.WhitelistEntry.Builder |
addWhitelistEntryBuilder()
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14; |
Requirement.WhitelistEntry.Builder |
addWhitelistEntryBuilder(int index)
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14; |
Requirement.Builder |
addWhitelistRegexp(java.lang.String value)
Optional: A list of source paths regexs that are exempt from the
requirement.
|
Requirement.Builder |
addWhitelistRegexpBytes(com.google.protobuf.ByteString value)
Optional: A list of source paths regexs that are exempt from the
requirement.
|
Requirement |
build() |
Requirement |
buildPartial() |
Requirement.Builder |
clear() |
Requirement.Builder |
clearErrorMessage()
Required: The message to report when a requirement is violated.
|
Requirement.Builder |
clearExtends()
Allows extending whitelists of rules with the specified rule_id.
|
<Type> Requirement.Builder |
clearExtension(com.google.protobuf.GeneratedMessage.GeneratedExtension<Requirement,?> extension) |
Requirement.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
Requirement.Builder |
clearJavaClass()
For "custom" requirements, the Java class used to enforce the requirement.
|
Requirement.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
Requirement.Builder |
clearOnlyApplyTo()
Optional: A list of source paths that will be checked for the requirement
(the opposite of whitelist).
|
Requirement.Builder |
clearOnlyApplyToRegexp()
Optional: A list of source path regexps that will be checked for
the requirement (the opposite of whitelist_regexp).
|
Requirement.Builder |
clearReportLooseTypeViolations()
Whether to report possible violations when type information is not exact.
|
Requirement.Builder |
clearRuleId()
Gives the rule an unique ID that can be used for extending in other rules
through 'extends'.
|
Requirement.Builder |
clearSeverity()
optional .jscomp.Requirement.Severity severity = 12 [default = WARNING]; |
Requirement.Builder |
clearType()
Required: The type of requirement.
|
Requirement.Builder |
clearTypeMatchingStrategy()
Strategy to use for matching types in the value parameter (e.g.
|
Requirement.Builder |
clearValue()
The value banned, optional for "custom" requirements.
|
Requirement.Builder |
clearWhitelist()
Optional: A list of source path prefixes that are exempt from the
requirement.
|
Requirement.Builder |
clearWhitelistEntry()
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14; |
Requirement.Builder |
clearWhitelistRegexp()
Optional: A list of source paths regexs that are exempt from the
requirement.
|
Requirement.Builder |
clone() |
Requirement |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
java.lang.String |
getErrorMessage()
Required: The message to report when a requirement is violated.
|
com.google.protobuf.ByteString |
getErrorMessageBytes()
Required: The message to report when a requirement is violated.
|
java.lang.String |
getExtends()
Allows extending whitelists of rules with the specified rule_id.
|
com.google.protobuf.ByteString |
getExtendsBytes()
Allows extending whitelists of rules with the specified rule_id.
|
java.lang.String |
getJavaClass()
For "custom" requirements, the Java class used to enforce the requirement.
|
com.google.protobuf.ByteString |
getJavaClassBytes()
For "custom" requirements, the Java class used to enforce the requirement.
|
java.lang.String |
getOnlyApplyTo(int index)
Optional: A list of source paths that will be checked for the requirement
(the opposite of whitelist).
|
com.google.protobuf.ByteString |
getOnlyApplyToBytes(int index)
Optional: A list of source paths that will be checked for the requirement
(the opposite of whitelist).
|
int |
getOnlyApplyToCount()
Optional: A list of source paths that will be checked for the requirement
(the opposite of whitelist).
|
com.google.protobuf.ProtocolStringList |
getOnlyApplyToList()
Optional: A list of source paths that will be checked for the requirement
(the opposite of whitelist).
|
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).
|
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).
|
int |
getOnlyApplyToRegexpCount()
Optional: A list of source path regexps that will be checked for
the requirement (the opposite of whitelist_regexp).
|
com.google.protobuf.ProtocolStringList |
getOnlyApplyToRegexpList()
Optional: A list of source path regexps that will be checked for
the requirement (the opposite of whitelist_regexp).
|
boolean |
getReportLooseTypeViolations()
Whether to report possible violations when type information is not exact.
|
java.lang.String |
getRuleId()
Gives the rule an unique ID that can be used for extending in other rules
through 'extends'.
|
com.google.protobuf.ByteString |
getRuleIdBytes()
Gives the rule an unique ID that can be used for extending in other rules
through 'extends'.
|
Requirement.Severity |
getSeverity()
optional .jscomp.Requirement.Severity severity = 12 [default = WARNING]; |
Requirement.Type |
getType()
Required: The type of requirement.
|
Requirement.TypeMatchingStrategy |
getTypeMatchingStrategy()
Strategy to use for matching types in the value parameter (e.g.
|
java.lang.String |
getValue(int index)
The value banned, optional for "custom" requirements.
|
com.google.protobuf.ByteString |
getValueBytes(int index)
The value banned, optional for "custom" requirements.
|
int |
getValueCount()
The value banned, optional for "custom" requirements.
|
com.google.protobuf.ProtocolStringList |
getValueList()
The value banned, optional for "custom" requirements.
|
java.lang.String |
getWhitelist(int index)
Optional: A list of source path prefixes that are exempt from the
requirement.
|
com.google.protobuf.ByteString |
getWhitelistBytes(int index)
Optional: A list of source path prefixes that are exempt from the
requirement.
|
int |
getWhitelistCount()
Optional: A list of source path prefixes that are exempt from the
requirement.
|
Requirement.WhitelistEntry |
getWhitelistEntry(int index)
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14; |
Requirement.WhitelistEntry.Builder |
getWhitelistEntryBuilder(int index)
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14; |
java.util.List<Requirement.WhitelistEntry.Builder> |
getWhitelistEntryBuilderList()
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14; |
int |
getWhitelistEntryCount()
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14; |
java.util.List<Requirement.WhitelistEntry> |
getWhitelistEntryList()
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14; |
Requirement.WhitelistEntryOrBuilder |
getWhitelistEntryOrBuilder(int index)
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14; |
java.util.List<? extends Requirement.WhitelistEntryOrBuilder> |
getWhitelistEntryOrBuilderList()
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14; |
com.google.protobuf.ProtocolStringList |
getWhitelistList()
Optional: A list of source path prefixes that are exempt from the
requirement.
|
java.lang.String |
getWhitelistRegexp(int index)
Optional: A list of source paths regexs that are exempt from the
requirement.
|
com.google.protobuf.ByteString |
getWhitelistRegexpBytes(int index)
Optional: A list of source paths regexs that are exempt from the
requirement.
|
int |
getWhitelistRegexpCount()
Optional: A list of source paths regexs that are exempt from the
requirement.
|
com.google.protobuf.ProtocolStringList |
getWhitelistRegexpList()
Optional: A list of source paths regexs that are exempt from the
requirement.
|
boolean |
hasErrorMessage()
Required: The message to report when a requirement is violated.
|
boolean |
hasExtends()
Allows extending whitelists of rules with the specified rule_id.
|
boolean |
hasJavaClass()
For "custom" requirements, the Java class used to enforce the requirement.
|
boolean |
hasReportLooseTypeViolations()
Whether to report possible violations when type information is not exact.
|
boolean |
hasRuleId()
Gives the rule an unique ID that can be used for extending in other rules
through 'extends'.
|
boolean |
hasSeverity()
optional .jscomp.Requirement.Severity severity = 12 [default = WARNING]; |
boolean |
hasType()
Required: The type of requirement.
|
boolean |
hasTypeMatchingStrategy()
Strategy to use for matching types in the value parameter (e.g.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
Requirement.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Requirement.Builder |
mergeFrom(com.google.protobuf.Message other) |
Requirement.Builder |
mergeFrom(Requirement other) |
Requirement.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Requirement.Builder |
removeWhitelistEntry(int index)
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14; |
Requirement.Builder |
setErrorMessage(java.lang.String value)
Required: The message to report when a requirement is violated.
|
Requirement.Builder |
setErrorMessageBytes(com.google.protobuf.ByteString value)
Required: The message to report when a requirement is violated.
|
Requirement.Builder |
setExtends(java.lang.String value)
Allows extending whitelists of rules with the specified rule_id.
|
Requirement.Builder |
setExtendsBytes(com.google.protobuf.ByteString value)
Allows extending whitelists of rules with the specified rule_id.
|
<Type> Requirement.Builder |
setExtension(com.google.protobuf.GeneratedMessage.GeneratedExtension<Requirement,java.util.List<Type>> extension,
int index,
Type value) |
<Type> Requirement.Builder |
setExtension(com.google.protobuf.GeneratedMessage.GeneratedExtension<Requirement,Type> extension,
Type value) |
Requirement.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) |
Requirement.Builder |
setJavaClass(java.lang.String value)
For "custom" requirements, the Java class used to enforce the requirement.
|
Requirement.Builder |
setJavaClassBytes(com.google.protobuf.ByteString value)
For "custom" requirements, the Java class used to enforce the requirement.
|
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).
|
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).
|
Requirement.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) |
Requirement.Builder |
setReportLooseTypeViolations(boolean value)
Whether to report possible violations when type information is not exact.
|
Requirement.Builder |
setRuleId(java.lang.String value)
Gives the rule an unique ID that can be used for extending in other rules
through 'extends'.
|
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'.
|
Requirement.Builder |
setSeverity(Requirement.Severity value)
optional .jscomp.Requirement.Severity severity = 12 [default = WARNING]; |
Requirement.Builder |
setType(Requirement.Type value)
Required: The type of requirement.
|
Requirement.Builder |
setTypeMatchingStrategy(Requirement.TypeMatchingStrategy value)
Strategy to use for matching types in the value parameter (e.g.
|
Requirement.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
Requirement.Builder |
setValue(int index,
java.lang.String value)
The value banned, optional for "custom" requirements.
|
Requirement.Builder |
setWhitelist(int index,
java.lang.String value)
Optional: A list of source path prefixes that are exempt from the
requirement.
|
Requirement.Builder |
setWhitelistEntry(int index,
Requirement.WhitelistEntry.Builder builderForValue)
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14; |
Requirement.Builder |
setWhitelistEntry(int index,
Requirement.WhitelistEntry value)
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14; |
Requirement.Builder |
setWhitelistRegexp(int index,
java.lang.String value)
Optional: A list of source paths regexs that are exempt from the
requirement.
|
addExtension, addExtension, clearExtension, clearExtension, extensionsAreInitialized, getAllFields, getExtension, getExtension, getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, getExtensionCount, getField, getRepeatedField, getRepeatedFieldCount, hasExtension, hasExtension, hasExtension, hasField, mergeExtensionFields, parseUnknownField, setExtension, setExtension, setExtension, setExtension
getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedFieldBuilder, getUnknownFields, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getExtension, getExtension, getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, getExtensionCount, hasExtension, hasExtension, hasExtension
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<Requirement.Builder>
public Requirement.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<Requirement,Requirement.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<Requirement.Builder>
public Requirement getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<Requirement>
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public Requirement build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public Requirement buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public Requirement.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<Requirement,Requirement.Builder>
public Requirement.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<Requirement,Requirement.Builder>
public Requirement.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<Requirement,Requirement.Builder>
public Requirement.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<Requirement.Builder>
public Requirement.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<Requirement,Requirement.Builder>
public Requirement.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<Requirement,Requirement.Builder>
public <Type> Requirement.Builder setExtension(com.google.protobuf.GeneratedMessage.GeneratedExtension<Requirement,Type> extension, Type value)
setExtension
in class com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<Requirement,Requirement.Builder>
public <Type> Requirement.Builder setExtension(com.google.protobuf.GeneratedMessage.GeneratedExtension<Requirement,java.util.List<Type>> extension, int index, Type value)
setExtension
in class com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<Requirement,Requirement.Builder>
public <Type> Requirement.Builder addExtension(com.google.protobuf.GeneratedMessage.GeneratedExtension<Requirement,java.util.List<Type>> extension, Type value)
addExtension
in class com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<Requirement,Requirement.Builder>
public <Type> Requirement.Builder clearExtension(com.google.protobuf.GeneratedMessage.GeneratedExtension<Requirement,?> extension)
clearExtension
in class com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<Requirement,Requirement.Builder>
public Requirement.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Requirement.Builder>
public Requirement.Builder mergeFrom(Requirement other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<Requirement,Requirement.Builder>
public Requirement.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<Requirement.Builder>
java.io.IOException
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;
hasErrorMessage
in interface RequirementOrBuilder
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;
getErrorMessage
in interface RequirementOrBuilder
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;
getErrorMessageBytes
in interface RequirementOrBuilder
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;
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;
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;
public com.google.protobuf.ProtocolStringList getWhitelistList()
Optional: A list of source path prefixes that are exempt from the requirement.
repeated string whitelist = 2;
getWhitelistList
in interface RequirementOrBuilder
public int getWhitelistCount()
Optional: A list of source path prefixes that are exempt from the requirement.
repeated string whitelist = 2;
getWhitelistCount
in interface RequirementOrBuilder
public java.lang.String getWhitelist(int index)
Optional: A list of source path prefixes that are exempt from the requirement.
repeated string whitelist = 2;
getWhitelist
in interface RequirementOrBuilder
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;
getWhitelistBytes
in interface RequirementOrBuilder
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;
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;
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;
public Requirement.Builder clearWhitelist()
Optional: A list of source path prefixes that are exempt from the requirement.
repeated string whitelist = 2;
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;
public com.google.protobuf.ProtocolStringList getWhitelistRegexpList()
Optional: A list of source paths regexs that are exempt from the requirement.
repeated string whitelist_regexp = 3;
getWhitelistRegexpList
in interface RequirementOrBuilder
public int getWhitelistRegexpCount()
Optional: A list of source paths regexs that are exempt from the requirement.
repeated string whitelist_regexp = 3;
getWhitelistRegexpCount
in interface RequirementOrBuilder
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;
getWhitelistRegexp
in interface RequirementOrBuilder
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;
getWhitelistRegexpBytes
in interface RequirementOrBuilder
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;
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;
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;
public Requirement.Builder clearWhitelistRegexp()
Optional: A list of source paths regexs that are exempt from the requirement.
repeated string whitelist_regexp = 3;
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;
public java.util.List<Requirement.WhitelistEntry> getWhitelistEntryList()
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
getWhitelistEntryList
in interface RequirementOrBuilder
public int getWhitelistEntryCount()
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
getWhitelistEntryCount
in interface RequirementOrBuilder
public Requirement.WhitelistEntry getWhitelistEntry(int index)
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
getWhitelistEntry
in interface RequirementOrBuilder
public Requirement.Builder setWhitelistEntry(int index, Requirement.WhitelistEntry value)
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
public Requirement.Builder setWhitelistEntry(int index, Requirement.WhitelistEntry.Builder builderForValue)
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
public Requirement.Builder addWhitelistEntry(Requirement.WhitelistEntry value)
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
public Requirement.Builder addWhitelistEntry(int index, Requirement.WhitelistEntry value)
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
public Requirement.Builder addWhitelistEntry(Requirement.WhitelistEntry.Builder builderForValue)
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
public Requirement.Builder addWhitelistEntry(int index, Requirement.WhitelistEntry.Builder builderForValue)
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
public Requirement.Builder addAllWhitelistEntry(java.lang.Iterable<? extends Requirement.WhitelistEntry> values)
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
public Requirement.Builder clearWhitelistEntry()
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
public Requirement.Builder removeWhitelistEntry(int index)
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
public Requirement.WhitelistEntry.Builder getWhitelistEntryBuilder(int index)
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
public Requirement.WhitelistEntryOrBuilder getWhitelistEntryOrBuilder(int index)
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
getWhitelistEntryOrBuilder
in interface RequirementOrBuilder
public java.util.List<? extends Requirement.WhitelistEntryOrBuilder> getWhitelistEntryOrBuilderList()
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
getWhitelistEntryOrBuilderList
in interface RequirementOrBuilder
public Requirement.WhitelistEntry.Builder addWhitelistEntryBuilder()
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
public Requirement.WhitelistEntry.Builder addWhitelistEntryBuilder(int index)
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
public java.util.List<Requirement.WhitelistEntry.Builder> getWhitelistEntryBuilderList()
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
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;
getOnlyApplyToList
in interface RequirementOrBuilder
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;
getOnlyApplyToCount
in interface RequirementOrBuilder
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;
getOnlyApplyTo
in interface RequirementOrBuilder
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;
getOnlyApplyToBytes
in interface RequirementOrBuilder
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;
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;
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;
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;
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;
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;
getOnlyApplyToRegexpList
in interface RequirementOrBuilder
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;
getOnlyApplyToRegexpCount
in interface RequirementOrBuilder
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;
getOnlyApplyToRegexp
in interface RequirementOrBuilder
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;
getOnlyApplyToRegexpBytes
in interface RequirementOrBuilder
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;
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;
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;
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;
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;
public boolean hasType()
Required: The type of requirement.
optional .jscomp.Requirement.Type type = 6;
hasType
in interface RequirementOrBuilder
public Requirement.Type getType()
Required: The type of requirement.
optional .jscomp.Requirement.Type type = 6;
getType
in interface RequirementOrBuilder
public Requirement.Builder setType(Requirement.Type value)
Required: The type of requirement.
optional .jscomp.Requirement.Type type = 6;
public Requirement.Builder clearType()
Required: The type of requirement.
optional .jscomp.Requirement.Type type = 6;
public com.google.protobuf.ProtocolStringList getValueList()
The value banned, optional for "custom" requirements.
repeated string value = 7;
getValueList
in interface RequirementOrBuilder
public int getValueCount()
The value banned, optional for "custom" requirements.
repeated string value = 7;
getValueCount
in interface RequirementOrBuilder
public java.lang.String getValue(int index)
The value banned, optional for "custom" requirements.
repeated string value = 7;
getValue
in interface RequirementOrBuilder
public com.google.protobuf.ByteString getValueBytes(int index)
The value banned, optional for "custom" requirements.
repeated string value = 7;
getValueBytes
in interface RequirementOrBuilder
public Requirement.Builder setValue(int index, java.lang.String value)
The value banned, optional for "custom" requirements.
repeated string value = 7;
public Requirement.Builder addValue(java.lang.String value)
The value banned, optional for "custom" requirements.
repeated string value = 7;
public Requirement.Builder addAllValue(java.lang.Iterable<java.lang.String> values)
The value banned, optional for "custom" requirements.
repeated string value = 7;
public Requirement.Builder clearValue()
The value banned, optional for "custom" requirements.
repeated string value = 7;
public Requirement.Builder addValueBytes(com.google.protobuf.ByteString value)
The value banned, optional for "custom" requirements.
repeated string value = 7;
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];
hasTypeMatchingStrategy
in interface RequirementOrBuilder
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];
getTypeMatchingStrategy
in interface RequirementOrBuilder
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];
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];
public boolean hasJavaClass()
For "custom" requirements, the Java class used to enforce the requirement. Ignored otherwise.
optional string java_class = 8;
hasJavaClass
in interface RequirementOrBuilder
public java.lang.String getJavaClass()
For "custom" requirements, the Java class used to enforce the requirement. Ignored otherwise.
optional string java_class = 8;
getJavaClass
in interface RequirementOrBuilder
public com.google.protobuf.ByteString getJavaClassBytes()
For "custom" requirements, the Java class used to enforce the requirement. Ignored otherwise.
optional string java_class = 8;
getJavaClassBytes
in interface RequirementOrBuilder
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;
public Requirement.Builder clearJavaClass()
For "custom" requirements, the Java class used to enforce the requirement. Ignored otherwise.
optional string java_class = 8;
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;
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;
hasRuleId
in interface RequirementOrBuilder
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;
getRuleId
in interface RequirementOrBuilder
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;
getRuleIdBytes
in interface RequirementOrBuilder
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;
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;
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;
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;
hasExtends
in interface RequirementOrBuilder
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;
getExtends
in interface RequirementOrBuilder
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;
getExtendsBytes
in interface RequirementOrBuilder
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;
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;
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;
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];
hasReportLooseTypeViolations
in interface RequirementOrBuilder
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];
getReportLooseTypeViolations
in interface RequirementOrBuilder
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];
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];
public boolean hasSeverity()
optional .jscomp.Requirement.Severity severity = 12 [default = WARNING];
hasSeverity
in interface RequirementOrBuilder
public Requirement.Severity getSeverity()
optional .jscomp.Requirement.Severity severity = 12 [default = WARNING];
getSeverity
in interface RequirementOrBuilder
public Requirement.Builder setSeverity(Requirement.Severity value)
optional .jscomp.Requirement.Severity severity = 12 [default = WARNING];
public Requirement.Builder clearSeverity()
optional .jscomp.Requirement.Severity severity = 12 [default = WARNING];
public final Requirement.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Requirement.Builder>
public final Requirement.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<Requirement.Builder>
Copyright © 2009-2020 Google. All Rights Reserved.