public final class Requirement extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<Requirement> implements RequirementOrBuilder
A specification of code requirements NEXT ID: 17Protobuf type
jscomp.Requirement| Modifier and Type | Class and Description |
|---|---|
static class |
Requirement.Builder
A specification of code requirements
NEXT ID: 17
|
static class |
Requirement.Severity
With what severity to report the issue by default.
|
static class |
Requirement.Type
A classification of the requirement and how it is enforced.
|
static class |
Requirement.TypeMatchingStrategy
Protobuf enum
jscomp.Requirement.TypeMatchingStrategy |
static class |
Requirement.WhitelistEntry
Protobuf type
jscomp.Requirement.WhitelistEntry |
static interface |
Requirement.WhitelistEntryOrBuilder |
com.google.protobuf.GeneratedMessageV3.ExtendableMessage.ExtensionWritercom.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ALLOW_EXTENDING_VALUE_FIELD_NUMBER |
static int |
CONFIG_FILE_FIELD_NUMBER |
static int |
ERROR_MESSAGE_FIELD_NUMBER |
static int |
EXTENDS_FIELD_NUMBER |
static int |
JAVA_CLASS_FIELD_NUMBER |
static int |
ONLY_APPLY_TO_FIELD_NUMBER |
static int |
ONLY_APPLY_TO_REGEXP_FIELD_NUMBER |
static com.google.protobuf.Parser<Requirement> |
PARSER
Deprecated.
|
static int |
REPORT_LOOSE_TYPE_VIOLATIONS_FIELD_NUMBER |
static int |
RULE_ID_FIELD_NUMBER |
static int |
SEVERITY_FIELD_NUMBER |
static int |
TYPE_FIELD_NUMBER |
static int |
TYPE_MATCHING_STRATEGY_FIELD_NUMBER |
static int |
VALUE_FIELD_NUMBER |
static int |
WHITELIST_ENTRY_FIELD_NUMBER |
static int |
WHITELIST_FIELD_NUMBER |
static int |
WHITELIST_REGEXP_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
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.
|
com.google.protobuf.ProtocolStringList |
getConfigFileList()
The file(s) that defined this requirement.
|
static Requirement |
getDefaultInstance() |
Requirement |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
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).
|
com.google.protobuf.Parser<Requirement> |
getParserForType() |
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'.
|
int |
getSerializedSize() |
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.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
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; |
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 |
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.
|
int |
hashCode() |
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() |
static Requirement.Builder |
newBuilder() |
static Requirement.Builder |
newBuilder(Requirement prototype) |
Requirement.Builder |
newBuilderForType() |
protected Requirement.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected java.lang.Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Requirement |
parseDelimitedFrom(java.io.InputStream input) |
static Requirement |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Requirement |
parseFrom(byte[] data) |
static Requirement |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Requirement |
parseFrom(java.nio.ByteBuffer data) |
static Requirement |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Requirement |
parseFrom(com.google.protobuf.ByteString data) |
static Requirement |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Requirement |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Requirement |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Requirement |
parseFrom(java.io.InputStream input) |
static Requirement |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Requirement> |
parser() |
Requirement.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
extensionsAreInitialized, extensionsSerializedSize, extensionsSerializedSizeAsMessageSet, getAllFields, getAllFieldsRaw, getExtension, getExtension, getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, getExtensionCount, getExtensionFields, getField, getRepeatedField, getRepeatedFieldCount, hasExtension, hasExtension, hasExtension, hasField, makeExtensionsImmutable, newExtensionWriter, newMessageSetExtensionWriter, parseUnknownField, parseUnknownFieldProto3canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getDescriptorForType, getOneofFieldDescriptor, hasOneof, internalGetMapField, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetExtension, getExtension, getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, getExtensionCount, hasExtension, hasExtension, hasExtensionpublic static final int ERROR_MESSAGE_FIELD_NUMBER
public static final int WHITELIST_FIELD_NUMBER
public static final int WHITELIST_REGEXP_FIELD_NUMBER
public static final int WHITELIST_ENTRY_FIELD_NUMBER
public static final int ONLY_APPLY_TO_FIELD_NUMBER
public static final int ONLY_APPLY_TO_REGEXP_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
public static final int VALUE_FIELD_NUMBER
public static final int ALLOW_EXTENDING_VALUE_FIELD_NUMBER
public static final int TYPE_MATCHING_STRATEGY_FIELD_NUMBER
public static final int JAVA_CLASS_FIELD_NUMBER
public static final int RULE_ID_FIELD_NUMBER
public static final int EXTENDS_FIELD_NUMBER
public static final int REPORT_LOOSE_TYPE_VIOLATIONS_FIELD_NUMBER
public static final int SEVERITY_FIELD_NUMBER
public static final int CONFIG_FILE_FIELD_NUMBER
@Deprecated public static final com.google.protobuf.Parser<Requirement> PARSER
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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 RequirementOrBuilderpublic 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 RequirementOrBuilderpublic 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 RequirementOrBuilderpublic 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 RequirementOrBuilderpublic int getWhitelistCount()
Optional: A list of source path prefixes that are exempt from the requirement.
repeated string whitelist = 2;getWhitelistCount in interface RequirementOrBuilderpublic 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 RequirementOrBuilderindex - The index of the element to return.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 RequirementOrBuilderindex - The index of the value to return.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 RequirementOrBuilderpublic int getWhitelistRegexpCount()
Optional: A list of source paths regexs that are exempt from the requirement.
repeated string whitelist_regexp = 3;getWhitelistRegexpCount in interface RequirementOrBuilderpublic 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 RequirementOrBuilderindex - The index of the element to return.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 RequirementOrBuilderindex - The index of the value to return.public java.util.List<Requirement.WhitelistEntry> getWhitelistEntryList()
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;getWhitelistEntryList in interface RequirementOrBuilderpublic java.util.List<? extends Requirement.WhitelistEntryOrBuilder> getWhitelistEntryOrBuilderList()
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;getWhitelistEntryOrBuilderList in interface RequirementOrBuilderpublic int getWhitelistEntryCount()
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;getWhitelistEntryCount in interface RequirementOrBuilderpublic Requirement.WhitelistEntry getWhitelistEntry(int index)
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;getWhitelistEntry in interface RequirementOrBuilderpublic Requirement.WhitelistEntryOrBuilder getWhitelistEntryOrBuilder(int index)
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;getWhitelistEntryOrBuilder in interface RequirementOrBuilderpublic 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 RequirementOrBuilderpublic 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 RequirementOrBuilderpublic 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 RequirementOrBuilderindex - The index of the element to return.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 RequirementOrBuilderindex - The index of the value to return.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 RequirementOrBuilderpublic 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 RequirementOrBuilderpublic 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 RequirementOrBuilderindex - The index of the element to return.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 RequirementOrBuilderindex - The index of the value to return.public boolean hasType()
Required: The type of requirement.
optional .jscomp.Requirement.Type type = 6;hasType in interface RequirementOrBuilderpublic Requirement.Type getType()
Required: The type of requirement.
optional .jscomp.Requirement.Type type = 6;getType in interface RequirementOrBuilderpublic 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;getValueList in interface RequirementOrBuilderpublic 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;getValueCount in interface RequirementOrBuilderpublic 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;getValue in interface RequirementOrBuilderindex - The index of the element to return.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;getValueBytes in interface RequirementOrBuilderindex - The index of the value to return.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;hasAllowExtendingValue in interface RequirementOrBuilderpublic 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;getAllowExtendingValue in interface RequirementOrBuilderpublic 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 RequirementOrBuilderpublic 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 RequirementOrBuilderpublic boolean hasJavaClass()
For "custom" requirements, the Java class used to enforce the requirement. Ignored otherwise.
optional string java_class = 8;hasJavaClass in interface RequirementOrBuilderpublic 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 RequirementOrBuilderpublic 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 RequirementOrBuilderpublic 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 RequirementOrBuilderpublic 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 RequirementOrBuilderpublic 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 RequirementOrBuilderpublic 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 RequirementOrBuilderpublic 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 RequirementOrBuilderpublic 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 RequirementOrBuilderpublic 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 RequirementOrBuilderpublic 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 RequirementOrBuilderpublic boolean hasSeverity()
optional .jscomp.Requirement.Severity severity = 12 [default = WARNING];hasSeverity in interface RequirementOrBuilderpublic Requirement.Severity getSeverity()
optional .jscomp.Requirement.Severity severity = 12 [default = WARNING];getSeverity in interface RequirementOrBuilderpublic 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;getConfigFileList in interface RequirementOrBuilderpublic 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;getConfigFileCount in interface RequirementOrBuilderpublic 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;getConfigFile in interface RequirementOrBuilderindex - The index of the element to return.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;getConfigFileBytes in interface RequirementOrBuilderindex - The index of the value to return.public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.ExtendableMessage<Requirement>public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3java.io.IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(java.lang.Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Requirement parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Requirement parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Requirement parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Requirement parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Requirement parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Requirement parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Requirement parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Requirement parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Requirement parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Requirement parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static Requirement parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static Requirement parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic Requirement.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Requirement.Builder newBuilder()
public static Requirement.Builder newBuilder(Requirement prototype)
public Requirement.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Requirement.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Requirement getDefaultInstance()
public static com.google.protobuf.Parser<Requirement> parser()
public com.google.protobuf.Parser<Requirement> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Requirement getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<Requirement>getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2009-2020 Google. All Rights Reserved.