public final class Requirement extends com.google.protobuf.GeneratedMessageV3 implements RequirementOrBuilder
A specification of code requirements.Protobuf type
soy.Requirement| Modifier and Type | Class and Description |
|---|---|
static class |
Requirement.BannedCssSelector
Protobuf type
soy.Requirement.BannedCssSelector |
static interface |
Requirement.BannedCssSelectorOrBuilder |
static class |
Requirement.BannedDirective
Protobuf type
soy.Requirement.BannedDirective |
static interface |
Requirement.BannedDirectiveOrBuilder |
static class |
Requirement.BannedFunction
Protobuf type
soy.Requirement.BannedFunction |
static interface |
Requirement.BannedFunctionOrBuilder |
static class |
Requirement.BannedHtmlTag
Protobuf type
soy.Requirement.BannedHtmlTag |
static interface |
Requirement.BannedHtmlTagOrBuilder |
static class |
Requirement.BannedRawText
Protobuf type
soy.Requirement.BannedRawText |
static interface |
Requirement.BannedRawTextOrBuilder |
static class |
Requirement.BanXidForCssObfuscation
Bans the usage of xid for css obfuscation
|
static interface |
Requirement.BanXidForCssObfuscationOrBuilder |
static class |
Requirement.Builder
A specification of code requirements.
|
static class |
Requirement.Custom
Protobuf type
soy.Requirement.Custom |
static interface |
Requirement.CustomOrBuilder |
static class |
Requirement.RequirementTypeCase |
static class |
Requirement.RequireStrictAutoescaping
no customizable behavior
|
static interface |
Requirement.RequireStrictAutoescapingOrBuilder |
static class |
Requirement.RequireStronglyTypedIjParams
no customizable behavior
|
static interface |
Requirement.RequireStronglyTypedIjParamsOrBuilder |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
BAN_XID_FOR_CSS_OBFUSCATION_FIELD_NUMBER |
static int |
BANNED_CSS_SELECTOR_FIELD_NUMBER |
static int |
BANNED_DIRECTIVE_FIELD_NUMBER |
static int |
BANNED_FUNCTION_FIELD_NUMBER |
static int |
BANNED_HTML_TAG_FIELD_NUMBER |
static int |
BANNED_RAW_TEXT_FIELD_NUMBER |
static int |
CUSTOM_FIELD_NUMBER |
static int |
ERROR_MESSAGE_FIELD_NUMBER |
static int |
ONLY_APPLY_TO_FIELD_NUMBER |
static int |
REQUIRE_STRICT_AUTOESCAPING_FIELD_NUMBER |
static int |
REQUIRE_STRONGLY_TYPED_IJ_PARAMS_FIELD_NUMBER |
static int |
WHITELIST_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Requirement.BannedCssSelector |
getBannedCssSelector()
.soy.Requirement.BannedCssSelector banned_css_selector = 2; |
Requirement.BannedCssSelectorOrBuilder |
getBannedCssSelectorOrBuilder()
.soy.Requirement.BannedCssSelector banned_css_selector = 2; |
Requirement.BannedDirective |
getBannedDirective()
.soy.Requirement.BannedDirective banned_directive = 4; |
Requirement.BannedDirectiveOrBuilder |
getBannedDirectiveOrBuilder()
.soy.Requirement.BannedDirective banned_directive = 4; |
Requirement.BannedFunction |
getBannedFunction()
.soy.Requirement.BannedFunction banned_function = 3; |
Requirement.BannedFunctionOrBuilder |
getBannedFunctionOrBuilder()
.soy.Requirement.BannedFunction banned_function = 3; |
Requirement.BannedHtmlTag |
getBannedHtmlTag()
.soy.Requirement.BannedHtmlTag banned_html_tag = 11; |
Requirement.BannedHtmlTagOrBuilder |
getBannedHtmlTagOrBuilder()
.soy.Requirement.BannedHtmlTag banned_html_tag = 11; |
Requirement.BannedRawText |
getBannedRawText()
.soy.Requirement.BannedRawText banned_raw_text = 5; |
Requirement.BannedRawTextOrBuilder |
getBannedRawTextOrBuilder()
.soy.Requirement.BannedRawText banned_raw_text = 5; |
Requirement.BanXidForCssObfuscation |
getBanXidForCssObfuscation()
.soy.Requirement.BanXidForCssObfuscation ban_xid_for_css_obfuscation = 14; |
Requirement.BanXidForCssObfuscationOrBuilder |
getBanXidForCssObfuscationOrBuilder()
.soy.Requirement.BanXidForCssObfuscation ban_xid_for_css_obfuscation = 14; |
Requirement.Custom |
getCustom()
.soy.Requirement.Custom custom = 7; |
Requirement.CustomOrBuilder |
getCustomOrBuilder()
.soy.Requirement.Custom custom = 7; |
static Requirement |
getDefaultInstance() |
Requirement |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
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.
|
String |
getOnlyApplyTo(int index)
Optional: A list of paths.
|
com.google.protobuf.ByteString |
getOnlyApplyToBytes(int index)
Optional: A list of paths.
|
int |
getOnlyApplyToCount()
Optional: A list of paths.
|
com.google.protobuf.ProtocolStringList |
getOnlyApplyToList()
Optional: A list of paths.
|
com.google.protobuf.Parser<Requirement> |
getParserForType() |
Requirement.RequirementTypeCase |
getRequirementTypeCase() |
Requirement.RequireStrictAutoescaping |
getRequireStrictAutoescaping()
.soy.Requirement.RequireStrictAutoescaping require_strict_autoescaping = 12; |
Requirement.RequireStrictAutoescapingOrBuilder |
getRequireStrictAutoescapingOrBuilder()
.soy.Requirement.RequireStrictAutoescaping require_strict_autoescaping = 12; |
Requirement.RequireStronglyTypedIjParams |
getRequireStronglyTypedIjParams()
.soy.Requirement.RequireStronglyTypedIjParams require_strongly_typed_ij_params = 13; |
Requirement.RequireStronglyTypedIjParamsOrBuilder |
getRequireStronglyTypedIjParamsOrBuilder()
.soy.Requirement.RequireStronglyTypedIjParams require_strongly_typed_ij_params = 13; |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
String |
getWhitelist(int index)
Optional: A list of whitelisted substrings.
|
com.google.protobuf.ByteString |
getWhitelistBytes(int index)
Optional: A list of whitelisted substrings.
|
int |
getWhitelistCount()
Optional: A list of whitelisted substrings.
|
com.google.protobuf.ProtocolStringList |
getWhitelistList()
Optional: A list of whitelisted substrings.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static Requirement.Builder |
newBuilder() |
static Requirement.Builder |
newBuilder(Requirement prototype) |
Requirement.Builder |
newBuilderForType() |
protected Requirement.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static Requirement |
parseDelimitedFrom(InputStream input) |
static Requirement |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Requirement |
parseFrom(byte[] data) |
static Requirement |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Requirement |
parseFrom(ByteBuffer data) |
static Requirement |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Requirement |
parseFrom(com.google.protobuf.ByteString data) |
static Requirement |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Requirement |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Requirement |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Requirement |
parseFrom(InputStream input) |
static Requirement |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Requirement> |
parser() |
Requirement.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int BANNED_CSS_SELECTOR_FIELD_NUMBER
public static final int BANNED_FUNCTION_FIELD_NUMBER
public static final int BANNED_DIRECTIVE_FIELD_NUMBER
public static final int BANNED_RAW_TEXT_FIELD_NUMBER
public static final int CUSTOM_FIELD_NUMBER
public static final int BANNED_HTML_TAG_FIELD_NUMBER
public static final int REQUIRE_STRICT_AUTOESCAPING_FIELD_NUMBER
public static final int REQUIRE_STRONGLY_TYPED_IJ_PARAMS_FIELD_NUMBER
public static final int BAN_XID_FOR_CSS_OBFUSCATION_FIELD_NUMBER
public static final int ERROR_MESSAGE_FIELD_NUMBER
public static final int WHITELIST_FIELD_NUMBER
public static final int ONLY_APPLY_TO_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public Requirement.RequirementTypeCase getRequirementTypeCase()
getRequirementTypeCase in interface RequirementOrBuilderpublic Requirement.BannedCssSelector getBannedCssSelector()
.soy.Requirement.BannedCssSelector banned_css_selector = 2;getBannedCssSelector in interface RequirementOrBuilderpublic Requirement.BannedCssSelectorOrBuilder getBannedCssSelectorOrBuilder()
.soy.Requirement.BannedCssSelector banned_css_selector = 2;getBannedCssSelectorOrBuilder in interface RequirementOrBuilderpublic Requirement.BannedFunction getBannedFunction()
.soy.Requirement.BannedFunction banned_function = 3;getBannedFunction in interface RequirementOrBuilderpublic Requirement.BannedFunctionOrBuilder getBannedFunctionOrBuilder()
.soy.Requirement.BannedFunction banned_function = 3;getBannedFunctionOrBuilder in interface RequirementOrBuilderpublic Requirement.BannedDirective getBannedDirective()
.soy.Requirement.BannedDirective banned_directive = 4;getBannedDirective in interface RequirementOrBuilderpublic Requirement.BannedDirectiveOrBuilder getBannedDirectiveOrBuilder()
.soy.Requirement.BannedDirective banned_directive = 4;getBannedDirectiveOrBuilder in interface RequirementOrBuilderpublic Requirement.BannedRawText getBannedRawText()
.soy.Requirement.BannedRawText banned_raw_text = 5;getBannedRawText in interface RequirementOrBuilderpublic Requirement.BannedRawTextOrBuilder getBannedRawTextOrBuilder()
.soy.Requirement.BannedRawText banned_raw_text = 5;getBannedRawTextOrBuilder in interface RequirementOrBuilderpublic Requirement.Custom getCustom()
.soy.Requirement.Custom custom = 7;getCustom in interface RequirementOrBuilderpublic Requirement.CustomOrBuilder getCustomOrBuilder()
.soy.Requirement.Custom custom = 7;getCustomOrBuilder in interface RequirementOrBuilderpublic Requirement.BannedHtmlTag getBannedHtmlTag()
.soy.Requirement.BannedHtmlTag banned_html_tag = 11;getBannedHtmlTag in interface RequirementOrBuilderpublic Requirement.BannedHtmlTagOrBuilder getBannedHtmlTagOrBuilder()
.soy.Requirement.BannedHtmlTag banned_html_tag = 11;getBannedHtmlTagOrBuilder in interface RequirementOrBuilderpublic Requirement.RequireStrictAutoescaping getRequireStrictAutoescaping()
.soy.Requirement.RequireStrictAutoescaping require_strict_autoescaping = 12;getRequireStrictAutoescaping in interface RequirementOrBuilderpublic Requirement.RequireStrictAutoescapingOrBuilder getRequireStrictAutoescapingOrBuilder()
.soy.Requirement.RequireStrictAutoescaping require_strict_autoescaping = 12;getRequireStrictAutoescapingOrBuilder in interface RequirementOrBuilderpublic Requirement.RequireStronglyTypedIjParams getRequireStronglyTypedIjParams()
.soy.Requirement.RequireStronglyTypedIjParams require_strongly_typed_ij_params = 13;getRequireStronglyTypedIjParams in interface RequirementOrBuilderpublic Requirement.RequireStronglyTypedIjParamsOrBuilder getRequireStronglyTypedIjParamsOrBuilder()
.soy.Requirement.RequireStronglyTypedIjParams require_strongly_typed_ij_params = 13;getRequireStronglyTypedIjParamsOrBuilder in interface RequirementOrBuilderpublic Requirement.BanXidForCssObfuscation getBanXidForCssObfuscation()
.soy.Requirement.BanXidForCssObfuscation ban_xid_for_css_obfuscation = 14;getBanXidForCssObfuscation in interface RequirementOrBuilderpublic Requirement.BanXidForCssObfuscationOrBuilder getBanXidForCssObfuscationOrBuilder()
.soy.Requirement.BanXidForCssObfuscation ban_xid_for_css_obfuscation = 14;getBanXidForCssObfuscationOrBuilder in interface RequirementOrBuilderpublic String getErrorMessage()
Required: The message to report when a requirement is violated. This should reference a document describing the reason for the requirement and contacts.
string error_message = 8;getErrorMessage in interface RequirementOrBuilderpublic com.google.protobuf.ByteString getErrorMessageBytes()
Required: The message to report when a requirement is violated. This should reference a document describing the reason for the requirement and contacts.
string error_message = 8;getErrorMessageBytes in interface RequirementOrBuilderpublic com.google.protobuf.ProtocolStringList getWhitelistList()
Optional: A list of whitelisted substrings. Any source path that contains a whitelisted substring is exempt from the requirement.
repeated string whitelist = 9;getWhitelistList in interface RequirementOrBuilderpublic int getWhitelistCount()
Optional: A list of whitelisted substrings. Any source path that contains a whitelisted substring is exempt from the requirement.
repeated string whitelist = 9;getWhitelistCount in interface RequirementOrBuilderpublic String getWhitelist(int index)
Optional: A list of whitelisted substrings. Any source path that contains a whitelisted substring is exempt from the requirement.
repeated string whitelist = 9;getWhitelist in interface RequirementOrBuilderpublic com.google.protobuf.ByteString getWhitelistBytes(int index)
Optional: A list of whitelisted substrings. Any source path that contains a whitelisted substring is exempt from the requirement.
repeated string whitelist = 9;getWhitelistBytes in interface RequirementOrBuilderpublic com.google.protobuf.ProtocolStringList getOnlyApplyToList()
Optional: A list of paths. If this field is presented, the conformance test is only running for the files matching the paths specified here. Whitelisted sources will still be exempted.
repeated string only_apply_to = 15;getOnlyApplyToList in interface RequirementOrBuilderpublic int getOnlyApplyToCount()
Optional: A list of paths. If this field is presented, the conformance test is only running for the files matching the paths specified here. Whitelisted sources will still be exempted.
repeated string only_apply_to = 15;getOnlyApplyToCount in interface RequirementOrBuilderpublic String getOnlyApplyTo(int index)
Optional: A list of paths. If this field is presented, the conformance test is only running for the files matching the paths specified here. Whitelisted sources will still be exempted.
repeated string only_apply_to = 15;getOnlyApplyTo in interface RequirementOrBuilderpublic com.google.protobuf.ByteString getOnlyApplyToBytes(int index)
Optional: A list of paths. If this field is presented, the conformance test is only running for the files matching the paths specified here. Whitelisted sources will still be exempted.
repeated string only_apply_to = 15;getOnlyApplyToBytes in interface RequirementOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Requirement parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Requirement parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Requirement parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Requirement parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Requirement parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Requirement parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Requirement parseFrom(InputStream input) throws IOException
IOExceptionpublic static Requirement parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Requirement parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Requirement parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Requirement parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Requirement parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Requirement.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Requirement.Builder newBuilder()
public static Requirement.Builder newBuilder(Requirement prototype)
public Requirement.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Requirement.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Requirement getDefaultInstance()
public static com.google.protobuf.Parser<Requirement> parser()
public com.google.protobuf.Parser<Requirement> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Requirement getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder