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 |
---|---|
private int |
bitField0_ |
private static Requirement |
defaultInstance |
static int |
ERROR_MESSAGE_FIELD_NUMBER |
private java.lang.Object |
errorMessage_ |
private java.lang.Object |
extends_ |
static int |
EXTENDS_FIELD_NUMBER |
static int |
JAVA_CLASS_FIELD_NUMBER |
private java.lang.Object |
javaClass_ |
private byte |
memoizedIsInitialized |
private int |
memoizedSerializedSize |
static int |
ONLY_APPLY_TO_FIELD_NUMBER |
static int |
ONLY_APPLY_TO_REGEXP_FIELD_NUMBER |
private com.google.protobuf.LazyStringList |
onlyApplyTo_ |
private com.google.protobuf.LazyStringList |
onlyApplyToRegexp_ |
static com.google.protobuf.Parser<Requirement> |
PARSER |
static int |
RULE_ID_FIELD_NUMBER |
private java.lang.Object |
ruleId_ |
private static long |
serialVersionUID |
private Requirement.Type |
type_ |
static int |
TYPE_FIELD_NUMBER |
private com.google.protobuf.UnknownFieldSet |
unknownFields |
private com.google.protobuf.LazyStringList |
value_ |
static int |
VALUE_FIELD_NUMBER |
private com.google.protobuf.LazyStringList |
whitelist_ |
static int |
WHITELIST_FIELD_NUMBER |
static int |
WHITELIST_REGEXP_FIELD_NUMBER |
private com.google.protobuf.LazyStringList |
whitelistRegexp_ |
Modifier | Constructor and Description |
---|---|
private |
Requirement(boolean noInit) |
private |
Requirement(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
private |
Requirement(com.google.protobuf.GeneratedMessage.ExtendableBuilder<Requirement,?> builder) |
Modifier and Type | Method and Description |
---|---|
static Requirement |
getDefaultInstance() |
Requirement |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
java.lang.String |
getErrorMessage()
optional string error_message = 1; |
com.google.protobuf.ByteString |
getErrorMessageBytes()
optional string error_message = 1; |
java.lang.String |
getExtends()
optional string extends = 10; |
com.google.protobuf.ByteString |
getExtendsBytes()
optional string extends = 10; |
java.lang.String |
getJavaClass()
optional string java_class = 8; |
com.google.protobuf.ByteString |
getJavaClassBytes()
optional string java_class = 8; |
java.lang.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; |
java.util.List<java.lang.String> |
getOnlyApplyToList()
repeated string only_apply_to = 4; |
java.lang.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; |
java.util.List<java.lang.String> |
getOnlyApplyToRegexpList()
repeated string only_apply_to_regexp = 5; |
com.google.protobuf.Parser<Requirement> |
getParserForType() |
java.lang.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() |
java.lang.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; |
java.util.List<java.lang.String> |
getValueList()
repeated string value = 7; |
java.lang.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; |
java.util.List<java.lang.String> |
getWhitelistList()
repeated string whitelist = 2; |
java.lang.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; |
java.util.List<java.lang.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; |
private void |
initFields() |
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(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(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) |
Requirement.Builder |
toBuilder() |
protected java.lang.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, 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
private static final Requirement defaultInstance
private final com.google.protobuf.UnknownFieldSet unknownFields
public static com.google.protobuf.Parser<Requirement> PARSER
private int bitField0_
public static final int ERROR_MESSAGE_FIELD_NUMBER
private java.lang.Object errorMessage_
public static final int WHITELIST_FIELD_NUMBER
private com.google.protobuf.LazyStringList whitelist_
public static final int WHITELIST_REGEXP_FIELD_NUMBER
private com.google.protobuf.LazyStringList whitelistRegexp_
public static final int ONLY_APPLY_TO_FIELD_NUMBER
private com.google.protobuf.LazyStringList onlyApplyTo_
public static final int ONLY_APPLY_TO_REGEXP_FIELD_NUMBER
private com.google.protobuf.LazyStringList onlyApplyToRegexp_
public static final int TYPE_FIELD_NUMBER
private Requirement.Type type_
public static final int VALUE_FIELD_NUMBER
private com.google.protobuf.LazyStringList value_
public static final int JAVA_CLASS_FIELD_NUMBER
private java.lang.Object javaClass_
public static final int RULE_ID_FIELD_NUMBER
private java.lang.Object ruleId_
public static final int EXTENDS_FIELD_NUMBER
private java.lang.Object extends_
private byte memoizedIsInitialized
private int memoizedSerializedSize
private static final long serialVersionUID
private Requirement(com.google.protobuf.GeneratedMessage.ExtendableBuilder<Requirement,?> builder)
private Requirement(boolean noInit)
private Requirement(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
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 java.lang.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 java.util.List<java.lang.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 java.lang.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 java.util.List<java.lang.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 java.lang.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 java.util.List<java.lang.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 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). It is an error to specify both (whitelist/whitelist_regexp) and (only_apply_to/only_apply_to_regexp).
getOnlyApplyToCount
in interface RequirementOrBuilder
public java.lang.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 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). It is an error to specify both (whitelist/whitelist_regexp) and (only_apply_to/only_apply_to_regexp).
getOnlyApplyToBytes
in interface RequirementOrBuilder
public java.util.List<java.lang.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 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). It is an error to specify both (whitelist/whitelist_regexp) and (only_apply_to/only_apply_to_regexp).
getOnlyApplyToRegexpCount
in interface RequirementOrBuilder
public java.lang.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 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). It is an error to specify both (whitelist/whitelist_regexp) and (only_apply_to/only_apply_to_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 java.util.List<java.lang.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 java.lang.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 java.lang.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 java.lang.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 java.lang.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
private void initFields()
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 java.io.IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessage
java.io.IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessage
protected java.lang.Object writeReplace() throws java.io.ObjectStreamException
writeReplace
in class com.google.protobuf.GeneratedMessage
java.io.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(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Requirement parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Requirement parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static Requirement parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static Requirement parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOException
public static Requirement parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.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