public static final class Requirement.Builder extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<Requirement,Requirement.Builder> implements RequirementOrBuilder
jscomp.Requirement
A specification of code requirements
| Modifier and Type | Field and Description |
|---|---|
private int |
bitField0_ |
private java.lang.Object |
errorMessage_ |
private java.lang.Object |
extends_ |
private java.lang.Object |
javaClass_ |
private com.google.protobuf.LazyStringList |
onlyApplyTo_ |
private com.google.protobuf.LazyStringList |
onlyApplyToRegexp_ |
private java.lang.Object |
ruleId_ |
private Requirement.Type |
type_ |
private com.google.protobuf.LazyStringList |
value_ |
private com.google.protobuf.LazyStringList |
whitelist_ |
private com.google.protobuf.LazyStringList |
whitelistRegexp_ |
| Modifier | Constructor and Description |
|---|---|
private |
Builder() |
private |
Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) |
| Modifier and Type | Method and Description |
|---|---|
Requirement.Builder |
addAllOnlyApplyTo(java.lang.Iterable<java.lang.String> values)
repeated string only_apply_to = 4; |
Requirement.Builder |
addAllOnlyApplyToRegexp(java.lang.Iterable<java.lang.String> values)
repeated string only_apply_to_regexp = 5; |
Requirement.Builder |
addAllValue(java.lang.Iterable<java.lang.String> values)
repeated string value = 7; |
Requirement.Builder |
addAllWhitelist(java.lang.Iterable<java.lang.String> values)
repeated string whitelist = 2; |
Requirement.Builder |
addAllWhitelistRegexp(java.lang.Iterable<java.lang.String> values)
repeated string whitelist_regexp = 3; |
Requirement.Builder |
addOnlyApplyTo(java.lang.String value)
repeated string only_apply_to = 4; |
Requirement.Builder |
addOnlyApplyToBytes(com.google.protobuf.ByteString value)
repeated string only_apply_to = 4; |
Requirement.Builder |
addOnlyApplyToRegexp(java.lang.String value)
repeated string only_apply_to_regexp = 5; |
Requirement.Builder |
addOnlyApplyToRegexpBytes(com.google.protobuf.ByteString value)
repeated string only_apply_to_regexp = 5; |
Requirement.Builder |
addValue(java.lang.String value)
repeated string value = 7; |
Requirement.Builder |
addValueBytes(com.google.protobuf.ByteString value)
repeated string value = 7; |
Requirement.Builder |
addWhitelist(java.lang.String value)
repeated string whitelist = 2; |
Requirement.Builder |
addWhitelistBytes(com.google.protobuf.ByteString value)
repeated string whitelist = 2; |
Requirement.Builder |
addWhitelistRegexp(java.lang.String value)
repeated string whitelist_regexp = 3; |
Requirement.Builder |
addWhitelistRegexpBytes(com.google.protobuf.ByteString value)
repeated string whitelist_regexp = 3; |
Requirement |
build() |
Requirement |
buildPartial() |
Requirement.Builder |
clear() |
Requirement.Builder |
clearErrorMessage()
optional string error_message = 1; |
Requirement.Builder |
clearExtends()
optional string extends = 10; |
Requirement.Builder |
clearJavaClass()
optional string java_class = 8; |
Requirement.Builder |
clearOnlyApplyTo()
repeated string only_apply_to = 4; |
Requirement.Builder |
clearOnlyApplyToRegexp()
repeated string only_apply_to_regexp = 5; |
Requirement.Builder |
clearRuleId()
optional string rule_id = 9; |
Requirement.Builder |
clearType()
optional .jscomp.Requirement.Type type = 6; |
Requirement.Builder |
clearValue()
repeated string value = 7; |
Requirement.Builder |
clearWhitelist()
repeated string whitelist = 2; |
Requirement.Builder |
clearWhitelistRegexp()
repeated string whitelist_regexp = 3; |
Requirement.Builder |
clone() |
private static Requirement.Builder |
create() |
private void |
ensureOnlyApplyToIsMutable() |
private void |
ensureOnlyApplyToRegexpIsMutable() |
private void |
ensureValueIsMutable() |
private void |
ensureWhitelistIsMutable() |
private void |
ensureWhitelistRegexpIsMutable() |
Requirement |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
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; |
java.lang.String |
getRuleId()
optional string rule_id = 9; |
com.google.protobuf.ByteString |
getRuleIdBytes()
optional string rule_id = 9; |
Requirement.Type |
getType()
optional .jscomp.Requirement.Type type = 6; |
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; |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
private void |
maybeForceBuilderInitialization() |
Requirement.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
Requirement.Builder |
mergeFrom(com.google.protobuf.Message other) |
Requirement.Builder |
mergeFrom(Requirement other) |
Requirement.Builder |
setErrorMessage(java.lang.String value)
optional string error_message = 1; |
Requirement.Builder |
setErrorMessageBytes(com.google.protobuf.ByteString value)
optional string error_message = 1; |
Requirement.Builder |
setExtends(java.lang.String value)
optional string extends = 10; |
Requirement.Builder |
setExtendsBytes(com.google.protobuf.ByteString value)
optional string extends = 10; |
Requirement.Builder |
setJavaClass(java.lang.String value)
optional string java_class = 8; |
Requirement.Builder |
setJavaClassBytes(com.google.protobuf.ByteString value)
optional string java_class = 8; |
Requirement.Builder |
setOnlyApplyTo(int index,
java.lang.String value)
repeated string only_apply_to = 4; |
Requirement.Builder |
setOnlyApplyToRegexp(int index,
java.lang.String value)
repeated string only_apply_to_regexp = 5; |
Requirement.Builder |
setRuleId(java.lang.String value)
optional string rule_id = 9; |
Requirement.Builder |
setRuleIdBytes(com.google.protobuf.ByteString value)
optional string rule_id = 9; |
Requirement.Builder |
setType(Requirement.Type value)
optional .jscomp.Requirement.Type type = 6; |
Requirement.Builder |
setValue(int index,
java.lang.String value)
repeated string value = 7; |
Requirement.Builder |
setWhitelist(int index,
java.lang.String value)
repeated string whitelist = 2; |
Requirement.Builder |
setWhitelistRegexp(int index,
java.lang.String value)
repeated string whitelist_regexp = 3; |
addExtension, addExtension, addExtension, addRepeatedField, clearExtension, clearExtension, clearExtension, clearField, extensionsAreInitialized, getAllFields, getExtension, getExtension, getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, getExtensionCount, getField, getRepeatedField, getRepeatedFieldCount, hasExtension, hasExtension, hasExtension, hasField, mergeExtensionFields, parseUnknownField, setExtension, setExtension, setExtension, setExtension, setExtension, setExtension, setField, setRepeatedFieldclearOneof, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedFieldBuilder, getUnknownFields, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, newBuilderForField, onBuilt, onChanged, setUnknownFieldsfindInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetExtension, getExtension, getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, getExtensionCount, hasExtension, hasExtension, hasExtensionprivate int bitField0_
private java.lang.Object errorMessage_
private com.google.protobuf.LazyStringList whitelist_
private com.google.protobuf.LazyStringList whitelistRegexp_
private com.google.protobuf.LazyStringList onlyApplyTo_
private com.google.protobuf.LazyStringList onlyApplyToRegexp_
private Requirement.Type type_
private com.google.protobuf.LazyStringList value_
private java.lang.Object javaClass_
private java.lang.Object ruleId_
private java.lang.Object extends_
private Builder()
private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent)
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Requirement.Builder>private void maybeForceBuilderInitialization()
private static Requirement.Builder create()
public Requirement.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.ExtendableBuilder<Requirement,Requirement.Builder>public Requirement.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessage.ExtendableBuilder<Requirement,Requirement.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Requirement.Builder>public Requirement getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<Requirement>getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic Requirement build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic Requirement buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic Requirement.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Requirement.Builder>public Requirement.Builder mergeFrom(Requirement other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.ExtendableBuilder<Requirement,Requirement.Builder>public Requirement.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<Requirement.Builder>java.io.IOExceptionpublic 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 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 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 Requirement.Builder setErrorMessage(java.lang.String value)
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.
public Requirement.Builder clearErrorMessage()
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.
public Requirement.Builder setErrorMessageBytes(com.google.protobuf.ByteString value)
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.
private void ensureWhitelistIsMutable()
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 RequirementOrBuilderpublic int getWhitelistCount()
repeated string whitelist = 2;
Optional: A list of source paths that are exempt from the requirement.
getWhitelistCount in interface RequirementOrBuilderpublic 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 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 Requirement.Builder setWhitelist(int index, java.lang.String value)
repeated string whitelist = 2;
Optional: A list of source paths that are exempt from the requirement.
public Requirement.Builder addWhitelist(java.lang.String value)
repeated string whitelist = 2;
Optional: A list of source paths that are exempt from the requirement.
public Requirement.Builder addAllWhitelist(java.lang.Iterable<java.lang.String> values)
repeated string whitelist = 2;
Optional: A list of source paths that are exempt from the requirement.
public Requirement.Builder clearWhitelist()
repeated string whitelist = 2;
Optional: A list of source paths that are exempt from the requirement.
public Requirement.Builder addWhitelistBytes(com.google.protobuf.ByteString value)
repeated string whitelist = 2;
Optional: A list of source paths that are exempt from the requirement.
private void ensureWhitelistRegexpIsMutable()
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 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 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 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 Requirement.Builder setWhitelistRegexp(int index, java.lang.String value)
repeated string whitelist_regexp = 3;
Optional: A list of source paths regexs that are exempt from the requirement.
public Requirement.Builder addWhitelistRegexp(java.lang.String value)
repeated string whitelist_regexp = 3;
Optional: A list of source paths regexs that are exempt from the requirement.
public Requirement.Builder addAllWhitelistRegexp(java.lang.Iterable<java.lang.String> values)
repeated string whitelist_regexp = 3;
Optional: A list of source paths regexs that are exempt from the requirement.
public Requirement.Builder clearWhitelistRegexp()
repeated string whitelist_regexp = 3;
Optional: A list of source paths regexs that are exempt from the requirement.
public Requirement.Builder addWhitelistRegexpBytes(com.google.protobuf.ByteString value)
repeated string whitelist_regexp = 3;
Optional: A list of source paths regexs that are exempt from the requirement.
private void ensureOnlyApplyToIsMutable()
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 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 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 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 Requirement.Builder setOnlyApplyTo(int index, java.lang.String value)
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).
public Requirement.Builder addOnlyApplyTo(java.lang.String value)
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).
public Requirement.Builder addAllOnlyApplyTo(java.lang.Iterable<java.lang.String> values)
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).
public Requirement.Builder clearOnlyApplyTo()
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).
public Requirement.Builder addOnlyApplyToBytes(com.google.protobuf.ByteString value)
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).
private void ensureOnlyApplyToRegexpIsMutable()
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 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 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 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 Requirement.Builder setOnlyApplyToRegexp(int index, java.lang.String value)
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).
public Requirement.Builder addOnlyApplyToRegexp(java.lang.String value)
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).
public Requirement.Builder addAllOnlyApplyToRegexp(java.lang.Iterable<java.lang.String> values)
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).
public Requirement.Builder clearOnlyApplyToRegexp()
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).
public Requirement.Builder addOnlyApplyToRegexpBytes(com.google.protobuf.ByteString value)
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).
public 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 Requirement.Builder setType(Requirement.Type value)
optional .jscomp.Requirement.Type type = 6;
Required: The type of requirement.
public Requirement.Builder clearType()
optional .jscomp.Requirement.Type type = 6;
Required: The type of requirement.
private void ensureValueIsMutable()
public java.util.List<java.lang.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 java.lang.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 Requirement.Builder setValue(int index, java.lang.String value)
repeated string value = 7;
The value banned, optional for "custom" requirements.
public Requirement.Builder addValue(java.lang.String value)
repeated string value = 7;
The value banned, optional for "custom" requirements.
public Requirement.Builder addAllValue(java.lang.Iterable<java.lang.String> values)
repeated string value = 7;
The value banned, optional for "custom" requirements.
public Requirement.Builder clearValue()
repeated string value = 7;
The value banned, optional for "custom" requirements.
public Requirement.Builder addValueBytes(com.google.protobuf.ByteString value)
repeated string value = 7;
The value banned, optional for "custom" requirements.
public boolean hasJavaClass()
optional string java_class = 8;
For "custom" requirements, the Java class used to enforce the requirement. Ignored otherwise.
hasJavaClass in interface RequirementOrBuilderpublic 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 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 Requirement.Builder setJavaClass(java.lang.String value)
optional string java_class = 8;
For "custom" requirements, the Java class used to enforce the requirement. Ignored otherwise.
public Requirement.Builder clearJavaClass()
optional string java_class = 8;
For "custom" requirements, the Java class used to enforce the requirement. Ignored otherwise.
public Requirement.Builder setJavaClassBytes(com.google.protobuf.ByteString value)
optional string java_class = 8;
For "custom" requirements, the Java class used to enforce the requirement. Ignored otherwise.
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 RequirementOrBuilderpublic 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 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 Requirement.Builder setRuleId(java.lang.String value)
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'.
public Requirement.Builder clearRuleId()
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'.
public Requirement.Builder setRuleIdBytes(com.google.protobuf.ByteString value)
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'.
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 RequirementOrBuilderpublic 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 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 Requirement.Builder setExtends(java.lang.String value)
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.
public Requirement.Builder clearExtends()
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.
public Requirement.Builder setExtendsBytes(com.google.protobuf.ByteString value)
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.