public interface RequirementOrBuilder extends com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<Requirement>
Modifier and Type | Method and Description |
---|---|
boolean |
getAllowExtendingValue()
Whether to allow subconfigs to extend the "value" field.
|
java.lang.String |
getConfigFile(int index)
The file(s) that defined this requirement.
|
com.google.protobuf.ByteString |
getConfigFileBytes(int index)
The file(s) that defined this requirement.
|
int |
getConfigFileCount()
The file(s) that defined this requirement.
|
java.util.List<java.lang.String> |
getConfigFileList()
The file(s) that defined this requirement.
|
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).
|
java.util.List<java.lang.String> |
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).
|
java.util.List<java.lang.String> |
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.
|
java.util.List<java.lang.String> |
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; |
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; |
java.util.List<java.lang.String> |
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.
|
java.util.List<java.lang.String> |
getWhitelistRegexpList()
Optional: A list of source paths regexs that are exempt from the
requirement.
|
boolean |
hasAllowExtendingValue()
Whether to allow subconfigs to extend the "value" field.
|
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.
|
getDefaultInstanceForType, getExtension, getExtension, getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, getExtensionCount, hasExtension, hasExtension, hasExtension
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;
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;
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;
java.util.List<java.lang.String> getWhitelistList()
Optional: A list of source path prefixes that are exempt from the requirement.
repeated string whitelist = 2;
int getWhitelistCount()
Optional: A list of source path prefixes that are exempt from the requirement.
repeated string whitelist = 2;
java.lang.String getWhitelist(int index)
Optional: A list of source path prefixes that are exempt from the requirement.
repeated string whitelist = 2;
index
- The index of the element to return.com.google.protobuf.ByteString getWhitelistBytes(int index)
Optional: A list of source path prefixes that are exempt from the requirement.
repeated string whitelist = 2;
index
- The index of the value to return.java.util.List<java.lang.String> getWhitelistRegexpList()
Optional: A list of source paths regexs that are exempt from the requirement.
repeated string whitelist_regexp = 3;
int getWhitelistRegexpCount()
Optional: A list of source paths regexs that are exempt from the requirement.
repeated string whitelist_regexp = 3;
java.lang.String getWhitelistRegexp(int index)
Optional: A list of source paths regexs that are exempt from the requirement.
repeated string whitelist_regexp = 3;
index
- The index of the element to return.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;
index
- The index of the value to return.java.util.List<Requirement.WhitelistEntry> getWhitelistEntryList()
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
Requirement.WhitelistEntry getWhitelistEntry(int index)
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
int getWhitelistEntryCount()
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
java.util.List<? extends Requirement.WhitelistEntryOrBuilder> getWhitelistEntryOrBuilderList()
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
Requirement.WhitelistEntryOrBuilder getWhitelistEntryOrBuilder(int index)
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
java.util.List<java.lang.String> getOnlyApplyToList()
Optional: A list of source paths that will be checked for the requirement (the opposite of whitelist).
repeated string only_apply_to = 4;
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;
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;
index
- The index of the element to return.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;
index
- The index of the value to return.java.util.List<java.lang.String> 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;
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;
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;
index
- The index of the element to return.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;
index
- The index of the value to return.boolean hasType()
Required: The type of requirement.
optional .jscomp.Requirement.Type type = 6;
Requirement.Type getType()
Required: The type of requirement.
optional .jscomp.Requirement.Type type = 6;
java.util.List<java.lang.String> 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;
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;
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;
index
- The index of the element to return.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;
index
- The index of the value to return.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;
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;
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];
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];
boolean hasJavaClass()
For "custom" requirements, the Java class used to enforce the requirement. Ignored otherwise.
optional string java_class = 8;
java.lang.String getJavaClass()
For "custom" requirements, the Java class used to enforce the requirement. Ignored otherwise.
optional string java_class = 8;
com.google.protobuf.ByteString getJavaClassBytes()
For "custom" requirements, the Java class used to enforce the requirement. Ignored otherwise.
optional string java_class = 8;
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;
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;
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;
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;
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;
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;
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];
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];
boolean hasSeverity()
optional .jscomp.Requirement.Severity severity = 12 [default = WARNING];
Requirement.Severity getSeverity()
optional .jscomp.Requirement.Severity severity = 12 [default = WARNING];
java.util.List<java.lang.String> 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;
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;
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;
index
- The index of the element to return.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;
index
- The index of the value to return.Copyright © 2009-2020 Google. All Rights Reserved.