Package com.google.javascript.jscomp
Class Requirement.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<Requirement,Requirement.Builder>
-
- com.google.javascript.jscomp.Requirement.Builder
-
- All Implemented Interfaces:
RequirementOrBuilder
,com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<Requirement>
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,java.lang.Cloneable
- Enclosing class:
- Requirement
public static final class Requirement.Builder extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<Requirement,Requirement.Builder> implements RequirementOrBuilder
A specification of code requirements NEXT ID: 17
Protobuf typejscomp.Requirement
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Requirement.Builder
addAllConfigFile(java.lang.Iterable<java.lang.String> values)
The file(s) that defined this requirement.Requirement.Builder
addAllOnlyApplyTo(java.lang.Iterable<java.lang.String> values)
Optional: A list of source paths that will be checked for the requirement (the opposite of whitelist).Requirement.Builder
addAllOnlyApplyToRegexp(java.lang.Iterable<java.lang.String> values)
Optional: A list of source path regexps that will be checked for the requirement (the opposite of whitelist_regexp).Requirement.Builder
addAllValue(java.lang.Iterable<java.lang.String> values)
The value banned, optional for "custom" requirements.Requirement.Builder
addAllWhitelist(java.lang.Iterable<java.lang.String> values)
Optional: A list of source path prefixes that are exempt from the requirement.Requirement.Builder
addAllWhitelistEntry(java.lang.Iterable<? extends Requirement.WhitelistEntry> values)
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
Requirement.Builder
addAllWhitelistRegexp(java.lang.Iterable<java.lang.String> values)
Optional: A list of source paths regexs that are exempt from the requirement.Requirement.Builder
addConfigFile(java.lang.String value)
The file(s) that defined this requirement.Requirement.Builder
addConfigFileBytes(com.google.protobuf.ByteString value)
The file(s) that defined this requirement.<Type> Requirement.Builder
addExtension(com.google.protobuf.GeneratedMessage.GeneratedExtension<Requirement,java.util.List<Type>> extension, Type value)
Requirement.Builder
addOnlyApplyTo(java.lang.String value)
Optional: A list of source paths that will be checked for the requirement (the opposite of whitelist).Requirement.Builder
addOnlyApplyToBytes(com.google.protobuf.ByteString value)
Optional: A list of source paths that will be checked for the requirement (the opposite of whitelist).Requirement.Builder
addOnlyApplyToRegexp(java.lang.String value)
Optional: A list of source path regexps that will be checked for the requirement (the opposite of whitelist_regexp).Requirement.Builder
addOnlyApplyToRegexpBytes(com.google.protobuf.ByteString value)
Optional: A list of source path regexps that will be checked for the requirement (the opposite of whitelist_regexp).Requirement.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Requirement.Builder
addValue(java.lang.String value)
The value banned, optional for "custom" requirements.Requirement.Builder
addValueBytes(com.google.protobuf.ByteString value)
The value banned, optional for "custom" requirements.Requirement.Builder
addWhitelist(java.lang.String value)
Optional: A list of source path prefixes that are exempt from the requirement.Requirement.Builder
addWhitelistBytes(com.google.protobuf.ByteString value)
Optional: A list of source path prefixes that are exempt from the requirement.Requirement.Builder
addWhitelistEntry(int index, Requirement.WhitelistEntry value)
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
Requirement.Builder
addWhitelistEntry(int index, Requirement.WhitelistEntry.Builder builderForValue)
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
Requirement.Builder
addWhitelistEntry(Requirement.WhitelistEntry value)
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
Requirement.Builder
addWhitelistEntry(Requirement.WhitelistEntry.Builder builderForValue)
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
Requirement.WhitelistEntry.Builder
addWhitelistEntryBuilder()
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
Requirement.WhitelistEntry.Builder
addWhitelistEntryBuilder(int index)
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
Requirement.Builder
addWhitelistRegexp(java.lang.String value)
Optional: A list of source paths regexs that are exempt from the requirement.Requirement.Builder
addWhitelistRegexpBytes(com.google.protobuf.ByteString value)
Optional: A list of source paths regexs that are exempt from the requirement.Requirement
build()
Requirement
buildPartial()
Requirement.Builder
clear()
Requirement.Builder
clearAllowExtendingValue()
Whether to allow subconfigs to extend the "value" field.Requirement.Builder
clearConfigFile()
The file(s) that defined this requirement.Requirement.Builder
clearErrorMessage()
Required: The message to report when a requirement is violated.Requirement.Builder
clearExtends()
Allows extending whitelists of rules with the specified rule_id.<Type> Requirement.Builder
clearExtension(com.google.protobuf.GeneratedMessage.GeneratedExtension<Requirement,?> extension)
Requirement.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Requirement.Builder
clearJavaClass()
For "custom" requirements, the Java class used to enforce the requirement.Requirement.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Requirement.Builder
clearOnlyApplyTo()
Optional: A list of source paths that will be checked for the requirement (the opposite of whitelist).Requirement.Builder
clearOnlyApplyToRegexp()
Optional: A list of source path regexps that will be checked for the requirement (the opposite of whitelist_regexp).Requirement.Builder
clearReportLooseTypeViolations()
Whether to report possible violations when type information is not exact.Requirement.Builder
clearRuleId()
Gives the rule an unique ID that can be used for extending in other rules through 'extends'.Requirement.Builder
clearSeverity()
optional .jscomp.Requirement.Severity severity = 12 [default = WARNING];
Requirement.Builder
clearType()
Required: The type of requirement.Requirement.Builder
clearTypeMatchingStrategy()
Strategy to use for matching types in the value parameter (e.g.Requirement.Builder
clearValue()
The value banned, optional for "custom" requirements.Requirement.Builder
clearWhitelist()
Optional: A list of source path prefixes that are exempt from the requirement.Requirement.Builder
clearWhitelistEntry()
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
Requirement.Builder
clearWhitelistRegexp()
Optional: A list of source paths regexs that are exempt from the requirement.Requirement.Builder
clone()
boolean
getAllowExtendingValue()
Whether to allow subconfigs to extend the "value" field.java.lang.String
getConfigFile(int index)
The file(s) that defined this requirement.com.google.protobuf.ByteString
getConfigFileBytes(int index)
The file(s) that defined this requirement.int
getConfigFileCount()
The file(s) that defined this requirement.com.google.protobuf.ProtocolStringList
getConfigFileList()
The file(s) that defined this requirement.Requirement
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
java.lang.String
getErrorMessage()
Required: The message to report when a requirement is violated.com.google.protobuf.ByteString
getErrorMessageBytes()
Required: The message to report when a requirement is violated.java.lang.String
getExtends()
Allows extending whitelists of rules with the specified rule_id.com.google.protobuf.ByteString
getExtendsBytes()
Allows extending whitelists of rules with the specified rule_id.java.lang.String
getJavaClass()
For "custom" requirements, the Java class used to enforce the requirement.com.google.protobuf.ByteString
getJavaClassBytes()
For "custom" requirements, the Java class used to enforce the requirement.java.lang.String
getOnlyApplyTo(int index)
Optional: A list of source paths that will be checked for the requirement (the opposite of whitelist).com.google.protobuf.ByteString
getOnlyApplyToBytes(int index)
Optional: A list of source paths that will be checked for the requirement (the opposite of whitelist).int
getOnlyApplyToCount()
Optional: A list of source paths that will be checked for the requirement (the opposite of whitelist).com.google.protobuf.ProtocolStringList
getOnlyApplyToList()
Optional: A list of source paths that will be checked for the requirement (the opposite of whitelist).java.lang.String
getOnlyApplyToRegexp(int index)
Optional: A list of source path regexps that will be checked for the requirement (the opposite of whitelist_regexp).com.google.protobuf.ByteString
getOnlyApplyToRegexpBytes(int index)
Optional: A list of source path regexps that will be checked for the requirement (the opposite of whitelist_regexp).int
getOnlyApplyToRegexpCount()
Optional: A list of source path regexps that will be checked for the requirement (the opposite of whitelist_regexp).com.google.protobuf.ProtocolStringList
getOnlyApplyToRegexpList()
Optional: A list of source path regexps that will be checked for the requirement (the opposite of whitelist_regexp).boolean
getReportLooseTypeViolations()
Whether to report possible violations when type information is not exact.java.lang.String
getRuleId()
Gives the rule an unique ID that can be used for extending in other rules through 'extends'.com.google.protobuf.ByteString
getRuleIdBytes()
Gives the rule an unique ID that can be used for extending in other rules through 'extends'.Requirement.Severity
getSeverity()
optional .jscomp.Requirement.Severity severity = 12 [default = WARNING];
Requirement.Type
getType()
Required: The type of requirement.Requirement.TypeMatchingStrategy
getTypeMatchingStrategy()
Strategy to use for matching types in the value parameter (e.g.java.lang.String
getValue(int index)
The value banned, optional for "custom" requirements.com.google.protobuf.ByteString
getValueBytes(int index)
The value banned, optional for "custom" requirements.int
getValueCount()
The value banned, optional for "custom" requirements.com.google.protobuf.ProtocolStringList
getValueList()
The value banned, optional for "custom" requirements.java.lang.String
getWhitelist(int index)
Optional: A list of source path prefixes that are exempt from the requirement.com.google.protobuf.ByteString
getWhitelistBytes(int index)
Optional: A list of source path prefixes that are exempt from the requirement.int
getWhitelistCount()
Optional: A list of source path prefixes that are exempt from the requirement.Requirement.WhitelistEntry
getWhitelistEntry(int index)
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
Requirement.WhitelistEntry.Builder
getWhitelistEntryBuilder(int index)
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
java.util.List<Requirement.WhitelistEntry.Builder>
getWhitelistEntryBuilderList()
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
int
getWhitelistEntryCount()
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
java.util.List<Requirement.WhitelistEntry>
getWhitelistEntryList()
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
Requirement.WhitelistEntryOrBuilder
getWhitelistEntryOrBuilder(int index)
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
java.util.List<? extends Requirement.WhitelistEntryOrBuilder>
getWhitelistEntryOrBuilderList()
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
com.google.protobuf.ProtocolStringList
getWhitelistList()
Optional: A list of source path prefixes that are exempt from the requirement.java.lang.String
getWhitelistRegexp(int index)
Optional: A list of source paths regexs that are exempt from the requirement.com.google.protobuf.ByteString
getWhitelistRegexpBytes(int index)
Optional: A list of source paths regexs that are exempt from the requirement.int
getWhitelistRegexpCount()
Optional: A list of source paths regexs that are exempt from the requirement.com.google.protobuf.ProtocolStringList
getWhitelistRegexpList()
Optional: A list of source paths regexs that are exempt from the requirement.boolean
hasAllowExtendingValue()
Whether to allow subconfigs to extend the "value" field.boolean
hasErrorMessage()
Required: The message to report when a requirement is violated.boolean
hasExtends()
Allows extending whitelists of rules with the specified rule_id.boolean
hasJavaClass()
For "custom" requirements, the Java class used to enforce the requirement.boolean
hasReportLooseTypeViolations()
Whether to report possible violations when type information is not exact.boolean
hasRuleId()
Gives the rule an unique ID that can be used for extending in other rules through 'extends'.boolean
hasSeverity()
optional .jscomp.Requirement.Severity severity = 12 [default = WARNING];
boolean
hasType()
Required: The type of requirement.boolean
hasTypeMatchingStrategy()
Strategy to use for matching types in the value parameter (e.g.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Requirement.Builder
mergeFrom(Requirement other)
Requirement.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Requirement.Builder
mergeFrom(com.google.protobuf.Message other)
Requirement.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Requirement.Builder
removeWhitelistEntry(int index)
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
Requirement.Builder
setAllowExtendingValue(boolean value)
Whether to allow subconfigs to extend the "value" field.Requirement.Builder
setConfigFile(int index, java.lang.String value)
The file(s) that defined this requirement.Requirement.Builder
setErrorMessage(java.lang.String value)
Required: The message to report when a requirement is violated.Requirement.Builder
setErrorMessageBytes(com.google.protobuf.ByteString value)
Required: The message to report when a requirement is violated.Requirement.Builder
setExtends(java.lang.String value)
Allows extending whitelists of rules with the specified rule_id.Requirement.Builder
setExtendsBytes(com.google.protobuf.ByteString value)
Allows extending whitelists of rules with the specified rule_id.<Type> Requirement.Builder
setExtension(com.google.protobuf.GeneratedMessage.GeneratedExtension<Requirement,java.util.List<Type>> extension, int index, Type value)
<Type> Requirement.Builder
setExtension(com.google.protobuf.GeneratedMessage.GeneratedExtension<Requirement,Type> extension, Type value)
Requirement.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
Requirement.Builder
setJavaClass(java.lang.String value)
For "custom" requirements, the Java class used to enforce the requirement.Requirement.Builder
setJavaClassBytes(com.google.protobuf.ByteString value)
For "custom" requirements, the Java class used to enforce the requirement.Requirement.Builder
setOnlyApplyTo(int index, java.lang.String value)
Optional: A list of source paths that will be checked for the requirement (the opposite of whitelist).Requirement.Builder
setOnlyApplyToRegexp(int index, java.lang.String value)
Optional: A list of source path regexps that will be checked for the requirement (the opposite of whitelist_regexp).Requirement.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
Requirement.Builder
setReportLooseTypeViolations(boolean value)
Whether to report possible violations when type information is not exact.Requirement.Builder
setRuleId(java.lang.String value)
Gives the rule an unique ID that can be used for extending in other rules through 'extends'.Requirement.Builder
setRuleIdBytes(com.google.protobuf.ByteString value)
Gives the rule an unique ID that can be used for extending in other rules through 'extends'.Requirement.Builder
setSeverity(Requirement.Severity value)
optional .jscomp.Requirement.Severity severity = 12 [default = WARNING];
Requirement.Builder
setType(Requirement.Type value)
Required: The type of requirement.Requirement.Builder
setTypeMatchingStrategy(Requirement.TypeMatchingStrategy value)
Strategy to use for matching types in the value parameter (e.g.Requirement.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Requirement.Builder
setValue(int index, java.lang.String value)
The value banned, optional for "custom" requirements.Requirement.Builder
setWhitelist(int index, java.lang.String value)
Optional: A list of source path prefixes that are exempt from the requirement.Requirement.Builder
setWhitelistEntry(int index, Requirement.WhitelistEntry value)
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
Requirement.Builder
setWhitelistEntry(int index, Requirement.WhitelistEntry.Builder builderForValue)
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
Requirement.Builder
setWhitelistRegexp(int index, java.lang.String value)
Optional: A list of source paths regexs that are exempt from the requirement.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.ExtendableBuilder
addExtension, addExtension, clearExtension, clearExtension, extensionsAreInitialized, getAllFields, getExtension, getExtension, getExtension, getExtension, getExtension, getExtension, getExtensionCount, getExtensionCount, getExtensionCount, getField, getFieldBuilder, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, hasExtension, hasExtension, hasExtension, hasField, mergeExtensionFields, newBuilderForField, setExtension, setExtension, setExtension, setExtension
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getOneofFieldDescriptor, getParentForChildren, getUnknownFields, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Requirement.Builder>
-
clear
public Requirement.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.ExtendableBuilder<Requirement,Requirement.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Requirement.Builder>
-
getDefaultInstanceForType
public Requirement getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<Requirement>
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Requirement build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Requirement buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Requirement.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<Requirement.Builder>
-
setField
public Requirement.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.ExtendableBuilder<Requirement,Requirement.Builder>
-
clearField
public Requirement.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.ExtendableBuilder<Requirement,Requirement.Builder>
-
clearOneof
public Requirement.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<Requirement.Builder>
-
setRepeatedField
public Requirement.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.ExtendableBuilder<Requirement,Requirement.Builder>
-
addRepeatedField
public Requirement.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.ExtendableBuilder<Requirement,Requirement.Builder>
-
setExtension
public <Type> Requirement.Builder setExtension(com.google.protobuf.GeneratedMessage.GeneratedExtension<Requirement,Type> extension, Type value)
- Overrides:
setExtension
in classcom.google.protobuf.GeneratedMessageV3.ExtendableBuilder<Requirement,Requirement.Builder>
-
setExtension
public <Type> Requirement.Builder setExtension(com.google.protobuf.GeneratedMessage.GeneratedExtension<Requirement,java.util.List<Type>> extension, int index, Type value)
- Overrides:
setExtension
in classcom.google.protobuf.GeneratedMessageV3.ExtendableBuilder<Requirement,Requirement.Builder>
-
addExtension
public <Type> Requirement.Builder addExtension(com.google.protobuf.GeneratedMessage.GeneratedExtension<Requirement,java.util.List<Type>> extension, Type value)
- Overrides:
addExtension
in classcom.google.protobuf.GeneratedMessageV3.ExtendableBuilder<Requirement,Requirement.Builder>
-
clearExtension
public <Type> Requirement.Builder clearExtension(com.google.protobuf.GeneratedMessage.GeneratedExtension<Requirement,?> extension)
- Overrides:
clearExtension
in classcom.google.protobuf.GeneratedMessageV3.ExtendableBuilder<Requirement,Requirement.Builder>
-
mergeFrom
public Requirement.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Requirement.Builder>
-
mergeFrom
public Requirement.Builder mergeFrom(Requirement other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.ExtendableBuilder<Requirement,Requirement.Builder>
-
mergeFrom
public Requirement.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Requirement.Builder>
- Throws:
java.io.IOException
-
hasErrorMessage
public boolean hasErrorMessage()
Required: The message to report when a requirement is violated. This should reference a document describing the reasoning for the requirement and contacts.
optional string error_message = 1;
- Specified by:
hasErrorMessage
in interfaceRequirementOrBuilder
- Returns:
- Whether the errorMessage field is set.
-
getErrorMessage
public java.lang.String getErrorMessage()
Required: The message to report when a requirement is violated. This should reference a document describing the reasoning for the requirement and contacts.
optional string error_message = 1;
- Specified by:
getErrorMessage
in interfaceRequirementOrBuilder
- Returns:
- The errorMessage.
-
getErrorMessageBytes
public com.google.protobuf.ByteString getErrorMessageBytes()
Required: The message to report when a requirement is violated. This should reference a document describing the reasoning for the requirement and contacts.
optional string error_message = 1;
- Specified by:
getErrorMessageBytes
in interfaceRequirementOrBuilder
- Returns:
- The bytes for errorMessage.
-
setErrorMessage
public Requirement.Builder setErrorMessage(java.lang.String value)
Required: The message to report when a requirement is violated. This should reference a document describing the reasoning for the requirement and contacts.
optional string error_message = 1;
- Parameters:
value
- The errorMessage to set.- Returns:
- This builder for chaining.
-
clearErrorMessage
public Requirement.Builder clearErrorMessage()
Required: The message to report when a requirement is violated. This should reference a document describing the reasoning for the requirement and contacts.
optional string error_message = 1;
- Returns:
- This builder for chaining.
-
setErrorMessageBytes
public Requirement.Builder setErrorMessageBytes(com.google.protobuf.ByteString value)
Required: The message to report when a requirement is violated. This should reference a document describing the reasoning for the requirement and contacts.
optional string error_message = 1;
- Parameters:
value
- The bytes for errorMessage to set.- Returns:
- This builder for chaining.
-
getWhitelistList
public com.google.protobuf.ProtocolStringList getWhitelistList()
Optional: A list of source path prefixes that are exempt from the requirement.
repeated string whitelist = 2;
- Specified by:
getWhitelistList
in interfaceRequirementOrBuilder
- Returns:
- A list containing the whitelist.
-
getWhitelistCount
public int getWhitelistCount()
Optional: A list of source path prefixes that are exempt from the requirement.
repeated string whitelist = 2;
- Specified by:
getWhitelistCount
in interfaceRequirementOrBuilder
- Returns:
- The count of whitelist.
-
getWhitelist
public java.lang.String getWhitelist(int index)
Optional: A list of source path prefixes that are exempt from the requirement.
repeated string whitelist = 2;
- Specified by:
getWhitelist
in interfaceRequirementOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The whitelist at the given index.
-
getWhitelistBytes
public com.google.protobuf.ByteString getWhitelistBytes(int index)
Optional: A list of source path prefixes that are exempt from the requirement.
repeated string whitelist = 2;
- Specified by:
getWhitelistBytes
in interfaceRequirementOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the whitelist at the given index.
-
setWhitelist
public Requirement.Builder setWhitelist(int index, java.lang.String value)
Optional: A list of source path prefixes that are exempt from the requirement.
repeated string whitelist = 2;
- Parameters:
index
- The index to set the value at.value
- The whitelist to set.- Returns:
- This builder for chaining.
-
addWhitelist
public Requirement.Builder addWhitelist(java.lang.String value)
Optional: A list of source path prefixes that are exempt from the requirement.
repeated string whitelist = 2;
- Parameters:
value
- The whitelist to add.- Returns:
- This builder for chaining.
-
addAllWhitelist
public Requirement.Builder addAllWhitelist(java.lang.Iterable<java.lang.String> values)
Optional: A list of source path prefixes that are exempt from the requirement.
repeated string whitelist = 2;
- Parameters:
values
- The whitelist to add.- Returns:
- This builder for chaining.
-
clearWhitelist
public Requirement.Builder clearWhitelist()
Optional: A list of source path prefixes that are exempt from the requirement.
repeated string whitelist = 2;
- Returns:
- This builder for chaining.
-
addWhitelistBytes
public Requirement.Builder addWhitelistBytes(com.google.protobuf.ByteString value)
Optional: A list of source path prefixes that are exempt from the requirement.
repeated string whitelist = 2;
- Parameters:
value
- The bytes of the whitelist to add.- Returns:
- This builder for chaining.
-
getWhitelistRegexpList
public com.google.protobuf.ProtocolStringList getWhitelistRegexpList()
Optional: A list of source paths regexs that are exempt from the requirement.
repeated string whitelist_regexp = 3;
- Specified by:
getWhitelistRegexpList
in interfaceRequirementOrBuilder
- Returns:
- A list containing the whitelistRegexp.
-
getWhitelistRegexpCount
public int getWhitelistRegexpCount()
Optional: A list of source paths regexs that are exempt from the requirement.
repeated string whitelist_regexp = 3;
- Specified by:
getWhitelistRegexpCount
in interfaceRequirementOrBuilder
- Returns:
- The count of whitelistRegexp.
-
getWhitelistRegexp
public java.lang.String getWhitelistRegexp(int index)
Optional: A list of source paths regexs that are exempt from the requirement.
repeated string whitelist_regexp = 3;
- Specified by:
getWhitelistRegexp
in interfaceRequirementOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The whitelistRegexp at the given index.
-
getWhitelistRegexpBytes
public com.google.protobuf.ByteString getWhitelistRegexpBytes(int index)
Optional: A list of source paths regexs that are exempt from the requirement.
repeated string whitelist_regexp = 3;
- Specified by:
getWhitelistRegexpBytes
in interfaceRequirementOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the whitelistRegexp at the given index.
-
setWhitelistRegexp
public Requirement.Builder setWhitelistRegexp(int index, java.lang.String value)
Optional: A list of source paths regexs that are exempt from the requirement.
repeated string whitelist_regexp = 3;
- Parameters:
index
- The index to set the value at.value
- The whitelistRegexp to set.- Returns:
- This builder for chaining.
-
addWhitelistRegexp
public Requirement.Builder addWhitelistRegexp(java.lang.String value)
Optional: A list of source paths regexs that are exempt from the requirement.
repeated string whitelist_regexp = 3;
- Parameters:
value
- The whitelistRegexp to add.- Returns:
- This builder for chaining.
-
addAllWhitelistRegexp
public Requirement.Builder addAllWhitelistRegexp(java.lang.Iterable<java.lang.String> values)
Optional: A list of source paths regexs that are exempt from the requirement.
repeated string whitelist_regexp = 3;
- Parameters:
values
- The whitelistRegexp to add.- Returns:
- This builder for chaining.
-
clearWhitelistRegexp
public Requirement.Builder clearWhitelistRegexp()
Optional: A list of source paths regexs that are exempt from the requirement.
repeated string whitelist_regexp = 3;
- Returns:
- This builder for chaining.
-
addWhitelistRegexpBytes
public Requirement.Builder addWhitelistRegexpBytes(com.google.protobuf.ByteString value)
Optional: A list of source paths regexs that are exempt from the requirement.
repeated string whitelist_regexp = 3;
- Parameters:
value
- The bytes of the whitelistRegexp to add.- Returns:
- This builder for chaining.
-
getWhitelistEntryList
public java.util.List<Requirement.WhitelistEntry> getWhitelistEntryList()
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
- Specified by:
getWhitelistEntryList
in interfaceRequirementOrBuilder
-
getWhitelistEntryCount
public int getWhitelistEntryCount()
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
- Specified by:
getWhitelistEntryCount
in interfaceRequirementOrBuilder
-
getWhitelistEntry
public Requirement.WhitelistEntry getWhitelistEntry(int index)
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
- Specified by:
getWhitelistEntry
in interfaceRequirementOrBuilder
-
setWhitelistEntry
public Requirement.Builder setWhitelistEntry(int index, Requirement.WhitelistEntry value)
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
-
setWhitelistEntry
public Requirement.Builder setWhitelistEntry(int index, Requirement.WhitelistEntry.Builder builderForValue)
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
-
addWhitelistEntry
public Requirement.Builder addWhitelistEntry(Requirement.WhitelistEntry value)
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
-
addWhitelistEntry
public Requirement.Builder addWhitelistEntry(int index, Requirement.WhitelistEntry value)
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
-
addWhitelistEntry
public Requirement.Builder addWhitelistEntry(Requirement.WhitelistEntry.Builder builderForValue)
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
-
addWhitelistEntry
public Requirement.Builder addWhitelistEntry(int index, Requirement.WhitelistEntry.Builder builderForValue)
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
-
addAllWhitelistEntry
public Requirement.Builder addAllWhitelistEntry(java.lang.Iterable<? extends Requirement.WhitelistEntry> values)
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
-
clearWhitelistEntry
public Requirement.Builder clearWhitelistEntry()
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
-
removeWhitelistEntry
public Requirement.Builder removeWhitelistEntry(int index)
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
-
getWhitelistEntryBuilder
public Requirement.WhitelistEntry.Builder getWhitelistEntryBuilder(int index)
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
-
getWhitelistEntryOrBuilder
public Requirement.WhitelistEntryOrBuilder getWhitelistEntryOrBuilder(int index)
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
- Specified by:
getWhitelistEntryOrBuilder
in interfaceRequirementOrBuilder
-
getWhitelistEntryOrBuilderList
public java.util.List<? extends Requirement.WhitelistEntryOrBuilder> getWhitelistEntryOrBuilderList()
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
- Specified by:
getWhitelistEntryOrBuilderList
in interfaceRequirementOrBuilder
-
addWhitelistEntryBuilder
public Requirement.WhitelistEntry.Builder addWhitelistEntryBuilder()
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
-
addWhitelistEntryBuilder
public Requirement.WhitelistEntry.Builder addWhitelistEntryBuilder(int index)
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
-
getWhitelistEntryBuilderList
public java.util.List<Requirement.WhitelistEntry.Builder> getWhitelistEntryBuilderList()
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;
-
getOnlyApplyToList
public com.google.protobuf.ProtocolStringList getOnlyApplyToList()
Optional: A list of source paths that will be checked for the requirement (the opposite of whitelist).
repeated string only_apply_to = 4;
- Specified by:
getOnlyApplyToList
in interfaceRequirementOrBuilder
- Returns:
- A list containing the onlyApplyTo.
-
getOnlyApplyToCount
public int getOnlyApplyToCount()
Optional: A list of source paths that will be checked for the requirement (the opposite of whitelist).
repeated string only_apply_to = 4;
- Specified by:
getOnlyApplyToCount
in interfaceRequirementOrBuilder
- Returns:
- The count of onlyApplyTo.
-
getOnlyApplyTo
public java.lang.String getOnlyApplyTo(int index)
Optional: A list of source paths that will be checked for the requirement (the opposite of whitelist).
repeated string only_apply_to = 4;
- Specified by:
getOnlyApplyTo
in interfaceRequirementOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The onlyApplyTo at the given index.
-
getOnlyApplyToBytes
public com.google.protobuf.ByteString getOnlyApplyToBytes(int index)
Optional: A list of source paths that will be checked for the requirement (the opposite of whitelist).
repeated string only_apply_to = 4;
- Specified by:
getOnlyApplyToBytes
in interfaceRequirementOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the onlyApplyTo at the given index.
-
setOnlyApplyTo
public Requirement.Builder setOnlyApplyTo(int index, java.lang.String value)
Optional: A list of source paths that will be checked for the requirement (the opposite of whitelist).
repeated string only_apply_to = 4;
- Parameters:
index
- The index to set the value at.value
- The onlyApplyTo to set.- Returns:
- This builder for chaining.
-
addOnlyApplyTo
public Requirement.Builder addOnlyApplyTo(java.lang.String value)
Optional: A list of source paths that will be checked for the requirement (the opposite of whitelist).
repeated string only_apply_to = 4;
- Parameters:
value
- The onlyApplyTo to add.- Returns:
- This builder for chaining.
-
addAllOnlyApplyTo
public Requirement.Builder addAllOnlyApplyTo(java.lang.Iterable<java.lang.String> values)
Optional: A list of source paths that will be checked for the requirement (the opposite of whitelist).
repeated string only_apply_to = 4;
- Parameters:
values
- The onlyApplyTo to add.- Returns:
- This builder for chaining.
-
clearOnlyApplyTo
public Requirement.Builder clearOnlyApplyTo()
Optional: A list of source paths that will be checked for the requirement (the opposite of whitelist).
repeated string only_apply_to = 4;
- Returns:
- This builder for chaining.
-
addOnlyApplyToBytes
public Requirement.Builder addOnlyApplyToBytes(com.google.protobuf.ByteString value)
Optional: A list of source paths that will be checked for the requirement (the opposite of whitelist).
repeated string only_apply_to = 4;
- Parameters:
value
- The bytes of the onlyApplyTo to add.- Returns:
- This builder for chaining.
-
getOnlyApplyToRegexpList
public com.google.protobuf.ProtocolStringList getOnlyApplyToRegexpList()
Optional: A list of source path regexps that will be checked for the requirement (the opposite of whitelist_regexp).
repeated string only_apply_to_regexp = 5;
- Specified by:
getOnlyApplyToRegexpList
in interfaceRequirementOrBuilder
- Returns:
- A list containing the onlyApplyToRegexp.
-
getOnlyApplyToRegexpCount
public int getOnlyApplyToRegexpCount()
Optional: A list of source path regexps that will be checked for the requirement (the opposite of whitelist_regexp).
repeated string only_apply_to_regexp = 5;
- Specified by:
getOnlyApplyToRegexpCount
in interfaceRequirementOrBuilder
- Returns:
- The count of onlyApplyToRegexp.
-
getOnlyApplyToRegexp
public java.lang.String getOnlyApplyToRegexp(int index)
Optional: A list of source path regexps that will be checked for the requirement (the opposite of whitelist_regexp).
repeated string only_apply_to_regexp = 5;
- Specified by:
getOnlyApplyToRegexp
in interfaceRequirementOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The onlyApplyToRegexp at the given index.
-
getOnlyApplyToRegexpBytes
public com.google.protobuf.ByteString getOnlyApplyToRegexpBytes(int index)
Optional: A list of source path regexps that will be checked for the requirement (the opposite of whitelist_regexp).
repeated string only_apply_to_regexp = 5;
- Specified by:
getOnlyApplyToRegexpBytes
in interfaceRequirementOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the onlyApplyToRegexp at the given index.
-
setOnlyApplyToRegexp
public Requirement.Builder setOnlyApplyToRegexp(int index, java.lang.String value)
Optional: A list of source path regexps that will be checked for the requirement (the opposite of whitelist_regexp).
repeated string only_apply_to_regexp = 5;
- Parameters:
index
- The index to set the value at.value
- The onlyApplyToRegexp to set.- Returns:
- This builder for chaining.
-
addOnlyApplyToRegexp
public Requirement.Builder addOnlyApplyToRegexp(java.lang.String value)
Optional: A list of source path regexps that will be checked for the requirement (the opposite of whitelist_regexp).
repeated string only_apply_to_regexp = 5;
- Parameters:
value
- The onlyApplyToRegexp to add.- Returns:
- This builder for chaining.
-
addAllOnlyApplyToRegexp
public Requirement.Builder addAllOnlyApplyToRegexp(java.lang.Iterable<java.lang.String> values)
Optional: A list of source path regexps that will be checked for the requirement (the opposite of whitelist_regexp).
repeated string only_apply_to_regexp = 5;
- Parameters:
values
- The onlyApplyToRegexp to add.- Returns:
- This builder for chaining.
-
clearOnlyApplyToRegexp
public Requirement.Builder clearOnlyApplyToRegexp()
Optional: A list of source path regexps that will be checked for the requirement (the opposite of whitelist_regexp).
repeated string only_apply_to_regexp = 5;
- Returns:
- This builder for chaining.
-
addOnlyApplyToRegexpBytes
public Requirement.Builder addOnlyApplyToRegexpBytes(com.google.protobuf.ByteString value)
Optional: A list of source path regexps that will be checked for the requirement (the opposite of whitelist_regexp).
repeated string only_apply_to_regexp = 5;
- Parameters:
value
- The bytes of the onlyApplyToRegexp to add.- Returns:
- This builder for chaining.
-
hasType
public boolean hasType()
Required: The type of requirement.
optional .jscomp.Requirement.Type type = 6;
- Specified by:
hasType
in interfaceRequirementOrBuilder
- Returns:
- Whether the type field is set.
-
getType
public Requirement.Type getType()
Required: The type of requirement.
optional .jscomp.Requirement.Type type = 6;
- Specified by:
getType
in interfaceRequirementOrBuilder
- Returns:
- The type.
-
setType
public Requirement.Builder setType(Requirement.Type value)
Required: The type of requirement.
optional .jscomp.Requirement.Type type = 6;
- Parameters:
value
- The type to set.- Returns:
- This builder for chaining.
-
clearType
public Requirement.Builder clearType()
Required: The type of requirement.
optional .jscomp.Requirement.Type type = 6;
- Returns:
- This builder for chaining.
-
getValueList
public com.google.protobuf.ProtocolStringList getValueList()
The value banned, optional for "custom" requirements. Some custom requirements repurpose this for different purposes, such as for whitelists of types.
repeated string value = 7;
- Specified by:
getValueList
in interfaceRequirementOrBuilder
- Returns:
- A list containing the value.
-
getValueCount
public int getValueCount()
The value banned, optional for "custom" requirements. Some custom requirements repurpose this for different purposes, such as for whitelists of types.
repeated string value = 7;
- Specified by:
getValueCount
in interfaceRequirementOrBuilder
- Returns:
- The count of value.
-
getValue
public java.lang.String getValue(int index)
The value banned, optional for "custom" requirements. Some custom requirements repurpose this for different purposes, such as for whitelists of types.
repeated string value = 7;
- Specified by:
getValue
in interfaceRequirementOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The value at the given index.
-
getValueBytes
public com.google.protobuf.ByteString getValueBytes(int index)
The value banned, optional for "custom" requirements. Some custom requirements repurpose this for different purposes, such as for whitelists of types.
repeated string value = 7;
- Specified by:
getValueBytes
in interfaceRequirementOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the value at the given index.
-
setValue
public Requirement.Builder setValue(int index, java.lang.String value)
The value banned, optional for "custom" requirements. Some custom requirements repurpose this for different purposes, such as for whitelists of types.
repeated string value = 7;
- Parameters:
index
- The index to set the value at.value
- The value to set.- Returns:
- This builder for chaining.
-
addValue
public Requirement.Builder addValue(java.lang.String value)
The value banned, optional for "custom" requirements. Some custom requirements repurpose this for different purposes, such as for whitelists of types.
repeated string value = 7;
- Parameters:
value
- The value to add.- Returns:
- This builder for chaining.
-
addAllValue
public Requirement.Builder addAllValue(java.lang.Iterable<java.lang.String> values)
The value banned, optional for "custom" requirements. Some custom requirements repurpose this for different purposes, such as for whitelists of types.
repeated string value = 7;
- Parameters:
values
- The value to add.- Returns:
- This builder for chaining.
-
clearValue
public Requirement.Builder clearValue()
The value banned, optional for "custom" requirements. Some custom requirements repurpose this for different purposes, such as for whitelists of types.
repeated string value = 7;
- Returns:
- This builder for chaining.
-
addValueBytes
public Requirement.Builder addValueBytes(com.google.protobuf.ByteString value)
The value banned, optional for "custom" requirements. Some custom requirements repurpose this for different purposes, such as for whitelists of types.
repeated string value = 7;
- Parameters:
value
- The bytes of the value to add.- Returns:
- This builder for chaining.
-
hasAllowExtendingValue
public boolean hasAllowExtendingValue()
Whether to allow subconfigs to extend the "value" field. This does not make sense for banning values, but when the value is used as a whitelist, it becomes important.
optional bool allow_extending_value = 15;
- Specified by:
hasAllowExtendingValue
in interfaceRequirementOrBuilder
- Returns:
- Whether the allowExtendingValue field is set.
-
getAllowExtendingValue
public boolean getAllowExtendingValue()
Whether to allow subconfigs to extend the "value" field. This does not make sense for banning values, but when the value is used as a whitelist, it becomes important.
optional bool allow_extending_value = 15;
- Specified by:
getAllowExtendingValue
in interfaceRequirementOrBuilder
- Returns:
- The allowExtendingValue.
-
setAllowExtendingValue
public Requirement.Builder setAllowExtendingValue(boolean value)
Whether to allow subconfigs to extend the "value" field. This does not make sense for banning values, but when the value is used as a whitelist, it becomes important.
optional bool allow_extending_value = 15;
- Parameters:
value
- The allowExtendingValue to set.- Returns:
- This builder for chaining.
-
clearAllowExtendingValue
public Requirement.Builder clearAllowExtendingValue()
Whether to allow subconfigs to extend the "value" field. This does not make sense for banning values, but when the value is used as a whitelist, it becomes important.
optional bool allow_extending_value = 15;
- Returns:
- This builder for chaining.
-
hasTypeMatchingStrategy
public boolean hasTypeMatchingStrategy()
Strategy to use for matching types in the value parameter (e.g. for BANNED_CODE_PATTERN checks).
optional .jscomp.Requirement.TypeMatchingStrategy type_matching_strategy = 13 [default = LOOSE];
- Specified by:
hasTypeMatchingStrategy
in interfaceRequirementOrBuilder
- Returns:
- Whether the typeMatchingStrategy field is set.
-
getTypeMatchingStrategy
public Requirement.TypeMatchingStrategy getTypeMatchingStrategy()
Strategy to use for matching types in the value parameter (e.g. for BANNED_CODE_PATTERN checks).
optional .jscomp.Requirement.TypeMatchingStrategy type_matching_strategy = 13 [default = LOOSE];
- Specified by:
getTypeMatchingStrategy
in interfaceRequirementOrBuilder
- Returns:
- The typeMatchingStrategy.
-
setTypeMatchingStrategy
public Requirement.Builder setTypeMatchingStrategy(Requirement.TypeMatchingStrategy value)
Strategy to use for matching types in the value parameter (e.g. for BANNED_CODE_PATTERN checks).
optional .jscomp.Requirement.TypeMatchingStrategy type_matching_strategy = 13 [default = LOOSE];
- Parameters:
value
- The typeMatchingStrategy to set.- Returns:
- This builder for chaining.
-
clearTypeMatchingStrategy
public Requirement.Builder clearTypeMatchingStrategy()
Strategy to use for matching types in the value parameter (e.g. for BANNED_CODE_PATTERN checks).
optional .jscomp.Requirement.TypeMatchingStrategy type_matching_strategy = 13 [default = LOOSE];
- Returns:
- This builder for chaining.
-
hasJavaClass
public boolean hasJavaClass()
For "custom" requirements, the Java class used to enforce the requirement. Ignored otherwise.
optional string java_class = 8;
- Specified by:
hasJavaClass
in interfaceRequirementOrBuilder
- Returns:
- Whether the javaClass field is set.
-
getJavaClass
public java.lang.String getJavaClass()
For "custom" requirements, the Java class used to enforce the requirement. Ignored otherwise.
optional string java_class = 8;
- Specified by:
getJavaClass
in interfaceRequirementOrBuilder
- Returns:
- The javaClass.
-
getJavaClassBytes
public com.google.protobuf.ByteString getJavaClassBytes()
For "custom" requirements, the Java class used to enforce the requirement. Ignored otherwise.
optional string java_class = 8;
- Specified by:
getJavaClassBytes
in interfaceRequirementOrBuilder
- Returns:
- The bytes for javaClass.
-
setJavaClass
public Requirement.Builder setJavaClass(java.lang.String value)
For "custom" requirements, the Java class used to enforce the requirement. Ignored otherwise.
optional string java_class = 8;
- Parameters:
value
- The javaClass to set.- Returns:
- This builder for chaining.
-
clearJavaClass
public Requirement.Builder clearJavaClass()
For "custom" requirements, the Java class used to enforce the requirement. Ignored otherwise.
optional string java_class = 8;
- Returns:
- This builder for chaining.
-
setJavaClassBytes
public Requirement.Builder setJavaClassBytes(com.google.protobuf.ByteString value)
For "custom" requirements, the Java class used to enforce the requirement. Ignored otherwise.
optional string java_class = 8;
- Parameters:
value
- The bytes for javaClass to set.- Returns:
- This builder for chaining.
-
hasRuleId
public boolean hasRuleId()
Gives the rule an unique ID that can be used for extending in other rules through 'extends'. An example of ID is 'closure:innerHtml'.
optional string rule_id = 9;
- Specified by:
hasRuleId
in interfaceRequirementOrBuilder
- Returns:
- Whether the ruleId field is set.
-
getRuleId
public java.lang.String getRuleId()
Gives the rule an unique ID that can be used for extending in other rules through 'extends'. An example of ID is 'closure:innerHtml'.
optional string rule_id = 9;
- Specified by:
getRuleId
in interfaceRequirementOrBuilder
- Returns:
- The ruleId.
-
getRuleIdBytes
public com.google.protobuf.ByteString getRuleIdBytes()
Gives the rule an unique ID that can be used for extending in other rules through 'extends'. An example of ID is 'closure:innerHtml'.
optional string rule_id = 9;
- Specified by:
getRuleIdBytes
in interfaceRequirementOrBuilder
- Returns:
- The bytes for ruleId.
-
setRuleId
public Requirement.Builder setRuleId(java.lang.String value)
Gives the rule an unique ID that can be used for extending in other rules through 'extends'. An example of ID is 'closure:innerHtml'.
optional string rule_id = 9;
- Parameters:
value
- The ruleId to set.- Returns:
- This builder for chaining.
-
clearRuleId
public Requirement.Builder clearRuleId()
Gives the rule an unique ID that can be used for extending in other rules through 'extends'. An example of ID is 'closure:innerHtml'.
optional string rule_id = 9;
- Returns:
- This builder for chaining.
-
setRuleIdBytes
public Requirement.Builder setRuleIdBytes(com.google.protobuf.ByteString value)
Gives the rule an unique ID that can be used for extending in other rules through 'extends'. An example of ID is 'closure:innerHtml'.
optional string rule_id = 9;
- Parameters:
value
- The bytes for ruleId to set.- Returns:
- This builder for chaining.
-
hasExtends
public boolean hasExtends()
Allows extending whitelists of rules with the specified rule_id. If this field is specified then all fields except whitelist, whitelist_regexp, only_apply_to and only_apply_to_regexp are ignored.
optional string extends = 10;
- Specified by:
hasExtends
in interfaceRequirementOrBuilder
- Returns:
- Whether the extends field is set.
-
getExtends
public java.lang.String getExtends()
Allows extending whitelists of rules with the specified rule_id. If this field is specified then all fields except whitelist, whitelist_regexp, only_apply_to and only_apply_to_regexp are ignored.
optional string extends = 10;
- Specified by:
getExtends
in interfaceRequirementOrBuilder
- Returns:
- The extends.
-
getExtendsBytes
public com.google.protobuf.ByteString getExtendsBytes()
Allows extending whitelists of rules with the specified rule_id. If this field is specified then all fields except whitelist, whitelist_regexp, only_apply_to and only_apply_to_regexp are ignored.
optional string extends = 10;
- Specified by:
getExtendsBytes
in interfaceRequirementOrBuilder
- Returns:
- The bytes for extends.
-
setExtends
public Requirement.Builder setExtends(java.lang.String value)
Allows extending whitelists of rules with the specified rule_id. If this field is specified then all fields except whitelist, whitelist_regexp, only_apply_to and only_apply_to_regexp are ignored.
optional string extends = 10;
- Parameters:
value
- The extends to set.- Returns:
- This builder for chaining.
-
clearExtends
public Requirement.Builder clearExtends()
Allows extending whitelists of rules with the specified rule_id. If this field is specified then all fields except whitelist, whitelist_regexp, only_apply_to and only_apply_to_regexp are ignored.
optional string extends = 10;
- Returns:
- This builder for chaining.
-
setExtendsBytes
public Requirement.Builder setExtendsBytes(com.google.protobuf.ByteString value)
Allows extending whitelists of rules with the specified rule_id. If this field is specified then all fields except whitelist, whitelist_regexp, only_apply_to and only_apply_to_regexp are ignored.
optional string extends = 10;
- Parameters:
value
- The bytes for extends to set.- Returns:
- This builder for chaining.
-
hasReportLooseTypeViolations
public boolean hasReportLooseTypeViolations()
Whether to report possible violations when type information is not exact. Normally, violations on parent types are reported as possible violations. This field allows to ignore them and report only violations on exact types. This changes the balance between the false positives and the false negatives. With the default value, there might be lots of false positives (possible violations) but there shouldn't be any false negatives. Without reporting the loose type violations, there will be less false positives but there can also be false negatives (an actual violation that is not reported).
optional bool report_loose_type_violations = 11 [default = true];
- Specified by:
hasReportLooseTypeViolations
in interfaceRequirementOrBuilder
- Returns:
- Whether the reportLooseTypeViolations field is set.
-
getReportLooseTypeViolations
public boolean getReportLooseTypeViolations()
Whether to report possible violations when type information is not exact. Normally, violations on parent types are reported as possible violations. This field allows to ignore them and report only violations on exact types. This changes the balance between the false positives and the false negatives. With the default value, there might be lots of false positives (possible violations) but there shouldn't be any false negatives. Without reporting the loose type violations, there will be less false positives but there can also be false negatives (an actual violation that is not reported).
optional bool report_loose_type_violations = 11 [default = true];
- Specified by:
getReportLooseTypeViolations
in interfaceRequirementOrBuilder
- Returns:
- The reportLooseTypeViolations.
-
setReportLooseTypeViolations
public Requirement.Builder setReportLooseTypeViolations(boolean value)
Whether to report possible violations when type information is not exact. Normally, violations on parent types are reported as possible violations. This field allows to ignore them and report only violations on exact types. This changes the balance between the false positives and the false negatives. With the default value, there might be lots of false positives (possible violations) but there shouldn't be any false negatives. Without reporting the loose type violations, there will be less false positives but there can also be false negatives (an actual violation that is not reported).
optional bool report_loose_type_violations = 11 [default = true];
- Parameters:
value
- The reportLooseTypeViolations to set.- Returns:
- This builder for chaining.
-
clearReportLooseTypeViolations
public Requirement.Builder clearReportLooseTypeViolations()
Whether to report possible violations when type information is not exact. Normally, violations on parent types are reported as possible violations. This field allows to ignore them and report only violations on exact types. This changes the balance between the false positives and the false negatives. With the default value, there might be lots of false positives (possible violations) but there shouldn't be any false negatives. Without reporting the loose type violations, there will be less false positives but there can also be false negatives (an actual violation that is not reported).
optional bool report_loose_type_violations = 11 [default = true];
- Returns:
- This builder for chaining.
-
hasSeverity
public boolean hasSeverity()
optional .jscomp.Requirement.Severity severity = 12 [default = WARNING];
- Specified by:
hasSeverity
in interfaceRequirementOrBuilder
- Returns:
- Whether the severity field is set.
-
getSeverity
public Requirement.Severity getSeverity()
optional .jscomp.Requirement.Severity severity = 12 [default = WARNING];
- Specified by:
getSeverity
in interfaceRequirementOrBuilder
- Returns:
- The severity.
-
setSeverity
public Requirement.Builder setSeverity(Requirement.Severity value)
optional .jscomp.Requirement.Severity severity = 12 [default = WARNING];
- Parameters:
value
- The severity to set.- Returns:
- This builder for chaining.
-
clearSeverity
public Requirement.Builder clearSeverity()
optional .jscomp.Requirement.Severity severity = 12 [default = WARNING];
- Returns:
- This builder for chaining.
-
getConfigFileList
public com.google.protobuf.ProtocolStringList getConfigFileList()
The file(s) that defined this requirement. If the requirement is extended, then all extending files are included as well. These will be printed in the error message.
repeated string config_file = 16;
- Specified by:
getConfigFileList
in interfaceRequirementOrBuilder
- Returns:
- A list containing the configFile.
-
getConfigFileCount
public int getConfigFileCount()
The file(s) that defined this requirement. If the requirement is extended, then all extending files are included as well. These will be printed in the error message.
repeated string config_file = 16;
- Specified by:
getConfigFileCount
in interfaceRequirementOrBuilder
- Returns:
- The count of configFile.
-
getConfigFile
public java.lang.String getConfigFile(int index)
The file(s) that defined this requirement. If the requirement is extended, then all extending files are included as well. These will be printed in the error message.
repeated string config_file = 16;
- Specified by:
getConfigFile
in interfaceRequirementOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The configFile at the given index.
-
getConfigFileBytes
public com.google.protobuf.ByteString getConfigFileBytes(int index)
The file(s) that defined this requirement. If the requirement is extended, then all extending files are included as well. These will be printed in the error message.
repeated string config_file = 16;
- Specified by:
getConfigFileBytes
in interfaceRequirementOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the configFile at the given index.
-
setConfigFile
public Requirement.Builder setConfigFile(int index, java.lang.String value)
The file(s) that defined this requirement. If the requirement is extended, then all extending files are included as well. These will be printed in the error message.
repeated string config_file = 16;
- Parameters:
index
- The index to set the value at.value
- The configFile to set.- Returns:
- This builder for chaining.
-
addConfigFile
public Requirement.Builder addConfigFile(java.lang.String value)
The file(s) that defined this requirement. If the requirement is extended, then all extending files are included as well. These will be printed in the error message.
repeated string config_file = 16;
- Parameters:
value
- The configFile to add.- Returns:
- This builder for chaining.
-
addAllConfigFile
public Requirement.Builder addAllConfigFile(java.lang.Iterable<java.lang.String> values)
The file(s) that defined this requirement. If the requirement is extended, then all extending files are included as well. These will be printed in the error message.
repeated string config_file = 16;
- Parameters:
values
- The configFile to add.- Returns:
- This builder for chaining.
-
clearConfigFile
public Requirement.Builder clearConfigFile()
The file(s) that defined this requirement. If the requirement is extended, then all extending files are included as well. These will be printed in the error message.
repeated string config_file = 16;
- Returns:
- This builder for chaining.
-
addConfigFileBytes
public Requirement.Builder addConfigFileBytes(com.google.protobuf.ByteString value)
The file(s) that defined this requirement. If the requirement is extended, then all extending files are included as well. These will be printed in the error message.
repeated string config_file = 16;
- Parameters:
value
- The bytes of the configFile to add.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Requirement.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Requirement.Builder>
-
mergeUnknownFields
public final Requirement.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Requirement.Builder>
-
-