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.ExtensionWritercom.google.protobuf.GeneratedMessage.BuilderParent, com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessage.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessage.ExtendableBuilder>, 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 |
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() |
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 |
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, getExtension, getExtension, getExtensionCount, getExtensionFields, getField, getRepeatedField, getRepeatedFieldCount, hasExtension, hasField, makeExtensionsImmutable, newExtensionWriter, newMessageSetExtensionWriter, parseUnknownFieldgetDescriptorForType, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtensionequals, findInitializationErrors, getInitializationErrorString, hashBoolean, hashCode, hashEnum, hashEnumList, hashFields, hashLong, toStringtoByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetExtension, getExtension, getExtensionCount, hasExtensionpublic 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 Requirement getDefaultInstance()
public Requirement getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessagepublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessagepublic com.google.protobuf.Parser<Requirement> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessagepublic 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 RequirementOrBuilderpublic 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 RequirementOrBuilderpublic 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 RequirementOrBuilderpublic List<String> getWhitelistList()
repeated string whitelist = 2;
Optional: A list of source paths that are exempt from the requirement.
getWhitelistList in interface RequirementOrBuilderpublic int getWhitelistCount()
repeated string whitelist = 2;
Optional: A list of source paths that are exempt from the requirement.
getWhitelistCount in interface RequirementOrBuilderpublic String getWhitelist(int index)
repeated string whitelist = 2;
Optional: A list of source paths that are exempt from the requirement.
getWhitelist in interface RequirementOrBuilderpublic 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 RequirementOrBuilderpublic List<String> getWhitelistRegexpList()
repeated string whitelist_regexp = 3;
Optional: A list of source paths regexs that are exempt from the requirement.
getWhitelistRegexpList in interface RequirementOrBuilderpublic int getWhitelistRegexpCount()
repeated string whitelist_regexp = 3;
Optional: A list of source paths regexs that are exempt from the requirement.
getWhitelistRegexpCount in interface RequirementOrBuilderpublic 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 RequirementOrBuilderpublic 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 RequirementOrBuilderpublic 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). It is an error to specify both (whitelist/whitelist_regexp) and (only_apply_to/only_apply_to_regexp).
getOnlyApplyToList in interface RequirementOrBuilderpublic 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). It is an error to specify both (whitelist/whitelist_regexp) and (only_apply_to/only_apply_to_regexp).
getOnlyApplyToCount in interface RequirementOrBuilderpublic 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). It is an error to specify both (whitelist/whitelist_regexp) and (only_apply_to/only_apply_to_regexp).
getOnlyApplyTo in interface RequirementOrBuilderpublic 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). It is an error to specify both (whitelist/whitelist_regexp) and (only_apply_to/only_apply_to_regexp).
getOnlyApplyToBytes in interface RequirementOrBuilderpublic 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). It is an error to specify both (whitelist/whitelist_regexp) and (only_apply_to/only_apply_to_regexp).
getOnlyApplyToRegexpList in interface RequirementOrBuilderpublic 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). It is an error to specify both (whitelist/whitelist_regexp) and (only_apply_to/only_apply_to_regexp).
getOnlyApplyToRegexpCount in interface RequirementOrBuilderpublic 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). It is an error to specify both (whitelist/whitelist_regexp) and (only_apply_to/only_apply_to_regexp).
getOnlyApplyToRegexp in interface RequirementOrBuilderpublic 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). It is an error to specify both (whitelist/whitelist_regexp) and (only_apply_to/only_apply_to_regexp).
getOnlyApplyToRegexpBytes in interface RequirementOrBuilderpublic boolean hasType()
optional .jscomp.Requirement.Type type = 6;
Required: The type of requirement.
hasType in interface RequirementOrBuilderpublic Requirement.Type getType()
optional .jscomp.Requirement.Type type = 6;
Required: The type of requirement.
getType in interface RequirementOrBuilderpublic List<String> getValueList()
repeated string value = 7;
The value banned, optional for "custom" requirements.
getValueList in interface RequirementOrBuilderpublic int getValueCount()
repeated string value = 7;
The value banned, optional for "custom" requirements.
getValueCount in interface RequirementOrBuilderpublic String getValue(int index)
repeated string value = 7;
The value banned, optional for "custom" requirements.
getValue in interface RequirementOrBuilderpublic com.google.protobuf.ByteString getValueBytes(int index)
repeated string value = 7;
The value banned, optional for "custom" requirements.
getValueBytes in interface RequirementOrBuilderpublic boolean hasJavaClass()
optional string java_class = 8;
For "custom" requirements, the Java class used to enforce the requirement. Ignored otherwise.
hasJavaClass in interface RequirementOrBuilderpublic String getJavaClass()
optional string java_class = 8;
For "custom" requirements, the Java class used to enforce the requirement. Ignored otherwise.
getJavaClass in interface RequirementOrBuilderpublic 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 RequirementOrBuilderpublic 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 RequirementOrBuilderpublic 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 RequirementOrBuilderpublic 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 RequirementOrBuilderpublic 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 RequirementOrBuilderpublic 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 RequirementOrBuilderpublic 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 RequirementOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.ExtendableMessage<Requirement>public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.AbstractMessageIOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.AbstractMessageprotected Object writeReplace() throws ObjectStreamException
writeReplace in class com.google.protobuf.GeneratedMessageObjectStreamExceptionpublic 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(InputStream input) throws IOException
IOExceptionpublic static Requirement parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Requirement parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Requirement parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Requirement parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Requirement parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Requirement.Builder newBuilder()
public Requirement.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic 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.GeneratedMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageCopyright © 2009-2015 Google. All Rights Reserved.