public final class Requirement extends com.google.protobuf.GeneratedMessage.ExtendableMessage<Requirement> implements RequirementOrBuilder
jscomp.Requirement
A specification of code requirements
Modifier and Type | Class and Description |
---|---|
static class |
Requirement.Builder
Protobuf type
jscomp.Requirement |
static class |
Requirement.Type
Protobuf enum
jscomp.Requirement.Type |
com.google.protobuf.GeneratedMessage.ExtendableMessage.ExtensionWriter
com.google.protobuf.GeneratedMessage.BuilderParent, com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingType extends com.google.protobuf.Message,Type>
Modifier and Type | Field and Description |
---|---|
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 |
static int |
REPORT_LOOSE_TYPE_VIOLATIONS_FIELD_NUMBER |
static int |
RULE_ID_FIELD_NUMBER |
static int |
TYPE_FIELD_NUMBER |
static int |
VALUE_FIELD_NUMBER |
static int |
WHITELIST_FIELD_NUMBER |
static int |
WHITELIST_REGEXP_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
static Requirement |
getDefaultInstance() |
Requirement |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getErrorMessage()
optional string error_message = 1; |
com.google.protobuf.ByteString |
getErrorMessageBytes()
optional string error_message = 1; |
String |
getExtends()
optional string extends = 10; |
com.google.protobuf.ByteString |
getExtendsBytes()
optional string extends = 10; |
String |
getJavaClass()
optional string java_class = 8; |
com.google.protobuf.ByteString |
getJavaClassBytes()
optional string java_class = 8; |
String |
getOnlyApplyTo(int index)
repeated string only_apply_to = 4; |
com.google.protobuf.ByteString |
getOnlyApplyToBytes(int index)
repeated string only_apply_to = 4; |
int |
getOnlyApplyToCount()
repeated string only_apply_to = 4; |
List<String> |
getOnlyApplyToList()
repeated string only_apply_to = 4; |
String |
getOnlyApplyToRegexp(int index)
repeated string only_apply_to_regexp = 5; |
com.google.protobuf.ByteString |
getOnlyApplyToRegexpBytes(int index)
repeated string only_apply_to_regexp = 5; |
int |
getOnlyApplyToRegexpCount()
repeated string only_apply_to_regexp = 5; |
List<String> |
getOnlyApplyToRegexpList()
repeated string only_apply_to_regexp = 5; |
com.google.protobuf.Parser<Requirement> |
getParserForType() |
boolean |
getReportLooseTypeViolations()
optional bool report_loose_type_violations = 11 [default = true]; |
String |
getRuleId()
optional string rule_id = 9; |
com.google.protobuf.ByteString |
getRuleIdBytes()
optional string rule_id = 9; |
int |
getSerializedSize() |
Requirement.Type |
getType()
optional .jscomp.Requirement.Type type = 6; |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
String |
getValue(int index)
repeated string value = 7; |
com.google.protobuf.ByteString |
getValueBytes(int index)
repeated string value = 7; |
int |
getValueCount()
repeated string value = 7; |
List<String> |
getValueList()
repeated string value = 7; |
String |
getWhitelist(int index)
repeated string whitelist = 2; |
com.google.protobuf.ByteString |
getWhitelistBytes(int index)
repeated string whitelist = 2; |
int |
getWhitelistCount()
repeated string whitelist = 2; |
List<String> |
getWhitelistList()
repeated string whitelist = 2; |
String |
getWhitelistRegexp(int index)
repeated string whitelist_regexp = 3; |
com.google.protobuf.ByteString |
getWhitelistRegexpBytes(int index)
repeated string whitelist_regexp = 3; |
int |
getWhitelistRegexpCount()
repeated string whitelist_regexp = 3; |
List<String> |
getWhitelistRegexpList()
repeated string whitelist_regexp = 3; |
boolean |
hasErrorMessage()
optional string error_message = 1; |
boolean |
hasExtends()
optional string extends = 10; |
boolean |
hasJavaClass()
optional string java_class = 8; |
boolean |
hasReportLooseTypeViolations()
optional bool report_loose_type_violations = 11 [default = true]; |
boolean |
hasRuleId()
optional string rule_id = 9; |
boolean |
hasType()
optional .jscomp.Requirement.Type type = 6; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Requirement.Builder |
newBuilder() |
static Requirement.Builder |
newBuilder(Requirement prototype) |
Requirement.Builder |
newBuilderForType() |
protected Requirement.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) |
static Requirement |
parseDelimitedFrom(InputStream input) |
static Requirement |
parseDelimitedFrom(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(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(InputStream input) |
static Requirement |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Requirement.Builder |
toBuilder() |
protected Object |
writeReplace() |
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
computeStringSize, computeStringSizeNoTag, getDescriptorForType, getOneofFieldDescriptor, hasOneof, internalGetMapField, newBuilderForType, newFileScopedGeneratedExtension, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, writeString, writeStringNoTag
equals, findInitializationErrors, getInitializationErrorString, hashBoolean, hashCode, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getExtension, getExtension, getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, getExtensionCount, hasExtension, hasExtension, hasExtension
public static com.google.protobuf.Parser<Requirement> PARSER
public 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 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 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 Requirement getDefaultInstance()
public Requirement getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<Requirement>
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessage
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessage
public com.google.protobuf.Parser<Requirement> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessage
public boolean hasErrorMessage()
optional string error_message = 1;
Required: The message to report when a requirement is violated. This should reference a document describing the reasoning for the requirement and contacts.
hasErrorMessage
in interface RequirementOrBuilder
public String getErrorMessage()
optional string error_message = 1;
Required: The message to report when a requirement is violated. This should reference a document describing the reasoning for the requirement and contacts.
getErrorMessage
in interface RequirementOrBuilder
public com.google.protobuf.ByteString getErrorMessageBytes()
optional string error_message = 1;
Required: The message to report when a requirement is violated. This should reference a document describing the reasoning for the requirement and contacts.
getErrorMessageBytes
in interface RequirementOrBuilder
public List<String> getWhitelistList()
repeated string whitelist = 2;
Optional: A list of source paths that are exempt from the requirement.
getWhitelistList
in interface RequirementOrBuilder
public int getWhitelistCount()
repeated string whitelist = 2;
Optional: A list of source paths that are exempt from the requirement.
getWhitelistCount
in interface RequirementOrBuilder
public String getWhitelist(int index)
repeated string whitelist = 2;
Optional: A list of source paths that are exempt from the requirement.
getWhitelist
in interface RequirementOrBuilder
public com.google.protobuf.ByteString getWhitelistBytes(int index)
repeated string whitelist = 2;
Optional: A list of source paths that are exempt from the requirement.
getWhitelistBytes
in interface RequirementOrBuilder
public List<String> getWhitelistRegexpList()
repeated string whitelist_regexp = 3;
Optional: A list of source paths regexs that are exempt from the requirement.
getWhitelistRegexpList
in interface RequirementOrBuilder
public int getWhitelistRegexpCount()
repeated string whitelist_regexp = 3;
Optional: A list of source paths regexs that are exempt from the requirement.
getWhitelistRegexpCount
in interface RequirementOrBuilder
public String getWhitelistRegexp(int index)
repeated string whitelist_regexp = 3;
Optional: A list of source paths regexs that are exempt from the requirement.
getWhitelistRegexp
in interface RequirementOrBuilder
public com.google.protobuf.ByteString getWhitelistRegexpBytes(int index)
repeated string whitelist_regexp = 3;
Optional: A list of source paths regexs that are exempt from the requirement.
getWhitelistRegexpBytes
in interface RequirementOrBuilder
public List<String> getOnlyApplyToList()
repeated string only_apply_to = 4;
Optional: A list of source paths that will be checked for the requirement (the opposite of whitelist).
getOnlyApplyToList
in interface RequirementOrBuilder
public int getOnlyApplyToCount()
repeated string only_apply_to = 4;
Optional: A list of source paths that will be checked for the requirement (the opposite of whitelist).
getOnlyApplyToCount
in interface RequirementOrBuilder
public String getOnlyApplyTo(int index)
repeated string only_apply_to = 4;
Optional: A list of source paths that will be checked for the requirement (the opposite of whitelist).
getOnlyApplyTo
in interface RequirementOrBuilder
public com.google.protobuf.ByteString getOnlyApplyToBytes(int index)
repeated string only_apply_to = 4;
Optional: A list of source paths that will be checked for the requirement (the opposite of whitelist).
getOnlyApplyToBytes
in interface RequirementOrBuilder
public List<String> getOnlyApplyToRegexpList()
repeated string only_apply_to_regexp = 5;
Optional: A list of source path regexps that will be checked for the requirement (the opposite of whitelist_regexp).
getOnlyApplyToRegexpList
in interface RequirementOrBuilder
public int getOnlyApplyToRegexpCount()
repeated string only_apply_to_regexp = 5;
Optional: A list of source path regexps that will be checked for the requirement (the opposite of whitelist_regexp).
getOnlyApplyToRegexpCount
in interface RequirementOrBuilder
public String getOnlyApplyToRegexp(int index)
repeated string only_apply_to_regexp = 5;
Optional: A list of source path regexps that will be checked for the requirement (the opposite of whitelist_regexp).
getOnlyApplyToRegexp
in interface RequirementOrBuilder
public com.google.protobuf.ByteString getOnlyApplyToRegexpBytes(int index)
repeated string only_apply_to_regexp = 5;
Optional: A list of source path regexps that will be checked for the requirement (the opposite of whitelist_regexp).
getOnlyApplyToRegexpBytes
in interface RequirementOrBuilder
public boolean hasType()
optional .jscomp.Requirement.Type type = 6;
Required: The type of requirement.
hasType
in interface RequirementOrBuilder
public Requirement.Type getType()
optional .jscomp.Requirement.Type type = 6;
Required: The type of requirement.
getType
in interface RequirementOrBuilder
public List<String> getValueList()
repeated string value = 7;
The value banned, optional for "custom" requirements.
getValueList
in interface RequirementOrBuilder
public int getValueCount()
repeated string value = 7;
The value banned, optional for "custom" requirements.
getValueCount
in interface RequirementOrBuilder
public String getValue(int index)
repeated string value = 7;
The value banned, optional for "custom" requirements.
getValue
in interface RequirementOrBuilder
public com.google.protobuf.ByteString getValueBytes(int index)
repeated string value = 7;
The value banned, optional for "custom" requirements.
getValueBytes
in interface RequirementOrBuilder
public boolean hasJavaClass()
optional string java_class = 8;
For "custom" requirements, the Java class used to enforce the requirement. Ignored otherwise.
hasJavaClass
in interface RequirementOrBuilder
public String getJavaClass()
optional string java_class = 8;
For "custom" requirements, the Java class used to enforce the requirement. Ignored otherwise.
getJavaClass
in interface RequirementOrBuilder
public com.google.protobuf.ByteString getJavaClassBytes()
optional string java_class = 8;
For "custom" requirements, the Java class used to enforce the requirement. Ignored otherwise.
getJavaClassBytes
in interface RequirementOrBuilder
public boolean hasRuleId()
optional string rule_id = 9;
Gives the rule an unique ID that can be used for extending in other rules through 'extends'. An example of ID is 'closure:innerHtml'.
hasRuleId
in interface RequirementOrBuilder
public String getRuleId()
optional string rule_id = 9;
Gives the rule an unique ID that can be used for extending in other rules through 'extends'. An example of ID is 'closure:innerHtml'.
getRuleId
in interface RequirementOrBuilder
public com.google.protobuf.ByteString getRuleIdBytes()
optional string rule_id = 9;
Gives the rule an unique ID that can be used for extending in other rules through 'extends'. An example of ID is 'closure:innerHtml'.
getRuleIdBytes
in interface RequirementOrBuilder
public boolean hasExtends()
optional string extends = 10;
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.
hasExtends
in interface RequirementOrBuilder
public String getExtends()
optional string extends = 10;
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.
getExtends
in interface RequirementOrBuilder
public com.google.protobuf.ByteString getExtendsBytes()
optional string extends = 10;
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.
getExtendsBytes
in interface RequirementOrBuilder
public boolean hasReportLooseTypeViolations()
optional bool report_loose_type_violations = 11 [default = true];
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).
hasReportLooseTypeViolations
in interface RequirementOrBuilder
public boolean getReportLooseTypeViolations()
optional bool report_loose_type_violations = 11 [default = true];
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).
getReportLooseTypeViolations
in interface RequirementOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessage.ExtendableMessage<Requirement>
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessage
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessage
protected Object writeReplace() throws ObjectStreamException
writeReplace
in class com.google.protobuf.GeneratedMessage
ObjectStreamException
public static Requirement parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Requirement parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Requirement parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Requirement parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Requirement parseFrom(InputStream input) throws IOException
IOException
public static Requirement parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Requirement parseDelimitedFrom(InputStream input) throws IOException
IOException
public static Requirement parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Requirement parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static Requirement parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Requirement.Builder newBuilder()
public Requirement.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static Requirement.Builder newBuilder(Requirement prototype)
public Requirement.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected Requirement.Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessage
Copyright © 2009-2017 Google. All Rights Reserved.