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.BuilderaddAllConfigFile(java.lang.Iterable<java.lang.String> values)The file(s) that defined this requirement.Requirement.BuilderaddAllOnlyApplyTo(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.BuilderaddAllOnlyApplyToRegexp(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.BuilderaddAllValue(java.lang.Iterable<java.lang.String> values)The value banned, optional for "custom" requirements.Requirement.BuilderaddAllWhitelist(java.lang.Iterable<java.lang.String> values)Optional: A list of source path prefixes that are exempt from the requirement.Requirement.BuilderaddAllWhitelistEntry(java.lang.Iterable<? extends Requirement.WhitelistEntry> values)repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;Requirement.BuilderaddAllWhitelistRegexp(java.lang.Iterable<java.lang.String> values)Optional: A list of source paths regexs that are exempt from the requirement.Requirement.BuilderaddConfigFile(java.lang.String value)The file(s) that defined this requirement.Requirement.BuilderaddConfigFileBytes(com.google.protobuf.ByteString value)The file(s) that defined this requirement.<Type> Requirement.BuilderaddExtension(com.google.protobuf.GeneratedMessage.GeneratedExtension<Requirement,java.util.List<Type>> extension, Type value)Requirement.BuilderaddOnlyApplyTo(java.lang.String value)Optional: A list of source paths that will be checked for the requirement (the opposite of whitelist).Requirement.BuilderaddOnlyApplyToBytes(com.google.protobuf.ByteString value)Optional: A list of source paths that will be checked for the requirement (the opposite of whitelist).Requirement.BuilderaddOnlyApplyToRegexp(java.lang.String value)Optional: A list of source path regexps that will be checked for the requirement (the opposite of whitelist_regexp).Requirement.BuilderaddOnlyApplyToRegexpBytes(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.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Requirement.BuilderaddValue(java.lang.String value)The value banned, optional for "custom" requirements.Requirement.BuilderaddValueBytes(com.google.protobuf.ByteString value)The value banned, optional for "custom" requirements.Requirement.BuilderaddWhitelist(java.lang.String value)Optional: A list of source path prefixes that are exempt from the requirement.Requirement.BuilderaddWhitelistBytes(com.google.protobuf.ByteString value)Optional: A list of source path prefixes that are exempt from the requirement.Requirement.BuilderaddWhitelistEntry(int index, Requirement.WhitelistEntry value)repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;Requirement.BuilderaddWhitelistEntry(int index, Requirement.WhitelistEntry.Builder builderForValue)repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;Requirement.BuilderaddWhitelistEntry(Requirement.WhitelistEntry value)repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;Requirement.BuilderaddWhitelistEntry(Requirement.WhitelistEntry.Builder builderForValue)repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;Requirement.WhitelistEntry.BuilderaddWhitelistEntryBuilder()repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;Requirement.WhitelistEntry.BuilderaddWhitelistEntryBuilder(int index)repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;Requirement.BuilderaddWhitelistRegexp(java.lang.String value)Optional: A list of source paths regexs that are exempt from the requirement.Requirement.BuilderaddWhitelistRegexpBytes(com.google.protobuf.ByteString value)Optional: A list of source paths regexs that are exempt from the requirement.Requirementbuild()RequirementbuildPartial()Requirement.Builderclear()Requirement.BuilderclearAllowExtendingValue()Whether to allow subconfigs to extend the "value" field.Requirement.BuilderclearConfigFile()The file(s) that defined this requirement.Requirement.BuilderclearErrorMessage()Required: The message to report when a requirement is violated.Requirement.BuilderclearExtends()Allows extending whitelists of rules with the specified rule_id.<Type> Requirement.BuilderclearExtension(com.google.protobuf.GeneratedMessage.GeneratedExtension<Requirement,?> extension)Requirement.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Requirement.BuilderclearJavaClass()For "custom" requirements, the Java class used to enforce the requirement.Requirement.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Requirement.BuilderclearOnlyApplyTo()Optional: A list of source paths that will be checked for the requirement (the opposite of whitelist).Requirement.BuilderclearOnlyApplyToRegexp()Optional: A list of source path regexps that will be checked for the requirement (the opposite of whitelist_regexp).Requirement.BuilderclearReportLooseTypeViolations()Whether to report possible violations when type information is not exact.Requirement.BuilderclearRuleId()Gives the rule an unique ID that can be used for extending in other rules through 'extends'.Requirement.BuilderclearSeverity()optional .jscomp.Requirement.Severity severity = 12 [default = WARNING];Requirement.BuilderclearType()Required: The type of requirement.Requirement.BuilderclearTypeMatchingStrategy()Strategy to use for matching types in the value parameter (e.g.Requirement.BuilderclearValue()The value banned, optional for "custom" requirements.Requirement.BuilderclearWhitelist()Optional: A list of source path prefixes that are exempt from the requirement.Requirement.BuilderclearWhitelistEntry()repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;Requirement.BuilderclearWhitelistRegexp()Optional: A list of source paths regexs that are exempt from the requirement.Requirement.Builderclone()booleangetAllowExtendingValue()Whether to allow subconfigs to extend the "value" field.java.lang.StringgetConfigFile(int index)The file(s) that defined this requirement.com.google.protobuf.ByteStringgetConfigFileBytes(int index)The file(s) that defined this requirement.intgetConfigFileCount()The file(s) that defined this requirement.com.google.protobuf.ProtocolStringListgetConfigFileList()The file(s) that defined this requirement.RequirementgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()java.lang.StringgetErrorMessage()Required: The message to report when a requirement is violated.com.google.protobuf.ByteStringgetErrorMessageBytes()Required: The message to report when a requirement is violated.java.lang.StringgetExtends()Allows extending whitelists of rules with the specified rule_id.com.google.protobuf.ByteStringgetExtendsBytes()Allows extending whitelists of rules with the specified rule_id.java.lang.StringgetJavaClass()For "custom" requirements, the Java class used to enforce the requirement.com.google.protobuf.ByteStringgetJavaClassBytes()For "custom" requirements, the Java class used to enforce the requirement.java.lang.StringgetOnlyApplyTo(int index)Optional: A list of source paths that will be checked for the requirement (the opposite of whitelist).com.google.protobuf.ByteStringgetOnlyApplyToBytes(int index)Optional: A list of source paths that will be checked for the requirement (the opposite of whitelist).intgetOnlyApplyToCount()Optional: A list of source paths that will be checked for the requirement (the opposite of whitelist).com.google.protobuf.ProtocolStringListgetOnlyApplyToList()Optional: A list of source paths that will be checked for the requirement (the opposite of whitelist).java.lang.StringgetOnlyApplyToRegexp(int index)Optional: A list of source path regexps that will be checked for the requirement (the opposite of whitelist_regexp).com.google.protobuf.ByteStringgetOnlyApplyToRegexpBytes(int index)Optional: A list of source path regexps that will be checked for the requirement (the opposite of whitelist_regexp).intgetOnlyApplyToRegexpCount()Optional: A list of source path regexps that will be checked for the requirement (the opposite of whitelist_regexp).com.google.protobuf.ProtocolStringListgetOnlyApplyToRegexpList()Optional: A list of source path regexps that will be checked for the requirement (the opposite of whitelist_regexp).booleangetReportLooseTypeViolations()Whether to report possible violations when type information is not exact.java.lang.StringgetRuleId()Gives the rule an unique ID that can be used for extending in other rules through 'extends'.com.google.protobuf.ByteStringgetRuleIdBytes()Gives the rule an unique ID that can be used for extending in other rules through 'extends'.Requirement.SeveritygetSeverity()optional .jscomp.Requirement.Severity severity = 12 [default = WARNING];Requirement.TypegetType()Required: The type of requirement.Requirement.TypeMatchingStrategygetTypeMatchingStrategy()Strategy to use for matching types in the value parameter (e.g.java.lang.StringgetValue(int index)The value banned, optional for "custom" requirements.com.google.protobuf.ByteStringgetValueBytes(int index)The value banned, optional for "custom" requirements.intgetValueCount()The value banned, optional for "custom" requirements.com.google.protobuf.ProtocolStringListgetValueList()The value banned, optional for "custom" requirements.java.lang.StringgetWhitelist(int index)Optional: A list of source path prefixes that are exempt from the requirement.com.google.protobuf.ByteStringgetWhitelistBytes(int index)Optional: A list of source path prefixes that are exempt from the requirement.intgetWhitelistCount()Optional: A list of source path prefixes that are exempt from the requirement.Requirement.WhitelistEntrygetWhitelistEntry(int index)repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;Requirement.WhitelistEntry.BuildergetWhitelistEntryBuilder(int index)repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;java.util.List<Requirement.WhitelistEntry.Builder>getWhitelistEntryBuilderList()repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;intgetWhitelistEntryCount()repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;java.util.List<Requirement.WhitelistEntry>getWhitelistEntryList()repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;Requirement.WhitelistEntryOrBuildergetWhitelistEntryOrBuilder(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.ProtocolStringListgetWhitelistList()Optional: A list of source path prefixes that are exempt from the requirement.java.lang.StringgetWhitelistRegexp(int index)Optional: A list of source paths regexs that are exempt from the requirement.com.google.protobuf.ByteStringgetWhitelistRegexpBytes(int index)Optional: A list of source paths regexs that are exempt from the requirement.intgetWhitelistRegexpCount()Optional: A list of source paths regexs that are exempt from the requirement.com.google.protobuf.ProtocolStringListgetWhitelistRegexpList()Optional: A list of source paths regexs that are exempt from the requirement.booleanhasAllowExtendingValue()Whether to allow subconfigs to extend the "value" field.booleanhasErrorMessage()Required: The message to report when a requirement is violated.booleanhasExtends()Allows extending whitelists of rules with the specified rule_id.booleanhasJavaClass()For "custom" requirements, the Java class used to enforce the requirement.booleanhasReportLooseTypeViolations()Whether to report possible violations when type information is not exact.booleanhasRuleId()Gives the rule an unique ID that can be used for extending in other rules through 'extends'.booleanhasSeverity()optional .jscomp.Requirement.Severity severity = 12 [default = WARNING];booleanhasType()Required: The type of requirement.booleanhasTypeMatchingStrategy()Strategy to use for matching types in the value parameter (e.g.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Requirement.BuildermergeFrom(Requirement other)Requirement.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Requirement.BuildermergeFrom(com.google.protobuf.Message other)Requirement.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Requirement.BuilderremoveWhitelistEntry(int index)repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;Requirement.BuildersetAllowExtendingValue(boolean value)Whether to allow subconfigs to extend the "value" field.Requirement.BuildersetConfigFile(int index, java.lang.String value)The file(s) that defined this requirement.Requirement.BuildersetErrorMessage(java.lang.String value)Required: The message to report when a requirement is violated.Requirement.BuildersetErrorMessageBytes(com.google.protobuf.ByteString value)Required: The message to report when a requirement is violated.Requirement.BuildersetExtends(java.lang.String value)Allows extending whitelists of rules with the specified rule_id.Requirement.BuildersetExtendsBytes(com.google.protobuf.ByteString value)Allows extending whitelists of rules with the specified rule_id.<Type> Requirement.BuildersetExtension(com.google.protobuf.GeneratedMessage.GeneratedExtension<Requirement,java.util.List<Type>> extension, int index, Type value)<Type> Requirement.BuildersetExtension(com.google.protobuf.GeneratedMessage.GeneratedExtension<Requirement,Type> extension, Type value)Requirement.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Requirement.BuildersetJavaClass(java.lang.String value)For "custom" requirements, the Java class used to enforce the requirement.Requirement.BuildersetJavaClassBytes(com.google.protobuf.ByteString value)For "custom" requirements, the Java class used to enforce the requirement.Requirement.BuildersetOnlyApplyTo(int index, java.lang.String value)Optional: A list of source paths that will be checked for the requirement (the opposite of whitelist).Requirement.BuildersetOnlyApplyToRegexp(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.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)Requirement.BuildersetReportLooseTypeViolations(boolean value)Whether to report possible violations when type information is not exact.Requirement.BuildersetRuleId(java.lang.String value)Gives the rule an unique ID that can be used for extending in other rules through 'extends'.Requirement.BuildersetRuleIdBytes(com.google.protobuf.ByteString value)Gives the rule an unique ID that can be used for extending in other rules through 'extends'.Requirement.BuildersetSeverity(Requirement.Severity value)optional .jscomp.Requirement.Severity severity = 12 [default = WARNING];Requirement.BuildersetType(Requirement.Type value)Required: The type of requirement.Requirement.BuildersetTypeMatchingStrategy(Requirement.TypeMatchingStrategy value)Strategy to use for matching types in the value parameter (e.g.Requirement.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Requirement.BuildersetValue(int index, java.lang.String value)The value banned, optional for "custom" requirements.Requirement.BuildersetWhitelist(int index, java.lang.String value)Optional: A list of source path prefixes that are exempt from the requirement.Requirement.BuildersetWhitelistEntry(int index, Requirement.WhitelistEntry value)repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;Requirement.BuildersetWhitelistEntry(int index, Requirement.WhitelistEntry.Builder builderForValue)repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;Requirement.BuildersetWhitelistRegexp(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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Requirement.Builder>
-
clear
public Requirement.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.ExtendableBuilder<Requirement,Requirement.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Requirement.Builder>
-
getDefaultInstanceForType
public Requirement getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<Requirement>- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Requirement build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Requirement buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Requirement.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Requirement.Builder>
-
setField
public Requirement.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.ExtendableBuilder<Requirement,Requirement.Builder>
-
clearField
public Requirement.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.ExtendableBuilder<Requirement,Requirement.Builder>
-
clearOneof
public Requirement.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin 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:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin 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:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin 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:
setExtensionin 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:
setExtensionin 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:
addExtensionin classcom.google.protobuf.GeneratedMessageV3.ExtendableBuilder<Requirement,Requirement.Builder>
-
clearExtension
public <Type> Requirement.Builder clearExtension(com.google.protobuf.GeneratedMessage.GeneratedExtension<Requirement,?> extension)
- Overrides:
clearExtensionin classcom.google.protobuf.GeneratedMessageV3.ExtendableBuilder<Requirement,Requirement.Builder>
-
mergeFrom
public Requirement.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Requirement.Builder>
-
mergeFrom
public Requirement.Builder mergeFrom(Requirement other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin 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:
hasErrorMessagein 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:
getErrorMessagein 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:
getErrorMessageBytesin 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:
getWhitelistListin 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:
getWhitelistCountin 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:
getWhitelistin 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:
getWhitelistBytesin 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:
getWhitelistRegexpListin 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:
getWhitelistRegexpCountin 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:
getWhitelistRegexpin 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:
getWhitelistRegexpBytesin 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:
getWhitelistEntryListin interfaceRequirementOrBuilder
-
getWhitelistEntryCount
public int getWhitelistEntryCount()
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;- Specified by:
getWhitelistEntryCountin interfaceRequirementOrBuilder
-
getWhitelistEntry
public Requirement.WhitelistEntry getWhitelistEntry(int index)
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;- Specified by:
getWhitelistEntryin 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:
getWhitelistEntryOrBuilderin interfaceRequirementOrBuilder
-
getWhitelistEntryOrBuilderList
public java.util.List<? extends Requirement.WhitelistEntryOrBuilder> getWhitelistEntryOrBuilderList()
repeated .jscomp.Requirement.WhitelistEntry whitelist_entry = 14;- Specified by:
getWhitelistEntryOrBuilderListin 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:
getOnlyApplyToListin 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:
getOnlyApplyToCountin 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:
getOnlyApplyToin 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:
getOnlyApplyToBytesin 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:
getOnlyApplyToRegexpListin 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:
getOnlyApplyToRegexpCountin 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:
getOnlyApplyToRegexpin 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:
getOnlyApplyToRegexpBytesin 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:
hasTypein 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:
getTypein 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:
getValueListin 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:
getValueCountin 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:
getValuein 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:
getValueBytesin 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:
hasAllowExtendingValuein 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:
getAllowExtendingValuein 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:
hasTypeMatchingStrategyin 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:
getTypeMatchingStrategyin 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:
hasJavaClassin 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:
getJavaClassin 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:
getJavaClassBytesin 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:
hasRuleIdin 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:
getRuleIdin 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:
getRuleIdBytesin 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:
hasExtendsin 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:
getExtendsin 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:
getExtendsBytesin 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:
hasReportLooseTypeViolationsin 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:
getReportLooseTypeViolationsin 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:
hasSeverityin interfaceRequirementOrBuilder- Returns:
- Whether the severity field is set.
-
getSeverity
public Requirement.Severity getSeverity()
optional .jscomp.Requirement.Severity severity = 12 [default = WARNING];- Specified by:
getSeverityin 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:
getConfigFileListin 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:
getConfigFileCountin 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:
getConfigFilein 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:
getConfigFileBytesin 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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Requirement.Builder>
-
mergeUnknownFields
public final Requirement.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Requirement.Builder>
-
-